ImageNode class
Constructors
- ImageNode({required NodeId id, required String imageId, required Size size, Size? naturalSize, double hitPadding = 0, Transform2D? transform, double opacity = 1, bool isVisible = true, bool isSelectable = true, bool isLocked = false, bool isDeletable = true, bool isTransformable = true})
- ImageNode.fromTopLeftWorld({required NodeId id, required String imageId, required Size size, required Offset topLeftWorld, Size? naturalSize, double hitPadding = 0, double opacity = 1, bool isVisible = true, bool isSelectable = true, bool isLocked = false, bool isDeletable = true, bool isTransformable = true})
-
Creates an image node positioned by its axis-aligned world top-left corner.
factory
Properties
- boundsWorld → Rect
-
Axis-aligned bounds in world coordinates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hitPadding ↔ double
-
Additional hit-test tolerance in scene units.
(Serialized as part of JSON v2.)
getter/setter pairinherited
- id → NodeId
-
finalinherited
- imageId ↔ String
-
getter/setter pair
- isDeletable ↔ bool
-
getter/setter pairinherited
- isLocked ↔ bool
-
getter/setter pairinherited
- isSelectable ↔ bool
-
getter/setter pairinherited
- isTransformable ↔ bool
-
getter/setter pairinherited
- isVisible ↔ bool
-
getter/setter pairinherited
- localBounds → Rect
-
Axis-aligned bounds in local coordinates.
no setteroverride
- naturalSize ↔ Size?
-
getter/setter pair
- opacity ↔ double
-
Node opacity in the range
[0,1].getter/setter pairinherited - position ↔ Offset
-
Translation component of transform.
getter/setter pairinherited
- rotationDeg ↔ double
-
Derived rotation in degrees.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleX ↔ double
-
Derived X scale magnitude (convenience accessor).
getter/setter pairinherited
- scaleY ↔ double
-
Derived Y scale (convenience accessor).
getter/setter pairinherited
- size ↔ Size
-
getter/setter pair
- topLeftWorld ↔ Offset
-
Axis-aligned world top-left corner of this node's bounds.
getter/setter pair
- transform ↔ Transform2D
-
Local-to-world node transform.
getter/setter pairinherited
- type → NodeType
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited