mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 19:54:17 +01:00
chore: Add reason to tsignore
This commit is contained in:
@@ -23,7 +23,7 @@ export const choice = (parent: SVG, node: Node) => {
|
|||||||
|
|
||||||
let choice;
|
let choice;
|
||||||
if (node.useRough) {
|
if (node.useRough) {
|
||||||
// @ts-ignore
|
// @ts-ignore TODO: Fix rough typings
|
||||||
const rc = rough.svg(shapeSvg);
|
const rc = rough.svg(shapeSvg);
|
||||||
const pointArr = points.map(function (d) {
|
const pointArr = points.map(function (d) {
|
||||||
return [d.x, d.y];
|
return [d.x, d.y];
|
||||||
@@ -42,7 +42,7 @@ export const choice = (parent: SVG, node: Node) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// center the circle around its coordinate
|
// 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);
|
choice.attr('class', 'state-start').attr('r', 7).attr('width', 28).attr('height', 28);
|
||||||
node.width = 28;
|
node.width = 28;
|
||||||
node.height = 28;
|
node.height = 28;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const forkJoin = (parent: SVG, node: Node, dir: string) => {
|
|||||||
|
|
||||||
let shape;
|
let shape;
|
||||||
if (node.useRough) {
|
if (node.useRough) {
|
||||||
// @ts-ignore
|
// @ts-ignore TODO: Fix rough typings
|
||||||
const rc = rough.svg(shapeSvg);
|
const rc = rough.svg(shapeSvg);
|
||||||
const roughNode = rc.rectangle(x, y, width, height, solidStateFill(lineColor));
|
const roughNode = rc.rectangle(x, y, width, height, solidStateFill(lineColor));
|
||||||
shape = shapeSvg.insert(() => roughNode);
|
shape = shapeSvg.insert(() => roughNode);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export const note = async (parent: SVGAElement, node: Node) => {
|
|||||||
|
|
||||||
if (useRough) {
|
if (useRough) {
|
||||||
// add the rect
|
// add the rect
|
||||||
// @ts-ignore
|
// @ts-ignore TODO: Fix rough typings
|
||||||
const rc = rough.svg(shapeSvg);
|
const rc = rough.svg(shapeSvg);
|
||||||
const roughNode = rc.rectangle(x, y, totalWidth, totalHeight, {
|
const roughNode = rc.rectangle(x, y, totalWidth, totalHeight, {
|
||||||
roughness: 0.7,
|
roughness: 0.7,
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export const rect = async (parent: SVGAElement, node: Node) => {
|
|||||||
let rect;
|
let rect;
|
||||||
const { rx, ry, cssStyles, useRough } = node;
|
const { rx, ry, cssStyles, useRough } = node;
|
||||||
if (useRough) {
|
if (useRough) {
|
||||||
// @ts-ignore
|
// @ts-ignore TODO: Fix rough typings
|
||||||
const rc = rough.svg(shapeSvg);
|
const rc = rough.svg(shapeSvg);
|
||||||
const options = userNodeOverrides(node, {
|
const options = userNodeOverrides(node, {
|
||||||
roughness: 0.7,
|
roughness: 0.7,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export const stateEnd = (parent: SVG, node: Node) => {
|
|||||||
let circle;
|
let circle;
|
||||||
let innerCircle;
|
let innerCircle;
|
||||||
if (node.useRough) {
|
if (node.useRough) {
|
||||||
// @ts-ignore
|
// @ts-ignore TODO: Fix rough typings
|
||||||
const rc = rough.svg(shapeSvg);
|
const rc = rough.svg(shapeSvg);
|
||||||
const roughNode = rc.circle(0, 0, 14, { ...solidStateFill(lineColor), roughness: 0.5 });
|
const roughNode = rc.circle(0, 0, 14, { ...solidStateFill(lineColor), roughness: 0.5 });
|
||||||
const roughInnerNode = rc.circle(0, 0, 5, { ...solidStateFill(lineColor), fillStyle: 'solid' });
|
const roughInnerNode = rc.circle(0, 0, 5, { ...solidStateFill(lineColor), fillStyle: 'solid' });
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export const stateStart = (parent: SVG, node: Node) => {
|
|||||||
|
|
||||||
let circle;
|
let circle;
|
||||||
if (node.useRough) {
|
if (node.useRough) {
|
||||||
// @ts-ignore
|
// @ts-ignore TODO: Fix rough typings
|
||||||
const rc = rough.svg(shapeSvg);
|
const rc = rough.svg(shapeSvg);
|
||||||
const roughNode = rc.circle(0, 0, 14, solidStateFill(lineColor));
|
const roughNode = rc.circle(0, 0, 14, solidStateFill(lineColor));
|
||||||
circle = shapeSvg.insert(() => roughNode);
|
circle = shapeSvg.insert(() => roughNode);
|
||||||
@@ -27,7 +27,7 @@ export const stateStart = (parent: SVG, node: Node) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// center the circle around its coordinate
|
// 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);
|
circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);
|
||||||
|
|
||||||
updateNodeBounds(node, circle);
|
updateNodeBounds(node, circle);
|
||||||
|
|||||||
Reference in New Issue
Block a user