UNPKG

@antv/f-engine

Version:

FEngine 是 AntV F 系列可视化引擎的底层渲染引擎,为移动端提供了一套完整的渲染、事件、动画能力,能方便的构建可视化 UI

23 lines (22 loc) 590 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var Gesture = /** @class */function () { function Gesture(element) { this.el = element; } Gesture.prototype.on = function (eventName, listener) { if (!eventName) return; var el = this.el; el.addEventListener(eventName, listener); }; Gesture.prototype.off = function (eventName, listener) { if (!eventName) return; var el = this.el; el.removeEventListener(eventName, listener); }; return Gesture; }(); var _default = exports.default = Gesture;