kineticjs - Drag and drop from kinetic.stage to another -


Is it possible to drag and drop from step 1 to step 2? In Figure 1, dragable shapes will be included, and phase 2 will be the goal.

Yes, you can do something like this:

  image. On ('dragmove', function () (if !! (Stage.getPointerPosition ()) & image.getParent ()! == layer2) {Image.stopDrag (); image.moveTo (layer2); image Position (stage2.getPointerPosition ()); image.startDrag (); layer.draw (); layer2.draw ();}})   

< / Html>

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -