- ✅ 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
88 lines
2.3 KiB
TypeScript
88 lines
2.3 KiB
TypeScript
import EventTarget from '../../event/EventTarget.js';
|
|
import Event from '../../event/Event.js';
|
|
import TextTrackCue from './TextTrackCue.js';
|
|
import TextTrackCueList from './TextTrackCueList.js';
|
|
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
import TextTrackKindEnum from './TextTrackKindEnum.js';
|
|
/**
|
|
* TextTrack.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/TextTrack
|
|
*/
|
|
export default class TextTrack extends EventTarget {
|
|
[PropertySymbol.kind]: TextTrackKindEnum;
|
|
[PropertySymbol.label]: string;
|
|
[PropertySymbol.language]: string;
|
|
[PropertySymbol.id]: string;
|
|
[PropertySymbol.mode]: 'disabled' | 'showing';
|
|
[PropertySymbol.cues]: TextTrackCueList;
|
|
[PropertySymbol.activeCues]: TextTrackCueList;
|
|
oncuechange: ((event: Event) => void) | null;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param illegalConstructorSymbol Illegal constructor symbol.
|
|
*/
|
|
constructor(illegalConstructorSymbol: symbol);
|
|
/**
|
|
* Returns the kind of the text track.
|
|
*
|
|
* @returns Kind.
|
|
*/
|
|
get kind(): TextTrackKindEnum;
|
|
/**
|
|
* Returns the label of the text track.
|
|
*
|
|
* @returns Label.
|
|
*/
|
|
get label(): string;
|
|
/**
|
|
* Returns the language of the text track.
|
|
*
|
|
* @returns Language.
|
|
*/
|
|
get language(): string;
|
|
/**
|
|
* Returns the id of the text track.
|
|
*
|
|
* @returns Id.
|
|
*/
|
|
get id(): string;
|
|
/**
|
|
* Returns the mode of the text track.
|
|
*
|
|
* @returns Mode.
|
|
*/
|
|
get mode(): 'disabled' | 'showing';
|
|
/**
|
|
* Sets the mode of the text track.
|
|
*
|
|
* @param mode Mode.
|
|
*/
|
|
set mode(mode: 'disabled' | 'showing');
|
|
/**
|
|
* Returns the list of cues in the track list.
|
|
*
|
|
* @returns List of cues.
|
|
*/
|
|
get cues(): TextTrackCueList | null;
|
|
/**
|
|
* Returns the list of active cues in the track list.
|
|
*
|
|
* @returns List of active cues.
|
|
*/
|
|
get activeCues(): TextTrackCueList | null;
|
|
/**
|
|
* Adds a cue to the track list.
|
|
*
|
|
* @param cue Text track cue.
|
|
*/
|
|
addCue(cue: TextTrackCue): void;
|
|
/**
|
|
* Removes a cue from the track list.
|
|
*
|
|
* @param cue Text track cue.
|
|
*/
|
|
removeCue(cue: TextTrackCue): void;
|
|
}
|
|
//# sourceMappingURL=TextTrack.d.ts.map
|