Commit Graph
776 Commits
Author SHA1 Message Date
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 f4bde90302 fix(core): prevent overwriting size in node styles object (#1608)
* fix(core): prevent overwriting size in node styles object

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

* fix(core): update node styles if `updateStyles` is `true`

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

* chore(core): update pkg json links

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 eb12bdc56f fix(core): don't set user selection flags on pointer down (#1600)
* chore(core): remove deprecation of `removeSelectedElements`

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

* fix(core): don't set user selection flags on pointer down

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

* fix(core): prevent panning on drag when 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-08-30 12:45:11 +02:00
Braks 9c003d4353 feat(core): add getHandleConnections action (#1595)
* feat(core): add `getHandleConnections` action

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-30 12:45:11 +02:00
Braks 47281fd668 fix(core): inline event names (#1591)
* fix(core): inline event names

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-20 09:44:23 +02:00
Braks e90f4cca57 fix(core): only display grab cursor when panOnDrag is on left mouse button (#1586)
* fix(core): only display grab cursor when panOnDrag is on left mouse button

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 ebc604d980 fix(core): simplify event emit definitions to avoid hitting complexity limit of TS (#1585)
* fix(core): simplify event emit definitions

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 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 afa88610ed fix(core): push into changes arr instead of using index (#1569)
* fix(core): push into changes arr instead of using index

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-06 08:04:18 +02:00
Braks a8d837bf93 fix(core): only capture pointer if valid selection has started (#1565)
* fix(core): only capture pointer if valid selection has started

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-05 10:11:34 +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 763f107aad fix(core): prevent calling selectionEnd on selection click (#1545)
* fix(core): prevent calling `selectionEnd` on selection click

* chore(changeset): add
2024-07-15 19:14:01 +02:00
Braks f32983116d fix(core): handle pointer capture for selection on drag (#1543)
* fix(core): handle pointer capture for selection on drag

* chore(changeset): add
2024-07-15 19:14:01 +02:00
Braks 180109c0ca feat(core): add paneClickDistance (#1542)
* feat(core): add `paneClickDistance`

* chore(changeset): add
2024-07-15 19:14:01 +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 0a0dfe96f1 chore(core): cleanup deprecation notices (#1527)
* chore(core): cleanup `getNodes` usage from Pane

* chore(core): cleanup deprecation notices
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 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 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 c8b55223b9 fix(core): correct calculation of nodes inside selection (#1509)
* fix(core): correct calculation of nodes inside selection

* chore(changeset): add
2024-07-01 10:34:54 +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 266f8744ad chore(core): cleanup pane (#1507)
* chore(core): cleanup pane

* chore(core): cleanup actions
2024-07-01 09:44:55 +02:00
Braks e57f22c185 fix(core): correct pane pointer evt handlers (#1505) 2024-07-01 09:44:55 +02:00
Braks a52ac6e90e fix(core): remove v-memo from edge renderer (#1506)
* fix(core): remove v-memo from edge renderer

* 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 410765b87b feat(core): allow string array or object as class to node/edge objects (#1502)
* feat(core): allow string array as class

* chore(changeset): add

* feat(core): allow record as class

* chore(changeset): add
2024-07-01 09:44:55 +02:00
Braks 8454dca6d4 chore(core): cleanup handle utils (#1497) 2024-07-01 09:44:55 +02:00
Braks 09e222124c refactor(core): calculate correct handle pos in handle lookup (#1494)
* refactor(core): use `getHandlePosition` to calculate handle pos

* chore(changeset): add
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 4effbb0008 refactor(core): use pointer evts in pane and prevent cancel of selection 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 cf32d59074 refactor(core): replace until watcher with onMounted in handle cmp (#1488) 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 9b4e3b2656 feat(core): add EdgePathParams type to edge utils (#1479)
* feat(core): add `EdgePathParams` type to edge utils

* chore(changeset): add

* chore(core): cleanup jsdocs
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 d429394f42 refactor(core): cleanup connection line component (#1470) 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 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 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 19df6ca57a fix(core): event type 2024-06-13 00:04:51 +02:00
Braks ed2e5744fd fix(core): hide graph until initial fitview is done (#1459)
* fix(core): hide graph until initial fitview is done

* chore(changeset): add

* fix(core): wait for fit view to finish
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 9a7e4ac952 refactor(core): use for loop 2024-06-13 00:04:51 +02:00