@kitware/vtk.js 30.5.1 → 30.5.2

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.
@@ -73,8 +73,9 @@ export interface vtkPoints extends vtkDataArray {
73
73
  * @param {Number} x The x coordinate.
74
74
  * @param {Number} y The y coordinate.
75
75
  * @param {Number} z The z coordinate.
76
+ * @returns {Number} Index of the inserted point.
76
77
  */
77
- insertNextPoint(x: number, y: number, z: number): void;
78
+ insertNextPoint(x: number, y: number, z: number): number;
78
79
  }
79
80
 
80
81
  /**
@@ -181,7 +181,7 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
181
181
  const numComp = scalars.getNumberOfComponents();
182
182
  let toString = `${image.getMTime()}A${scalars.getMTime()}`;
183
183
  const tex = model._openGLRenderWindow.getGraphicsResourceForObject(scalars);
184
- const reBuildTex = !tex?.vtkObj || tex?.hash !== toString || model.openGLTextureString !== toString;
184
+ const reBuildTex = !tex?.vtkObj || tex?.hash !== toString;
185
185
  if (reBuildTex) {
186
186
  if (!model.openGLTexture) {
187
187
  model.openGLTexture = vtkOpenGLTexture.newInstance();
@@ -194,13 +194,11 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
194
194
  model.openGLTexture.releaseGraphicsResources(model._openGLRenderWindow);
195
195
  model.openGLTexture.resetFormatAndType();
196
196
  model.openGLTexture.create3DFilterableFromDataArray(dims[0], dims[1], dims[2], scalars);
197
- model.openGLTextureString = toString;
198
197
  if (scalars) {
199
- model._openGLRenderWindow.setGraphicsResourceForObject(scalars, model.openGLTexture, model.openGLTextureString);
198
+ model._openGLRenderWindow.setGraphicsResourceForObject(scalars, model.openGLTexture, toString);
200
199
  }
201
200
  } else {
202
201
  model.openGLTexture = tex.vtkObj;
203
- model.openGLTextureString = tex.hash;
204
202
  }
205
203
  const ppty = actor.getProperty();
206
204
  const iComps = ppty.getIndependentComponents();
@@ -873,7 +871,6 @@ const DEFAULT_VALUES = {
873
871
  lastSlabTrapezoidIntegration: 0,
874
872
  lastSlabType: -1,
875
873
  openGLTexture: null,
876
- openGLTextureString: null,
877
874
  colorTextureString: null,
878
875
  pwfTextureString: null,
879
876
  resliceGeom: null,
@@ -1242,7 +1242,6 @@ const DEFAULT_VALUES = {
1242
1242
  context: null,
1243
1243
  VBOBuildTime: null,
1244
1244
  scalarTexture: null,
1245
- scalarTextureString: null,
1246
1245
  opacityTexture: null,
1247
1246
  opacityTextureString: null,
1248
1247
  colorTexture: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "30.5.1",
3
+ "version": "30.5.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",