Updated label padding, and set rx, ry for neo-style class

This commit is contained in:
Per Brolin
2024-06-17 20:15:04 +02:00
parent 1cdafaac80
commit ced34394bb
2 changed files with 6 additions and 2 deletions

View File

@@ -11,9 +11,9 @@ export const roundedRect = async (parent: SVGAElement, node: Node) => {
labelPaddingX: node.look === 'neo' ? node.padding * 2 : node.padding,
labelPaddingY: node.look === 'neo' ? node.padding : node.padding,
classes: '',
labelPaddingX: (node?.padding || 0) * 1,
labelPaddingY: (node?.padding || 0) * 1,
} as RectOptions;
console.log('Perra1, node, options: ', node, options);
return drawRect(parent, node, options);
};

View File

@@ -76,12 +76,16 @@ const getStyles = (
[data-look="neo"].node rect, [data-look="neo"].node circle, [data-look="neo"].node polygon {
stroke: none;
filter: drop-shadow( 1px 2px 2px rgba(185,185,185,1.0) );
rx: 3;
ry: 3;
}
[data-look="neo"].statediagram-cluster rect {
fill: ${options.compositeTitleBackground};
stroke: none;
stroke-width: 1px;
rx: 3;
ry: 3;
}
${userStyles}