我正在使用以下代码捕获画布的屏幕截图
var bodyContainerDiv = ReactDOM.findDOMNode(this.bodyContainer.current) as HTMLDivElement;
(html2canvas as any)(bodyContainerDiv, { width: bodyContainerDiv.scrollWidth, height: bodyContainerDiv.scrollHeight }).then((canvas) => {
var base64Image = canvas.toDataURL("image/png");
download(base64Image);
});