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.
40 lines (35 loc) • 690 B
text/typescript
import SVGElement from './SVGElement.js';
import DOMRect from '../element/DOMRect.js';
import DOMMatrix from './DOMMatrix.js';
/**
* SVG Graphics Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement
*/
export default class SVGGraphicsElement extends SVGElement {
public readonly transform = {};
/**
* Returns DOM rect.
*
* @returns DOM rect.
*/
public getBBox(): DOMRect {
return new DOMRect();
}
/**
* Returns CTM.
*
* @returns CTM.
*/
public getCTM(): DOMMatrix {
return new DOMMatrix();
}
/**
* Returns screen CTM.
*
* @returns Screen CTM.
*/
public getScreenCTM(): DOMMatrix {
return new DOMMatrix();
}
}