UNPKG

@antv/g2plot

Version:

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

18 lines 663 B
import { __extends } from "tslib"; import { GM } from '@antv/g-gesture'; import { Interaction } from '@antv/g2'; var EVENT_TYPES = ['touchstart', 'touchmove', 'touchend', 'touchcancel']; var MobileInteraction = /** @class */ (function (_super) { __extends(MobileInteraction, _super); function MobileInteraction(cfg) { var _this = _super.call(this, cfg) || this; var container = _this.view.get('container'); _this.gm = new GM(container, { gestures: ['Pinch, Pan'], }); return _this; } return MobileInteraction; }(Interaction)); export default MobileInteraction; //# sourceMappingURL=mobile.js.map