PathNode class

SVG-path based vector node.

Inheritance

Constructors

PathNode({required NodeId id, required String svgPathData, Color? fillColor, Color? strokeColor, double strokeWidth = 1, PathFillRule fillRule = PathFillRule.nonZero, double hitPadding = 0, Transform2D? transform, double opacity = 1, bool isVisible = true, bool isSelectable = true, bool isLocked = false, bool isDeletable = true, bool isTransformable = true})

Properties

boundsWorld Rect
Axis-aligned bounds in world coordinates.
no setterinherited
debugLastBuildLocalPathException Object?
Debug-only exception captured from the last buildLocalPath() attempt.
no setter
debugLastBuildLocalPathFailureReason String?
Debug-only failure reason for the last buildLocalPath() attempt.
no setter
debugLastBuildLocalPathStackTrace StackTrace?
Debug-only stack trace captured from the last buildLocalPath() attempt.
no setter
fillColor Color?
getter/setter pair
fillRule PathFillRule
getter/setter pair
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
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
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
strokeColor Color?
getter/setter pair
strokeWidth double
getter/setter pair
svgPathData String
getter/setter pair
transform Transform2D
Local-to-world node transform.
getter/setter pairinherited
type NodeType
finalinherited

Methods

buildLocalPath({bool copy = true}) Path?
Builds a local path centered around (0,0), or returns null if invalid.
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

Static Properties

enableBuildLocalPathDiagnostics bool
When enabled, buildLocalPath() records failure reasons and emits diagnostics logs even in release builds.
getter/setter pair