mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 03:34:12 +01:00
Adjusted fixed height settings odd
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user