Commit Graph
130 Commits
Author SHA1 Message Date
braks 2a407f59e3 refactor(core): add stub for addEventListener in useWindow 2023-10-30 13:36:07 +01:00
braks a32c81aaf3 refactor(core): add warning when viewport noop is triggered 2023-10-30 13:36:07 +01:00
braks b0ffe42007 chore(core): update d3 type deps 2023-10-07 11:39:48 +02:00
braks e71a2aa4ef feat(core): add nodeDragThreshold option 2023-10-06 18:00:01 +02:00
braks db894a5adb feat(core): add flowToScreenCoordinate & screenToFlowCoordinate to viewport actions 2023-10-06 18:00:01 +02:00
braks 505ecc4c21 fix(core): reset isPressed value when switching from boolean to other keyfilter 2023-08-21 17:44:20 +02:00
braks 65c3a05d84 chore(core): cleanup 2023-08-21 17:44:20 +02:00
braks f095917e97 fix(core): clear key on keyup so combinations work during simultaneous keypress 2023-08-21 17:44:20 +02:00
braks 0867637b50 fix(core): allow passing key combination as string 2023-08-21 17:44:20 +02:00
braks 45f18d5459 fix(core): use detached scope to dispose state and stop watcher 2023-07-24 23:46:59 +02:00
braks 620852b860 fix(core): watch applyDefault state in useVueFlow scope 2023-07-24 23:46:59 +02:00
braks 4412516476 chore(core): cleanup 2023-07-24 23:46:59 +02:00
braks 9f63252c62 feat(core): add setViewport and getViewport to viewport helper 2023-07-24 23:46:59 +02:00
braks a2e4d99f5b fix(core): dont wait for nodesInitialized to trigger for viewport helper 2023-07-24 23:46:59 +02:00
braks 42aa13e2a5 chore(core): cleanup useZoomPanHelper 2023-07-24 23:46:59 +02:00
braks 7df2bfa146 feat(core): resolve promise from viewport actions on transition end 2023-07-24 23:46:59 +02:00
braks 6bd442f844 fix(core): abort fit view when there's no nodes to fit around 2023-07-24 09:55:03 +02:00
braks 4d5bbab506 fix(core): use noop viewport operations instead of waiting for promise 2023-07-19 19:12:29 +02:00
braks 245dd82574 fix(core): prioritize handle below during handle lookup 2023-07-10 19:20:26 +02:00
Braks 55de815a39 chore(core): cleanup (#1003) 2023-07-10 19:20:26 +02:00
braks 435cb9b687 refactor(core): change nodeEl and edgeEl type to allow ref(null) 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 13d3be9c33 chore(core): cleanup unnecessary refs 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 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 85dcbf4b46 fix(core): pass selectionKeyCode ref to useKeyPress
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-05 11:02:58 +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 f42aede440 chore(docs): use promise.all to fetch counters
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-02 23:27:09 +02:00
braks 260a3d9a86 refactor(core): set vue flow version as regular string instead of ref
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-26 10:15:39 +02:00
braks 72cd853502 chore(core): remove reactivity transform from useKeyPress
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +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 1e2a51ebb5 chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks f5c8a0424f refactor(core): search all edges for connected edges in useNode
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 ebed9663b4 refactor(core): pass node and edge id computed to getters and actions
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