dom 到 image 产生空白图像

作者: manishsatschel创建于 2023年5月11日更新于 2026年2月5日

const nodes = document.querySelectorAll(".pdf-signer-container__signing-node") ?? [];

if (nodes) { nodes.forEach((node) =>{ domToImage.toPng(node).then((resp: any) => { console.log("resp", resp); }) } ) }

expected result: - image of each node,

内容来源: tsayen/dom-to-image