canvas-context
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -5,2 +5,11 @@ # Changelog | ||
# [3.2.0](https://github.com/dmnsgn/canvas-context/compare/v3.1.0...v3.2.0) (2022-04-02) | ||
### Features | ||
* replace gpupresent with webgpu ([42a6dc7](https://github.com/dmnsgn/canvas-context/commit/42a6dc72a6e64801095eb92d846674aa29411e4e)) | ||
# [3.1.0](https://github.com/dmnsgn/canvas-context/compare/v3.0.2...v3.1.0) (2021-10-02) | ||
@@ -7,0 +16,0 @@ |
@@ -13,6 +13,7 @@ /** | ||
"gpupresent", | ||
"webgpu", | ||
]; | ||
/** | ||
* Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, gpupresent), optionally offscreen for possible use in a Worker. | ||
* Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, webgpu), optionally offscreen for possible use in a Worker. | ||
* | ||
@@ -19,0 +20,0 @@ * @alias module:createCanvasContext |
{ | ||
"name": "canvas-context", | ||
"version": "3.1.0", | ||
"description": "Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, gpupresent), optionally offscreen for possible use in a Worker.", | ||
"version": "3.2.0", | ||
"description": "Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, webgpu), optionally offscreen for possible use in a Worker.", | ||
"keywords": [ | ||
@@ -16,2 +16,3 @@ "canvas", | ||
"bitmaprenderer", | ||
"webgpu", | ||
"gpupresent" | ||
@@ -40,5 +41,5 @@ ], | ||
"engines": { | ||
"node": ">=15.0.0", | ||
"node": ">=16.0.0", | ||
"npm": ">=7.0.0" | ||
} | ||
} |
@@ -5,4 +5,4 @@ # canvas-context | ||
[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://www.npmjs.com/package/canvas-context) | ||
[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/canvas-context)](https://www.npmjs.com/package/canvas-context) | ||
[![dependencies](https://img.shields.io/david/dmnsgn/canvas-context)](https://github.com/dmnsgn/canvas-context/blob/master/package.json) | ||
[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/canvas-context)](https://bundlephobia.com/package/canvas-context) | ||
[![dependencies](https://img.shields.io/librariesio/release/npm/canvas-context)](https://github.com/dmnsgn/canvas-context/blob/master/package.json) | ||
[![types](https://img.shields.io/npm/types/canvas-context)](https://github.com/microsoft/TypeScript) | ||
@@ -14,3 +14,3 @@ [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-fa6673.svg)](https://conventionalcommits.org) | ||
Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, gpupresent), optionally offscreen for possible use in a Worker. | ||
Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, webgpu), optionally offscreen for possible use in a Worker. | ||
@@ -57,3 +57,3 @@ [![paypal](https://img.shields.io/badge/donate-paypal-informational?logo=paypal)](https://paypal.me/dmnsgn) | ||
<dl> | ||
<dt><a href="#ContextType">ContextType</a> : <code>"2d"</code> | <code>"webgl"</code> | <code>"experimental-webgl"</code> | <code>"webgl2"</code> | <code>"webgl2-compute"</code> | <code>"bitmaprenderer"</code> | <code>"gpupresent"</code></dt> | ||
<dt><a href="#ContextType">ContextType</a> : <code>"2d"</code> | <code>"webgl"</code> | <code>"experimental-webgl"</code> | <code>"webgl2"</code> | <code>"webgl2-compute"</code> | <code>"bitmaprenderer"</code> | <code>"gpupresent"</code> | <code>"webgpu"</code></dt> | ||
<dd><p>A DOMString containing the context identifier defining the drawing context associated to the canvas.</p> | ||
@@ -76,3 +76,3 @@ </dd> | ||
Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, gpupresent), optionally offscreen for possible use in a Worker. | ||
Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, webgpu), optionally offscreen for possible use in a Worker. | ||
@@ -88,7 +88,7 @@ **Kind**: Exported function | ||
## ContextType : <code>"2d"</code> \| <code>"webgl"</code> \| <code>"experimental-webgl"</code> \| <code>"webgl2"</code> \| <code>"webgl2-compute"</code> \| <code>"bitmaprenderer"</code> \| <code>"gpupresent"</code> | ||
## ContextType : <code>"2d"</code> \| <code>"webgl"</code> \| <code>"experimental-webgl"</code> \| <code>"webgl2"</code> \| <code>"webgl2-compute"</code> \| <code>"bitmaprenderer"</code> \| <code>"gpupresent"</code> \| <code>"webgpu"</code> | ||
A DOMString containing the context identifier defining the drawing context associated to the canvas. | ||
**Kind**: global typedef | ||
**Kind**: global typedef | ||
<a name="CanvasContextOptions"></a> | ||
@@ -100,3 +100,3 @@ | ||
**Kind**: global typedef | ||
**Kind**: global typedef | ||
**Properties** | ||
@@ -116,3 +116,3 @@ | ||
**Kind**: global typedef | ||
**Kind**: global typedef | ||
**Properties** | ||
@@ -119,0 +119,0 @@ |
/** | ||
* @typedef {"2d" | "webgl" | "experimental-webgl" | "webgl2" | "webgl2-compute" | "bitmaprenderer" | "gpupresent"} ContextType A DOMString containing the context identifier defining the drawing context associated to the canvas. | ||
* @typedef {"2d" | "webgl" | "experimental-webgl" | "webgl2" | "webgl2-compute" | "bitmaprenderer" | "gpupresent" | "webgpu"} ContextType A DOMString containing the context identifier defining the drawing context associated to the canvas. | ||
*/ | ||
@@ -4,0 +4,0 @@ |
export default createCanvasContext; | ||
/** | ||
* Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, gpupresent), optionally offscreen for possible use in a Worker. | ||
* Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, webgpu), optionally offscreen for possible use in a Worker. | ||
* | ||
@@ -5,0 +5,0 @@ * @alias module:createCanvasContext |
/** | ||
* A DOMString containing the context identifier defining the drawing context associated to the canvas. | ||
*/ | ||
export type ContextType = "2d" | "webgl" | "experimental-webgl" | "webgl2" | "webgl2-compute" | "bitmaprenderer" | "gpupresent"; | ||
export type ContextType = "2d" | "webgl" | "experimental-webgl" | "webgl2" | "webgl2-compute" | "bitmaprenderer" | "gpupresent" | "webgpu"; | ||
/** | ||
@@ -31,4 +31,4 @@ * Options for canvas creation. All optional. | ||
export type CanvasContextReturnValue = { | ||
canvas: HTMLCanvasElement | any; | ||
canvas: HTMLCanvasElement | OffscreenCanvas; | ||
context: RenderingContext; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14621
128