import vtkWidgetRepresentation from 'vtk.js/Sources/Widgets/Representations/WidgetRepresentation'; import { Behavior } from 'vtk.js/Sources/Widgets/Representations/WidgetRepresentation/Constants';
function vtkContextRepresentation(publicAPI, model) { model.classHierarchy.push('vtkContextRepresentation'); }
const DEFAULT_VALUES = { behavior: Behavior.CONTEXT, pickable: false, dragable: true, };
export function extend(publicAPI, model, initialValues = {}) { const newDefault = { ...DEFAULT_VALUES, ...initialValues }; vtkWidgetRepresentation.extend(publicAPI, model, newDefault); vtkContextRepresentation(publicAPI, model); }
export default { extend };
|