W3cubDocs

/Haxe JavaScript

Rect

package js.html.svg

Available on js

The SVGRect represents a rectangle. Rectangles consist of an x and y coordinate pair identifying a minimum x value, a minimum y value, and a width and height, which are constrained to be non-negative.

Documentation SVGRect by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

height:Float

width:Float

This represents the width of the rectangle.A value that is negative results to an error. A value of zero disables rendering of the element

x:Float

The exact effect of this coordinate depends on each element. If the attribute is not specified, the effect is as if a value of 0 were specified.

y:Float

The exact effect of this coordinate depends on each element.If the attribute is not specified, the effect is as if a value of 0 were specified.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/svg/Rect.html