Const
A registry that stores the StencilShapes and their configuration.
Here is an example showing how to add stencils:
const response = requestUtils.load('test/stencils.xml');const root = response.getDocumentElement(); // <shapes> nodelet shape = root.firstChild;while (shape) { if (shape.nodeType === constants.NODE_TYPE.ELEMENT) { StencilShapeRegistry.add(shape.getAttribute('name'), new StencilShape(shape)); } shape = shape.nextSibling;}The XSD for the stencil description is available in the `stencils.xsd` file. Copy
const response = requestUtils.load('test/stencils.xml');const root = response.getDocumentElement(); // <shapes> nodelet shape = root.firstChild;while (shape) { if (shape.nodeType === constants.NODE_TYPE.ELEMENT) { StencilShapeRegistry.add(shape.getAttribute('name'), new StencilShape(shape)); } shape = shape.nextSibling;}The XSD for the stencil description is available in the `stencils.xsd` file.
A registry that stores the StencilShapes and their configuration.
Here is an example showing how to add stencils: