@visactor/vchart
Version:
charts lib based @visactor/VGrammar
23 lines (18 loc) • 459 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.BasePlugin = void 0;
const id_1 = require("../../util/id");
class BasePlugin {
constructor(type) {
this.id = (0, id_1.createID)(), this.name = `${type}_${this.id}`;
}
onAdd(service) {
this.service = service;
}
release() {
this.service = null;
}
}
exports.BasePlugin = BasePlugin;
//# sourceMappingURL=base-plugin.js.map