UNPKG

@quadible/web-sdk

Version:

The web sdk for Quadible's behavioral authentication service.

36 lines (35 loc) 1.26 kB
type WebGlBasicsPayload = { version: string; vendor: string; vendorUnmasked: string; renderer: string; rendererUnmasked: string; shadingLanguageVersion: string; }; type WebGlExtensionsPayload = { contextAttributes: string[]; parameters: string[]; shaderPrecisions: string[]; extensions: string[] | null; extensionParameters: string[]; unsupportedExtensions: string[]; }; type CanvasContext = WebGLRenderingContext & { readonly canvas: HTMLCanvasElement; }; type Options = { cache: { webgl?: { context: CanvasContext | undefined; }; }; }; export declare const STATUS_NO_GL_CONTEXT = -1; export declare const STATUS_GET_PARAMETER_NOT_A_FUNCTION = -2; export type SpecialStatus = typeof STATUS_NO_GL_CONTEXT | typeof STATUS_GET_PARAMETER_NOT_A_FUNCTION; export declare function getWebGlBasics({ cache }: Options): WebGlBasicsPayload | SpecialStatus; export declare function getWebGlExtensions({ cache }: Options): WebGlExtensionsPayload | SpecialStatus; export declare function getWebGLContext(cache: Options['cache']): CanvasContext; export declare function shouldAvoidDebugRendererInfo(): boolean; export declare function shouldAvoidPolygonModeExtensions(): boolean; export {};