SVGPoint

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

Syntax

JavaScript
retObject = SVGElement.createSVGPoint()

Value

The returned value is a SVGPoint object.

Example

JavaScript
//create the SVGPoint in the user coordinate system 
var s = document.getElementById("SVG-ElementID").createSVGPoint();

//then set the x and y values of the returned SVGPoint object which is s
s.y = 10, s.x = 10;

 

 

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/svgpoint

API NeedsContent