From 69e473275a635682612835165f6ec2b4d68b57e4 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 29 Apr 2019 01:00:11 -0500 Subject: [PATCH] chore: naming --- packages/graphics/container.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/graphics/container.js b/packages/graphics/container.js index 9d56024..fc8adb8 100644 --- a/packages/graphics/container.js +++ b/packages/graphics/container.js @@ -26,7 +26,7 @@ export class Container extends Renderable { desaturate() { let filter = new PIXI.filters.ColorMatrixFilter(); filter.desaturate(); - this.internal.filters = [filter]; + this.container.filters = [filter]; } destroy() { @@ -35,6 +35,7 @@ export class Container extends Renderable { child.destroy(); }); super.destroy(); + this.container.filters = []; } get internal() { @@ -67,18 +68,18 @@ export class Container extends Renderable { 0 , 0 , 0 , 1, 0, ]; filter._loadMatrix(matrix); - this.internal.filters = [filter]; + this.container.filters = [filter]; } paused(intensity = 1) { let filter = new PIXI.filters.ColorMatrixFilter(); filter.sepia(); filter.brightness(1 - intensity, true); - this.internal.filters = [filter]; + this.container.filters = [filter]; } removeAllFilters() { - this.internal.filters = []; + this.container.filters = []; } _removeChild(child) { @@ -147,7 +148,7 @@ export class Container extends Renderable { sepia() { let filter = new PIXI.filters.ColorMatrixFilter(); filter.sepia(); - this.internal.filters = [filter]; + this.container.filters = [filter]; } setFilter(filter) {