@kitware/vtk.js 25.7.0 → 25.7.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.
@@ -701,9 +701,10 @@ function vtkClipClosedSurface(publicAPI, model) {
701
701
  copyPolygons(inputPolys, polys, inputScalars, firstPolyScalar, polyScalars, colors[0]); // TODO: Support triangle strips
702
702
 
703
703
  breakTriangleStrips(input.getStrips(), polys, inputScalars, firstStripScalar, polyScalars, colors[0]); // Check if the input has polys and quads or just triangles
704
- // TODO: Improve performance
705
704
 
706
- polyMax = Math.max.apply(Math, _toConsumableArray(inputPolys.getCellSizes()));
705
+ polyMax = inputPolys.getCellSizes().reduce(function (a, b) {
706
+ return a > b ? a : b;
707
+ }, 0);
707
708
  } // Arrays for storing the clipped lines and polys
708
709
 
709
710
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "25.7.0",
3
+ "version": "25.7.1",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",