mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-30 13:46: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,
|
id: name,
|
||||||
type: type,
|
type: type,
|
||||||
label: name,
|
label: name,
|
||||||
text: `${name}${type ? `<${type}>` : ''}`,
|
text: `${name}${type ? `<${type}>` : ''}`,
|
||||||
shape: 'classBox',
|
shape: 'classBox',
|
||||||
cssClasses: [],
|
cssClasses: [],
|
||||||
methods: [],
|
methods: [],
|
||||||
@@ -564,6 +564,7 @@ export const getData = () => {
|
|||||||
if (classNode) {
|
if (classNode) {
|
||||||
const node = classNode as unknown as Node;
|
const node = classNode as unknown as Node;
|
||||||
node.parentId = classNode.parent;
|
node.parentId = classNode.parent;
|
||||||
|
node.look = config.look;
|
||||||
nodes.push(node);
|
nodes.push(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user