Commit Graph
55 Commits
Author SHA1 Message Date
braks e5a84656ad refactor(core): replace vueuse imports with vue 2024-02-21 23:27:01 +01:00
braks dda5b58211 refactor(core): use all nodes for handle lookup 2024-02-15 17:46:21 +01:00
braks fbb3f63134 chore(core): update composable jsdocs 2024-02-15 17:46:21 +01:00
braks 2ca5bd82a4 chore(core,composables): update jsdocs 2024-02-05 07:51:12 +01:00
braks 458b5d42ba fix(core): remove ts-transform-paths and use relative paths 2023-12-12 23:36:33 +01:00
braks 6162389cc2 revert(core): cleanup imports from vueuse/core that exist in vue
This reverts commit 7cc798ad
2023-11-08 16:22:15 +01:00
braks 17e5966e4f revert(core): import toValue from vueuse/core to avoid ambiguous export 2023-11-08 15:12:28 +01:00
braks c1603b2d58 feat(core): add nodes to isValidConnection args 2023-11-08 08:27:12 +01:00
braks 7cc798adae chore(core): cleanup imports from vueuse/core that exist in vue 2023-11-08 08:27:12 +01:00
braks 245dd82574 fix(core): prioritize handle below during handle lookup 2023-07-10 19:20:26 +02:00
braks b350486db3 chore(core): cleanup 2023-06-15 22:35:25 +02:00
braks f3931a2c05 fix(core): consider handle dimensions when checking for closest handle 2023-06-15 22:35:25 +02:00
braks b386c8580f fix(core): trigger connect if end handle exist in state 2023-06-15 22:35:25 +02:00
braks e42897e3ed fix(core): filter closest handles by validity 2023-05-25 20:48:26 +02:00
braks 1690891804 fix(core): use all handles in radius and find closest valid one 2023-05-25 20:48:26 +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 5a86c7cf1d chore: update deps
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-25 20:48:26 +02:00
braks 4d505c974c refactor(core): allow ref for isValidConnection in useHandle 2023-05-25 20:48:26 +02:00
braks 627cbf65a8 refactor(core): remove unnecessary computed var 2023-05-25 20:48:26 +02:00
braks fb1181f209 refactor(core): pick target handle if handles are on top of each other
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks ac23388394 chore(core): remove MaybeRefOrGetter util type and use MaybeComputedRef
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 4efc787067 refactor(core): add connection start and end handles to store state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks b1c88b3792 chore(core): cleanup handle
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks 5a50cfd90b feat(core): add clickConnectStart & clickConnectEnd events
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks f62e6dfc53 fix(core): unwrap nodesConnectable in onClick of handle
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-01 00:35:45 +02:00
braks f61e5beb02 chore: lint files
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-31 21:30:23 +02:00
braks 79a6fa318c fix(core): check if valid connection func exists
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-10 10:40:23 +01:00
braks 05bc748100 feat(core): add isValidConnection prop
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks 7519b31b8f tests: add custom connection line component test
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks 9fb551569d feat(core): store handle validation in store state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks f83c87db08 fix(core): check if handle is connectable
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-06 23:07:59 +01:00
braks 66e210adf4 chore(core): add todo
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-06 23:07:59 +01:00
braks 8a5225ab80 fix(core): connections for handles bigger than connection radius
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-15 00:24:22 +01:00
braks 83636d4e53 refactor(core): pass original event to edge update event params
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-15 00:24:22 +01:00
braks 619f4bf3e7 refactor(core): cleanup useHandle and set status on actions
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-06 01:13:13 +01:00
braks c800a86893 fix(core): check if prevClosestHandle exists in pointer up
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-06 01:05:17 +01:00
braks c36cf59a80 feat(core): add connection status to connection lines
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-05 22:57:41 +01:00
braks f2f3e70ebe fix(core): ios connection error
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-05 22:22:06 +01:00
braks cae9562481 fix(core): ref access when passing default edge options
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-02 12:30:48 +01:00
braks a5ebd48013 fix(core): pass valid connection func params
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-02 00:46:59 +01:00
braks 35d28abd65 feat(core): add pan on connection drag
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-01 23:32:45 +01:00
braks e0fbefef8f feat(core): do not snap to invalid handles
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-01 22:57:05 +01:00
braks 94e1282b10 refactor(core): first check element below
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-01 22:57:05 +01:00
braks e74a20d923 feat(core): implement connection radius
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-01 22:57:05 +01:00
braks 203b4815f8 chore(core): replace getNode with findNode
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-01-18 20:47:32 +01:00
braks a1e1304b63 fix(core): prevent valid connections on same node and handle
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-06 17:46:15 +01:00
braks b3fdbd884a feat(core): support touch for connection creation 2022-11-17 20:05:02 +01:00
braks 406b20b8ba chore(core): cleanup import paths 2022-11-17 17:55:20 +01:00