SVG
SVG Circle DOM 接口
SVGCircleElement 接口提供了对circle元素的属性的访问,而且还提供了操作该元素的方法。
接口概览
<table class="standard-table"> <tbody> <tr> <th scope="row">又作用于</th> <td> SVGElement、 SVGTests、 SVGLangSpace、SVGExternalResourcesRequired、SVGStylable、 SVGTransformable </td> </tr> <tr> <th scope="row">方法</th> <td><em>无</em></td> </tr> <tr> <th scope="row">属性</th> <td> <ul> <li> 只读 SVGAnimatedLength <code>cx</code> </li> <li> 只读 SVGAnimatedLength <code>cy</code> </li> <li> 只读 SVGAnimatedLength <code>r</code> </li> </ul> </td> </tr> <tr> <th scope="row">规范文档</th> <td> <a href="http://www.w3.org/TR/SVG11/shapes.html#InterfaceSVGCircleElement" >SVG 1.1 (2nd Edition)</a > </td> </tr> </tbody> </table>
属性
| 名称 | 类型 | 描述 |
|---|---|---|
cx |
SVGAnimatedLength | 对应于给定circle元素的cx属性 |
cy |
SVGAnimatedLength | 对应于给定circle元素的cy属性 |
r |
SVGAnimatedLength | 对应于给定circle元素的r属性 |
方法
该SVGCircleElement接口没有提供任何专有方法。
规范
浏览器兼容性
参见
- circle SVG Element
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
