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",
"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.",
"type": "module",
"module": "./dist/mermaid.core.mjs",

View File

@@ -9,7 +9,7 @@ export type MarkdownLine = MarkdownWord[];
export type CheckFitFunction = (text: MarkdownLine) => boolean;
// Common properties for any node in the system
interface Node {
export interface Node {
id: string;
label?: string;
description?: string[];
@@ -68,7 +68,7 @@ interface Node {
}
// Common properties for any edge in the system
interface Edge {
export interface Edge {
id: string;
label?: string;
classes?: string;
@@ -98,7 +98,7 @@ interface Edge {
look?: string;
}
interface RectOptions {
export interface RectOptions {
rx: number;
ry: number;
labelPaddingX: number;
@@ -107,7 +107,7 @@ interface RectOptions {
}
// 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
}