module:SvgElement(x, y, w, h, tagName)

represents visible element in SVG that has position and dimensions (for example rectangle is a SvgElement, but pattern is not, even though both are tags)

new module:SvgElement(x, y, w, h, tagName)

Parameters:
Name Type Description
x number

horizontal position in SVG pixels

y number

vertical position in SVG pixels

w number

width in SVG pixels

h number

height in SVG pixels

tagName string

tag name of the element

Extends

  • Tag