提交 075b3691 编写于 作者: D DCloud_LXH

chore: canvas

上级 8e9a5831
......@@ -55,6 +55,7 @@ export function initHidpi() {
translate: 'all',
createRadialGradient: 'all',
createLinearGradient: 'all',
transform: [4, 5],
setTransform: [4, 5],
}
......
......@@ -395,12 +395,7 @@ function useMethods(
break
}
} else {
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') {
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.
先完成此消息的编辑!
想要评论请 注册