Adjusted fixed height settings odd

This commit is contained in:
Knut Sveidqvist
2024-10-02 14:36:19 +02:00
parent 2abdece0f2
commit c1377f9075

View File

@@ -59,11 +59,11 @@ export const rect_left_inv_arrow = async (
polygon.selectAll('path').attr('style', nodeStyles); polygon.selectAll('path').attr('style', nodeStyles);
} }
polygon.attr('transform', `translate(${-notch / 2},0)`); // polygon.attr('transform', `translate(${-notch / 2},0)`);
label.attr( label.attr(
'transform', 'transform',
`translate(${bbox.x - bbox.width / 2}, ${-(bbox.height / 2) - (bbox.y - (bbox.top ?? 0))})` `translate(${bbox.x - bbox.width / 2 + notch / 2}, ${-(bbox.height / 2) - (bbox.y - (bbox.top ?? 0))})`
); );
updateNodeBounds(node, polygon); updateNodeBounds(node, polygon);