Skip to main content
This component is only used when constructing custom Nodes

Description

The Resizer component can be passed to a custom Node to enable dynamic resizing and rotation. Dimensions allowed for resizing and minimum dimensions can be set via props.
MyNode.svelte
When using the Resizier component. You must specify your root level HTML element width and height as 100%. Set initial size via Node props.

Props

number
default:"false"
Boolean controlling whether the Node can be resized along its width.
number
default:"false"
Boolean controlling whether the Node can be resized along its height.
boolean
default:"false"
Boolean controlling whether the Node can be rotated via the top left corner.
number
default:"200"
Pixel value reprsenting the minimum alowed height when resizing.
number
default:"100"
Pixel value representing the minimum allowed width when resizing.