UNPKG

768 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * 交互的基类。
5 */
6var Interaction = /** @class */ (function () {
7 function Interaction(view, cfg) {
8 this.view = view;
9 this.cfg = cfg;
10 }
11 /**
12 * 初始化。
13 */
14 Interaction.prototype.init = function () {
15 this.initEvents();
16 };
17 /**
18 * 绑定事件
19 */
20 Interaction.prototype.initEvents = function () { };
21 /**
22 * 销毁事件
23 */
24 Interaction.prototype.clearEvents = function () { };
25 /**
26 * 销毁。
27 */
28 Interaction.prototype.destroy = function () {
29 this.clearEvents();
30 };
31 return Interaction;
32}());
33exports.default = Interaction;
34//# sourceMappingURL=interaction.js.map
\No newline at end of file