@kitware/vtk.js 24.18.5 → 24.18.6

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.
@@ -741,9 +741,17 @@ function vtkOpenGLRenderWindow(publicAPI, model) {
741
741
  });
742
742
  };
743
743
 
744
+ var hardwareMaximumLineWidth;
745
+
744
746
  publicAPI.getHardwareMaximumLineWidth = function () {
747
+ // We cache the result of this function because `getParameter` is slow
748
+ if (hardwareMaximumLineWidth != null) {
749
+ return hardwareMaximumLineWidth;
750
+ }
751
+
745
752
  var gl = publicAPI.get3DContext();
746
753
  var lineWidthRange = gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE);
754
+ hardwareMaximumLineWidth = lineWidthRange[1];
747
755
  return lineWidthRange[1];
748
756
  };
749
757
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "24.18.5",
3
+ "version": "24.18.6",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",