From 0e8ea99243eb415d03d8d356cb167dd17ba94274 Mon Sep 17 00:00:00 2001 From: Yuta Nakamura Date: Wed, 22 Nov 2023 22:40:05 +0900 Subject: [PATCH] wip: mermaid image size zero --- packages/mermaid/src/dagre-wrapper/shapes/util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/mermaid/src/dagre-wrapper/shapes/util.js b/packages/mermaid/src/dagre-wrapper/shapes/util.js index 079125e3a6..1ecb201814 100644 --- a/packages/mermaid/src/dagre-wrapper/shapes/util.js +++ b/packages/mermaid/src/dagre-wrapper/shapes/util.js @@ -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); if (images) { const noImgText = labelText.replace(/]*>/g, '').trim() === '';