@kitware/vtk.js 26.5.1 → 26.5.3

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.
@@ -66,7 +66,7 @@ export interface vtkViewProxy extends VtkProxy {
66
66
  getInteractor(): vtkRenderWindowInteractor;
67
67
  getInteractorStyle2D(): vtkInteractorStyle;
68
68
  getInteractorStyle3D(): vtkInteractorStyle;
69
- getOpenglRenderWindow(): vtkOpenGLRenderWindow;
69
+ getOpenGLRenderWindow(): vtkOpenGLRenderWindow;
70
70
  getOrientationAxesType(): string;
71
71
  getPresetToOrientationAxes(): any;
72
72
  getRenderer(): vtkRenderer;
@@ -549,10 +549,7 @@ function vtkOpenGLImageMapper(publicAPI, model) {
549
549
  }
550
550
 
551
551
  var dataType = imgScalars.getDataType();
552
- var numComp = imgScalars.getNumberOfComponents(); // Re-allocate the texture because vtkOpenGLTexture uses texStorage2D
553
- // which makes the texture immutable.
554
-
555
- model.openGLTexture.releaseGraphicsResources(model._openGLRenderWindow);
552
+ var numComp = imgScalars.getNumberOfComponents();
556
553
  var actorProperty = actor.getProperty(); // set interpolation on the texture based on property setting
557
554
 
558
555
  var iType = actorProperty.getInterpolationType();
@@ -875,9 +872,15 @@ function extend(publicAPI, model) {
875
872
  vtkViewNode.extend(publicAPI, model, initialValues);
876
873
  vtkReplacementShaderMapper.implementReplaceShaderCoincidentOffset(publicAPI, model, initialValues);
877
874
  model.tris = vtkHelper.newInstance();
878
- model.openGLTexture = vtkOpenGLTexture.newInstance();
879
- model.colorTexture = vtkOpenGLTexture.newInstance();
880
- model.pwfTexture = vtkOpenGLTexture.newInstance();
875
+ model.openGLTexture = vtkOpenGLTexture.newInstance({
876
+ resizable: true
877
+ });
878
+ model.colorTexture = vtkOpenGLTexture.newInstance({
879
+ resizable: true
880
+ });
881
+ model.pwfTexture = vtkOpenGLTexture.newInstance({
882
+ resizable: true
883
+ });
881
884
  model.imagemat = mat4.identity(new Float64Array(16));
882
885
  model.imagematinv = mat4.identity(new Float64Array(16)); // Build VTK API
883
886
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "26.5.1",
3
+ "version": "26.5.3",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",