Update interact.js typings to 1.0.25

This commit is contained in:
Adi Dahiya
2014-09-25 12:25:02 -04:00
parent fe50484fda
commit f2b7b66b3e
2 changed files with 6 additions and 4 deletions

View File

@@ -103,5 +103,6 @@ interact.deltaSource("page");
interact.restrict({
"drag": rectangle,
"resize": rectangle,
"gesture": rectangle
"gesture": rectangle,
"elementRect": { top: 0, left: 0, bottom: 1, right: 1 }
});

View File

@@ -1,7 +1,7 @@
// Type definitions for Interacting for interact.js v1.0.17
// Type definitions for Interacting for interact.js v1.0.25
// Project: https://github.com/taye/interact.js
// Definitions by: Douglas Eichelberger <https://github.com/dduugg>
// Definitions: https://github.com/borisyankov/DefinitelyType
// Definitions by: Douglas Eichelberger <https://github.com/dduugg>, Adi Dahiya <https://github.com/adidahiya>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// API documentation: http://interactjs.io/docs
@@ -157,6 +157,7 @@ interface Restrict {
drag?: any;
gesture?: any;
resize?: any;
elementRect?: {[direction: string]: number};
}
interface InteractEvent {