Commit Graph

377 Commits (feat/remove-ga)

Author SHA1 Message Date
tothatt81 3ad47df3c8
perf: Improved pointer events related performance when the sidebar is docked with a large library open (#9086)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
5 days ago
David Luzar b4920f6b20
feat: tweak slider colors to be more muted (#9076) 5 days ago
David Luzar 48a1b590b3
fix: button bg CSS variable leaking into other styles (#9075) 5 days ago
Are 9925d238b5
feat: improve library sidebar performance (#9060)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
5 days ago
Saikat Das 941a389250
feat: implement custom Range component for opacity control (#9009)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
5 days ago
Mark Tolmacs dafccacbd3
Tackle unstable cubic root calc 5 days ago
Mark Tolmacs a938bb123d
Investingating FP instability 5 days ago
Mark Tolmacs 1f5375ef37
Another cubic solver version 5 days ago
Mark Tolmacs fd590b201d
[skip ci] Fix test helper 5 days ago
Mark Tolmacs 2d4005e66d
[skip ci] fix rectanguloid intersection box
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
5 days ago
Mark Tolmacs 3c9e53f27f
[skip ci] fix rectanguloid intersection box
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
5 days ago
Mark Tolmacs 710cb75b38
[skip ci] Refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
5 days ago
Mark Tolmacs 3d16fab484
[skip ci] debugging
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
5 days ago
Mark Tolmacs 049104b9af
[skip ci] Refactor 5 days ago
Mark Tolmacs 5af0f84add
[skip ci] Tracking fixed 5 days ago
Mark Tolmacs 8dd1e24389
[skip ci] Tangent intersection line calc
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
5 days ago
Mark Tolmacs 7b340ed852
[skip ci] Fix arc intersect detection
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
5 days ago
Mark Tolmacs f425101604
Fix intersection shape tracking for rectangular + diamond 5 days ago
Mark Tolmacs 9b6e76aeb5
Add the binding code changes back without the diamond arc
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
5 days ago
Mark Tolmacs a3357b2f1c
Add arc and curve visual debug rendering
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
5 days ago
Mark Tolmacs 752b6fed7d
Intersection components in progress 5 days ago
Mark Tolmacs 22bf71e0e5
Add curve closest point finding and distance calc 5 days ago
Mark Tolmacs 33c8c3006f
Bezier curve line intersection implementation + test 5 days ago
Abhinav Pant 9ee0b8ffcb
Enhancement: grouped together Undo and Redo buttons on mobile (#9109)
* bugfix: put the redo and undo button under the same div so that they look grouped together

* fixed the position of the redo and undo buttons to the right
2 weeks ago
Márk Tolmács f12b92ce9d
chore: Upgrade Sentry to latest and update debug messages (#9134)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2 weeks ago
Márk Tolmács 77dc055d81
chore: Revert aspect ratio fix with element size limits and chk (#9131) 2 weeks ago
David Luzar 26f02bebea
fix: stop using structuredClone (#9128)
fix: stop using `structuredClone`
2 weeks ago
Marcel Mraz e3060dfb8f
feat: custom text metrics provider (#9121) 2 weeks ago
Kyosuke Fujimoto c329470b73
fix: Fix inconsistency in resizing while maintaining aspect ratio (#9116) 2 weeks ago
David Luzar c8f4a4cb41
feat: add `props.onDuplicate` (#9117)
* feat: add `props.onDuplicate`

* docs

* clarify docs

* fix docs
2 weeks ago
Márk Tolmács 9e49c9254b
fix: IFrame and elbow arrow interaction fix (#9101) 3 weeks ago
David Luzar b0c8c5f7a7
feat: change empty arrowhead icon (#9100) 3 weeks ago
tothatt81 4f64372506
perf: Improved pointer events related performance when the sidebar is docked with a large library open (#9086)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
3 weeks ago
David Luzar 424e94a403
fix: duplicating/removing frame while children selected (#9079) 3 weeks ago
Márk Tolmács 302664e500
fix: Elbow arrow z-index binding (#9067) 3 weeks ago
David Luzar 86c67bd37f
fix: library item checkbox style regression (#9080) 3 weeks ago
David Luzar 511433988c
feat: tweak slider colors to be more muted (#9076) 4 weeks ago
Márk Tolmács 9b6edc767a
fix: Elbow arrow orthogonality (#9073) 4 weeks ago
David Luzar 6cdb683410
fix: button bg CSS variable leaking into other styles (#9075) 4 weeks ago
Shalini 84bab403ff
Fix: issue #8818 Xiaolai font has been set as a fallback for Excalifont (#9055)
Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
4 weeks ago
Are 61e0bb83d0
feat: improve library sidebar performance (#9060)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
4 weeks ago
Saikat Das bd1590fc74
feat: implement custom Range component for opacity control (#9009)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
4 weeks ago
Marcel Mraz d29c3db7f6
fix: fonts not loading on export (again) (#9064) 4 weeks ago
David Luzar a3e1619635
fix: hyperlinks html entities (#9063) 4 weeks ago
Ryan Di 52eaf64591
feat: box select frame & children to allow resizing at the same time (#9031)
* box select frame & children

* avoid selecting children twice to avoid double their moving

* do not show ele stats if frame and children selected together

* do not update frame membership if selected together

* do not group frame and its children

* comment and refactor code

* hide align altogether

* include frame children when selecting all

* simplify

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
4 weeks ago
David Luzar 7028daa44a
fix: remove flushSync to fix flickering (#9057) 4 weeks ago
Ashwin Temkar 65f218b100
fix: excalidraw issue #9045 flowcharts: align attributes of new node (#9047)
* fix: excalidraw#9045 by modifying the stroke style, opacity, and fill style for the new node and next nodes.

* fix: added roughness and opacity to the arrowbindings
1 month ago
Alplune 807b3c59f2
fix: align arrows bound to elements excalidraw#8833 (#8998) 1 month ago
Alplune b8da5065fd
fix: update elbow arrow on font size change #8798 (#9002) 1 month ago
Márk Tolmács 49f1276ef2
fix: Undo for elbow arrows create incorrect routing (#9046) 1 month ago
Ashwin Temkar 8f20b29b73
fix: #8575 , Flowchart clones the current arrowhead (#8581)
* fix: #8575, Flowchart clones the current arrowhead

* fix: #8575, changed stroke color, style and width to startBindingElement
1 month ago
David Luzar f87c2cde09
feat: allow installing libs from excal github (#9041) 1 month ago
Ryan Di 0bf234fcc9
fix: adding partial group to frame (#9014)
* prevent new frame from including partial groups

* separate wrapped partial group
1 month ago
Ryan Di dd1b45a25a
perf: reduce unnecessary frame clippings (#8980)
* reduce unnecessary frame clippings

* further optim
1 month ago
David Luzar ec06fbc1fc
fix: do not refocus element link input on unrelated updates (#9037) 1 month ago
David Luzar fa05ae1230
refactor: remove `defaultProps` (#9035) 1 month ago
Márk Tolmács 91ebf8b0ea
feat: Elbow arrow segment fixing & positioning (#8952)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
1 month ago
Arnost Pleskot 8551823da9
feat: update jotai (#9015)
* feat: update jotai in excalidraw package

* feat: update jotai in excalidraw-app

* fix: exports from excalidraw/jotai

* fix: use isolated react hooks

* test: use jotai provider in <Trans /> test

* remove unused package

* refactor & make safer

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
1 month ago
David Luzar ae6bee3403
feat: do not delete frame children on frame delete (#9011) 1 month ago
David Luzar 46f42ef8d7
fix: arrow binding behaving unexpectedly on pointerup (#9010)
* fix: arrow binding behaving unexpectedly on pointerup

* update snaps
1 month ago
Ryan Di 00b5b0a0ca
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>
1 month ago
YongJoon Kim c92f3bebf5
fix: change cursor by tool change immediately (#8212) 2 months ago
David Luzar 78ab12c7e6
fix: z-index clash in mobile UI (#8985) 2 months ago
David Luzar f2f8219917
feat: reintroduce `.excalidraw.png` default when embedding scene (#8979) 2 months ago
한별 12c39d1034
feat: add mimeTypes on file save (#8946) 2 months 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>
2 months ago
zsviczian 3b9ffd9586
fix: elbow arrows do not work within frames (issue: #8964) (#8969)
check for !isFrameLikeElement
2 months ago
David Luzar b63689c230
feat: make HTML attribute sanitization stricter (#8977)
* feat: make HTML attribute sanitization stricter

* fix double escape
2 months ago
David Luzar c84babf574
feat: validate library install urls (#8976) 2 months ago
David Luzar 36274f1f3e
feat: cleanup svg export and move payload to `<metadata>` (#8975) 2 months 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>
3 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
3 months ago
Marcel Mraz 8a1152ce36
fix: Flush pending DOM updates before .focus() (#8901) 3 months ago
Ryan Di b5652b8e36
fix: normalize svg using only absolute sizing (#8854) 3 months ago
David Luzar 31e2a0cb4a
fix: element link selector dialog z-index & positioning (#8853) 3 months ago
Ryan Di c0b80a03bd
feat: in canvas links between shapes (#8812)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
3 months ago
David Luzar a758aaf8f6
fix: update old blog links & add canonical url (#8846) 3 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) 4 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>
4 months ago
Marcel Mraz 70e0e8dc29
fix: text pushes UI due to padding (#8745) 4 months ago
Marcel Mraz 2734e646ca
chore: simplify line-break regexes, separate text wrapping (#8715) 4 months ago
Marcel Mraz dfaaff4432
fix: fix trailing line whitespaces layout shift (#8714) 4 months ago
Marcel Mraz 03028eaa8c
fix: load font faces in Safari manually (#8693) 4 months ago
David Luzar 79b181bcdc
fix: restore svg image DataURL dimensions (#8730) 4 months ago
David Luzar f9815b8b4f
fix: image cropping svg + compat mode (#8710)
Co-authored-by: Ryan Di <ryan.weihao.di@gmail.com>
4 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