SVGGraphicsElement

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.

Интерфейс 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

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

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
SVGGraphicsElement
getBBox
getCTM
getScreenCTM
requiredExtensions
systemLanguage
transform

Legend

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

Full support
Full support
Partial support
Partial support
See implementation notes.
Has more compatibility info.