EditorDocumentAdapter<TSourceDocument> class abstract

Strategy for adapting a host-owned canonical document to the editor.

The editor mutates the canonical editable/base rt.CanvasSceneDocument. Implementations translate that scene back into TSourceDocument and may preserve or update host-specific canonical metadata.

Constructors

EditorDocumentAdapter()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fieldEditDisabledReason(TSourceDocument document, ElementId nodeId, CanvasFieldKey fieldKey) String?
Returns why a registered literal field cannot currently be edited.
getBase(TSourceDocument doc) → CanvasSceneDocument
Returns the canonical runtime/base scene that shared mutations edit.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDeleteSubtree(TSourceDocument doc, Set<String> deletedIds) → TSourceDocument
Optional hook for canonical cleanup after subtree deletion.
onDuplicateSubtree(TSourceDocument doc, Map<ElementId, ElementId> idMap) → TSourceDocument
Optional hook for canonical remapping after subtree duplication.
replaceBase(TSourceDocument doc, CanvasSceneDocument base) → TSourceDocument
Replaces the canonical runtime/base scene after shared mutations.
resolve(TSourceDocument doc, Object? ctx) → CanvasSceneDocument
Resolves the canonical document into the runtime scene used for rendering.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited