+ 4

Confusion among "width", "height" and "r" attributes?

If I specify the value of "r" in "circle" tag, then what is "width" & "height" doing in "svg" tag?

21st May 2017, 10:05 AM
Akib Imtiaz
3 Respostas
+ 15
Width and Height are attributes of SVG element. They define the area in which to draw the circle shape.
21st May 2017, 5:31 PM
###
+ 3
You don't have width, height and r, but: cx, cy and r. Cx and cy define the coordinates of the circle and the r defines the radius
21st May 2017, 10:32 AM
Maart
Maart - avatar
+ 2
The "cx" and "cy" values refer to the given distance from the origin of the user coordinate system along the relevant axis. Additionally, "r" refers to the radius of the circle.
1st Jun 2017, 4:03 PM
Esteban Rodríguez
Esteban Rodríguez - avatar