Dart API Referencedart:htmlSVGPreserveAspectRatio

SVGPreserveAspectRatio Interface

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.

Static Fields

Code final int SVG_MEETORSLICE_MEET #

static final int SVG_MEETORSLICE_MEET = 1;

Code final int SVG_MEETORSLICE_SLICE #

static final int SVG_MEETORSLICE_SLICE = 2;

Code final int SVG_MEETORSLICE_UNKNOWN #

static final int SVG_MEETORSLICE_UNKNOWN = 0;

Code final int SVG_PRESERVEASPECTRATIO_NONE #

static final int SVG_PRESERVEASPECTRATIO_NONE = 1;

Code final int SVG_PRESERVEASPECTRATIO_UNKNOWN #

static final int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;

Code final int SVG_PRESERVEASPECTRATIO_XMAXYMAX #

static final int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;

Code final int SVG_PRESERVEASPECTRATIO_XMAXYMID #

static final int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;

Code final int SVG_PRESERVEASPECTRATIO_XMAXYMIN #

static final int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;

Code final int SVG_PRESERVEASPECTRATIO_XMIDYMAX #

static final int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;

Code final int SVG_PRESERVEASPECTRATIO_XMIDYMID #

static final int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;

Code final int SVG_PRESERVEASPECTRATIO_XMIDYMIN #

static final int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;

Code final int SVG_PRESERVEASPECTRATIO_XMINYMAX #

static final int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;

Code final int SVG_PRESERVEASPECTRATIO_XMINYMID #

static final int SVG_PRESERVEASPECTRATIO_XMINYMID = 5;

Code final int SVG_PRESERVEASPECTRATIO_XMINYMIN #

static final int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;

Fields

Code int align #

The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.
int align;

Code int meetOrSlice #

The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface.
int meetOrSlice;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.