mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge f6a623ebbe
into debf2ad608
This commit is contained in:
commit
c3b5652ace
1 changed files with 2 additions and 1 deletions
|
@ -22,8 +22,9 @@ Once the library is installed, its ready to use.
|
|||
import { parseMermaidToExcalidraw } from "@excalidraw/mermaid-to-excalidraw";
|
||||
import { convertToExcalidrawElements} from "@excalidraw/excalidraw"
|
||||
|
||||
const DEFAULT_FONT_SIZE = 20;
|
||||
try {
|
||||
const { elements, files } = await parseMermaid(diagramDefinition, {
|
||||
const { elements, files } = await parseMermaidToExcalidraw(diagramDefinition, {
|
||||
fontSize: DEFAULT_FONT_SIZE,
|
||||
});
|
||||
// currently the elements returned from the parser are in a "skeleton" format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue