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

@types/offscreencanvas

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/offscreencanvas - npm Package Compare versions

Comparing version 2019.7.0 to 2019.7.3

24

offscreencanvas/index.d.ts

@@ -1,9 +0,1 @@

// Type definitions for non-npm package offscreencanvas-browser 2019.7
// Project: https://html.spec.whatwg.org/multipage/canvas.html#the-offscreencanvas-interface
// Definitions by: Klaus Reimer <https://github.com/kayahr>
// Oleg Varaksin <https://github.com/ova2>
// Sean T.McBeth <https://github.com/capnmidnight>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 4.3
// https://html.spec.whatwg.org/multipage/canvas.html#dom-canvas-transfercontroltooffscreen

@@ -16,3 +8,4 @@ interface HTMLCanvasElement {

interface OffscreenCanvasRenderingContext2D
extends CanvasState,
extends
CanvasState,
CanvasTransform,

@@ -31,3 +24,4 @@ CanvasCompositing,

CanvasTextDrawingStyles,
CanvasPath {
CanvasPath
{
readonly canvas: OffscreenCanvas;

@@ -49,3 +43,3 @@ }

getContext(
contextId: '2d',
contextId: "2d",
contextAttributes?: CanvasRenderingContext2DSettings,

@@ -55,9 +49,9 @@ ): OffscreenCanvasRenderingContext2D | null;

getContext(
contextId: 'bitmaprenderer',
contextId: "bitmaprenderer",
contextAttributes?: WebGLContextAttributes,
): ImageBitmapRenderingContext | null;
getContext(contextId: 'webgl', contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: 'webgl2', contextAttributes?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: "webgl2", contextAttributes?: WebGLContextAttributes): WebGL2RenderingContext | null;

@@ -127,3 +121,3 @@ convertToBlob(options?: { type?: string | undefined; quality?: number | undefined }): Promise<Blob>;

prototype: OffscreenCanvas;
new (width: number, height: number): OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};

@@ -130,0 +124,0 @@

{
"name": "@types/offscreencanvas",
"version": "2019.7.0",
"description": "TypeScript definitions for offscreencanvas-browser",
"version": "2019.7.3",
"description": "TypeScript definitions for offscreencanvas",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/offscreencanvas",

@@ -10,14 +10,14 @@ "license": "MIT",

"name": "Klaus Reimer",
"url": "https://github.com/kayahr",
"githubUsername": "kayahr"
"githubUsername": "kayahr",
"url": "https://github.com/kayahr"
},
{
"name": "Oleg Varaksin",
"url": "https://github.com/ova2",
"githubUsername": "ova2"
"githubUsername": "ova2",
"url": "https://github.com/ova2"
},
{
"name": "Sean T.McBeth",
"url": "https://github.com/capnmidnight",
"githubUsername": "capnmidnight"
"githubUsername": "capnmidnight",
"url": "https://github.com/capnmidnight"
}

@@ -34,4 +34,5 @@ ],

"dependencies": {},
"typesPublisherContentHash": "1fddc05632decfd1e70a56dcd29f80aebbf8190beb77e0fb11dab6b094370677",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "3bb9d8e21546b767b05750c5b57b2612423128a6c4619c93ff2e2cbe93279baf",
"typeScriptVersion": "4.5",
"nonNpm": true
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for offscreencanvas-browser (https://html.spec.whatwg.org/multipage/canvas.html#the-offscreencanvas-interface).
This package contains type definitions for offscreencanvas (https://html.spec.whatwg.org/multipage/canvas.html#the-offscreencanvas-interface).

@@ -12,7 +12,6 @@ # Details

### Additional Details
* Last updated: Thu, 26 May 2022 07:01:28 GMT
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: none
* Global values: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2D`, `createImageBitmap`, `postMessage`
# Credits
These definitions were written by [Klaus Reimer](https://github.com/kayahr), [Oleg Varaksin](https://github.com/ova2), and [Sean T.McBeth](https://github.com/capnmidnight).
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