AspectRatioAlign enumeration

AspectRatioAlign enumeration

Specifies alignment types for the ‘preserveAspectRatio’ attribute in SVG.

The AspectRatioAlign type exposes the following members:

Fields

FieldDescription
NONEIndicates that no uniform scaling is applied; the aspect ratio is not preserved.
X_MIN_Y_MINAligns the minimum X and minimum Y of the viewBox with the smallest X and Y values of the viewport.
X_MID_Y_MINAligns the midpoint X and minimum Y of the viewBox with the midpoint X and smallest Y value of the viewport.
X_MAX_Y_MINAligns the maximum X and minimum Y of the viewBox with the largest X and smallest Y value of the viewport.
X_MIN_Y_MIDAligns the minimum X and midpoint Y of the viewBox with the smallest X and midpoint Y value of the viewport.
X_MID_Y_MIDAligns the midpoint X and Y of the viewBox with the midpoint X and Y of the viewport.
X_MAX_Y_MIDAligns the maximum X and midpoint Y of the viewBox with the largest X and midpoint Y value of the viewport.
X_MIN_Y_MAXAligns the minimum X and maximum Y of the viewBox with the smallest X and largest Y value of the viewport.
X_MID_Y_MAXAligns the midpoint X and maximum Y of the viewBox with the midpoint X and largest Y value of the viewport.
X_MAX_Y_MAXAligns the maximum X and maximum Y of the viewBox with the largest X and Y values of the viewport.

See Also