Commit Graph

651 Commits

Author SHA1 Message Date
Braks
2e2fa9a93c fix(core): allow using + as a key in key combinations (#1693)
* fix(core): allow using `+` as a key in key combinations

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-13 20:20:43 +01:00
Braks
129d543c4e fix(background): set default offset to 0 (#1692)
* fix(background): correct offset

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-13 20:20:43 +01:00
Braks
5a028cf2d4 fix(core): check if dragEnd event is UseDrag or MouseTouch event (#1680)
* feat(core): add snapPosition util

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

* fix(core): check if dragEnd event is actually a UseDrag or MouseTouch event

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

* chore(core): cleanup

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-13 20:20:43 +01:00
github-actions[bot]
6bb195da0c chore: bump versions 2024-11-01 23:13:48 +01:00
Braks
1e3acb1979 fix(core): if selection key code is true prevent pan on drag on left mouse btn (#1670)
* fix(core): if selection key code is true prevent pan on drag on left mouse btn

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

* chore(changeset): add

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

* fix(tests): correct viewport drag tests

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

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2024-11-01 23:13:48 +01:00
github-actions[bot]
367f8947f2 chore: bump versions (#1664)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-01 19:48:16 +01:00
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
900850d3ae fix(background): start patterns at 0,0 (#1666)
* fix(background): start patterns at 0,0

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
cfc2332370 fix(core): use all handle bounds in loose connection mode (#1665)
* fix(core): use all handle bounds with loose mode when updating edges

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
github-actions[bot]
becb928c39 chore: bump versions 2024-09-16 13:11:49 +02: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
6338a9db06 fix(core,nodes,edges): allow pointer events if mouse evt listeners exist (#1618)
* fix(core,nodes): allow node pointer events if listener(s) exist

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

* fix(core,edges): allow edge pointer events if listener(s) exist

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
github-actions[bot]
524d812945 chore: bump versions 2024-09-06 09:50:34 +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
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
github-actions[bot]
c555dfd987 chore: bump versions 2024-08-30 12:45:11 +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
github-actions[bot]
b3e457a35a chore: bump versions 2024-08-20 09:44:23 +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
github-actions[bot]
538b03ef6b chore: bump versions 2024-08-19 18:19:04 +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
github-actions[bot]
809a9a4e16 chore: bump versions 2024-08-06 08:04:18 +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
github-actions[bot]
faeed3d6be chore: bump versions 2024-08-05 10:11:34 +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
github-actions[bot]
90a289ebbd chore: bump versions 2024-07-27 20:23:46 +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
github-actions[bot]
d9a133bd01 chore: bump versions 2024-07-15 19:14:01 +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
github-actions[bot]
f2ecf29cf8 chore: bump versions 2024-07-09 10:16:32 +02:00
braks
f63e0efd0a chore(changeset): add 2024-07-09 10:16:32 +02:00
github-actions[bot]
0814d423bc chore: bump versions 2024-07-09 00:42:51 +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
github-actions[bot]
d368263904 chore: bump versions 2024-07-08 22:22:48 +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
github-actions[bot]
50b32efc7d chore: bump versions 2024-07-01 16:03:21 +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
github-actions[bot]
d3b706ea98 chore: bump versions 2024-07-01 10:34:54 +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
github-actions[bot]
d0728ac7b0 chore: bump versions 2024-07-01 09:44:55 +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