Commit Graph

3271 Commits (d64ac92cc2c306ebc1651dac88a01e04ee02a4ca)
 

Author SHA1 Message Date
zsviczian d64ac92cc2 lint 1 year ago
zsviczian 1d27ce16d8 fix pointer move cancelling locked element selection 1 year ago
David Luzar 7b00089314
chore: bump @excalidraw/random-username (#7272) 1 year ago
zsviczian af6b81df40
fix: Replace hard coded font family with const value in addFrameLabelsAsTextElements (#7269) 1 year ago
FilBot3 02cc8440c4
feat: allow D&D dice app domain for embeds (#7263)
Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
1 year ago
David Luzar 6363492cee
fix: perf issue when ungrouping elements within frame (#7265)
Co-authored-by: Ryan Di <ryan.weihao.di@gmail.com>
1 year ago
Sahil Nagpure 900b317bf3
feat: remove full screen shortcut (#7222) 1 year ago
Gabriel Lalonde 68179356e6
fix: Fixes the shortcut collision between "toggleHandTool" and "distributeHorizontally" (#7189)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
1 year ago
Jan-Peter Dhallé 3ed15e95da
Small typo fix frames.mdx (#7216) 1 year ago
zsviczian 798e1fd858
fix: allow pointer events when editing a linear element (#7238) 1 year ago
David Luzar f66c93633c
feat: make adaptive-roughness less aggressive (#7250) 1 year ago
Aakansha Doshi cee00767df
feat: support excalidrawAPI and remove refs support (#7251)
* feat: support excalidrawAPI and remove refs support

* update changelog

* remove ready and readyPromise

* update changelog

* update changelog
1 year ago
David Luzar 864c0b3ea8
feat: render frames on export (#7210) 1 year ago
Aakansha Doshi a9a6f8eafb
docs: update the docs with next js dynamic import support (#7252) 1 year ago
David Luzar 3c96943db3
test: fix mermaid test flake (#7249) 1 year ago
David Luzar 9006caff39
fix: make modal use viewport breakpoints (#7246) 1 year ago
Aakansha Doshi ce7a847668
feat: export getCommonBounds util (#7247)
* feat: export getCommonBounds util

* add pr link

* fix
1 year ago
David Luzar b1037b342d
feat: make device breakpoints more specific (#7243) 1 year ago
Dante Calderon 18a7b97515
chore: Fix typo in comment in LocalData file (#7235) 1 year ago
Aakansha Doshi e8def8da8d
feat: Support mermaid flowchart and sequence diagrams to excalidraw diagrams 🥳 (#6920)
* feat: integrate mermaidToExcalidraw

* create mermaid to excal dialog

* allow mermaid syntax and export in preview

* fix

* fix webpack config

* fix markdown error by using named export

* center preview

* set elements as selected when inserted onto canvas

* persist mermaid data to storage

* store canvas data in refs

* load mermaid lazily

* tweak design

* compute width, height correctly for arrows

* fix undefined vertex issue

* add mermaid icon in dropdown

* add a note in dialog

* reset preview when error

* show error in preview when error

* show mermaid error messgae react way

* design tweaks

* add example and docs link

* fix

* tweak design to remove scroll bar

* show a spinner unless mermaid loaded

* regenerate ids when needed via programmatic api, this makes sure for mermaid diagrams ids are regenerated

* tweak

* add option to transform viewport to scene coords in transform api

* make opts optional and use 100% zoom when inserting to canvas

* fix arrow bindings in safari and firefox

* fix elements insert position and viewport centering

* fix: Update start/end points by 0.5 so bindings don't overlap with start/end bound element coordinates.

* defer rendering the preview

* tweak text

* fix tests

* remove only

* make design responsive

* fix: show extra tools dropdown in mobile

* fix mobile css

* width auto

* upgrade mermaid-to-excalidraw

* don't pass appState in deps as its not used

* upgrade mermaid-to-excalidraw to fix firefox issue

* use types from mermaid-to-excalidraw

* upgrade mermaid-to-excalidraw

* use stable version of mermaid-to-excalidraw

* upgrade mermaid-to-excalidraw

* fix width of shapes toolbar for smaller screen size and also fix regression of mobile menu

* use i18n

* better api

* enable test coverage in ui

* Add tests

* use common utils to update and get text editor

* updgrade mermaid-to-excalidraw to support sequence diagrams

* fix test

* don't update arrow container height anytime in when redrawing text bounding box

* increase size limit

* increase size limit of vendor to 900kb

* use openDialog for mermaid

* upgrade mermaid-to-excalidraw

* update frame id post generation

* upgrade mermaid-to-excalidraw to add entity codes support

* update size limit

* upgrade mermaid-to-excalidraw package with frame api changes

* upgrade mermaid-to-excalidraw to remove directive and use config

* don't highlight mermaid tool and remove unused api setSelection

* stop using loading state to update text area

* move some styling to scss

* review fixes

* use modifiedTableIcon props and remove stale snap

* css

* dialog css

* fix snap

* use dialog border

* change mermaidToExcalidrawLib to state

* better styling of errors

* make modal bigger

* fix mobile

* update snaps

* fix icon color

* fix dark mode insert button color

* horizontally center spinner

* render canvas conditionally on loaded state

* rd tweaks

* tweak class names

* remove max height

* typo in example

* upgrade mermaid-to-excalidraw

* simplify error state

* fix height & overflow on vertical breakpoint

* fix lint

* show errors in overlay

* set textarea font family

* reduce opacity

* update snap

* upgrade to mermaid  0.1.2

---------

Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
David Luzar a7db41c5ba
fix: align input `:hover`/`:focus` with spec (#7225) 1 year ago
David Luzar d8166d9e1d
fix: dialog remounting on className updates (#7224) 1 year ago
Farzaneh Sefidabi 81c0259041
docs: add npm downloads rate badge to README.md file (#7127) 1 year ago
Aakansha Doshi f5c91c3a0f
feat: support frames via programmatic API (#7205)
* update frame id post generation

* support frames via programmatic API

* fix types

* add test for frames

* throw error when element doesn't exist

* naming tweaks

* update the api to use children

* consider max of frame dimensions and calculated bounds of elements

* consider bound elements in frame api
1 year ago
David Luzar 9b8de8a12e
test: disable flaky test (#7213) 1 year ago
David Luzar ea677d4581
feat: make clipboard more robust and reintroduce contextmenu actions (#7198) 1 year ago
Aakansha Doshi ec2de7205f
fix: don't update label position when dragging labelled arrows (#6891)
* fix: don't update label position when dragging labelled arrows

* lint

* add test

* don't update coords for label when labelled arrow inside frame

* increase locales bundle size limit
1 year ago
Are d5e3f436dc
feat: add approximate elements in bbox detection (#6727)
Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
Aakansha Doshi dcf4592e79
feat: regenerate ids by default when using transform api and also update bindings by 0.5px to avoid possible overlapping (#7195)
* feat: regenerate ids by default when using transform api and also update bindings by 0.5px to avoid possible overlapping

* type

* increase limit as some past PR(s) increased the bundle size

* review fixes

* update changelog
1 year ago
David Luzar d1f8eec174
feat: support giphy.com embed domain (#7192) 1 year ago
David Luzar 0f81c30276
fix: frame add/remove/z-index ordering changes (#7194) 1 year ago
zsviczian f098789d16
fix: element relative position when dragging multiple elements on grid (#7107)
Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
David Luzar f794b0bb90
fix: freedraw non-solid bg hitbox not working (#7193) 1 year ago
David Luzar 104f64f1dc
revert: remove bound-arrows from frames (#7190) 1 year ago
Viczián András 71ad3c5356
fix: Actions panel ux improvement (#6850)
Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
David Luzar afea0df141
feat: renderer tweaks (#6698) 1 year ago
Preet d2a508104e
fix: Better fill rendering with latest RoughJS (#7031)
Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
David Luzar 3697618266
feat: support `props.locked` for `setActiveTool` (#7153)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
1 year ago
David Luzar e7cc2337ea
feat: add `onChange`, `onPointerDown`, `onPointerUp` api subs (#7154) 1 year ago
dependabot[bot] 9eb89f9960
build(deps): bump @babel/traverse from 7.18.9 to 7.23.2 in /dev-docs (#7165)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Excalidraw Bot ab1bcc7615
chore: Update translations from Crowdin (#6695) 1 year ago
Vaibhav Shukla b1cac35269
feat: Closing of "Save to.." Dialog on Save To Disk (#7168)
Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
Vaibhav Shukla 83f86e2b86
fix: Fix for Strange Symbol Appearing on Canvas after Deleting Grouped Graphics (Issue #7116) (#7170)
Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
dependabot[bot] 7e38cab76e
build(deps): bump @babel/traverse from 7.21.4 to 7.23.2 (#7171)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
David Luzar 2cabb1f1f4
fix: attempt to fix flake in wysiwyg tests (#7173) 1 year ago
Lakshya Satpal 63650f82d1
feat: Added Copy/Paste from Google Docs (#7136)
Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
David Luzar dde3dac931
feat: remove bound-arrows from frames (#7157) 1 year ago
David Luzar 5b94cffc74
fix: ensure `ClipboardItem` created in the same tick to fix safari (#7066) 1 year ago
David Luzar aaf73c8ff3
fix: double image dialog shown on insert (#7152) 1 year ago
mazijian-pp 44d9d5fcac
fix: wysiwyg left in undefined state on reload (#7123) 1 year ago