interface VTTRegionProperties {
    id: string;
    lines: number;
    regionAnchorX: number;
    regionAnchorY: number;
    scroll: "" | "up";
    viewportAnchorX: number;
    viewportAnchorY: number;
    width: number;
}

Properties

id: string
lines: number
regionAnchorX: number

X coordinate within the region which is anchored to the video viewport. https://www.w3.org/TR/webvtt1/#webvtt-region-anchor

regionAnchorY: number

Y coordinate within the region which is anchored to the video viewport. https://www.w3.org/TR/webvtt1/#webvtt-region-anchor

scroll: "" | "up"
viewportAnchorX: number

X coordinate within the video viewport to which the region anchor point is anchored. https://www.w3.org/TR/webvtt1/#webvtt-region-viewport-anchor

viewportAnchorY: number

Y coordinate within the video viewport to which the region anchor point is anchored. https://www.w3.org/TR/webvtt1/#webvtt-region-viewport-anchor

width: number