mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
Export types & version upgrade
This commit is contained in:
@@ -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",
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user