3777 Commits

Author SHA1 Message Date
Mark Tolmacs
076b1e0e31
Remove comment 2025-05-20 09:27:42 +02:00
Mark Tolmacs
6e06fe9fda
Revert "State"
This reverts commit 4ba1bdaead0d74afea3c151efedeb59dfddf24de.
2025-05-20 09:27:42 +02:00
Mark Tolmacs
6ab3b6c029
State 2025-05-20 09:27:42 +02:00
Mark Tolmacs
37ca66044e
Do not connect in outer zoom levels 2025-05-20 09:27:42 +02:00
Mark Tolmacs
cc82cc9671
Simplify maxGap and binding 2025-05-20 09:27:42 +02:00
Mark Tolmacs
d214404244
Fix circular reference 2025-05-20 09:27:42 +02:00
Mark Tolmacs
0c76d6b681
Fix lint 2025-05-20 09:27:42 +02:00
Mark Tolmacs
b63e285f93
Fix tests 2025-05-20 09:27:42 +02:00
Mark Tolmacs
94ed8313f4
Fix no roundness collision shapes 2025-05-20 09:27:42 +02:00
Mark Tolmacs
0050a856e5
Rectangle 2025-05-20 09:27:42 +02:00
Mark Tolmacs
bb4d9649a6
Diamond collision 2025-05-20 09:27:42 +02:00
Mark Tolmacs
14817c1b2d
Refactor 2025-05-20 09:27:42 +02:00
Mark Tolmacs
d681869c4c
Restore original 2025-05-20 09:27:42 +02:00
Mark Tolmacs
ec255cbe53
Fix snapping distance at mid points 2025-05-20 09:27:42 +02:00
Mark Tolmacs
d5af9421f0
Fix tests
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-20 09:27:42 +02:00
Mark Tolmacs
795a5c16c8
Fix tests
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-20 09:27:42 +02:00
Mark Tolmacs
8469c6670a
Inverted polygon now works just as well for hit testing
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-20 09:27:42 +02:00
Mark Tolmacs
6c93d6e997
[skip ci] inverted polygon hit test
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-20 09:27:42 +02:00
Mark Tolmacs
db3e5c63ef
Fixing tests 2025-05-20 09:27:42 +02:00
Mark Tolmacs
508d4c3681
Fix condition where linear and freedraw cannot be unselected 2025-05-20 09:27:42 +02:00
Mark Tolmacs
2082ef149c
Linear distance calc
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-20 09:27:42 +02:00
Mark Tolmacs
3b1c6444e2
Refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-20 09:27:42 +02:00
Mark Tolmacs
cd3ca3b4ca
Use roughjs to generate the line and freedraw shapes for collision 2025-05-20 09:27:42 +02:00
Mark Tolmacs
14a0cd3a97
Fast fail path for hit testing
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-20 09:27:42 +02:00
Mark Tolmacs
0c5d3850d0
Precise hit testing
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-20 09:27:42 +02:00
Márk Tolmács
41a7613dff
fix: Elbow arrow conversion labels mixed up (#9547) 2025-05-19 20:35:48 +02:00
David Luzar
95d89a751a
refactor: decouple radio button selection from .buttonList wrapper (#9528)
* refactor: decouple radio button selection from `.buttonList`

* fix
2025-05-15 13:22:26 +02:00
Marcel Mraz
6b5fb30d69
fix: unify line height across default fonts (#9513) 2025-05-14 16:02:01 +02:00
Marcel Mraz
d92a849038
fix: issues when importing package outside of browser (#9525) 2025-05-14 16:01:43 +02:00
David Luzar
0a534f1bc6
fix: never show snap lines when lasso tool active (#9523) 2025-05-14 22:04:40 +10:00
Ryan Di
4ca5f53b1f
fix: alt + ctrl lasso selected elements not always kept (#9522)
* fix: alt + ctrl lasso selected elements not always kept

* Update packages/excalidraw/components/App.tsx

---------

Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
2025-05-14 22:04:03 +10:00
zsviczian
f7dcc893ea
feat: transparent link background, scale link icon when zooming to below 100% (#9520)
* Do not set link background color, dynamically scale down link icon size with zoom.

* removed unnecessary change

* use canvas bg color & reduce size and stroke width

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2025-05-14 13:38:18 +02:00
zsviczian
4dfb8a3f8e
feat: allow forms.microsoft.com domain for embeddables (#9519)
* Update embeddable.ts

* no need for same origin

* The form does not load without allow same origin

* automatically add embed=true to link if not present

* fix link check
2025-05-13 19:48:26 +02:00
David Luzar
298812e1d0
fix: improve ctrl+alt lasso selecting (#9514) 2025-05-12 18:09:37 +02:00
Ryan Di
35bb449a4b
fix: update cached segments when visible area changes (#9512) 2025-05-12 15:55:36 +02:00
David Luzar
c4c064982f
feat: show empty active color if no common color (#9506) 2025-05-11 15:07:57 +02:00
David Luzar
51dbd4831b
refactor: make element type conversion more generic (#9504)
* feat: add `reduceToCommonValue()` & improve opacity slider

* feat: generalize and simplify type conversion cache

* refactor: change cache from atoms to Map

* feat: always attempt to reuse original fontSize when converting generic types
2025-05-10 20:06:16 +02:00
Marcel Mraz
7e41026812
refactor: export everything from @excalidraw/element, don't import from subpaths (#9466)
* Don't import from subpaths

* Fix tests, move related tests to element
2025-05-09 23:01:33 +02:00
shindi-renuo
a8ebe514da
Replace tongue emoji with globe emoji (#9489) 2025-05-09 16:59:06 +00:00
Ryan Di
a30e1b25c6
feat: include frame names in canvas searches (#9484)
* fix frame name clipping on zooming

* include assistant font

* default frame name

* extend search to frame names

* add a simple test

* collpase search match items

* id check out of loop

* fix frame name check

* include focusedId for small perf improvement

* optionally show and hide collapse icon

* update section title

* fix tests

* rename `serverSide` -> `private`

* revert: do not reset zoom on zoom change

* feat: do not close menu on repeated ctrl+f

* remove collapsible

* tweak results CSS

* remove redundant check

* set `appState.searchMatches` to null if empty

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2025-05-09 18:32:16 +02:00
David Luzar
ff2ed5d26a
refactor: change movePoints pointUpdates type (#9499) 2025-05-08 16:47:13 +02:00
Narek Malkhasyan
e058a08b33
fix: use rimraf instead of rm -rf (#9460) 2025-05-07 14:13:27 +02:00
Narek Malkhasyan
a306a909a0
fix: don't scroll page when TTDDialog is opened (#9455) 2025-05-07 13:33:18 +02:00
Marcel Mraz
3dc54a724a
feat: add onIncrement API (#9450) 2025-05-06 19:23:02 +02:00
David Luzar
a7c61319dd
fix: do not translate bound elements twice (#9486) 2025-05-06 13:09:00 +02:00
Narek Malkhasyan
cec5232a7a
fix: when resizing element, update bound elements after final size of element is determined (#9475) 2025-05-05 12:15:42 +02:00
Márk Tolmács
d4f70e9f31
feat: Quarter snap points for diamonds (#9387) 2025-05-05 11:34:40 +02:00
Márk Tolmács
e19fd1332a
feat: Precise highlights for bindings (#9472) 2025-05-05 09:51:20 +02:00
Hazem Krimi
6e655cdb24
fix: When moving a frame through the stats inputs or drags move along its children (#9433)
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
2025-05-02 17:07:17 +02:00
Gowtham Selvaraj
192c4e7658
docs: added shape cycling shortcut in helper dialog (#9465)
* docs: added shape cycling shortcut in helper dialog

- Document Tab and Shift+Tab usage for shape cycling

* docs: added shape cycling shortcut in helper dialog

* Update packages/excalidraw/components/HelpDialog.tsx

* Update packages/excalidraw/locales/en.json

---------

Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
2025-05-01 12:12:45 +02:00