I new to GoJs and in process of learning, I found GoJS is more similar to draw.io, but it misses the property of adding the diagram to palete, while it supports from palete to diagram.
ie., Moving the diagram from work area to toolbar , for reusing.
I new to GoJs and in process of learning, I found GoJS is more similar to draw.io, but it misses the property of adding the diagram to palete, while it supports from palete to diagram.
ie., Moving the diagram from work area to toolbar , for reusing.
You can absolutely do this, a
Paletteis just aDiagramwith a few properties pre-set for you. Specifically, it is aDiagramwith these properties set in the constructor:There is a sample of Two Diagrams with checkboxes for relevant properties.
The simplest way to get the behavior you want is to set
allowDragOuttotrueon both of your Diagrams.