Commit Graph

44 Commits

Author SHA1 Message Date
Braks
c9fd24dc82 fix(core): use null as fallback id for edge source handle (#1794)
* fix(core): use null as fallback id for edge source handle

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>
2025-03-17 12:47:52 +01:00
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
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
Braks
8454dca6d4 chore(core): cleanup handle utils (#1497) 2024-07-01 09:44:55 +02:00
braks
faf67c2b55 fix(core): use computed edge ref 2024-06-06 10:45:38 +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
5e9db1c87f refactor(core): render null if edge is hidden 2024-06-06 10:45:38 +02:00
braks
464dc582dc fix(core): pass path options to edges 2024-04-29 20:56:09 +02:00
braks
f815ef6dd5 fix(core): prevent esc keypress when a11y is disabled 2024-02-21 23:27:01 +01:00
braks
5094e330b8 fix(core): wrap marker urls with quotes 2024-02-15 17:46:21 +01:00
braks
cedb1f51e7 chore(core): cleanup EdgeWrapper 2024-02-05 07:51:12 +01:00
braks
68cfbaebbe chore(core): lint files 2024-01-21 14:35:35 +01:00
braks
458b5d42ba fix(core): remove ts-transform-paths and use relative paths 2023-12-12 23:36:33 +01:00
braks
7e7e0fb8cb refactor(core): allow adding edges with missing source or target nodes 2023-10-30 13:36:07 +01:00
braks
ad7d01305e fix(core): unselect edge if selected and multi-selection is active 2023-10-06 18:00:01 +02:00
braks
bb1473a688 fix(core): add role img to edges if not focusable 2023-08-21 17:44:20 +02:00
braks
4f36cef1e8 fix(core): connection status prop as nullable 2023-07-19 19:12:29 +02:00
braks
435cb9b687 refactor(core): change nodeEl and edgeEl type to allow ref(null) 2023-07-10 19:20:26 +02:00
braks
f720f27360 chore(core): remove reactivity transform 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
4d505c974c refactor(core): allow ref for isValidConnection in useHandle 2023-05-25 20:48:26 +02:00
braks
13d3be9c33 chore(core): cleanup unnecessary refs 2023-05-25 20:48:26 +02:00
braks
4bc576ec7f fix(core): do not render edges connected to a hidden node
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +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
5560949ed1 chore: lint files
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks
26a68e83ed chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks
c9d643d700 fix(edges): set source and target position on edge obj
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-17 17:27:48 +01:00
braks
5bd1eed98e fix(core): use computed for edge class and style
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-10 10:40:23 +01:00
braks
05bc748100 feat(core): add isValidConnection prop
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-08 16:32:11 +01:00
braks
addd0bbb67 chore(core): revert edge renderer & wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
braks
320ea10c88 chore(core): cleanup props
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
braks
4d535ed34c refactor(core): cleanup edge and node renderer
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-03-02 08:47:38 +01:00
Alex Van Liew
b19b9a871b fix: add compatConfig to all components 2023-02-15 10:19:26 +01:00
braks
83636d4e53 refactor(core): pass original event to edge update event params
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-15 00:24:22 +01:00
braks
c528726f12 fix(core): prevent rendering edges that have been removed
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-10 15:44:45 +01:00
braks
f849999d20 fix(core): avoid triggering edge update when mouse btn is not left
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-07 12:59:26 +01:00
braks
bb2c4f449a chore(core): cleanup and replace const with function
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-07 12:27:41 +01:00
braks
93bfa54308 chore(core): add missing edge wrapper name
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-01 22:57:05 +01:00
braks
e74a20d923 feat(core): implement connection radius
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-02-01 22:57:05 +01:00
braks
84ffd50429 chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-01-18 20:47:32 +01:00
braks
ffbbc35fe9 feat(core,edges): add a11y to edge wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-20 00:38:56 +01:00
braks
f0f7e7e49a fix(edges): add missing edge class to edge wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-14 19:04:13 +01:00
braks
c673b04422 fix(edges): type marker prop in EdgeProps
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2022-12-06 17:41:46 +01:00
braks
c93ffafd31 chore(core,edges): simplify edge components 2022-11-13 23:25:04 +01:00