Back to Content

SVGSVGElement: createSVGMatrix() method

files/en-us/web/api/svgsvgelement/createsvgmatrix/index.md

latest459 B
Original Source

{{APIRef("SVG")}}

The createSVGMatrix() method of the {{domxref("SVGSVGElement")}} interface creates a {{domxref("DOMMatrix")}} object outside of any document trees.

Syntax

js-nolint
createSVGMatrix()

Parameters

None.

Return value

A {{domxref("DOMMatrix")}} object, initialized to the identity matrix.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("DOMMatrix", "SVGMatrix")}}