Commit Graph
216 Commits
Author SHA1 Message Date
Braks 72e0e2e97e fix(core): set isPressed to true on blur and contextmenu events if permant keypress is enabled (#1667)
* fix(core): set isPressed to `true` on reset if permanent keypress is enabled

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2024-11-01 19:48:16 +01:00
Braks fe552fc5c5 fix(core): allow pan on drag for non left-btn when selectionKeyCode is true (#1662)
* fix(core): allow pan on drag for non left-btn when selection key code is true

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* fix(core): reorder pane class names

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(core): cleanup

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2024-11-01 19:48:16 +01:00
Braks 6cc30429b5 fix(core): calculate distance to trigger drag-click (#1624)
* fix(core): calculate distance to trigger drag-click

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2024-09-16 13:11:49 +02:00
Braks 43ed0a8318 fix(core): prevent drag click when multi selection is active (#1609)
* fix(core): prevent drag click when multi selection is active

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2024-09-06 09:50:34 +02:00
Braks 1d772af4a4 refactor(core): remove null as return type of data in useNodesData (#1575)
* refactor(core): remove `null` as return type of data

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2024-08-19 18:19:04 +02:00
Braks fff558fbc3 fix(core): check if injected state matches options and scope id (#1562)
* fix(core): prefer options id when finding state

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* fix(core): check if injected state matches options id

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2024-07-27 20:23:46 +02:00
Braks 8539731a8a fix(core): dispatch click if drag move was attempted (#1534)
* fix(core): dispatch click if drag move was attempted

* chore(core): cleanup
2024-07-15 19:14:01 +02:00
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 9154687410 fix(core): avoid re-snapping to same handle (#1514)
* fix(core): avoid re-snapping to same handle

* chore(changeset): add
2024-07-01 16:03:21 +02:00
Braks 3489fae8fe refactor(core): use correct end handle position in connection line (#1508)
* refactor(core): use correct end handle position in connection line

* chore(changeset): add
2024-07-01 09:44:55 +02:00
Braks 545bb4edf5 refactor(core): remove useWindow (#1504)
refactor(core): remove `useWindow`
2024-07-01 09:44:55 +02:00
braks e435485b77 feat(core): make useKeyPress public and export it 2024-07-01 09:44:55 +02:00
braks ea75f8aac0 refactor(core): allow passing target to useKeyPress 2024-07-01 09:44:55 +02:00
Braks e2ce2053e4 fix(core): correct id access in useVueFlow (#1483)
* fix(core): correct id access in `useVueFlow`

* chore(changeset): add
2024-06-18 12:49:20 +02:00
Braks 4fe1a7b541 refactor(core): add overloads to useVueFlow (#1481)
* refactor(core): add overloads to `useVueFlow`

* chore(changeset): add

* chore(core): cleanup
2024-06-18 12:29:29 +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 850f54aebd chore(core): cleanup unused event arg (#1475)
chore(core): cleanup unused `event` arg
2024-06-13 00:04:51 +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 70b39cc78e refactor(core): deprecate useVueFlow options arg (#1465)
refactor(core): deprecate vueflow options
2024-06-13 00:04:51 +02:00
Braks a9ccd61eec feat(core): add useEdgesData composable (#1462)
* feat(core): add `useEdgesData` composable

* chore(changeset): add

* chore(core): add export
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 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 1bb7a19e1b feat(core): add edge id to handle connections 2024-06-06 10:45:38 +02:00
braks 02f3ca2ba0 refactor(core): replace array fns 2024-05-31 16:09:34 +02:00
braks cd362799e4 fix(core): use separate prevConnections map 2024-05-31 16:09:34 +02:00
braks 8a8c8f50bf feat(core): add missing styles warning 2024-05-28 19:18:23 +02:00
braks 96b78ce19d fix(core): prevent auto pan if set to false 2024-05-15 09:00:24 +02:00
braks 84969ab451 fix(core): prevent delete action if inside input field 2024-04-29 20:56:09 +02:00
braks b0f1bf0b85 fix(core): add options to useKeyPress 2024-04-29 20:56:09 +02:00
braks 0a9e950077 refactor(core): move storage to separate file 2024-03-24 13:31:22 +01:00
braks 31700221f2 fix(core): store vf instance on vue app for ssr 2024-03-24 13:31:22 +01:00
braks 5df365cd63 chore(core,types): cleanup 2024-03-06 22:21:57 +01:00
braks 3ed91a0055 fix(core): check if dimensions exist in useNodesInitialized 2024-02-28 10:54:59 +01:00
braks 1184941900 fix(core,composables): correct typing of useNodesData return 2024-02-23 08:47:19 +01:00
braks c7313ca421 chore(core): cleanup 2024-02-21 23:27:01 +01:00
braks 68ba9075e9 feat(core,composables): add type and id to useNodesData 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 0139e6eb0f chore(core): cleanup 2024-02-15 17:46:21 +01:00
braks dda5b58211 refactor(core): use all nodes for handle lookup 2024-02-15 17:46:21 +01:00
braks 300c742352 refactor(core): rename useViewport to useViewportHelper 2024-02-15 17:46:21 +01:00
braks ffdea45af4 refactor(core): use useNodesInitialized to emit nodesInitialized 2024-02-15 17:46:21 +01:00
braks fbb3f63134 chore(core): update composable jsdocs 2024-02-15 17:46:21 +01:00
braks f2165afe6f feat(core,composables): add useNodesInitialized composable 2024-02-15 17:46:21 +01:00
braks 04658b2c0d fix(core): avoid options passed to useVueFlow overwriting default state 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 2ca5bd82a4 chore(core,composables): update jsdocs 2024-02-05 07:51:12 +01:00
braks 7161e9ec90 refactor(core): allow null instead of undefined as id for useHandleConnections 2024-02-05 07:51:12 +01:00