Fix for paddings in square rect

This commit is contained in:
Knut Sveidqvist
2024-06-12 13:49:37 +02:00
parent 7c851bc849
commit 0dd6db67e8

View File

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