#5237 Updated type for classdefs and styles

This commit is contained in:
Knut Sveidqvist 2024-06-17 14:20:05 +02:00
parent 0d1ef9de07
commit d52f4724fe

View File

@ -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