@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering
16 lines • 373 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.get = get;
exports.register = register;
exports.unregister = unregister;
const cache = {};
function get(type) {
return cache[type] || {};
}
function register(type, hook) {
cache[type] = hook;
}
function unregister(type) {
delete cache[type];
}
//# sourceMappingURL=hook.js.map