@vue-flow/core
2.0.0-next.0
Major Changes
#717
702ff95Thanks @bcakmakoglu! - Remove experimental features flag#717
6da35f5Thanks @bcakmakoglu! - Update handle styles and avoid using fixed pixel positions to offset handle position and instead use transform to align handles#1549
f6bb711Thanks @bcakmakoglu! - Remove deprecated exportsaddEdge,updateEdge&useZoomPanHelper
1.42.5
Patch Changes
- #1807
60482cfThanks @bcakmakoglu! - Prevent keypress events from being swallowed when a button element is focused.
1.42.4
Patch Changes
#1794
e0bb46eThanks @bcakmakoglu! - Use null as fallback id for edge source handle#1796
978b896Thanks @bcakmakoglu! - Remove edgelookup update when updating connection lookup as edge lookup is computed already#1796
a6a3000Thanks @bcakmakoglu! - Reset drag items on drag end
1.42.3
Patch Changes
- #1789
f4fc254Thanks @bcakmakoglu! - Unwrap ref when checking if connection in progress.
1.42.2
Patch Changes
#1781
a14d16dThanks @bcakmakoglu! - Prevent removal of handle bounds when<Handle>is unmounted.#1776
41bed0cThanks @bcakmakoglu! - Prevent pane click event when connection is in progress.
1.42.1
Patch Changes
- #1749
56eb94eThanks @bcakmakoglu! - Correct connection keys.
1.42.0
Minor Changes
#1729
8a832f1Thanks @bcakmakoglu! - Use connection lookup to check what elements should be selected by a user selection box.#1729
d4a6910Thanks @bcakmakoglu! - AdduseNodeConnectionscomposable#1742
b1e2f57Thanks @bcakmakoglu! - Inherit attributes on main edge path element in BaseEdge component.
1.41.7
Patch Changes
- #1726
763d122Thanks @github-actions! - use center position of handle as snapping point for connection lines
1.41.6
Patch Changes
#1705
047ec99Thanks @bcakmakoglu! - Update sourceNode and targetNode properties of edge when usingupdateEdge.#1698
7cc1c5aThanks @bcakmakoglu! - Prevent default scrolling behavior when using arrow keys to move nodes or a selection.#1707
4c9e517Thanks @bcakmakoglu! - Allow Control key as pan activation key code.#1707
4c9e517Thanks @bcakmakoglu! - CheckpanOnDragfor allowed drag buttons in d3 filter#1707
4c9e517Thanks @bcakmakoglu! - Prevent browser context menu when triggering pane context menu event.
1.41.5
Patch Changes
#1680
b6c500dThanks @bcakmakoglu! - check if event on drag end is mouse/touch event or a usedrag event#1696
249efceThanks @bcakmakoglu! - Properly release key combinations when one of the keys is unpressed#1693
f28ffbaThanks @bcakmakoglu! - Allow using the+key in key combinations#1695
b09ad8eThanks @bcakmakoglu! - Escape node labels and avoid rendering them as innerHTML
1.41.4
Patch Changes
- #1670
4bc7658Thanks @bcakmakoglu! - if selection key code is true prevent pan on drag on left mouse btn
1.41.3
Patch Changes
#1662
a41bd7bThanks @bcakmakoglu! - Reorder pane class names to allow dragging cursor when selection mode is permanently enabled#1667
e51f08cThanks @bcakmakoglu! - SetisPressedtotrueif permanent keypress is enabled#1662
a41bd7bThanks @bcakmakoglu! - Allow pan on drag when selectionKeyCode istruebut panOnDrag key is not left mouse btn#1665
a6ec480Thanks @bcakmakoglu! - Use all handle bounds when using loose connection mode during edge update
1.41.2
Patch Changes
#1624
6692072Thanks @bcakmakoglu! - Use calculated drag distance to trigger drag-click.#1618
1fa90acThanks @bcakmakoglu! - Allow node/edge pointer events if mouse event listeners (likenodeClickoredgeClick) exists.
1.41.1
Patch Changes
#1608
0581cd8Thanks @bcakmakoglu! - Prevent overwriting width/height in node styles object withnode.width/node.heightifwidth/heightalready exist in the styles object. Fixes NodeResizer not working when initial size was passed to a node throughnode.width/node.height.#1609
81a81faThanks @bcakmakoglu! - Prevent drag-click handler when multi selection is active.
1.41.0
Minor Changes
- #1595
9c18037Thanks @bcakmakoglu! - AddgetHandleConnectionsaction to store.
Patch Changes
- #1600
a3c72feThanks @bcakmakoglu! - Don't set user selection flags on pointer down, only setting them when pointer is moved to allow pane click events to occur whenselectionKeyCodeistrue(i.e. selection on drag).
1.40.1
Patch Changes
- #1591
5eb677bThanks @bcakmakoglu! - Inline event names
1.40.0
Minor Changes
- #1575
7aa49f4Thanks @bcakmakoglu! - Removenullas possible return type of data inuseNodesData
Patch Changes
#1586
f2ed6a3Thanks @bcakmakoglu! - Only display grab cursor when panOnDrag is on left mouse button#1585
d7a51f8Thanks @bcakmakoglu! - Simplify event emits definitions to avoid hitting complexity limit of TS.
1.39.3
Patch Changes
- #1569
f6b394fThanks @bcakmakoglu! - Push into dimensions changes array instead of using index access.
1.39.2
Patch Changes
- #1565
90f573aThanks @bcakmakoglu! - Only capture pointer when a valid selection has started
1.39.1
Patch Changes
#1562
e83b1efThanks @bcakmakoglu! - Check if injected vue flow state matches options id, otherwise create new state#1562
e83b1efThanks @bcakmakoglu! - Prefer options id over scope id when finding vue flow internal state by id
1.39.0
Minor Changes
#1542
de75620Thanks @bcakmakoglu! - AddpaneClickDistanceoption. Allows specifying the distance between mousedown and mouseup in which a click would still be registered (by default0)#1535
1a812f3Thanks @bcakmakoglu! - AddautoPanSpeedprop. Allows specifying at what speed the pane moves when auto-panning via node-drag, selection-drag or connection-drag
Patch Changes
#1536
235d564Thanks @github-actions! - Dispatch click if drag move was attempted and threshold was not crossed, ignoring any movement that's too small to be considered a drag at all#1545
2910992Thanks @bcakmakoglu! - Prevent callingonSelectionEndwhen clicking a selection#1543
85c8d2dThanks @bcakmakoglu! - Handle pointer capture for selection on drag
1.38.5
Patch Changes
- #1530
e7bcca5Thanks @bcakmakoglu! - ignore minor mouse movements when marking a node drag as aborted
1.38.4
Patch Changes
- #1525
e8427cfThanks @bcakmakoglu! - Prevent duplicate node click event by checking if drag was actually aborted before emitting node-click
1.38.3
Patch Changes
- #1522
ccca803Thanks @bcakmakoglu! - EmitnodeClickevent when a node is dragged without exceeding the node drag threshold (i.e. no visible movement has happened)
1.38.2
Patch Changes
#1517
d2ec752Thanks @bcakmakoglu! - Usepostflush timing to re-observe node size when toggling node visibility#1514
6a0813eThanks @bcakmakoglu! - Avoid re-snapping to the same handle
1.38.1
Patch Changes
- #1510
4643676Thanks @bcakmakoglu! - Correct calculation of nodes inside selection rect
1.38.0
Minor Changes
#1492
f85ea42Thanks @bcakmakoglu! - Allow passing event target touseKeyPress#1492
f85ea42Thanks @bcakmakoglu! - Use pointer events to capture interactions onPanecmp and prevent selections from being cancelled when moving outside of thePanewhile holding selection key#1508
005b25bThanks @bcakmakoglu! - Use correct end handle position in connection line component and store handle positions during connections.#1502
30c81dcThanks @bcakmakoglu! - Allow passing a Record<string, any> as class to node/edge objects#1502
30c81dcThanks @bcakmakoglu! - Allow passing an array of strings as class to node/edge objects#1492
2dff0ddThanks @bcakmakoglu! - MakeuseKeyPresspublic and export it
Patch Changes
#1506
45e9d03Thanks @bcakmakoglu! - Removev-memofrom EdgeRenderer so that edges get their correct z-index applied#1494
09c32c5Thanks @bcakmakoglu! - Calculate correct handle position in handle lookup
1.37.1
Patch Changes
- #1483
6d4d2beThanks @bcakmakoglu! - Correct access of options id inuseVueFlow
1.37.0
Minor Changes
#1481
192b154Thanks @bcakmakoglu! - Add overloads touseVueFlow. Allows callinguseVueFlowwith anidstring only while emitting a deprecation warning for using the options obj.#1476
1b38c3fThanks @bcakmakoglu! - Use empty array when determing whether to update all node internals#1479
659ca6aThanks @bcakmakoglu! - AddEdgePathParamstype and export it
1.36.0
Minor Changes
#1401
ebf387eThanks @bcakmakoglu! - Removeinitializedproperty fromGraphNodetype#1401
c94e175Thanks @bcakmakoglu! - Remove node intersections from drag event args#1401
231673eThanks @bcakmakoglu! - AddupdateEdgeDataaction#1401
bb6abedThanks @bcakmakoglu! - Reduce nodegetBoundingClientRectcalls by passing node-bounds directly togetHandleBounds#1401
30e999aThanks @bcakmakoglu! - RemoveconnectedEdgesas arg from NodeMouseEvents#1401
ba6e250Thanks @bcakmakoglu! - AdduseEdgesDatacomposable
Patch Changes
- #1401
408dfeaThanks @bcakmakoglu! - Hide viewport until initial fit view is finished
1.35.0
Minor Changes
#1447
acd6069Thanks @bcakmakoglu! - Return non-nullable edge fromuseEdge#1447
acd6069Thanks @bcakmakoglu! - Use node/edge id as the only dependency to render nodes/edges.#1446
d8bdac1Thanks @bcakmakoglu! - Remove visibility (hidden) check fromgetNodes&getEdges#1440
a02b9a4Thanks @bcakmakoglu! - Remove auto-generated hanle-ids and usenullas the default handle id. If you were relying on handle-ids in your code but weren't assigning them explicitly, you'll might need to update your code to handle this change. By default, if you don't provide a handle-id, it will benulland the first handle of the corresponding type will be used.#1446
d8bdac1Thanks @bcakmakoglu! - Rendernullif edge is hidden#1433
7547adeThanks @bcakmakoglu! - AddedgeIdto handle connection objects returned byuseHandleConnections#1450
d64efc6Thanks @bcakmakoglu! - Replace internally nodeIds/edgeIds array with nodeLookup/edgeLookup map#1445
64a5162Thanks @bcakmakoglu! - Rendernullif node is hidden but render whole list of nodes regardless of visibility
Patch Changes
#1449
27ec132Thanks @bcakmakoglu! - Disable pinch zoom on mobile ifzoomToPinchisfalse#1448
fe58110Thanks @bcakmakoglu! - Disable dragging when using multi-touch
1.34.1
Patch Changes
#1426
c997a80Thanks @bcakmakoglu! - Replace array fns with for-loops#1425
220c290Thanks @bcakmakoglu! - Use separate prevConnections map inuseHandleConnectionscomposable to ensure comparison check is correct and callbacks are executed.
1.34.0
Minor Changes
#1415
bcb6c38Thanks @bcakmakoglu! - Add warning when style imports are missing.#1421
69631f0Thanks @bcakmakoglu! - ExportPanelPositionType
1.33.8
Patch Changes
- #1404
b636853Thanks @bcakmakoglu! - Prevent auto-pan on connect when it's set to false.
1.33.7
Patch Changes
- #1378
58d1a36Thanks @bcakmakoglu! - Allow wheel events to bubble up to the user if the event is not caught and used by the viewport
1.33.6
Patch Changes
#1375
0754e79Thanks @bcakmakoglu! - Pass pathOptions to edges#1389
f62f2caThanks @bcakmakoglu! - Prevent delete key action inside input field even if modifier is pressed.#1373
a88cd9eThanks @bcakmakoglu! - Set ltr on vue flow wrapper#1374
2821c32Thanks @bcakmakoglu! - Allow pinch-zoom if preventScrolling is disabled
1.33.5
Patch Changes
- #1356
b5beac2Thanks @bcakmakoglu! - Store current Storage instance on vue app to avoid hydration errors.
1.33.4
Patch Changes
- #1346
376d0acThanks @bcakmakoglu! - Revert extending FlowEmits from separate interfaces for nodes and edges as it breaks event definitions for the actual component, causing warnings that the event was emitted by isn't defined.
1.33.3
Patch Changes
- #1343
89b76a1Thanks @bcakmakoglu! - Use separate interfaces for Edge- and NodeEvents and extend FlowEmit interface from them. Fixes edge events overwriting node event definitions when types are created.
1.33.2
Patch Changes
#1338
f3c09ceThanks @bcakmakoglu! - Use nullish check to fallback to default center values ingetSmoothstepPath#1339
eb20a0fThanks @bcakmakoglu! - Check if node dimensions exist inuseNodesInitialized#1335
ed5d104Thanks @bcakmakoglu! - Removerefprop fromBaseEdge
1.33.1
Patch Changes
- #1329
9b5d496Thanks @bcakmakoglu! - Correct return type ofuseNodesData
1.33.0
Minor Changes
#1323
ed4ccf4Thanks @bcakmakoglu! - Add node id and node type to return ofuseNodesData.⚠️This is a small breaking change from the previous implementation!
Previously you would only receive the data object back, now you will receive an object with the data and the node id and type.
tsconst nodesData = useNodesData(nodeIds); // Previously nodesData.forEach((data) => { // ... }); // Now nodesData.forEach(({ id, type, data }) => { // ... });
Patch Changes
#1326
78a604cThanks @bcakmakoglu! - Use default cursor for nodes and use grab cursor if node is draggable#1324
c964220Thanks @bcakmakoglu! - Prevent esc keypress triggers when keyboard a11y is disabled
1.32.1
Patch Changes
- #1314
14c4253Thanks @bcakmakoglu! - Correct smoothstep edge pathing
1.32.0
Minor Changes
#1301
1c8d15eThanks @github-actions! - Use data obj in default nodes to get label#1307
290bca3Thanks @bcakmakoglu! - AddedgeIdtouseHandleConnectionsreturn value
Patch Changes
#1301
1c8d15eThanks @github-actions! - Update composables jsdocs#1313
ce98113Thanks @bcakmakoglu! - Wrap edge marker urls with single quotes to allow for css vars as color
1.31.0
Minor Changes
#1271
1e60944Thanks @github-actions! - AdduseNodeIdcomposable🧙 Example
tsconst nodeId = useNodeId(); console.log("nodeId", nodeId); // '1'#1271
299408fThanks @github-actions! - AddupdateNodeaction🧙 Example
tsconst { updateNode } = useVueFlow(); updateNode("1", { position: { x: 100, y: 100 } }); // or using a function to update the node updateNode("1", (node) => ({ ...node, position: { x: 100, y: 100 } })); // passing options - `replace` will replace the node instead of merging it updateNode( "1", { id: "1", label: "Node 1", position: { x: 100, y: 100 } }, { replace: true } );#1271
eae2118Thanks @github-actions! - CallonNodesInitializedwheneverareNodesInitializedis true instead of only once#1271
36ffa3fThanks @github-actions! - Omiteventsin nodes and edges when returning them fromtoObject#1271
85536edThanks @github-actions! - AdduseHandleConnectionscomposable🧙 Example
tsconst connections = useHandleConnections({ // type of the handle you are looking for - accepts a `MaybeRefOrGetter<string>` type: "source", // the id of the handle you are looking for - accepts a `MaybeRefOrGetter<string | undefined> | undefined` [OPTIONAL] id: "a", // if not provided, the node id from the NodeIdContext is used - accepts a `MaybeRefOrGetter<string | undefined> | undefined` nodeId: "1", // a cb that is called when a new connection is added onConnect: (params) => { console.log("onConnect", params); }, // a cb that is called when a connection is removed onDisconnect: (params) => { console.log("onDisconnect", params); }, }); watch( connections, (next) => { console.log("connections", next); }, { immediate: true } );#1271
4bce8c9Thanks @github-actions! - Find handle by id regardless of number of handles that exist#1271
85536edThanks @github-actions! - AddconnectionLookupto state#1271
3b02809Thanks @github-actions! - AddonInithook and deprecateonPaneReady#1271
299408fThanks @github-actions! - AddupdateNodeDataaction🧙 Example
tsconst { updateNodeData } = useVueFlow(); updateNodeData("1", { foo: "bar" }); // or using a function to update the data updateNodeData("1", (data) => ({ ...data, foo: "bar" })); // passing options - `replace` will replace the data instead of merging it updateNodeData("1", { foo: "bar" }, { replace: true });#1271
823956eThanks @github-actions! - AdduseNodesDatacomposable🧙 Example
Single node id
tsconst nodeId = "1"; const data = useNodesData(nodeId); console.log(data.value); // '[{ /* ... */ }]Array of node ids
tsconst nodeIds = ["1", "2", "3"]; const data = useNodesData(nodeIds); console.log(data.value); // '[{ /* ... */ }]Asserting data type
tsimport type { Node } from "@vue-flow/core"; interface Data { foo: string; bar: string; } type MyNode = Node<CustomNodeData>; const nodeId = "1"; const data = useNodesData([nodeId], (node): node is MyNode => { return "foo" in node.data && "bar" in node.data; }); console.log(data.value); // '[{ /* foo: string; bar: string */ }]#1271
99fa4fdThanks @github-actions! - CallfitViewOnInitwhen initial node dimensions are available#1271
9f8607fThanks @github-actions! - Deprecateeventsproperty on nodes and edges#1278
ecff6f6Thanks @bcakmakoglu! - Add error args toVueFlowError#1271
3f60a80Thanks @github-actions! - ReplaceArray.forEachloops withfor...of#1278
ecff6f6Thanks @bcakmakoglu! - ExportisErrorOfTypetypeguard to narrow the type of a VueFlowError and infer it's args
Patch Changes
#1295
4a5aa14Thanks @bcakmakoglu! - When updating nodes or edges by overwriting the original array, update the nodes and edges in the state by using them as the target forObject.assign. This keeps reference in-tact and ensures reactivity when these objects are changed/updated#1271
bbee266Thanks @github-actions! - Update node dimensions on next tick
1.30.1
Patch Changes
- #1266
c571ddeThanks @bcakmakoglu! - Check if values are numeric inisRectinstead of checking for truthiness of values
1.30.0
Minor Changes
#1261
427bfacThanks @bcakmakoglu! - Hide viewport untilfitViewOnInitDoneistrue(iffitViewOnInitis not used, this value will automatically becometruethe first time node dimensions are set#1261
427bfacThanks @bcakmakoglu! - EmitpaneReadyevent after 1ms timeout
1.29.2
Patch Changes
- #1257
31817d3Thanks @bcakmakoglu! - Check ifevent.keyorevent.codeexists before trying to match keyfilter against keys
1.29.1
Patch Changes
- #1252
734d2baThanks @bcakmakoglu! - WatchshouldPanOnDrag&shouldPanOnScrollto determine whether listeners should be bound or not
1.29.0
Minor Changes
#1237
16c7d32Thanks @bcakmakoglu! - Expose handleClick and handlePointerDown from handle components#1238
dd4cbe0Thanks @bcakmakoglu! - AdduseConnectioncomposable for easy access of current connection params
Patch Changes
#1243
b5e77a4Thanks @bcakmakoglu! - Pass vueflow id togetMarkerIdin connection line component#1236
be15b5aThanks @github-actions! - Add default event handler when no handlers for a given event exist anymore#1250
f3c786fThanks @bcakmakoglu! - Allow panning on scroll when selection is active#1236
d46ac3aThanks @github-actions! - Merge connection line styles with options#1250
b71754fThanks @bcakmakoglu! - Return false for boolean key filter and set theisPressedref to whatever the keyFilter would be (true/false)#1250
4109cf1Thanks @bcakmakoglu! - Await fitView before emitting pane-ready#1236
d46ac3aThanks @github-actions! - Add fallback for connection line type (bezier as default)
1.28.0
Minor Changes
- #1216
845d591Thanks @bcakmakoglu! - Add source and target handle ids to removal change of edges.
1.27.1
Patch Changes
- #1220
2b4ed51Thanks @bcakmakoglu! - Use relative paths for imports.
1.27.0
Minor Changes
#1203
161f4808Thanks @bcakmakoglu! - Set default node drag threshold to 1#1212
39cd3027Thanks @bcakmakoglu! - Return promise fromfromObjectaction. Promise is resolved when transition ofsetViewportends
Patch Changes
- #1214
cda531f5Thanks @bcakmakoglu! - Add nullish check when looking up the edge label renderer el
1.26.0
Minor Changes
- #1193
bc793ab9Thanks @bcakmakoglu! - Keep connection lines snapped while hovering over handles
Patch Changes
- #1196
1aa69c59Thanks @bcakmakoglu! - Use correct prop value when prop watcher is executed instead of using prop key as value
1.25.3
Patch Changes
#1184
6639551bThanks @bcakmakoglu! - Respect zoom activation key code when hovering an element withnopanon it#1183
d43852b0Thanks @bcakmakoglu! - Use nodeRect to check for intersections
1.25.2
Patch Changes
- #1178
29c01f42Thanks @bcakmakoglu! - Revert importing types from vue instead of vueuse/core as it causes handle position to be messed up
1.25.1
Patch Changes
#1177
c9787c2bThanks @bcakmakoglu! - Wait for d3zoom to exist before setting options#1174
4cefa322Thanks @bcakmakoglu! - ImporttoValuefrom vueuse/core to avoid amiguous export with vue
1.25.0
Minor Changes
#1170
cce71c9cThanks @bcakmakoglu! - Add currently stored nodes to isValidConnection args#1166
993c058bThanks @bcakmakoglu! - Add slots and emits type definitions
1.24.2
Patch Changes
#1164
e3edb6ddThanks @bcakmakoglu! - Properly cleanup drag handlers when drag is disabled#1163
56469e95Thanks @bcakmakoglu! - Use existing node, if one was passed, for intersection checks#1159
8013c9cfThanks @bcakmakoglu! - Add immediate flag to prop watchers. Fixes default viewport values not being available when viewport is mounted#1159
8013c9cfThanks @bcakmakoglu! - Do not wait for d3zoom to be available when setting min/max zoom
1.24.1
Patch Changes
- #1151
c2a74f57Thanks @bcakmakoglu! - Allow pan on drag when pan activation key is pressed and panOnDrag is set to false
1.24.0
Minor Changes
#1149
d11e59f1Thanks @bcakmakoglu! - Allow adding edges with missing source or target node to state but don't render them unless source and target exist#1146
6f93bbbbThanks @bcakmakoglu! - Use viewport and vueflow refs directly from store instead of assigning valuesafter mount#1128
0ff65bf2Thanks @github-actions! - Use nodes from state as the default third arg forgetIntersectingNodes
Patch Changes
#1128
7d153860Thanks @github-actions! - Use correct filter for pan on scroll class name#1147
6bc391c6Thanks @bcakmakoglu! - Release apply default handlers when scope is disposed#1146
6f93bbbbThanks @bcakmakoglu! - Allow panning while pan key is pressed#1139
eee9bd87Thanks @bcakmakoglu! - Create a key predicate for string key filters and check if we need to useevent.keyorevent.codeto match the key#1128
f5138157Thanks @github-actions! - select nodes on click when nodeDragThreshold > 0#1149
a7fe412aThanks @bcakmakoglu! - Push component emit handlers into the emit fns set instead of using theonhelper which overwrites any existing default handlers#1128
84e98305Thanks @github-actions! - Update to use vue 3.3
1.23.0
Minor Changes
#1121
5b9340bdThanks @bcakmakoglu! - Allow usingexpandParenttogether withparentextent#1117
7c6daff7Thanks @bcakmakoglu! - AddgetIncomers,getOutgoersandgetConnectedEdgesas store actions#1115
2bc9317cThanks @bcakmakoglu! - Cleanup node handlebounds when a handle is unmounted#1112
e526139fThanks @bcakmakoglu! - AddnodeDragThresholdoption#1118
5802acc9Thanks @bcakmakoglu! - AddareNodesInitializedgettet to store#1106
5c1df240Thanks @bcakmakoglu! - Add source and target node ids to edge removal changes#1119
78cf8bb0Thanks @bcakmakoglu! - addflowToScreenCoordinate&screenToFlowCoordinateto viewport actions#1116
8a29faa8Thanks @bcakmakoglu! - Allow passing a number as connectable prop to allow a specific number of connections per handle
Patch Changes
#1120
4015e358Thanks @bcakmakoglu! - Respect pan on scroll class name#1122
59171593Thanks @bcakmakoglu! - disable panning whenpanOnDragisfalse#1110
03247e00Thanks @bcakmakoglu! - unselect edge if selected and multi-selection is active#1123
2f7a0fe1Thanks @bcakmakoglu! - Queue node dimensions update to next tick
1.22.3
Patch Changes
#1064
07387ebeThanks @bcakmakoglu! - fix smooth step edge horizontally or vertically aligned nodes#1082
e3cc6ddfThanks @bcakmakoglu! - Fix scroll speed when using Control btn on windows#1081
0d36d4cdThanks @bcakmakoglu! - Use os specific key defaults (Windows -> Control, Mac -> Meta)#1065
05821407Thanks @bcakmakoglu! - Add roleimgto edges if not focusable#1083
13d2e2cbThanks @bcakmakoglu! - Improve smoothstep edge label positioning#1082
e3cc6ddfThanks @bcakmakoglu! - Fix horizontal scroll on windows#1085
03715134Thanks @bcakmakoglu! - Clear pressed key on keyup event, so that key combinations only work while simulteanously pressing keys#1084
806f2632Thanks @bcakmakoglu! - Allow passing key combinations as a simple string instead of wrapping in an array#1086
641b4d75Thanks @bcakmakoglu! - Reset isPressed value when switching from a boolean keyFilter to another type of keyFilter
1.22.2
Patch Changes
- #1055
50059483Thanks @bcakmakoglu! - Check if viewport transform is defined before setting infromObjaction
1.22.1
Patch Changes
#1048
b230e2abThanks @bcakmakoglu! - Deprecatepositionandzoomprops onFlowExportObjand replace withviewport#1054
543423c2Thanks @bcakmakoglu! - ESC key press causing browser error when blur on nodeEl is called#1048
b230e2abThanks @bcakmakoglu! - Wait for viewport helper when callingfromObjectaction
1.22.0
Minor Changes
#1034
080d8f41Thanks @bcakmakoglu! - DeprecategetTransformandsetTransformand addgetViewportandsetViewportinstead#1034
763ea593Thanks @bcakmakoglu! - AddhasListenerto event hook objects to check if any listeners are bound#1034
4c191dfeThanks @bcakmakoglu! - Return promises from viewport actions that are resolved when the transition of the action has ended#1034
5d08d68aThanks @bcakmakoglu! - Add flag toremoveNodeswhich allows recursively removing all child nodes of a parent#1034
5d08d68aThanks @bcakmakoglu! - Allow passing string or{ id }type object togetIncomersandgetOutgoers
Patch Changes
#1034
080d8f41Thanks @bcakmakoglu! - Do not wait for the nodes initialized hook to trigger for viewport helper to become ready#1034
5e1802caThanks @bcakmakoglu! - Destroy state when the creating scope is disposed.#1034
afd1d235Thanks @bcakmakoglu! - WatchapplyDefaultstate inuseVueFlowscope instead of component scope otherwise adding nodes/edges to the state is impossible until theVueFlowcomponent has mounted unless the changes handlers are explicitly bound by the user.
1.21.3
Patch Changes
#1033
8585dd53Thanks @bcakmakoglu! - Use correct handle position as source x,y position of connection lines#1041
373a345cThanks @bcakmakoglu! - Abort fit view when there are no nodes to fit around#1033
8585dd53Thanks @bcakmakoglu! - Correct source handle type to be possibly null when passing as prop to custom connection line components
1.21.2
Patch Changes
#1024
df1c5322Thanks @bcakmakoglu! - Use flush timing when calculating node positions#1028
3e11c6f0Thanks @bcakmakoglu! - Use noop functions instead of waiting for promise to be resolved when triggering viewport actions like fitView, setCenter etc.#1031
7fcf9c1fThanks @bcakmakoglu! - Pass missing handle dom node to valid handle result obj#1025
ec6765c2Thanks @bcakmakoglu! - Fix connection line status prop type. Can be string or null.
1.21.1
Patch Changes
- #1018
c14941a1Thanks @bcakmakoglu! - Correct nested nodes position calculation
1.21.0
Minor Changes
#988
cfd33294Thanks @bcakmakoglu! - Expose template refs from base edge component#1013
159bc763Thanks @bcakmakoglu! - Resolve slot templates before falling back to default node/edge components
Patch Changes
#1013
159bc763Thanks @bcakmakoglu! - Deprecate template prop for nodes#1014
02d2dd58Thanks @bcakmakoglu! - Clamp node extent by node dimensions to avoid node overflowing the extent by its size#988
d6d4d5c7Thanks @bcakmakoglu! - Priotize handle below during handle lookup#988
f5cfab61Thanks @bcakmakoglu! - Add style and ref to base edge props to avoid volar ts error
1.20.2
Patch Changes
#993
98875dd5Thanks @bcakmakoglu! - Correct handle position calculation during lookup#994
89972a90Thanks @bcakmakoglu! - Consider handle dimensions when calculating distance#993
3585c473Thanks @bcakmakoglu! - Trigger connect if connection end handle is stored in state#981
e68c1700Thanks @bcakmakoglu! - Set interaction edge (invisible overlay path) to no animation to avoid breaking pointer on hover#993
9ca41aa0Thanks @bcakmakoglu! - Use isValidHandle with null as closest handle when none can be found#992
4539f698Thanks @bcakmakoglu! - Fix connection line path calculation#993
9ca41aa0Thanks @bcakmakoglu! - Reset connection end handle state on connection end#976
0686bb5eThanks @bcakmakoglu! - Wrap each edge element in a separate svg container to allow changing z-index of edges without causing a re-render on all of them.
1.20.1
Patch Changes
#943
22b53569Thanks @bcakmakoglu! - Fetch current node in drag handler, fixes drag handler using outdated node obj when it has been overwritten#961
2f75b31cThanks @bcakmakoglu! - Avoid inserting invalid nodes into state and throw error msg if invalid node is passed#956
90e4cf99Thanks @bcakmakoglu! - Allow passing a MaybeComputedRef type asisValidConnectionarg foruseHandlecomposable#954
402da363Thanks @bcakmakoglu! - Use all handles in connection radius and select closest one that is valid#951
b81069e5Thanks @bcakmakoglu! - Set default viewport type as partial
1.20.0
Minor Changes
#931
ecb9b540Thanks @github-actions! - Addparentclass name to parent nodes#931
2e0484b7Thanks @github-actions! - Allow passing a single element toremoveNodesandremoveEdgesactions#931
11210b4cThanks @github-actions! - Add id prop to BaseEdge component and pass id to the edge path#939
fc68db2dThanks @bcakmakoglu! - AddfromObjectfunction to load a graph from a flow export obj#931
0a090681Thanks @github-actions! - Allow passing a single element toaddNodesoraddEdgesactions#931
aef0ec51Thanks @github-actions! - When handles are on top of each other, try to pick the one closest to center and/or one that is of type target
Patch Changes
- #941
a840e73bThanks @bcakmakoglu! - Do not render edges that are connected to a hidden node
1.19.4
Patch Changes
#924
f292bfd6Thanks @bcakmakoglu! - Check if transform has changed in panBy before applying the new transform#923
caafee4eThanks @bcakmakoglu! - Properly reset the store state when using$resetand retain reactivity of store state
1.19.3
Patch Changes
#916
2dec266Thanks @bcakmakoglu! - Check if node exists during drag#910
cbb587fThanks @bcakmakoglu! - Emit pane mouse move event if no active selection exists#909
e823aeaThanks @bcakmakoglu! - Return bool from panBy and use the val to check if auto-pan should be triggered#917
6c32065Thanks @bcakmakoglu! - Prevent orphaned edge warning for edges withdeletable: falsewhen calculating max z-index of edges#915
2cd746aThanks @bcakmakoglu! - Pass selectionKeyCode ref to useKeyPress
1.19.2
Patch Changes
#899
24370a0Thanks @bcakmakoglu! - Fix focus,focus-visible and selected styles not using proper border colors#889
56d7873Thanks @bcakmakoglu! - Set vue flow version as regular string instead of a ref
1.19.1
Patch Changes
#883
ae7bd5aThanks @bcakmakoglu! - Remove defining css var in node type and use the default color of nodes as fallback for css var value#876
e3de507Thanks @bcakmakoglu! - Set default edge options prior to setting elements so the options are applied on initial render of edges as well.
1.19.0
Minor Changes
#859
7faf36acThanks @bcakmakoglu! - Allow CoordinateExtent as range for extended node extent#864
ae41b298Thanks @bcakmakoglu! - Allow passing node ids as string array togetConnectedEdges#856
f9b17f2aThanks @bcakmakoglu! - AddgetConnectedNodesutility function#856
a937af66Thanks @bcakmakoglu! - Allow passing undefined as id tofindNode&findEdge#859
4abd2919Thanks @bcakmakoglu! - Allow passing plain number as padding for extent range#862
dbcbe782Thanks @bcakmakoglu! - AddToGraphNodeandToGraphEdgeutility types
Patch Changes
#863
c3991c75Thanks @bcakmakoglu! - Allow passing regular edge type togetConnectedEdges#862
dbcbe782Thanks @bcakmakoglu! - Add missingTypegeneric to node types#860
cc158716Thanks @bcakmakoglu! - Limit auto-pan when dragging a node by translate extent, so nodes cannot be dragged infinitely into the background.#862
dbcbe782Thanks @bcakmakoglu! - Deprecate class and style funcs for node/edge types#862
dbcbe782Thanks @bcakmakoglu! - Add missingTypegeneric to edge types#865
9ce7bdc4Thanks @bcakmakoglu! - Addexportsfield to package.json
1.18.2
Patch Changes
- #852
8f537196Thanks @bcakmakoglu! - Set handle connectable prop toundefinedas it's default value
1.18.1
Patch Changes
#847
eee41eceThanks @bcakmakoglu! - Use connectionClickStartHandle for click connect#847
25145030Thanks @bcakmakoglu! - Remove duplicate event bindings from handle#843
6320e5e7Thanks @bcakmakoglu! - Add noPanClassName to handles#844
6978468dThanks @bcakmakoglu! - Allow null values to be set for key codes#843
6320e5e7Thanks @bcakmakoglu! - Use fallback for connectableStart and connectableEnd
1.18.0
Minor Changes
#801
74c64ff3Thanks @github-actions! - AddclickConnectStartandclickConnectEndevents#801
fb888b5fThanks @github-actions! - Add type to edge updater anchor class#801
3cc8827cThanks @github-actions! - AddconnectableStartandconnectableEndhandle props. Can be used to enable/disable starting or ending a connection on a specific handle.#840
34b5b7d2Thanks @bcakmakoglu! - Add connection start and end handles to store state#801
ae41dfacThanks @github-actions! - Do not remove orphaned edges from state. They will not be rendered but stay in the state, so a user can potentially fix the edge.
1.17.6
Patch Changes
#833
02125c1Thanks @bcakmakoglu! - Prevent flickering of graph by hiding transformation pane until next frame#835
58d75b0Thanks @bcakmakoglu! - Reset node and edge state before the rest of the state when calling$resetto avoid throwing error
1.17.5
Patch Changes
#825
50f1dffThanks @bcakmakoglu! - Prevent handles with connectablefalsefrom being considered valid handles#826
95dd1aeThanks @bcakmakoglu! - UnwrapnodesConnectableref in onClick handler of handles#828
184c273Thanks @bcakmakoglu! - Fix edges and connection line paths not matching up
1.17.4
Patch Changes
ffc2d17Thanks @bcakmakoglu! - Fix incorrect type export paths
1.17.3
Patch Changes
- #815
15cc769Thanks @bcakmakoglu! - Fix object assign order when parsing node and edge obj
1.17.2
Patch Changes
- #810
3c06fdfbThanks @bcakmakoglu! - Make wheel and touchstart event listeners passive to avoid warnings
1.17.1
Patch Changes
#799
b1e92195Thanks @bcakmakoglu! - Add missing emit definition forerror#796
54ea8a0dThanks @bcakmakoglu! - Fix return type ofgetIncomers&getOutgoers#793
c67e9391Thanks @bcakmakoglu! - Check if node handle bounds exist ingetNodesInitialized#793
ef1c48ceThanks @bcakmakoglu! - Use visible nodes to check ifonNodesInitializedshould be triggered
1.17.0
Minor Changes
#785
7667aa60Thanks @bcakmakoglu! - Allow passing objects with onlyidtogetConnectedEdgesnodes arg#781
ad8c7897Thanks @bcakmakoglu! - AddonErrorhook which allows handling vue flow errors by users. Will default to console.warn if no handler is passed
Patch Changes
- #783
b864c436Thanks @bcakmakoglu! - RemovestopfromEdgeRendereras watcher has been removed and stop refers towindow.stopwhich causes requests to be cancelled when VueFlow is unmounted
1.16.5
Patch Changes
#780
cdaf1e99Thanks @bcakmakoglu! - UseObject.assignwhen parsing node to avoid mutating the original object.#770
f88faac7Thanks @bcakmakoglu! - Fix non-passive wheel event listener violation
1.16.4
Patch Changes
#765
12c84a80Thanks @bcakmakoglu! - Unwrap refs in node wrapper#765
12c84a80Thanks @bcakmakoglu! - RenameparentNodeprop for custom nodes toparentto avoid TypeError which occurs asdivalready hasparentNodedefined which cannot be overwritten
1.16.3
Patch Changes
#756
47b03e75Thanks @bcakmakoglu! - Add missing source and target position values onGraphEdgetype objects if available#759
35b0a0acThanks @bcakmakoglu! - Use render fn for node wrapper. Fixes props being hyphanated instead of camelcase when passed to custom components.
1.16.2
Patch Changes
#751
060202dbThanks @bcakmakoglu! - Use computed properties for edge class and style props#750
e799cf6eThanks @bcakmakoglu! - Correct check if valid connection func was passed
1.16.1
Patch Changes
- #746
73a2b168Thanks @bcakmakoglu! - Downgrade unplugin-auto-import to fix vue types issue
1.16.0
Minor Changes
#745
01e91b68Thanks @bcakmakoglu! - Add handle validation result into store state#744
1bc50addThanks @bcakmakoglu! - Pass targetNode and targetHandle as props to custom connection lines#740
a3ded51fThanks @bcakmakoglu! - Exportclamputility#745
01e91b68Thanks @bcakmakoglu! - AddisValidConnectionprop to allow for validating edge updates or use a global validator for all handles
Patch Changes
- #740
a3ded51fThanks @bcakmakoglu! - Force update node dimensions when ResizeObserver callback is triggered
1.15.5
Patch Changes
#734
123ad512Thanks @bcakmakoglu! - Check if handle is connectable before trying to validate#737
f2b3cd87Thanks @bcakmakoglu! - Blur node element after unselecting
1.15.4
Patch Changes
- #728
6b149ca6Thanks @bcakmakoglu! - Compare internal node dimensions against calculated ones when trying to update node dimensions
1.15.3
Patch Changes
#720
bac0d735Thanks @bcakmakoglu! - Remove duplicate connectStart and connectEnd emits#719
18b934ebThanks @bcakmakoglu! - prevent selecting nodes when node selectable is false#719
a4b0b6b7Thanks @bcakmakoglu! - Make shouldReplaceId arg in updateEdge optional#719
7a2f1c3bThanks @bcakmakoglu! - Add noPanClassName when node is draggable#719
16bd9152Thanks @bcakmakoglu! - Wait until all nodes are initialized before triggering viewport actions
1.15.2
Patch Changes
#716
1685827dThanks @bcakmakoglu! - Fix umd pkg names and use the correct vue flow core umd pkg name in plugins#713
95b51a0eThanks @bcakmakoglu! - Prevent undefined being passed to updateNodeInternals#712
76256439Thanks @bcakmakoglu! - Fix resize-observer throwing when node el doesn't exist but effect is run#707
e8c383ffThanks @bcakmakoglu! - Fix nodes not using zIndex option#716
1685827dThanks @bcakmakoglu! - Prevent writingprocess.envinto umd build#714
1fa4ee1bThanks @bcakmakoglu! - Wait until viewport helper is initialized before triggering viewport functions and pane ready event
1.15.1
Patch Changes
#704
b3462f2Thanks @bcakmakoglu! - Remove export ofSelectionPaneas the component doesn't exist anymore#703
0838d2cThanks @bcakmakoglu! - Downgrade auto imports. Fixes broken type imports.
1.15.0
Minor Changes
#684
a788cc0Thanks @bcakmakoglu! - Add option to enable/disable replacing edge id whenupdateEdgeaction is used#699
c1a7995Thanks @bcakmakoglu! - Omit internal properties when usingtoObject
Patch Changes
#667
231271aThanks @bcakmakoglu! - Prevent layout shift on initial render by hiding viewport until initial nodes have width/height#667
89198bdThanks @bcakmakoglu! - Remove Promises from viewport helper functions, will not await viewport anymore but instead return no-op functions if called too early#695
616e795Thanks @bcakmakoglu! - Use snapGrid values to clamp initial node positions
1.14.3
Patch Changes
#671
c47bc5ceThanks @bcakmakoglu! - Fit view on init is now triggered as soon as node dimensions are updated for the first time#682
b08cb4d4Thanks @bcakmakoglu! - Add compat mode to components to avoid breaking when used with @vue/compat03edd46cThanks @bcakmakoglu! - Allow depr. connectionLineType to be null03edd46cThanks @bcakmakoglu! - Add missing straight type to connection line options#680
70ae3410Thanks @bcakmakoglu! - Fix connections for handles that are bigger than the specified connection radius#680
70ae3410Thanks @bcakmakoglu! - Always emit edge update event03edd46cThanks @bcakmakoglu! - Fix connection line not rendering properly when destructuring slot props#681
d73995aaThanks @bcakmakoglu! - Setuser-select: nonefor edge labels#668
d39c63e5Thanks @bcakmakoglu! - Avoid re-rendering edges that have been deleted
1.14.2
Patch Changes
#663
05a3e26eThanks @bcakmakoglu! - Avoid triggering edge update when mouse button is not left#658
b8ad4458Thanks @bcakmakoglu! - WhenincludeHiddenNodesis false, exclude hidden nodes when using fitView#660
0dbabfc5Thanks @bcakmakoglu! - Use default values when defaultViewport vals are missing
1.14.1
Patch Changes
#655
3d958dfeThanks @bcakmakoglu! - Check if prev closest handle exists in pointer up handler#656
b3796a66Thanks @bcakmakoglu! - Store connectionStatus when using connection actions
1.14.0
Minor Changes
#654
99909f16Thanks @bcakmakoglu! - AddVueFlowErrorclass which is used when throwing#649
47bc8280Thanks @bcakmakoglu! - AddconnectionStatusto connection lines, which can be used to check if the connection line is used on a valid handle.
Patch Changes
#650
aaf46dc2Thanks @bcakmakoglu! - Addvalidandconnectingclass names instead ofvue-flow__handle-validandvue-flow__handle-connecting(old class names kept for backwards compatibility but will be removed in the future)#653
64e9dc3cThanks @bcakmakoglu! - Draw connection lines to opposite position#651
c0d172beThanks @bcakmakoglu! - When a node is not draggable, avoid dragging it when using a selection box#650
aaf46dc2Thanks @bcakmakoglu! - Fix ios connection error
1.13.2
Patch Changes
- #643
210b702bThanks @bcakmakoglu! - Properly access default edge options ref when passing options to theconnectevent
1.13.1
Patch Changes
- #641
f5eaa4ccThanks @bcakmakoglu! - Pass missing valid connection function params
1.13.0
Minor Changes
#639
ad2b09f1Thanks @bcakmakoglu! - Allow settingGraphNodeorGraphEdgetype with a generic type#629
c7cfcec7Thanks @bcakmakoglu! - AddconnectionRadiusoption to global options and handle props. You can use this option to set the radius at which a connection line will snap to the closest available handle.#613
7abd0bfdThanks @bcakmakoglu! - Export edge center utilsgetSimpleEdgeCenter&getBezierEdgeCenterfrom core#634
b59dd6a7Thanks @bcakmakoglu! - Add autopan options. Pans viewport on node drag and/or when drawing a connection line.Usage
tsuseVueFlow({ autoPanOnNodeDrag: true, autoPanOnConnect: true, });vue<VueFlow v-model="elements" :autoPanOnNodeDrag="true" :autoPanOnConnect="true" />#636
e1628ec6Thanks @bcakmakoglu! - ExportisGraphNodeandisGraphEdgetypeguards
Patch Changes
- #634
b59dd6a7Thanks @bcakmakoglu! - Throw warning if viewport dimensions are 0
1.12.7
Patch Changes
- #627
19360c52Thanks @bcakmakoglu! - Hide node selection box when no selected nodes exist
1.12.6
Patch Changes
#624
0bddb524Thanks @bcakmakoglu! - Add warning when trying to duplicate an element or remove an element that does not exist#626
449a3f2aThanks @bcakmakoglu! - Removeextentoption fromsetNodes&addNodesaction. Extent should be passed to a node or set with the global option.#626
449a3f2aThanks @bcakmakoglu! - Use computed var to get current node inuseDrag. Fixes issue where overwriting a node breaks drag handler.
1.12.5
Patch Changes
#622
512eb176Thanks @bcakmakoglu! - If node extent is set to parent, wait until node is initialized to clamp position#622
512eb176Thanks @bcakmakoglu! - Regroup edges when nodes change and elevate edges on select is active#622
d79e2a42Thanks @bcakmakoglu! - Wait for parent node to be initialized before applying an initial expansion of the parent node#622
73de601fThanks @bcakmakoglu! - Pass initialized nodes in theonNodesInitializedhook
1.12.4
Patch Changes
#619
3d482b77Thanks @bcakmakoglu! - Use timeout when clamping positions after nodes' extent has changed#618
f1975ea7Thanks @bcakmakoglu! - Do not trigger ctx menu event on viewport when dragging with right mouse button
1.12.3
Patch Changes
#616
b16e3564Thanks @bcakmakoglu! - Upgrade to vite 4 & update deps#615
d8fe5432Thanks @bcakmakoglu! - Support key combinations for keycodes. Combinations can be passed using an array of keycodes and concatenated with a plus sign. For example:['A+B']will trigger when A and B are pressed at the same time.#614
580de340Thanks @bcakmakoglu! - Keep user selection on right click
1.12.2
Patch Changes
#610
01040099Thanks @bcakmakoglu! - Always handle keyup events, instead of cancelling when focusing an input dom node#611
8dbdcae2Thanks @bcakmakoglu! - Check if position is a number when updating, instead of checking if the value is truthy. Fixes 0 values not being used when updating.
1.12.1
Patch Changes
#607
45851080Thanks @bcakmakoglu! - Place default slot content outside of viewport element#605
e670f465Thanks @bcakmakoglu! - Let keydown event bubble up from node wrapper instead of preventing default
1.12.0
Minor Changes
- #600
072fd911Thanks @bcakmakoglu! - AddzIndexoption to nodes and edges. Allows defining stacking order of elements.
1.11.1
Patch Changes
- #597
749175b9Thanks @bcakmakoglu! - Addfocusandfocus-visiblestyles to avoid browser specific styles on default nodes
1.11.0
Minor Changes
- #595
0c784a2Thanks @bcakmakoglu! - Adddeletableoption to nodes and edges. If set to false it will prevent nodes and edges to be removed whenremoveNodesorremoveEdgesis triggered
Patch Changes
#593
da65c54Thanks @bcakmakoglu! - Prevent elements that have selectable disabled from being selected#590
89d2415Thanks @bcakmakoglu! - Skip updating positions whenupdateNodeInternalsis triggered - it will only update node dimensions (which can trigger a position update)#590
72f9f1aThanks @bcakmakoglu! - Use flush timingprefor NodeWrapper watchers
1.10.3
Patch Changes
- #586
c0f31a2Thanks @bcakmakoglu! - Check if element is still in state before attempting removal when applying removal changes
1.10.2
Patch Changes
#584
17cd5bcThanks @bcakmakoglu! - Set initial node position correctly after applying node extent#583
0c25796Thanks @bcakmakoglu! - Fix type exports using path alias instead of relative paths, which causes types to not be inferred on user-side
1.10.1
Patch Changes
- #581
ea5c35eThanks @bcakmakoglu! - Re-calculate position when node extent changes
1.10.0
Minor Changes
#579
b8d3241Thanks @bcakmakoglu! - Allow settingpaddingoption fornode.extent: 'parent'Padding can be a
number[]containing a maximum of 4 values. The values are applied in the same order as CSS padding: top, right, bottom, left. You can omit values at the end of the array, so[10, 20]is equivalent to[10, 20, 10, 20]etc.Usage
jsconst nodes = ref([ { id: "4", label: "Node 4", position: { x: 320, y: 200 }, style: { backgroundColor: "rgba(255, 0, 0, 0.7)", width: "300px", height: "300px", }, }, { id: "4a", label: "Node 4a", position: { x: 15, y: 65 }, class: "light", extent: { range: "parent", // apply 10 px padding to all four sides padding: [10], }, parentNode: "4", }, ]);
Patch Changes
- #578
c0d9018Thanks @bcakmakoglu! - Allow omitting width and height style properties for parent nodes when usingexpandParenton child nodes
1.9.4
Patch Changes
#574
1160d3dThanks @bcakmakoglu! - Fix props being undefined on first render of custom node and edge components#574
1160d3dThanks @bcakmakoglu! - Removenodesproperty fromConnectionLineProps- usegetNodesinside the component instead ⚠️
1.9.3
Patch Changes
5402c0eThanks @bcakmakoglu! - Use correct aria live class names for vue-flow
1.9.2
Patch Changes
- #566
b324a06Thanks @bcakmakoglu! - Fix edge component prop types
1.9.1
Patch Changes
- #561
2979febThanks @bcakmakoglu! - Fix slots type regression
1.9.0
Minor Changes
#557
c7897a1Thanks @bcakmakoglu! - Allow customizing the controls of the viewport and the selection box.Props
selectionKeyCode: You can now set this toMaybeRef<boolean>to enable a selection box without extra button press (need to set:pan-on-drag="false"or:pan-on-drag="[2]"[RightClick]).panOnDrag: Can now be a boolean or a number[], this allows you to configure every mouse button as a drag button. [1, 2] would mean that you can drag via middle and right mouse button.panActivationKeyCode: Key code (or KeyFilter) for activating dragging (useful when using selectionOnDrag).selectionMode: You can choose if the selection box needs to contain a node fully (SelectionMode.Full) or partially (SelectionMode.Partial) to select.
Events
onSelectionStart: Emitted when the selection box is started.onSelectionEnd: Emitted when the selection box is ended.onViewportChangeStart: Emitted when viewport change has started.onViewportChange: Emitted when viewport is changed.onViewportChangeEnd: Emitted when viewport change has ended.
Patch Changes
#558
bac9893Thanks @bcakmakoglu! - ⚠️ Deprecate options API utilsaddEdgeandupdateEdge. These utils will be removed soon!Resolve deprecation warnings
Instead of using these utils, use
addEdgesandupdateEdgefound on the VueFlow store instance. You receive a store instance by using either a template-ref or listening to theonPaneReadyevent.Example
vue<script> import { VueFlow } from "@vue-flow/core"; export default defineComponent({ name: "OptionsAPIExample", components: { VueFlow }, data() { return { vueFlow: null, instance: null, elements: [ { id: "1", type: "input", label: "Node 1", position: { x: 250, y: 5 }, class: "light", }, { id: "2", label: "Node 2", position: { x: 100, y: 100 }, class: "light", }, { id: "3", label: "Node 3", position: { x: 400, y: 100 }, class: "light", }, { id: "4", label: "Node 4", position: { x: 400, y: 200 }, class: "light", }, { id: "e1-2", source: "1", target: "2", animated: true }, { id: "e1-3", source: "1", target: "3" }, ], }; }, methods: { // You can listen to `onPaneReady` to get the instance onPaneReady(instance) { instance.fitView(); this.instance = instance; }, onConnect(params) { // either use the instance you have saved in `onPaneReady` this.instance?.addEdges([params]); // or use the template-ref this.$refs.vueFlow?.addEdges([params]); }, }, }); </script> <template> <VueFlow v-model="elements" ref="vueFlow" class="vue-flow-basic-example" :default-zoom="1.5" :min-zoom="0.2" :max-zoom="4" :zoom-on-scroll="false" @connect="onConnect" @pane-ready="onPaneReady" /> </template>#557
c7897a1Thanks @bcakmakoglu! - Add a11y support to selection box
1.8.0
Minor Changes
#544
cf46cc8Thanks @bcakmakoglu! - Add keyboard controls to node wrapper (a11y)#554
9e7f65aThanks @bcakmakoglu! - MergedefaultZoom&defaultPositionintodefaultViewportobject#544
2341b9bThanks @bcakmakoglu! - AdddisableKeyboardA11yoption to VueFlow props and store options#544
2341b9bThanks @bcakmakoglu! - Addfocusableoption to edge types#544
2341b9bThanks @bcakmakoglu! - AddariaLabeloption to edge type#544
2341b9bThanks @bcakmakoglu! - AddedgesFocusableoption to store#544
cf46cc8Thanks @bcakmakoglu! - AddnodesFocusableoption to VueFlow props and store options#544
2341b9bThanks @bcakmakoglu! - AddpathOptionsto Bezier and Smoothstep edge types
Patch Changes
#544
cf46cc8Thanks @bcakmakoglu! - AddariaLabeloption to node type#554
545ab07Thanks @bcakmakoglu! - Clamp invalid zoom values#556
699d786Thanks @bcakmakoglu! - PreventexpandParentoption from changing parent nodes position while expanding#553
cd4e056Thanks @bcakmakoglu! - Renameviewpanetoviewport->ViewpaneTransformnowViewportTransform#544
cf46cc8Thanks @bcakmakoglu! - Addfocusableoption to node type#544
2341b9bThanks @bcakmakoglu! - AddvueFlowIdtogetMarkerIdto uniquely identify markers across multiple vue flow instances#544
2341b9bThanks @bcakmakoglu! - UpdateEdgeRefinjection type toSVGElement
A11y
This release brings A11y support to Vue Flow. All nodes and edges can now receive a focusable and ariaLabel prop, which can be used to enhance A11y experience. You can also enable focusable globally by using nodesFocusable or edgesFocusable. Additionally, nodes can be moved using keyboard controls (Arrow-Keys).
Props
disableKeyboardA11y: Use this prop to disable Keyboard controls on the graph.defaultViewport: The olddefaultZoomanddefaultPositionprops have been merged into a single object calleddefaultViewport.nodesFocusable: Globally enable that nodes can be focused.edgesFocusable: Globally enable that edges can be focused.
Elements
focusable: Enable focusing for a single node/edge by setting this option.ariaLabel: Specify an aria label for a node/edge
1.7.2
Patch Changes
#547
ccf10ffThanks @bcakmakoglu! - Make label coords (x,y) optional in BaseEdge#551
2f187a0Thanks @bcakmakoglu! - Fix input field focus inside nodes preventing selection rect to be created#550
b734d08Thanks @bcakmakoglu! - AddelevateNodesOnSelectoption to enable/disable increasing z-index of selected nodes#548
011f0edThanks @bcakmakoglu! - Re-group edges by z-index on edge selection changes
1.7.1
Patch Changes
#545
54c93b9Thanks @bcakmakoglu! - Remove immediate watch of VueFlow props and set prop values via state initalizer#545
54c93b9Thanks @bcakmakoglu! - Only trigger store watcher immediate when elements were set, otherwise wait for changes in store to overwrite model-value
1.7.0
Minor Changes
- #539
85d5a64dThanks @bcakmakoglu! - AddgetNodesInitializedgetter to store
Patch Changes
#539
85d5a64dThanks @bcakmakoglu! - MakesourceHandleandtargetHandleoptional properties forConnectiontype#542
530f286cThanks @bcakmakoglu! - Move watcher timing topreand sync immediately
1.6.4
Patch Changes
#536
fc231becThanks @bcakmakoglu! - Fix watcher not triggered when passing an empty array#537
4ec39fb0Thanks @bcakmakoglu! - Fix node resizer resizing not updating handle bounds
1.6.3
Patch Changes
#534
f0f7e7e4Thanks @bcakmakoglu! - Add missing edge class to edge wrapper#534
02c945e8Thanks @bcakmakoglu! - Pass attributes to edge components (i.e. style and class forwarded to BaseEdge)#532
cd778715Thanks @bcakmakoglu! - Usevue-flow__handlein handle bounds selector to avoid selecting elements with thesourceortargetclass names that aren't handles
1.6.2
Patch Changes
#529
92fe1022Thanks @bcakmakoglu! - Fix store watcher not being triggered whenaddNodesoraddEdgesis called#530
262bc42bThanks @bcakmakoglu! - Remove forced update on resize observer trigger of updateNodeDimensions
1.6.1
Patch Changes
#525
eae81603Thanks @bcakmakoglu! - Addinitializedprop toGraphNode#525
eae81603Thanks @bcakmakoglu! - Fix Handle component adding duplicate handlebounds when node is not properly initialized#526
00a9795aThanks @bcakmakoglu! - Remove console log
1.6.0
Minor Changes
#498
1739797cThanks @bcakmakoglu! - AdduseGetPointerPositioncomposable#519
306cd3daThanks @bcakmakoglu! - Move Panel component to core package
Patch Changes
#498
1739797cThanks @bcakmakoglu! - Makedraggingflag optional in position change type#498
1739797cThanks @bcakmakoglu! - Make dimensions optional in dimensions change type#521
f50644ffThanks @bcakmakoglu! - Remove Controls component styles from default theme#498
1739797cThanks @bcakmakoglu! - Adddragging,selectedandresizingflags toGraphNodetype#498
1739797cThanks @bcakmakoglu! - Allow multiple changes to be applied to element at once#519
e5829e8dThanks @bcakmakoglu! - Remove minimap styles from core package default-theme
1.5.11
Patch Changes
#517
440186d2Thanks @bcakmakoglu! - Add missingdraggingprop toGraphNodetype#515
639245b1Thanks @bcakmakoglu! - Remove console log from watcher
1.5.10
Patch Changes
1a4a2a62Thanks @bcakmakoglu! - Add missing dragging flag (release failed)
1.5.9
Patch Changes
ac8c2573Thanks @bcakmakoglu! - Add missing dragging flag to nodes
1.5.8
Patch Changes
#509
5b748a66Thanks @bcakmakoglu! - Fix handle prop connectable always falling back to true, even when explicitly set to false#511
88b0e34cThanks @bcakmakoglu! - Prevent store watcher from being stopped on cleanup of model watcher
1.5.7
Patch Changes
#501
ccff5b8bThanks @bcakmakoglu! - Fix watcher not triggering with theonMountedhook#506
7abc3956Thanks @bcakmakoglu! - Child nodes not properly using parent dimensions when extent is set toparent
1.5.6
Patch Changes
#497
50e59604Thanks @bcakmakoglu! - Separate store and model watchers from each other and allow them to be triggered after init#496
1ca8c2a9Thanks @bcakmakoglu! - Make nodes and edges deeply reactive objects, so that data changes can trigger v-model changes as well
1.5.5
Patch Changes
#494
50a24e4Thanks @bcakmakoglu! - Apply translateExtent on pan#492
715a070Thanks @bcakmakoglu! - Properly calculate node extent on drag#491
47ad11dThanks @bcakmakoglu! - Set dragging flag only if a position change happened
1.5.4
Patch Changes
#486
912da4dThanks @bcakmakoglu! - Prevent valid connections on same node and same handle#485
7ba6215Thanks @bcakmakoglu! - Allow middle mouse pan over edges#481
aed0845Thanks @bcakmakoglu! - AddHandleConnectableFunctype#483
9326c58Thanks @bcakmakoglu! - Remove barrel files and use auto-imports instead (internal change)#479
c673b04Thanks @bcakmakoglu! - TypemarkerEndandmarkerStartinEdgeProps
1.5.3
Patch Changes
- #474
9568794Thanks @bcakmakoglu! - Fix untyped connection line, node and edge slots props by patching type definition after build
1.5.2
Patch Changes
#466
051dcc4Thanks @bcakmakoglu! - usereactiveinstead ofshallowReactivefor nested node/edge properties#462
7dfceb2Thanks @bcakmakoglu! - Fix model watcher overwriting empty state when setting elementonMountedhook#465
c56ee5aThanks @bcakmakoglu! - Allownullas key-code
1.5.1
Patch Changes
#459
649bdb9Thanks @bcakmakoglu! - Add nullish check for node/edge events object to prevent err if undefined#454
fc15fa3Thanks @bcakmakoglu! - Update model-value regardless of element arr length
1.5.0
Minor Changes
#435
1cca3d0Thanks @bcakmakoglu! - Addconnectingclass toSelectionPanewhen connecting#451
6047b90Thanks @bcakmakoglu! - Support touch for creating connections#449
686b351Thanks @bcakmakoglu! - Add experimental support for nested Vue Flow components; Align edges by adding parent flow zoom scale. Connections not supported.
Patch Changes
#452
5303f10Thanks @bcakmakoglu! - Fix parent expand not working for top/left drag#449
686b351Thanks @bcakmakoglu! - AddexperimentalFeaturesflag to store
1.4.2
Patch Changes
#439
817884eThanks @bcakmakoglu! - Elevate selected nodes zIndex by 1000 instead to 1000#448
3a09339Thanks @bcakmakoglu! - Elevate child nodes by zIndex +1#447
06fc9f2Thanks @bcakmakoglu! - Fix initial node extent not applied
1.4.1
Patch Changes
#425
da0a294Thanks @bcakmakoglu! - Update deps#434
b24b9efThanks @bcakmakoglu! - Fix improper if clause when checking for selection key code as bool#429
1fc60bfThanks @bcakmakoglu! - When Connection Mode isLoose, use all handles as possible source handles for connection lines#433
d82cb67Thanks @bcakmakoglu! - Add missingconnectionExistsutility export
1.4.0
Minor Changes
- #360
a11edaeThanks @bcakmakoglu! - AddinteractionWidthprop to edges. Sets radius of pointer interactivity for edges
1.3.3
Patch Changes
- #412
630434dThanks @bcakmakoglu! - Use node name as class name
1.3.2
Patch Changes
#407
2874cd9Thanks @bcakmakoglu! - Prevent default edge options overwriting actual edge values#407
7908e02Thanks @bcakmakoglu! - Fall back to default edge or node type if custom type cannot be resolved#389
6e0dd5bThanks @bcakmakoglu! - Place Vue Flow Container in it's own stacking context
1.3.1
Patch Changes
#402
d7ade98Thanks @bcakmakoglu! - Useevent.composedPathas event target when checking for input dom nodes#403
8930d2eThanks @bcakmakoglu! - Stop reset of user-selection rect on mouse leave event#398
43953c9Thanks @bcakmakoglu! - Upgrade to vite 3
1.3.0
Minor Changes
#394
1403b65Thanks @bcakmakoglu! - AddnodesInitializedevent hook#387
9530290Thanks @bcakmakoglu! - Pass node intersections to node drag events (on single node drag)#387
a19b458Thanks @bcakmakoglu! - Add intersection utils to help with checking if a node intersects with either other nodes or a given areaUsage
- You can either use the action
getIntersectingNodesto find all nodes that intersect with a given node
jsconst { onNodeDrag, getIntersectingNodes, getNodes } = useVueFlow(); onNodeDrag(({ node }) => { const intersections = getIntersectingNodes(node).map((n) => n.id); getNodes.value.forEach((n) => { // highlight nodes that are intersecting with the dragged node n.class = intersections.includes(n.id) ? "highlight" : ""; }); });- Node drag events will provide you with the intersecting nodes without having to call the action explicitly.
jsonNodeDrag(({ intersections }) => { getNodes.value.forEach((n) => { n.class = intersections?.some((i) => i.id === n.id) ? "highlight" : ""; }); });- Or you can use the
isIntersectingutil to check if a node intersects with a given area
jsconst { onNodeDrag, isNodeIntersecting } = useVueFlow(); onNodeDrag(({ node }) => { // highlight the node if it is intersecting with the given area node.class = isNodeIntersecting(node, { x: 0, y: 0, width: 100, height: 100, }) ? "highlight" : ""; });- You can either use the action
#396
03412acThanks @bcakmakoglu! - Add zoomable and pannable to MiniMapUsage
- Set
zoomableandpannabletotrueinMiniMapcomponent to enable interactions with the MiniMap
vue<template> <VueFlow v-model="elements"> <MiniMap :zoomable="true" :pannable="true" /> </VueFlow> </template>- Set
Patch Changes
#361
43ff2a4Thanks @bcakmakoglu! - AddEdgeLabelRenderercomponent exportUsage
- You can use the
EdgeLabelRenderercomponent to render the label of an edge outside the SVG context of edges. - The
EdgeLabelRenderercomponent is a component that handles teleporting your edge label into a HTML context - This is useful if you want to use HTML elements in your edge label, like buttons
vue<script lang="ts" setup> import type { EdgeProps, Position } from "@vue-flow/core"; import { EdgeLabelRenderer, getBezierPath, useVueFlow } from "@vue-flow/core"; import type { CSSProperties } from "vue"; interface CustomEdgeProps<T = any> extends EdgeProps<T> { id: string; sourceX: number; sourceY: number; targetX: number; targetY: number; sourcePosition: Position; targetPosition: Position; data: T; markerEnd: string; style: CSSProperties; } const props = defineProps<CustomEdgeProps>(); const { removeEdges } = useVueFlow(); const path = $computed(() => getBezierPath(props)); </script> <script lang="ts"> export default { inheritAttrs: false, }; </script> <template> <path :id="id" :style="style" class="vue-flow__edge-path" :d="path[0]" :marker-end="markerEnd" /> <EdgeLabelRenderer> <div :style="{ pointerEvents: 'all', position: 'absolute', transform: `translate(-50%, -50%) translate(${path[1]}px,${path[2]}px)`, }" class="nodrag nopan" > <button class="edgebutton" @click="removeEdges([id])">×</button> </div> </EdgeLabelRenderer> </template> <style> .edgebutton { border-radius: 999px; cursor: pointer; } .edgebutton:hover { box-shadow: 0 0 0 2px pink, 0 0 0 4px #f05f75; } </style>- You can use the
1.2.2
Patch Changes
#388
76ad5838Thanks @bcakmakoglu! - Always set handle ids (using auto-generated id if none is passed)#388
ffe65636Thanks @bcakmakoglu! - skip connectable for handles unrelated to connected edges#392
fcffd492Thanks @bcakmakoglu! - Use all handles, regardless of type, when ConnectionMode isLoose
1.2.1
Patch Changes
#378
9089861cThanks @bcakmakoglu! - Disable user selection ifelementsSelectableis false#378
9089861cThanks @bcakmakoglu! - Prevent node selection box from appearing before mouseup#380
2c3ea836Thanks @bcakmakoglu! - Use shallowRef for node/edge data and event objects so they trigger a re-render on custom nodes/edges
1.2.0
Minor Changes
- #123
3105bd0Thanks @bcakmakoglu! - Disable console warnings for production node-envs
1.1.4
Patch Changes
#353
8f95187Thanks @bcakmakoglu! - Allow undefined as custom theme var value#349
61d2b88Thanks @bcakmakoglu! - Node and Edge data and events to be definitely typed when passed as NodeProps or EdgeProps#352
bff576bThanks @bcakmakoglu! - Addoverflow: visibleto control btn svgs (fixes safari bug where svgs aren't showing up)#349
61d2b88Thanks @bcakmakoglu! - Extend Elements/FlowElements generics to differentiate between Node and Edge data and custom events#349
61d2b88Thanks @bcakmakoglu! - Add Generic to isNode and isEdge helpers#350
92a69a6Thanks @bcakmakoglu! - Set nodes' dragging prop on drag start and end (fixes grabbing hand not showing on mousedown / not disappearing on mouseup)
1.1.3
Patch Changes
- #342
72c203eThanks @bcakmakoglu! - Fix edge text not calculating dimensions properly
1.1.2
Patch Changes
#337
12d9f79Thanks @bcakmakoglu! - Add dragging class to nodes ondraginstead ofdragStart#341
d2ed19eThanks @bcakmakoglu! - Pass edge styles to edge path element949d19fThanks @bcakmakoglu! - Fix edge texts not properly aligning to center#333
8583e13Thanks @bcakmakoglu! - Add missing dragging class to pane#336
1aaac25Thanks @bcakmakoglu! - Elements not properly unselected when clicking node and edge afterwards
1.1.1
Patch Changes
#328
1e5a77d6Thanks @bcakmakoglu! - Preventmouseuphandler from resettingstartHandlebefore connections can be made when usingconnectOnClick#328
18a812dbThanks @bcakmakoglu! - Passingsingleoption breaksconnectablecheck when no handle ids are set- Pass
connectableto correct handle prop in default node types
- Pass
#328
a415353bThanks @bcakmakoglu! - Adddraggingclass name to pane on drag
1.1.0
Minor Changes
#311
78f9ee1cThanks @bcakmakoglu! - # What's changed?- Add
HandleConnectabletype - Update
connectableprop ofHandletoHandleConnectabletype - Allow to specify if Handles are connectable
- any number of connections
- none
- single connection
- or a cb to determine whether the Handle is connectable
Example:
vue<script lang="ts" setup> import { Handle, HandleConnectable } from "@vue-flow/core"; const handleConnectable: HandleConnectable = (node, connectedEdges) => { console.log(node, connectedEdges); return true; }; </script> <template> <!-- single connection --> <Handle type="target" position="left" connectable="single" /> <div>Custom Node</div> <!-- cb --> <Handle id="a" position="right" :connectable="handleConnectable" /> </template>- Update
node.connectableprop toHandleConnectable
For Example:
jsconst nodes = ref([ { id: "1", position: { x: 0, y: 0 }, connectable: "single", // each handle is only connectable once (default node for example) }, { id: "2", position: { x: 200, y: 0 }, connectable: (node, connectedEdges) => { return true; // will allow any number of connections }, }, { id: "3", position: { x: 400, y: 0 }, connectable: true, // will allow any number of connections }, { id: "4", position: { x: 200, y: 0 }, connectable: false, // will disable handles }, ]);- Add
Patch Changes
#311
e175cf81Thanks @bcakmakoglu! - # What's changed?- Add
vueflowpkg that exports all features
vue<script setup> // `vueflow` pkg exports all features, i.e. core + additional components import { VueFlow, Background, MiniMap, Controls } from "vueflow"; </script> <template> <VueFlow> <Background /> <MiniMap /> <Controls /> </VueFlow> </template>Chores
- Rename
corepkg directory tocorefromvue-flow - Rename bundle outputs
- Add
#311
e1c28a26Thanks @bcakmakoglu! - # What's changed?- Simplify
useHandleusage - Pass props to the composable as possible refs
- Still returns onClick & onMouseDown handlers but only expects mouse event now
Before:
vue<script lang="ts" setup> import { useHandle, NodeId } from "@vue-flow/core"; const nodeId = inject(NodeId); const handleId = "my-handle"; const type = "source"; const isValidConnection = () => true; const { onMouseDown } = useHandle(); const onMouseDownHandler = (event: MouseEvent) => { onMouseDown( event, handleId, nodeId, type === "target", isValidConnection, undefined ); }; </script> <template> <div @mousedown="onMouseDownHandler" /> </template>After:
vue<script lang="ts" setup> import { useHandle, useNode } from "@vue-flow/core"; const { nodeId } = useNode(); const handleId = "my-handle"; const type = "source"; const isValidConnection = () => true; const { onMouseDown } = useHandle({ nodeId, handleId, isValidConnection, type, }); </script> <template> <div @mousedown="onMouseDown" /> </template>- Simplify
#311
08ad1735Thanks @bcakmakoglu! - # Bugfixes- Edges not returned by getter when
paneReadyevent is triggered
- Edges not returned by getter when
1.0.0
Major Changes
#305
939bff50Thanks @bcakmakoglu! - # What's changed?- Simplify edge path calculations
- remove
getEdgeCenterandgetSimpleEdgeCenter
- remove
Breaking Changes
getEdgeCenterhas been removed- Edge center positions can now be accessed from
getBezierPathorgetSmoothStepPathfunctions
- Edge center positions can now be accessed from
Before:
jsimport { getBezierPath, getEdgeCenter } from "@braks/vue-flow"; // used to return the path string only const edgePath = computed(() => getBezierPath(pathParams)); // was necessary to get the centerX, centerY of an edge const centered = computed(() => getEdgeCenter(centerParams));After:
jsimport { getBezierPath } from "@vue-flow/core"; // returns the path string and the center positions const [path, centerX, centerY] = computed(() => getBezierPath(pathParams));- Simplify edge path calculations
#305
47d837aaThanks @bcakmakoglu! - # What's changed?- Change pkg scope from 'braks' to 'vue-flow'
- Add
@vue-flow/corepackage - Add
@vue-flow/additional-componentspackage - Add
@vue-flow/pathfinding-edgepackage - Add
@vue-flow/resize-rotate-nodepackage
- Add
Features
useNodeanduseEdgecomposables- can be used to access current node/edge (or by id) and their respective element refs (if used inside the elements' context, i.e. a custom node/edge)
selectionKeyCodeastrue- allows for figma style selection (i.e. create a selection rect without holding shift or any other key)
- Handles to trigger handle bounds calculation on mount
- if no handle bounds are found, a Handle will try to calculate its bounds on mount
- should remove the need for
updateNodeInternalson dynamic handles
- Testing for various features using Cypress 10
Bugfixes
- Fix
removeSelectedEdgesandremoveSelectedNodesactions not properly removing elements from store
Breaking Changes
@vue-flow/corepackage is now required to use vue-flow@vue-flow/additional-componentspackage containsBackground,MiniMapandControlscomponents and related types- When switching to the new pkg scope, you need to change the import path.
Before:
jsimport { VueFlow, Background, MiniMap, Controls } from "@braks/vue-flow";After
jsimport { VueFlow } from "@vue-flow/core"; import { Background, MiniMap, Controls, } from "@vue-flow/additional-components";- Change pkg scope from 'braks' to 'vue-flow'