Commit Graph

56 Commits (4928742aca92c4b6eb629315b401ab5703750051)

Author SHA1 Message Date
Mark Tolmacs 4928742aca
Fix arrow inside shape 5 days ago
Mark Tolmacs 7ceede4238
[skip ci] default focus point 5 days ago
Mark Tolmacs 4984d57673
Errorneous intersection in focus point calc fixed
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
6 days ago
Mark Tolmacs 06fde48c85
Rotation support fixed 6 days ago
Mark Tolmacs 397f2b2de6
Precise tracking for diamonds 6 days ago
Mark Tolmacs ed412d9b2e
Diamond pt 1 6 days ago
Mark Tolmacs 24118ec19b
Fix single point arrow binding focus point
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 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 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
Márk Tolmács 9e49c9254b
fix: IFrame and elbow arrow interaction fix (#9101) 3 weeks ago
Márk Tolmács 302664e500
fix: Elbow arrow z-index binding (#9067) 4 weeks 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
zsviczian 3b9ffd9586
fix: elbow arrows do not work within frames (issue: #8964) (#8969)
check for !isFrameLikeElement
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
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 47ee8a0094
refactor: `point()` -> `pointFrom()` to fix compiler issue (#8578) 5 months ago
Márk Tolmács f3f0ab7c83
fix: Elbow arrow fixedpoint flipping now properly flips on inverted resize and flip action (#8324)
* Flipping action now properly mirrors selections with elbow arrows
* Flipping action now re-centers the selection to the original center to avoid "walking" selections on repeated flipping
5 months ago
Márk Tolmács f4dd23fc31
chore: Unify math types, utils and functions (#8389)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
6 months ago
Márk Tolmács 8420e1aa13
fix: Reimplement rectangle intersection (#8367) 7 months ago
Márk Tolmács 5daf1a1b4e
fix: Round coordinates and sizes for rectangle intersection (#8366)
Round coordinates and sizes for rectangle intersection
7 months ago
Márk Tolmács 99b91c46f7
fix: Yet more patching of intersect code (#8352)
* Yet more patching of intersect code
7 months ago
Márk Tolmács 261304c1a4
fix: Patch over intersection calculation issue (#8350)
* Patch over intersection calculation issue
7 months ago
Ryan Di 54491d13d4
feat: create flowcharts from a generic element using elbow arrows (#8329)
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
7 months ago
Márk Tolmács dd1370381d
chore: Refactor and remove scene from elbow arrow generation (#8342)
* Refactor and remove scene from elbow arrow generation
7 months ago
zsviczian c67815f7b0
fix: Duplicating arrow without bound elements throws error (#8316)
Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
7 months ago
David Luzar e63dd025c9
fix: allow binding elbow arrows to frame children (#8309) 7 months ago
Márk Tolmács 15e019706d
feat: Orthogonal (elbow) arrows for diagramming (#8299)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
7 months ago
Márk Tolmács 66a2f24296
fix: Add binding update to manual stat changes (#8183)
Manual stats changes now respect previous element bindings.
8 months ago
Márk Tolmács 04668d8263
fix: Binding after duplicating is now applied for both the old and duplicate shapes (#8185)
Using ALT/OPT + drag to clone does not transfer the bindings (or leaves the duplicates in place of the old one , which are also not bound).

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
8 months ago
zsviczian a1ffa064df
fix: only bind arrow (#8152)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
8 months ago
David Luzar 4dc4590f24
fix: repair invalid binding on restore & fix type check (#8133) 9 months ago
Aakansha Doshi 1ed53b153c
build: enable consistent type imports eslint rule (#7992)
* build: enable consistent type imports eslint rule

* change to warn

* fix the warning in example and excalidraw-app

* fix packages

* enable type annotations and throw error for the rule
10 months ago
Márk Tolmács d9bbf1eda6
feat: Allow binding only via linear element ends (#7946)
Arrows now only bind to new shapes if their start or end point is dragged close to them. Arrows previously bound to shapes remain bound on move and drag if at the end of the drag/move the points remain in the original shapes' binding area.

---------

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Co-authored-by: Sammy Lee <sammy.joe.lee@gmail.com>
10 months ago
Márk Tolmács a04676d423
fix: CTRL/CMD & arrow point drag unbinds both sides (#6459) (#7877) 10 months ago