function convertCanvasToImage() {
const image = renderer.plugins.extract.canvas(stage).toDataURL();
var link = document.createElement('a');
link.setAttribute('download', "四色分区图");
link.href = image;
link.click();
}
本文来自博客园,作者:雨到了这里缠成线,转载请注明原文链接:https://www.cnblogs.com/ZhaoMingYuan/p/16174450.html
浙公网安备 33010602011771号