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

@pixi/app

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/app - npm Package Compare versions

Comparing version 6.0.0-rc.2 to 6.0.0-rc.3

38

dist/browser/app.js
/*!
* @pixi/app - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
* @pixi/app - v6.0.0-rc.3
* Compiled Sat, 20 Feb 2021 22:50:47 UTC
*

@@ -66,2 +66,7 @@ * @pixi/app is licensed under the MIT License.

var _this = this;
/**
* The root display container that's rendered.
* @member {PIXI.Container}
*/
this.stage = new display.Container();
// The default options

@@ -71,12 +76,3 @@ options = Object.assign({

}, options);
/**
* WebGL renderer if available, otherwise CanvasRenderer.
* @member {PIXI.Renderer|PIXI.CanvasRenderer}
*/
this.renderer = core.autoDetectRenderer(options);
/**
* The root display container that's rendered.
* @member {PIXI.Container}
*/
this.stage = new display.Container();
// install plugins here

@@ -90,3 +86,3 @@ Application._plugins.forEach(function (plugin) {

* @static
* @param {PIXI.Application.Plugin} plugin - Plugin being installed
* @param {PIXI.IApplicationPlugin} plugin - Plugin being installed
*/

@@ -100,4 +96,2 @@ Application.registerPlugin = function (plugin) {

Application.prototype.render = function () {
// TODO: Since CanvasRenderer has not been converted this function thinks it takes DisplayObject & PIXI.DisplayObject
// This can be fixed when CanvasRenderer is converted.
this.renderer.render(this.stage);

@@ -155,18 +149,6 @@ };

};
/** Collection of installed plugins. */
Application._plugins = [];
return Application;
}());
/**
* @memberof PIXI.Application
* @typedef {object} Plugin
* @property {function} init - Called when Application is constructed, scoped to Application instance.
* Passes in `options` as the only argument, which are Application constructor options.
* @property {function} destroy - Called when destroying Application, scoped to Application instance
*/
/**
* Collection of installed plugins.
* @static
* @private
* @type {PIXI.Application.Plugin[]}
*/
Application._plugins = [];

@@ -173,0 +155,0 @@ /**

/*!
* @pixi/app - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
* @pixi/app - v6.0.0-rc.3
* Compiled Sat, 20 Feb 2021 22:50:47 UTC
*

@@ -8,3 +8,3 @@ * @pixi/app is licensed under the MIT License.

*/
this.PIXI=this.PIXI||{};var _pixi_app=function(e,i,t){"use strict";var r=function(){function e(r){var n=this;r=Object.assign({forceCanvas:!1},r),this.renderer=t.autoDetectRenderer(r),this.stage=new i.Container,e._plugins.forEach(function(e){e.init.call(n,r)})}return e.registerPlugin=function(i){e._plugins.push(i)},e.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(e.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),e.prototype.destroy=function(i,t){var r=this,n=e._plugins.slice(0);n.reverse(),n.forEach(function(e){e.destroy.call(r)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(i),this.renderer=null},e}();r._plugins=[];var n=function(){function e(){}return e.init=function(e){var i=this;Object.defineProperty(this,"resizeTo",{set:function(e){self.removeEventListener("resize",this.queueResize),this._resizeTo=e,e&&(self.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){i._resizeTo&&(i.cancelResize(),i._resizeId=requestAnimationFrame(function(){return i.resize()}))},this.cancelResize=function(){i._resizeId&&(cancelAnimationFrame(i._resizeId),i._resizeId=null)},this.resize=function(){if(i._resizeTo){var e,t;if(i.cancelResize(),i._resizeTo===self)e=self.innerWidth,t=self.innerHeight;else{var r=i._resizeTo;e=r.clientWidth,t=r.clientHeight}i.renderer.resize(e,t)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},e.destroy=function(){this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e}();return r.registerPlugin(n),e.Application=r,e}({},PIXI,PIXI);Object.assign(this.PIXI,_pixi_app);
this.PIXI=this.PIXI||{};var _pixi_app=function(e,i,t){"use strict";var n=function(){function e(n){var r=this;this.stage=new i.Container,n=Object.assign({forceCanvas:!1},n),this.renderer=t.autoDetectRenderer(n),e._plugins.forEach(function(e){e.init.call(r,n)})}return e.registerPlugin=function(i){e._plugins.push(i)},e.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(e.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),e.prototype.destroy=function(i,t){var n=this,r=e._plugins.slice(0);r.reverse(),r.forEach(function(e){e.destroy.call(n)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(i),this.renderer=null},e._plugins=[],e}(),r=function(){function e(){}return e.init=function(e){var i=this;Object.defineProperty(this,"resizeTo",{set:function(e){self.removeEventListener("resize",this.queueResize),this._resizeTo=e,e&&(self.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){i._resizeTo&&(i.cancelResize(),i._resizeId=requestAnimationFrame(function(){return i.resize()}))},this.cancelResize=function(){i._resizeId&&(cancelAnimationFrame(i._resizeId),i._resizeId=null)},this.resize=function(){if(i._resizeTo){var e,t;if(i.cancelResize(),i._resizeTo===self)e=self.innerWidth,t=self.innerHeight;else{var n=i._resizeTo;e=n.clientWidth,t=n.clientHeight}i.renderer.resize(e,t)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},e.destroy=function(){this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e}();return n.registerPlugin(r),e.Application=n,e}({},PIXI,PIXI);Object.assign(this.PIXI,_pixi_app);
//# sourceMappingURL=app.min.js.map
/*!
* @pixi/app - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
* @pixi/app - v6.0.0-rc.3
* Compiled Sat, 20 Feb 2021 22:50:47 UTC
*

@@ -69,2 +69,7 @@ * @pixi/app is licensed under the MIT License.

var _this = this;
/**
* The root display container that's rendered.
* @member {PIXI.Container}
*/
this.stage = new display.Container();
// The default options

@@ -74,12 +79,3 @@ options = Object.assign({

}, options);
/**
* WebGL renderer if available, otherwise CanvasRenderer.
* @member {PIXI.Renderer|PIXI.CanvasRenderer}
*/
this.renderer = core.autoDetectRenderer(options);
/**
* The root display container that's rendered.
* @member {PIXI.Container}
*/
this.stage = new display.Container();
// install plugins here

@@ -93,3 +89,3 @@ Application._plugins.forEach(function (plugin) {

* @static
* @param {PIXI.Application.Plugin} plugin - Plugin being installed
* @param {PIXI.IApplicationPlugin} plugin - Plugin being installed
*/

@@ -103,4 +99,2 @@ Application.registerPlugin = function (plugin) {

Application.prototype.render = function () {
// TODO: Since CanvasRenderer has not been converted this function thinks it takes DisplayObject & PIXI.DisplayObject
// This can be fixed when CanvasRenderer is converted.
this.renderer.render(this.stage);

@@ -158,18 +152,6 @@ };

};
/** Collection of installed plugins. */
Application._plugins = [];
return Application;
}());
/**
* @memberof PIXI.Application
* @typedef {object} Plugin
* @property {function} init - Called when Application is constructed, scoped to Application instance.
* Passes in `options` as the only argument, which are Application constructor options.
* @property {function} destroy - Called when destroying Application, scoped to Application instance
*/
/**
* Collection of installed plugins.
* @static
* @private
* @type {PIXI.Application.Plugin[]}
*/
Application._plugins = [];

@@ -176,0 +158,0 @@ /**

/*!
* @pixi/app - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
* @pixi/app - v6.0.0-rc.3
* Compiled Sat, 20 Feb 2021 22:50:47 UTC
*

@@ -8,3 +8,3 @@ * @pixi/app is licensed under the MIT License.

*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var display=require("@pixi/display"),core=require("@pixi/core"),Application=function(){function e(i){var r=this;i=Object.assign({forceCanvas:!1},i),this.renderer=core.autoDetectRenderer(i),this.stage=new display.Container,e._plugins.forEach(function(e){e.init.call(r,i)})}return e.registerPlugin=function(i){e._plugins.push(i)},e.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(e.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),e.prototype.destroy=function(i,r){var t=this,n=e._plugins.slice(0);n.reverse(),n.forEach(function(e){e.destroy.call(t)}),this.stage.destroy(r),this.stage=null,this.renderer.destroy(i),this.renderer=null},e}();Application._plugins=[];var ResizePlugin=function(){function e(){}return e.init=function(e){var i=this;Object.defineProperty(this,"resizeTo",{set:function(e){self.removeEventListener("resize",this.queueResize),this._resizeTo=e,e&&(self.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){i._resizeTo&&(i.cancelResize(),i._resizeId=requestAnimationFrame(function(){return i.resize()}))},this.cancelResize=function(){i._resizeId&&(cancelAnimationFrame(i._resizeId),i._resizeId=null)},this.resize=function(){if(i._resizeTo){var e,r;if(i.cancelResize(),i._resizeTo===self)e=self.innerWidth,r=self.innerHeight;else{var t=i._resizeTo;e=t.clientWidth,r=t.clientHeight}i.renderer.resize(e,r)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},e.destroy=function(){this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e}();Application.registerPlugin(ResizePlugin),exports.Application=Application;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var display=require("@pixi/display"),core=require("@pixi/core"),Application=function(){function e(i){var r=this;this.stage=new display.Container,i=Object.assign({forceCanvas:!1},i),this.renderer=core.autoDetectRenderer(i),e._plugins.forEach(function(e){e.init.call(r,i)})}return e.registerPlugin=function(i){e._plugins.push(i)},e.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(e.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),e.prototype.destroy=function(i,r){var t=this,n=e._plugins.slice(0);n.reverse(),n.forEach(function(e){e.destroy.call(t)}),this.stage.destroy(r),this.stage=null,this.renderer.destroy(i),this.renderer=null},e._plugins=[],e}(),ResizePlugin=function(){function e(){}return e.init=function(e){var i=this;Object.defineProperty(this,"resizeTo",{set:function(e){self.removeEventListener("resize",this.queueResize),this._resizeTo=e,e&&(self.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){i._resizeTo&&(i.cancelResize(),i._resizeId=requestAnimationFrame(function(){return i.resize()}))},this.cancelResize=function(){i._resizeId&&(cancelAnimationFrame(i._resizeId),i._resizeId=null)},this.resize=function(){if(i._resizeTo){var e,r;if(i.cancelResize(),i._resizeTo===self)e=self.innerWidth,r=self.innerHeight;else{var t=i._resizeTo;e=t.clientWidth,r=t.clientHeight}i.renderer.resize(e,r)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},e.destroy=function(){this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e}();Application.registerPlugin(ResizePlugin),exports.Application=Application;
//# sourceMappingURL=app.min.js.map
/*!
* @pixi/app - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
* @pixi/app - v6.0.0-rc.3
* Compiled Sat, 20 Feb 2021 22:50:47 UTC
*

@@ -65,2 +65,7 @@ * @pixi/app is licensed under the MIT License.

var _this = this;
/**
* The root display container that's rendered.
* @member {PIXI.Container}
*/
this.stage = new Container();
// The default options

@@ -70,12 +75,3 @@ options = Object.assign({

}, options);
/**
* WebGL renderer if available, otherwise CanvasRenderer.
* @member {PIXI.Renderer|PIXI.CanvasRenderer}
*/
this.renderer = autoDetectRenderer(options);
/**
* The root display container that's rendered.
* @member {PIXI.Container}
*/
this.stage = new Container();
// install plugins here

@@ -89,3 +85,3 @@ Application._plugins.forEach(function (plugin) {

* @static
* @param {PIXI.Application.Plugin} plugin - Plugin being installed
* @param {PIXI.IApplicationPlugin} plugin - Plugin being installed
*/

@@ -99,4 +95,2 @@ Application.registerPlugin = function (plugin) {

Application.prototype.render = function () {
// TODO: Since CanvasRenderer has not been converted this function thinks it takes DisplayObject & PIXI.DisplayObject
// This can be fixed when CanvasRenderer is converted.
this.renderer.render(this.stage);

@@ -154,18 +148,6 @@ };

};
/** Collection of installed plugins. */
Application._plugins = [];
return Application;
}());
/**
* @memberof PIXI.Application
* @typedef {object} Plugin
* @property {function} init - Called when Application is constructed, scoped to Application instance.
* Passes in `options` as the only argument, which are Application constructor options.
* @property {function} destroy - Called when destroying Application, scoped to Application instance
*/
/**
* Collection of installed plugins.
* @static
* @private
* @type {PIXI.Application.Plugin[]}
*/
Application._plugins = [];

@@ -172,0 +154,0 @@ /**

/*!
* @pixi/app - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
* @pixi/app - v6.0.0-rc.3
* Compiled Sat, 20 Feb 2021 22:50:47 UTC
*

@@ -8,3 +8,3 @@ * @pixi/app is licensed under the MIT License.

*/
import{Container as e}from"@pixi/display";import{autoDetectRenderer as i}from"@pixi/core";var r=function(){function r(n){var t=this;n=Object.assign({forceCanvas:!1},n),this.renderer=i(n),this.stage=new e,r._plugins.forEach(function(e){e.init.call(t,n)})}return r.registerPlugin=function(e){r._plugins.push(e)},r.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(r.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),r.prototype.destroy=function(e,i){var n=this,t=r._plugins.slice(0);t.reverse(),t.forEach(function(e){e.destroy.call(n)}),this.stage.destroy(i),this.stage=null,this.renderer.destroy(e),this.renderer=null},r}();r._plugins=[];var n=function(){function e(){}return e.init=function(e){var i=this;Object.defineProperty(this,"resizeTo",{set:function(e){self.removeEventListener("resize",this.queueResize),this._resizeTo=e,e&&(self.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){i._resizeTo&&(i.cancelResize(),i._resizeId=requestAnimationFrame(function(){return i.resize()}))},this.cancelResize=function(){i._resizeId&&(cancelAnimationFrame(i._resizeId),i._resizeId=null)},this.resize=function(){if(i._resizeTo){var e,r;if(i.cancelResize(),i._resizeTo===self)e=self.innerWidth,r=self.innerHeight;else{var n=i._resizeTo;e=n.clientWidth,r=n.clientHeight}i.renderer.resize(e,r)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},e.destroy=function(){this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e}();r.registerPlugin(n);export{r as Application};
import{Container as e}from"@pixi/display";import{autoDetectRenderer as i}from"@pixi/core";var r=function(){function r(n){var t=this;this.stage=new e,n=Object.assign({forceCanvas:!1},n),this.renderer=i(n),r._plugins.forEach(function(e){e.init.call(t,n)})}return r.registerPlugin=function(e){r._plugins.push(e)},r.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(r.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),r.prototype.destroy=function(e,i){var n=this,t=r._plugins.slice(0);t.reverse(),t.forEach(function(e){e.destroy.call(n)}),this.stage.destroy(i),this.stage=null,this.renderer.destroy(e),this.renderer=null},r._plugins=[],r}(),n=function(){function e(){}return e.init=function(e){var i=this;Object.defineProperty(this,"resizeTo",{set:function(e){self.removeEventListener("resize",this.queueResize),this._resizeTo=e,e&&(self.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){i._resizeTo&&(i.cancelResize(),i._resizeId=requestAnimationFrame(function(){return i.resize()}))},this.cancelResize=function(){i._resizeId&&(cancelAnimationFrame(i._resizeId),i._resizeId=null)},this.resize=function(){if(i._resizeTo){var e,r;if(i.cancelResize(),i._resizeTo===self)e=self.innerWidth,r=self.innerHeight;else{var n=i._resizeTo;e=n.clientWidth,r=n.clientHeight}i.renderer.resize(e,r)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},e.destroy=function(){this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e}();r.registerPlugin(n);export{r as Application};
//# sourceMappingURL=app.min.js.map

@@ -13,4 +13,4 @@ declare namespace GlobalMixins

{
resizeTo: Window|HTMLElement;
resizeTo?: Window|HTMLElement;
}
}

@@ -32,4 +32,13 @@ /// <reference path="./global.d.ts" />

export declare class Application {
static _plugins: IApplicationPlugin[];
/** Collection of installed plugins. */
private static _plugins;
/**
* The root display container that's rendered.
* @member {PIXI.Container}
*/
stage: Container;
/**
* WebGL renderer if available, otherwise CanvasRenderer.
* @member {PIXI.Renderer|PIXI.CanvasRenderer}
*/
renderer: Renderer | AbstractRenderer;

@@ -73,3 +82,3 @@ /**

* @static
* @param {PIXI.Application.Plugin} plugin - Plugin being installed
* @param {PIXI.IApplicationPlugin} plugin - Plugin being installed
*/

@@ -111,7 +120,20 @@ static registerPlugin(plugin: IApplicationPlugin): void;

/**
* Any plugin that's usable for Application should contain these methods.
* @memberof PIXI
* @see {@link PIXI.Application.registerPlugin}
*/
export declare interface IApplicationPlugin {
init: (...params: any[]) => any;
destroy: (...params: any[]) => any;
/**
* Called when Application is constructed, scoped to Application instance.
* Passes in `options` as the only argument, which are Application constructor options.
* @param {object} options - Application options.
*/
init(options: IApplicationOptions): void;
/**
* Called when destroying Application, scoped to Application instance.
*/
destroy(): void;
}
export { }
{
"name": "@pixi/app",
"version": "6.0.0-rc.2",
"version": "6.0.0-rc.3",
"main": "dist/cjs/app.js",

@@ -28,10 +28,10 @@ "module": "dist/esm/app.js",

"dependencies": {
"@pixi/core": "6.0.0-rc.2",
"@pixi/display": "6.0.0-rc.2"
"@pixi/core": "6.0.0-rc.3",
"@pixi/display": "6.0.0-rc.3"
},
"devDependencies": {
"@pixi/canvas-renderer": "6.0.0-rc.2",
"@pixi/utils": "6.0.0-rc.2"
"@pixi/canvas-renderer": "6.0.0-rc.3",
"@pixi/utils": "6.0.0-rc.3"
},
"gitHead": "48e4870fd31b2ea731120fa12bcabb4155fd3b08"
"gitHead": "6ea4d4077ffc05e8275bb1993ce77727e99da145"
}

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

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