Skip to content

Commit

Permalink
chore: ts-ignore errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Aug 21, 2024
1 parent c1cd39b commit 01b5935
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/mermaid-layout-elk/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const addVertex = async (nodeEl: any, graph: { children: any[] }, nodeArr: any,
await addVertices(nodeEl, nodeArr, child, node.id);

if (node.label) {
// @ts-ignore TODO: fix this
const { shapeSvg, bbox } = await labelHelper(nodeEl, node, undefined, true);
labelData.width = bbox.width;
labelData.wrappingWidth = getConfig().flowchart!.wrappingWidth;
Expand Down Expand Up @@ -230,12 +231,14 @@ const getNextPort = (node: string | number, edgeDirection: string, graphDirectio
const result = edgeDirection === 'in' ? portPos[node].inPosition : portPos[node].outPosition;

if (edgeDirection === 'in') {
// @ts-ignore TODO: fix this
portPos[node].inPosition = getNextPosition(
portPos[node].inPosition,
edgeDirection,
graphDirection
);
} else {
// @ts-ignore TODO: fix this
portPos[node].outPosition = getNextPosition(
portPos[node].outPosition,
edgeDirection,
Expand Down Expand Up @@ -439,6 +442,7 @@ const addEdges = async function (
} else if (edges.defaultInterpolate !== undefined) {
edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);
} else {
// @ts-ignore TODO: fix this
edgeData.curve = interpolateToCurve(conf.curve, curveLinear);
}

Expand Down Expand Up @@ -471,6 +475,7 @@ const addEdges = async function (
log.debug('abc78 source and target', source, target);
// Add the edge to the graph
graph.edges.push({
// @ts-ignore TODO: fix this
id: 'e' + edge.start + edge.end,
...edge,
sources: [source],
Expand Down

0 comments on commit 01b5935

Please sign in to comment.