@squareys/webdecks-sdk - v0.0.0
    Preparing search index...

    Class PresentationSelection

    The deck's live selection: the number of selected objects, the primary one, and the current slide. Inherits the uniform clipboard verbs (Selection.copy, Selection.cut, Selection.paste), which act on the current UI selection when a live view exists.

    Hierarchy (View Summary)

    Index
    • get count(): number

      The number of selected objects (0 in a headless host).

      Returns number

    • get currentSlideIndex(): number

      The current slide's 0-based index.

      Returns number

    • get primary(): Shape | null

      The primary selected object, or null if the selection is empty.

      Returns Shape | null

    • get isEmpty(): boolean

      Whether nothing is selected.

      Returns boolean

    • Copy the selection into the engine's clipboard.

      Returns this

    • Copy the selection into the clipboard, then delete it.

      Returns this

    • Insert the clipboard contents at the caret, replacing any selection.

      Returns this

    • Clear the selection (needs a live view); chainable.

      Returns this

    • Select every object on the current slide (needs a live view); chainable.

      Returns this