Files
headroom/frontend/node_modules/happy-dom/lib/nodes/svg-graphics-element/SVGGraphicsElement.js
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

106 lines
3.5 KiB
JavaScript

import SVGElement from '../svg-element/SVGElement.js';
import DOMRect from '../../dom/DOMRect.js';
import DOMMatrix from '../../dom/dom-matrix/DOMMatrix.js';
import SVGStringList from '../../svg/SVGStringList.js';
import * as PropertySymbol from '../../PropertySymbol.js';
import SVGAnimatedTransformList from '../../svg/SVGAnimatedTransformList.js';
import ElementEventAttributeUtility from '../element/ElementEventAttributeUtility.js';
/**
* SVG Graphics Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement
*/
export default class SVGGraphicsElement extends SVGElement {
// Internal properties
[PropertySymbol.requiredExtensions] = null;
[PropertySymbol.systemLanguage] = null;
[PropertySymbol.transform] = null;
// Events
/* eslint-disable jsdoc/require-jsdoc */
get oncopy() {
return ElementEventAttributeUtility.getEventListener(this, 'oncopy');
}
set oncopy(value) {
this[PropertySymbol.propertyEventListeners].set('oncopy', value);
}
get oncut() {
return ElementEventAttributeUtility.getEventListener(this, 'oncut');
}
set oncut(value) {
this[PropertySymbol.propertyEventListeners].set('oncut', value);
}
get onpaste() {
return ElementEventAttributeUtility.getEventListener(this, 'onpaste');
}
set onpaste(value) {
this[PropertySymbol.propertyEventListeners].set('onpaste', value);
}
/* eslint-enable jsdoc/require-jsdoc */
/**
* Returns required extensions.
*
* @returns Required extensions.
*/
get requiredExtensions() {
if (!this[PropertySymbol.requiredExtensions]) {
this[PropertySymbol.requiredExtensions] = new SVGStringList(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('requiredExtensions'),
setAttribute: (value) => this.setAttribute('requiredExtensions', value)
});
}
return this[PropertySymbol.requiredExtensions];
}
/**
* Returns system language.
*
* @returns System language.
*/
get systemLanguage() {
if (!this[PropertySymbol.systemLanguage]) {
this[PropertySymbol.systemLanguage] = new SVGStringList(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('systemLanguage'),
setAttribute: (value) => this.setAttribute('systemLanguage', value)
});
}
return this[PropertySymbol.systemLanguage];
}
/**
* Returns transform.
*
* @returns Transform.
*/
get transform() {
if (!this[PropertySymbol.transform]) {
this[PropertySymbol.transform] = new SVGAnimatedTransformList(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('transform'),
setAttribute: (value) => this.setAttribute('transform', value)
});
}
return this[PropertySymbol.transform];
}
/**
* Returns DOM rect.
*
* @returns DOM rect.
*/
getBBox() {
return new DOMRect();
}
/**
* Returns CTM.
*
* @returns CTM.
*/
getCTM() {
return new DOMMatrix();
}
/**
* Returns screen CTM.
*
* @returns Screen CTM.
*/
getScreenCTM() {
return new DOMMatrix();
}
}
//# sourceMappingURL=SVGGraphicsElement.js.map