Expand description
Svg item
Structsยง
- SvgItem
- An Svg Item.
Functionsยง
- build_
group_ ๐node - Build a group node from a
usvggroup and the absolute transform of its parent group. - build_
path_ ๐leaf - Build a leaf node from a
usvgpath and the absolute transform of its parent group. - parse_
paint ๐ - rel_
transform ๐ - The transform of a node relative to its parent:
parent_abs^-1 * abs. - usvg_
transform_ ๐to_ daffine2 - Convert a
usvg(tiny-skia) row-major transform into a [DAffine2]. - vitems_
from_ svg - The first leaf (depth-first) under the first node whose id matches.
Construct a
Vec<VItemfrom&strof a SVG - vitems_
from_ tree - Construct a
Vec<VItem>from&usvg::Tree - widen_
to_ ๐daffine3 - Widen a 2D affine into a 3D one, embedding the xy plane at z = 0.