@kitware/vtk.js 28.5.0 → 28.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.
@@ -386,13 +386,17 @@ function vtkColorTransferFunction(publicAPI, model) {
386
386
  var idx = publicAPI.getAnnotatedValueIndexInternal(x);
387
387
 
388
388
  if (idx < 0 || numNodes === 0) {
389
- publicAPI.getNanColor(rgb);
389
+ var nanColor = publicAPI.getNanColorByReference();
390
+ rgb[0] = nanColor[0];
391
+ rgb[1] = nanColor[1];
392
+ rgb[2] = nanColor[2];
390
393
  } else {
391
394
  var nodeVal = [];
392
- publicAPI.getNodeValue(idx % numNodes, nodeVal);
393
- rgb[0] = nodeVal.r;
394
- rgb[1] = nodeVal.g;
395
- rgb[2] = nodeVal.b;
395
+ publicAPI.getNodeValue(idx % numNodes, nodeVal); // nodeVal[0] is the x value. nodeVal[1...3] is rgb.
396
+
397
+ rgb[0] = nodeVal[1];
398
+ rgb[1] = nodeVal[2];
399
+ rgb[2] = nodeVal[3];
396
400
  }
397
401
 
398
402
  return;
@@ -1019,7 +1023,10 @@ function vtkColorTransferFunction(publicAPI, model) {
1019
1023
  return;
1020
1024
  }
1021
1025
 
1022
- publicAPI.getNanColor(rgba);
1026
+ var nanColor = publicAPI.getNanColorByReference();
1027
+ rgba[0] = nanColor[0];
1028
+ rgba[1] = nanColor[1];
1029
+ rgba[2] = nanColor[2];
1023
1030
  rgba[3] = 1.0; // NanColor is RGB-only.
1024
1031
  }; //----------------------------------------------------------------------------
1025
1032
 
@@ -393,7 +393,9 @@ function vtkRenderWindowInteractor(publicAPI, model) {
393
393
 
394
394
 
395
395
  publicAPI.exitPointerLock = function () {
396
- return document.exitPointerLock();
396
+ var _document$exitPointer, _document;
397
+
398
+ return (_document$exitPointer = (_document = document).exitPointerLock) === null || _document$exitPointer === void 0 ? void 0 : _document$exitPointer.call(_document);
397
399
  }; //----------------------------------------------------------------------
398
400
 
399
401
 
@@ -72,14 +72,14 @@ export interface vtkVolumeMapper extends vtkAbstractMapper {
72
72
  * Get at what scale the quality is reduced when interacting for the first time with the volume
73
73
  * It should should be set before any call to render for this volume
74
74
  * The higher the scale is, the lower the quality of rendering is during interaction
75
- * @default 16
75
+ * @default 1
76
76
  */
77
77
  getInitialInteractionScale(): number;
78
78
 
79
79
  /**
80
80
  * Get by how much the sample distance should be increased when interacting
81
81
  * This feature is only implemented in the OpenGL volume mapper
82
- * @default 4
82
+ * @default 1
83
83
  */
84
84
  getInteractionSampleDistanceFactor(): number;
85
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "28.5.0",
3
+ "version": "28.5.1",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",