mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-04 14:49:46 +02:00
#5237 Updated type for classdefs and styles
This commit is contained in:
@@ -15,7 +15,8 @@ interface Node {
|
|||||||
description?: string[];
|
description?: string[];
|
||||||
parentId?: string;
|
parentId?: string;
|
||||||
position?: string; // Keep, this is for notes 'left of', 'right of', etc. Move into nodeNode
|
position?: string; // Keep, this is for notes 'left of', 'right of', etc. Move into nodeNode
|
||||||
cssStyles?: string; // Renamed from `styles` to `cssStyles`
|
cssStyles?: string[]; // Renamed from `styles` to `cssStyles`
|
||||||
|
cssCompiledStyles?: string[];
|
||||||
cssClasses?: string; // Renamed from `classes` to `cssClasses`
|
cssClasses?: string; // Renamed from `classes` to `cssClasses`
|
||||||
// style?: string; //REMOVE ✅
|
// style?: string; //REMOVE ✅
|
||||||
// class?: string; //REMOVE ✅
|
// class?: string; //REMOVE ✅
|
||||||
@@ -23,7 +24,7 @@ interface Node {
|
|||||||
// props?: Record<string, unknown>; //REMOVE ✅
|
// props?: Record<string, unknown>; //REMOVE ✅
|
||||||
// type: string; // REMOVE, replace with isGroup: boolean, default false ✅
|
// type: string; // REMOVE, replace with isGroup: boolean, default false ✅
|
||||||
// borders?: string; //REMOVE ✅
|
// borders?: string; //REMOVE ✅
|
||||||
labelStyle?: string;
|
labelStyle?: string; // REMOVE - use cssStyles instead ✅
|
||||||
|
|
||||||
// Flowchart specific properties
|
// Flowchart specific properties
|
||||||
labelType?: string; // REMOVE? Always use markdown string, need to check for KaTeX - ⏳ wait with this one
|
labelType?: string; // REMOVE? Always use markdown string, need to check for KaTeX - ⏳ wait with this one
|
||||||
|
Reference in New Issue
Block a user