ungroupSelection method

void ungroupSelection([
  1. Group? group
])

This command removes selected groups from the diagram without removing their members from the diagram. This is normally invoked by the Ctrl-Shift-G keyboard shortcut.

For the given group, or if not supplied, each selected Group that is Group#ungroupable, expand the subgraph and change all of its member parts to be members of the group that the selected group node is in. (If the selected group is a top-level node, i.e. not a member of any group node, its members become top-level parts too.) All of those selected groups are deleted. All of the reparented member parts are selected.

This raises the "SelectionUngrouped" diagram event. This method also raises the "ChangingSelection" and "ChangedSelection" diagram events. Changes are performed in an "Ungroup" transaction, but the selection events are raised outside the transaction.

This method may be overridden, but you should consider calling this base method in order to get all of its functionality. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Group=} group if supplied, ignore the selection and consider ungrouping this particular Group. @see #canUngroupSelection

Implementation

void ungroupSelection([_i3.Group? group]) {
  _i4.callMethod(
    this,
    'ungroupSelection',
    [group ?? _i5.undefined],
  );
}