3229 Commits

Author SHA1 Message Date
Aakansha Doshi
8a153b822a Merge remote-tracking branch 'origin/master' into aakansha-mermaid 2023-09-13 21:08:50 +05:30
Aakansha Doshi
d73cd14dfb
docs: add mermaid docs (#6971)
* docs: add mermaid docs

* fix link

* add development.mdx

* add codebase

* add parseEdge

* add subgraph

* convertors

* tweaks

* structure the codebase

* add docs for new diagram type

* decouple docs for flowchart parser

* fix broken links

* use diagram instead of chart

* revert package.json

* tweaks

* point root folder of mermaid-to-excalidraw to installation

* remove installation from sidebar children

* fix link

* update flowchart parser diagram

* update parser overview diagram

* update more diagrams

* remove note about change in element stroke

* update diagram

* increase size limit for excalidraw production bundle

* tweaks

* add link

* move codebase after introduction

* dummy

---------

Co-authored-by: dwelle <luzar.david@gmail.com>
2023-09-13 21:01:34 +05:30
Aakansha Doshi
57da3768b1 upgrade mermaid-to-excalidraw 2023-09-13 20:12:11 +05:30
David Luzar
6abf194281
fix: export to plus url (#6980) 2023-09-11 21:13:16 +00:00
David Luzar
5302490372
feat: update logo (#6979) 2023-09-11 17:47:41 +02:00
DanielJGeiger
4a9adc703a
feat: export changeProperty() and getFormValue(). (#6957) 2023-09-09 08:13:15 -05:00
Rajnikant dash
56c21529db
docs: Adding the json Schema to the documentation (#6817)
Co-authored-by: Rajni2002 <rajnikant.dash@everlytics.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-09-07 12:43:37 +02:00
Aakansha Doshi
db163ab89c use types from mermaid-to-excalidraw 2023-09-07 13:40:06 +05:30
Aakansha Doshi
3593cf6a14 upgrade mermaid-to-excalidraw to fix firefox issue 2023-09-07 12:02:33 +05:30
Marcel Mraz
a13aed92f2
fix: z-index inconsistencies during addition / deletion in frames (#6914)
Co-authored-by: Marcel Mraz <marcel.mraz@adacta-fintech.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-09-06 22:41:44 +00:00
Aakansha Doshi
ce6a9986e3 don't pass appState in deps as its not used 2023-09-06 19:43:02 +05:30
Aakansha Doshi
c95369ace8 upgrade mermaid-to-excalidraw 2023-09-06 11:23:07 +05:30
Aakansha Doshi
134df7bfbb
fix: update size-limit so react is not installed as dependency (#6964) 2023-09-06 10:39:04 +05:30
Alex Kim
5191cdbe26
fix: stale labeled arrow bounds cache after editing the label (#6893)
* fix stale labeled arrow bounds cache after editing the label

* add arrow bounds test

* fix test to check the arrow version

* fix

* fix test - remove unused import

* Update src/element/textWysiwyg.test.tsx

---------

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-09-05 21:20:27 +05:30
David Luzar
27fd150a20
fix: canvas flickering due to resetting canvas on skipped frames (#6960) 2023-09-05 12:06:48 +02:00
Aakansha Doshi
a8283b27c5 width auto 2023-09-05 11:25:46 +05:30
Aakansha Doshi
3ea7c7ffa0 fix mobile css 2023-09-05 11:01:19 +05:30
Aakansha Doshi
beb2ceaa72 fix: show extra tools dropdown in mobile 2023-09-05 10:32:51 +05:30
Aakansha Doshi
0d49eb3e05 make design responsive 2023-09-04 13:59:47 +05:30
Aakansha Doshi
de0f35454a remove only 2023-09-04 13:22:06 +05:30
Aakansha Doshi
d393a1c048 Merge remote-tracking branch 'origin/master' into aakansha-mermaid 2023-09-04 13:15:24 +05:30
Aakansha Doshi
23fa44cf5e fix tests 2023-09-04 13:09:35 +05:30
Aakansha Doshi
9d22e84fc8 tweak text 2023-09-04 10:42:05 +05:30
Aakansha Doshi
aa6b585b96 defer rendering the preview 2023-09-04 09:05:22 +05:30
Aakansha Doshi
06389f96b9 fix: Update start/end points by 0.5 so bindings don't overlap with start/end bound element coordinates. 2023-09-04 08:49:50 +05:30
dwelle
9b1c88eed9 fix elements insert position and viewport centering 2023-09-01 14:49:26 +02:00
Aakansha Doshi
d070760b2f fix arrow bindings in safari and firefox 2023-08-31 21:05:44 +05:30
Aakansha Doshi
acd6db5304 make opts optional and use 100% zoom when inserting to canvas 2023-08-31 13:34:28 +05:30
Aakansha Doshi
d203794f70 add option to transform viewport to scene coords in transform api 2023-08-31 11:08:10 +05:30
Aakansha Doshi
c8fd157914 tweak 2023-08-30 20:32:56 +05:30
Aakansha Doshi
b47d46699a regenerate ids when needed via programmatic api, this makes sure for mermaid diagrams ids are regenerated 2023-08-30 20:28:13 +05:30
Aakansha Doshi
10a5d18fa2 show a spinner unless mermaid loaded 2023-08-30 14:14:24 +05:30
Aakansha Doshi
b1bd94c377 tweak design to remove scroll bar 2023-08-30 13:57:49 +05:30
Aakansha Doshi
e4e2e044af fix 2023-08-30 13:29:52 +05:30
Aakansha Doshi
d3db48e8f4 add example and docs link 2023-08-30 13:21:32 +05:30
Aakansha Doshi
cef0f15158 design tweaks 2023-08-30 13:02:13 +05:30
Aakansha Doshi
742e4bc017 show mermaid error messgae react way 2023-08-30 08:58:27 +05:30
Aakansha Doshi
a573fbbb5a show error in preview when error 2023-08-29 22:06:45 +05:30
Aakansha Doshi
f696d36e03 reset preview when error 2023-08-29 21:59:46 +05:30
Aakansha Doshi
21a804a4e5 add a note in dialog 2023-08-29 21:36:13 +05:30
Aakansha Doshi
c313a2cf42 add mermaid icon in dropdown 2023-08-29 21:20:08 +05:30
Aakansha Doshi
6b33ba1d04 fix undefined vertex issue 2023-08-29 16:56:57 +05:30
Aakansha Doshi
fe9f89a0fc compute width, height correctly for arrows 2023-08-29 12:49:49 +05:30
zsviczian
188921c247
fix: grid jittery after partition PR (#6935) 2023-08-27 19:30:47 +02:00
Aakansha Doshi
d1266280cb tweak design 2023-08-25 15:44:22 +05:30
Aakansha Doshi
41a0258fe1 load mermaid lazily 2023-08-24 13:43:41 +05:30
Aakansha Doshi
3346c72356 store canvas data in refs 2023-08-24 12:50:03 +05:30
Aakansha Doshi
6518e05cab persist mermaid data to storage 2023-08-24 12:29:33 +05:30
Aakansha Doshi
f85f890b25 set elements as selected when inserted onto canvas 2023-08-23 16:24:37 +05:30
Aakansha Doshi
7b612bec5e center preview 2023-08-23 14:43:27 +05:30