DiagramGroupingCommands class final

Structural selection operations over the admitted document and geometry.

Constructors

DiagramGroupingCommands(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

canContain(String type, [Iterable<String>? ids]) → bool
Whether ids, or the selection, can move into a new type container.
canUngroup([Iterable<String>? ids]) → bool
Whether ids, or the selection, include removable containers.
contain(String type, [Iterable<String>? targets]) → EditResult
Moves ids, or the selection, into a new type container.
containers(Iterable<String> ids) → Set<String>
The containers among ids.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reparentElements(Iterable<String> elementIds, {String? parentId, DiagramPoint delta = DiagramPoint.zero}) → EditResult
Transfers ownership while preserving world geometry and nested contents. A nonzero delta translates the complete subtree in the same transaction. Locked or immovable descendants reject that movement atomically.
reparentTarget(DiagramRect bounds, {Set<String> excluding = const {}}) → ResolvedShape?
Finds the frontmost expanded frame intersecting a dragged object's bounds. Exclude the complete moving subtree to prevent ownership cycles.
setCollapsed(String id, bool collapsed) → EditResult
Changes frame presentation without rewriting its expanded geometry.
toString() → String
A string representation of this object.
inherited
ungroup([Iterable<String>? ids]) → EditResult
Removes the containers among ids, or the selection, keeping children.

Operators

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