fixed html labels for icon shape

This commit is contained in:
saurabhg772244
2024-09-11 16:58:13 +05:30
parent 7963ad9b20
commit a2c262f940

View File

@@ -36,6 +36,7 @@ export const labelHelper = async (parent, node, _classes) => {
width: node.width || getConfig().flowchart.wrappingWidth,
cssClasses: 'markdown-node-label',
style: node.labelStyle,
addSvgBackground: !!node.icon,
});
// Get the size of the label
let bbox = text.getBBox();