Commit Graph

47 Commits

Author SHA1 Message Date
Braks
d4ccb11a4c feat(core): add autoPanSpeed prop (#1535)
* feat(core): add `autoPanSpeed` prop

* chore(changeset): add
2024-07-15 19:14:01 +02:00
braks
dab5ab4bbf fix(core): ignore minor drag movements when marking aborted drag 2024-07-09 10:16:32 +02:00
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
4548021b74 fix(core): emit node click event when drag was ended with no movement (#1522)
* fix(core): emit node click event when drag was ended with no movement

* chore(changeset): add
2024-07-08 22:22:48 +02:00
Braks
8bc1c99252 fix(core): disable drag when using multi-touch (#1448)
* fix(core): disable drag when using multi-touch

* chore(changeset): add
2024-06-06 10:45:38 +02:00
braks
e5a84656ad refactor(core): replace vueuse imports with vue 2024-02-21 23:27:01 +01:00
braks
fbb3f63134 chore(core): update composable jsdocs 2024-02-15 17:46:21 +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
7cc798adae chore(core): cleanup imports from vueuse/core that exist in vue 2023-11-08 08:27:12 +01:00
braks
c30ddc61ed fix(core): properly cleanup handlers when drag is disabled 2023-11-04 19:25:49 +01:00
braks
e71a2aa4ef feat(core): add nodeDragThreshold option 2023-10-06 18:00:01 +02:00
braks
435cb9b687 refactor(core): change nodeEl and edgeEl type to allow ref(null) 2023-07-10 19:20: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
e52f74703a chore(core): remove reactivity transform from useDrag 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
df542208d2 refactor(core): return boolean from panBy
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-05 11:02:58 +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
7a55cb992d chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks
1b85842d48 fix(core): prevent auto-pan from dragging into infinity
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks
bfff13572e refactor(core): add onBeforeTransform arg to panBy action
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
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
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
ee8ccfe2cc chore(core): cleanup types
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
c7e8bd7630 fix(core): avoid undraggable selected nodes being dragged
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-05 22:22:16 +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
c13d28d5e2 fix(core): use computed var to get node in drag handler
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-01-19 09:21:55 +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
6aec81532c fix(core): calculate position and computedPos correctly in calcNextPosition
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-01-05 13:06:26 +01:00
braks
fd79ab141d feat(core): implement figma controls
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-25 17:38:56 +01:00
braks
dd1b15029d fix(core): drag position update
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-20 00:38:56 +01:00
braks
9f50dd0865 feat(core,nodes): implement a11y in nodes
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-20 00:38:56 +01:00
braks
5033babdc2 feat(core): add useGetPointerPosition composable
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-13 15:49:20 +01:00
braks
ddf6e5f5db fix(core): add missing dragging flag to nodes
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-12 15:53:43 +01:00
braks
dce5d86867 refactor(nodes): only trigger dragging flag when a change has occured
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-08 16:48:18 +01:00
braks
406b20b8ba chore(core): cleanup import paths 2022-11-17 17:55:20 +01:00
braks
6106e90abc chore(core): remove unnecessary imports 2022-11-08 20:27:22 +01:00
braks
ad0f8ff3dc fix(core,nodes): set node dragging on start and end 2022-10-18 16:28:06 +02:00
braks
9f48095b51 revert(nodes): add dragging class to node on drag instead of dragstart 2022-10-14 21:13:48 +02:00
braks
00a5ee0416 refactor(nodes): trigger dragging on drag start 2022-10-13 23:23:43 +02:00
braks
082050b164 refactor(core): rename core pkg dir to core 2022-10-10 21:33:44 +02:00