32 Commits

Author SHA1 Message Date
zsviczian
482178b7b6
lint 2023-09-24 19:24:04 +02:00
zsviczian
7da500fe0a
store mermaid text in customData of image element 2023-09-24 19:14:49 +02:00
Aakansha Doshi
7f6789780d Add tests 2023-09-22 18:55:48 +05:30
Aakansha Doshi
e1b0b559f5 better api 2023-09-22 11:22:39 +05:30
Aakansha Doshi
8654958aba use i18n 2023-09-21 18:18:44 +05:30
Aakansha Doshi
db163ab89c use types from mermaid-to-excalidraw 2023-09-07 13:40:06 +05:30
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
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
dwelle
9b1c88eed9 fix elements insert position and viewport centering 2023-09-01 14:49:26 +02:00
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
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
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
efdafc8659 fix markdown error by using named export 2023-08-22 21:40:25 +05:30
Aakansha Doshi
fec984895e allow mermaid syntax and export in preview 2023-08-21 20:52:01 +05:30
Aakansha Doshi
c5514974b7 create mermaid to excal dialog 2023-08-17 14:12:57 +05:30
Aakansha Doshi
6a04ebc6db feat: integrate mermaidToExcalidraw 2023-08-17 12:24:00 +05:30