codigo0/node_modules/happy-dom/lib/nodes/svg-fe-distant-light-element/SVGFEDistantLightElement.js

42 lines
1.5 KiB
JavaScript
Raw Normal View History

import SVGElement from '../svg-element/SVGElement.js';
import * as PropertySymbol from '../../PropertySymbol.js';
import SVGAnimatedNumber from '../../svg/SVGAnimatedNumber.js';
/**
* SVGFEDistantLightElement.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement
*/
export default class SVGFEDistantLightElement extends SVGElement {
// Internal properties
[PropertySymbol.azimuth] = null;
[PropertySymbol.elevation] = null;
/**
* Returns azimuth.
*
* @returns Azimuth.
*/
get azimuth() {
if (!this[PropertySymbol.azimuth]) {
this[PropertySymbol.azimuth] = new SVGAnimatedNumber(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('azimuth'),
setAttribute: (value) => this.setAttribute('azimuth', value)
});
}
return this[PropertySymbol.azimuth];
}
/**
* Returns elevation.
*
* @returns Elevation.
*/
get elevation() {
if (!this[PropertySymbol.elevation]) {
this[PropertySymbol.elevation] = new SVGAnimatedNumber(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('elevation'),
setAttribute: (value) => this.setAttribute('elevation', value)
});
}
return this[PropertySymbol.elevation];
}
}
//# sourceMappingURL=SVGFEDistantLightElement.js.map