UNPKG

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.

54 lines 1.42 kB
import * as PropertySymbol from '../PropertySymbol.cjs'; import BrowserWindow from '../window/BrowserWindow.cjs'; /** * SVG point. * * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint */ export default class SVGPoint { [PropertySymbol.window]: BrowserWindow; [PropertySymbol.getAttribute]: (() => string | null) | null; [PropertySymbol.setAttribute]: ((value: string) => void) | null; [PropertySymbol.attributeValue]: string | null; [PropertySymbol.readOnly]: boolean; /** * Constructor. * * @param illegalConstructorSymbol Illegal constructor symbol. * @param window Window. * @param [options] Options. * @param [options.readOnly] Read only. * @param [options.getAttribute] Get attribute. * @param [options.setAttribute] Set attribute */ constructor(illegalConstructorSymbol: symbol, window: BrowserWindow, options?: { readOnly?: boolean; getAttribute?: () => string | null; setAttribute?: (value: string) => void; }); /** * Returns x. * * @returns X. */ get x(): number; /** * Sets x. * * @param value X. */ set x(value: number); /** * Returns y. * * @returns Y. */ get y(): number; /** * Sets y. * * @param value Y. */ set y(value: number); } //# sourceMappingURL=SVGPoint.d.ts.map