@visactor/vtable
Version:
canvas table width high performance
29 lines (26 loc) • 775 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.Factory = void 0;
class Factory {
static registerComponent(key, component) {
Factory._components[key] = component;
}
static getComponent(key) {
return Factory._components[key];
}
static registerFunction(key, func) {
Factory._functions[key] = func;
}
static getFunction(key) {
return Factory._functions[key];
}
static registerCellType(key, cellType) {
Factory._cellTypes[key] = cellType;
}
static getCellType(key) {
return Factory._cellTypes[key];
}
}
exports.Factory = Factory, Factory._components = {}, Factory._functions = {}, Factory._cellTypes = {};
//# sourceMappingURL=factory.js.map