The SVGPreserveAspectRatio interface corresponds to the preserveAspectRatio attribute.

MDN Reference

Index

Properties

align: number

The align read-only property of the SVGPreserveAspectRatio interface reflects the type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.

MDN Reference

meetOrSlice: number

The meetOrSlice read-only property of the SVGPreserveAspectRatio interface reflects the type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface.

MDN Reference

SVG_MEETORSLICE_MEET: 1
SVG_MEETORSLICE_SLICE: 2
SVG_MEETORSLICE_UNKNOWN: 0
SVG_PRESERVEASPECTRATIO_NONE: 1
SVG_PRESERVEASPECTRATIO_UNKNOWN: 0
SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10
SVG_PRESERVEASPECTRATIO_XMAXYMID: 7
SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4
SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9
SVG_PRESERVEASPECTRATIO_XMIDYMID: 6
SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3
SVG_PRESERVEASPECTRATIO_XMINYMAX: 8
SVG_PRESERVEASPECTRATIO_XMINYMID: 5
SVG_PRESERVEASPECTRATIO_XMINYMIN: 2