RaphaelJS 平滑旋转对象,如 freeTransform
我需要像 Elbert F 的 freeTransform 一样平滑地旋转对象。
请任何人查看我的代码并帮助我解决这个问题。
我不需要任何其他代码或任何其他插件,但需要在我自己的代码中进行一些编辑
我认为一些代码move
函数中angle
的正确公式负责物体的平滑旋转。
提前致谢
I need to rotate objects in a smooth way like Elbert F's freeTransform does.
Please anyone review my code and help me to solve this problem.
I don't need any other code or any other plugin but some editing in my own code
I think some correct formula of angle
in move
function of code is responsible for smooth rotation of object.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经做到了这一点,它的数学公式有点棘手,这对我很有帮助。
这里是更新的代码
I have done this and its a bit tricky formula of Math which helped me.
Here is updated code