This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

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 г.⁩.

Интерфейс SVGGraphicsElement представляет элементы SVG, основной целью которых является прямое отображение графики в группу.

must be a string

Примечание: Этот интерфейс был введён в SVG 2 и заменяет интерфейсы SVGLocatable и SVGTransformable из SVG 1.1.

Свойства

Этот элемент наследует свойства от своего родителя, SVGElement.

SVGGraphicsElement.transform Только для чтения

An SVGAnimatedTransformList reflecting the computed value of the transform property and its corresponding transform attribute of the given element.

Методы

Этот элемент наследует методы своего родителя, SVGElement.

SVGGraphicsElement.getBBox()

Returns a DOMRect representing the computed bounding box of the current element.

SVGGraphicsElement.getCTM()

Returns a DOMMatrix representing the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.

SVGGraphicsElement.getScreenCTM()

Returns a DOMMatrix representing the matrix that transforms the current element's coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.

Спецификации

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGGraphicsElement

Совместимость с браузерами