@kitware/vtk.js 22.5.0 → 22.5.1

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.
@@ -189,7 +189,7 @@ function vtkMapper(publicAPI, model) {
189
189
  if (lut) {
190
190
  // Ensure that the lookup table is built
191
191
  lut.build();
192
- model.colorMapColors = lut.mapScalars(scalars, model.colorMode, -1);
192
+ model.colorMapColors = lut.mapScalars(scalars, model.colorMode, model.fieldDataTupleId);
193
193
  }
194
194
  }
195
195
 
@@ -158,7 +158,7 @@ function vtkMapper2D(publicAPI, model) {
158
158
  if (lut) {
159
159
  // Ensure that the lookup table is built
160
160
  lut.build();
161
- model.colorMapColors = lut.mapScalars(scalars, model.colorMode, -1);
161
+ model.colorMapColors = lut.mapScalars(scalars, model.colorMode, model.fieldDataTupleId);
162
162
  }
163
163
 
164
164
  model.colorBuildString = "".concat(publicAPI.getMTime()).concat(scalars.getMTime()).concat(alpha);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "22.5.0",
3
+ "version": "22.5.1",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",