Expand description
svgr is an SVG rendering library.
Re-exports§
Structs§
- Context
- General context for the rendering.
- Pixmap
Pool - This is a pixmap pool that preallocates pixmaps of various (power of 2s) sizes
and then reuses them without reallocating memory for all the requested pixel sizes
that are larger or equal to the
SIZE^2xSIZE^2
size - Svgr
Cache - Defines rendering LRU cache. Each individual node and group will be cached separately. Make sure that in most cases it will require saving of the whole canvas which may lead to significant memory usage. So it is recommended to set the cache size to a reasonable value.
Functions§
- render
- Renders a tree onto the pixmap.
- render_
node - Renders a node onto the pixmap.