added angleDeg flag that enables developers to choose radians if they like

This commit is contained in:
Eric Rowell
2014-03-21 20:44:25 -07:00
parent ddf34d0af9
commit e5562f5dbb
6 changed files with 25 additions and 5 deletions

View File

@@ -1154,7 +1154,7 @@
var m = new Kinetic.Transform(),
x = this.getX(),
y = this.getY(),
rotation = this.getRotation() * Math.PI / 180,
rotation = Kinetic.getAngle(this.getRotation()),
scaleX = this.getScaleX(),
scaleY = this.getScaleY(),
skewX = this.getSkewX(),