From c5f2c1e8b3a604625f8c1bbc6d561ad49a7cedce Mon Sep 17 00:00:00 2001 From: ivmartel Date: Thu, 14 Nov 2024 16:54:30 +0100 Subject: [PATCH] Rename classes to avoid duplicate --- src/image/filter.js | 6 +++--- src/tools/filter.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/image/filter.js b/src/image/filter.js index 9a8d3b35fe..716b20911e 100644 --- a/src/image/filter.js +++ b/src/image/filter.js @@ -6,7 +6,7 @@ import {Image} from './image'; /** * Threshold an image between an input minimum and maximum. */ -export class Threshold { +export class ThresholdFilter { /** * Threshold minimum. * @@ -114,7 +114,7 @@ export class Threshold { /** * Sharpen an image using a sharpen convolution matrix. */ -export class Sharpen { +export class SharpenFilter { /** * Get the name of the filter. * @@ -170,7 +170,7 @@ export class Sharpen { /** * Apply a Sobel filter to an image. */ -export class Sobel { +export class SobelFilter { /** * Get the name of the filter. * diff --git a/src/tools/filter.js b/src/tools/filter.js index caa1a1b9be..9b5bfce8a0 100644 --- a/src/tools/filter.js +++ b/src/tools/filter.js @@ -1,8 +1,8 @@ import {ListenerHandler} from '../utils/listen'; import { - Threshold as ThresholdFilter, - Sobel as SobelFilter, - Sharpen as SharpenFilter + ThresholdFilter, + SobelFilter, + SharpenFilter } from '../image/filter'; // doc imports