UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

20 lines 765 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var g_gesture_1 = require("@antv/g-gesture"); var g2_1 = require("@antv/g2"); var EVENT_TYPES = ['touchstart', 'touchmove', 'touchend', 'touchcancel']; var MobileInteraction = /** @class */ (function (_super) { tslib_1.__extends(MobileInteraction, _super); function MobileInteraction(cfg) { var _this = _super.call(this, cfg) || this; var container = _this.view.get('container'); _this.gm = new g_gesture_1.GM(container, { gestures: ['Pinch, Pan'], }); return _this; } return MobileInteraction; }(g2_1.Interaction)); exports.default = MobileInteraction; //# sourceMappingURL=mobile.js.map