Trilium Frontend API
    Preparing search index...

    Interface MeasureRequest<T>

    interface MeasureRequest<T> {
        key?: any;
        read(view: EditorView): T;
        write?(measure: T, view: EditorView): void;
    }

    Type Parameters

    • T
    Index

    Properties

    Methods

    Properties

    key?: any

    When multiple requests with the same key are scheduled, only the last one will actually be run.

    Methods

    • Called in a DOM read phase to gather information that requires DOM layout. Should not mutate the document.

      Parameters

      Returns T

    • Called in a DOM write phase to update the document. Should not do anything that triggers DOM layout.

      Parameters

      Returns void