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: StringElement’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: UnitsCoordinate system units.
maskUnits in SVG.
content_units: UnitsContent coordinate system units.
maskContentUnits in SVG.
rect: RectMask rectangle.
x, y, width and height in SVG.
mask: Option<Rc<Self>>Additional mask.
mask in SVG.
root: NodeClip path children.
The root node is always Group.