DiagramObjectCommands class final
Object commands use the same admitted scene and transaction path as input.
Constructors
- DiagramObjectCommands(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(
DiagramElement element, {bool select = true}) → EditResult - Inserts an authored record exactly as supplied, through registry validation and the diagram's change hook. Does not infer registry creation defaults.
-
canRemove(
Iterable< String> elementIds) → bool - Capability-only query; host admission is evaluated when removing.
-
completeRemovalInteraction(
Iterable< String> elementIds) → EditResult - Completes an erasure whose preview has only highlighted candidates. The controller must own an active interaction with unchanged document content.
-
geometryAdjustmentGesture(
String id, ShapeAdjustment adjustment, {required DiagramPoint screenOrigin}) → DiagramToolGesture - Adjusts a shape's value through one of its handles, as one preview, commit or cancel gesture.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
polygonSidesGesture(
String id, {required DiagramPoint screenOrigin}) → DiagramToolGesture - Adjusts a regular polygon with screen-space scrubbing as one gesture.
-
removal(
Set< String> ids) → EditResult -
Whether
idsand everything removed with them can be deleted. Locks are admission's to decide. -
remove(
Iterable< String> elementIds) → EditResult - Atomically removes requested objects and all deletion dependants. A non-deletable descendant denies the complete operation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited