DiagramPathCommands class final

Canonical path edits shared by hosts and direct manipulation.

Constructors

DiagramPathCommands(DiagramController _store)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPoint(String id, {required String after, double t = .5}) → String
Split the segment after nodeId without changing its geometry.
controlGesture(String id, String nodeId, DiagramPathControl control, {required DiagramPoint pointerOrigin, bool splitSegment = false}) → DiagramToolGesture
moveControl(String id, String nodeId, DiagramPathControl control, DiagramPoint position) → EditResult
Positions use the shape's normalized local coordinate space.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeNode(String id, String nodeId) → EditResult
removeNodes(String id, Set<String> nodeIds) → EditResult
Removing the last segment removes its owner in the same undoable edit.
setClosed(String id, bool closed) → EditResult
setHandleMode(String id, String nodeId, DiagramPathHandleMode mode) → EditResult
setSegmentKind(String id, String nodeId, DiagramPathSegmentKind kind) → EditResult
splitSegment(String id, String nodeId, {required String newNodeId, double t = .5}) → EditResult
Advanced subdivision with a caller-supplied stable node identity.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

move(DiagramVectorPath path, String nodeId, DiagramPathControl control, DiagramPoint position) → DiagramVectorPath
pathOf(ShapeElement source, ShapeDefinition definition) → DiagramVectorPath?
The path source edits point by point, or null when its type has none.
reframe(ShapeElement source, String key, DiagramVectorPath path) → ShapeElement
Recompute a positive frame while preserving every local/world point, including the pivot shift of a rotated path and its owner-relative frame. The path is stored in source's value key.
split(DiagramVectorPath p, String nodeId, {required String newNodeId, double t = .5}) → DiagramVectorPath