From 948307773b7546881bfce4e486e95490f259cdd5 Mon Sep 17 00:00:00 2001 From: tbo47 Date: Fri, 4 Oct 2024 14:58:40 +0000 Subject: [PATCH] add types and remove unused import --- src/Util.ts | 2 +- src/filters/Enhance.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util.ts b/src/Util.ts index 94102d64..a9b4906f 100644 --- a/src/Util.ts +++ b/src/Util.ts @@ -1,6 +1,6 @@ import { Konva } from './Global'; import { Context } from './Context'; -import { IRect, RGB, RGBA, Vector2d } from './types'; +import { IRect, RGB, Vector2d } from './types'; /* * Last updated November 2011 diff --git a/src/filters/Enhance.ts b/src/filters/Enhance.ts index 2bc74943..887afba8 100644 --- a/src/filters/Enhance.ts +++ b/src/filters/Enhance.ts @@ -2,7 +2,7 @@ import { Factory } from '../Factory'; import { Node, Filter } from '../Node'; import { getNumberValidator } from '../Validators'; -function remap(fromValue, fromMin, fromMax, toMin, toMax) { +function remap(fromValue: number, fromMin: number, fromMax: number, toMin: number, toMax: number) { // Compute the range of the data var fromRange = fromMax - fromMin, toRange = toMax - toMin,