Kinetic.angleDegflag. By default it is true. You can set it to false if you'd like to use radians.
layer.add(rect, circle, group)
moveToif node already has parent container
sizemethod is now overloaded. You can use it to get or set node sizes
Note: This release addresses all of the API changes that I've been wanting to make for awhile. Therefore, it's very likely that you'll need to make changes to your existing application when upgrading. Significant API changes have been made with Kinetic.Text attrs, shadow attrs, and fill attrs.
stage.get('.foo').apply('setX', 400);. The Collections class also has a handy
each()method for quickly iterating over an array of nodes. You can also use
stage.get('.foo').on('click', '...')(Thanks David Johansson for getting this going!)
dragBoundFuncproperty which enables you to define the drag and drop bounds function. In addition to constraining the drag and drop motion vertically and horizontally, you can also create custom functions that constrain the motion diagonally, radially, or whatever you can come up with. The
dragBoundFuncproperty has replaced the
dragConstraintproperties because they are no redundant. (Thanks David Johansson!)
remove()method now only requires the node that needs to be removed. i.e. to remove a node, you no longer use
node.getParent().remove(node). Now you just use