PERGOLA JavaScript Library for SVG
The framework that swings SVG into action. Easy. Flexible. Innovative.
UI components Libraries Application examples

PATTERNS

Library.

Patterns are just defined, they are not appended to the defs at runtime. A pattern definition is a function. Variations are very easily obtained by passing values to override the deafault values of a pattern. The function returns the URL string.

MARKERS

Library.

Markers. A pattern definition is a function. The markers element is appended to the defs if it doesn't exist. The function returns the URL string.

SHAPES

Library.

Shapes can be referenced during instantiation of some classes by specifying the shape property, or you can use them directly with the pergola.use() utility function.