mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-06 13:54:09 +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,
|
rx: 0,
|
||||||
ry: 0,
|
ry: 0,
|
||||||
classes: '',
|
classes: '',
|
||||||
|
labelPaddingX: (node?.padding || 0) * 2,
|
||||||
|
labelPaddingY: (node?.padding || 0) * 1,
|
||||||
} as RectOptions;
|
} as RectOptions;
|
||||||
return drawRect(parent, node, options);
|
return drawRect(parent, node, options);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user