Layout.isOngoing is what you want to set to false.
I just tried it, by making a copy of the Flowgrammer sample, setting isOngoing: false on the LayeredDigraphLayout that the Diagram uses, and commenting out the “ExternalObjectsDropped” DiagramEvent listener that deletes nodes dropped in the background of the diagram. It worked just as I believe you would expect.
Sorry, but I could not tell that you were dragging from a jsTree rather than from a GoJS Diagram. So you are correct – there are no built-in events in the GoJS API for jQuery drag-and-drop events. You will need to implement that functionality yourself. See for example HTML Drag and Drop
As you can see we have achieved that thing.I used mouseEnter event in which i hold the link information into local variable and empty that variable on mouseLeave.
Hence after adding that node on canvas i explicitly called mousedrop event by passing local variable information.
Now i want is there any way to highlight the link until any node is drag over it.
In your over event you’ll need to call Diagram.findPartAt after converting the mouse point to document coordinates. If you find a Node or a Link, you might want to highlight it: GoJS Highlighting -- Northwoods Software
You need to convert the point into document coordinates, just as the jQueryDragDrop sample does.
Convert the point into the HTMLDivElement’s local coordinate system (i.e. in the viewport) and then call Diagram | GoJS API.
So the problem is ,To fire mouse enter event on any link, i have to drop my mouse cursor on that link. Now what i want my mouse enter event get fire even if i take my mouse cursor outer html ie. rectangular box (node) you can see in above image over the link.
I don’t understand what the problem is. If you can get the mouse point in the diagram’s DIV cooordinates, you can convert it into document coordinates by calling transformViewToDoc and then call Diagram.findPartAt. If you find a Link (or a Node?) you can do whatever you want.