Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果在画布上添加了一个Object并向右或向左旋转。如何知道Fabric.js对象的旋转度数?
object.getAngle()将返回角度,object.setAngle()并将设置角度。
object.getAngle()
object.setAngle()
负值表示逆时针,正值表示顺时针。