mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
chore: Add reason to tsignore
This commit is contained in:
parent
e41bccad64
commit
269ddf4a34
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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' });
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user