Commit Graph

311 Commits (feat/math2)

Author SHA1 Message Date
Mark Tolmacs 2137f2b806
Type refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
3 weeks ago
Mark Tolmacs 47064a3662
Small refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
3 weeks ago
Mark Tolmacs 028c397c0a
Add cubic bezier curve visual debug
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
3 weeks ago
Ryan Di 77ea537c69
feat: add action to wrap selected items in a frame (#9005)
* feat: add action to wrap selected items in a frame

* fix type

* select frame on wrap & refactor

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
3 weeks ago
YongJoon Kim 22ca55092b
fix: change cursor by tool change immediately (#8212) 3 weeks ago
Mark Tolmacs a12334e20d
Merge branch 'master' into feat/math2 1 month ago
Mark Tolmacs b2fcf787e2
Fix arc negative radians issue 1 month ago
Mark Tolmacs fb113e2054
Function rename fix in tests 1 month ago
Mark Tolmacs 550c874c9b
Master merge first attempt 1 month ago
David Luzar 78ab12c7e6
fix: z-index clash in mobile UI (#8985) 1 month ago
David Luzar f2f8219917
feat: reintroduce `.excalidraw.png` default when embedding scene (#8979) 1 month ago
한별 12c39d1034
feat: add mimeTypes on file save (#8946) 1 month ago
Ryan Di d33e42e3a1
feat: add crowfoot to arrowheads (#8942)
* crowfoot many

* crowfoot one

* one or many

* add icons for crowfoot

* add crowfoot icons

* adjust arrowhead selection popover

* make options collapsible

* swap triangle and bar

* switch to radix popover

* put triangle outline in the first row

* align shadow with new design spec

* remove unused flag

* swap order

* tweak labels

* handle shift+tab

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Co-authored-by: Jakub Królak <108676707+j-krolak@users.noreply.github.com>
1 month ago
zsviczian 3b9ffd9586
fix: elbow arrows do not work within frames (issue: #8964) (#8969)
check for !isFrameLikeElement
1 month ago
David Luzar b63689c230
feat: make HTML attribute sanitization stricter (#8977)
* feat: make HTML attribute sanitization stricter

* fix double escape
1 month ago
David Luzar c84babf574
feat: validate library install urls (#8976) 1 month ago
David Luzar 36274f1f3e
feat: cleanup svg export and move payload to `<metadata>` (#8975) 1 month ago
Ryan Di 107eae3916
refactor: separate resizing logic from pointer (#8155)
* separate resizing logic for a single element

* replace resize logic in stats

* do not recompute width and height from points when they're already given

* correctly update linear elements' position when resized

* update snapshots

* lint

* simplify linear resizing logic

* fix initial scale for aspect ratio

* update tests for linear elements

* test typo

* separate pointer from resizing for multiple elements

* lint and simplify

* fix tests

* lint

* provide scene in param instead

* type

* refactor code

* fix floating in tests

* remove restrictions/checks on width & height

* update pointer to dimension to prevent regression

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2 months ago
zsviczian 56fca30bd0
fix: normalizeSVG width and height from viewbox when size includes decimal points (#8939)
Update image.ts
2 months ago
Ryan Di 1e3399eac8
fix: make arrow binding area adapt to zoom levels (#8927)
* make binding area adapt to zoom

* revert stroke color

* normalize binding gap

* reduce normalized gap
2 months ago
David Luzar 873698a1a2
fix: robust `state.editingFrame` teardown (#8941) 2 months ago
Ryan Di 606ac6c743
fix: regression on dragging a selected frame by its name (#8924)
fix hit element check for a selected frame's name
2 months ago
Ryan Di d99e4a23ca
feat: use stats panel to crop (#8848)
* feat: use stats panel to crop

* fix: test flake

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2 months ago
Ryan Di 551bae07a7
feat: snap when cropping as well (#8831)
* crop with snap

* make crop snap work with cmd as well

* turn off grid with cmd as well in crop
2 months ago
Shreyansh Jain 2af3221974
fix: right-click paste for images in clipboard (Issue #8826) (#8845)
* Fix right-click paste command for images (Issue #8826)

* Fix clipboard logic for multiple paste types

* fix: remove unused code

* refactor & robustness

* fix: creating paste event with image files

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2 months ago
Antonio Della Fortuna 9b401f6ea3
fix: fixed image transparency by adding alpha option to preserve image alpha channel (#8895)
added alpha option to preserve image alpha channel
2 months ago
Marcel Mraz 8a1152ce36
fix: Flush pending DOM updates before .focus() (#8901) 2 months ago
Ryan Di b5652b8e36
fix: normalize svg using only absolute sizing (#8854) 2 months ago
David Luzar 31e2a0cb4a
fix: element link selector dialog z-index & positioning (#8853) 2 months ago
Ryan Di c0b80a03bd
feat: in canvas links between shapes (#8812)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2 months ago
David Luzar a758aaf8f6
fix: update old blog links & add canonical url (#8846) 2 months ago
Márk Tolmács b2a6a87b10
chore: Remove @tldraw/vec (#8762)
Not needed.
3 months ago
Márk Tolmács ab8b3537b3
fix: Optimize frameToHighlight state change and snapLines state change (#8763)
Fix case when frame interactions recursively call setState() without any change.
3 months ago
Márk Tolmács d21e0008dd
fix: Make some events expllicitly active to avoid console warnings (#8757)
Avoid chrome/edge reporting of by-default blocking event handlers
3 months ago
David Luzar 840f1428c4
chore: bump `@excalidraw/mermaid-to-excalidraw@1.1.2` (#8830) 3 months ago
Márk Tolmács 2db5bbcb29
fix: Unify binding update options for `updateBoundElements()` (#8832)
Fix insonsistent naming for option newSize/oldSize for updateBoundElements()
3 months ago
David Luzar 0927431d0d
chore: bump `@excalidraw/mermaid-to-excalidraw` (#8829) 3 months ago
David Luzar 798f5f4dfb
feat: update blog url (#8767) 3 months ago
Barnabás Molnár d9ad7c039b
feat: export scene to e+ on workspace creation/redemption (#8514)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
3 months ago
Marcel Mraz 70e0e8dc29
fix: text pushes UI due to padding (#8745) 3 months ago
Marcel Mraz 2734e646ca
chore: simplify line-break regexes, separate text wrapping (#8715) 3 months ago
Marcel Mraz dfaaff4432
fix: fix trailing line whitespaces layout shift (#8714) 3 months ago
Marcel Mraz 03028eaa8c
fix: load font faces in Safari manually (#8693) 3 months ago
David Luzar 79b181bcdc
fix: restore svg image DataURL dimensions (#8730) 3 months ago
David Luzar f9815b8b4f
fix: image cropping svg + compat mode (#8710)
Co-authored-by: Ryan Di <ryan.weihao.di@gmail.com>
3 months ago
David Luzar 958e03fcc6
fix: image render perf (#8697) 4 months ago
David Luzar 4cedf3d966
feat: do not strip unknown element properties on restore (#8682) 4 months ago
Ryan Di e957c8e9ee
feat: image cropping (#8613)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
4 months ago
Denis Mishankov eb09b48ae6
fix: undo/redo action for international keyboard layouts (#8649)
Co-authored-by: Marcel Mraz <marcel@excalidraw.com>
4 months ago
Marcel Mraz 61623bbeba
fix: Comic Shanns issues, new fonts structure (#8641) 4 months ago