class js.html.svg.PreserveAspectRatio

Available on js

The SVGPreserveAspectRatio interface corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements.

An SVGPreserveAspectRatio object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.



Documentation for this class was provided by MDN.

Class Fields

static var SVG_MEETORSLICE_MEET:Int

Corresponds to value meet for attribute preserveAspectRatio.

static var SVG_MEETORSLICE_SLICE:Int

Corresponds to value slice for attribute preserveAspectRatio.

static var SVG_MEETORSLICE_UNKNOWN:Int

The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.

static var SVG_PRESERVEASPECTRATIO_NONE:Int

Corresponds to value none for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_UNKNOWN:Int

The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.

static var SVG_PRESERVEASPECTRATIO_XMAXYMAX:Int

Corresponds to value xMaxYMax for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_XMAXYMID:Int

Corresponds to value xMaxYMid for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_XMAXYMIN:Int

Corresponds to value xMaxYMin for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_XMIDYMAX:Int

Corresponds to value xMidYMax for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_XMIDYMID:Int

Corresponds to value xMidYMid for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_XMIDYMIN:Int

Corresponds to value xMidYMin for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_XMINYMAX:Int

Corresponds to value xMinYMax for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_XMINYMID:Int

Corresponds to value xMinYMid for attribute preserveAspectRatio.

static var SVG_PRESERVEASPECTRATIO_XMINYMIN:Int

Corresponds to value xMinYMin for attribute preserveAspectRatio.

Instance Fields

var align:Int

The type of the alignment value as specified by one of the SVGPRESERVEASPECTRATIO* constants defined on this interface. Setter throws DOMException.

var meetOrSlice:Int

The type of the meet-or-slice value as specified by one of the SVGMEETORSLICE* constants defined on this interface. Setter throws DOMException.