SVGGraphicsElement

SVGGraphicsElement 接口表示 SVG 元素,其主要目的是将图形直接渲染到组中。

备注: 该接口是 SVG 2 中引入的,它取代了 SVG 1.1 中的SVGLocatableSVGTransformable接口。

属性

此接口还从其父接口SVGElement继承属性

SVGGraphicsElement.transform 只读

一个SVGAnimatedTransformList (en-US)反映给定元素的transform属性的计算值及其对应的transform属性。

方法

此接口还从其父方法SVGElement继承方法。

SVGGraphicsElement.getBBox()

返回一个DOMRect,它表示当前元素的计算出的边界框。

SVGGraphicsElement.getCTM()

返回一个DOMMatrix,代表将当前元素的坐标系转换为其 SVG 视口的坐标系的矩阵。

SVGGraphicsElement.getScreenCTM()

返回一个DOMMatrix代表表示将当前元素的坐标系转换为 SVG 文档片段的 SVG 视口的坐标系的矩阵。

规范

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGGraphicsElement

浏览器兼容性

BCD tables only load in the browser