@antv/g-plugin-mobile-interaction
Advanced tools
Comparing version 0.9.19 to 0.9.20
@@ -1,2 +0,2 @@ | ||
import { __extends } from 'tslib'; | ||
import { __extends, __spreadArray, __read } from 'tslib'; | ||
import { AbstractRendererPlugin } from '@antv/g-lite'; | ||
@@ -76,3 +76,3 @@ | ||
function Plugin() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this; | ||
_this.name = 'mobile-interaction'; | ||
@@ -79,0 +79,0 @@ return _this; |
@@ -78,3 +78,3 @@ 'use strict'; | ||
function Plugin() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
var _this = _super.apply(this, tslib.__spreadArray([], tslib.__read(arguments), false)) || this; | ||
_this.name = 'mobile-interaction'; | ||
@@ -81,0 +81,0 @@ return _this; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).G=e.G||{},e.G.MobileInteraction={}),e.window.G)}(this,(function(e,t){"use strict";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};var o=function(){function e(){}return e.prototype.apply=function(t){var n=t.renderingService,o=t.config,i=t.contextService.getDomElement(),r=function(e){n.hooks.pointerDown.call(e)},c=function(e){n.hooks.pointerUp.call(e)},u=function(e){n.hooks.pointerMove.call(e)},s=function(e){n.hooks.pointerOver.call(e)},l=function(e){n.hooks.pointerOut.call(e)},a=function(e){n.hooks.click.call(e)},v=function(e){n.hooks.pointerCancel.call(e)};n.hooks.init.tap(e.tag,(function(){i.addEventListener("touchstart",r,!0),i.addEventListener("touchend",c,!0),i.addEventListener("touchmove",u,!0),i.addEventListener("touchcancel",v,!0),i.addEventListener("mouseout",l,!0),i.addEventListener("mouseover",s,!0),o.useNativeClickEvent&&i.addEventListener("click",a,!0)})),n.hooks.destroy.tap(e.tag,(function(){i.removeEventListener("touchstart",r,!0),i.removeEventListener("touchend",c,!0),i.removeEventListener("touchmove",u,!0),i.removeEventListener("touchcancel",v,!0),i.removeEventListener("mouseout",l,!0),i.removeEventListener("mouseover",s,!0),o.useNativeClickEvent&&i.removeEventListener("click",a,!0)}))},e.tag="MobileInteraction",e}(),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="mobile-interaction",t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(t,e),t.prototype.init=function(){this.addRenderingPlugin(new o)},t.prototype.destroy=function(){this.removeAllRenderingPlugins()},t}(t.AbstractRendererPlugin);e.Plugin=i})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).G=e.G||{},e.G.MobileInteraction={}),e.window.G)}(this,(function(e,t){"use strict";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};var o=function(){function e(){}return e.prototype.apply=function(t){var n=t.renderingService,o=t.config,r=t.contextService.getDomElement(),i=function(e){n.hooks.pointerDown.call(e)},c=function(e){n.hooks.pointerUp.call(e)},l=function(e){n.hooks.pointerMove.call(e)},u=function(e){n.hooks.pointerOver.call(e)},a=function(e){n.hooks.pointerOut.call(e)},s=function(e){n.hooks.click.call(e)},f=function(e){n.hooks.pointerCancel.call(e)};n.hooks.init.tap(e.tag,(function(){r.addEventListener("touchstart",i,!0),r.addEventListener("touchend",c,!0),r.addEventListener("touchmove",l,!0),r.addEventListener("touchcancel",f,!0),r.addEventListener("mouseout",a,!0),r.addEventListener("mouseover",u,!0),o.useNativeClickEvent&&r.addEventListener("click",s,!0)})),n.hooks.destroy.tap(e.tag,(function(){r.removeEventListener("touchstart",i,!0),r.removeEventListener("touchend",c,!0),r.removeEventListener("touchmove",l,!0),r.removeEventListener("touchcancel",f,!0),r.removeEventListener("mouseout",a,!0),r.removeEventListener("mouseover",u,!0),o.useNativeClickEvent&&r.removeEventListener("click",s,!0)}))},e.tag="MobileInteraction",e}(),r=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;i>r;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)c.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return c}(arguments),!1))||this;return t.name="mobile-interaction",t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(t,e),t.prototype.init=function(){this.addRenderingPlugin(new o)},t.prototype.destroy=function(){this.removeAllRenderingPlugins()},t}(t.AbstractRendererPlugin);e.Plugin=r})); | ||
//# sourceMappingURL=index.umd.min.js.map |
{ | ||
"name": "@antv/g-plugin-mobile-interaction", | ||
"version": "0.9.19", | ||
"version": "0.9.20", | ||
"description": "A G plugin listening events in mobile environment", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"tslib": "^2.5.3", | ||
"@antv/g-lite": "1.2.19" | ||
"@antv/g-lite": "1.2.20" | ||
}, | ||
@@ -39,0 +39,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
201
39997
+ Added@antv/g-lite@1.2.20(transitive)
- Removed@antv/g-lite@1.2.19(transitive)
Updated@antv/g-lite@1.2.20