如何把 DOM 转化为图片
更多描述 可参考npm package
- html2canvas: Screenshots with JavaScript
- dom-to-image: Generates an image from a DOM node using HTML5 canvas
Issue 欢迎在 Gtihub Issue 中回答此问题: Issue 437
Author 回答者: markgong-gd
https://www.zhangxinxu.com/study/201708/svg-foreignobject-dom-to-image.html 看到这样一篇文章
Author 回答者: shfshanyue
DOM -> SVG -> Canvas -> JPEG/PNG
Author 回答者: Kiera569
核心 foreignObject