Commit Graph
157 Commits
Author SHA1 Message Date
braks ba0cf54fef refactor(core): keep connection line snapped to handle while hovering 2023-11-10 15:19:16 +01:00
braks c1603b2d58 feat(core): add nodes to isValidConnection args 2023-11-08 08:27:12 +01:00
braks 2ecd8def81 fix(core): push emit handlers into listeners set 2023-10-30 13:36:07 +01:00
braks 0bf12601df refactor(core): rename onError arg to triggerError 2023-10-30 13:36:07 +01:00
braks 7494817842 refactor(core): remove default event listener void fn 2023-10-30 13:36:07 +01:00
braks 3b175a553e refactor(core): remove primtive typeguards 2023-10-30 13:36:07 +01:00
braks 2a407f59e3 refactor(core): add stub for addEventListener in useWindow 2023-10-30 13:36:07 +01:00
braks c916284917 refactor(core): allow using expandParent with parent extent 2023-10-06 18:00:01 +02:00
braks edc7669b18 feat(core): add getIncomers, getOutgoers & getConnectedEdges as store actions 2023-10-06 18:00:01 +02:00
braks 7a013771f3 feat(core): add source and target node ids to edge remove changes 2023-10-06 18:00:01 +02:00
braks 67704e5a8f fix(core): use os specific key defaults 2023-08-21 17:44:20 +02:00
braks ac86b77b89 fix(core): unwrap blur fn 2023-07-25 09:20:15 +02:00
braks 2a597f8605 feat(core): allow passing node or id to getoutgoers/getincomers 2023-07-24 23:46:59 +02:00
braks 987538aebd feat(core): add hasListener to event hooks 2023-07-24 23:46:59 +02:00
braks 08f749ae30 fix(core): pass handle dom node to valid handle result 2023-07-19 19:12:29 +02:00
braks f52380d3d2 fix(core): nested nodes extent calculation off 2023-07-11 00:21:19 +02:00
Braks 82e79a6113 fix(core): clamp node extent by node dimensions to avoid overflow (#1014) 2023-07-10 19:20:26 +02:00
braks 245dd82574 fix(core): prioritize handle below during handle lookup 2023-07-10 19:20:26 +02:00
braks f3931a2c05 fix(core): consider handle dimensions when checking for closest handle 2023-06-15 22:35:25 +02:00
braks 4d68397119 chore(core): remove groupEdgesByZIndex util 2023-06-15 22:35:25 +02:00
braks 8e5d748013 refactor(core): use separate svg container for edges 2023-06-15 22:35:25 +02:00
braks 9d3c3584ff fix(core): handle pos calculation 2023-06-15 22:35:25 +02:00
braks 6e2c3e5281 fix(core): use validator with null handle when no closest can be found 2023-06-15 22:35:25 +02:00
braks 1e786a9b08 chore(core): cleanup 2023-05-25 20:48:26 +02:00
braks e42897e3ed fix(core): filter closest handles by validity 2023-05-25 20:48:26 +02:00
braks 1690891804 fix(core): use all handles in radius and find closest valid one 2023-05-25 20:48:26 +02:00
braks b2cdb6a143 chore(core): cleanup 2023-05-25 20:48:26 +02:00
braks 4ad10c5030 refactor(core): check if element is object 2023-05-25 20:48:26 +02:00
braks c52396b43b chore(core): cleanup 2023-05-25 20:48:26 +02:00
braks 1a083fc861 chore(core): cleanup 2023-05-25 20:48:26 +02:00
braks 06ad0c0d20 refactor(core): avoid inserting invalid nodes 2023-05-25 20:48:26 +02:00
braks ff9f6471ed chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
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 5a86c7cf1d chore: update deps
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-25 20:48:26 +02:00
braks fb1181f209 refactor(core): pick target handle if handles are on top of each other
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-11 15:33:42 +02:00
braks bec2e74dcb fix(core): check if node exists during drag
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-05-05 11:02:58 +02:00
braks e6e0b25d94 chore(core): add 4 to cases for padding search
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 5ff6c01b17 chore(core): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks b3addf63d2 feat(core): allow passing node ids as string to getConnectedEdges
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 2b836dd392 fix(core): allow passing regular edges to getConnectedEdges
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks aae4a28702 chore(core): cleanup condition
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks f3ee95c81b feat(core): allow setting padding as number
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 4524948515 chore(core): cleanup types
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 717d8e0d43 feat(core): allow setting global node extent as range
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 4a24509f5f feat(core): allow coordinate extent as range
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-11 20:28:02 +02:00
braks 44049bf714 fix(core): allow extent when no parent exists
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 20dfddaad9 fix(core): allow null values to be set
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 11:13:53 +02:00
braks 4efc787067 refactor(core): add connection start and end handles to store state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00
braks eab9991762 fix(core): correct isDef typeguard
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
2023-04-03 08:53:33 +02:00