blob: 0dd889704e2d4e6647cf8b612126012b9443096c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
---
title: SVGCircleElement
slug: Web/API/SVGCircleElement
tags:
- API
- SVG
- SVG DOM
- WebAPI
- 参考
- 需要兼容性表
- 需要示例
translation_of: Web/API/SVGCircleElement
---
<div>{{APIRef("SVG")}}</div>
<h2 id="SVG_Circle_DOM_接口">SVG Circle DOM 接口</h2>
<p><code>SVGCircleElement</code> 接口提供了对{{ SVGElement("circle") }}元素的属性的访问,而且还提供了操作该元素的方法。</p>
<h3 id="接口概览">接口概览</h3>
<table class="standard-table">
<tbody>
<tr>
<th scope="row">又作用于</th>
<td>{{ domxref("SVGElement") }}、 {{ domxref("SVGTests") }}、 {{ domxref("SVGLangSpace") }}、{{ domxref("SVGExternalResourcesRequired") }}、{{ domxref("SVGStylable") }}、 {{ domxref("SVGTransformable") }}</td>
</tr>
<tr>
<th scope="row">方法</th>
<td><em>无</em></td>
</tr>
<tr>
<th scope="row">属性</th>
<td>
<ul>
<li>只读 {{ domxref("SVGAnimatedLength") }} <code>cx</code></li>
<li>只读 {{ domxref("SVGAnimatedLength") }} <code>cy</code></li>
<li>只读 {{ domxref("SVGAnimatedLength") }} <code>r</code></li>
</ul>
</td>
</tr>
<tr>
<th scope="row">规范文档</th>
<td><a class="external" href="http://www.w3.org/TR/SVG11/shapes.html#InterfaceSVGCircleElement">SVG 1.1 (2nd Edition)</a></td>
</tr>
</tbody>
</table>
<h2 id="属性">属性</h2>
<table class="standard-table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>cx</code></td>
<td>{{ domxref("SVGAnimatedLength") }}</td>
<td>对应于给定{{ SVGElement("circle") }}元素的{{ SVGAttr("cx") }}属性</td>
</tr>
<tr>
<td><code>cy</code></td>
<td>{{ domxref("SVGAnimatedLength") }}</td>
<td>对应于给定{{ SVGElement("circle") }}元素的{{ SVGAttr("cy") }}属性</td>
</tr>
<tr>
<td><code>r</code></td>
<td>{{ domxref("SVGAnimatedLength") }}</td>
<td>对应于给定{{ SVGElement("circle") }}元素的{{ SVGAttr("r") }}属性</td>
</tr>
</tbody>
</table>
<h2 id="方法">方法</h2>
<p><font face="Open Sans, Arial, sans-serif">该</font><code>SVGCircleElement</code>接口没有提供任何专有方法。</p>
<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2>
{{Compat("api.SVGCircleElement")}}
<h2 id="参见">参见</h2>
<ul>
<li>{{ SVGElement("circle") }} SVG Element</li>
</ul>
|