diff --git a/src/deprecation.js b/src/deprecation.js index dc818f1..cf2d9aa 100644 --- a/src/deprecation.js +++ b/src/deprecation.js @@ -1,6 +1,7 @@ /*global console */ var core = require('./core'), mesh = require('./mesh'), + particles = require('./particles'), extras = require('./extras'), filters = require('./filters'); @@ -101,6 +102,21 @@ /** * @class * @private + * @name ParticleContainer + * @memberof PIXI + * @see PIXI.particles.ParticleContainer + * @deprecated since version 4.0.0 + */ + ParticleContainer: { + get: function() { + console.warn('The ParticleContainer class has been moved to particles.ParticleContainer, please useparticles.ParticleContainer from now on.'); + return particles.ParticleContainer; + } + }, + + /** + * @class + * @private * @name MovieClip * @memberof PIXI * @see PIXI.extras.MovieClip diff --git a/src/deprecation.js b/src/deprecation.js index dc818f1..cf2d9aa 100644 --- a/src/deprecation.js +++ b/src/deprecation.js @@ -1,6 +1,7 @@ /*global console */ var core = require('./core'), mesh = require('./mesh'), + particles = require('./particles'), extras = require('./extras'), filters = require('./filters'); @@ -101,6 +102,21 @@ /** * @class * @private + * @name ParticleContainer + * @memberof PIXI + * @see PIXI.particles.ParticleContainer + * @deprecated since version 4.0.0 + */ + ParticleContainer: { + get: function() { + console.warn('The ParticleContainer class has been moved to particles.ParticleContainer, please useparticles.ParticleContainer from now on.'); + return particles.ParticleContainer; + } + }, + + /** + * @class + * @private * @name MovieClip * @memberof PIXI * @see PIXI.extras.MovieClip diff --git a/src/particles/ParticleContainer.js b/src/particles/ParticleContainer.js index 0a2e9e6..ab7752a 100644 --- a/src/particles/ParticleContainer.js +++ b/src/particles/ParticleContainer.js @@ -22,7 +22,7 @@ * * @class * @extends PIXI.Container - * @memberof PIXI + * @memberof PIXI.particles * @param [maxSize=15000] {number} The maximum number of particles that can be renderer by the container. * @param [properties] {object} The properties of children that should be uploaded to the gpu and applied. * @param [properties.scale=false] {boolean} When true, scale be uploaded and applied.