UNPKG

@bitblit/asyncglk

Version:
17 lines (16 loc) 633 B
import WebGlkOte from './web.js'; export default class Metrics { /** When we don't know how high the screen is, use a height we've saved before, or, at the very beginning, a rough estimate */ private height_with_keyboard; private loaded; private glkote; private metrics; private observer?; constructor(glkote: WebGlkOte); destroy(): void; measure(): Promise<void>; on_gameport_resize: import("lodash").DebouncedFunc<() => Promise<void>>; on_visualViewport_resize: () => void; /** Update the gameport height and then send new metrics */ set_gameport_height(height: number): void; }