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.computed
tonode.measured
- this attribute only includeswidth
andheight
and nopositionAbsolute
anymore. For receiving an internal node, we added the helpersuseInternalNode
andgetInternalNode
- rename
node.parentNode
tonode.parentId
More updates:
- add
isValidConnection
for<Handle />
component - add
fitViewOptions
for<Controls />
component - add
getInternalNode
touseSvelteFlow
- add
useInternalNode
hook - 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
useInternalNode
hook export
0.1.2
- fix
InternalNode
type export
0.1.3
- fix
NodeToolbar
for subflows