Commit graph

109 commits

Author SHA1 Message Date
Mark Tolmacs
47064a3662
Small refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-01-14 14:09:49 +01:00
Mark Tolmacs
550c874c9b
Master merge first attempt 2025-01-07 09:41:32 +01:00
Mark Tolmacs
a177d33121
Add diamond arc alignment 2024-10-03 14:09:59 +02:00
Mark Tolmacs
85611b8754
Fix distance filtering 2024-10-03 11:38:42 +02:00
Mark Tolmacs
c53c37ba69
Fix arc line intersection, add tests to element line intersections 2024-10-02 22:17:28 +02:00
Mark Tolmacs
a50ac0ebff
Fix typing issue
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-10-02 12:18:34 +02:00
Mark Tolmacs
336fa9d002
Master merge
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-10-02 12:09:01 +02:00
David Luzar
b4d8b04d9e
refactor: point() -> pointFrom() to fix compiler issue (#8578) 2024-10-02 11:49:10 +02:00
Mark Tolmacs
0c02972695
Replace intersection code 2024-10-01 16:24:31 +02:00
Mark Tolmacs
1d293b9203
Small diamond distance fix 2024-09-30 16:51:31 +02:00
Mark Tolmacs
f347281c21
Merge branch 'master' into feat/math2 2024-09-30 12:03:42 +02:00
Mark Tolmacs
c41486abd1
Fix diamond distance
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-09-28 09:09:14 +02:00
Subhadeep Sengupta
a977dd1bf5
feat: Added reddit links as embeddable (#8099)
feat: #8063 Added reddit links as embeddable

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2024-09-28 11:49:18 +05:30
Mark Tolmacs
34ec751501
Attempt at optimizing focus point calc 2024-09-27 20:27:10 +02:00
Mark Tolmacs
91b6057d9c
Bounds refactor and duplication removal 2024-09-27 15:58:18 +02:00
Mark Tolmacs
7b4e989d65
Add ellipse changes no angle
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-09-27 11:34:02 +02:00
Mark Tolmacs
d9ea7190ec
First implementation of element distance functions with failing tests 2024-09-25 18:30:53 +02:00
Mark Tolmacs
b697f63cad
More refactor 2024-09-25 11:59:27 +02:00
Mark Tolmacs
392dd5b0b8
ellipse and arc refactors 2024-09-25 11:03:35 +02:00
Mark Tolmacs
3efa8735ef
Ellipse refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-09-24 19:12:27 +02:00
Mark Tolmacs
0c47bd0004
Unify bounds calculation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-09-24 18:25:31 +02:00
Mark Tolmacs
dff60e6f6f
Refactoring bounds, arrows, bboxes 2024-09-23 19:43:22 +02:00
Mark Tolmacs
9eb08df3ea
Move path related function into the math package 2024-09-23 18:08:17 +02:00
Mark Tolmacs
1b56cf90fb
Move binaryheap implementation to utils 2024-09-23 17:21:54 +02:00
Mark Tolmacs
0e2f8c958e
Further math refactor and simplifications 2024-09-23 17:13:40 +02:00
Mark Tolmacs
b4cb314090
Refactoring points
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-09-20 21:32:32 +02:00
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
2024-09-19 08:47:23 +02:00
Márk Tolmács
e0a22edfbd
fix: Re-route elbow arrows when pasted (#8448)
Re-route elbow arrows when pasted
2024-09-17 12:20:40 +02:00
Márk Tolmács
c07f5a0c80
feat: Common elbow mid segments (#8440)
Common start or end segment length for elbow arrows regardless of arrowhead is present
2024-09-17 10:11:07 +02:00
zsviczian
60e3801691
fix: WYSIWYG editor padding is not normalized with zoom.value (#8481) 2024-09-12 13:42:39 +02:00
David Luzar
fd39712ba6
fix: improve canvas search scroll behavior further (#8491) 2024-09-11 18:01:18 +02:00
Ryan Di
6959a363f0
feat: canvas search (#8438)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-09-09 17:12:07 +02:00
Márk Tolmács
f4dd23fc31
chore: Unify math types, utils and functions (#8389)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-09-02 22:23:38 +00:00
David Luzar
00af35c692
feat: enable panning/zoom while in wysiwyg (#8437) 2024-08-29 00:42:46 +02:00
Márk Tolmács
ea7c702cfc
feat: Visual debugger (#8344)
Add visual debugger to the Excalidraw app (only).
2024-08-27 19:46:00 +02:00
David Luzar
5facc0d6da
fix: perf regression in getCommonBounds (#8429) 2024-08-26 15:57:28 +02:00
Ryan Di
5e1ff7cafe
perf: improve new element drawing (#8340)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-08-23 20:27:57 +02:00
David Luzar
b5d7f5b4ba
feat: rewrite d2c to not require token (#8269) 2024-08-20 18:06:22 +02:00
David Luzar
3cfcc7b489
feat: split gridSize from enabled state & support custom gridStep (#8364) 2024-08-14 14:59:14 +02:00
David Luzar
4320a3cf41
feat: improve zoom-to-content when creating flowchart (#8368) 2024-08-12 20:42:08 +02:00
Márk Tolmács
8420e1aa13
fix: Reimplement rectangle intersection (#8367) 2024-08-12 19:19:16 +02:00
Márk Tolmács
5daf1a1b4e
fix: Round coordinates and sizes for rectangle intersection (#8366)
Round coordinates and sizes for rectangle intersection
2024-08-12 11:07:58 +02:00
David Luzar
97981804d7
feat: Stats popup style tweaks (#8361) 2024-08-11 19:33:44 +02:00
Clarence Chan
f7b3befd0a
fix: text content with tab characters act different in view/edit (#8336)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-08-09 20:20:36 +00:00
Márk Tolmács
99b91c46f7
fix: Yet more patching of intersect code (#8352)
* Yet more patching of intersect code
2024-08-09 17:33:12 +02:00
David Luzar
1ea5b26f25
fix: missing act() in flowchart tests (#8354) 2024-08-09 17:27:02 +02:00
Márk Tolmács
261304c1a4
fix: Patch over intersection calculation issue (#8350)
* Patch over intersection calculation issue
2024-08-09 14:40:57 +02:00
Márk Tolmács
84398a7e5c
fix: Point duplication in LEE on ALT+click (#8347) 2024-08-09 12:01:32 +02:00
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>
2024-08-08 21:43:15 +02:00
Márk Tolmács
dd1370381d
chore: Refactor and remove scene from elbow arrow generation (#8342)
* Refactor and remove scene from elbow arrow generation
2024-08-08 14:06:26 +02:00