MapHostElement
The part of an HTML element the map adapters need. A structural subset of
HTMLElement, so this port names no DOM type.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { MapHostElement } from "@mapcairn/core";
interface MapHostElement
Methods
focus
focus(options?: {
preventScroll?: boolean;
}): void;
Moves keyboard focus to the element. preventScroll keeps the page from scrolling to it.
options?({ preventScroll?: boolean; })
getBoundingClientRect
getBoundingClientRect(): {
readonly width: number;
readonly height: number;
readonly left: number;
readonly top: number;
};
The element's size and position in CSS pixels, as the browser reports them.