Skip to content

groupShapes

groupShapes(tx, doc, page, canvas, shapes, parent?): boolean

A macro to create a group of shapes

Parameters

tx: Transaction

transaction

doc: Doc

document

page: Page

page

canvas: Canvas

canvas

shapes: Shape[]

shapes to be grouped

parent?: Shape

parent shape to contain the group

Returns

boolean

true if changed

Source

macro.ts:574