SVGRect in SVG 1.1

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

Instance Properties

name type description
height Number
width Number
x Number
y 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
animVal SVGAnimatedRect (read only)
baseVal SVGAnimatedRect (read only)
viewport SVGSVGElement (read only)
zoomRectScreen SVGZoomEvent (read only)

Methods that return an SVGRect

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

Arguments that are an SVGRect

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