mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-22 01:36:43 +02:00
Add node look and fix text attribute on class
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user