@kitware/vtk.js
Version:
Visualization Toolkit for the Web
18 lines (16 loc) • 348 B
JavaScript
const TYPE_MAPPING = {};
function has(type) {
return !!TYPE_MAPPING[type];
}
function get(type = 'http', options = {}) {
return TYPE_MAPPING[type](options);
}
function registerType(type, fn) {
TYPE_MAPPING[type] = fn;
}
var DataAccessHelper = {
get,
has,
registerType
};
export { DataAccessHelper as default, get, has, registerType };