ComputedScene class final

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

Local layout bounds determine pivots and authored transform semantics. Paths use geometry alone, retaining zero-width or zero-height bounds. Paint bounds estimate rendered content for fitting and cropping; they must not affect transforms. Path stroke bounds conservatively include caps and joins. Text metrics, blur tails, and raster antialiasing are estimates or export padding policies, 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, ComputedIcon> iconById})
const

Properties

drawList → List<DrawItem>
final
hashCode → int
The hash code for this object.
no setterinherited
iconById → Map<ElementId, ComputedIcon>
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