A group is saved as-is. Any other selection (a single element, or several
loose elements) is wrapped in a throw-away group first, so the user does not
have to group by hand before saving. The PageElementGroup constructor copies
the elements it is given, so wrapping never mutates the document.
Parameters
group_element: PageElementGroup
the selected group, or null to use the current selection
Save the current selection as a clip.
A group is saved as-is. Any other selection (a single element, or several loose elements) is wrapped in a throw-away group first, so the user does not have to group by hand before saving. The PageElementGroup constructor copies the elements it is given, so wrapping never mutates the document.