Open Dawied opened 11 years ago
Thanks for those first two bits. Upgrading to a new KineticJS version though is probably better done in a single rush by going through the changelog (in our case from 4.0.2 to 4.2.0, or rather 4.3.0) and adapting everything at once.
Yup, I agree. Let's do an upgrade to the latest version for the v1.0.0 milestone.
I think there's no remove(child) in Kinetic.Container anymore, instead one has to call the Node.remove() or Node.destroy()
In KineticGWT all Node
s are draggable by default. In the newest KineticJS (4.3.1) this leads to undesired behaviour: instead of moving the Container
(e.g. Group
), KineticJS moves the Node
inside the Group
. I suggest switching the default to false
as it is more in line with the KineticJS and it is easier to turn draggability "on" on the container than to turn it "off" on all the constituents of the container.
I started using kineticjs 4.2.0 with KineticGWT a while ago. Until now I had to change the following:
The parameters in createAnimation in Kinetic.java have changed in 4.2.0, it now uses 2 parameters instead of an object: