Commit Graph

147 Commits (e8abddeecf7424aca9ad28a0fb6dc94b3c6af999)

Author SHA1 Message Date
Mark Tolmacs 24118ec19b
Fix single point arrow binding focus point
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 3895efecf1
Offsets reintroduced
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 6f9c6fc205
Binding updates 6 days ago
Mark Tolmacs d3870d1033
Update focus point calc
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 5d352161fd
Fix elbow arrow binding logic 6 days ago
Mark Tolmacs fa8db3cdc0
Different gap calculation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 806e0f7a27
More performant and robust numerical distance calc for cubic bezier
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs ab6d3a454c
Unify common code in distance and intersection into a helper file 6 days ago
Mark Tolmacs f5caf0b4b9
Simplification 6 days ago
Mark Tolmacs d770cbad99
Even more robust nonlinear root finding with a custom Newton-Rhapson solver
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 3e1439ad86
Fix elbow arrow binding 6 days ago
Mark Tolmacs ce1bf99f6d
[skip ci] Remove unneeded code 6 days ago
Mark Tolmacs 9da2917a87
Even more stable curve detection 6 days ago
Mark Tolmacs 16d3064a2f
[skip ci] Curve distance fixes
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 59ffd5f611
[skip ci] Remove debug
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs a29845ce73
[skip ci] Add offset
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 13b4107e43
Diamond intersect shape fixes
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs a938bb123d
Investingating FP instability 6 days ago
Mark Tolmacs 1f5375ef37
Another cubic solver version 6 days ago
Mark Tolmacs 2d4005e66d
[skip ci] fix rectanguloid intersection box
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 3c9e53f27f
[skip ci] fix rectanguloid intersection box
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 710cb75b38
[skip ci] Refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 3d16fab484
[skip ci] debugging
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 049104b9af
[skip ci] Refactor 6 days ago
Mark Tolmacs 5af0f84add
[skip ci] Tracking fixed 6 days ago
Mark Tolmacs 8dd1e24389
[skip ci] Tangent intersection line calc
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 7b340ed852
[skip ci] Fix arc intersect detection
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs f425101604
Fix intersection shape tracking for rectangular + diamond 6 days ago
Mark Tolmacs 9b6e76aeb5
Add the binding code changes back without the diamond arc
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 752b6fed7d
Intersection components in progress 6 days ago
Mark Tolmacs 33c8c3006f
Bezier curve line intersection implementation + test 6 days 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
Márk Tolmács 9e49c9254b
fix: IFrame and elbow arrow interaction fix (#9101) 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) 4 weeks ago
Márk Tolmács 9b6edc767a
fix: Elbow arrow orthogonality (#9073) 4 weeks ago
David Luzar a3e1619635
fix: hyperlinks html entities (#9063) 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
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
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
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 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
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