Back to Content

SVGSVGElement: createSVGPoint() method

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

latest469 B
Original Source

{{APIRef("SVG")}}

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

Syntax

js-nolint
createSVGPoint()

Parameters

None.

Return value

A {{domxref("DOMPoint")}} object, initialized to the point (0,0) in the user coordinate system.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("DOMPoint")}}