Class StencilShapeRegistry
Constructors
Properties
Static
stencils
stencils: Stencils = {}
Methods
Static
addStencil
- addStencil(name: string, stencil: StencilShape): void
Returns void
Static
getStencil
- getStencil(name?: null | string): undefined | StencilShape
Parameters
Optional
name: null | string
A singleton class that provides a registry for stencils and the methods for painting those stencils onto a canvas or into a DOM.
Code to add stencils: