SVG EllipseElement.ry Property
The SVG EllipseElement.ry property Returns an SVGAnimatedLength object corresponding to the attribute of the given ellipse element
Syntax:
EllipseElement.ry
Return value: This property returns SVGAnimatedLength object that can be used get the ry of the Ellipse element
Example 1:
<!DOCTYPE html>
< html >
< body >
< ellipse cx = "100" cy = "100" rx = "100" ry = "60" id = "ellipse"
onclick = "outputSize();" />
< script >
var g = document.getElementById("ellipse");
console.log(g.ry)
</ script >
</ svg >
</ body >
</ html >
|
Output:
Example 2:
<!DOCTYPE html>
< html >
< body >
< ellipse cx = "100" cy = "100" rx = "100" ry = "100" id = "ellipse"
onclick = "outputSize();" />
< script >
var g = document.getElementById("ellipse");
console.log(g.ry)
</ script >
</ svg >
</ body >
</ html >
|
Output:
Last Updated :
30 Mar, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...