提交 11735bae 编写于 作者: D DCloud_LXH

fix: canvas setTransform and transform pixelRatio question/144676

上级 7a0af5fd
......@@ -274,7 +274,11 @@ export default {
break
}
} else {
if (method === 'clip') {
if(method === 'setTransform' || method === 'transform'){
data[4] && (data[4] *= this.pixelRatio)
data[5] && (data[5] *= this.pixelRatio)
c2d[method].apply(c2d, data)
} else if (method === 'clip') {
data.forEach(function (data_) {
c2d[data_.method].apply(c2d, data_.data)
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册