DiagramConnectorLabelCommands class final
Canonical connector-label operations shared by future UI and host adapters.
- Available extensions
Constructors
- DiagramConnectorLabelCommands(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
- store → DiagramController
-
final
Methods
-
add(
String connectorId, {TextStory? story, double? fraction, DiagramPoint offset = DiagramPoint.zero, DiagramSize? size}) → String -
arrange(
{Iterable< String> ? connectorIds, double spacing = 8}) → EditResult - Places labels around measured leaf shapes and other labels in one edit.
-
moveGesture(
String connectorId, String labelId, {required DiagramPoint pointerOrigin}) → DiagramToolGesture - Uses the public gesture pipeline; each sample derives from the same immutable start, so pointer frequency cannot accumulate position error.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String connectorId, String labelId) → EditResult -
resizeGesture(
String connectorId, String labelId, {required DiagramPoint pointerOrigin, required ShapeResizeHandle handle}) → DiagramToolGesture -
Available on DiagramConnectorLabelCommands, provided by the DiagramConnectorLabelResizeCommands extension
Resizes from an immutable resolved box while retaining its path anchor. Text can grow beyond the authored minimum height through shared layout. -
toString(
) → String -
A string representation of this object.
inherited
-
update(
String connectorId, String labelId, {TextStory? story, double? fraction, DiagramPoint? offset, DiagramSize? size, LabelPresentation? presentation}) → EditResult
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited