- ✅ 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
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import EventTarget from '../../event/EventTarget.js';
|
|
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
/**
|
|
* TextTrackCue.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue
|
|
*/
|
|
export default class TextTrackCue extends EventTarget {
|
|
// Public properties
|
|
id = '';
|
|
startTime = 0;
|
|
endTime = 0;
|
|
pauseOnExit = false;
|
|
// Internal properties
|
|
[PropertySymbol.track] = null;
|
|
// Events
|
|
onenter = null;
|
|
onexit = null;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param illegalConstructorSymbol Illegal constructor symbol.
|
|
*/
|
|
constructor(illegalConstructorSymbol) {
|
|
super();
|
|
if (illegalConstructorSymbol !== PropertySymbol.illegalConstructor) {
|
|
throw new TypeError('Illegal constructor');
|
|
}
|
|
if (!this[PropertySymbol.window]) {
|
|
throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);
|
|
}
|
|
}
|
|
/**
|
|
* Returns the owner track.
|
|
*
|
|
* @returns TextTrack.
|
|
*/
|
|
get track() {
|
|
return this[PropertySymbol.track];
|
|
}
|
|
}
|
|
//# sourceMappingURL=TextTrackCue.js.map
|