Skip to main content
Module

x/evt/lib/types/lib.dom.ts>VTTCue

💧EventEmitter's typesafe replacement
Go to Latest
interface VTTCue
implements TextTrackCue
import { type VTTCue } from "https://deno.land/x/evt@v2.4.13/lib/types/lib.dom.ts";

Properties

align: AlignSetting
line: LineAndPositionSetting
lineAlign: LineAlignSetting
position: LineAndPositionSetting
positionAlign: PositionAlignSetting
region: VTTRegion | null
size: number
snapToLines: boolean
text: string
vertical: DirectionSetting

Methods

getCueAsHTML(): DocumentFragment
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
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