From 0d2c7c3b2ccb0cc0e16754517f73cb67f146c500 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Mon, 20 May 2024 14:33:54 +0200 Subject: [PATCH] #5237 Removed node properties, doc status in types --- packages/mermaid/src/rendering-util/types.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/mermaid/src/rendering-util/types.d.ts b/packages/mermaid/src/rendering-util/types.d.ts index f6b56582e..1276c41d8 100644 --- a/packages/mermaid/src/rendering-util/types.d.ts +++ b/packages/mermaid/src/rendering-util/types.d.ts @@ -14,17 +14,19 @@ interface Node { id: string; label?: string; parentId?: string; - position?: string; // Keep, this is for notes 'left of', 'right of', etc. + position?: string; // Keep, this is for notes 'left of', 'right of', etc. Move into nodeNode cssStyles?: string; // Renamed from `styles` to `cssStyles` cssClasses?: string; // Renamed from `classes` to `cssClasses` - // style?: string; //REMOVE - // class?: string; //REMOVE - // labelText?: string; //REMOVE, use `label` instead - // props?: Record; //REMOVE + // style?: string; //REMOVE ✅ + // class?: string; //REMOVE ✅ + // labelText?: string; //REMOVE, use `label` instead ✅ + // props?: Record; //REMOVE ✅ + // type: string; // REMOVE, replace with isGroup: boolean, default false ✅ + // borders?: string; //REMOVE ✅ labelStyle?: string; // 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 domId: string; // Rendering specific properties for both Flowchart and State Diagram nodes dir?: string; // Only relevant for isGroup true, i.e. a sub-graph or composite state. @@ -34,7 +36,6 @@ interface Node { padding?: number; //REMOVE?, use from LayoutData.config - Keep, this could be shape specific shape?: string; tooltip?: string; - type: string; // REMOVE, replace with isGroup: boolean, default false isGroup: boolean; width?: number; height?: number; @@ -45,7 +46,6 @@ interface Node { rx?: number; // Used for rounded corners in Rect, Ellipse, etc.Maybe it to specialized RectNode, EllipseNode, etc. ry?: number; - borders?: string; //REMOVE useRough?: boolean; useHtmlLabels?: boolean; centerLabel?: boolean; //keep for now.