Commit Graph

3662 Commits

Author SHA1 Message Date
Mark Tolmacs d3e6ecd1bf
Scaling fixed point binding
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-02 11:54:15 +02:00
Mark Tolmacs ebf43a7a29
Fixed point bindnig iteration
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-01 19:18:51 +02:00
Mark Tolmacs 21e73a03f1
Scaling fixedPoint binding fixed
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-01 18:26:38 +02:00
Mark Tolmacs 5fdefccdcc
Fix jittering when resizing bound elements
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-01 18:08:57 +02:00
Mark Tolmacs cdde52c844
Drag create snapping as well
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-01 16:34:14 +02:00
Mark Tolmacs 535fbe4b4a
Remove intermittent points when converting back to simple arrow
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-01 15:40:38 +02:00
Mark Tolmacs 0bd393078e
5px snapping on binding with elbow arrows
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-01 15:36:05 +02:00
David Luzar 1d5b41dabb
fix: stop updating text versions on init (#8191) 2024-07-01 14:04:58 +02:00
Mark Tolmacs f6ae4b1be5
Rotation fixes and refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-01 10:52:06 +02:00
Márk Tolmács 66a2f24296
fix: Add binding update to manual stat changes (#8183)
Manual stats changes now respect previous element bindings.
2024-07-01 09:45:31 +02:00
Mark Tolmacs 20b12b465f
Snapping reimplementation attempt
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-28 20:21:08 +02:00
Márk Tolmács 04668d8263
fix: Binding after duplicating is now applied for both the old and duplicate shapes (#8185)
Using ALT/OPT + drag to clone does not transfer the bindings (or leaves the duplicates in place of the old one , which are also not bound).

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-28 15:28:48 +02:00
David Luzar abbeed3d5f
feat: support Stats bound text `fontSize` editing (#8187) 2024-06-28 13:52:29 +02:00
Márk Tolmács ba8c09d529
fix: Incorrect point offsetting in LinearElementEditor.movePoints() (#8145)
The LinearElementEditor.movePoints() function incorrectly calculates the offset for local linear element points when multiple targetPoints are provided, one of those target points is index === 0 AND the other points are moved in the negative direction, and ending up with negative local coordinates.

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-28 12:23:10 +02:00
David Luzar 744b3e5d09
fix: stats state leaking & race conds (#8177) 2024-06-26 23:31:08 +02:00
Mark Tolmacs c5dce2b6dd
Simple to elbow arrow conversion rotation fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-26 22:12:42 +02:00
Mark Tolmacs cddef79797
Stats manual update binding fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-26 19:50:05 +02:00
Mark Tolmacs 40d673b3eb
Fix fixedPoint calculation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-26 17:37:22 +02:00
Mark Tolmacs 507ad7a8c9
Group resize fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-26 16:28:13 +02:00
Mark Tolmacs c0e0ac1522
Disable roundedness at group property changes
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-26 13:48:44 +02:00
Mark Tolmacs 1a9b5f03e0
Don't bind or avoid when group rotating elbow arrows
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-26 13:47:56 +02:00
Mark Tolmacs abaad9746b
Refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-26 13:14:46 +02:00
Mark Tolmacs bcf879c7e3
Remove unneeded functions
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-26 13:01:11 +02:00
Mark Tolmacs 58b265b917
Bound elbow arrow rotation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-25 19:20:56 +02:00
Mark Tolmacs ecc85e076e
Fix undo elbow arrow incorrect direction
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-24 13:23:13 +02:00
Esteban Romo 6ba9bd60e8
feat: allow props.initialData to be a function (#8135) 2024-06-24 11:36:49 +02:00
Mark Tolmacs a85641dff5
Avoidance on semi-overlap
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-21 17:19:45 +02:00
Mark Tolmacs f91712c06d
Group rotation fixed
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-21 16:03:41 +02:00
Mark Tolmacs f04e3753f7
History fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-21 15:08:02 +02:00
Mark Tolmacs 6217d7eca7
Routing padding fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-21 14:18:55 +02:00
Mark Tolmacs 74f3b2be50
Arrow restore fixed
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-20 14:47:27 +02:00
Mark Tolmacs 7c697a581e
Shape avoidance allows overlapping shape routing
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-20 14:13:19 +02:00
Mark Tolmacs 110fb427e8
Rotation fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-19 19:12:53 +02:00
Mark Tolmacs 7b576f7417
Cursor change for elbow element
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-19 19:00:20 +02:00
Mark Tolmacs 322c63bc93
Fix purity warning in React for LinearElementEditor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-19 17:15:28 +02:00
Mark Tolmacs e4f233bb3d
Simplified grid creation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-19 15:36:39 +02:00
Mark Tolmacs 81cc09a6e5
Unattached elbow arrow unroutable fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-19 15:06:05 +02:00
Mark Tolmacs e9617bf093
Fix manhattan distance function
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-19 14:00:48 +02:00
Mark Tolmacs 399fe67df5
Re-render elbow arrow for undo/redo
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-19 12:36:24 +02:00
zsviczian a1ffa064df
fix: only bind arrow (#8152)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-06-19 10:55:35 +02:00
Mark Tolmacs a3903d76b8
Routing heuristics iteration
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 18:09:59 +02:00
Mark Tolmacs 220a675822
Flickering endpoint fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 16:49:08 +02:00
Mark Tolmacs 0fa0c261f8
Overlap disable
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 16:37:52 +02:00
Mark Tolmacs dfd2319f7c
Drag to create elbow arrow
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 14:28:23 +02:00
Mark Tolmacs 8fbc4742d7
Resize with fixedPoint updates
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 13:51:51 +02:00
Mark Tolmacs e4fda46088
Merge branch 'master' into feat/astar
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 11:25:05 +02:00
Mark Tolmacs 1f5562923e
Dragging points out of binds fixed
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 10:58:36 +02:00
Mark Tolmacs 10ae191eaa
Fix LinearElementEditor.movePoints when multiple points are moved and one of them is index 0
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 08:55:47 +02:00
Mark Tolmacs 5fcdf699dd
Stuck start point fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-18 06:35:39 +02:00
Mark Tolmacs 1c54fcd44c
Trying routing no 12.
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-06-17 20:59:25 +02:00