pub struct Mask {
pub id: String,
pub units: Units,
pub content_units: Units,
pub rect: Rect,
pub mask: Option<Rc<Self>>,
pub root: Node,
}
Expand description
A mask element.
mask
element in SVG.
Fields§
§id: String
Element’s ID.
Taken from the SVG itself or generated by the parser.
Used only during SVG writing. resvg
doesn’t rely on this property.
units: Units
Coordinate system units.
maskUnits
in SVG.
content_units: Units
Content coordinate system units.
maskContentUnits
in SVG.
rect: Rect
Mask rectangle.
x
, y
, width
and height
in SVG.
mask: Option<Rc<Self>>
Additional mask.
mask
in SVG.
root: Node
Clip path children.
The root node is always Group
.