How would I create a Drag & Drop menu with Draw2D.js? I am making an application using React and can't find how to do it in the docs. There is something similar in this example, but I don't understand how to I would make my own.
In the example, the author uses methods that aren't in the docs.
And when I try to copy the code from that example, eslint says that it is wrong.


You can find the code of this example here:
shape db example
The idea is to add a ghost img to the dom following the mouse moove and to create your new element at the drop event.
The following extract of the code from this example do exactly what it is needed to perform the drag and drop: