Skip to content

editor / createPathElement

Function: createPathElement() ​

createPathElement(document, pathData): SVGPathElement

Defined in: render/create-path-element.ts:12

Creates a <path> element drawing the given path data.

Parameters ​

document ​

Document

document owning the element

pathData ​

string

value of the d attribute

Returns ​

SVGPathElement

the detached <path> element

Kind ​

procedure

See ​

REF-MDN-CREATEELEMENTNS