Compare commits

...
+15
View File
@@ -114,6 +114,21 @@ for (const type of types) {
}));
return { size: [Math.round(node.size[0]), Math.round(node.size[1])], drawn: host ? box(host) : null, widgets: (node.widgets ?? []).length, panels };
})()`).catch((error) => ({ error: String(error.message ?? error).slice(0, 400) }));
if (!vue) {
const imgInfo = await evalJs(`(() => {
const node = window.app.graph._nodes.find((n) => n.type === ${JSON.stringify(type)});
if (!node) return null;
const img = Array.isArray(node.imgs) ? node.imgs[0] : null;
return {
imgs: Array.isArray(node.imgs) ? node.imgs.length : null,
src: img ? String(img.src || "").slice(0, 160) : null,
nat: img ? [img.naturalWidth, img.naturalHeight] : null,
previewWidget: Boolean(node.widgets?.find((w) => w.name === "$$canvas-image-preview")),
appPreviewKeys: Object.keys(window.app.nodePreviewImages ?? {}).slice(0, 10),
};
})()`).catch(() => null);
if (imgInfo && (imgInfo.imgs || imgInfo.previewWidget)) console.log("IMGS " + type + " " + JSON.stringify(imgInfo));
}
await sleep(150);
const problems = [];
if (seen.error) problems.push(seen.error);