Export types & version upgrade

This commit is contained in:
Ashish Jain
2024-08-15 12:08:02 +02:00
parent 2415e8652a
commit b6725eae94
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@mermaid-chart/mermaid", "name": "@mermaid-chart/mermaid",
"version": "11.0.0-b.64", "version": "11.0.0-b.65",
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", "description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"type": "module", "type": "module",
"module": "./dist/mermaid.core.mjs", "module": "./dist/mermaid.core.mjs",

View File

@@ -9,7 +9,7 @@ export type MarkdownLine = MarkdownWord[];
export type CheckFitFunction = (text: MarkdownLine) => boolean; export type CheckFitFunction = (text: MarkdownLine) => boolean;
// Common properties for any node in the system // Common properties for any node in the system
interface Node { export interface Node {
id: string; id: string;
label?: string; label?: string;
description?: string[]; description?: string[];
@@ -68,7 +68,7 @@ interface Node {
} }
// Common properties for any edge in the system // Common properties for any edge in the system
interface Edge { export interface Edge {
id: string; id: string;
label?: string; label?: string;
classes?: string; classes?: string;
@@ -98,7 +98,7 @@ interface Edge {
look?: string; look?: string;
} }
interface RectOptions { export interface RectOptions {
rx: number; rx: number;
ry: number; ry: number;
labelPaddingX: number; labelPaddingX: number;
@@ -107,7 +107,7 @@ interface RectOptions {
} }
// Extending the Node interface for specific types if needed // Extending the Node interface for specific types if needed
interface ClassDiagramNode extends Node { export interface ClassDiagramNode extends Node {
memberData: any; // Specific property for class diagram nodes memberData: any; // Specific property for class diagram nodes
} }