SVG image interface
The SVGImageElement
interface corresponds to the <image>
element.
Interface overview
Also implement | SVGElement , SVGURIReference , SVGTests , SVGLangSpace , SVGExternalResourcesRequired , SVGStylable , SVGTransformable |
---|---|
Methods | None |
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
x |
SVGAnimatedLength |
Corresponds to attribute x on the given <image> element. |
y |
SVGAnimatedLength |
Corresponds to attribute y on the given <image> element. |
width |
SVGAnimatedLength |
Corresponds to attribute width on the given <image> element. |
height |
SVGAnimatedLength |
Corresponds to attribute height on the given <image> element. |
preserveAspectRatio |
SVGAnimatedPreserveAspectRatio |
Corresponds to attribute preserveAspectRatio on the given <image> element. |
Methods
The SVGImageElement
interface do not provide any specific methods.
Browser compatibility