html2canvas 在Angular引入問題

之前使用html2canvas的版本是1.0.0-rc.1 並且安裝@type/html2canvas,引入方式是
import * as html2canvas from 'html2canvas';這裏引用的@type/html2canvas包下面的
升級html2canvs成1.0.0-rc.5 改成
import html2canvas from 'html2canvas';此時引用的是html2canvas包下的不過現在來看最新版本生成的圖片有點bug在尺寸上面。沒時間詳細研究。所以我暫且回退以前的版本(捂臉)。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章