Skip to content

Type Editor


Type Editor / @type-editor/viewdesc / ViewTreeUpdater

ViewTreeUpdater

Classes

ClassDescription

ViewTreeUpdater

Helper class for incrementally updating a tree of mark descs and the widget and node descs inside of them.

This class maintains a cursor through the existing view desc tree while iterating through the new document content, trying to reuse existing view descs where possible. It handles:

  • Nested mark descs (maintains a stack as it enters/exits marks)
  • Node and widget descs
  • DOM composition protection (won't modify locked nodes)