@antv/g2
Version:
the Grammar of Graphics in Javascript
34 lines • 768 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 交互的基类。
*/
var Interaction = /** @class */ (function () {
function Interaction(view, cfg) {
this.view = view;
this.cfg = cfg;
}
/**
* 初始化。
*/
Interaction.prototype.init = function () {
this.initEvents();
};
/**
* 绑定事件
*/
Interaction.prototype.initEvents = function () { };
/**
* 销毁事件
*/
Interaction.prototype.clearEvents = function () { };
/**
* 销毁。
*/
Interaction.prototype.destroy = function () {
this.clearEvents();
};
return Interaction;
}());
exports.default = Interaction;
//# sourceMappingURL=interaction.js.map