3 ms·
The only purpose of the viewBox attribute is to define a rectangular area in the abstract coordinate system. How that area will be fit into the viewport is det
by jarek-foksa 11y ago
The only purpose of the viewBox attribute is to define a rectangular area in the abstract coordinate system.
How that area will be fit into the viewport is determined by the "preserveAspectRatio" attribute.
If you don't define any viewBox then there will be no scaling - 1px in the viewport coordinate system will be mapped to 1 user unit in the abstract initial user coordinate system.