New release 0.0.28
This is a huge update! We added a new <NodeToolbar /> component and a new colorMode (βlightβ | βdarkβ | βsystemβ) prop for toggling dark/light mode. Check out the new dark mode example.
There are some breaking changes again (sorry!) but we are very close to the final API for Svelte Flow 1.0.0. The biggest change is that we group node attriubutes (width, height, positionAbsolute) that are added by the library under node.computed. This makes it easier to understand, that this stuff comes from the library itself. node.width and node.height is still an optional node option and can be used to set certain dimensions for SSR or on the client.
- add
<NodeToolbar />component - add colorMode prop (βlightβ | βdarkβ | βsystemβ) - [Dark mode example]
- add
on:selectionclickandon:selectioncontextmenuevent handlers - add
ondelete({ nodes, edges })handler - add
zoomActivationKeyprop - add
widthandheightprop to customNodePropstype - add
colorModeprop (βlightβ | βdarkβ | βsystemβ) - β οΈ replace
xPosandyPoswithpositionAbsoluteprop to customNodePropstype - β οΈ
node.width/heightandnode.positionAbsolutecan now be found undernode.computed.width/height/positionAbsolute - β οΈ
node.width/heightis still optional an can be used for forcing certain dimensions and SSR - refactor keys: you can now disable keys by setting them to
null(e.g.selectionKey={null}) - performance optimization with internal node lookup
You can find the changelog with all previous changes on Githubβ.
Last updated on