Commit Graph
129 Commits
Author SHA1 Message Date
braks eca0447d3b chore(core): cleanup 2024-02-05 07:51:12 +01:00
braks fe1d801d5b feat(core): add updateNode & updateNodeData actions to store 2024-02-05 07:51:12 +01:00
braks c855dfe454 feat(core): add viewport helper to state 2024-02-05 07:51:12 +01:00
braks fd84025dd1 feat(core): add init hook 2024-02-05 07:51:12 +01:00
braks 5798cc5578 refactor(core): use useOnInitHandler to emit paneReady event 2024-02-05 07:51:12 +01:00
braks c4b4a04aa0 perf(core): replace Array.forEach loops 2024-02-05 07:51:12 +01:00
braks 72cc175142 refactor(core): omit events when calling toObject 2024-02-05 07:51:12 +01:00
braks f09b7d934b refactor(core): move fitViewOnInit to node dimensions update 2024-02-05 07:51:12 +01:00
braks 064cfd84b3 feat(core,composables): add useHandleConnections composable 2024-02-05 07:51:12 +01:00
braks 2259b2ab9e refactor(core)!: remove experimental flag 2024-01-29 21:56:44 +01:00
braks 3977875d0b refactor(core): trigger fitViewOnInit together with paneReady 2024-01-29 21:56:44 +01:00
braks 8a888a9194 tests: use transform matrix to confirm node positions 2024-01-29 21:56:44 +01:00
braks abe6006a09 refactor(core): emit pane ready after timeout of 1ms 2024-01-29 21:56:44 +01:00
braks 308cff5f45 refactor(core): add fitViewOnInitDone to state 2024-01-29 21:56:44 +01:00
braks ca70a7cd67 fix(core,store): await fitView before emitting pane-ready 2024-01-21 14:35:35 +01:00
braks 68cfbaebbe chore(core): lint files 2024-01-21 14:35:35 +01:00
Abdelrahman AwadandBraks d78a53fcd6 feat(core): add source and target handle ids to edge removal change 2024-01-03 11:13:31 +01:00
braks 458b5d42ba fix(core): remove ts-transform-paths and use relative paths 2023-12-12 23:36:33 +01:00
braks c995b801ce refactor(core): return promise from fromObject 2023-12-12 20:29:54 +01:00
braks e2b30e0b9a refactor(core): set default drag threshold to 1 2023-12-12 20:29:54 +01:00
braks 0c07bd4e2a fix(core): use node rect for intersection check 2023-11-09 14:19:51 +01:00
braks e4e3188b76 revert(core): wait for d3zoom before setting opts 2023-11-08 15:12:28 +01:00
braks 45ce98558e chore(core): cleanup 2023-11-08 08:27:12 +01:00
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