@kitware/vtk.js 32.1.1 → 32.1.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.
@@ -43,7 +43,7 @@ function vtkCalculator(publicAPI, model) {
43
43
  return {
44
44
  getArrays: inData => ({
45
45
  // don't augment input data array in case of structured input dataset
46
- input: inData[0].isA('vtkImageData') ? arrNames.map(x => ({
46
+ input: inData[0]?.isA('vtkImageData') ? arrNames.map(x => ({
47
47
  location: locn,
48
48
  name: x
49
49
  })) : publicAPI.augmentInputArrays(locn, arrNames.map(x => ({
@@ -133,7 +133,7 @@ function vtkLineIntegralConvolution2D(publicAPI, model) {
133
133
  }
134
134
  const gl = model.context;
135
135
  let fb = model.framebuffer;
136
- const fbSize = fb.getSize();
136
+ const fbSize = fb?.getSize();
137
137
  if (!fb || !fbSize || size[0] !== fbSize || size[1] !== fbSize) {
138
138
  fb = vtkOpenGLFramebuffer.newInstance();
139
139
  fb.setOpenGLRenderWindow(model._openGLRenderWindow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "32.1.1",
3
+ "version": "32.1.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",