canvas-context
Advanced tools
Comparing version 3.2.0 to 3.3.0
# Changelog | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. | ||
# [3.3.0](https://github.com/dmnsgn/canvas-context/compare/v3.2.0...v3.3.0) (2024-07-06) | ||
### Features | ||
* log error on getContext failure ([66ee6e1](https://github.com/dmnsgn/canvas-context/commit/66ee6e163cd637463d9e98109a12e93523dec170)) | ||
# [3.2.0](https://github.com/dmnsgn/canvas-context/compare/v3.1.0...v3.2.0) (2022-04-02) | ||
@@ -6,0 +15,0 @@ |
@@ -1,4 +0,2 @@ | ||
/** | ||
* @module createCanvasContext | ||
*/ | ||
/** @module createCanvasContext */ | ||
@@ -69,2 +67,3 @@ const contextTypeList = [ | ||
} catch (error) { | ||
console.error(error); | ||
context = null; | ||
@@ -80,1 +79,3 @@ } | ||
export default createCanvasContext; | ||
export * from "./types.js"; |
{ | ||
"name": "canvas-context", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, webgpu), optionally offscreen for possible use in a Worker.", | ||
@@ -21,3 +21,6 @@ "keywords": [ | ||
"bugs": "https://github.com/dmnsgn/canvas-context/issues", | ||
"repository": "dmnsgn/canvas-context", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dmnsgn/canvas-context.git" | ||
}, | ||
"funding": [ | ||
@@ -37,9 +40,15 @@ { | ||
"type": "module", | ||
"exports": "./index.js", | ||
"exports": { | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"default": "./index.js" | ||
} | ||
}, | ||
"main": "index.js", | ||
"types": "types/index.d.ts", | ||
"engines": { | ||
"node": ">=16.0.0", | ||
"npm": ">=7.0.0" | ||
"node": ">=22.0.0", | ||
"npm": ">=10.5.1", | ||
"snowdev": ">=2.2.x" | ||
} | ||
} |
@@ -58,6 +58,6 @@ # canvas-context | ||
</dd> | ||
<dt><a href="#CanvasContextOptions">CanvasContextOptions</a> : <code>Object</code></dt> | ||
<dt><a href="#CanvasContextOptions">CanvasContextOptions</a> : <code>object</code></dt> | ||
<dd><p>Options for canvas creation. All optional.</p> | ||
</dd> | ||
<dt><a href="#CanvasContextReturnValue">CanvasContextReturnValue</a> : <code>Object</code></dt> | ||
<dt><a href="#CanvasContextReturnValue">CanvasContextReturnValue</a> : <code>object</code></dt> | ||
<dd></dd> | ||
@@ -92,3 +92,3 @@ </dl> | ||
## CanvasContextOptions : <code>Object</code> | ||
## CanvasContextOptions : <code>object</code> | ||
@@ -110,3 +110,3 @@ Options for canvas creation. All optional. | ||
## CanvasContextReturnValue : <code>Object</code> | ||
## CanvasContextReturnValue : <code>object</code> | ||
@@ -113,0 +113,0 @@ **Kind**: global typedef |
@@ -6,3 +6,3 @@ /** | ||
/** | ||
* @typedef {Object} CanvasContextOptions Options for canvas creation. All optional. | ||
* @typedef {object} CanvasContextOptions Options for canvas creation. All optional. | ||
* @property {number} [width=300] Request an initial canvas width. | ||
@@ -16,3 +16,3 @@ * @property {number} [height=150] Request an initial canvas height. | ||
/** | ||
* @typedef {Object} CanvasContextReturnValue | ||
* @typedef {object} CanvasContextReturnValue | ||
* @property {HTMLCanvasElement | OffscreenCanvas} canvas | ||
@@ -19,0 +19,0 @@ * @property {RenderingContext} context |
export default createCanvasContext; | ||
export * from "./types.js"; | ||
/** | ||
@@ -3,0 +4,0 @@ * Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, webgpu), optionally offscreen for possible use in a Worker. |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
14970
129
0
8