@antv/g-plugin-mobile-interaction
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -385,27 +385,2 @@ import { inject, ContextService, singleton, RenderingPluginContribution, Module } from '@antv/g'; | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
function _defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
} | ||
var _class; | ||
@@ -420,77 +395,74 @@ | ||
function MobileInteractionPlugin() { | ||
_classCallCheck(this, MobileInteractionPlugin); | ||
this.contextService = void 0; | ||
} | ||
_createClass(MobileInteractionPlugin, [{ | ||
key: "apply", | ||
value: function apply(renderingService) { | ||
// 获取小程序上下文 | ||
var canvasEl = this.contextService.getDomElement(); | ||
var _proto = MobileInteractionPlugin.prototype; | ||
var onPointerDown = function onPointerDown(ev) { | ||
renderingService.hooks.pointerDown.call(ev); | ||
}; | ||
_proto.apply = function apply(renderingService) { | ||
// 获取小程序上下文 | ||
var canvasEl = this.contextService.getDomElement(); | ||
var onPointerUp = function onPointerUp(ev) { | ||
renderingService.hooks.pointerUp.call(ev); | ||
}; | ||
var onPointerDown = function onPointerDown(ev) { | ||
renderingService.hooks.pointerDown.call(ev); | ||
}; | ||
var onPointerMove = function onPointerMove(ev) { | ||
// 触发 G 定义的标准 pointerMove 事件 | ||
renderingService.hooks.pointerMove.call(ev); | ||
}; | ||
var onPointerUp = function onPointerUp(ev) { | ||
renderingService.hooks.pointerUp.call(ev); | ||
}; | ||
var onPointerOver = function onPointerOver(ev) { | ||
renderingService.hooks.pointerOver.call(ev); | ||
}; | ||
var onPointerMove = function onPointerMove(ev) { | ||
// 触发 G 定义的标准 pointerMove 事件 | ||
renderingService.hooks.pointerMove.call(ev); | ||
}; | ||
var onPointerOut = function onPointerOut(ev) { | ||
renderingService.hooks.pointerOut.call(ev); | ||
}; | ||
var onPointerOver = function onPointerOver(ev) { | ||
renderingService.hooks.pointerOver.call(ev); | ||
}; | ||
var onPointerCancel = function onPointerCancel(ev) { | ||
renderingService.hooks.pointerCancel.call(ev); | ||
}; | ||
var onPointerOut = function onPointerOut(ev) { | ||
renderingService.hooks.pointerOut.call(ev); | ||
}; | ||
renderingService.hooks.init.tapPromise(MobileInteractionPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
// 基于小程序上下文的事件监听方式,绑定事件监听,可以参考下面基于 DOM 的方式 | ||
canvasEl.addEventListener('touchstart', onPointerDown, true); | ||
canvasEl.addEventListener('touchend', onPointerUp, true); | ||
canvasEl.addEventListener('touchmove', onPointerMove, true); | ||
canvasEl.addEventListener('touchcancel', onPointerCancel, true); // FIXME: 这里不应该只在 canvasEl 上监听 mousemove 和 mouseup,而应该在更高层级的节点上例如 document 监听。 | ||
// 否则无法判断是否移出了 canvasEl | ||
var onPointerCancel = function onPointerCancel(ev) { | ||
renderingService.hooks.pointerCancel.call(ev); | ||
}; | ||
canvasEl.addEventListener('mousemove', onPointerMove, true); | ||
canvasEl.addEventListener('mousedown', onPointerDown, true); | ||
canvasEl.addEventListener('mouseout', onPointerOut, true); | ||
canvasEl.addEventListener('mouseover', onPointerOver, true); | ||
canvasEl.addEventListener('mouseup', onPointerUp, true); | ||
renderingService.hooks.init.tapPromise(MobileInteractionPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
// 基于小程序上下文的事件监听方式,绑定事件监听,可以参考下面基于 DOM 的方式 | ||
canvasEl.addEventListener('touchstart', onPointerDown, true); | ||
canvasEl.addEventListener('touchend', onPointerUp, true); | ||
canvasEl.addEventListener('touchmove', onPointerMove, true); | ||
canvasEl.addEventListener('touchcancel', onPointerCancel, true); // FIXME: 这里不应该只在 canvasEl 上监听 mousemove 和 mouseup,而应该在更高层级的节点上例如 document 监听。 | ||
// 否则无法判断是否移出了 canvasEl | ||
case 9: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
canvasEl.addEventListener('mousemove', onPointerMove, true); | ||
canvasEl.addEventListener('mousedown', onPointerDown, true); | ||
canvasEl.addEventListener('mouseout', onPointerOut, true); | ||
canvasEl.addEventListener('mouseover', onPointerOver, true); | ||
canvasEl.addEventListener('mouseup', onPointerUp, true); | ||
case 9: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
}, _callee); | ||
}))); | ||
renderingService.hooks.destroy.tap(MobileInteractionPlugin_1.tag, function () { | ||
// 基于小程序上下文的事件监听方式,移除事件监听 | ||
canvasEl.removeEventListener('touchstart', onPointerDown, true); | ||
canvasEl.removeEventListener('touchend', onPointerUp, true); | ||
canvasEl.removeEventListener('touchmove', onPointerMove, true); | ||
canvasEl.removeEventListener('touchcancel', onPointerCancel, true); | ||
canvasEl.removeEventListener('mousemove', onPointerMove, true); | ||
canvasEl.removeEventListener('mousedown', onPointerDown, true); | ||
canvasEl.removeEventListener('mouseout', onPointerOut, true); | ||
canvasEl.removeEventListener('mouseover', onPointerOver, true); | ||
canvasEl.removeEventListener('mouseup', onPointerUp, true); | ||
}); | ||
} | ||
}]); | ||
} | ||
}, _callee); | ||
}))); | ||
renderingService.hooks.destroy.tap(MobileInteractionPlugin_1.tag, function () { | ||
// 基于小程序上下文的事件监听方式,移除事件监听 | ||
canvasEl.removeEventListener('touchstart', onPointerDown, true); | ||
canvasEl.removeEventListener('touchend', onPointerUp, true); | ||
canvasEl.removeEventListener('touchmove', onPointerMove, true); | ||
canvasEl.removeEventListener('touchcancel', onPointerCancel, true); | ||
canvasEl.removeEventListener('mousemove', onPointerMove, true); | ||
canvasEl.removeEventListener('mousedown', onPointerDown, true); | ||
canvasEl.removeEventListener('mouseout', onPointerOut, true); | ||
canvasEl.removeEventListener('mouseover', onPointerOver, true); | ||
canvasEl.removeEventListener('mouseup', onPointerUp, true); | ||
}); | ||
}; | ||
@@ -511,19 +483,15 @@ return MobileInteractionPlugin; | ||
function Plugin() { | ||
_classCallCheck(this, Plugin); | ||
this.name = 'mobile-interaction'; | ||
} | ||
_createClass(Plugin, [{ | ||
key: "init", | ||
value: function init(container) { | ||
container.load(containerModule, true); | ||
} | ||
}, { | ||
key: "destroy", | ||
value: function destroy(container) { | ||
container.unload(containerModule); | ||
} | ||
}]); | ||
var _proto = Plugin.prototype; | ||
_proto.init = function init(container) { | ||
container.load(containerModule, true); | ||
}; | ||
_proto.destroy = function destroy(container) { | ||
container.unload(containerModule); | ||
}; | ||
return Plugin; | ||
@@ -530,0 +498,0 @@ }(); |
@@ -389,27 +389,2 @@ 'use strict'; | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
function _defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
} | ||
var _class; | ||
@@ -424,77 +399,74 @@ | ||
function MobileInteractionPlugin() { | ||
_classCallCheck(this, MobileInteractionPlugin); | ||
this.contextService = void 0; | ||
} | ||
_createClass(MobileInteractionPlugin, [{ | ||
key: "apply", | ||
value: function apply(renderingService) { | ||
// 获取小程序上下文 | ||
var canvasEl = this.contextService.getDomElement(); | ||
var _proto = MobileInteractionPlugin.prototype; | ||
var onPointerDown = function onPointerDown(ev) { | ||
renderingService.hooks.pointerDown.call(ev); | ||
}; | ||
_proto.apply = function apply(renderingService) { | ||
// 获取小程序上下文 | ||
var canvasEl = this.contextService.getDomElement(); | ||
var onPointerUp = function onPointerUp(ev) { | ||
renderingService.hooks.pointerUp.call(ev); | ||
}; | ||
var onPointerDown = function onPointerDown(ev) { | ||
renderingService.hooks.pointerDown.call(ev); | ||
}; | ||
var onPointerMove = function onPointerMove(ev) { | ||
// 触发 G 定义的标准 pointerMove 事件 | ||
renderingService.hooks.pointerMove.call(ev); | ||
}; | ||
var onPointerUp = function onPointerUp(ev) { | ||
renderingService.hooks.pointerUp.call(ev); | ||
}; | ||
var onPointerOver = function onPointerOver(ev) { | ||
renderingService.hooks.pointerOver.call(ev); | ||
}; | ||
var onPointerMove = function onPointerMove(ev) { | ||
// 触发 G 定义的标准 pointerMove 事件 | ||
renderingService.hooks.pointerMove.call(ev); | ||
}; | ||
var onPointerOut = function onPointerOut(ev) { | ||
renderingService.hooks.pointerOut.call(ev); | ||
}; | ||
var onPointerOver = function onPointerOver(ev) { | ||
renderingService.hooks.pointerOver.call(ev); | ||
}; | ||
var onPointerCancel = function onPointerCancel(ev) { | ||
renderingService.hooks.pointerCancel.call(ev); | ||
}; | ||
var onPointerOut = function onPointerOut(ev) { | ||
renderingService.hooks.pointerOut.call(ev); | ||
}; | ||
renderingService.hooks.init.tapPromise(MobileInteractionPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
// 基于小程序上下文的事件监听方式,绑定事件监听,可以参考下面基于 DOM 的方式 | ||
canvasEl.addEventListener('touchstart', onPointerDown, true); | ||
canvasEl.addEventListener('touchend', onPointerUp, true); | ||
canvasEl.addEventListener('touchmove', onPointerMove, true); | ||
canvasEl.addEventListener('touchcancel', onPointerCancel, true); // FIXME: 这里不应该只在 canvasEl 上监听 mousemove 和 mouseup,而应该在更高层级的节点上例如 document 监听。 | ||
// 否则无法判断是否移出了 canvasEl | ||
var onPointerCancel = function onPointerCancel(ev) { | ||
renderingService.hooks.pointerCancel.call(ev); | ||
}; | ||
canvasEl.addEventListener('mousemove', onPointerMove, true); | ||
canvasEl.addEventListener('mousedown', onPointerDown, true); | ||
canvasEl.addEventListener('mouseout', onPointerOut, true); | ||
canvasEl.addEventListener('mouseover', onPointerOver, true); | ||
canvasEl.addEventListener('mouseup', onPointerUp, true); | ||
renderingService.hooks.init.tapPromise(MobileInteractionPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
// 基于小程序上下文的事件监听方式,绑定事件监听,可以参考下面基于 DOM 的方式 | ||
canvasEl.addEventListener('touchstart', onPointerDown, true); | ||
canvasEl.addEventListener('touchend', onPointerUp, true); | ||
canvasEl.addEventListener('touchmove', onPointerMove, true); | ||
canvasEl.addEventListener('touchcancel', onPointerCancel, true); // FIXME: 这里不应该只在 canvasEl 上监听 mousemove 和 mouseup,而应该在更高层级的节点上例如 document 监听。 | ||
// 否则无法判断是否移出了 canvasEl | ||
case 9: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
canvasEl.addEventListener('mousemove', onPointerMove, true); | ||
canvasEl.addEventListener('mousedown', onPointerDown, true); | ||
canvasEl.addEventListener('mouseout', onPointerOut, true); | ||
canvasEl.addEventListener('mouseover', onPointerOver, true); | ||
canvasEl.addEventListener('mouseup', onPointerUp, true); | ||
case 9: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
}, _callee); | ||
}))); | ||
renderingService.hooks.destroy.tap(MobileInteractionPlugin_1.tag, function () { | ||
// 基于小程序上下文的事件监听方式,移除事件监听 | ||
canvasEl.removeEventListener('touchstart', onPointerDown, true); | ||
canvasEl.removeEventListener('touchend', onPointerUp, true); | ||
canvasEl.removeEventListener('touchmove', onPointerMove, true); | ||
canvasEl.removeEventListener('touchcancel', onPointerCancel, true); | ||
canvasEl.removeEventListener('mousemove', onPointerMove, true); | ||
canvasEl.removeEventListener('mousedown', onPointerDown, true); | ||
canvasEl.removeEventListener('mouseout', onPointerOut, true); | ||
canvasEl.removeEventListener('mouseover', onPointerOver, true); | ||
canvasEl.removeEventListener('mouseup', onPointerUp, true); | ||
}); | ||
} | ||
}]); | ||
} | ||
}, _callee); | ||
}))); | ||
renderingService.hooks.destroy.tap(MobileInteractionPlugin_1.tag, function () { | ||
// 基于小程序上下文的事件监听方式,移除事件监听 | ||
canvasEl.removeEventListener('touchstart', onPointerDown, true); | ||
canvasEl.removeEventListener('touchend', onPointerUp, true); | ||
canvasEl.removeEventListener('touchmove', onPointerMove, true); | ||
canvasEl.removeEventListener('touchcancel', onPointerCancel, true); | ||
canvasEl.removeEventListener('mousemove', onPointerMove, true); | ||
canvasEl.removeEventListener('mousedown', onPointerDown, true); | ||
canvasEl.removeEventListener('mouseout', onPointerOut, true); | ||
canvasEl.removeEventListener('mouseover', onPointerOver, true); | ||
canvasEl.removeEventListener('mouseup', onPointerUp, true); | ||
}); | ||
}; | ||
@@ -515,19 +487,15 @@ return MobileInteractionPlugin; | ||
function Plugin() { | ||
_classCallCheck(this, Plugin); | ||
this.name = 'mobile-interaction'; | ||
} | ||
_createClass(Plugin, [{ | ||
key: "init", | ||
value: function init(container) { | ||
container.load(containerModule, true); | ||
} | ||
}, { | ||
key: "destroy", | ||
value: function destroy(container) { | ||
container.unload(containerModule); | ||
} | ||
}]); | ||
var _proto = Plugin.prototype; | ||
_proto.init = function init(container) { | ||
container.load(containerModule, true); | ||
}; | ||
_proto.destroy = function destroy(container) { | ||
container.unload(containerModule); | ||
}; | ||
return Plugin; | ||
@@ -534,0 +502,0 @@ }(); |
@@ -388,27 +388,2 @@ (function (global, factory) { | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
function _defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
} | ||
/****************************************************************************** | ||
@@ -449,77 +424,74 @@ Copyright (c) Microsoft Corporation. | ||
function MobileInteractionPlugin() { | ||
_classCallCheck(this, MobileInteractionPlugin); | ||
this.contextService = void 0; | ||
} | ||
_createClass(MobileInteractionPlugin, [{ | ||
key: "apply", | ||
value: function apply(renderingService) { | ||
// 获取小程序上下文 | ||
var canvasEl = this.contextService.getDomElement(); | ||
var _proto = MobileInteractionPlugin.prototype; | ||
var onPointerDown = function onPointerDown(ev) { | ||
renderingService.hooks.pointerDown.call(ev); | ||
}; | ||
_proto.apply = function apply(renderingService) { | ||
// 获取小程序上下文 | ||
var canvasEl = this.contextService.getDomElement(); | ||
var onPointerUp = function onPointerUp(ev) { | ||
renderingService.hooks.pointerUp.call(ev); | ||
}; | ||
var onPointerDown = function onPointerDown(ev) { | ||
renderingService.hooks.pointerDown.call(ev); | ||
}; | ||
var onPointerMove = function onPointerMove(ev) { | ||
// 触发 G 定义的标准 pointerMove 事件 | ||
renderingService.hooks.pointerMove.call(ev); | ||
}; | ||
var onPointerUp = function onPointerUp(ev) { | ||
renderingService.hooks.pointerUp.call(ev); | ||
}; | ||
var onPointerOver = function onPointerOver(ev) { | ||
renderingService.hooks.pointerOver.call(ev); | ||
}; | ||
var onPointerMove = function onPointerMove(ev) { | ||
// 触发 G 定义的标准 pointerMove 事件 | ||
renderingService.hooks.pointerMove.call(ev); | ||
}; | ||
var onPointerOut = function onPointerOut(ev) { | ||
renderingService.hooks.pointerOut.call(ev); | ||
}; | ||
var onPointerOver = function onPointerOver(ev) { | ||
renderingService.hooks.pointerOver.call(ev); | ||
}; | ||
var onPointerCancel = function onPointerCancel(ev) { | ||
renderingService.hooks.pointerCancel.call(ev); | ||
}; | ||
var onPointerOut = function onPointerOut(ev) { | ||
renderingService.hooks.pointerOut.call(ev); | ||
}; | ||
renderingService.hooks.init.tapPromise(MobileInteractionPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
// 基于小程序上下文的事件监听方式,绑定事件监听,可以参考下面基于 DOM 的方式 | ||
canvasEl.addEventListener('touchstart', onPointerDown, true); | ||
canvasEl.addEventListener('touchend', onPointerUp, true); | ||
canvasEl.addEventListener('touchmove', onPointerMove, true); | ||
canvasEl.addEventListener('touchcancel', onPointerCancel, true); // FIXME: 这里不应该只在 canvasEl 上监听 mousemove 和 mouseup,而应该在更高层级的节点上例如 document 监听。 | ||
// 否则无法判断是否移出了 canvasEl | ||
var onPointerCancel = function onPointerCancel(ev) { | ||
renderingService.hooks.pointerCancel.call(ev); | ||
}; | ||
canvasEl.addEventListener('mousemove', onPointerMove, true); | ||
canvasEl.addEventListener('mousedown', onPointerDown, true); | ||
canvasEl.addEventListener('mouseout', onPointerOut, true); | ||
canvasEl.addEventListener('mouseover', onPointerOver, true); | ||
canvasEl.addEventListener('mouseup', onPointerUp, true); | ||
renderingService.hooks.init.tapPromise(MobileInteractionPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
// 基于小程序上下文的事件监听方式,绑定事件监听,可以参考下面基于 DOM 的方式 | ||
canvasEl.addEventListener('touchstart', onPointerDown, true); | ||
canvasEl.addEventListener('touchend', onPointerUp, true); | ||
canvasEl.addEventListener('touchmove', onPointerMove, true); | ||
canvasEl.addEventListener('touchcancel', onPointerCancel, true); // FIXME: 这里不应该只在 canvasEl 上监听 mousemove 和 mouseup,而应该在更高层级的节点上例如 document 监听。 | ||
// 否则无法判断是否移出了 canvasEl | ||
case 9: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
canvasEl.addEventListener('mousemove', onPointerMove, true); | ||
canvasEl.addEventListener('mousedown', onPointerDown, true); | ||
canvasEl.addEventListener('mouseout', onPointerOut, true); | ||
canvasEl.addEventListener('mouseover', onPointerOver, true); | ||
canvasEl.addEventListener('mouseup', onPointerUp, true); | ||
case 9: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
}, _callee); | ||
}))); | ||
renderingService.hooks.destroy.tap(MobileInteractionPlugin_1.tag, function () { | ||
// 基于小程序上下文的事件监听方式,移除事件监听 | ||
canvasEl.removeEventListener('touchstart', onPointerDown, true); | ||
canvasEl.removeEventListener('touchend', onPointerUp, true); | ||
canvasEl.removeEventListener('touchmove', onPointerMove, true); | ||
canvasEl.removeEventListener('touchcancel', onPointerCancel, true); | ||
canvasEl.removeEventListener('mousemove', onPointerMove, true); | ||
canvasEl.removeEventListener('mousedown', onPointerDown, true); | ||
canvasEl.removeEventListener('mouseout', onPointerOut, true); | ||
canvasEl.removeEventListener('mouseover', onPointerOver, true); | ||
canvasEl.removeEventListener('mouseup', onPointerUp, true); | ||
}); | ||
} | ||
}]); | ||
} | ||
}, _callee); | ||
}))); | ||
renderingService.hooks.destroy.tap(MobileInteractionPlugin_1.tag, function () { | ||
// 基于小程序上下文的事件监听方式,移除事件监听 | ||
canvasEl.removeEventListener('touchstart', onPointerDown, true); | ||
canvasEl.removeEventListener('touchend', onPointerUp, true); | ||
canvasEl.removeEventListener('touchmove', onPointerMove, true); | ||
canvasEl.removeEventListener('touchcancel', onPointerCancel, true); | ||
canvasEl.removeEventListener('mousemove', onPointerMove, true); | ||
canvasEl.removeEventListener('mousedown', onPointerDown, true); | ||
canvasEl.removeEventListener('mouseout', onPointerOut, true); | ||
canvasEl.removeEventListener('mouseover', onPointerOver, true); | ||
canvasEl.removeEventListener('mouseup', onPointerUp, true); | ||
}); | ||
}; | ||
@@ -540,19 +512,15 @@ return MobileInteractionPlugin; | ||
function Plugin() { | ||
_classCallCheck(this, Plugin); | ||
this.name = 'mobile-interaction'; | ||
} | ||
_createClass(Plugin, [{ | ||
key: "init", | ||
value: function init(container) { | ||
container.load(containerModule, true); | ||
} | ||
}, { | ||
key: "destroy", | ||
value: function destroy(container) { | ||
container.unload(containerModule); | ||
} | ||
}]); | ||
var _proto = Plugin.prototype; | ||
_proto.init = function init(container) { | ||
container.load(containerModule, true); | ||
}; | ||
_proto.destroy = function destroy(container) { | ||
container.unload(containerModule); | ||
}; | ||
return Plugin; | ||
@@ -559,0 +527,0 @@ }(); |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g")):"function"==typeof define&&define.amd?define(["exports","@antv/g"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.MobileInteraction={}),t.window.G)}(this,(function(t,e){"use strict";function r(){ | ||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | ||
r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),i=new j(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l={};function h(){}function v(){}function p(){}var d={};u(d,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(k([])));m&&m!==e&&n.call(m,i)&&(d=m);var g=p.prototype=h.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return v.prototype=p,u(g,"constructor",p),u(p,"constructor",v),v.displayName=u(p,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(L.prototype),u(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(this.prev>=i.tryLoc){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(i.catchLoc>this.prev)return r(i.catchLoc,!0);if(i.finallyLoc>this.prev)return r(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(this.prev>=o.tryLoc&&n.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;e.length>r;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e,r,n){var o,i=arguments.length,a=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(3>i?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}var f,s,l=(f=function(){function t(){i(this,t),this.contextService=void 0}return c(t,[{key:"apply",value:function(t){var e=this.contextService.getDomElement(),n=function(e){t.hooks.pointerDown.call(e)},i=function(e){t.hooks.pointerUp.call(e)},a=function(e){t.hooks.pointerMove.call(e)},c=function(e){t.hooks.pointerOver.call(e)},u=function(e){t.hooks.pointerOut.call(e)},f=function(e){t.hooks.pointerCancel.call(e)};t.hooks.init.tapPromise(s.tag,o(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.addEventListener("touchstart",n,!0),e.addEventListener("touchend",i,!0),e.addEventListener("touchmove",a,!0),e.addEventListener("touchcancel",f,!0),e.addEventListener("mousemove",a,!0),e.addEventListener("mousedown",n,!0),e.addEventListener("mouseout",u,!0),e.addEventListener("mouseover",c,!0),e.addEventListener("mouseup",i,!0);case 9:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(s.tag,(function(){e.removeEventListener("touchstart",n,!0),e.removeEventListener("touchend",i,!0),e.removeEventListener("touchmove",a,!0),e.removeEventListener("touchcancel",f,!0),e.removeEventListener("mousemove",a,!0),e.removeEventListener("mousedown",n,!0),e.removeEventListener("mouseout",u,!0),e.removeEventListener("mouseover",c,!0),e.removeEventListener("mouseup",i,!0)}))}}]),t}(),f.tag="MobileInteraction",s=f);u([e.inject(e.ContextService),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],l.prototype,"contextService",void 0),l=s=u([e.singleton({contrib:e.RenderingPluginContribution})],l);var h=e.Module((function(t){t(l)}));t.Plugin=function(){function t(){i(this,t),this.name="mobile-interaction"}return c(t,[{key:"init",value:function(t){t.load(h,!0)}},{key:"destroy",value:function(t){t.unload(h)}}]),t}(),Object.defineProperty(t,"__esModule",{value:!0})})); | ||
r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),i=new j(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function h(){}function v(){}function p(){}var d={};u(d,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(O([])));m&&m!==e&&n.call(m,i)&&(d=m);var g=p.prototype=h.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return v.prototype=p,u(g,"constructor",p),u(p,"constructor",v),v.displayName=u(p,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(L.prototype),u(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(this.prev>=i.tryLoc){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(i.catchLoc>this.prev)return r(i.catchLoc,!0);if(i.finallyLoc>this.prev)return r(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(this.prev>=o.tryLoc&&n.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(t,e,r,n){var o,i=arguments.length,a=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(3>i?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}var a,c,u=(a=function(){function t(){this.contextService=void 0}return t.prototype.apply=function(t){var e=this.contextService.getDomElement(),n=function(e){t.hooks.pointerDown.call(e)},i=function(e){t.hooks.pointerUp.call(e)},a=function(e){t.hooks.pointerMove.call(e)},u=function(e){t.hooks.pointerOver.call(e)},s=function(e){t.hooks.pointerOut.call(e)},f=function(e){t.hooks.pointerCancel.call(e)};t.hooks.init.tapPromise(c.tag,o(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.addEventListener("touchstart",n,!0),e.addEventListener("touchend",i,!0),e.addEventListener("touchmove",a,!0),e.addEventListener("touchcancel",f,!0),e.addEventListener("mousemove",a,!0),e.addEventListener("mousedown",n,!0),e.addEventListener("mouseout",s,!0),e.addEventListener("mouseover",u,!0),e.addEventListener("mouseup",i,!0);case 9:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(c.tag,(function(){e.removeEventListener("touchstart",n,!0),e.removeEventListener("touchend",i,!0),e.removeEventListener("touchmove",a,!0),e.removeEventListener("touchcancel",f,!0),e.removeEventListener("mousemove",a,!0),e.removeEventListener("mousedown",n,!0),e.removeEventListener("mouseout",s,!0),e.removeEventListener("mouseover",u,!0),e.removeEventListener("mouseup",i,!0)}))},t}(),a.tag="MobileInteraction",c=a);i([e.inject(e.ContextService),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],u.prototype,"contextService",void 0),u=c=i([e.singleton({contrib:e.RenderingPluginContribution})],u);var s=e.Module((function(t){t(u)}));t.Plugin=function(){function t(){this.name="mobile-interaction"}var e=t.prototype;return e.init=function(t){t.load(s,!0)},e.destroy=function(t){t.unload(s)},t}(),Object.defineProperty(t,"__esModule",{value:!0})})); |
{ | ||
"name": "@antv/g-plugin-mobile-interaction", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A G plugin listening events in mobile environment", | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "90eceace1d9a96e36b20926e853b958c03cf3a67" | ||
"gitHead": "f0d3036ed1439859167f135b8a61c84a415582df" | ||
} |
71865
1334