Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 7x 7x 7x 1x 7x 7x 7x | import macro from 'vtk.js/Sources/macros'; import { Device, Input, } from 'vtk.js/Sources/Rendering/Core/RenderWindowInteractor/Constants'; // ---------------------------------------------------------------------------- // vtkCompositeVRManipulator methods // ---------------------------------------------------------------------------- function vtkCompositeVRManipulator(publicAPI, model) { // Set our className model.classHierarchy.push('vtkCompositeVRManipulator'); publicAPI.onButton3D = (interactorStyle, renderer, state, eventData) => {}; publicAPI.onMove3D = (interactorStyle, renderer, state, eventData) => {}; } // ---------------------------------------------------------------------------- // Object factory // ---------------------------------------------------------------------------- const DEFAULT_VALUES = { // device: null, // Device.RightController // input: null, // Input.TrackPad }; // ---------------------------------------------------------------------------- export function extend(publicAPI, model, initialValues = {}) { Object.assign(model, DEFAULT_VALUES, initialValues); // Create get-set macros macro.setGet(publicAPI, model, ['device', 'input']); // Object specific methods vtkCompositeVRManipulator(publicAPI, model); } // ---------------------------------------------------------------------------- export default { extend, Device, Input }; |