Test/node_modules/@excalidraw/mermaid-to-excalidraw/dist/constants.js
2026-04-09 22:54:00 +07:00

16 lines
518 B
JavaScript

export const DEFAULT_FONT_SIZE = 20;
export const SVG_TO_SHAPE_MAPPER = {
rect: "rectangle",
circle: "ellipse",
};
// visit https://mermaid.js.org/schemas/config.schema.json for default schema
export const MERMAID_CONFIG = {
startOnLoad: false,
flowchart: { curve: "linear" },
themeVariables: {
// Multiplying by 1.25 to increase the font size by 25% and render correctly in Excalidraw
fontSize: `${DEFAULT_FONT_SIZE * 1.25}px`,
},
maxEdges: 500,
maxTextSize: 50000,
};