Commit Graph
139 Commits
Author SHA1 Message Date
braks 0139e6eb0f chore(core): cleanup 2024-02-15 17:46:21 +01:00
braks 300c742352 refactor(core): rename useViewport to useViewportHelper 2024-02-15 17:46:21 +01:00
braks bbf16e385c chore(core): remove experimental from state 2024-02-15 17:46:21 +01:00
braks f2165afe6f feat(core,composables): add useNodesInitialized composable 2024-02-15 17:46:21 +01:00
braks 308338fa79 refactor(core): remove exports from barrel files 2024-02-05 07:51:12 +01:00
braks aaf106938f fix(core): avoid adding invalid edges (like null or undefined) 2024-02-05 07:51:12 +01:00
braks 04658b2c0d fix(core): avoid options passed to useVueFlow overwriting default state 2024-02-05 07:51:12 +01:00
braks 983971f576 fix(core): use existing node/edge obj for assignment 2024-02-05 07:51:12 +01:00
braks 0544fbdb6a refactor(core): call fitViewOnInit when node dimensions are initially set 2024-02-05 07:51:12 +01:00
braks 417a301b42 refactor(core): add missing viewport helper functions to actions 2024-02-05 07:51:12 +01:00
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