updated crossced Circle Shape

This commit is contained in:
omkarht
2024-08-28 15:27:10 +05:30
parent c2c65b4df2
commit c9c821da5c

View File

@@ -25,8 +25,9 @@ function createLine(r: number) {
export const crossedCircle = async (parent: SVGAElement, node: Node) => {
const { labelStyles, nodeStyles } = styles2String(node);
node.labelStyle = labelStyles;
const { shapeSvg, bbox, halfPadding } = await labelHelper(parent, node, getNodeClasses(node));
const radius = Math.max(bbox.width, bbox.height) / 2 + halfPadding;
node.label = '';
const { shapeSvg } = await labelHelper(parent, node, getNodeClasses(node));
const radius = Math.max(30, node?.width ?? 0);
const { cssStyles } = node;
// @ts-ignore - rough is not typed