I already have an image uploaded to dom, and I want it to be able to drag this image onto the canvas and drop it onto the canvas and create a kineticjs object from it.
I donβt know how to make the image draggable, and I donβt know how to make the canvas respond to drag and drop events that already exist in dom. Can someone show me how to do this?
Most tutorials show how to drag a canvas or file system from the inside; I'm looking for how to drag from a DOM to a canvas.
Background information: I want to have a menu system or a bunch of thumbnails that the user can drag into the canvas to expand the photo.
Thanks in advance!
source share