Dart API Referencedart:htmlSVGRect

SVGRect Interface

The SVGRect represents rectangular geometry. Rectangles are defined as consisting of a (x,y) coordinate pair identifying a minimum X value, a minimum Y value, and a width and height, which are usually constrained to be non-negative.

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

Fields

Code num height #

The height coordinate of the rectangle, in user units.
num height;

Code num width #

The width coordinate of the rectangle, in user units.
num width;

Code num x #

num x;

Code num y #

num y;

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.