One component I need for the code animation project is a way to resize elements.
In this experiment, I look at building a generic component using a Svelte Active.
It handles resizing in 8-directions: north, south, east, west, north-west, north-east, south-west, and south-east.
- Support resizing in fixed increments, by holding down
shiftkey while dragging
- Alternative to building this an action is using a component with a slot