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 1098459 of SVGPoint

  • Revision slug: Web/API/SVGPoint
  • Revision title: SVGPoint
  • Revision id: 1098459
  • Created:
  • Creator: Tonyshih
  • Is current revision? No
  • Comment
Tags: 

Revision Content

{{APIRef("SVG")}}

An SVGPoint represents a 2D or 3D point in the SVG coordinate system.

Syntax

retObject = SVGElement.createSVGPoint(x,y)

Value

The return value is a SVGPoint object.

Example

var s = document.getElementById("svg-element-id").createSVGPoint(300, 314)

 

 

Revision Source

<div>{{APIRef("SVG")}}</div>

<p>An <code>SVGPoint</code> represents a 2D or 3D point in the SVG coordinate system.</p>

<h2 id="Syntax">Syntax</h2>

<pre>
retObject = SVGElement.createSVGPoint(x,y)</pre>

<h3 id="Value">Value</h3>

<p>The return value is a SVGPoint object.</p>

<h2>Example</h2>

<pre class="brush: js">
var s = document.getElementById("svg-element-id").createSVGPoint(300, 314)
</pre>

<p>&nbsp;</p>

<p>&nbsp;</p>
Revert to this revision