class js.html.svg.Rect

Available on js

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.



Documentation for this class was provided by MDN.

Instance Fields

var height:Float

The height coordinate of the rectangle, in user units.

var width:Float

The width coordinate of the rectangle, in user units.

var x:Float

var y:Float