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