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

VisualViewport

interface VisualViewport extends EventTarget {
readonly height: number;
readonly offsetLeft: number;
readonly offsetTop: number;
onresize: ((this: VisualViewport, ev: Event) => any) | null;
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
readonly pageLeft: number;
readonly pageTop: number;
readonly scale: number;
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(
type: K,
listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
removeEventListener<K extends keyof VisualViewportEventMap>(
type: K,
listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var VisualViewport: {
prototype: VisualViewport;
new (): VisualViewport;
}
;

§Extends

§Properties

§
readonly height: number
[src]
§
readonly offsetLeft: number
[src]
§
readonly offsetTop: number
[src]
§
onresize: ((this: VisualViewport, ev: Event) => any) | null
[src]
§
onscroll: ((this: VisualViewport, ev: Event) => any) | null
[src]
§
readonly pageLeft: number
[src]
§
readonly pageTop: number
[src]
§
readonly scale: number
[src]
§
readonly width: number
[src]

§Methods

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