Rendering, interim

This commit is contained in:
Knut Sveidqvist
2023-09-05 15:15:08 +02:00
parent 1e864a508d
commit ccdb803501
6 changed files with 61 additions and 160 deletions

View File

@@ -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 };
};