@kitware/vtk.js 24.5.5 → 24.5.6

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.
@@ -163,7 +163,7 @@ function vtkOpenGLPolyDataMapper2D(publicAPI, model) {
163
163
  // Note that the actor's mtime includes it's properties mtime
164
164
  var vmtime = model.VBOBuildTime.getMTime();
165
165
 
166
- if (vmtime < publicAPI.getMTime() || vmtime < model.renderable.getMTime() || vmtime < actor.getMTime() || vmtime < model.currentInput.getMTime() || model.renderable.getTransformCoordinate() && vmtime < ren.getMTime()) {
166
+ if (vmtime < publicAPI.getMTime() || vmtime < model._openGLRenderWindow.getMTime() || vmtime < model.renderable.getMTime() || vmtime < actor.getMTime() || vmtime < model.currentInput.getMTime() || model.renderable.getTransformCoordinate() && vmtime < ren.getMTime()) {
167
167
  return true;
168
168
  }
169
169
 
@@ -197,7 +197,9 @@ function vtkOpenGLPolyDataMapper2D(publicAPI, model) {
197
197
  }
198
198
 
199
199
  var transformCoordinate = model.renderable.getTransformCoordinate();
200
- var toString = "".concat(poly.getMTime(), "A").concat(representation, "B").concat(poly.getMTime()) + "C".concat(c ? c.getMTime() : 1) + "D".concat(tcoords ? tcoords.getMTime() : 1) + "E".concat(transformCoordinate ? ren.getMTime() : 1);
200
+ var view = ren.getRenderWindow().getViews()[0];
201
+ var vsize = view.getViewportSize(ren);
202
+ var toString = "".concat(poly.getMTime(), "A").concat(representation, "B").concat(poly.getMTime()) + "C".concat(c ? c.getMTime() : 1) + "D".concat(tcoords ? tcoords.getMTime() : 1) + "E".concat(transformCoordinate ? ren.getMTime() : 1) + "F".concat(vsize);
201
203
 
202
204
  if (model.VBOBuildString !== toString) {
203
205
  // Build the VBOs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "24.5.5",
3
+ "version": "24.5.6",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",