dwelle
e5a9786af3
wip
2025-01-02 16:59:14 +01:00
dwelle
55be6de5ec
fix: caret not showing in Safari for empty wysiwyg
2024-12-29 21:19:31 +01:00
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 >
2024-12-23 11:10:35 +01:00
zsviczian
56fca30bd0
fix: normalizeSVG width and height from viewbox when size includes decimal points ( #8939 )
...
Update image.ts
2024-12-22 23:10:11 +01:00
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
2024-12-22 22:55:50 +01:00
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 >
2024-12-17 13:15:30 +01:00
Ryan Di
b5652b8e36
fix: normalize svg using only absolute sizing ( #8854 )
2024-11-27 13:09:44 +01:00
Ryan Di
c0b80a03bd
feat: in canvas links between shapes ( #8812 )
...
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com >
2024-11-26 18:53:25 +01:00
Márk Tolmács
2db5bbcb29
fix: Unify binding update options for updateBoundElements() ( #8832 )
...
Fix insonsistent naming for option newSize/oldSize for updateBoundElements()
2024-11-20 11:46:45 +01:00
Marcel Mraz
70e0e8dc29
fix: text pushes UI due to padding ( #8745 )
2024-11-01 23:43:48 +02:00
Marcel Mraz
2734e646ca
chore: simplify line-break regexes, separate text wrapping ( #8715 )
2024-10-30 14:24:12 +01:00
Marcel Mraz
dfaaff4432
fix: fix trailing line whitespaces layout shift ( #8714 )
2024-10-30 14:11:13 +01:00
David Luzar
79b181bcdc
fix: restore svg image DataURL dimensions ( #8730 )
2024-10-29 22:40:24 +01:00
Ryan Di
e957c8e9ee
feat: image cropping ( #8613 )
...
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com >
2024-10-21 22:26:52 +02:00
Marcel Mraz
b479f3bd65
feat: add first-class support for CJK ( #8530 )
2024-10-17 20:14:17 +02:00
David Luzar
47ee8a0094
refactor: point() -> pointFrom() to fix compiler issue ( #8578 )
2024-10-01 21:27:17 +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
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
Márk Tolmács
72d6ee48fc
fix: Do not allow resizing unbound elbow arrows either ( #8333 )
...
* Fix resizing of unbound elbow arrows
2024-08-06 17:33:34 +02:00
David Luzar
f19ce30dfe
chore: bump @testing-library/react 12.1.5 -> 16.0.0 ( #8322 )
2024-08-06 15:17:42 +02:00
Ryan Di
3cf14c73a3
refactor: rename draggingElement -> newElement ( #8294 )
...
* add newElement to appState
* freedraw should not be an editing element
* do not set editing element for freedraw and generic
* remove ununsed `appState.draggingElement`
* remove setting dragged for new linear element
* decouple selection element from new element
* fix hint for text bindables
* update snapshot
* fixes
* fix frame regressions
* add comments to types
* document `editingElement`
---------
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com >
2024-08-06 19:26:06 +08:00
zsviczian
c67815f7b0
fix: Duplicating arrow without bound elements throws error ( #8316 )
...
Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com >
2024-08-03 16:37:36 +00:00
David Luzar
e63dd025c9
fix: allow binding elbow arrows to frame children ( #8309 )
2024-08-01 19:40:54 +02:00
Márk Tolmács
15e019706d
feat: Orthogonal (elbow) arrows for diagramming ( #8299 )
...
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com >
2024-08-01 18:39:03 +02:00
Ryan Di
7b36de0476
fix: linear elements not selected on pointer up from hitting its bound text ( #8285 )
...
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com >
2024-07-27 13:02:00 +00:00
Marcel Mraz
62228e0bbb
feat: introduce font picker ( #8012 )
...
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com >
2024-07-25 18:55:55 +02:00
David Luzar
1d5b41dabb
fix: stop updating text versions on init ( #8191 )
2024-07-01 14:04:58 +02:00