pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
19 lines (18 loc) • 1.1 kB
TypeScript
import { type Adapter } from '../environment/adapter';
/**
* This is an implementation of the {@link Adapter} interface.
* It can be used to make Pixi work in the browser.
* @category environment
* @property {Function} createCanvas - Creates a canvas element of the given size.
* This canvas is created using the browser's native canvas element.
* @property {Function} getCanvasRenderingContext2D - Returns a 2D rendering context.
* @property {Function} getWebGLRenderingContext - Returns a WebGL rendering context.
* @property {Function} getNavigator - Returns browsers window.navigator
* @property {Function} getBaseUrl - Returns the current base URL for browser environments this is either
* the document.baseURI or window.location.href
* @property {Function} getFontFaceSet - Return the font face set if available
* @property {Function} fetch - Returns a Response object that has been fetched from the given URL.
* @property {Function} parseXML - Returns Document object that has been parsed from the given XML string.
* @advanced
*/
export declare const BrowserAdapter: Adapter;