Commit Graph
97 Commits
Author SHA1 Message Date
Braks 0825101ebe refactor(core): remove node intersections arg from drag events (#1460)
* refactor(core): remove node intersections arg from drag events

* chore(changeset): add

* docs(examples): update intersection example
2024-06-13 00:04:51 +02:00
Braks 0c5dfddc47 refactor(core): remove initialized from graph-nodes (#1457)
* refactor(core): remove `initialized` from graph-nodes

* chore(changeset): add

* refactor(node-resizer): replace node initialized check

* chore(changeset): add
2024-06-13 00:04:51 +02:00
Braks 876b71dc19 refactor(core): use node/edge id as only dependency for nodes/edges list (#1447)
* refactor(core): use node id to (re-)render nodes

* refactor(core): use edge id to (re-)render nodes

* chore(changeset): add

* chore(core): cleanup

* chore(core): cast cmp as any
2024-06-06 10:45:38 +02:00
braks 3498399ef7 refactor(core): render null if node is hidden 2024-06-06 10:45:38 +02:00
braks c48d3c9be3 fix(core): use default cursor and apply drag cursor if node is draggable 2024-02-21 23:27:01 +01:00
braks f815ef6dd5 fix(core): prevent esc keypress when a11y is disabled 2024-02-21 23:27:01 +01:00
braks e5a84656ad refactor(core): replace vueuse imports with vue 2024-02-21 23:27:01 +01:00
braks ee8748e936 chore(core): add missing generic for output node 2024-02-15 17:46:21 +01:00
braks 6c638b8e27 refactor(core): use data obj for labels in default nodes 2024-02-15 17:46:21 +01:00
braks 259514a229 refactor(core): cast zIndex to ref 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 4bbc14b882 fix(core): update node dimensions on next tick 2024-02-05 07:51:12 +01:00
braks 68cfbaebbe chore(core): lint files 2024-01-21 14:35:35 +01:00
braks 458b5d42ba fix(core): remove ts-transform-paths and use relative paths 2023-12-12 23:36:33 +01:00
braks fb3d6a7f13 chore(core): cleanup node wrapper 2023-12-12 20:29:54 +01:00
braks 3b175a553e refactor(core): remove primtive typeguards 2023-10-30 13:36:07 +01:00
braks ee45b4e560 fix(core): select nodes on drag when threshold is > 0 2023-10-30 13:36:07 +01:00
braks 1415652a1b fix(core): use post flush when calculating new node pos 2023-07-19 19:12:29 +02:00
braks 435cb9b687 refactor(core): change nodeEl and edgeEl type to allow ref(null) 2023-07-10 19:20:26 +02:00
braks ff9f6471ed chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
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 5a86c7cf1d chore: update deps
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-25 20:48:26 +02:00
braks b3412bc8ec chore(core): cleanup 2023-05-25 20:48:26 +02:00
braks 20a9521cac refactor(core): pass drag handle to useDrag 2023-05-25 20:48:26 +02:00
braks 26be1d2826 feat(core): add parent class name to parent nodes
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks a7db003b68 refactor(core): remove reactivity transform in node wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks d9be769f74 chore(core): cleanup types
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 5560949ed1 chore: lint files
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks f19e210442 refactor(core): replace computed arg with getter fn
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02: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 fe46e6f103 fix(core,nodes): rename parentNode prop to parent
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-17 19:44:34 +01:00
braks 0476dffa98 fix(core,nodes): unwrap refs and pass props
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-17 19:44:34 +01:00
braks ccb302f132 chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-17 17:27:48 +01:00
braks d8434e6e8f fix(core,nodes): use render fn for node wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-17 17:27:48 +01:00
braks 8cf8c51e0e fix(core): blur node after unselect
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-06 23:07:59 +01:00
braks 566ba8e1f6 chore(core): revert node renderer & wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
braks 7c026f084a fix(core): prevent selecting nodes on drag when selectable disabled
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
braks e3e35109f1 refactor(core): cleanup node styles
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
braks 4d535ed34c refactor(core): cleanup edge and node renderer
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
braks 325efba856 refactor(core): use lifecycle hooks to observe node dimensions
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-24 20:07:13 +01:00
braks 0ffc2f1dff fix(core): check if node el exists before observing
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-24 20:07:13 +01:00
braks 79e7f3ccdb fix(core): cast zIndex to number in node wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-24 20:07:13 +01:00
braks fa6cb4c6d9 refactor(core): use snap grid to clamp initial node pos
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-22 20:20:11 +01:00
braks aafd8622f4 chore(core): update functional component types
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-22 20:20:11 +01:00
Alex Van LiewandBraks b19b9a871b fix: add compatConfig to all components 2023-02-15 10:19:26 +01:00
braks a5ee9d978c refactor(core): use watcheffect to observe node dimensions
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-10 15:53:38 +01:00
braks 0dcfd6f9a4 feat(core): add auto pan on node drag
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-01 23:32:45 +01:00
braks f0d4763a99 refactor(core): use removeSelectedNodes in click handler
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-01-19 09:21:55 +01:00