@pixi/canvas-extract
Advanced tools
Comparing version 6.3.2 to 6.4.0
/*! | ||
* @pixi/canvas-extract - v6.3.2 | ||
* Compiled Wed, 04 May 2022 17:49:13 UTC | ||
* @pixi/canvas-extract - v6.4.0 | ||
* Compiled Wed, 01 Jun 2022 21:14:23 UTC | ||
* | ||
@@ -17,3 +17,2 @@ * @pixi/canvas-extract is licensed under the MIT License. | ||
* An instance of this class is automatically created by default, and can be found at `renderer.plugins.extract` | ||
* | ||
* @class | ||
@@ -31,3 +30,2 @@ * @memberof PIXI | ||
* Will return a HTML Image of the target | ||
* | ||
* @param target - A displayObject or renderTexture | ||
@@ -37,3 +35,3 @@ * to convert. If left empty will use the main renderer | ||
* @param quality - JPEG or Webp compression from 0 to 1. Default is 0.92. | ||
* @return HTML Image of the target | ||
* @returns HTML Image of the target | ||
*/ | ||
@@ -48,3 +46,2 @@ CanvasExtract.prototype.image = function (target, format, quality) { | ||
* `CanvasExtract.getCanvas` and then running toDataURL on that. | ||
* | ||
* @param target - A displayObject or renderTexture | ||
@@ -54,3 +51,3 @@ * to convert. If left empty will use the main renderer | ||
* @param quality - JPEG or Webp compression from 0 to 1. Default is 0.92. | ||
* @return A base64 encoded string of the texture. | ||
* @returns A base64 encoded string of the texture. | ||
*/ | ||
@@ -62,6 +59,5 @@ CanvasExtract.prototype.base64 = function (target, format, quality) { | ||
* Creates a Canvas element, renders this target to it and then returns it. | ||
* | ||
* @param target - A displayObject or renderTexture | ||
* to convert. If left empty will use the main renderer | ||
* @return A Canvas element with the texture rendered on. | ||
* @returns A Canvas element with the texture rendered on. | ||
*/ | ||
@@ -105,6 +101,5 @@ CanvasExtract.prototype.canvas = function (target) { | ||
* order, with integer values between 0 and 255 (included). | ||
* | ||
* @param target - A displayObject or renderTexture | ||
* to convert. If left empty will use the main renderer | ||
* @return One-dimensional array containing the pixel data of the entire texture | ||
* @returns One-dimensional array containing the pixel data of the entire texture | ||
*/ | ||
@@ -111,0 +106,0 @@ CanvasExtract.prototype.pixels = function (target) { |
/*! | ||
* @pixi/canvas-extract - v6.3.2 | ||
* Compiled Wed, 04 May 2022 17:49:13 UTC | ||
* @pixi/canvas-extract - v6.4.0 | ||
* Compiled Wed, 01 Jun 2022 21:14:23 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/canvas-extract is licensed under the MIT License. |
/*! | ||
* @pixi/canvas-extract - v6.3.2 | ||
* Compiled Wed, 04 May 2022 17:49:13 UTC | ||
* @pixi/canvas-extract - v6.4.0 | ||
* Compiled Wed, 01 Jun 2022 21:14:23 UTC | ||
* | ||
@@ -21,3 +21,2 @@ * @pixi/canvas-extract is licensed under the MIT License. | ||
* An instance of this class is automatically created by default, and can be found at `renderer.plugins.extract` | ||
* | ||
* @class | ||
@@ -35,3 +34,2 @@ * @memberof PIXI | ||
* Will return a HTML Image of the target | ||
* | ||
* @param target - A displayObject or renderTexture | ||
@@ -41,3 +39,3 @@ * to convert. If left empty will use the main renderer | ||
* @param quality - JPEG or Webp compression from 0 to 1. Default is 0.92. | ||
* @return HTML Image of the target | ||
* @returns HTML Image of the target | ||
*/ | ||
@@ -52,3 +50,2 @@ CanvasExtract.prototype.image = function (target, format, quality) { | ||
* `CanvasExtract.getCanvas` and then running toDataURL on that. | ||
* | ||
* @param target - A displayObject or renderTexture | ||
@@ -58,3 +55,3 @@ * to convert. If left empty will use the main renderer | ||
* @param quality - JPEG or Webp compression from 0 to 1. Default is 0.92. | ||
* @return A base64 encoded string of the texture. | ||
* @returns A base64 encoded string of the texture. | ||
*/ | ||
@@ -66,6 +63,5 @@ CanvasExtract.prototype.base64 = function (target, format, quality) { | ||
* Creates a Canvas element, renders this target to it and then returns it. | ||
* | ||
* @param target - A displayObject or renderTexture | ||
* to convert. If left empty will use the main renderer | ||
* @return A Canvas element with the texture rendered on. | ||
* @returns A Canvas element with the texture rendered on. | ||
*/ | ||
@@ -109,6 +105,5 @@ CanvasExtract.prototype.canvas = function (target) { | ||
* order, with integer values between 0 and 255 (included). | ||
* | ||
* @param target - A displayObject or renderTexture | ||
* to convert. If left empty will use the main renderer | ||
* @return One-dimensional array containing the pixel data of the entire texture | ||
* @returns One-dimensional array containing the pixel data of the entire texture | ||
*/ | ||
@@ -115,0 +110,0 @@ CanvasExtract.prototype.pixels = function (target) { |
/*! | ||
* @pixi/canvas-extract - v6.3.2 | ||
* Compiled Wed, 04 May 2022 17:49:13 UTC | ||
* @pixi/canvas-extract - v6.4.0 | ||
* Compiled Wed, 01 Jun 2022 21:14:23 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/canvas-extract is licensed under the MIT License. |
/*! | ||
* @pixi/canvas-extract - v6.3.2 | ||
* Compiled Wed, 04 May 2022 17:49:13 UTC | ||
* @pixi/canvas-extract - v6.4.0 | ||
* Compiled Wed, 01 Jun 2022 21:14:23 UTC | ||
* | ||
@@ -17,3 +17,2 @@ * @pixi/canvas-extract is licensed under the MIT License. | ||
* An instance of this class is automatically created by default, and can be found at `renderer.plugins.extract` | ||
* | ||
* @class | ||
@@ -31,3 +30,2 @@ * @memberof PIXI | ||
* Will return a HTML Image of the target | ||
* | ||
* @param target - A displayObject or renderTexture | ||
@@ -37,3 +35,3 @@ * to convert. If left empty will use the main renderer | ||
* @param quality - JPEG or Webp compression from 0 to 1. Default is 0.92. | ||
* @return HTML Image of the target | ||
* @returns HTML Image of the target | ||
*/ | ||
@@ -48,3 +46,2 @@ CanvasExtract.prototype.image = function (target, format, quality) { | ||
* `CanvasExtract.getCanvas` and then running toDataURL on that. | ||
* | ||
* @param target - A displayObject or renderTexture | ||
@@ -54,3 +51,3 @@ * to convert. If left empty will use the main renderer | ||
* @param quality - JPEG or Webp compression from 0 to 1. Default is 0.92. | ||
* @return A base64 encoded string of the texture. | ||
* @returns A base64 encoded string of the texture. | ||
*/ | ||
@@ -62,6 +59,5 @@ CanvasExtract.prototype.base64 = function (target, format, quality) { | ||
* Creates a Canvas element, renders this target to it and then returns it. | ||
* | ||
* @param target - A displayObject or renderTexture | ||
* to convert. If left empty will use the main renderer | ||
* @return A Canvas element with the texture rendered on. | ||
* @returns A Canvas element with the texture rendered on. | ||
*/ | ||
@@ -105,6 +101,5 @@ CanvasExtract.prototype.canvas = function (target) { | ||
* order, with integer values between 0 and 255 (included). | ||
* | ||
* @param target - A displayObject or renderTexture | ||
* to convert. If left empty will use the main renderer | ||
* @return One-dimensional array containing the pixel data of the entire texture | ||
* @returns One-dimensional array containing the pixel data of the entire texture | ||
*/ | ||
@@ -111,0 +106,0 @@ CanvasExtract.prototype.pixels = function (target) { |
/*! | ||
* @pixi/canvas-extract - v6.3.2 | ||
* Compiled Wed, 04 May 2022 17:49:13 UTC | ||
* @pixi/canvas-extract - v6.4.0 | ||
* Compiled Wed, 01 Jun 2022 21:14:23 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/canvas-extract is licensed under the MIT License. |
@@ -9,3 +9,2 @@ import { CanvasRenderer } from '@pixi/canvas-renderer'; | ||
* An instance of this class is automatically created by default, and can be found at `renderer.plugins.extract` | ||
* | ||
* @class | ||
@@ -23,3 +22,2 @@ * @memberof PIXI | ||
* Will return a HTML Image of the target | ||
* | ||
* @param target - A displayObject or renderTexture | ||
@@ -29,3 +27,3 @@ * to convert. If left empty will use the main renderer | ||
* @param quality - JPEG or Webp compression from 0 to 1. Default is 0.92. | ||
* @return HTML Image of the target | ||
* @returns HTML Image of the target | ||
*/ | ||
@@ -36,3 +34,2 @@ image(target?: DisplayObject | RenderTexture, format?: string, quality?: number): HTMLImageElement; | ||
* `CanvasExtract.getCanvas` and then running toDataURL on that. | ||
* | ||
* @param target - A displayObject or renderTexture | ||
@@ -42,3 +39,3 @@ * to convert. If left empty will use the main renderer | ||
* @param quality - JPEG or Webp compression from 0 to 1. Default is 0.92. | ||
* @return A base64 encoded string of the texture. | ||
* @returns A base64 encoded string of the texture. | ||
*/ | ||
@@ -48,6 +45,5 @@ base64(target?: DisplayObject | RenderTexture, format?: string, quality?: number): string; | ||
* Creates a Canvas element, renders this target to it and then returns it. | ||
* | ||
* @param target - A displayObject or renderTexture | ||
* to convert. If left empty will use the main renderer | ||
* @return A Canvas element with the texture rendered on. | ||
* @returns A Canvas element with the texture rendered on. | ||
*/ | ||
@@ -58,6 +54,5 @@ canvas(target?: DisplayObject | RenderTexture): HTMLCanvasElement; | ||
* order, with integer values between 0 and 255 (included). | ||
* | ||
* @param target - A displayObject or renderTexture | ||
* to convert. If left empty will use the main renderer | ||
* @return One-dimensional array containing the pixel data of the entire texture | ||
* @returns One-dimensional array containing the pixel data of the entire texture | ||
*/ | ||
@@ -64,0 +59,0 @@ pixels(target?: DisplayObject | RenderTexture): Uint8ClampedArray; |
{ | ||
"name": "@pixi/canvas-extract", | ||
"version": "6.3.2", | ||
"version": "6.4.0", | ||
"main": "dist/cjs/canvas-extract.js", | ||
"module": "dist/esm/canvas-extract.js", | ||
"bundle": "dist/browser/canvas-extract.js", | ||
"types": "index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"default": "./dist/cjs/canvas-extract.js", | ||
"types": "./index.d.ts" | ||
}, | ||
"require": { | ||
"default": "./dist/esm/canvas-extract.js", | ||
"types": "./index.d.ts" | ||
} | ||
} | ||
}, | ||
"description": "Canvas mixin for the extract package", | ||
@@ -28,9 +41,9 @@ "author": "Mat Groves", | ||
"peerDependencies": { | ||
"@pixi/canvas-renderer": "6.3.2", | ||
"@pixi/core": "6.3.2", | ||
"@pixi/display": "6.3.2", | ||
"@pixi/math": "6.3.2", | ||
"@pixi/utils": "6.3.2" | ||
"@pixi/canvas-renderer": "6.4.0", | ||
"@pixi/core": "6.4.0", | ||
"@pixi/display": "6.4.0", | ||
"@pixi/math": "6.4.0", | ||
"@pixi/utils": "6.4.0" | ||
}, | ||
"gitHead": "87031295631dcd7db3e24b99ed7ceb2c4f963a40" | ||
"gitHead": "e7eaa713b6e0eeb335e90384aec778f5c99c60d5" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
77827
513