Properties:
Name | Type | Description |
---|---|---|
createCanvas |
(width: number, height: number) => ICanvas |
Returns a canvas object that can be used to create a webgl context. |
fetch |
(url: RequestInfo, options: RequestInit) => Promise<Response> |
Returns a Response object that has been fetched from the given URL. |
getBaseUrl |
() => string |
Returns the current base URL For browser environments this is either the document.baseURI or window.location.href |
getCanvasRenderingContext2D |
() => { prototype : ICanvasRenderingContext2D } |
Returns a 2D rendering context. |
getFontFaceSet |
() => FontFaceSet | null |
Return the font face set if available |
getNavigator |
() => { userAgent : string, gpu : GPU | null } |
Returns a partial implementation of the browsers window.navigator |
getWebGLRenderingContext |
() => typeof WebGLRenderingContext |
Returns a WebGL rendering context. |
parseXML |
(xml: string) => Document |
Returns Document object that has been parsed from the given XML string. |
Members
Returns a canvas object that can be used to create a webgl context.
Returns a Response object that has been fetched from the given URL.
Returns the current base URL For browser environments this is either the document.baseURI or window.location.href
Returns a 2D rendering context.
Return the font face set if available
Returns a partial implementation of the browsers window.navigator
Returns a WebGL rendering context.
Returns Document object that has been parsed from the given XML string.