SVGCircleElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

SVG Circle DOM 接口

SVGCircleElement 接口提供了对<circle>元素的属性的访问,而且还提供了操作该元素的方法。

接口概览

属性

名称 类型 描述
cx SVGAnimatedLength 对应于给定<circle>元素的cx属性
cy SVGAnimatedLength 对应于给定<circle>元素的cy属性
r SVGAnimatedLength 对应于给定<circle>元素的r属性

方法

SVGCircleElement接口没有提供任何专有方法。

规范

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGCircleElement

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
SVGCircleElement
cx
cy
r

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

参见