Commit Graph

296 Commits (c8f4a4cb41ea743b58765444ee064aaebca5d8c3)

Author SHA1 Message Date
Marcel Mraz 8a1152ce36
fix: Flush pending DOM updates before .focus() (#8901) 2 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
Ryan Di e957c8e9ee
feat: image cropping (#8613)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
4 months ago
Denis Mishankov eb09b48ae6
fix: undo/redo action for international keyboard layouts (#8649)
Co-authored-by: Marcel Mraz <marcel@excalidraw.com>
4 months ago
Marcel Mraz 61623bbeba
fix: Comic Shanns issues, new fonts structure (#8641) 4 months ago
David Luzar 15ca182333
fix: remove export-to-clip-as-svg shortcut for now (#8660) 4 months ago
Marcel Mraz b479f3bd65
feat: add first-class support for CJK (#8530) 4 months ago
Mathis Beauville 21815fb930
fix: text disappearing on edit (#8558) (#8624) 4 months ago
David Luzar 47ee8a0094
refactor: `point()` -> `pointFrom()` to fix compiler issue (#8578) 5 months ago
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>
5 months ago
Aakansha Doshi 3fe1883f3f
feat: prefer user defined coords and dimensions over calculated for for frame (#8517)
* feat: prefer user defined coords and dimensions over calculated for frame

* update changelog

* lint

* show the info only in dev mode and when children present
5 months ago
Marcel Mraz a80cb5896a
feat: self-hosting existing google fonts (#8540) 5 months ago
David Luzar 8ca4cf3260
feat: flip arrowheads if only arrow(s) selected (#8525)
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
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
David Luzar 44a1c8d857
fix: svg and png frame clipping cases (#8515) 5 months ago
Márk Tolmács e0a22edfbd
fix: Re-route elbow arrows when pasted (#8448)
Re-route elbow arrows when pasted
5 months ago
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
5 months ago
zsviczian c1b310c56b
fix: Buffer dependency (#8474)
* fix Buffer dependency

* moved to encode.ts

* move base64 parsing out

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
5 months ago
zsviczian d4900e8f19
fix: Linear element complete button disabled (#8492) 5 months ago
zsviczian caf2db934c
fix: aspect ratio of distorted images are not preserved in SVG exports (#8061) 5 months ago
zsviczian 60e3801691
fix: WYSIWYG editor padding is not normalized with zoom.value (#8481) 5 months ago
David Luzar 01e83cc9a5
fix: default sidebar triggers & behavior (#8498) 5 months ago
David Luzar 813f9b702e
feat: merge search sidebar back to default sidebar (#8497) 5 months ago
David Luzar fd39712ba6
fix: improve canvas search scroll behavior further (#8491) 5 months ago
zsviczian b46ca0192b
fix: addFiles clears the whole image cache when each file is added - regression from #8471 (#8490)
Update App.tsx
5 months ago
David Luzar 72b7c937b1
feat: smarter zooming when scrolling to match & only match on search/switch (#8488) 6 months ago
David Luzar d107215564
fix: `select` instead of `focus` search input (#8483) 6 months ago
Ryan Di 6959a363f0
feat: canvas search (#8438)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
6 months ago
Abhishek Mehandiratta 5a11c70714
fix: image rendering issue when passed in `initialData` (#8471) 6 months ago
Aakansha Doshi 6ff56c36e3
fix: add partial mocking (#8473)
* fix: add partial mocking

* lint

* Update packages/utils/export.test.ts
6 months ago
Aakansha Doshi 51ea184938
build: upgrade vite to 5.4.x, vitest to 2.x and related vite packages (#8459)
* build: upgrade vite to 5.x, vitest to 2.x and related vite packages

* upgrade vitest-ui and coverage

* pass empty set to fix type error and update snap

* set ignoreEmptyLines to false

* update threshold

* update coverage threshold

* downgrade vite-plugin-pwa as its better to push separately with testing

* add package resolutions for strip-ansi, string-width and wrap-ansi

* disable pwa

* only add resolution for strip-ansi
6 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
David Luzar 60e75406e0
refactor: remove unused env variable (#8457) 6 months ago
zsviczian b396e07b90
fix: PropertiesPopover maxWidth changing fixed units to relative units (#8456) 6 months ago
zsviczian 2d1d84a47b
fix: View mode wheel zooming does not work (#8452)
* Update App.tsx

* fix: prevent zooming browser over DOM

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
6 months ago
Marcel Mraz ee30225062
feat: subset font glyphs for SVG export (#8384)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
6 months ago
David Luzar 16cae4fc07
feat: reset copyStatus on export dialog settings change (#8443) 6 months ago
David Luzar 576bc0dbe5
feat: tweak copy button success animation (#8441) 6 months ago
David Luzar 00af35c692
feat: enable panning/zoom while in wysiwyg (#8437) 6 months ago
Márk Tolmács ea7c702cfc
feat: Visual debugger (#8344)
Add visual debugger to the Excalidraw app (only).
6 months ago
spc-28 26d2296578
fix: fixed copy to clipboard button (#8426)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
6 months ago
zsviczian afb68a6467
feat: improve elbow arrow keyboard move (#8392) 6 months ago
zsviczian b459e5cfd2
fix: context menu does not work after after dragging on StatsDragInput (#8386)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
6 months ago
David Luzar 5facc0d6da
fix: perf regression in `getCommonBounds` (#8429) 6 months ago
Ryan Di 5e1ff7cafe
perf: improve new element drawing (#8340)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
6 months ago
David Luzar b5d7f5b4ba
feat: rewrite d2c to not require token (#8269) 6 months ago
David Luzar fb4bb29aa5
fix: object snapping not working (#8381) 6 months ago
David Luzar 3cfcc7b489
feat: split `gridSize` from enabled state & support custom `gridStep` (#8364) 6 months ago
David Luzar 4320a3cf41
feat: improve zoom-to-content when creating flowchart (#8368) 6 months ago
Márk Tolmács 8420e1aa13
fix: Reimplement rectangle intersection (#8367) 6 months ago
Márk Tolmács 5daf1a1b4e
fix: Round coordinates and sizes for rectangle intersection (#8366)
Round coordinates and sizes for rectangle intersection
6 months ago
David Luzar 97981804d7
feat: Stats popup style tweaks (#8361) 7 months ago
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>
7 months ago
DDDDD12138 7b2bee9746
chore: remove unused parameter (#8355) 7 months ago
David Luzar 88014ace4a
fix: drawing from 0-dimension canvas (#8356) 7 months ago
David Luzar 87a9430809
fix: disable flowchart keybindings inside inputs (#8353) 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
David Luzar 1ea5b26f25
fix: missing `act()` in flowchart tests (#8354) 7 months ago
Clarence Chan d5f4ee7b3f
fix: z-index change by one causes app to freeze (#8314) 7 months ago
Márk Tolmács 261304c1a4
fix: Patch over intersection calculation issue (#8350)
* Patch over intersection calculation issue
7 months ago
Márk Tolmács 84398a7e5c
fix: Point duplication in LEE on ALT+click (#8347) 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
Márk Tolmács 72d6ee48fc
fix: Do not allow resizing unbound elbow arrows either (#8333)
* Fix resizing of unbound elbow arrows
7 months ago
David Luzar 232242d2e9
test: skip test.yml in PRs (#8330) 7 months ago
David Luzar f19ce30dfe
chore: bump `@testing-library/react` `12.1.5` -> `16.0.0` (#8322) 7 months ago
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>
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
Márk Tolmács c641860cb1
fix: CVE-2023-45133 (#7988)
* Upgrade @babel/* versions to 7.24 to ensure non-vulnerable Babel versions
* Pinning React version to 18.2.0 exactly, avoiding test-utils type version clashes
* Fix warning message on yarn start
* Moving react to peer dependencies
* Moving app dependencies from workspace into app
* Bump vitest to 1.6.0 to fix history.test.tsx breaking

---------

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
7 months ago
Marcel Mraz 84d89b9a8a
fix: throttle fractional indices validation (#8306) 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
Marcel Mraz 80ea7ca23f
fix: skip registering font faces for local fonts (#8303) 7 months ago
David Luzar e844580b14
feat: remove automatic frame naming (#8302) 7 months ago
Marcel Mraz 5a0771ad9c
fix: load fonts for `exportToCanvas` (#8298) 7 months ago
Marcel Mraz adcdbe2907
fix: re-add Cascadia Code with ligatures (#8291) 7 months ago
Marcel Mraz 230d0edc44
feat: multiple fonts fallbacks (#8286) 7 months ago
Marcel Mraz d0a380758e
feat: ability to debug the state of fractional indices (#8235) 7 months ago
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>
7 months ago
David Luzar 2427e622b0
feat: improve mermaid detection on paste (#8287) 7 months ago
Marcel Mraz 62228e0bbb
feat: introduce font picker (#8012)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
7 months ago