Crates.io | usvg |
lib.rs | usvg |
version | 0.44.0 |
source | src |
created_at | 2018-04-24 11:10:37.839503 |
updated_at | 2024-09-28 06:35:29.406528 |
description | An SVG simplification library. |
homepage | |
repository | https://github.com/RazrFalcon/resvg |
max_upload_size | |
id | 62108 |
size | 639,347 |
usvg
(micro SVG) is an SVG parser that tries to solve most of SVG complexity.
SVG is notoriously hard to parse. usvg
presents a layer between an XML library and
a potential SVG rendering library. It will parse an input SVG into a strongly-typed tree structure
were all the elements, attributes, references and other SVG features are already resolved
and presented in the simplest way possible.
So a caller doesn't have to worry about most of the issues related to SVG parsing
and can focus just on the rendering part.
rect
and circle
) will be converted into pathsuse
will be resolved and replaced with the reference contentsvg
will be resolved#elem
and url(#elem)
) will be resolvedswitch
will be resolvedxml:space
),
text chunks and spans resolvingfilter="contrast(50%)"
objectBoundingBox
will be replaced with userSpaceOnUse
a
, view
, cursor
, script
, no events and no animationsusvg is licensed under the MPLv2.0.