@vue-flow/additional-components
1.3.1
Patch Changes
- #473
9b70fc1Thanks @bcakmakoglu! - Fix minimap node slots not being rendered
1.3.0
Minor Changes
- #438
32412edThanks @bcakmakoglu! - AddmaskStrokeColor&maskStrokeWidthprop to MiniMap
1.2.4
Patch Changes
- #425
da0a294Thanks @bcakmakoglu! - Update deps
1.2.3
Patch Changes
- #422
c8c9dafThanks @bcakmakoglu! - Use vue flow id as bg pattern id
1.2.2
Patch Changes
#415
a27ccc4Thanks @bcakmakoglu! - Render mini map nodes regardless ofonlyRenderVisibleElements#415
f89d4ecThanks @bcakmakoglu! - Inject minimap slots to avoid performance drops when using template slots
1.2.1
Patch Changes
- #398
0635dfaThanks @bcakmakoglu! - Upgrade to vite 3
1.2.0
Minor Changes
#396
03412acThanks @bcakmakoglu! - Add zoomable and pannable to MiniMapUsage
- Set
zoomableandpannabletotrueinMiniMapcomponent to enable interactions with the MiniMap
<template> <VueFlow v-model="elements"> <MiniMap :zoomable="true" :pannable="true" /> </VueFlow> </template>- Set
1.1.0
Minor Changes
#311
2e2c449bThanks @bcakmakoglu! - # What's changed?- Add
Panelcomponent- Wrap
MiniMapandControlswithPanel
- Wrap
- Add
positionprop toMiniMapandControlsExample:
<VueFlow v-model="elements"> <MiniMap position="top-right" /> <Controls position="top-left" /> </VueFlow>Bugfixes
- Fix
MiniMapandControlscancelling selections
- Add
Patch Changes
#311
e175cf81Thanks @bcakmakoglu! - # What's changed?- Add
vueflowpkg 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>Chores
- Rename
corepkg directory tocorefromvue-flow - Rename bundle outputs
- Add
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:
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))- 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:
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'- Change pkg scope from 'braks' to 'vue-flow'