mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
#5237 Updated type for classdefs and styles
This commit is contained in:
parent
0d1ef9de07
commit
d52f4724fe
@ -15,7 +15,8 @@ interface Node {
|
||||
description?: string[];
|
||||
parentId?: string;
|
||||
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`
|
||||
// style?: string; //REMOVE ✅
|
||||
// class?: string; //REMOVE ✅
|
||||
@ -23,7 +24,7 @@ interface Node {
|
||||
// props?: Record<string, unknown>; //REMOVE ✅
|
||||
// type: string; // REMOVE, replace with isGroup: boolean, default false ✅
|
||||
// borders?: string; //REMOVE ✅
|
||||
labelStyle?: string;
|
||||
labelStyle?: string; // REMOVE - use cssStyles instead ✅
|
||||
|
||||
// Flowchart specific properties
|
||||
labelType?: string; // REMOVE? Always use markdown string, need to check for KaTeX - ⏳ wait with this one
|
||||
|
Loading…
x
Reference in New Issue
Block a user