mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +02:00
updated crossced Circle Shape
This commit is contained in:
@@ -25,8 +25,9 @@ function createLine(r: number) {
|
|||||||
export const crossedCircle = async (parent: SVGAElement, node: Node) => {
|
export const crossedCircle = async (parent: SVGAElement, node: Node) => {
|
||||||
const { labelStyles, nodeStyles } = styles2String(node);
|
const { labelStyles, nodeStyles } = styles2String(node);
|
||||||
node.labelStyle = labelStyles;
|
node.labelStyle = labelStyles;
|
||||||
const { shapeSvg, bbox, halfPadding } = await labelHelper(parent, node, getNodeClasses(node));
|
node.label = '';
|
||||||
const radius = Math.max(bbox.width, bbox.height) / 2 + halfPadding;
|
const { shapeSvg } = await labelHelper(parent, node, getNodeClasses(node));
|
||||||
|
const radius = Math.max(30, node?.width ?? 0);
|
||||||
const { cssStyles } = node;
|
const { cssStyles } = node;
|
||||||
|
|
||||||
// @ts-ignore - rough is not typed
|
// @ts-ignore - rough is not typed
|
||||||
|
Reference in New Issue
Block a user