Braks
9a8bf69848
feat: Add default edge options
2022-04-04 21:42:48 +02:00
Braks
aba67a4852
feat(edges): Add base edge
2022-04-04 21:42:48 +02:00
Braks
e5f6b4593c
refactor(edges): Remove scaling from edge text
2022-04-04 21:42:48 +02:00
Braks
2b4dbba737
update: add edge text to exports
2022-04-04 21:42:48 +02:00
Braks
18758facbd
feat(edges): Add & export bezierCenter function
2022-04-04 21:42:48 +02:00
Braks
e9f4b5f022
fix(edges): source/targetHandle type
2022-04-04 21:42:48 +02:00
Braks
c75f00a744
refactor: remove node and edges export
2022-04-04 21:42:48 +02:00
Braks
af5b048391
update(context): remove typecast
2022-04-04 21:42:48 +02:00
Braks
833cf5e489
update(store): set vueFlow var to null on scope dispose
2022-04-04 21:42:48 +02:00
Braks
35f3d89240
refactor(nodes): Reduce node props
...
* Reduced node props down to essential and necessary props for custom nodes
2022-04-04 21:42:48 +02:00
Braks
cd6b03d4ae
fix(edges): destructure useHandle
2022-04-04 21:42:48 +02:00
Braks
66a166dea9
fix: connection line style prop
...
* remove slot
2022-04-04 21:42:48 +02:00
Braks
b42c1b02de
feat(handle): Add onClick handler
...
* for touch enabled connections
2022-04-04 21:42:48 +02:00
Braks
728046505c
refactor(store): use null instead of undefined for optional state properties
...
* remove setConnectionNodeId action
2022-04-04 21:42:48 +02:00
Braks
188156dd0b
fix(store): setting store state after init
2022-04-04 21:42:48 +02:00
Braks
4644af5736
fix(nodes): expand nodes correctly when prop enabled
2022-04-04 21:42:48 +02:00
Braks
266678d6a8
fix(nodes): pass parentNode id instead of parentNode to components
2022-04-04 21:42:48 +02:00
Braks
c818a5863c
fix(nodes): pass all required props to node components
2022-04-04 21:42:48 +02:00
Braks
7d4a5fdead
refactor(store): shorten setState
2022-04-04 21:42:48 +02:00
Braks
0093df43a9
feat(nodes, edges, store): Add updateNodeDimensions actions
...
* Returns new changes for updating node dimensions
* Add expandParent prop to nodes when parents should be expanded to fit the new child in them
*
2022-04-04 21:42:48 +02:00
Braks
5cc0da29c0
refactor: shorten watcher
2022-03-24 16:56:31 +01:00
Braks
3539937752
refactor(store): shorten default state setter function
2022-03-24 16:52:52 +01:00
Braks
9a8caf444c
feat(store): Enable using a parentNode / parentNodeId to add child nodes
2022-03-23 17:43:27 +01:00
Braks
6a2c1b00d7
feat: Enable passing components as node/edge-types
...
* Instead of using slots (re)-enable passing components for node/edge-types
2022-03-23 15:49:00 +01:00
Braks
f7c939e683
fix(edges): edges not connecting when mixed with top/btm & left/right
2022-03-23 06:47:57 +01:00
Braks
ea93d553b8
fix(background): use rect only if bgColor is present
2022-03-23 06:47:57 +01:00
Braks
c43b94c932
chore: merge shims into single file
2022-03-23 06:47:57 +01:00
Braks
3f5c7ea186
update: return vueFlow even if scope doesnt exist
2022-03-23 06:47:57 +01:00
Braks
8dcbb9704a
chore: remove log
2022-03-23 06:47:57 +01:00
Braks
d9c67bef60
update(background): use bgColor on extra rect
2022-03-23 06:47:57 +01:00
Braks
65d079db20
feat: use a storage class to map flow instances
...
* improves cleanup of instances
2022-03-23 06:47:57 +01:00
Braks
dcd2ec471e
update: Remove useWindow export
2022-03-16 16:06:42 +01:00
Braks
05929299d3
refactor(zoom): Move paneReady event to transformation pane mounted hook
...
* await dimensions in fitView function
2022-03-16 16:02:26 +01:00
Braks
c70c816f4b
chore: update auto-imports.d.ts
2022-03-14 20:42:30 +01:00
Braks
c21ac7dca4
feat(docs): Add comments to types
2022-03-14 18:20:58 +01:00
Braks
25e5b92843
feat(docs): Add typedoc
2022-03-14 14:10:38 +01:00
Braks
2fa7e22b5f
feat(background): Allow background height/width to be set
...
* allow for bgColor to be set
* allow for no pattern to be used
2022-03-14 14:10:38 +01:00
Braks
d948f5eef4
feat(zoom): Allow zoomOnScroll & panOnScroll to be used without an activation key
...
* activation key is undefined by default, if undefined key is always "pressed"
2022-03-14 14:10:38 +01:00
Braks
afaa038584
fix(zoom): prevent zoom when zoomOnScroll is disabled
2022-03-12 18:28:35 +01:00
bcakmakoglu
40bb91f608
update(store): deprecare setElements action
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 18:44:14 +01:00
bcakmakoglu
fd951e8bb8
fix(zoom): fitViewOnInit not passed to zoomPane
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 17:29:29 +01:00
bcakmakoglu
994b403089
feat(edges): allow markers to have unique id
...
* fix overwriting by spreading marker def
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 17:11:54 +01:00
bcakmakoglu
c31deb897d
update(edges): filter edges of hidden nodes
...
* we don't want to show edges that go seemingly nowhere
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 16:34:50 +01:00
bcakmakoglu
46a63c29aa
fix(store): updateEdge action not fully updating an edge
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 16:10:33 +01:00
bcakmakoglu
b7c19547f2
fix(edges): edge text height not centered
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 15:40:17 +01:00
bcakmakoglu
743b0bd004
feat: Add names (node-types as name) to minimap node slots
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 15:35:51 +01:00
bcakmakoglu
4f42fd0e6b
fix(edges): edge text not aligning to center
...
* use scaling to properly align edge labels and bg width
* remove getMarkerEnd util, replaced by getMarkerId or just using the actual prop markerEnd/markerStart
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 15:35:24 +01:00
bcakmakoglu
cd2b89828d
update(edges): remove scope dispose from useHandle
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 12:58:06 +01:00
bcakmakoglu
ac6f62f0a3
update(flow): deprecate modelValue prop
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 12:08:25 +01:00
bcakmakoglu
6746d6bb46
fix(flow): fix typo in paneMovable prop
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-08 12:07:57 +01:00