@any-touch/shared
Advanced tools
Comparing version 0.7.6 to 0.7.7
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var ObjectToString=Object.prototype.toString;function isRegExp(T){return"[object RegExp]"===ObjectToString.call(T)}function isFunction(T){return"[object Function]"===ObjectToString.call(T)}var CLIENT_X="clientX",CLIENT_Y="clientY",COMPUTE_INTERVAL=16,INPUT_START="start",INPUT_MOVE="move",INPUT_CANCEL="cancel",INPUT_END="end",DIRECTION_LEFT="left",DIRECTION_RIGHT="right",DIRECTION_UP="up",DIRECTION_DOWN="down",NONE="none",TOUCH="touch",MOUSE="mouse",TOUCH_START=TOUCH+INPUT_START,TOUCH_MOVE=TOUCH+INPUT_MOVE,TOUCH_END=TOUCH+INPUT_END,TOUCH_CANCEL=TOUCH+INPUT_CANCEL,MOUSE_UP=MOUSE+DIRECTION_UP,MOUSE_MOVE=MOUSE+INPUT_MOVE,MOUSE_DOWN=MOUSE+DIRECTION_DOWN,SUPPORT_TOUCH=window.wx||"on"+TOUCH_START in window,STATUS_POSSIBLE="p",STATUS_START=INPUT_START,STATUS_MOVE=INPUT_MOVE,STATUS_END=INPUT_END,STATUS_RECOGNIZED="r",STATUS_FAILED="f",STATUS_CANCELLED=INPUT_CANCEL;function round2(T){return Math.round(100*T)/100}exports.CLIENT_X=CLIENT_X,exports.CLIENT_Y=CLIENT_Y,exports.COMPUTE_INTERVAL=COMPUTE_INTERVAL,exports.DIRECTION_DOWN=DIRECTION_DOWN,exports.DIRECTION_LEFT=DIRECTION_LEFT,exports.DIRECTION_RIGHT=DIRECTION_RIGHT,exports.DIRECTION_UP=DIRECTION_UP,exports.INPUT_CANCEL=INPUT_CANCEL,exports.INPUT_END=INPUT_END,exports.INPUT_MOVE=INPUT_MOVE,exports.INPUT_START=INPUT_START,exports.MOUSE=MOUSE,exports.MOUSE_DOWN=MOUSE_DOWN,exports.MOUSE_MOVE=MOUSE_MOVE,exports.MOUSE_UP=MOUSE_UP,exports.NONE=NONE,exports.STATUS_CANCELLED=STATUS_CANCELLED,exports.STATUS_END=STATUS_END,exports.STATUS_FAILED=STATUS_FAILED,exports.STATUS_MOVE=STATUS_MOVE,exports.STATUS_POSSIBLE=STATUS_POSSIBLE,exports.STATUS_RECOGNIZED=STATUS_RECOGNIZED,exports.STATUS_START=STATUS_START,exports.SUPPORT_TOUCH=SUPPORT_TOUCH,exports.TOUCH=TOUCH,exports.TOUCH_CANCEL=TOUCH_CANCEL,exports.TOUCH_END=TOUCH_END,exports.TOUCH_MOVE=TOUCH_MOVE,exports.TOUCH_START=TOUCH_START,exports.isFunction=isFunction,exports.isRegExp=isRegExp,exports.round2=round2; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=Object.prototype.toString;var e=window.wx||"ontouchstart"in window;exports.CLIENT_X="clientX",exports.CLIENT_Y="clientY",exports.COMPUTE_INTERVAL=16,exports.DIRECTION_DOWN="down",exports.DIRECTION_LEFT="left",exports.DIRECTION_RIGHT="right",exports.DIRECTION_UP="up",exports.INPUT_CANCEL="cancel",exports.INPUT_END="end",exports.INPUT_MOVE="move",exports.INPUT_START="start",exports.MOUSE="mouse",exports.MOUSE_DOWN="mousedown",exports.MOUSE_MOVE="mousemove",exports.MOUSE_UP="mouseup",exports.NONE="none",exports.STATUS_CANCELLED="cancel",exports.STATUS_END="end",exports.STATUS_FAILED="f",exports.STATUS_MOVE="move",exports.STATUS_POSSIBLE="p",exports.STATUS_RECOGNIZED="r",exports.STATUS_START="start",exports.SUPPORT_TOUCH=e,exports.TOUCH="touch",exports.TOUCH_CANCEL="touchcancel",exports.TOUCH_END="touchend",exports.TOUCH_MOVE="touchmove",exports.TOUCH_START="touchstart",exports.isFunction=function(e){return"[object Function]"===t.call(e)},exports.isRegExp=function(e){return"[object RegExp]"===t.call(e)},exports.round2=function(t){return Math.round(100*t)/100}; |
{ | ||
"name": "@any-touch/shared", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "any-touch内部的公共函数.", | ||
@@ -19,3 +19,3 @@ "main": "dist/index.js", | ||
"sideEffects": false, | ||
"gitHead": "5f800767f00a55aff8d355b901360c9aedd12485" | ||
"gitHead": "4c1eb288b7a1f3bab7e1bebc3a225aff86b91e08" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10313
172