changed onpan function signature as it is called by x and y co-ordinates seperatly, not with object

This commit is contained in:
rushi216
2014-11-17 17:46:01 +05:30
parent 71e7549601
commit 907856f4db
+2 -2
View File
@@ -18,7 +18,7 @@ declare module SvgPanZoom {
beforeZoom?: (scale:number) => void;
onZoom?: (scale:number) => void;
beforePan?: (point:IPoint) => void;
onPan?: (point:IPoint) => void;
onPan?: (x:number, y:number) => void;
refreshRate?: any; // in hz
}
@@ -55,7 +55,7 @@ declare module SvgPanZoom {
setBeforePan(fn: (point:IPoint)=> void): void;
setOnPan(fn: (point:IPoint)=> void): void;
setOnPan(fn: (x:number, y:number)=> void): void;
enableZoom(): void;