Skip to main content

transformGroup

Creates a new TransformGroupNode containing all the nodes in nodes, applying the transformations specified in modifiers to each child node.

Signature​

transformGroup(nodes: ReadonlyArray<SceneNode>, parent: BaseNode & ChildrenMixin, index: number, modifiers: TransformModifier[]): TransformGroupNode

Parameters​

nodes​

The list of nodes in the new group. This list must be non-empty as Figma does not support empty groups. This list cannot include any node that cannot be reparented, such as children of instances.

parent​

The node under which the new group will be created. This is similar to parent.appendChild(group), but must be specified at the time that the group is created rather than later.

index​

An index argument that specifies where inside parent the new group will be created.

modifiers​

The list of transform modifiers to apply to each corresponding node in nodes.