提交 8e9a5831 编写于 作者: D DCloud_LXH

fix: canvas setTransform and transform pixelRatio question/144676

上级 d01c0e3a
......@@ -395,7 +395,12 @@ function useMethods(
break
}
} else {
if (method === 'clip') {
if (method === 'setTransform' || method === 'transform') {
data[4] && ((data[4] as number) *= _pixelRatio.value)
data[5] && ((data[5] as number) *= _pixelRatio.value)
// @ts-ignore
c2d[method].apply(c2d, data)
} else if (method === 'clip') {
data.forEach(function (data_) {
// @ts-ignore
c2d[data_.method].apply(c2d, data_.data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册