mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-03 04:14:15 +01:00
Fix for paddings in square rect
This commit is contained in:
@@ -6,6 +6,8 @@ export const squareRect = async (parent: SVGAElement, node: Node) => {
|
||||
rx: 0,
|
||||
ry: 0,
|
||||
classes: '',
|
||||
labelPaddingX: (node?.padding || 0) * 2,
|
||||
labelPaddingY: (node?.padding || 0) * 1,
|
||||
} as RectOptions;
|
||||
return drawRect(parent, node, options);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user