@kitware/vtk.js 26.3.0 → 26.3.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.
@@ -427,10 +427,13 @@ function vtkColorTransferFunction(publicAPI, model) {
427
427
  // Returns a table of RGB colors at regular intervals along the function
428
428
 
429
429
 
430
- publicAPI.getTable = function (xStart, xEnd, size, table) {
431
- // Special case: If either the start or end is a NaN, then all any
430
+ publicAPI.getTable = function (xStart_, xEnd_, size, table) {
431
+ // To handle BigInt limitation
432
+ var xStart = Number(xStart_);
433
+ var xEnd = Number(xEnd_); // Special case: If either the start or end is a NaN, then all any
432
434
  // interpolation done on them is also a NaN. Therefore, fill the table with
433
435
  // the NaN color.
436
+
434
437
  if (isNan(xStart) || isNan(xEnd)) {
435
438
  for (var i = 0; i < size; i++) {
436
439
  table[i * 3 + 0] = model.nanColor[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "26.3.0",
3
+ "version": "26.3.1",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",