chore: Add reason to tsignore

This commit is contained in:
Sidharth Vinod 2024-05-24 10:09:16 +05:30
parent e41bccad64
commit 269ddf4a34
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
6 changed files with 8 additions and 8 deletions

View File

@ -23,7 +23,7 @@ export const choice = (parent: SVG, node: Node) => {
let choice;
if (node.useRough) {
// @ts-ignore
// @ts-ignore TODO: Fix rough typings
const rc = rough.svg(shapeSvg);
const pointArr = points.map(function (d) {
return [d.x, d.y];
@ -42,7 +42,7 @@ export const choice = (parent: SVG, node: Node) => {
}
// center the circle around its coordinate
// @ts-ignore
// @ts-ignore TODO: Fix rough typings
choice.attr('class', 'state-start').attr('r', 7).attr('width', 28).attr('height', 28);
node.width = 28;
node.height = 28;

View File

@ -26,7 +26,7 @@ export const forkJoin = (parent: SVG, node: Node, dir: string) => {
let shape;
if (node.useRough) {
// @ts-ignore
// @ts-ignore TODO: Fix rough typings
const rc = rough.svg(shapeSvg);
const roughNode = rc.rectangle(x, y, width, height, solidStateFill(lineColor));
shape = shapeSvg.insert(() => roughNode);

View File

@ -30,7 +30,7 @@ export const note = async (parent: SVGAElement, node: Node) => {
if (useRough) {
// add the rect
// @ts-ignore
// @ts-ignore TODO: Fix rough typings
const rc = rough.svg(shapeSvg);
const roughNode = rc.rectangle(x, y, totalWidth, totalHeight, {
roughness: 0.7,

View File

@ -77,7 +77,7 @@ export const rect = async (parent: SVGAElement, node: Node) => {
let rect;
const { rx, ry, cssStyles, useRough } = node;
if (useRough) {
// @ts-ignore
// @ts-ignore TODO: Fix rough typings
const rc = rough.svg(shapeSvg);
const options = userNodeOverrides(node, {
roughness: 0.7,

View File

@ -18,7 +18,7 @@ export const stateEnd = (parent: SVG, node: Node) => {
let circle;
let innerCircle;
if (node.useRough) {
// @ts-ignore
// @ts-ignore TODO: Fix rough typings
const rc = rough.svg(shapeSvg);
const roughNode = rc.circle(0, 0, 14, { ...solidStateFill(lineColor), roughness: 0.5 });
const roughInnerNode = rc.circle(0, 0, 5, { ...solidStateFill(lineColor), fillStyle: 'solid' });

View File

@ -18,7 +18,7 @@ export const stateStart = (parent: SVG, node: Node) => {
let circle;
if (node.useRough) {
// @ts-ignore
// @ts-ignore TODO: Fix rough typings
const rc = rough.svg(shapeSvg);
const roughNode = rc.circle(0, 0, 14, solidStateFill(lineColor));
circle = shapeSvg.insert(() => roughNode);
@ -27,7 +27,7 @@ export const stateStart = (parent: SVG, node: Node) => {
}
// center the circle around its coordinate
// @ts-ignore
// @ts-ignore TODO: Fix typings
circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);
updateNodeBounds(node, circle);