Commit Graph

37 Commits

Author SHA1 Message Date
Braks
b33da47a3a fix(core): use center position of handle as snapping point for connection lines (#1625)
* fix(core): calculate handle positions correctly

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

* fix(core): remove handleId check

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

* chore(core): cleanup

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

* chore(core): cleanup click connect handlers

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

* fix(core): add flow id to handle ids

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

* tests: correct updateEdge test

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

* fix(core): use center position of handle

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

* chore(examples): cleanup easy connect example

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

* refactor(tests): run actions on chrome

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

* chore(workflows): correctly hash lock file

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

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2025-01-04 16:56:00 +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
braks
82d99915d3 tests: update handle ids in tests 2024-06-06 10:45:38 +02:00
braks
df591b1295 chore(tests): cleanup 2024-02-21 23:27:01 +01:00
braks
4666fecc39 tests: update useNodesData tests 2024-02-21 23:27:01 +01:00
braks
3fa7fde394 tests: add useNodesInitialized test 2024-02-15 17:46:21 +01:00
braks
96b93e30e3 refactor(tests): use connection line tester cmp 2024-02-05 13:13:22 +01:00
braks
9837e0d34f refactor(tests): use composable tester cmp 2024-02-05 13:13:22 +01:00
braks
7f6ae2fbf8 tests: add tests for useNodesData 2024-02-05 07:51:12 +01:00
braks
4d8cd3c1a4 tests: add tests for updateNodeData & updateNode 2024-02-05 07:51:12 +01:00
braks
c855dfe454 feat(core): add viewport helper to state 2024-02-05 07:51:12 +01:00
braks
8a888a9194 tests: use transform matrix to confirm node positions 2024-01-29 21:56:44 +01:00
braks
db4c2da9a5 feat(tests): add fitView tests 2023-07-24 09:55:03 +02:00
braks
faee0e3ddc chore(tests): move setState test to separate dir 2023-07-24 09:55:03 +02:00
braks
94b43a68d6 chore: lint 2023-05-25 20:48:26 +02:00
braks
9bf9c644be tests: use timeout to avoid cli run fails 2023-05-25 20:48:26 +02:00
braks
f9462d16a9 tests: update delete key code tests 2023-05-25 20:48:26 +02:00
braks
669a2a3f8c tests: update nodes tests 2023-05-25 20:48:26 +02:00
braks
3a1b0ab78b tests: update edges tests 2023-05-25 20:48:26 +02:00
braks
a238c6d3f5 chore(tests): lint
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-24 00:13:01 +02:00
braks
f61e5beb02 chore: lint files
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-31 21:30:23 +02:00
braks
870c8fd407 chore(tests): update deps
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks
3f72713e3e tests: test if custom props are passed to custom connection line
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks
929e2b5d04 tests: add isValidConnection prop test
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks
7519b31b8f tests: add custom connection line component test
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks
c91aac782d chore(tests): wait to find edge
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
braks
13db453b66 tests: update connect tests to check if events were emitted
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
braks
e10663ad5d tests: add custom edge test
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-24 20:07:13 +01:00
braks
17c28a7b6d tests: add custom node test
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-23 14:59:38 +01:00
braks
12845eb7e2 tests: update min/max zoom tests
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-22 20:20:11 +01:00
braks
a3ec3b40a7 refactor(tests): rename e2e to tests
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-22 20:20:11 +01:00
Braks
08204fdcbb feat: Test pipeline
* Rename tests dir to e2e as tests gets ignored as "package" by turbo
2022-04-11 11:30:10 +02:00
Braks
f011ea61b1 chore: Remove unused eslint-rules & lint files 2022-04-11 11:30:10 +02:00
Braks
e877643354 tests: fix test checking for wrong element type
* remove negation from check
2022-04-11 11:30:10 +02:00
Braks
a686d62528 fix(tests): initial state tests 2022-04-04 21:42:48 +02:00
Braks
c1594b0071 update(examples): move examples into src dir 2022-04-04 21:42:48 +02:00
Braks
cd817b7f53 feat: implement workspaces 2022-04-04 21:42:48 +02:00