mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-04 21:04:12 +01:00
Adjust classNode text when label is set
This commit is contained in:
@@ -58,6 +58,8 @@ export const setClassLabel = function (_id: string, label: string) {
|
|||||||
|
|
||||||
const { className } = splitClassNameAndType(id);
|
const { className } = splitClassNameAndType(id);
|
||||||
classes.get(className)!.label = label;
|
classes.get(className)!.label = label;
|
||||||
|
classes.get(className)!.text =
|
||||||
|
`<strong>${label}${classes.get(className)!.type ? `<${classes.get(className)!.type}>` : ''}</strong>`;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user