Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 81663 of SVGRectElement

  • Revision slug: DOM/SVGRectElement
  • Revision title: SVGRectElement
  • Revision id: 81663
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment page created, 201 words added

Revision Content

SVG Rect DOM interface

The SVGRectElement interface provides access to the properties of {{ SVGElement("rect") }} elements, as well as methods to manipulate them.

Interface overview

Also implement {{ domxref("SVGElement") }}, {{ domxref("SVGTests") }}, {{ domxref("SVGLangSpace") }}, {{ domxref("SVGExternalResourcesRequired") }}, {{ domxref("SVGStylable") }}, {{ domxref("SVGTransformable") }}
Methods None
Properties
  • readonly {{ domxref("SVGAnimatedLength") }} x
  • readonly {{ domxref("SVGAnimatedLength") }} y
  • readonly {{ domxref("SVGAnimatedLength") }} width
  • readonly {{ domxref("SVGAnimatedLength") }} height
  • readonly {{ domxref("SVGAnimatedLength") }} rx
  • readonly {{ domxref("SVGAnimatedLength") }} ry

Properties

Name Type Description
x {{ domxref("SVGAnimatedLength") }} Corresponds to attribute x on the given {{ SVGElement("rect") }} element.
y {{ domxref("SVGAnimatedLength") }} Corresponds to attribute y on the given {{ SVGElement("rect") }} element.
width {{ domxref("SVGAnimatedLength") }} Corresponds to attribute width on the given {{ SVGElement("rect") }} element.
height {{ domxref("SVGAnimatedLength") }} Corresponds to attribute height on the given {{ SVGElement("rect") }} element.
rx {{ domxref("SVGAnimatedLength") }} Corresponds to attribute rx on the given {{ SVGElement("rect") }} element.
ry {{ domxref("SVGAnimatedLength") }} Corresponds to attribute ry on the given {{ SVGElement("rect") }} element.

 

Methods

The SVGRectElement interface do not provide any specific method.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} 9.0 {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatNo() }} {{ CompatVersionUnknown() }} {{ CompatUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }}

See also

  • {{ SVGElement("rect") }} SVG Element

Revision Source

<h2>SVG Rect DOM interface</h2>
<p>The <code>SVGRectElement</code> interface provides access to the properties of {{ SVGElement("rect") }} elements, as well as methods to manipulate them.</p>
<h3>Interface overview</h3>
<table class="standard-table"> <tbody> <tr> <th scope="row">Also implement</th> <td>{{ domxref("SVGElement") }}, {{ domxref("SVGTests") }}, {{ domxref("SVGLangSpace") }}, {{ domxref("SVGExternalResourcesRequired") }}, {{ domxref("SVGStylable") }}, {{ domxref("SVGTransformable") }}</td> </tr> <tr> <th scope="row">Methods</th> <td><em>None</em></td> </tr> <tr> <th scope="row">Properties</th> <td> <ul> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>x</code></li> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>y</code></li> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>width</code></li> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>height</code></li> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>rx</code></li> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>ry</code></li> </ul> </td> </tr> </tbody>
</table>
<h2>Properties</h2>
<table class="standard-table"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>x</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute <code>x</code> on the given {{ SVGElement("rect") }} element.</td> </tr> <tr> <td><code>y</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute <code>y</code> on the given {{ SVGElement("rect") }} element.</td> </tr> <tr> <td><code>width</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute <code>width</code> on the given {{ SVGElement("rect") }} element.</td> </tr> <tr> <td><code>height</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute <code>height</code> on the given {{ SVGElement("rect") }} element.</td> </tr> <tr> <td><code>rx</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute <code>rx</code> on the given {{ SVGElement("rect") }} element.</td> </tr> <tr> <td><code>ry</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute <code>ry</code> on the given {{ SVGElement("rect") }} element.</td> </tr> </tbody>
</table>
<p> </p>
<h2>Methods</h2>
<p>The <code>SVGRectElement</code> interface do not provide any specific method.</p>
<h2 name="Browser_compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatVersionUnknown() }}</td> <td>{{ CompatVersionUnknown() }}</td> <td>9.0</td> <td>{{ CompatVersionUnknown() }}</td> <td>{{ CompatVersionUnknown() }}</td> </tr> </tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatNo() }}</td> <td>{{ CompatVersionUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatVersionUnknown() }}</td> <td>{{ CompatVersionUnknown() }}</td> </tr> </tbody>
</table>
</div>
<h2>See also</h2>
<ul> <li>{{ SVGElement("rect") }} SVG Element</li>
</ul>
Revert to this revision