import macro from 'vtk.js/Sources/macros';
function vtkTimeStepBasedAnimationHandlerProxy(publicAPI, model) { model.classHierarchy.push('vtkTimeStepBasedAnimationHandlerProxy');
publicAPI.setTime = (time) => { model.handler.setCurrentTimeStep(time); };
publicAPI.getFrames = () => { if (!model.handler) { return []; } return model.handler.getTimeSteps(); };
publicAPI.setInputAnimationHandler = (handler) => { model.handler = handler; }; }
const DEFAULT_VALUES = { handler: null, };
function extend(publicAPI, model, initialValues = {}) { Object.assign(model, DEFAULT_VALUES, initialValues);
macro.obj(publicAPI, model); macro.setGet(publicAPI, model, ['handler']);
vtkTimeStepBasedAnimationHandlerProxy(publicAPI, model);
macro.proxy(publicAPI, model); }
export const newInstance = macro.newInstance( extend, 'vtkTimeStepBasedAnimationHandlerProxy' );
export default { newInstance, extend };
|