mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
changed onpan function signature as it is called by x and y co-ordinates seperatly, not with object
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user