The Dynamic Stencil demo provides the user with a palette of JointJS elements which can be dragged onto the paper. The user is able to manipulate selections, and dynamically add the selections to the palette for future use.
Drag stencil elements to the paper. Make a selection with multiple elements by dragging the mouse over elements, and interact with the Selection tools. Add manipulated selections dynamically to the stencil using the custom Selection tool handle.
The source code of this demo is available as part of the JointJS+ commercial license. Don't have a license yet? Start a trial and use the source code of this and many other demos for free, with no obligations, for 30 days.