#5237 fix for issue with alignment of subgraph titles

This commit is contained in:
Knut Sveidqvist
2024-06-26 13:15:52 +02:00
parent 6d7b2b1e14
commit ee6ae6a47a

View File

@@ -35,7 +35,11 @@ const rect = async (parent, node) => {
// const text = label
// .node()
// .appendChild(createLabel(node.label, node.labelStyle, undefined, true));
const text = await createText(labelEl, node.label, { style: node.labelStyle, useHtmlLabels });
const text = await createText(labelEl, node.label, {
style: node.labelStyle,
useHtmlLabels,
isNode: false,
});
// Get the size of the label
let bbox = text.getBBox();