@pixi/settings
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -11,2 +11,3 @@ import type { ICanvasRenderingContext2D } from './ICanvasRenderingContext2D'; | ||
} | ||
export declare type ContextSettings = ICanvasRenderingContext2DSettings | ImageBitmapRenderingContextSettings | WebGLContextAttributes; | ||
export interface ICanvasParentNode { | ||
@@ -51,3 +52,3 @@ /** Adds a node to the end of the list of children of the parent node. */ | ||
* @param {ContextIds} contextId - The identifier of the type of context to create. | ||
* @param {any} options - The options for creating context. | ||
* @param {ContextSettings} options - The options for creating context. | ||
* @returns {RenderingContext | null} The created context, or null if contextId is not supported. | ||
@@ -59,3 +60,3 @@ */ | ||
getContext(contextId: 'webgl2' | 'experimental-webgl2', options?: WebGLContextAttributes): WebGL2RenderingContext | null; | ||
getContext(contextId: ContextIds, options?: any): RenderingContext | null; | ||
getContext(contextId: ContextIds, options?: ContextSettings): RenderingContext | null; | ||
/** | ||
@@ -62,0 +63,0 @@ * Get the content of the canvas as data URL. |
{ | ||
"name": "@pixi/settings", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"main": "lib/index.js", | ||
@@ -39,3 +39,3 @@ "module": "lib/index.mjs", | ||
"dependencies": { | ||
"@pixi/constants": "7.0.2", | ||
"@pixi/constants": "7.0.3", | ||
"@types/css-font-loading-module": "^0.0.7" | ||
@@ -46,3 +46,3 @@ }, | ||
}, | ||
"gitHead": "55e5e0da83f7771eb2a85033fb03898319a2c346" | ||
"gitHead": "1a8c89762cc348a7cb7c5f97b0cf97b2695c38b9" | ||
} |
83847
760
+ Added@pixi/constants@7.0.3(transitive)
- Removed@pixi/constants@7.0.2(transitive)
Updated@pixi/constants@7.0.3