happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
85 lines • 2.19 kB
TypeScript
import * as PropertySymbol from '../../PropertySymbol.cjs';
import SVGAnimatedLength from '../../svg/SVGAnimatedLength.cjs';
import SVGAnimatedPreserveAspectRatio from '../../svg/SVGAnimatedPreserveAspectRatio.cjs';
import SVGAnimatedString from '../../svg/SVGAnimatedString.cjs';
import SVGGraphicsElement from '../svg-graphics-element/SVGGraphicsElement.cjs';
/**
* SVG Image Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement
*/
export default class SVGImageElement extends SVGGraphicsElement {
[ ]: SVGAnimatedString | null;
[ ]: SVGAnimatedPreserveAspectRatio | null;
[ ]: SVGAnimatedLength | null;
[ ]: SVGAnimatedLength | null;
[ ]: SVGAnimatedLength | null;
[ ]: SVGAnimatedLength | null;
/**
* Returns "crossorigin" attribute.
*
* @returns Cross origin.
*/
get crossOrigin(): string;
/**
* Sets "crossorigin" attribute.
*
* @param value Cross origin.
*/
set crossOrigin(value: string);
/**
* Returns href.
*
* @returns Href.
*/
get href(): SVGAnimatedString;
/**
* Returns decoding.
*
* @returns Decoding.
*/
get decoding(): string;
/**
* Sets decoding.
*
* @param value Decoding.
*/
set decoding(value: string);
/**
* Returns preserve aspect ratio.
*
* @returns Preserve aspect ratio.
*/
get preserveAspectRatio(): SVGAnimatedPreserveAspectRatio;
/**
* Returns height.
*
* @returns Height.
*/
get height(): SVGAnimatedLength;
/**
* Returns width.
*
* @returns Width.
*/
get width(): SVGAnimatedLength;
/**
* Returns x position.
*
* @returns X position.
*/
get x(): SVGAnimatedLength;
/**
* Returns y position.
*
* @returns Y position.
*/
get y(): SVGAnimatedLength;
/**
* Decodes the image.
*
* @returns Promise.
*/
decode(): Promise<void>;
}
//# sourceMappingURL=SVGImageElement.d.ts.map