@kitware/vtk.js 27.2.0 → 27.2.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.
@@ -272,7 +272,7 @@ function extend(publicAPI, model) {
272
272
 
273
273
  macro.obj(publicAPI, model);
274
274
  macro.algo(publicAPI, model, 6, 0);
275
- macro.get(publicAPI, model, ['canvas', 'image', 'jsImageData', 'imageLoaded']);
275
+ macro.get(publicAPI, model, ['canvas', 'image', 'jsImageData', 'imageLoaded', 'resizable']);
276
276
  macro.setGet(publicAPI, model, ['repeat', 'edgeClamp', 'interpolate', 'mipLevel']);
277
277
  vtkTexture(publicAPI, model);
278
278
  } // ----------------------------------------------------------------------------
@@ -728,7 +728,9 @@ function vtkOpenGLTexture(publicAPI, model) {
728
728
 
729
729
  function useTexStorage(dataType) {
730
730
  if (model._openGLRenderWindow) {
731
- if (model.resizable) {
731
+ var _model$renderable;
732
+
733
+ if (model.resizable || (_model$renderable = model.renderable) !== null && _model$renderable !== void 0 && _model$renderable.getResizable()) {
732
734
  // Cannot use texStorage if the texture is supposed to be resizable.
733
735
  return false;
734
736
  }
@@ -879,7 +881,7 @@ function vtkOpenGLTexture(publicAPI, model) {
879
881
  tempData = invertedData[6 * j + _i3];
880
882
  }
881
883
 
882
- if (model._openGLRenderWindow.getWebgl2() && !model.resizable) {
884
+ if (useTexStorage(dataType)) {
883
885
  if (tempData != null) {
884
886
  model.context.texSubImage2D(model.context.TEXTURE_CUBE_MAP_POSITIVE_X + _i3, j, 0, 0, w, h, model.format, model.openGLDataType, tempData);
885
887
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "27.2.0",
3
+ "version": "27.2.1",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",