Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bbazukun123 committed Feb 14, 2024
1 parent 84e7c59 commit c4a8aea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/multi-color-replace/MultiColorReplaceFilter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line camelcase
import { Color, ColorSource, deprecation, Filter, GlProgram, GpuProgram, v8_0_0 } from 'pixi.js';
import { Color, ColorSource, deprecation, Filter, GlProgram, GpuProgram } from 'pixi.js';
import { vertex, wgslVertex } from '../defaults';
import fragment from './multi-color-replace.frag';
import source from './multi-color-replace.wgsl';
Expand Down Expand Up @@ -77,7 +76,7 @@ export class MultiColorReplaceFilter extends Filter

constructor(options?: MultiColorReplaceFilterOptions);
/**
* @deprecated since 8.0.0
* @deprecated since 6.0.0
*
* @param {Array<Array>} replacements - The collection of replacement items. Each item is color-pair
* (an array length is 2). In the pair, the first value is original color , the second value
Expand All @@ -96,7 +95,7 @@ export class MultiColorReplaceFilter extends Filter
if (Array.isArray(options))
{
// eslint-disable-next-line max-len
deprecation(v8_0_0, 'MultiColorReplaceFilter constructor params are now options object. See params: { replacements, tolerance, maxColors }');
deprecation('6.0.0', 'MultiColorReplaceFilter constructor params are now options object. See params: { replacements, tolerance, maxColors }');

options = { replacements: options };

Expand Down Expand Up @@ -239,13 +238,13 @@ export class MultiColorReplaceFilter extends Filter
set epsilon(value: number)
{
// eslint-disable-next-line max-len
deprecation(v8_0_0, 'MultiColorReplaceFilter.epsilon is deprecated, please use MultiColorReplaceFilter.tolerance instead');
deprecation('6.0.0', 'MultiColorReplaceFilter.epsilon is deprecated, please use MultiColorReplaceFilter.tolerance instead');
this.tolerance = value;
}
get epsilon(): number
{
// eslint-disable-next-line max-len
deprecation(v8_0_0, 'MultiColorReplaceFilter.epsilon is deprecated, please use MultiColorReplaceFilter.tolerance instead');
deprecation('6.0.0', 'MultiColorReplaceFilter.epsilon is deprecated, please use MultiColorReplaceFilter.tolerance instead');

return this.tolerance;
}
Expand Down

0 comments on commit c4a8aea

Please sign in to comment.