Braks
66743501af
fix(edges): use correct vars for center in straight edge
2022-04-04 21:42:48 +02:00
Braks
3acb43d000
fix(edges): use correct functions for center/path in simple bezier edge
2022-04-04 21:42:48 +02:00
Braks
56f7e3b0c2
feat: Add SimpleBezierEdge
...
* Implement base edge
2022-04-04 21:42:48 +02:00
Braks
c544a02344
feat(zoom): Add noPanClassName, noWheelClassName & noDragClassName
...
* For more flexible zoom behavior
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
18758facbd
feat(edges): Add & export bezierCenter function
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
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
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
f7c939e683
fix(edges): edges not connecting when mixed with top/btm & left/right
2022-03-23 06:47:57 +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
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
2bb3ecbe73
feat(nodes): Add nodeElement as Prop to Nodes
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-03-07 12:57:44 +01:00
bcakmakoglu
17561604b6
fix(nodes): clear all empty values before passing as props
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-02-21 20:25:17 +01:00
bcakmakoglu
8260eabc58
fix: typings for UseVueFlow
...
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com >
2022-02-21 20:25:17 +01:00
Braks
fbe62b9ab9
fix(nodes): watch parent nodes deeply to trigger xyz-pos calculation
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
0e82420142
fix(nodes): correctly calculate xyzpos from parent
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
983c86c938
fix(edges): Handles emitting connect and update simulteanously
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
a76e2cacf4
update: use draggablecore for nodes selection
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
f0f68ff63f
update: add key to NodesSelection.vue
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
a62a891243
update(nodes): Remove computed properties in nodes selection
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
8f6ce13226
update(nodes, edges): watch source/target pos to update position so edges get properly re-rendered
...
* use standard computed for source/target pos in edges
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
212c91107f
update(types): Use node/edge component type to define defaults
...
* import handleprops from types
*
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
e91188de5c
feat(edges): add selectable option to edges
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
535f7e60f2
fix(flow): re-set elements if elements are empty and modelValue contains els
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
1b206c942c
feat(edges): Add source-target-pos to graph-edge
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
600e3866c4
fix: replace store id with flow id
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
d9e0675385
refactor(nodes, edges): Add slots to node/edge labels
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
518d12d381
feat(flow): add utilities to useState functions
2021-12-20 19:29:52 +01:00
Braks
81c8145f3a
feat(store, flow)!: Add apply changes handlers
...
* flow will not update changes unless a handler to apply changes is passed
* a default handler is available in the useVueFlow composable
* removeElements export removed
2021-12-20 19:29:52 +01:00
Braks
a604dd8ab1
refactor: replace useStore with useVueFlow
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
6dcf5d8434
fix(nodes): improper style encapsulation
...
* import path in hooks.ts
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
60fcbc2d06
refactor(nodes): use watcher to calc xyzpos
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
774cb2e644
feat(flow)!: Remove node/edge-types prop
...
* infer node/edge types from types used in elements
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
aaf216a31e
update!: Remove LoadingIndicator.vue
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
97c025478d
update(node): defer update pos to nexttick
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
4065354c10
refactor(store): add selectednodesbbox back to state
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
db726d14a8
fix(nodes): duplicate prop binding
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
9abd768bce
fix(edges): connection line not showing up when no edges are defined
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
a7bacb754a
refactor(edges)!: use markerEnd and markerStart
...
* remove markerEndId
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
c9ff178d38
update(edges): clean up edgewrapper props
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
eead00a255
feat(nodes): calculate xyz pos if nested
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
7a8aed4ec4
refactor(selection)!: Move user selection rect drawing into component
...
* remove corresponding store state
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00
Braks
2350d83718
fix(edges): edges not properly calculating position
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-20 19:29:52 +01:00