Commit Graph

183 Commits (fb4bb29aa5d9f03c60afc9984b01f25bcd117970)

Author SHA1 Message Date
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) 6 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>
6 months ago
DDDDD12138 7b2bee9746
chore: remove unused parameter (#8355) 6 months ago
David Luzar 88014ace4a
fix: drawing from 0-dimension canvas (#8356) 6 months ago
David Luzar 87a9430809
fix: disable flowchart keybindings inside inputs (#8353) 6 months ago
Márk Tolmács 99b91c46f7
fix: Yet more patching of intersect code (#8352)
* Yet more patching of intersect code
6 months ago
David Luzar 1ea5b26f25
fix: missing `act()` in flowchart tests (#8354) 6 months ago
Clarence Chan d5f4ee7b3f
fix: z-index change by one causes app to freeze (#8314) 6 months ago
Márk Tolmács 261304c1a4
fix: Patch over intersection calculation issue (#8350)
* Patch over intersection calculation issue
6 months ago
Márk Tolmács 84398a7e5c
fix: Point duplication in LEE on ALT+click (#8347) 6 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>
6 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
6 months ago
Márk Tolmács 72d6ee48fc
fix: Do not allow resizing unbound elbow arrows either (#8333)
* Fix resizing of unbound elbow arrows
6 months ago
David Luzar 232242d2e9
test: skip test.yml in PRs (#8330) 6 months ago
David Luzar f19ce30dfe
chore: bump `@testing-library/react` `12.1.5` -> `16.0.0` (#8322) 6 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>
6 months ago
zsviczian c67815f7b0
fix: Duplicating arrow without bound elements throws error (#8316)
Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
6 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>
6 months ago
Marcel Mraz 84d89b9a8a
fix: throttle fractional indices validation (#8306) 6 months ago
David Luzar e63dd025c9
fix: allow binding elbow arrows to frame children (#8309) 6 months ago
Márk Tolmács 15e019706d
feat: Orthogonal (elbow) arrows for diagramming (#8299)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
6 months ago
Marcel Mraz 80ea7ca23f
fix: skip registering font faces for local fonts (#8303) 6 months ago
David Luzar e844580b14
feat: remove automatic frame naming (#8302) 6 months ago
Marcel Mraz 5a0771ad9c
fix: load fonts for `exportToCanvas` (#8298) 6 months ago
Marcel Mraz adcdbe2907
fix: re-add Cascadia Code with ligatures (#8291) 6 months ago
Marcel Mraz 230d0edc44
feat: multiple fonts fallbacks (#8286) 6 months ago
Marcel Mraz d0a380758e
feat: ability to debug the state of fractional indices (#8235) 6 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
DDDDD12138 4c5408263c
chore: Correct Typos in Code Comments (#8268)
chore: correct typos

Co-authored-by: wuzhiqing <wuzhiqing@linklogis.com>
7 months ago
Aakansha Doshi bd7b778f41
perf: cache the temp canvas created for labeled arrows (#8267)
* 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>
7 months ago
David Luzar 43b2476dfe
fix: revert default element canvas padding change (#8266) 7 months ago
BlueGreenMagick df8875a497
fix: freedraw jittering (#8238) 7 months ago
Aakansha Doshi d25a7d365b
feat: upgrade mermaid-to-excalidraw to v1.1.0 (#8226)
* feat: upgrade mermaid-to-excalidraw to v1.1.0

* fixes

* upgrade and remove config as its redundant

* lint

* upgrade to v1.1.0
7 months ago
David Luzar e52c2cd0b6
fix: log allowed events (#8224) 7 months ago
David Luzar 96eeec5119
feat: bump max file size (#8220) 7 months ago
zsviczian 2e1f08c796
fix: memory leak - scene.destroy() and window.launchQueue (#8198) 7 months ago
David Luzar 1d5b41dabb
fix: stop updating text versions on init (#8191) 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.
7 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>
7 months ago
David Luzar abbeed3d5f
feat: support Stats bound text `fontSize` editing (#8187) 7 months ago
Márk Tolmács ba8c09d529
fix: Incorrect point offsetting in LinearElementEditor.movePoints() (#8145)
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>
7 months ago
David Luzar 744b3e5d09
fix: stats state leaking & race conds (#8177) 8 months ago
Esteban Romo 6ba9bd60e8
feat: allow props.initialData to be a function (#8135) 8 months ago