ComputedScene class final

Computed document/render geometry in document units; these maps are not serialized.

Local layout bounds determine pivots and authored transform semantics. Paint bounds estimate rendered content for fitting and cropping; they must not affect transforms. Text metrics and the existing path-stroke estimate are not guaranteed pixel enclosures, so these are not hard clip bounds.

Groups union child bounds independently in local layout space and world paint space. Editor-only world interaction geometry is derived by canvas_editor_flutter.

Constructors

ComputedScene({required List<DrawItem> drawList, required Map<ElementId, Node> nodeById, required Map<ElementId, Matrix4> worldById, required Map<ElementId, Rect2D> layoutBoundsLocalById, required Map<ElementId, Rect2D> paintBoundsLocalById, required Map<ElementId, Rect2D> paintBoundsWorldById, required Map<ElementId, PathIR> pathIRById, required Map<ElementId, ImagePlacement> imagePlacementById, required Map<ElementId, ResolvedIconText> iconTextById, required Map<ElementId, PathIR> iconPathIRById})
const

Properties

drawList → List<DrawItem>
final
hashCode → int
The hash code for this object.
no setterinherited
iconPathIRById → Map<ElementId, PathIR>
final
iconTextById → Map<ElementId, ResolvedIconText>
final
imagePlacementById → Map<ElementId, ImagePlacement>
final
layoutBoundsLocalById → Map<ElementId, Rect2D>
final
nodeById → Map<ElementId, Node>
final
paintBoundsLocalById → Map<ElementId, Rect2D>
final
paintBoundsWorldById → Map<ElementId, Rect2D>
final
pathIRById → Map<ElementId, PathIR>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
worldById → Map<ElementId, Matrix4>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → ElementId
A string representation of this object.
inherited

Operators

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