Commit Graph

164 Commits (72d6ee48fcd5cbb442a6fc212c710e94e3581980)

Author SHA1 Message Date
Márk Tolmács 72d6ee48fc
fix: Do not allow resizing unbound elbow arrows either ()
* Fix resizing of unbound elbow arrows
David Luzar 232242d2e9
test: skip test.yml in PRs ()
David Luzar f19ce30dfe
chore: bump `@testing-library/react` `12.1.5` -> `16.0.0` ()
Ryan Di 3cf14c73a3
refactor: rename `draggingElement` -> `newElement` ()
* 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>
zsviczian c67815f7b0
fix: Duplicating arrow without bound elements throws error ()
Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
Márk Tolmács c641860cb1
fix: CVE-2023-45133 ()
* 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>
Marcel Mraz 84d89b9a8a
fix: throttle fractional indices validation ()
David Luzar e63dd025c9
fix: allow binding elbow arrows to frame children ()
Márk Tolmács 15e019706d
feat: Orthogonal (elbow) arrows for diagramming ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Marcel Mraz 80ea7ca23f
fix: skip registering font faces for local fonts ()
David Luzar e844580b14
feat: remove automatic frame naming ()
Marcel Mraz 5a0771ad9c
fix: load fonts for `exportToCanvas` ()
Marcel Mraz adcdbe2907
fix: re-add Cascadia Code with ligatures ()
Marcel Mraz 230d0edc44
feat: multiple fonts fallbacks ()
Marcel Mraz d0a380758e
feat: ability to debug the state of fractional indices ()
Ryan Di 7b36de0476
fix: linear elements not selected on pointer up from hitting its bound text ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
David Luzar 2427e622b0
feat: improve mermaid detection on paste ()
Marcel Mraz 62228e0bbb
feat: introduce font picker ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
DDDDD12138 4c5408263c
chore: Correct Typos in Code Comments ()
chore: correct typos

Co-authored-by: wuzhiqing <wuzhiqing@linklogis.com>
Aakansha Doshi bd7b778f41
perf: cache the temp canvas created for labeled arrows ()
* perf: cache the temp canvas created for labeled arrows

* use allEleemntsMap so bound text element can be retrieved when editing

* remove logs

* fix rotation

* pass isRotating

* feat: cache `element.angle` instead of relying on `appState.isRotating`

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
David Luzar 43b2476dfe
fix: revert default element canvas padding change ()
BlueGreenMagick df8875a497
fix: freedraw jittering ()
Aakansha Doshi d25a7d365b
feat: upgrade mermaid-to-excalidraw to v1.1.0 ()
* feat: upgrade mermaid-to-excalidraw to v1.1.0

* fixes

* upgrade and remove config as its redundant

* lint

* upgrade to v1.1.0
David Luzar e52c2cd0b6
fix: log allowed events ()
David Luzar 96eeec5119
feat: bump max file size ()
zsviczian 2e1f08c796
fix: memory leak - scene.destroy() and window.launchQueue ()
David Luzar 1d5b41dabb
fix: stop updating text versions on init ()
Márk Tolmács 66a2f24296
fix: Add binding update to manual stat changes ()
Manual stats changes now respect previous element bindings.
Márk Tolmács 04668d8263
fix: Binding after duplicating is now applied for both the old and duplicate shapes ()
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>
David Luzar abbeed3d5f
feat: support Stats bound text `fontSize` editing ()
Márk Tolmács ba8c09d529
fix: Incorrect point offsetting in LinearElementEditor.movePoints() ()
The LinearElementEditor.movePoints() function incorrectly calculates the offset for local linear element points when multiple targetPoints are provided, one of those target points is index === 0 AND the other points are moved in the negative direction, and ending up with negative local coordinates.

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
David Luzar 744b3e5d09
fix: stats state leaking & race conds ()
Esteban Romo 6ba9bd60e8
feat: allow props.initialData to be a function ()
zsviczian a1ffa064df
fix: only bind arrow ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
David Luzar 4dc4590f24
fix: repair invalid binding on restore & fix type check ()
Ryan Di d2f67e619f
feat: editable element stats ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
David Luzar 22b39277f5
feat: paste as mermaid if applicable ()
David Luzar 08b13f971d
fix: wysiwyg blur-submit on mobile ()
David Luzar 69f4cc70cb
feat: stop autoselecting text on text edit on mobile ()
Ryan Di 860308eb27
feat: create new text with width ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
David Luzar 4eb9463f26
fix: restore linear dimensions from points ()
Marcel Mraz 661d6a4a75
fix: flaky snapshot tests with floating point precision issues ()
David Luzar defd34923a
docs: fix `updateScene` `storeAction` default tsdoc & document types ()
Ryan Di c540bd68aa
feat: wrap long text when pasting ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Marcel Mraz eddbe55f50
fix: always re-generate index of defined moved elements ()
Aakansha Doshi 2f9526da24
feat: upgrade to mermaid-to-excalidraw v1 🚀 ()
* feat: upgrade to mermaid-to-excalidraw v1 🚀

* upgrade to v1
David Luzar 1b6e3fe05b
feat: rerender canvas on focus ()
VatsalSoni_13 afe52c89a7
fix: undo/redo when exiting view mode ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
zsviczian be4e127f6c
fix: Two finger panning is slow ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Karthik Nishanth ff0b4394b1
feat: add missing `type="button"` ()