A Snippet is a reusable bit of markup that draws graphic elements on patterns. Snippets are provided by plugins and are implemented as defs elements in the rendered SVG document.


To place a Snippet at a given point:

const snippet = new Snippet(String 'snippet name', Point anchor)

See the Snippet API for more information about how to use Snippets in code.

See Using Attributes for information about custom Attributes that can be used with Snippets.

List of snippets

Below are all the different snippets we maintain.