Skip to main content

Crate svgr

Crate svgr 

Source
Expand description

svgr is an SVG rendering library.

Re-exports§

pub use tiny_skia;
pub use usvgr;

Structs§

Context
General context for the rendering.
PixmapPool
This is a mutable pixmap pool which allocates queues of size classes (powers of 2) containing previously allocated and used pixmaps. They are given to the consumer as a virtual pixmap of the requested size but are always allocated as a closest power of 2 sized memory block.
StaticCacheConfig
Configuration options for the static cache
SvgrCache
Defines rendering cache with both LRU cache for dynamic elements and persistent cache for static elements.

Functions§

render
Renders a tree onto the pixmap.
render_node
Renders a node onto the pixmap.