Trevixal API
    Preparing search index...

    Class DOMRenderer

    Model → DOM renderer. Structural sharing in the immutable document makes diffing cheap: a child that is reference-equal to what an element already shows is skipped; a same-type block is patched in place; anything else is rebuilt. The mapping from DOM elements back to model nodes lives in a WeakMap consumed by position mapping and selection sync.

    Index
    modelOf: WeakMap<Node, EditorNode> = ...

    DOM element/text → the model node it renders.

    • The element that holds a rendered node's children.

      Parameters

      • element: HTMLElement

      Returns HTMLElement

    • Tear down node-view instances in a subtree about to leave the DOM.

      Parameters

      • element: HTMLElement

      Returns void

    • Sync the root element's children with the document node's children.

      Parameters

      Returns void

    • Install a decoration source and invalidate rendered blocks.

      Parameters

      Returns void