mirror of
https://github.com/zoriya/libpgs-js.git
synced 2026-08-27 00:00:51 +00:00
Not for upstream: this branch only exists so a consumer can depend on the fork straight from git while the `ready` promise waits on a release.
16 lines
546 B
TypeScript
16 lines
546 B
TypeScript
import { PgsRendererMode } from "./pgsRendererMode";
|
|
export declare class BrowserSupport {
|
|
/**
|
|
* Checks if the web worker is supported in the current environment.
|
|
*/
|
|
static isWorkerSupported(): boolean;
|
|
/**
|
|
* Checks if the offscreen-canvas and `transferControlToOffscreen` are supported in the current environment.
|
|
*/
|
|
static isOffscreenCanvasSupported(): boolean;
|
|
/**
|
|
* Returns the optimal PGS renderer mode for the current platform.
|
|
*/
|
|
static getRendererModeByPlatform(): PgsRendererMode;
|
|
}
|