@thewtex/vtk.js-esm
Version:
Visualization Toolkit for the Web
13 lines (10 loc) • 363 B
JavaScript
function define(constructor, factory, prototype) {
constructor.prototype = factory.prototype = prototype;
prototype.constructor = constructor;
}
function extend(parent, definition) {
var prototype = Object.create(parent.prototype);
for (var key in definition) prototype[key] = definition[key];
return prototype;
}
export { define as d, extend as e };