Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ad1992 committed Nov 3, 2023
1 parent add7697 commit 2a41bf3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@excalidraw/mermaid-to-excalidraw",
"version": "0.1.1-sequence3",
"version": "0.1.1-sequence5",
"description": "Mermaid to Excalidraw Diagrams",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
5 changes: 1 addition & 4 deletions playground/initCustomTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ btn.addEventListener("click", async () => {

// Render Mermaid diagram
const diagramEl = document.getElementById("custom-diagram")!;
const { svg } = await mermaid.render(
`custom-digaram`,
`%%{init: {"themeVariables": {"fontSize": "20px"}} }%%\n${diagramDefinition}`
);
const { svg } = await mermaid.render("custom-digaram", diagramDefinition);
diagramEl.innerHTML = svg;

// Parse Mermaid diagram and render to Excalidraw
Expand Down
1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const DEFAULT_FONT_SIZE = 20;
export const SUPPORTED_DIAGRAM_TYPES = ["flowchart", "sequenceDiagram"];

export const SVG_TO_SHAPE_MAPPER: { [key: string]: "rectangle" | "ellipse" } = {
rect: "rectangle",
Expand Down

0 comments on commit 2a41bf3

Please sign in to comment.