Editor API Reference - v1.1.16
    Preparing search index...

    Class SelectionHistory

    Enables undo / redo of selection changes

    Index

    Internal

    Other

    • get enabled(): boolean

      Gets enabled state of selection undo / redo.

      Returns boolean

    • set enabled(value: boolean): void

      Sets enabled state of selection undo / redo.

      Parameters

      • value: boolean

      Returns void

    • Record history action after executing function. The history action will restore the previous selection.

      Parameters

      • name: any
      • fn: () => void

      Returns void