NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
[](https://vueflow.dev/)   : pass valid connection func params by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/641
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.13.0...v1.13.1
f5eaa4cc Thanks @bcakmakoglu! - Pass missing valid connection function paramsYour coding agent can read these notes before it upgrades. Set up the MCP server →
feat(core): export getSimpleEdgeCenter & getBezierEdgeCenter by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/613
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.12.7...v1.13.0
getSimpleEdgeCenter & getBezierEdgeCenter (492de08)isGraphNode & isGraphEdge typeguards (6ea6034)panBy action to store (7dba01d)#639 ad2b09f1 Thanks @bcakmakoglu! - Allow setting GraphNode or GraphEdge type with a generic type
#629 c7cfcec7 Thanks @bcakmakoglu! - Add connectionRadius option 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 7abd0bfd Thanks @bcakmakoglu! - Export edge center utils getSimpleEdgeCenter & getBezierEdgeCenter from core
#634 b59dd6a7 Thanks @bcakmakoglu! - Add autopan options. Pans viewport on node drag and/or when drawing a connection line.
useVueFlow({
autoPanOnNodeDrag: true,
autoPanOnConnect: true,
});
<VueFlow
v-model="elements"
:autoPanOnNodeDrag="true"
:autoPanOnConnect="true"
/>
#636 e1628ec6 Thanks @bcakmakoglu! - Export isGraphNode and isGraphEdge typeguards
b59dd6a7 Thanks @bcakmakoglu! - Throw warning if viewport dimensions are 0fix(core): hide node selection if no selected nodes exist by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/627
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.12.6...v1.12.7
19360c52 Thanks @bcakmakoglu! - Hide node selection box when no selected nodes existrefactor(core): add warning if trying to duplicate an element by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/624
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.12.5...v1.12.6
removeSelectedNodes in click handler (f0d4763)extent option for setNodes & addNodes (994ae82)#624 0bddb524 Thanks @bcakmakoglu! - Add warning when trying to duplicate an element or remove an element that does not exist
#626 449a3f2a Thanks @bcakmakoglu! - Remove extent option from setNodes & addNodes action. Extent should be passed to a node or set with the global option.
#626 449a3f2a Thanks @bcakmakoglu! - Use computed var to get current node in useDrag. Fixes issue where overwriting a node breaks drag handler.
fix(core): re-group edges when nodes change by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/622
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.12.4...v1.12.5
parent (19582de)updatePosition to clampPosition (3e11a31)getNode with findNode (203b481)getNodesInitialized has same length as nodes state (d741bd1)#622 512eb176 Thanks @bcakmakoglu! - If node extent is set to parent, wait until node is initialized to clamp position
#622 512eb176 Thanks @bcakmakoglu! - Regroup edges when nodes change and elevate edges on select is active
#622 d79e2a42 Thanks @bcakmakoglu! - Wait for parent node to be initialized before applying an initial expansion of the parent node
#622 73de601f Thanks @bcakmakoglu! - Pass initialized nodes in the onNodesInitialized hook
refactor(workflows): use cypress action by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/620
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.12.3...v1.12.4
#619 3d482b77 Thanks @bcakmakoglu! - Use timeout when clamping positions after nodes' extent has changed
#618 f1975ea7 Thanks @bcakmakoglu! - Do not trigger ctx menu event on viewport when dragging with right mouse button
refactor(core): support key combinations for key codes by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/615
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.12.2...v1.12.3
#616 b16e3564 Thanks @bcakmakoglu! - Upgrade to vite 4 & update deps
#615 d8fe5432 Thanks @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 580de340 Thanks @bcakmakoglu! - Keep user selection on right click
fix(core): check if position is a number and not if it's truthy by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/611
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.12.1...v1.12.2
#610 01040099 Thanks @bcakmakoglu! - Always handle keyup events, instead of cancelling when focusing an input dom node
#611 8dbdcae2 Thanks @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.
fix(core): bubble up keydown event in node wrapper by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/605
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.12.0...v1.12.1
#607 45851080 Thanks @bcakmakoglu! - Place default slot content outside of viewport element
#605 e670f465 Thanks @bcakmakoglu! - Let keydown event bubble up from node wrapper instead of preventing default
feat(core): add zIndex option to elements by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/600
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.11.1...v1.12.0
zIndex option to elements (93b463d)072fd911 Thanks @bcakmakoglu! - Add zIndex option to nodes and edges. Allows defining stacking order of elements.chore(tests): upgrade cypress to latest by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/589
focus and focus-visible styles to nodes to avoid browser styles by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/597Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.11.0...v1.11.1
focus and focus-visible styles to nodes to avoid browser styles (5258d26)749175b9 Thanks @bcakmakoglu! - Add focus and focus-visible styles to avoid browser specific styles on default nodesfix(core): prevent unselectable elements from being selected by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/593
pre flush in NodeWrapper by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/590Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.10.3...v1.11.0
deletable option to nodes and edges (13f80c0)0c784a2 Thanks @bcakmakoglu! - Add deletable option to nodes and edges. If set to false it will prevent nodes and edges to be removed when removeNodes or removeEdges is triggered#593 da65c54 Thanks @bcakmakoglu! - Prevent elements that have selectable disabled from being selected
#590 89d2415 Thanks @bcakmakoglu! - Skip updating positions when updateNodeInternals is triggered - it will only update node dimensions (which can trigger a position update)
#590 72f9f1a Thanks @bcakmakoglu! - Use flush timing pre for NodeWrapper watchers
refactor(core): check if element still exists before attempting removal by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/586
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.10.2...v1.10.3
c0f31a2 Thanks @bcakmakoglu! - Check if element is still in state before attempting removal when applying removal changesfix(core): use relative path for tsconfig by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/583
calcNextPosition by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/584Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.10.1...v1.10.2
calcNextPosition (6aec815)#584 17cd5bc Thanks @bcakmakoglu! - Set initial node position correctly after applying node extent
#583 0c25796 Thanks @bcakmakoglu! - Fix type exports using path alias instead of relative paths, which causes types to not be inferred on user-side
fix(core): reapply node extent on change by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/581
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.10.0...v1.10.1
ea5c35e Thanks @bcakmakoglu! - Re-calculate position when node extent changesrefactor(core): allow omitting width/height styles for parent nodes by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/578
You can now use padding on parent extent option.
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.
const 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',
},
])
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.9.4...v1.10.0
parent (de71b5a)#579 b8d3241 Thanks @bcakmakoglu! - Allow setting padding option for node.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.
const 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",
},
]);
c0d9018 Thanks @bcakmakoglu! - Allow omitting width and height style properties for parent nodes when using expandParent on child nodesfeat(workflows): add concurrency by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/571
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.9.3...v1.9.4
nodes property from ConnectionLineProps (839fa6b)#574 1160d3d Thanks @bcakmakoglu! - Fix props being undefined on first render of custom node and edge components
#574 1160d3d Thanks @bcakmakoglu! - Remove nodes property from ConnectionLineProps - use getNodes inside the component instead ⚠️
fix(a11y): use correct vue flow aria names by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/568
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.9.2...v1.9.3
5402c0e Thanks @bcakmakoglu! - Use correct aria live class names for vue-flowFix default edge components prop types and export the types.
Fix default edge components prop types and export the types.
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.9.1...v1.9.2
b324a06 Thanks @bcakmakoglu! - Fix edge component prop typesfix(core): use regexp to fetch imports in slots patch by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/561
Fixed slot type regression.
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.9.0...v1.9.1
2979feb Thanks @bcakmakoglu! - Fix slots type regressionchore(core): deprecate options api utils by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/558
This release brings you more customization options to the selection behavior. Instead of pressing an additional button to create a selection box, you can now enable this behavior without any additional key-press. Furthermore you can now specify what mouse buttons should be used for pan on drag behavior.
selectionKeyCode: You can now set this to MaybeRef<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 selectionKeyCode as true).selectionMode: You can choose if the selection box needs to contain a node fully (SelectionMode.Full) or partially (SelectionMode.Partial) to select.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.Deprecated options API utils addEdge and updateEdge. These utils will be removed soon!
Instead of using these utils, use addEdges and updateEdge found on the VueFlow store instance.
You receive a store instance by using either a template-ref or listening to the onPaneReady event.
<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>
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.8.0...v1.9.0
useUpdateNodePositions (f319f62)useUpdateNodePositions (4260e31)snapGrid option from nodes - use global one instead (2b513b5)selectionOnDrag prop and use selectionKeyCode to trigger selection (c3e1741)#557 c7897a1 Thanks @bcakmakoglu! - Allow customizing the controls of the viewport and the selection box.
selectionKeyCode: You can now set this to MaybeRef<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.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.#558 bac9893 Thanks @bcakmakoglu! - ⚠️ Deprecate options API utils addEdge and updateEdge. These utils will be removed soon!
Instead of using these utils, use addEdges and updateEdge found on the VueFlow store instance.
You receive a store instance by using either a template-ref or listening to the onPaneReady event.
<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 c7897a1 Thanks @bcakmakoglu! - Add a11y support to selection box
refactor(core): rename viewpane to viewport by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/553
defaultZoom & defaultPosition to defaultViewport by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/554This 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).
disableKeyboardA11y: Use this prop to disable Keyboard controls on the graph.defaultViewport: The old defaultZoom and defaultPosition props have been merged into a single object called defaultViewport.nodesFocusable: Globally enable that nodes can be focused.edgesFocusable: Globally enable that edges can be focused.focusable: Enable focusing for a single node/edge by setting this option.ariaLabel: Specify an aria label for a node/edgeFull Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.7.2...v1.8.0
expandParent from moving parent node while expanding (b4daeb6)EdgeRef injection type to SVGElement (912cba3)pathOptions to edge types (58ede73)focusable and ariaLabel options to edge type (bbc2712)edgesFocusable option to store (361c4b8)A11yDescriptions component (f64e298)disableKeyboardA11y option to store options (5386fc3)ViewportTransform type (6246089)viewpane to viewport (9361a63)defaultZoom & defaultPosition to defaultViewport (8b2a21b)vueFlowId to getMarkerId (b0e09f7)pre flush for dimensions update on handle change (06dc2ee)#544 cf46cc8 Thanks @bcakmakoglu! - Add keyboard controls to node wrapper (a11y)
#554 9e7f65a Thanks @bcakmakoglu! - Merge defaultZoom & defaultPosition into defaultViewport object
#544 2341b9b Thanks @bcakmakoglu! - Add disableKeyboardA11y option to VueFlow props and store options
#544 2341b9b Thanks @bcakmakoglu! - Add focusable option to edge types
#544 2341b9b Thanks @bcakmakoglu! - Add ariaLabel option to edge type
#544 2341b9b Thanks @bcakmakoglu! - Add edgesFocusable option to store
#544 cf46cc8 Thanks @bcakmakoglu! - Add nodesFocusable option to VueFlow props and store options
#544 2341b9b Thanks @bcakmakoglu! - Add pathOptions to Bezier and Smoothstep edge types
#544 cf46cc8 Thanks @bcakmakoglu! - Add ariaLabel option to node type
#554 545ab07 Thanks @bcakmakoglu! - Clamp invalid zoom values
#556 699d786 Thanks @bcakmakoglu! - Prevent expandParent option from changing parent nodes position while expanding
#553 cd4e056 Thanks @bcakmakoglu! - Rename viewpane to viewport -> ViewpaneTransform now ViewportTransform
#544 cf46cc8 Thanks @bcakmakoglu! - Add focusable option to node type
#544 2341b9b Thanks @bcakmakoglu! - Add vueFlowId to getMarkerId to uniquely identify markers across multiple vue flow instances
#544 2341b9b Thanks @bcakmakoglu! - Update EdgeRef injection type to SVGElement
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).
disableKeyboardA11y: Use this prop to disable Keyboard controls on the graph.defaultViewport: The old defaultZoom and defaultPosition props have been merged into a single object called defaultViewport.nodesFocusable: Globally enable that nodes can be focused.edgesFocusable: Globally enable that edges can be focused.focusable: Enable focusing for a single node/edge by setting this option.ariaLabel: Specify an aria label for a node/edgerefactor(core,edges): make label coords optional by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/547
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.7.1...v1.7.2
elevateNodesOnSelect option (af53408)#547 ccf10ff Thanks @bcakmakoglu! - Make label coords (x,y) optional in BaseEdge
#551 2f187a0 Thanks @bcakmakoglu! - Fix input field focus inside nodes preventing selection rect to be created
#550 b734d08 Thanks @bcakmakoglu! - Add elevateNodesOnSelect option to enable/disable increasing z-index of selected nodes
#548 011f0ed Thanks @bcakmakoglu! - Re-group edges by z-index on edge selection changes
fix(core): only trigger store watcher immediately when els were set by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/545
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.7.0...v1.7.1
#545 54c93b9 Thanks @bcakmakoglu! - Remove immediate watch of VueFlow props and set prop values via state initalizer
#545 54c93b9 Thanks @bcakmakoglu! - Only trigger store watcher immediate when elements were set, otherwise wait for changes in store to overwrite model-value
fix(core): overwrite state even if it's an empty arr by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/536
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.6.3...v1.7.0
getNodesInitialized getter to store (5334e73)addEdges (fad7911)85d5a64d Thanks @bcakmakoglu! - Add getNodesInitialized getter to store#539 85d5a64d Thanks @bcakmakoglu! - Make sourceHandle and targetHandle optional properties for Connection type
#542 530f286c Thanks @bcakmakoglu! - Move watcher timing to pre and sync immediately
### Patch Changes - #536 `fc231bec` Thanks @bcakmakoglu! - Fix watcher not triggered when passing an empty array - #537 `4ec39fb0` Thanks @bcakmakoglu
#536 fc231bec Thanks @bcakmakoglu! - Fix watcher not triggered when passing an empty array
#537 4ec39fb0 Thanks @bcakmakoglu! - Fix node resizer resizing not updating handle bounds
refactor(core): use vue-flow__handle in handle bounds selector by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/532
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.6.2...v1.6.3
vue-flow__handle in handle bounds selector (91aa97b)#534 f0f7e7e4 Thanks @bcakmakoglu! - Add missing edge class to edge wrapper
#534 02c945e8 Thanks @bcakmakoglu! - Pass attributes to edge components (i.e. style and class forwarded to BaseEdge)
#532 cd778715 Thanks @bcakmakoglu! - Use vue-flow__handle in handle bounds selector to avoid selecting elements with the source or target class names that aren't handles
fix(core): element watcher not emitting changes with addNodes / addEdges by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/529
addNodes / addEdges by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/529Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.6.1...v1.6.2
addNodes / addEdges (dab20a6)#529 92fe1022 Thanks @bcakmakoglu! - Fix store watcher not being triggered when addNodes or addEdges is called
#530 262bc42b Thanks @bcakmakoglu! - Remove forced update on resize observer trigger of updateNodeDimensions
chore(core): remove log by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/526
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.6.0...v1.6.1
initialized prop to GraphNode (8734a16)Handle (b411c1e)ts from node-resizer example (92ac6e2)#525 eae81603 Thanks @bcakmakoglu! - Add initialized prop to GraphNode
#525 eae81603 Thanks @bcakmakoglu! - Fix Handle component adding duplicate handlebounds when node is not properly initialized
#526 00a9795a Thanks @bcakmakoglu! - Remove console log
chore: remove resize rotate node pkg by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/518
additional-components package occurrences by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/523Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.11...v1.6.0
useGetPointerPosition composable (5033bab)dragging, selected and resizing flag to GraphNode (20c353a)Handle.vue (3fc1b39)additional-components package occurrences (000dd5c)#498 1739797c Thanks @bcakmakoglu! - Add useGetPointerPosition composable
#519 306cd3da Thanks @bcakmakoglu! - Move Panel component to core package
#498 1739797c Thanks @bcakmakoglu! - Make dragging flag optional in position change type
#498 1739797c Thanks @bcakmakoglu! - Make dimensions optional in dimensions change type
#521 f50644ff Thanks @bcakmakoglu! - Remove Controls component styles from default theme
#498 1739797c Thanks @bcakmakoglu! - Add dragging, selected and resizing flags to GraphNode type
#498 1739797c Thanks @bcakmakoglu! - Allow multiple changes to be applied to element at once
#519 e5829e8d Thanks @bcakmakoglu! - Remove minimap styles from core package default-theme
chore(core): remove console log by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/515
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.10...v1.5.11
dragging and selected flags to minimap node slots (dbeba2e)dragging prop to GraphNode type (97426d5)#517 440186d2 Thanks @bcakmakoglu! - Add missing dragging prop to GraphNode type
#515 639245b1 Thanks @bcakmakoglu! - Remove console log from watcher
add missing dragging flag to nodes
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.9...v1.5.10
1a4a2a62 Thanks @bcakmakoglu! - Add missing dragging flag (release failed)Add missing dragging flag to nodes
ac8c2573 Thanks @bcakmakoglu! - Add missing dragging flag to nodesfix(core): use connectable prop or global connectable in Handle by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/509
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.7...v1.5.8
#509 5b748a66 Thanks @bcakmakoglu! - Fix handle prop connectable always falling back to true, even when explicitly set to false
#511 88b0e34c Thanks @bcakmakoglu! - Prevent store watcher from being stopped on cleanup of model watcher
fix(core): watcher not working with onMounted hook by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/501
next release as release commit message by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/503Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.6...v1.5.7
onMounted hook (ac8ef13)next release as release commit message (dc2ff64)#501 ccff5b8b Thanks @bcakmakoglu! - Fix watcher not triggering with the onMounted hook
#506 7abc3956 Thanks @bcakmakoglu! - Child nodes not properly using parent dimensions when extent is set to parent
refactor(core,nodes,edges): deep reactive nodes and edges by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/496
@vue-flow/node-toolbarFull Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.5...v1.5.6
#497 50e59604 Thanks @bcakmakoglu! - Separate store and model watchers from each other and allow them to be triggered after init
#496 1ca8c2a9 Thanks @bcakmakoglu! - Make nodes and edges deeply reactive objects, so that data changes can trigger v-model changes as well
refactor(nodes): only trigger dragging flag when a change has occured by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/491
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.4...v1.5.5
#494 50a24e4 Thanks @bcakmakoglu! - Apply translateExtent on pan
#492 715a070 Thanks @bcakmakoglu! - Properly calculate node extent on drag
#491 47ad11d Thanks @bcakmakoglu! - Set dragging flag only if a position change happened
chore(deps): update deps by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/480
EdgeProps by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/479Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.3...v1.5.4
EdgeProps (c673b04)#486 912da4d Thanks @bcakmakoglu! - Prevent valid connections on same node and same handle
#485 7ba6215 Thanks @bcakmakoglu! - Allow middle mouse pan over edges
#481 aed0845 Thanks @bcakmakoglu! - Add HandleConnectableFunc type
#483 9326c58 Thanks @bcakmakoglu! - Remove barrel files and use auto-imports instead (internal change)
#479 c673b04 Thanks @bcakmakoglu! - Type markerEnd and markerStart in EdgeProps
fix(core): patch VueFlow slots after build and apply correct types by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/474
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.2...v1.5.3
9568794 Thanks @bcakmakoglu! - Fix untyped connection line, node and edge slots props by patching type definition after buildfix(core): check for arr length before triggering immediate model watcher by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/462
shallowReactive properties in elements to reactive by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/466Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.1...v1.5.2
null as key-code (91d7c9d)shallowReactive properties in elements to reactive (99c6786)#466 051dcc4 Thanks @bcakmakoglu! - use reactive instead of shallowReactive for nested node/edge properties
#462 7dfceb2 Thanks @bcakmakoglu! - Fix model watcher overwriting empty state when setting element onMounted hook
#465 c56ee5a Thanks @bcakmakoglu! - Allow null as key-code
fix(core): update model-value regardless of arr length by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/454
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.5.0...v1.5.1
#459 649bdb9 Thanks @bcakmakoglu! - Add nullish check for node/edge events object to prevent err if undefined
#454 fc15fa3 Thanks @bcakmakoglu! - Update model-value regardless of element arr length
feat(core): add __experimentalFeatures flag to store by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/449
connecting class to SelectionPane while connecting by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/435Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.4.2...v1.5.0
__experimentalFeatures flag to store (3c66058)connecting class to SelectionPane while connecting (463b5d7)#435 1cca3d0 Thanks @bcakmakoglu! - Add connecting class to SelectionPane when connecting
#451 6047b90 Thanks @bcakmakoglu! - Support touch for creating connections
#449 686b351 Thanks @bcakmakoglu! - Add experimental support for nested Vue Flow components; Align edges by adding parent flow zoom scale. Connections not supported.
#452 5303f10 Thanks @bcakmakoglu! - Fix parent expand not working for top/left drag
#449 686b351 Thanks @bcakmakoglu! - Add experimentalFeatures flag to store
chore(docs): center dnd nodes after drop by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/436
maskStrokeColor and maskStrokeWidth props to MiniMap by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/438Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.4.1...v1.4.2
maskStrokeColor and maskStrokeWidth props to MiniMap (e87bb53)#439 817884e Thanks @bcakmakoglu! - Elevate selected nodes zIndex by 1000 instead to 1000
#448 3a09339 Thanks @bcakmakoglu! - Elevate child nodes by zIndex +1
#447 06fc9f2 Thanks @bcakmakoglu! - Fix initial node extent not applied
docs: update basic example by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/426
Loose use all handles as connection line source handle by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/429Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.4.0...v1.4.1
Loose use all handles as connection line source handle (cd4383d)connectionExists util export (45dbc95)#425 da0a294 Thanks @bcakmakoglu! - Update deps
#434 b24b9ef Thanks @bcakmakoglu! - Fix improper if clause when checking for selection key code as bool
#429 1fc60bf Thanks @bcakmakoglu! - When Connection Mode is Loose, use all handles as possible source handles for connection lines
#433 d82cb67 Thanks @bcakmakoglu! - Add missing connectionExists utility export
docs: cover screen with intro flow by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/410
interactionWidth prop to edges by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/360Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.3.3...v1.4.0
pointerRadius prop to edges (a4fd0eb)pointerRadius prop to interactionWidth (ec6f870)interactionWidth when parsing edges (d580a47)a11edae Thanks @bcakmakoglu! - Add interactionWidth prop to edges. Sets radius of pointer interactivity for edgesfix(core,nodes): use node name as class name by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/412
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.3.2...v1.3.3
onlyRenderVisibleElements (7680c52)630434d Thanks @bcakmakoglu! - Use node name as class namefix(core): prevent edge defaults from overwriting actual edge values by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/407
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.3.1...v1.3.2
#407 2874cd9 Thanks @bcakmakoglu! - Prevent default edge options overwriting actual edge values
#407 7908e02 Thanks @bcakmakoglu! - Fall back to default edge or node type if custom type cannot be resolved
#389 6e0dd5b Thanks @bcakmakoglu! - Place Vue Flow Container in it's own stacking context
chore: upgrade to vite 3 by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/398
event.composedPath as event target for input dom node check by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/402Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.3.0...v1.3.1
#402 d7ade98 Thanks @bcakmakoglu! - Use event.composedPath as event target when checking for input dom nodes
#403 8930d2e Thanks @bcakmakoglu! - Stop reset of user-selection rect on mouse leave event
#398 43953c9 Thanks @bcakmakoglu! - Upgrade to vite 3
feat(core): Add EdgeLabelRenderer component export by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/361
EdgeLabelRenderer component export by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/361Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.2.2...v1.3.0
EdgeLabelRenderer in edges example (a26e83b)nodesInitialized event hook (fe1ba03)nodesInitialized after next tick (a2e260f)#394 1403b65 Thanks @bcakmakoglu! - Add nodesInitialized event hook
#387 9530290 Thanks @bcakmakoglu! - Pass node intersections to node drag events (on single node drag)
#387 a19b458 Thanks @bcakmakoglu! - Add intersection utils to help with checking if a node intersects with either other nodes or a given area
getIntersectingNodes to find all nodes that intersect with a given nodeconst { 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" : "";
});
});
onNodeDrag(({ intersections }) => {
getNodes.value.forEach((n) => {
n.class = intersections?.some((i) => i.id === n.id) ? "highlight" : "";
});
});
isIntersecting util to check if a node intersects with a given areaconst { 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"
: "";
});
#396 03412ac Thanks @bcakmakoglu! - Add zoomable and pannable to MiniMap
zoomable and pannable to true in MiniMap component to enable interactions with the MiniMap<template>
<VueFlow v-model="elements">
<MiniMap :zoomable="true" :pannable="true" />
</VueFlow>
</template>
#361 43ff2a4 Thanks @bcakmakoglu! - Add EdgeLabelRenderer component export
EdgeLabelRenderer component to render the label of an edge outside the SVG context of edges.EdgeLabelRenderer component is a component that handles teleporting your edge label into a HTML context<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>
refactor(core): show regular pointer if pane isn't draggable by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/383
single applying to all handles instead on per handle (for default node types) by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/388Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.2.1...v1.2.2
Loose (43aa810)#388 76ad5838 Thanks @bcakmakoglu! - Always set handle ids (using auto-generated id if none is passed)
#388 ffe65636 Thanks @bcakmakoglu! - skip connectable for handles unrelated to connected edges
#392 fcffd492 Thanks @bcakmakoglu! - Use all handles, regardless of type, when ConnectionMode is Loose
fix(core): disable user selection if elementsSelectable is false by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/378
elementsSelectable is false by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/378Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.2.0...v1.2.1
elementsSelectable is false (e5dfdb6)#378 9089861c Thanks @bcakmakoglu! - Disable user selection if elementsSelectable is false
#378 9089861c Thanks @bcakmakoglu! - Prevent node selection box from appearing before mouseup
#380 2c3ea836 Thanks @bcakmakoglu! - Use shallowRef for node/edge data and event objects so they trigger a re-render on custom nodes/edges
refactor(core): disable console warnings for prod envs by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/123
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.1.4...v1.2.0
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.14.1...@vue-flow/node-resizer1.2.0
3105bd0 Thanks @bcakmakoglu! - Disable console warnings for production node-envsrefactor(core): add generics to isNode/isEdge fn by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/349
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.1.3...v1.1.4
#353 8f95187 Thanks @bcakmakoglu! - Allow undefined as custom theme var value
#349 61d2b88 Thanks @bcakmakoglu! - Node and Edge data and events to be definitely typed when passed as NodeProps or EdgeProps
#352 bff576b Thanks @bcakmakoglu! - Add overflow: visible to control btn svgs (fixes safari bug where svgs aren't showing up)
#349 61d2b88 Thanks @bcakmakoglu! - Extend Elements/FlowElements generics to differentiate between Node and Edge data and custom events
#349 61d2b88 Thanks @bcakmakoglu! - Add Generic to isNode and isEdge helpers
#350 92a69a6 Thanks @bcakmakoglu! - Set nodes' dragging prop on drag start and end (fixes grabbing hand not showing on mousedown / not disappearing on mouseup)
fix(edges): edge text not properly calculating dimensions by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/342
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.1.2...v1.1.3
72c203e Thanks @bcakmakoglu! - Fix edge text not calculating dimensions properlyfix(nodes): add missing dragging class to node selection rect by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/333
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.1.1...v1.1.2
#337 12d9f79 Thanks @bcakmakoglu! - Add dragging class to nodes on drag instead of dragStart
#341 d2ed19e Thanks @bcakmakoglu! - Pass edge styles to edge path element
949d19f Thanks @bcakmakoglu! - Fix edge texts not properly aligning to center
#333 8583e13 Thanks @bcakmakoglu! - Add missing dragging class to pane
#336 1aaac25 Thanks @bcakmakoglu! - Elements not properly unselected when clicking node and edge afterwards
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.1.0...v1.1.1
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.1.0...v1.1.1
#328 1e5a77d6 Thanks @bcakmakoglu! - Prevent mouseup handler from resetting startHandle before connections can be made when using connectOnClick
#328 18a812db Thanks @bcakmakoglu! - Passing single option breaks connectable check when no handle ids are set
connectable to correct handle prop in default node types#328 a415353b Thanks @bcakmakoglu! - Add dragging class name to pane on drag
next release by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/311
Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v1.0.0...v1.1.0
connectable to correct prop (bc80807)connectOnClick reset before connections can be made (d420fea)vueflow pkg that exports all features (9c78528)single for single connection handles (624438a)Panel component (3541b24)position prop to MiniMap & Controls (875d954)vueflow pkg (d1e9ee5)core (082050b)connectable to true (0215d49)HandleConnectable type for nodes connectable prop (283846c)useHandle (2684272)#311 78f9ee1c Thanks @bcakmakoglu! - # What's changed?
HandleConnectable typeconnectable prop of Handle to HandleConnectable typeExample:
<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>
node.connectable prop to HandleConnectableFor Example:
const 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
},
]);
#311 e175cf81 Thanks @bcakmakoglu! - # What's changed?
vueflow pkg that exports all features<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>
core pkg directory to core from vue-flow#311 e1c28a26 Thanks @bcakmakoglu! - # What's changed?
useHandle usageBefore:
<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:
<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>
#311 08ad1735 Thanks @bcakmakoglu! - # Bugfixes
paneReady event is triggeredrelease!: 1.0.0 w. scope @vue-flow by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/305
@vue-flow by @bcakmakoglu in https://github.com/bcakmakoglu/vue-flow/pull/305Full Changelog: https://github.com/bcakmakoglu/vue-flow/compare/v0.4.41...v1.0.0
useEventListener from user selection (5bc5f10)vue-flow (8567e37)#305 939bff50 Thanks @bcakmakoglu! - # What's changed?
getEdgeCenter and getSimpleEdgeCentergetEdgeCenter has been removed
getBezierPath or getSmoothStepPath functionsBefore:
import { 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:
import { getBezierPath } from "@vue-flow/core";
// returns the path string and the center positions
const [path, centerX, centerY] = computed(() => getBezierPath(pathParams));
#305 47d837aa Thanks @bcakmakoglu! - # What's changed?
@vue-flow/core package@vue-flow/additional-components package@vue-flow/pathfinding-edge package@vue-flow/resize-rotate-node packageuseNode and useEdge composables
selectionKeyCode as true
updateNodeInternals on dynamic handlesremoveSelectedEdges and removeSelectedNodes actions not properly removing elements from store@vue-flow/core package is now required to use vue-flow@vue-flow/additional-components package contains Background, MiniMap and Controls components and related types
Before:
import { VueFlow, Background, MiniMap, Controls } from "@braks/vue-flow";
After
import { VueFlow } from "@vue-flow/core";
import {
Background,
MiniMap,
Controls,
} from "@vue-flow/additional-components";
chore(test): increase wheel delta d7ce835
https://github.com/bcakmakoglu/vue-flow/compare/v0.4.40...v0.4.41
One column per quarter.