codigo0/node_modules/happy-dom/lib/nodes/svg-animation-element/SVGAnimationElement.js
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  Ticket 1.1: Estructura Clean Architecture en backend
-  Ticket 1.2: Schemas Zod compartidos
-  Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares)
-  Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares)
-  Ticket 1.5: Eliminación de duplicidades (~50 líneas)

Cambios principales:
- Creada estructura Clean Architecture en backend/src/
- Schemas Zod compartidos en backend/src/shared/schemas/
- Refactorización modular de drugs y procedures
- Utilidades genéricas en src/utils/ (filter, validation)
- Eliminados scripts obsoletos y documentación antigua
- Corregidos errores: QueryClient, import test-error-handling
- Build verificado y funcionando correctamente
2026-01-25 21:09:47 +01:00

73 lines
2.6 KiB
JavaScript

import SVGElement from '../svg-element/SVGElement.js';
import SVGStringList from '../../svg/SVGStringList.js';
import * as PropertySymbol from '../../PropertySymbol.js';
import ElementEventAttributeUtility from '../element/ElementEventAttributeUtility.js';
/**
* SVG Animation Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement
*/
export default class SVGAnimationElement extends SVGElement {
// Internal properties
[PropertySymbol.requiredExtensions] = null;
[PropertySymbol.systemLanguage] = null;
// Events
/* eslint-disable jsdoc/require-jsdoc */
get onbegin() {
return ElementEventAttributeUtility.getEventListener(this, 'onbegin');
}
set onbegin(value) {
this[PropertySymbol.propertyEventListeners].set('onbegin', value);
}
get onend() {
return ElementEventAttributeUtility.getEventListener(this, 'onend');
}
set onend(value) {
this[PropertySymbol.propertyEventListeners].set('onend', value);
}
get onrepeat() {
return ElementEventAttributeUtility.getEventListener(this, 'onrepeat');
}
set onrepeat(value) {
this[PropertySymbol.propertyEventListeners].set('onrepeat', 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 target element.
*
* @returns Target element.
*/
get targetElement() {
// TODO: Implement targetElement
return null;
}
}
//# sourceMappingURL=SVGAnimationElement.js.map