@antv/g6
Version:
graph visualization frame work
27 lines (19 loc) • 606 B
JavaScript
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/**
* @fileOverview controller base
* @author huangtonger@aliyun.com
*/
var Util = require('../util/');
var Base = function () {
Base.prototype.getDefaultCfg = function getDefaultCfg() {
return {};
};
function Base(cfg) {
_classCallCheck(this, Base);
var defaultCfg = this.getDefaultCfg();
Util.mix(this, defaultCfg, cfg);
}
Base.prototype.destroy = function destroy() {};
return Base;
}();
module.exports = Base;