From bb521f7af85e50b8ed2ccfae78480e450ae52e35 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 2 Oct 2024 18:49:57 +0530 Subject: [PATCH] chore: Remove unnecessary ts-ignores --- .../src/rendering-util/rendering-elements/shapes/anchor.ts | 1 - .../src/rendering-util/rendering-elements/shapes/bowTieRect.ts | 1 - .../src/rendering-util/rendering-elements/shapes/card.ts | 1 - .../src/rendering-util/rendering-elements/shapes/circle.ts | 1 - .../rendering-util/rendering-elements/shapes/crossedCircle.ts | 2 +- .../rendering-util/rendering-elements/shapes/curlyBraceLeft.ts | 1 - .../rendering-util/rendering-elements/shapes/curlyBraceRight.ts | 1 - .../src/rendering-util/rendering-elements/shapes/curlyBraces.ts | 1 - .../rendering-util/rendering-elements/shapes/curvedTrapezoid.ts | 1 - .../src/rendering-util/rendering-elements/shapes/cylinder.ts | 1 - .../src/rendering-util/rendering-elements/shapes/dividedRect.ts | 1 - .../src/rendering-util/rendering-elements/shapes/document.ts | 1 - .../rendering-util/rendering-elements/shapes/doubleCircle.ts | 1 - .../rendering-util/rendering-elements/shapes/filledCircle.ts | 1 - .../rendering-util/rendering-elements/shapes/flippedTriangle.ts | 1 - .../rendering-elements/shapes/halfRoundedRectangle.ts | 1 - .../src/rendering-util/rendering-elements/shapes/hexagon.ts | 1 - .../src/rendering-util/rendering-elements/shapes/hourglass.ts | 1 - .../src/rendering-util/rendering-elements/shapes/icon.ts | 1 - .../src/rendering-util/rendering-elements/shapes/iconCircle.ts | 1 - .../src/rendering-util/rendering-elements/shapes/iconRounded.ts | 1 - .../src/rendering-util/rendering-elements/shapes/iconSquare.ts | 1 - .../src/rendering-util/rendering-elements/shapes/imageSquare.ts | 1 - .../rendering-elements/shapes/invertedTrapezoid.ts | 1 - .../src/rendering-util/rendering-elements/shapes/leanLeft.ts | 1 - .../src/rendering-util/rendering-elements/shapes/leanRight.ts | 1 - .../rendering-util/rendering-elements/shapes/lightningBolt.ts | 1 - .../rendering-util/rendering-elements/shapes/linedCylinder.ts | 1 - .../rendering-elements/shapes/linedWaveEdgedRect.ts | 1 - .../src/rendering-util/rendering-elements/shapes/multiRect.ts | 1 - .../rendering-elements/shapes/multiWaveEdgedRectangle.ts | 1 - .../src/rendering-util/rendering-elements/shapes/question.ts | 1 - .../rendering-elements/shapes/rectLeftInvArrow.ts | 1 - .../rendering-util/rendering-elements/shapes/shadedProcess.ts | 1 - .../src/rendering-util/rendering-elements/shapes/slopedRect.ts | 1 - .../src/rendering-util/rendering-elements/shapes/stadium.ts | 1 - .../src/rendering-util/rendering-elements/shapes/subroutine.ts | 1 - .../src/rendering-util/rendering-elements/shapes/taggedRect.ts | 1 - .../rendering-elements/shapes/taggedWaveEdgedRectangle.ts | 1 - .../rendering-util/rendering-elements/shapes/tiltedCylinder.ts | 1 - .../src/rendering-util/rendering-elements/shapes/trapezoid.ts | 1 - .../rendering-elements/shapes/trapezoidalPentagon.ts | 1 - .../src/rendering-util/rendering-elements/shapes/triangle.ts | 1 - .../rendering-elements/shapes/waveEdgedRectangle.ts | 1 - .../rendering-util/rendering-elements/shapes/waveRectangle.ts | 1 - .../src/rendering-util/rendering-elements/shapes/windowPane.ts | 1 - 46 files changed, 1 insertion(+), 46 deletions(-) diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts index bea32c975c..67ba644d37 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts @@ -23,7 +23,6 @@ export const anchor = (parent: SVGAElement, node: Node): Promise => const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, { fill: 'black', stroke: 'none', fillStyle: 'solid' }); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts index 3f2d7c4bb3..eb7b305eb0 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts @@ -91,7 +91,6 @@ export const bowTieRect = async (parent: SVGAElement, node: Node) => { ...generateArcPoints(w / 2, h / 2, w / 2, -h / 2, rx, ry, true), ]; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts index 80c17d30a9..683122ba68 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts @@ -38,7 +38,6 @@ export async function card(parent: SVGAElement, node: Node): Promise { const radius = Math.max(30, node?.width ?? 0); const { cssStyles } = node; - // @ts-ignore - rough is not typed + // @ts-expect-error shapeSvg d3 class is incorrect? const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts index 9b98c9aec4..da8285976a 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts @@ -66,7 +66,6 @@ export const curlyBraceLeft = async (parent: SVGAElement, node: Node) => { { x: w / 2, y: h / 2 + radius }, ]; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, { fill: 'none' }); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts index 9a051e273d..369b97bb8d 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts @@ -66,7 +66,6 @@ export const curlyBraceRight = async (parent: SVGAElement, node: Node) => { { x: -w / 2, y: h / 2 + radius }, ]; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, { fill: 'none' }); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts index 9512c96d29..5c2927b9f5 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts @@ -81,7 +81,6 @@ export const curlyBraces = async (parent: SVGAElement, node: Node) => { ...generateCirclePoints(-w / 2 + radius + radius / 2, h / 2, radius, 30, -180, -270), ]; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, { fill: 'none' }); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts index 758e020b88..cc51daf589 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts @@ -21,7 +21,6 @@ export const curvedTrapezoid = async (parent: SVGAElement, node: Node) => { const radius = h / 2; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts index 8562081efa..c8a69665a4 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts @@ -61,7 +61,6 @@ export const cylinder = async (parent: SVGAElement, node: Node) => { const { cssStyles } = node; if (node.look === 'handDrawn') { - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const outerPathData = createOuterCylinderPathD(0, 0, w, h, rx, ry); const innerPathData = createInnerCylinderPathD(0, ry, w, h, rx, ry); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts index 8083a6611e..7e00952fdc 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts @@ -17,7 +17,6 @@ export const dividedRectangle = async (parent: SVGAElement, node: Node) => { const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); if (node.look !== 'handDrawn') { diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts index 377e7cbe77..05b2cfc2dc 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts @@ -61,7 +61,6 @@ export const cylinder = async (parent: SVGAElement, node: Node) => { const { cssStyles } = node; if (node.look === 'handDrawn') { - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const outerPathData = createOuterCylinderPathD(0, 0, w, h, rx, ry); const innerPathData = createInnerCylinderPathD(0, ry, w, h, rx, ry); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts index 44e357b029..a97fdf743f 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts @@ -17,7 +17,6 @@ export const doublecircle = async (parent: SVGAElement, node: Node): Promise { const radius = h / 2; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/hexagon.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/hexagon.ts index faf6b4e170..d7898a2063 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/hexagon.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/hexagon.ts @@ -46,7 +46,6 @@ export const hexagon = async (parent: SVGAElement, node: Node): Promise { const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts index b11395522b..d87efaad10 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts @@ -33,7 +33,6 @@ export const icon = async ( const labelPadding = node.label ? 8 : 0; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, { stroke: 'none', fill: 'none' }); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts index 5a248b609e..1e18174dff 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts @@ -28,7 +28,6 @@ export const iconCircle = async ( const { nodeBorder, mainBkg } = themeVariables; const { stylesMap } = compileStyles(node); - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, { stroke: stylesMap.get('fill') || mainBkg }); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts index 12279afcc5..8ec7d6ee01 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts @@ -38,7 +38,6 @@ export const iconRounded = async ( const labelPadding = node.label ? 8 : 0; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, { stroke: stylesMap.get('fill') || mainBkg }); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts index c81f61f577..df9e790dfa 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts @@ -37,7 +37,6 @@ export const iconSquare = async ( const labelPadding = node.label ? 8 : 0; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, { stroke: stylesMap.get('fill') || mainBkg }); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts index 6ccf8fe3e6..7cb92da0bd 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts @@ -52,7 +52,6 @@ export const imageSquare = async ( const labelPadding = node.label ? 8 : 0; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts index 8e2c781d00..a542363700 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts @@ -39,7 +39,6 @@ export const inv_trapezoid = async (parent: SVGAElement, node: Node): Promise { { x: 2 * gap, y: height - gap / 2 }, ]; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts index 6327d80b2d..819d48faf6 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts @@ -68,7 +68,6 @@ export const linedCylinder = async (parent: SVGAElement, node: Node) => { const { cssStyles } = node; if (node.look === 'handDrawn') { - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const outerPathData = createOuterCylinderPathD(0, 0, w, h, rx, ry, outerOffset); const innerPathData = createInnerCylinderPathD(0, ry, w, h, rx, ry); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts index 6e4d485d3d..42597e5f62 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts @@ -19,7 +19,6 @@ export const linedWaveEdgedRect = async (parent: SVGAElement, node: Node) => { const finalH = h + waveAmplitude; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts index 465a811b9a..33a74b1a47 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts @@ -15,7 +15,6 @@ export const multiRect = async (parent: SVGAElement, node: Node) => { const y = -h / 2; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts index 7a9cc0ba13..4e7496c243 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts @@ -59,7 +59,6 @@ export const multiWaveEdgedRectangle = async (parent: SVGAElement, node: Node) = { x, y }, ]; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts index d571e49274..2a156fa65c 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts @@ -36,7 +36,6 @@ export const question = async (parent: SVGAElement, node: Node): Promise { const y = -bbox.height / 2 - halfPadding; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts index d8eb5db232..10c475b0a9 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts @@ -15,7 +15,6 @@ export const slopedRect = async (parent: SVGAElement, node: Node) => { const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/stadium.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/stadium.ts index 78904e84cf..9efb85e826 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/stadium.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/stadium.ts @@ -61,7 +61,6 @@ export const stadium = async (parent: SVGAElement, node: Node) => { let rect; const { cssStyles } = node; if (node.look === 'handDrawn') { - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/subroutine.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/subroutine.ts index 32a0634cf3..46e4bd3253 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/subroutine.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/subroutine.ts @@ -55,7 +55,6 @@ export const subroutine = async (parent: SVGAElement, node: Node) => { ]; if (node.look === 'handDrawn') { - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts index 476cb5cc98..fb894d55dd 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts @@ -16,7 +16,6 @@ export const taggedRect = async (parent: SVGAElement, node: Node) => { const tagHeight = 0.2 * h; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts index d2f82c4ff7..809e0babbf 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts @@ -22,7 +22,6 @@ export const taggedWaveEdgedRectangle = async (parent: SVGAElement, node: Node) const finalH = h + waveAmplitude; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts index b16ead2c33..8d737431ba 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts @@ -67,7 +67,6 @@ export const tiltedCylinder = async (parent: SVGAElement, node: Node) => { let cylinder: d3.Selection; if (node.look === 'handDrawn') { - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const outerPathData = createOuterCylinderPathD(0, 0, w, h, rx, ry); const innerPathData = createInnerCylinderPathD(0, 0, w, h, rx, ry); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoid.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoid.ts index 877761e288..85d4999674 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoid.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoid.ts @@ -38,7 +38,6 @@ export const trapezoid = async (parent: SVGAElement, node: Node): Promise { const h = Math.max(minHeight, bbox.height + (node.padding ?? 0) * 2, node?.height ?? 0); const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts index 2708671e6a..d93965664d 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts @@ -26,7 +26,6 @@ export const triangle = async (parent: SVGAElement, node: Node): Promise { const widthDif = minWidth - w; const extraW = widthDif > 0 ? widthDif / 2 : 0; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/waveRectangle.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/waveRectangle.ts index 8c29b027a8..981ef31d33 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/waveRectangle.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/waveRectangle.ts @@ -39,7 +39,6 @@ export const waveRectangle = async (parent: SVGAElement, node: Node) => { const finalH = h + waveAmplitude * 2; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {}); diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts index 59aa208ef3..20df8de4a2 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts @@ -15,7 +15,6 @@ export const windowPane = async (parent: SVGAElement, node: Node) => { const y = -h / 2; const { cssStyles } = node; - // @ts-ignore - rough is not typed const rc = rough.svg(shapeSvg); const options = userNodeOverrides(node, {});