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
Palette
is just aDiagram
with a few properties pre-set for you. Specifically, it is aDiagram
with 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
allowDragOut
totrue
on both of your Diagrams.