Skip to content

Commit

Permalink
Fix for async handling flowchart-elk
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Apr 17, 2023
1 parent 01de155 commit 6ccdc2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cypress/platform/knsv2.html
Expand Up @@ -393,9 +393,9 @@

<script type="module">
// import mindmap from '../../packages/mermaid-mindmap/src/detector';
import example from '../../packages/mermaid-example-diagram/src/mermaid-example-diagram.core.mjs';
// import example from '../../packages/mermaid-example-diagram/src/mermaid-example-diagram.core.mjs';
import mermaid from './mermaid.esm.mjs';
await mermaid.registerExternalDiagrams([example]);
// await mermaid.registerExternalDiagrams([example]);
mermaid.parseError = function (err, hash) {
// console.error('Mermaid error: ', err);
};
Expand Down
Expand Up @@ -182,7 +182,7 @@ export const addVertices = async function (vert, svgId, root, doc, diagObj, pare

// Add the element to the DOM
if (node.type !== 'group') {
nodeEl = insertNode(nodes, node, vertex.dir);
nodeEl = await insertNode(nodes, node, vertex.dir);
boundingBox = nodeEl.node().getBBox();
} else {
const svgLabel = doc.createElementNS('http://www.w3.org/2000/svg', 'text');
Expand Down

0 comments on commit 6ccdc2b

Please sign in to comment.