Braks
729d3d5ca2
update(examples): remove watchEffect from UpdateNodeExample.vue
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
update(examples): fix style calculation in CustomNode.vue
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
708fa1f970
refactor(options)!: remove worker and store option
...
* either unnecessary, broken or needs more work
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
725dc8acb7
refactor(store): remove nodes/edges field
...
* nodes/edges are accessed via getter - that retains reactivity on elements
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
23bceea255
update: use getNodes in zoom pan helper
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
e6a54d482a
update: import path in node wrapper
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
fa63dee37a
refactor: remove node-pos actions
...
* add getSelectedNodes getter
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
ac2e2d5f0a
refactor: remove updateNodePosDiff from node selection
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
729ae4c902
refactor: remove vf prop
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
8f65918760
refactor(nodes): use v-model to reactively change node props
...
* instead of re-parsing we proxy the node values and change them with a v-model
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
84bad861ea
refactor(nodes): remove __vf.position
...
* duplicate position values as __vf.position and position save the same values
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
89849f4eac
update(connection): pass source node to ConnectionLine as prop
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
04b64de1de
update: use getNodes in minimap instead of directly accessing nodes state val
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
破耳狼
63630015a7
Update README.md
2021-11-24 09:53:32 +01:00
Braks
409a268ddd
fix(examples): wrong type added to button-edge
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-24 01:05:03 +01:00
Braks
b140b84ccd
fix(flow): check diff before re-parsing elements
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-24 01:02:32 +01:00
Braks
e065df5afc
fix(flow): Add watcher that observes elements length for re-parsing
...
* instead of deeply watching the elements' arr (which would cause a re-parsing on any element pos change, like dragging a node) we watch the elements + elements arr length and re-parse as necessary
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-24 00:36:57 +01:00
Braks
f4559398f6
fix(examples): interaction example firing events wrong
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-24 00:22:09 +01:00
Braks
f5dcd5108c
fix(nodes): pass correct store values to node wrapper
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-24 00:21:23 +01:00
Braks
5011bf035e
fix(nodes): missing element click event
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-24 00:20:58 +01:00
Braks
da4fd4f7ce
feat(nodes): Allow nodes to pass all draggable options
...
* omits scale, grid, enableuserselecthack and enabletransformfix as valid options for draggable
* remove event interface and emits from nodewrapper
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-24 00:02:30 +01:00
Braks
71a10b2536
feat(nodes): Allow nodes to have their own snapGrid option
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 23:58:11 +01:00
Braks
1eac951055
feat(types): add DefaultEdgeTypes-type
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
feat(types): Add DefaultNodeTypes-type
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
feat(types): Add DefaultNodeTypes and DefaultEdgeTypes to the exports object
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 23:58:11 +01:00
Braks
073b25ec60
feat(zoom): Add offset to fitview-params
...
* Allow for offsetting fit view by x or y values
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 23:58:11 +01:00
Braks
db70409337
fix(types): hooks to return a graph-node type
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 23:20:49 +01:00
Braks
7829b6a1a8
v0.1.7
2021-11-23 18:27:28 +01:00
Braks
d22e21041d
fix(edges): edges not reacting to hidden nodes
...
* Change getEdges to parse edges with source & target nodes and filter if one of them is missing
* add new type for Edges w sourceTargetNode called GraphEdge which is the return type of getEdges
*
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 18:25:08 +01:00
Braks
cddf875b6d
feat(types): Add GraphEdge type
...
* GraphEdges are edges that have been parsed and have a sourceTargetNode property
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 17:46:55 +01:00
Braks
091f3f82c2
update(types): export flowprops and custom connection line props type
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 17:46:28 +01:00
Braks
ca46d6a771
update(zoom): when zoom is deactivated we disbale scrolling
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 17:35:40 +01:00
Braks
d57b94d0bf
v0.1.6
2021-11-23 17:19:49 +01:00
Braks
c286b3b7ff
fix(flow): preventScrolling missing in props definition
...
* remove console log from ZoomPane
* Add missing name to VueFlow
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 17:18:35 +01:00
Braks
65250c224b
v0.1.5
2021-11-23 16:57:05 +01:00
Braks
3f758c529c
chore(deps): update revue-draggable to 0.3.9
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 16:56:35 +01:00
Braks
c0f7e5c9e9
update: add scale prop to draggable
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 16:56:16 +01:00
Braks
dbe82a718a
fix: node selection not working if selectable === undefined
...
* selectable has to be explicitly false for node selection to skip the node
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 16:17:46 +01:00
Braks
8d08f67ee6
update: remove fallback operator
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 16:17:20 +01:00
Braks
54d5780feb
fix: missing props on Draggable
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 16:17:02 +01:00
Braks
8ec494da1e
v0.1.4
2021-11-23 14:39:20 +01:00
Braks
67634fd72e
feat(connection): Extend connection line props for more advanced usage
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 14:38:49 +01:00
Braks
345312728c
v0.1.3
2021-11-23 14:17:13 +01:00
Braks
46ecec5366
feat(options): add preventScrolling option
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 14:12:43 +01:00
Braks
17f7e4b0e7
fix(nodes): dont select nodes when selectable=false closes
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 14:01:02 +01:00
Braks
0e803839d6
feat(BezierEdge): use quadratic bezier curve for top-left and bottom-right edges
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 13:58:20 +01:00
Braks
9ec1c4dc2b
fix: remove deep flag from elements and store-elements watcher
...
* deep watching causes a reset after positions change
* fallback to non-worker parsing
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 13:55:41 +01:00
Braks
1f77b77fe7
v0.1.2
2021-11-23 13:01:38 +01:00
Braks
d87388fbe6
fix: connection line position incorrectly calculated
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-23 13:00:29 +01:00
Braks
94dcb0c03d
v0.1.1
2021-11-22 21:44:59 +01:00
Braks
0dd5ed7836
fix(types): edge text type
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-22 21:38:31 +01:00
Braks
0b57ee167e
refactor: remove node/edge-renderer slots
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-22 17:42:00 +01:00
Braks
c7dca2cbd0
refactor: change prop types for NodeWrapper
...
* don't split node prop into smaller ones
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-22 17:33:12 +01:00