Skip to content

Commit 18fd3b4

Browse files
refactor: remove unused color adjustment properties from PixiController
1 parent 2b58e7c commit 18fd3b4

4 files changed

Lines changed: 2 additions & 23 deletions

File tree

packages/webgal/src/Core/controller/stage/pixi/PixiController.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,6 @@ export default class PixiStage {
271271
rotation: target.pixiContainer.rotation,
272272
// @ts-ignore
273273
blur: target.pixiContainer.blur,
274-
brightness: target.pixiContainer.brightness,
275-
contrast: target.pixiContainer.contrast,
276-
saturation: target.pixiContainer.saturation,
277-
gamma: target.pixiContainer.gamma,
278-
colorRed: target.pixiContainer.colorRed,
279-
colorGreen: target.pixiContainer.colorGreen,
280-
colorBlue: target.pixiContainer.colorBlue,
281274
...webgalFilters,
282275
};
283276
let effect: IEffect = {

packages/webgal/src/Core/controller/stage/pixi/WebGALPixiContainer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class WebGALPixiContainer extends PIXI.Container {
121121
* @public
122122
*/
123123
public getOrCreateAdjustmentFilter(): AdjustmentFilter {
124-
const filterFromMap = this.containerFilters.get("adjustment");
124+
const filterFromMap = this.containerFilters.get('adjustment');
125125
if (filterFromMap) {
126126
return filterFromMap as AdjustmentFilter;
127127
} else {

packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function generateTimelineObj(
123123

124124
function getEndFilterEffect() {
125125
const endSegment = timeline[timeline.length - 1];
126-
const { alpha, rotation, blur, brightness, contrast, saturation, gamma, colorRed, colorGreen, colorBlue, duration, scale, position, ...rest } = endSegment;
126+
const { alpha, rotation, blur, duration, scale, position, ...rest } = endSegment;
127127
return rest;
128128
}
129129

packages/webgal/src/store/stageInterface.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ export interface ITransform {
3939
};
4040
rotation: number;
4141
blur: number;
42-
brightness: number;
43-
contrast: number;
44-
saturation: number;
45-
gamma: number;
46-
colorRed: number;
47-
colorGreen: number;
48-
colorBlue: number;
4942
}
5043

5144
/**
@@ -76,13 +69,6 @@ export const baseTransform: ITransform = {
7669
},
7770
rotation: 0,
7871
blur: 0,
79-
brightness: 1,
80-
contrast: 1,
81-
saturation: 1,
82-
gamma: 1,
83-
colorRed: 255,
84-
colorGreen: 255,
85-
colorBlue: 255,
8672
};
8773

8874
export interface IFreeFigure {

0 commit comments

Comments
 (0)