SheetXL - v1.0.2
    Preparing search index...

    Class PresenceStore

    Someone else working in the view: their findings, their working cursor, their prompt and status, for one session. The findings are the workbook's range annotations, written with the session as their source, fed by the host's highlight events and read back here so the views see one snapshot.

    Shows one session: the workbook passed to bind. A highlight for a session that is not bound yet is kept until it is (the workbook may still be loading); one for another session is dropped, since there is nothing to draw it on.

    The host hears about dismissals from the annotation store's events, so a dismissal from the grid's tag, from a list, or from a command reaches it the same way.

    Index
    • Show this workbook's session.

      Parameters

      • workbook: IWorkbook | null
      • OptionalsessionId: string

        The id the host addresses this workbook by. Defaults to the workbook's own id.

      Returns void

    • Dismiss the bound session's prompt. What was answered so far goes back with the cancel.

      Returns void

    • Answer the step on screen of the bound session's prompt. Answering here or in the grid is the same thing.

      Parameters

      • OptionaloptionId: string

        The option chosen; omitted to acknowledge a step that has none.

      Returns void

      A single-question prompt is sent at once. With several, the answer is recorded and the next step comes up; the answers go together on submitPrompt.

    • Clear the agent's working cursor, as Esc does. Returns whether there was one.

      Returns boolean

    • Dismiss one finding. The cursor moves to the one that takes its place.

      Parameters

      • id: string

      Returns void

    • Dismiss every finding and question finding in the bound session.

      Returns void

    • Returns void

    • Returns void

    • Make a finding current and reveal it. A stale or unknown id does nothing; a working one is only revealed.

      Parameters

      • id: string

      Returns void

    • Move to the next finding (wrapping) and reveal it.

      Parameters

      • OptionalfromId: string

        Step from this finding instead of the current one — a chip's own arrows walk from that chip, wherever the user scrolled to.

      Returns void

    • Move to the previous finding (wrapping) and reveal it. See next for fromId.

      Parameters

      • OptionalfromId: string

      Returns void

    • Show another step of the bound session's prompt. Answers given stay until changed.

      Parameters

      • step: number

      Returns void

    • Bring an address into view without touching the selection.

      Parameters

      • address: string

      Returns void

    • Select an address — for a link to the cells the user clicks (the prompt's range).

      Parameters

      • address: string

      Returns void

    • Record where the prompt's first question is on screen, so its dialog can open there. Set once: the dialog opens where its question was, then stays wherever the user puts it.

      Parameters

      • promptId: string
      • anchor: { x: number; y: number }

      Returns void

    • Record the step on screen's answer in the user's own words ("Other"), as they type. It does not move on or send — the user may write several lines; submitPrompt sends. Blank text leaves the step unanswered.

      Parameters

      • text: string

      Returns void

    • Send the prompt's answers. Only once every question has one.

      Returns void

    • Parameters

      • listener: () => void

      Returns () => void