mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-09 23:34:08 +01:00
Rendering, interim
This commit is contained in:
@@ -113,6 +113,9 @@ export const labelHelper = async (parent, node, _classes, isNode) => {
|
||||
label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');
|
||||
}
|
||||
label.insert('rect', ':first-child');
|
||||
// if (node.positioned) {
|
||||
// shapeSvg.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');
|
||||
// }
|
||||
return { shapeSvg, bbox, halfPadding, label };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user