|
|
Donner
C++20 SVG rendering library
|
The root element of an SVG document.
The <svg> element is the root element of an SVG document. It can contain any number of child elements, such as Elements: Basic Shapes, Elements: Painting, and Elements: Structural.
| Attribute | Default | Description |
|---|---|---|
| x | 0 | Top-left X coordinate of the SVG viewport. |
| y | 0 | Top-left Y coordinate of the SVG viewport. |
| width | 0 | Width of the SVG viewport. |
| height | 0 | Height of the SVG viewport. |
| viewBox | (none) | Rectangle in userspace that the SVG viewport is mapped to. |
| preserveAspectRatio | xMidYMid meet | How to scale the SVG viewport to fit the SVG content. |
| transform | (none) | Transformation matrix to apply to SVG content. |