SVGRect in SVG 1.1

A simple object with four properties, used to represent a rectangle.

Instance Properties

name type description
x Number
y Number
width Number
height Number

Description

The SVGRect object is the return type for some methods, and the type of some properties and method arguments. If you want to create one yourself, use the createSVGRect() method of the SVGSVGElement. Warning: do not confuse this internal object type with the SVGRectElement object; the latter corresponds to a <rect ... /> element in SVG.

Properties that are an SVGRect

name object description
baseVal SVGAnimatedRect (read only)
animVal SVGAnimatedRect (read only)
viewport SVGSVGElement (read only)
zoomRectScreen SVGZoomEvent (read only)

Methods that return an SVGRect

name of object description
getExtentOfChar() SVGTextContentElement
createSVGRect() SVGSVGElement Creates and returns a new SVGRect element
getBBox() SVGLocatable Get the bounding box of the element.

Arguments that are an SVGRect

name in method of object description
rect getIntersectionList() SVGSVGElement The test rectangle. The values
rect getEnclosureList() SVGSVGElement The test rectangle. The values
rect checkIntersection() SVGSVGElement The test rectangle. The values
rect checkEnclosure() SVGSVGElement The test rectangle. The values