@kitware/vtk.js 30.1.1 → 30.1.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.
@@ -87,8 +87,8 @@ function vtkPicker(publicAPI, model) {
87
87
  // Note that only vtkProp3D's can be picked by vtkPicker.
88
88
  props.forEach(prop => {
89
89
  const mapper = prop.getMapper();
90
- const propIsNotFullyTranslucent = prop.getProperty?.()?.getOpacity() > 0.0;
91
- const pickable = prop.getNestedPickable() && prop.getNestedVisibility() && propIsNotFullyTranslucent;
90
+ const propIsFullyTranslucent = prop.getProperty?.().getOpacity?.() === 0.0;
91
+ const pickable = prop.getNestedPickable() && prop.getNestedVisibility() && !propIsFullyTranslucent;
92
92
  if (!pickable) {
93
93
  // prop cannot be picked
94
94
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "30.1.1",
3
+ "version": "30.1.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",