UNPKG

graphdb-workbench

Version:
24 lines (23 loc) 1.02 kB
import { Service } from '../../providers/service/service'; import { PluginRegistry } from '../../models/plugins'; /** * Service that provides access to browser window-related functionality. */ export declare class WindowService implements Service { /** * Returns the current browser window object. The purpose of this encapsulation is to allow for * better testability and easier mocking of the window object in unit tests. */ static getWindow(): Window; static getPluginRegistry(): PluginRegistry; static getCrypto(): Crypto; static setLocationHref(href: string): void; static getLocationQueryParams(): string; static getLocationHash(): string; /** * Evaluates a media query and returns a MediaQueryList object representing the results of the query. * @param query The media query string to evaluate. * @returns A MediaQueryList object that can be used to check the results of the media query. */ static matchMedia(query: string): MediaQueryList; }