SVGGraphicsElement
SVGGraphicsElement
接口表示SVG元素,其主要目的是将图形直接渲染到组中。
提示: 该接口是SVG 2中引入的,它取代了SVG 1.1中的SVGLocatable
和SVGTransformable
(en-US)接口。
属性
此接口还从其父接口SVGElement
继承属性
SVGGraphicsElement.transform
只读
一个SVGAnimatedTransformList
(en-US)反映给定元素的transform
属性的计算值及其对应的transform
}属性。
方法
此接口还从其父方法SVGElement
继承方法。
SVGGraphicsElement.getBBox()
- 返回一个
DOMRect
,它表示当前元素的计算出的边界框。 SVGGraphicsElement.getCTM()
- 返回一个
DOMMatrix
,代表将当前元素的坐标系转换为其SVG视口的坐标系的矩阵。 SVGGraphicsElement.getScreenCTM()
- 返回一个
DOMMatrix
代表表示将当前元素的坐标系转换为SVG文档片段的SVG视口的坐标系的矩阵。
规范
规范 | 状态 | 说明 |
---|---|---|
Scalable Vector Graphics (SVG) 2 SVGGraphicsElement |
Candidate Recommendation | Initial definition |
浏览器兼容性
BCD tables only load in the browser