mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 19:39:43 +02:00
Corrected options rx,ry for roundedRect when not neo
This commit is contained in:
@@ -6,8 +6,8 @@ export const roundedRect = async (parent: SVGAElement, node: Node) => {
|
|||||||
const { look } = getConfig();
|
const { look } = getConfig();
|
||||||
node.look = look;
|
node.look = look;
|
||||||
const options = {
|
const options = {
|
||||||
rx: node.look === 'neo' ? 1 : 1,
|
rx: node.look === 'neo' ? 1 : 5,
|
||||||
ry: node.look === 'neo' ? 1 : 1,
|
ry: node.look === 'neo' ? 1 : 5,
|
||||||
labelPaddingX: node.padding * 2,
|
labelPaddingX: node.padding * 2,
|
||||||
labelPaddingY: node.padding * 1,
|
labelPaddingY: node.padding * 1,
|
||||||
classes: '',
|
classes: '',
|
||||||
|
Reference in New Issue
Block a user