Commit graph

37 commits

Author SHA1 Message Date
Mark Tolmacs
37653484a1 Rotated arrow drag fixes
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-04-07 13:08:36 +02:00
Mark Tolmacs
9a599cfc05 Fix drag rotation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-04-07 13:08:36 +02:00
Mark Tolmacs
4efa6f69e5 Inline binding logic fix 2025-04-07 13:08:36 +02:00
Mark Tolmacs
db9e501d35 [skip ci] Stats binding behavior changes and test updates 2025-04-07 13:08:35 +02:00
Mark Tolmacs
ce10087edc [skip ci] Binding refactor 2025-04-07 13:08:35 +02:00
Mark Tolmacs
d6d4d00f60 Inside detection for outline binding
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-04-07 13:08:35 +02:00
Mark Tolmacs
4ea534a732 [skip ci] Tests for inner binding
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-04-07 13:08:35 +02:00
Mark Tolmacs
e90350b7d1 Fix tests 2025-04-07 13:08:35 +02:00
Mark Tolmacs
ea5ad1412c [skip ci] No jumping at the beginning 2025-04-07 13:08:09 +02:00
Mark Tolmacs
c8ade51b53 [skip ci] Remove unneeded code segments 2025-04-07 13:08:09 +02:00
Mark Tolmacs
6e520fdbb9 Restore collision optimization 2025-04-07 13:08:09 +02:00
Mark Tolmacs
fdd7420e65 Type fixes 2025-04-07 13:08:09 +02:00
Mark Tolmacs
946d3ddf87 Fine-tuning diamon intersections 2025-04-07 13:07:30 +02:00
Mark Tolmacs
fbde68c849 [skip ci] First iteration of bringing over previous changes 2025-04-07 13:07:30 +02:00
Mark Tolmacs
4d1e2c2bbb Revert to master 2025-04-07 13:07:30 +02:00
Mark Tolmacs
1a87aa8e55 Start grid point arrow align 2025-04-07 13:07:30 +02:00
Mark Tolmacs
528e6aa2df Fix tests
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-04-07 13:07:30 +02:00
Mark Tolmacs
8c9666b8ab Multipoint arrows now have single point commit in binding zones 2025-04-07 13:07:30 +02:00
Mark Tolmacs
8ac508af11 Fix missing parameter 2025-04-07 13:07:30 +02:00
Mark Tolmacs
cbe6705c98 10% inside shape still tracks outline 2025-04-07 13:07:30 +02:00
Mark Tolmacs
1819661828 Tune what's considered a duplicate intersection point 2025-04-07 13:07:30 +02:00
Mark Tolmacs
373b940e75 New simple arrows stick to outline as well 2025-04-07 13:07:30 +02:00
Mark Tolmacs
2f02d72741 Refactors 2025-04-07 13:07:30 +02:00
Mark Tolmacs
a54322a34f Fix unbind by move test 2025-04-07 13:07:30 +02:00
Mark Tolmacs
5c1fc2f4fb FIx tests 2025-04-07 13:07:30 +02:00
Mark Tolmacs
63d53fc242 Fix freshly created elbow arrow and bindable interaction 2025-04-07 13:07:29 +02:00
Mark Tolmacs
e459ea0cc7 Apply outline tracking to simple arrows as well
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-04-07 13:07:29 +02:00
Mark Tolmacs
f354285d69 Linear element compatible snap binding 2025-04-07 13:07:29 +02:00
Mark Tolmacs
03b91deb4a Adjusted elbow in-shape binding strategy 2025-04-07 13:07:29 +02:00
Mark Tolmacs
dca9fbe306 Fixed gap binding 2025-04-07 13:07:29 +02:00
Mark Tolmacs
f363fcabd8 Common center point util 2025-04-07 13:07:29 +02:00
Márk Tolmács
e48b63a0ae
fix: Rounded diamond edge elbow arrow U route (#9349)
Some checks failed
Tests / test (push) Successful in 4m54s
Auto release excalidraw next / Auto-release-excalidraw-next (push) Successful in 2m15s
Build Docker image / build-docker (push) Failing after 8s
Cancel previous runs / cancel (push) Failing after 2s
Publish Docker / publish-docker (push) Failing after 27s
New Sentry production release / sentry (push) Failing after 2m58s
2025-04-07 10:43:07 +02:00
David Luzar
c2caf78e95
fix: deselected hit element being duplicated + incorrect re-seeding (#9333)
* fix: deselected hit element being duplicated + incorrect re-seeding

* snapshots

* Fix alt-drag binding

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* Add alt-drag bound arrow test

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

---------

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
2025-04-07 10:41:31 +02:00
Ryan Di
ce267aa0d3
feat: lasso selection (#9169)
* lasso without 'real' shape detection

* select a single linear el

* improve ux

* feed segments to worker

* simplify path threshold adaptive to zoom

* add a tiny threshold for checks

* refactor code

* lasso tests

* fix: ts

* do not capture lasso tool

* try worker-loader in next config

* update config

* refactor

* lint

* feat: show active tool when using "more tools"

* keep lasso if selected from toolbar

* fix incorrect checks for resetting to selection

* shift for additive selection

* bound text related fixes

* lint

* keep alt toggled lasso selection if shift pressed

* fix regression

* fix 'dead' lassos

* lint

* use workerpool and polyfill

* fix worker bundled with window related code

* refactor

* add file extension for worker constructor error

* another attempt at constructor error

* attempt at build issue

* attempt with dynamic import

* test not importing from math

* narrow down imports

* Reusing existing workers infrastructure (fallback to the main thread, type-safety)

* Points on curve inside the shared chunk

* Give up on experimental code splitting

* Remove potentially unnecessary optimisation

* Removing workers as the complexit is much worse, while perf. does not seem to be much better

* fix selecting text containers and containing frames together

* render fill directly from animated trail

* do not re-render static when setting selected element ids in lasso

* remove unnecessary property

* tweak trail animation

* slice points to remove notch

* always start alt-lasso from initial point

* revert build & worker changes (unused)

* remove `lasso` from `hasStrokeColor`

* label change

* remove unused props

* remove unsafe optimization

* snaps

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Co-authored-by: Marcel Mraz <marcel@excalidraw.com>
2025-04-07 16:44:25 +10:00
Márk Tolmács
b3d5ba0567
fix: Linear element is not normalized (#9347)
All checks were successful
Tests / test (push) Successful in 5m4s
* Fix #9292
2025-04-06 13:41:11 +02:00
Marcel Mraz
0cd5a259ae
fix: incorrect type imports (#9308)
All checks were successful
Tests / test (push) Successful in 4m39s
2025-03-27 12:00:12 +01:00
Marcel Mraz
432a46ef9e
refactor: separate elements logic into a standalone package (#9285)
Some checks failed
Auto release excalidraw next / Auto-release-excalidraw-next (push) Failing after 2m36s
Build Docker image / build-docker (push) Failing after 6s
Cancel previous runs / cancel (push) Failing after 1s
Publish Docker / publish-docker (push) Failing after 31s
New Sentry production release / sentry (push) Failing after 2m3s
2025-03-26 15:24:59 +01:00