Skip to main content

Description

A Group component can be used to wrap a set of a Nodes and limit their movement to within the bounds of the Group. These can be created dynamically using Shift + Meta + Click, but can be specified ahead of time using the Group component.
App.svelte

Props

string | number
required
Identification for the Group.
number
required
Width of the bounding box relative to a scale of 1.
number
required
Height of the bounding box relative to a scale of 1.
{x: number, y: number}
default:"{x: 0, y: 0}"
The position of the Group.
CSS Color String
default:"random color"
The color of the group box.