Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

canvas-context

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-context - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

9

CHANGELOG.md

@@ -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 @@

3

index.js

@@ -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>&quot;2d&quot;</code> | <code>&quot;webgl&quot;</code> | <code>&quot;experimental-webgl&quot;</code> | <code>&quot;webgl2&quot;</code> | <code>&quot;webgl2-compute&quot;</code> | <code>&quot;bitmaprenderer&quot;</code> | <code>&quot;gpupresent&quot;</code></dt>
<dt><a href="#ContextType">ContextType</a> : <code>&quot;2d&quot;</code> | <code>&quot;webgl&quot;</code> | <code>&quot;experimental-webgl&quot;</code> | <code>&quot;webgl2&quot;</code> | <code>&quot;webgl2-compute&quot;</code> | <code>&quot;bitmaprenderer&quot;</code> | <code>&quot;gpupresent&quot;</code> | <code>&quot;webgpu&quot;</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>&quot;2d&quot;</code> \| <code>&quot;webgl&quot;</code> \| <code>&quot;experimental-webgl&quot;</code> \| <code>&quot;webgl2&quot;</code> \| <code>&quot;webgl2-compute&quot;</code> \| <code>&quot;bitmaprenderer&quot;</code> \| <code>&quot;gpupresent&quot;</code>
## ContextType : <code>&quot;2d&quot;</code> \| <code>&quot;webgl&quot;</code> \| <code>&quot;experimental-webgl&quot;</code> \| <code>&quot;webgl2&quot;</code> \| <code>&quot;webgl2-compute&quot;</code> \| <code>&quot;bitmaprenderer&quot;</code> \| <code>&quot;gpupresent&quot;</code> \| <code>&quot;webgpu&quot;</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;
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc