Commit Graph
106 Commits
Author SHA1 Message Date
braks 5bda311f8d fix(core): use existing node for intersection check 2023-11-04 19:25:49 +01:00
braks 07b37830b1 fix(core): do not wait for d3zoom to be available to set skipped opts 2023-11-04 19:25:49 +01:00
braks 2ecd8def81 fix(core): push emit handlers into listeners set 2023-10-30 13:36:07 +01:00
braks 7e7e0fb8cb refactor(core): allow adding edges with missing source or target nodes 2023-10-30 13:36:07 +01:00
braks 03242dde9b feat(core): use nodes from state for getIntersectingNodes 2023-10-30 13:36:07 +01:00
braks b0ffe42007 chore(core): update d3 type deps 2023-10-07 11:39:48 +02:00
braks e71a2aa4ef feat(core): add nodeDragThreshold option 2023-10-06 18:00:01 +02:00
braks 29f3d2d5e1 feat(core): add areNodesInitialized getter 2023-10-06 18:00:01 +02:00
braks edc7669b18 feat(core): add getIncomers, getOutgoers & getConnectedEdges as store actions 2023-10-06 18:00:01 +02:00
braks 7a013771f3 feat(core): add source and target node ids to edge remove changes 2023-10-06 18:00:01 +02:00
braks 67704e5a8f fix(core): use os specific key defaults 2023-08-21 17:44:20 +02:00
braks 77ccc7ec86 chore(core): cleanup 2023-08-21 17:44:20 +02:00
braks 9d1f5fa629 fix(core): check if viewport is defined before setting 2023-07-27 18:36:41 +02:00
braks eb29f96f96 refactor(core): add viewport to export obj and deprecate position and zoom 2023-07-25 09:20:15 +02:00
braks fd155e41af fix(core): wait for viewport helper in fromObject action 2023-07-25 09:20:15 +02:00
braks c4acb0d0f6 feat(core): add flag to removeNodes to remove children of a node 2023-07-24 23:46:59 +02:00
braks 9f63252c62 feat(core): add setViewport and getViewport to viewport helper 2023-07-24 23:46:59 +02:00
braks 4d5bbab506 fix(core): use noop viewport operations instead of waiting for promise 2023-07-19 19:12:29 +02:00
braks b017139d22 fix(core): reset end handle on connection end 2023-06-15 22:35:25 +02:00
braks 8466e85330 chore(core): lint 2023-05-25 20:48:26 +02:00
braks e3e6a03359 refactor(core): add explicit imports and remove auto-imports
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-25 20:48:26 +02:00
braks da9cbc6e77 chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks abb302cb03 feat(core): add fromObject action to load graph
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks 073e987fa8 refactor(core): allow passing single item to remove actions
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks 833afdbd97 chore(core): remove non-nullable assertion
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks ca9eda98dd refactor(core): allow passing single element to add actions
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks 6f3c22ee66 fix(core): properly reset state and retain reactivity
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-10 14:04:53 +02:00
braks 0c340231b8 fix(core): check if transform changed before applying
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-10 14:04:53 +02:00
braks df542208d2 refactor(core): return boolean from panBy
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-05 11:02:58 +02:00
braks 260a3d9a86 refactor(core): set vue flow version as regular string instead of ref
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-26 10:15:39 +02:00
braks e41a66dc2d fix(core): set default edge opts before setting elements
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-24 00:07:39 +02:00
braks fd5aef1dad chore(core): remove unnecessary async
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks bfff13572e refactor(core): add onBeforeTransform arg to panBy action
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 56e911c1e7 chore: lint files
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 1e2a51ebb5 chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 1171e01c9c refactor(core): allow passing undefined as arg to findNode & findEdge
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks e4c4bd8a94 chore(core): remove unused watcher
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks ebed9663b4 refactor(core): pass node and edge id computed to getters and actions
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 4efc787067 refactor(core): add connection start and end handles to store state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks 63808e5dd2 refactor(core): do not remove orphaned edges from state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks 26a68e83ed chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks 5a50cfd90b feat(core): add clickConnectStart & clickConnectEnd events
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks 6c806e8059 fix(core): reset nodes and edges before state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-02 20:52:57 +02:00
braks f61e5beb02 chore: lint files
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-31 21:30:23 +02:00
braks 0cdff91322 chore(core): cleanup getters
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-24 21:31:24 +01:00
braks 2944744df1 refactor(core): check if node handle bounds exist in getNodesInitialized
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-24 21:31:24 +01:00
braks 8c3f54ec28 feat(core): add onError hook
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-23 15:58:30 +01:00
braks c9d643d700 fix(edges): set source and target position on edge obj
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-17 17:27:48 +01:00
braks c74382fe1d chore(core): cleanup store state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks 05bc748100 feat(core): add isValidConnection prop
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00