Skip to content

Documentation / @ripl/svg / SVGImage

Class: SVGImage

Defined in: svg/src/index.ts:459

SVG-specific image element wrapping a CanvasImageSource as an SVG <image> tag.

Implements

Constructors

Constructor

new SVGImage(id, href, x, y, width, height): SVGImage

Defined in: svg/src/index.ts:466

Parameters

ParameterType
idstring
hrefstring
xnumber
ynumber
widthnumber
heightnumber

Returns

SVGImage

Properties

PropertyModifierTypeDescriptionDefined in
definitionpublicSVGContextElementDefinitionThe rendering definition describing this image's SVG <image> node.svg/src/index.ts:464
idreadonlystringUnique identifier for this element.svg/src/index.ts:462