From b105c7b35e596fd9898ce7e5e5a3ffb7c8eddb78 Mon Sep 17 00:00:00 2001 From: yari-dewalt Date: Wed, 18 Sep 2024 09:10:35 -0700 Subject: [PATCH] Add node look and fix text attribute on class --- packages/mermaid/src/diagrams/class/classDb.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/class/classDb.ts b/packages/mermaid/src/diagrams/class/classDb.ts index 3dd6dabdf..878ae102f 100644 --- a/packages/mermaid/src/diagrams/class/classDb.ts +++ b/packages/mermaid/src/diagrams/class/classDb.ts @@ -84,7 +84,7 @@ export const addClass = function (_id: string) { id: name, type: type, label: name, - text: `${name}${type ? `<${type}>` : ''}`, + text: `${name}${type ? `<${type}>` : ''}`, shape: 'classBox', cssClasses: [], methods: [], @@ -564,6 +564,7 @@ export const getData = () => { if (classNode) { const node = classNode as unknown as Node; node.parentId = classNode.parent; + node.look = config.look; nodes.push(node); } }