EditorController class abstract
UI/controller boundary for the editor.
This is the shared editor-facing API consumed by:
- widgets/shells
- application-backed controller implementations
- extension packages
Constructors
Properties
-
canRedo
→ ValueListenable<
bool> -
no setter
-
canUndo
→ ValueListenable<
bool> -
no setter
-
document
→ ValueListenable<
CanvasSceneDocument> -
Latest canonical editable base scene.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
render
→ ValueListenable<
RenderSnapshot> -
Latest prepared/effective render output.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyEdit(
EditorEdit edit) → ElementId? - Executes a persistent canonical scene edit.
-
beginEditSession(
) → VoidCallback - Opens a session that coalesces repeated mutations into one undo entry.
-
commitField<
T> (ElementId nodeId, CanvasFieldKey fieldKey, T value) → void - Commits a literal value for a registered field.
-
dispose(
) → void - Lifecycle hook for implementations that hold subscriptions.
-
getField<
T> (ElementId nodeId, CanvasFieldKey fieldKey) → FieldState< T> - Reads the effective value of a registered field.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
redo(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
undo(
) → void -
updateDragMany(
Set< String> ids, Vec2 delta) → void -
updateRotate(
ElementId id, double deltaRad) → void -
updateUniformScaleAround(
ElementId id, Vec2 anchorParent, double mul) → void - Scale around an anchor point expressed in the node's parent space.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited