import macro from 'vtk.js/Sources/macros'; import vtkViewNodeFactory from 'vtk.js/Sources/Rendering/SceneGraph/ViewNodeFactory';
const CLASS_MAPPING = Object.create(null);
export function registerOverride(className, fn) { CLASS_MAPPING[className] = fn; }
function vtkWebGPUViewNodeFactory(publicAPI, model) { model.classHierarchy.push('vtkWebGPUViewNodeFactory'); }
const DEFAULT_VALUES = {};
export function extend(publicAPI, model, initialValues = {}) { Object.assign(model, DEFAULT_VALUES, initialValues);
model.overrides = CLASS_MAPPING;
vtkViewNodeFactory.extend(publicAPI, model, initialValues);
vtkWebGPUViewNodeFactory(publicAPI, model); }
export const newInstance = macro.newInstance( extend, 'vtkWebGPUViewNodeFactory' );
export default { newInstance, extend };
|