SVGGraphicsElement
        
        
          
                Baseline
                
                  Widely available
                
                
              
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
SVGGraphicsElement 接口表示 SVG 元素,其主要目的是将图形直接渲染到组中。
备注:该接口是 SVG 2 中引入的,它取代了 SVG 1.1 中的SVGLocatable和SVGTransformable接口。
属性
此接口还从其父接口SVGElement继承属性
- SVGGraphicsElement.transform只读
- 
一个 SVGAnimatedTransformList反映给定元素的transform属性的计算值及其对应的transform属性。
方法
此接口还从其父方法SVGElement继承方法。
- SVGGraphicsElement.getBBox()
- 
返回一个 DOMRect,它表示当前元素的计算出的边界框。
- SVGGraphicsElement.getCTM()
- 
返回一个 DOMMatrix,代表将当前元素的坐标系转换为其 SVG 视口的坐标系的矩阵。
- SVGGraphicsElement.getScreenCTM()
- 
返回一个 DOMMatrix代表表示将当前元素的坐标系转换为 SVG 文档片段的 SVG 视口的坐标系的矩阵。
规范
| Specification | 
|---|
| Scalable Vector Graphics (SVG) 2> # InterfaceSVGGraphicsElement> | 
浏览器兼容性
Loading…