Commit Graph
653 Commits
Author SHA1 Message Date
braks 584782bcc6 refactor(core): call nodes initialized whenever areNodesInitialized is true 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 7161e9ec90 refactor(core): allow null instead of undefined as id for useHandleConnections 2024-02-05 07:51:12 +01:00
braks f4fb4d8036 refactor(core,composables): allow passing MaybeRefOrGetter to useNodesData 2024-02-05 07:51:12 +01:00
braks 533e37e624 chore(core,composables): cleanup useNodesData types 2024-02-05 07:51:12 +01:00
braks cecf9d4c3b feat(core,composables): add useNodesData composable 2024-02-05 07:51:12 +01:00
braks 4bbc14b882 fix(core): update node dimensions on next tick 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 557a679e89 chore(core): cleanup vueflow cmp 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 8db9b1a997 chore(core): deprecate event properties of nodes and edges 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 97f4a17f83 refactor(core): remove unnecessary keys 2024-02-05 07:51:12 +01:00
braks 84c2f6df99 refactor(core): find handle by id regardless of num of handles 2024-02-05 07:51:12 +01:00
braks 0941e609dd chore(core): cleanup 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 a9bd82d28a chore(core): cleanup 2024-02-05 07:51:12 +01:00
braks aab31f8296 refactor(core,composables): remove error from useNodeId 2024-02-05 07:51:12 +01:00
braks d001d802b5 refactor(core,viewport): replace watchEffect with onMounted/onBeforeUnmount 2024-02-05 07:51:12 +01:00
braks 00a1f9d484 feat(core): add useNodeId composable 2024-02-05 07:51:12 +01:00
braks b7cc917a09 fix(core,utils): check if values are numeric in isRect 2024-01-30 08:56:46 +01:00
braks e24f436fc5 chore(core): cleanup type issues 2024-01-29 21:56:44 +01:00
braks e0a48f0552 chore(core): cleanup transform cmp 2024-01-29 21:56:44 +01:00
braks 5e8001f7b0 chore(core,viewport): cleanup viewport helper 2024-01-29 21:56:44 +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 a5091b9b0c refactor(core,viewport): use useResizeHandler composable 2024-01-29 21:56:44 +01:00
braks b65f43c5d8 refactor(core): remove suspension 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 e427e21c28 chore(core): cleanup 2024-01-29 21:56:44 +01:00
braks ce229e547f refactor(core,viewport): suspens transformation pane 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 be9e58092a chore(core): cleanup condition 2024-01-25 08:57:52 +01:00
braks 2b82098fab fix(core,key-press): check if key or code exists before matching 2024-01-25 08:57:52 +01:00
braks 9e51070144 fix(core,viewport): watch shouldPanOnScroll & shouldPanOnDrag 2024-01-21 17:02:19 +01:00
braks ca70a7cd67 fix(core,store): await fitView before emitting pane-ready 2024-01-21 14:35:35 +01:00
braks e7fb6813cd fix(core,viewport): allow panning on scroll when selection is active 2024-01-21 14:35:35 +01:00
braks d09e46fb2e chore(tooling,core): cleanup 2024-01-21 14:35:35 +01:00
braks 347715dd11 fix(core,key-filter): return false from bool key filter 2024-01-21 14:35:35 +01:00
braks 68cfbaebbe chore(core): lint files 2024-01-21 14:35:35 +01:00
braks 3364144b85 refactor(core)!: update handle styles
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2024-01-21 14:35:35 +01:00
braks 2192fff9b2 fix(core,connection-line): pass flow id to getMarkerId in connection line 2024-01-21 14:35:35 +01:00
braks 1012f2cae9 feat(core): add useConnection composable 2024-01-21 14:35:35 +01:00
braks 2f0b00f854 feat(core,handle): expose onClick and onPointerDown handlers 2024-01-21 14:35:35 +01:00