@kitware/vtk.js 31.0.1 → 31.0.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.
@@ -582,7 +582,7 @@ function vtkOpenGLRenderWindow(publicAPI, model) {
582
582
  };
583
583
  publicAPI.copyParentContent = () => {
584
584
  const rootParent = model.rootOpenGLRenderWindow;
585
- if (!rootParent || !model.context2D) {
585
+ if (!rootParent || !model.context2D || model.children.some(oglRenderer => !!oglRenderer.getSelector?.())) {
586
586
  return;
587
587
  }
588
588
  const parentCanvas = rootParent.getCanvas();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "31.0.1",
3
+ "version": "31.0.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",