Skip to content

Commit

Permalink
wip: mermaid image size zero
Browse files Browse the repository at this point in the history
  • Loading branch information
bonyuta0204 committed Nov 22, 2023
1 parent 4a4e614 commit 0e8ea99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mermaid/src/dagre-wrapper/shapes/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const labelHelper = async (parent, node, _classes, isNode) => {

// if there are images, need to wait for them to load before getting the bounding box
const images = div.getElementsByTagName('img');
console.log('images', images);

Check failure on line 63 in packages/mermaid/src/dagre-wrapper/shapes/util.js

View workflow job for this annotation

GitHub Actions / lint (18.x)

Unexpected console statement
if (images) {
const noImgText = labelText.replace(/<img[^>]*>/g, '').trim() === '';

Expand Down

0 comments on commit 0e8ea99

Please sign in to comment.