Trilium Frontend API
    Preparing search index...

    Class ViewUpdate

    View plugins are given instances of this class, which describe what happened, whenever the view is updated.

    Index

    Properties

    changes: ChangeSet

    The changes made to the document by this update.

    startState: EditorState

    The previous editor state.

    The new editor state.

    transactions: readonly Transaction[]

    The transactions involved in the update. May be empty.

    The editor view that the update is associated with.

    Accessors

    • get docChanged(): boolean

      Whether the document changed in this update.

      Returns boolean

    • get focusChanged(): boolean

      True when this update indicates a focus change.

      Returns boolean

    • get geometryChanged(): boolean

      Returns true when the document was modified or the size of the editor, or elements within the editor, changed.

      Returns boolean

    • get heightChanged(): boolean

      Indicates whether the height of a block element in the editor changed in this update.

      Returns boolean

    • get selectionSet(): boolean

      Whether the selection was explicitly set in this update.

      Returns boolean

    • get viewportChanged(): boolean

      Tells you whether the viewport or visible ranges changed in this update.

      Returns boolean

    • get viewportMoved(): boolean

      Returns true when viewportChanged is true and the viewport change is not just the result of mapping it in response to document changes.

      Returns boolean