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 0d23d7a commit 07145c7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/outline/OutlineFilter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line camelcase
import { Color, deprecation, Filter, GlProgram, GpuProgram, v8_0_0 } from 'pixi.js';
import { Color, deprecation, Filter, GlProgram, GpuProgram } from 'pixi.js';
import { vertex, wgslVertex } from '../defaults';
import fragment from './outline.frag';
import source from './outline.wgsl';
Expand Down Expand Up @@ -80,7 +79,7 @@ export class OutlineFilter extends Filter

constructor(options?: OutlineFilterOptions);
/**
* @deprecated since 8.0.0
* @deprecated since 6.0.0
*
* @param {number} [thickness=1] - The tickness of the outline. Make it 2 times more for resolution 2
* @param {number} [color=0x000000] - The color of the outline.
Expand All @@ -97,14 +96,14 @@ export class OutlineFilter extends Filter
if (typeof options === 'number')
{
// eslint-disable-next-line max-len
deprecation(v8_0_0, 'OutlineFilter constructor params are now options object. See params: { thickness, color, quality, alpha, knockout }');
deprecation('6.0.0', 'OutlineFilter constructor params are now options object. See params: { thickness, color, quality, alpha, knockout }');

options = { thickness: options };

if (args[1]) options.color = args[1];
if (args[2]) options.quality = args[2];
if (args[3]) options.alpha = args[3];
if (args[4]) options.knockout = args[4];
if (args[1] !== undefined) options.color = args[1];
if (args[2] !== undefined) options.quality = args[2];
if (args[3] !== undefined) options.alpha = args[3];
if (args[4] !== undefined) options.knockout = args[4];
}

options = { ...OutlineFilter.DEFAULT_OPTIONS, ...options };
Expand Down

0 comments on commit 07145c7

Please sign in to comment.