Skip to content

Commit

Permalink
Merge pull request #1826 from tbo47/add-types
Browse files Browse the repository at this point in the history
add types and remove unused import
  • Loading branch information
lavrton authored Oct 4, 2024
2 parents 0dd6d10 + 9483077 commit b379efe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Util.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/filters/Enhance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b379efe

Please sign in to comment.