提交 b429096b 编写于 作者: D DCloud_LXH

chore: canvas

上级 11735bae
......@@ -39,6 +39,7 @@ const ratioArgs = {
translate: 'all',
createRadialGradient: 'all',
createLinearGradient: 'all',
transform: [4, 5],
setTransform: [4, 5]
}
......
......@@ -274,11 +274,7 @@ export default {
break
}
} else {
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') {
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.
先完成此消息的编辑!
想要评论请 注册