add types and remove unused import

This commit is contained in:
tbo47 2024-10-04 14:58:40 +00:00
parent 0dd6d10ac1
commit 948307773b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,