Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

VTTCue

interface VTTCue extends TextTrackCue {
align: AlignSetting;
lineAlign: LineAlignSetting;
positionAlign: PositionAlignSetting;
region: VTTRegion | null;
size: number;
snapToLines: boolean;
text: string;
vertical: DirectionSetting;
addEventListener<K extends keyof TextTrackCueEventMap>(
type: K,
listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
getCueAsHTML(): DocumentFragment;
removeEventListener<K extends keyof TextTrackCueEventMap>(
type: K,
listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var VTTCue: {
prototype: VTTCue;
new (
startTime: number,
endTime: number,
text: string,
): VTTCue;
}
;

§Extends

§Properties

§
region: VTTRegion | null
[src]
§
size: number
[src]
§
snapToLines: boolean
[src]
§
text: string
[src]

§Methods

§
addEventListener<K extends keyof TextTrackCueEventMap>(
type: K,
listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
getCueAsHTML(): DocumentFragment
[src]
§
removeEventListener<K extends keyof TextTrackCueEventMap>(
type: K,
listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]