@kitware/vtk.js 28.13.0 → 28.13.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.
@@ -483,7 +483,9 @@ function vtkOpenGLImageMapper(publicAPI, model) {
483
483
  const cSize = cWidth * textureHeight * 3;
484
484
  const cTable = new Uint8Array(cSize);
485
485
  if (!model.colorTexture) {
486
- model.colorTexture = vtkOpenGLTexture.newInstance();
486
+ model.colorTexture = vtkOpenGLTexture.newInstance({
487
+ resizable: true
488
+ });
487
489
  model.colorTexture.setOpenGLRenderWindow(model._openGLRenderWindow);
488
490
  }
489
491
  // set interpolation on the texture based on property setting
@@ -544,7 +546,9 @@ function vtkOpenGLImageMapper(publicAPI, model) {
544
546
  const pwfSize = pwfWidth * textureHeight;
545
547
  const pwfTable = new Uint8Array(pwfSize);
546
548
  if (!model.pwfTexture) {
547
- model.pwfTexture = vtkOpenGLTexture.newInstance();
549
+ model.pwfTexture = vtkOpenGLTexture.newInstance({
550
+ resizable: true
551
+ });
548
552
  model.pwfTexture.setOpenGLRenderWindow(model._openGLRenderWindow);
549
553
  }
550
554
  // set interpolation on the texture based on property setting
@@ -632,7 +636,9 @@ function vtkOpenGLImageMapper(publicAPI, model) {
632
636
  // Build the VBOs
633
637
  const dims = image.getDimensions();
634
638
  if (!model.openGLTexture) {
635
- model.openGLTexture = vtkOpenGLTexture.newInstance();
639
+ model.openGLTexture = vtkOpenGLTexture.newInstance({
640
+ resizable: true
641
+ });
636
642
  model.openGLTexture.setOpenGLRenderWindow(model._openGLRenderWindow);
637
643
  }
638
644
  if (iType === InterpolationType.NEAREST) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "28.13.0",
3
+ "version": "28.13.1",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",