animation在基于原点旋转之后,xy轴朝向发生了变化
发布于 6 年前 作者 naliang 8056 次浏览 来自 问答

   // 先旋转同时放大,然后平移

    this.animation.rotate(45).scale(2, 2).step()

    this.animation.translate(100, 100).step({ duration: 1000 })

    this.setData({

      animation: this.animation.export()

    })

对一个view旋转之后,xy轴的朝向发生了变化。

1 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部