mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +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:
1 parent
71e7549601
commit
907856f4db
1 file changed
+2
-2
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