Commit Graph
38 Commits
Author SHA1 Message Date
Braks 9d14595f1d fix(core): emit node click if drag was aborted (#1525)
* fix(core): emit node click if drag was aborted

* chore(changeset): add

* chore(core): cleanup
2024-07-09 00:42:51 +02:00
Braks d8ddc4de6e fix(core): use post flush to re-observe nodes after toggling visibility (#1517)
* fix(core): use `post` flush to re-observe nodes after toggling visibility

* chore(changeset): add

* chore(core): cleanup
2024-07-01 16:03:21 +02:00
Braks cff55c8ebf refactor(core): use empty arr when updating all internals (#1476)
* refactor(core): use empty arr when updating all internals

* chore(changeset): add
2024-06-18 12:29:29 +02:00
Braks d658c1d357 refactor(core): replace arr reduce methods (#1467)
* refactor(core): replace arr reduce methods

* chore(core): cleanup
2024-06-13 00:04:51 +02:00
Braks 798faf1be4 refactor(core): remove connectedEdges from node mouse events (#1464)
* refactor(core): remove `connectedEdges` from node mouse events

* chore(changeset): add
2024-06-13 00:04:51 +02:00
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 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 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