@pixi/canvas-extract
Advanced tools
Comparing version 6.3.0 to 6.3.1
/*! | ||
* @pixi/canvas-extract - v6.3.0 | ||
* Compiled Wed, 23 Mar 2022 18:58:56 UTC | ||
* @pixi/canvas-extract - v6.3.1 | ||
* Compiled Tue, 03 May 2022 13:21:19 UTC | ||
* | ||
@@ -145,6 +145,8 @@ * @pixi/canvas-extract is licensed under the MIT License. | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
return exports; | ||
}({}, PIXI, PIXI.utils, PIXI)); | ||
})({}, PIXI, PIXI.utils, PIXI); | ||
Object.assign(this.PIXI, _pixi_canvas_extract); | ||
//# sourceMappingURL=canvas-extract.js.map |
/*! | ||
* @pixi/canvas-extract - v6.3.0 | ||
* Compiled Wed, 23 Mar 2022 18:58:56 UTC | ||
* @pixi/canvas-extract - v6.3.1 | ||
* Compiled Tue, 03 May 2022 13:21:19 UTC | ||
* | ||
@@ -8,3 +8,3 @@ * @pixi/canvas-extract is licensed under the MIT License. | ||
*/ | ||
this.PIXI=this.PIXI||{};var _pixi_canvas_extract=function(e,t,r,a){"use strict";var n=new PIXI.Rectangle,i=function(){function e(e){this.renderer=e}return e.prototype.image=function(e,t,r){var a=new Image;return a.src=this.base64(e,t,r),a},e.prototype.base64=function(e,t,r){return this.canvas(e).toDataURL(t,r)},e.prototype.canvas=function(e){var a,i,o,s,h=this.renderer;e&&(s=e instanceof t.RenderTexture?e:h.generateTexture(e)),s?(a=s.baseTexture._canvasRenderTarget.context,i=s.baseTexture._canvasRenderTarget.resolution,o=s.frame):(a=h.rootContext,i=h.resolution,(o=n).width=this.renderer.width,o.height=this.renderer.height);var u=Math.floor(o.width*i+1e-4),c=Math.floor(o.height*i+1e-4),g=new r.CanvasRenderTarget(u,c,1),d=a.getImageData(o.x*i,o.y*i,u,c);return g.context.putImageData(d,0,0),g.canvas},e.prototype.pixels=function(e){var r,a,i,o,s=this.renderer;e&&(o=e instanceof t.RenderTexture?e:s.generateTexture(e)),o?(r=o.baseTexture._canvasRenderTarget.context,a=o.baseTexture._canvasRenderTarget.resolution,i=o.frame):(r=s.rootContext,a=s.resolution,(i=n).width=s.width,i.height=s.height);var h=i.x*a,u=i.y*a,c=i.width*a,g=i.height*a;return r.getImageData(h,u,c,g).data},e.prototype.destroy=function(){this.renderer=null},e}();return e.CanvasExtract=i,e}({},PIXI,PIXI.utils);Object.assign(this.PIXI,_pixi_canvas_extract); | ||
this.PIXI=this.PIXI||{};var _pixi_canvas_extract=function(e,t,r,a){"use strict";var n=new PIXI.Rectangle,i=function(){function e(e){this.renderer=e}return e.prototype.image=function(e,t,r){var a=new Image;return a.src=this.base64(e,t,r),a},e.prototype.base64=function(e,t,r){return this.canvas(e).toDataURL(t,r)},e.prototype.canvas=function(e){var a,i,o,s,u=this.renderer;e&&(s=e instanceof t.RenderTexture?e:u.generateTexture(e)),s?(a=s.baseTexture._canvasRenderTarget.context,i=s.baseTexture._canvasRenderTarget.resolution,o=s.frame):(a=u.rootContext,i=u.resolution,(o=n).width=this.renderer.width,o.height=this.renderer.height);var h=Math.floor(o.width*i+1e-4),c=Math.floor(o.height*i+1e-4),d=new r.CanvasRenderTarget(h,c,1),g=a.getImageData(o.x*i,o.y*i,h,c);return d.context.putImageData(g,0,0),d.canvas},e.prototype.pixels=function(e){var r,a,i,o,s=this.renderer;e&&(o=e instanceof t.RenderTexture?e:s.generateTexture(e)),o?(r=o.baseTexture._canvasRenderTarget.context,a=o.baseTexture._canvasRenderTarget.resolution,i=o.frame):(r=s.rootContext,a=s.resolution,(i=n).width=s.width,i.height=s.height);var u=i.x*a,h=i.y*a,c=i.width*a,d=i.height*a;return r.getImageData(u,h,c,d).data},e.prototype.destroy=function(){this.renderer=null},e}();return e.CanvasExtract=i,Object.defineProperty(e,"__esModule",{value:!0}),e}({},PIXI,PIXI.utils);Object.assign(this.PIXI,_pixi_canvas_extract); | ||
//# sourceMappingURL=canvas-extract.min.js.map |
/*! | ||
* @pixi/canvas-extract - v6.3.0 | ||
* Compiled Wed, 23 Mar 2022 18:58:56 UTC | ||
* @pixi/canvas-extract - v6.3.1 | ||
* Compiled Tue, 03 May 2022 13:21:19 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/canvas-extract is licensed under the MIT License. |
/*! | ||
* @pixi/canvas-extract - v6.3.0 | ||
* Compiled Wed, 23 Mar 2022 18:58:56 UTC | ||
* @pixi/canvas-extract - v6.3.1 | ||
* Compiled Tue, 03 May 2022 13:21:19 UTC | ||
* | ||
@@ -8,3 +8,3 @@ * @pixi/canvas-extract is licensed under the MIT License. | ||
*/ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@pixi/core"),utils=require("@pixi/utils"),math=require("@pixi/math"),TEMP_RECT=new math.Rectangle,CanvasExtract=function(){function e(e){this.renderer=e}return e.prototype.image=function(e,t,r){var a=new Image;return a.src=this.base64(e,t,r),a},e.prototype.base64=function(e,t,r){return this.canvas(e).toDataURL(t,r)},e.prototype.canvas=function(e){var t,r,a,n,o=this.renderer;e&&(n=e instanceof core.RenderTexture?e:o.generateTexture(e)),n?(t=n.baseTexture._canvasRenderTarget.context,r=n.baseTexture._canvasRenderTarget.resolution,a=n.frame):(t=o.rootContext,r=o.resolution,(a=TEMP_RECT).width=this.renderer.width,a.height=this.renderer.height);var i=Math.floor(a.width*r+1e-4),s=Math.floor(a.height*r+1e-4),u=new utils.CanvasRenderTarget(i,s,1),h=t.getImageData(a.x*r,a.y*r,i,s);return u.context.putImageData(h,0,0),u.canvas},e.prototype.pixels=function(e){var t,r,a,n,o=this.renderer;e&&(n=e instanceof core.RenderTexture?e:o.generateTexture(e)),n?(t=n.baseTexture._canvasRenderTarget.context,r=n.baseTexture._canvasRenderTarget.resolution,a=n.frame):(t=o.rootContext,r=o.resolution,(a=TEMP_RECT).width=o.width,a.height=o.height);var i=a.x*r,s=a.y*r,u=a.width*r,h=a.height*r;return t.getImageData(i,s,u,h).data},e.prototype.destroy=function(){this.renderer=null},e}();exports.CanvasExtract=CanvasExtract; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@pixi/core"),t=require("@pixi/utils"),r=new(require("@pixi/math").Rectangle),a=function(){function a(e){this.renderer=e}return a.prototype.image=function(e,t,r){var a=new Image;return a.src=this.base64(e,t,r),a},a.prototype.base64=function(e,t,r){return this.canvas(e).toDataURL(t,r)},a.prototype.canvas=function(a){var n,i,o,s,u=this.renderer;a&&(s=a instanceof e.RenderTexture?a:u.generateTexture(a)),s?(n=s.baseTexture._canvasRenderTarget.context,i=s.baseTexture._canvasRenderTarget.resolution,o=s.frame):(n=u.rootContext,i=u.resolution,(o=r).width=this.renderer.width,o.height=this.renderer.height);var h=Math.floor(o.width*i+1e-4),c=Math.floor(o.height*i+1e-4),d=new t.CanvasRenderTarget(h,c,1),x=n.getImageData(o.x*i,o.y*i,h,c);return d.context.putImageData(x,0,0),d.canvas},a.prototype.pixels=function(t){var a,n,i,o,s=this.renderer;t&&(o=t instanceof e.RenderTexture?t:s.generateTexture(t)),o?(a=o.baseTexture._canvasRenderTarget.context,n=o.baseTexture._canvasRenderTarget.resolution,i=o.frame):(a=s.rootContext,n=s.resolution,(i=r).width=s.width,i.height=s.height);var u=i.x*n,h=i.y*n,c=i.width*n,d=i.height*n;return a.getImageData(u,h,c,d).data},a.prototype.destroy=function(){this.renderer=null},a}();exports.CanvasExtract=a; | ||
//# sourceMappingURL=canvas-extract.min.js.map |
/*! | ||
* @pixi/canvas-extract - v6.3.0 | ||
* Compiled Wed, 23 Mar 2022 18:58:56 UTC | ||
* @pixi/canvas-extract - v6.3.1 | ||
* Compiled Tue, 03 May 2022 13:21:19 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/canvas-extract is licensed under the MIT License. |
/*! | ||
* @pixi/canvas-extract - v6.3.0 | ||
* Compiled Wed, 23 Mar 2022 18:58:56 UTC | ||
* @pixi/canvas-extract - v6.3.1 | ||
* Compiled Tue, 03 May 2022 13:21:19 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/canvas-extract is licensed under the MIT License. |
{ | ||
"name": "@pixi/canvas-extract", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"main": "dist/cjs/canvas-extract.js", | ||
@@ -28,9 +28,9 @@ "module": "dist/esm/canvas-extract.js", | ||
"peerDependencies": { | ||
"@pixi/canvas-renderer": "6.3.0", | ||
"@pixi/core": "6.3.0", | ||
"@pixi/display": "6.3.0", | ||
"@pixi/math": "6.3.0", | ||
"@pixi/utils": "6.3.0" | ||
"@pixi/canvas-renderer": "6.3.1", | ||
"@pixi/core": "6.3.1", | ||
"@pixi/display": "6.3.1", | ||
"@pixi/math": "6.3.1", | ||
"@pixi/utils": "6.3.1" | ||
}, | ||
"gitHead": "dc311cdd7a28e6817556cdc674fd15ef71069467" | ||
"gitHead": "a520915d81f307c40fcbad5d877b0f2de465c4bf" | ||
} |
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
77837
533