Svelte Flow 0.1.0
This is a bigger update for Svelte Flow to keep up with the latest changes we made for React Flow and the Svelte5 rewrite. The biggest change is the separation of user nodes (type Node) and internal nodes (type InternalNode), which includes a renaming of the node.computed attribute to node.measured. In the previous versions, we stored internals in node[internalsSymbol]. This doesn’t exist anymore, but we only add it to our internal nodes in node.internals..
⚠️ Breaking
- rename node.computedtonode.measured- this attribute only includeswidthandheightand nopositionAbsoluteanymore. For receiving an internal node, we added the helpersuseInternalNodeandgetInternalNode
- rename node.parentNodetonode.parentId
More updates:
- add isValidConnectionfor<Handle />component
- add fitViewOptionsfor<Controls />component
- add getInternalNodetouseSvelteFlow
- add useInternalNodehook
- don’t reset nodes and edges when svelte flow unmounts
- fix node event types
- make handleId and isTarget reactive
- fix MiniMap interaction for touch devices
- fix pane: pinch zoom on Windows
0.1.1
- fix useInternalNodehook export
0.1.2
- fix InternalNodetype export
0.1.3
- fix NodeToolbarfor subflows