updated tiltedCylinder shape

This commit is contained in:
omkarht
2024-08-23 15:43:15 +05:30
parent f424a51133
commit a2fba0284e

View File

@@ -52,11 +52,11 @@ export const tiltedCylinder = async (parent: SVGAElement, node: Node) => {
tiltedCylinder.attr('class', 'basic label-container'); tiltedCylinder.attr('class', 'basic label-container');
if (cssStyles && node.look !== 'handDrawn') { if (cssStyles && node.look !== 'handDrawn') {
tiltedCylinder.selectChildren('path').attr('style', cssStyles); tiltedCylinder.selectAll('path').attr('style', cssStyles);
} }
if (nodeStyles && node.look !== 'handDrawn') { if (nodeStyles && node.look !== 'handDrawn') {
tiltedCylinder.selectChildren('path').attr('style', nodeStyles); tiltedCylinder.selectAll('path').attr('style', nodeStyles);
} }
updateNodeBounds(node, tiltedCylinder); updateNodeBounds(node, tiltedCylinder);