Components
Resizer
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
width
number
default: "false"Boolean controlling whether the Node can be resized along its width.
height
number
default: "false"Boolean controlling whether the Node can be resized along its height.
rotation
boolean
default: "false"Boolean controlling whether the Node can be rotated via the top left corner.
minWidth
number
default: "200"Pixel value reprsenting the minimum alowed height when resizing.
minHeight
number
default: "100"Pixel value representing the minimum allowed width when resizing.