我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
An SVGPoint
represents a 2D or 3D point in the SVG coordinate system.
Syntax
retObject = SVGElement.createSVGPoint()
Value
The returned value is a SVGPoint object.
Example
//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;