vim-web 0.6.0-dev.1 → 0.6.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vim-web.js CHANGED
@@ -55023,14 +55023,14 @@ function createAdapter$2(viewer) {
55023
55023
  selectAtPointer: async (pos, add) => {
55024
55024
  const result = await viewer.raycaster.raycastFromScreen(pos);
55025
55025
  if (add) {
55026
- viewer.selection.add(result.object);
55026
+ viewer.selection.add(result == null ? void 0 : result.object);
55027
55027
  } else {
55028
- viewer.selection.select(result.object);
55028
+ viewer.selection.select(result == null ? void 0 : result.object);
55029
55029
  }
55030
55030
  },
55031
55031
  frameAtPointer: async (pos) => {
55032
55032
  const result = await viewer.raycaster.raycastFromScreen(pos);
55033
- viewer.camera.lerp(0.75).frame(result.object ?? "all");
55033
+ viewer.camera.lerp(0.75).frame((result == null ? void 0 : result.object) ?? "all");
55034
55034
  },
55035
55035
  zoom: async (value, pos) => {
55036
55036
  if (pos) {