@kitware/vtk.js 32.3.0 → 32.3.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.
|
@@ -30,7 +30,10 @@ const staticOffsetModel = {
|
|
|
30
30
|
offset: -2
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
const
|
|
33
|
+
const noOp = () => undefined;
|
|
34
|
+
const staticOffsetAPI = {
|
|
35
|
+
modified: noOp
|
|
36
|
+
};
|
|
34
37
|
addCoincidentTopologyMethods(staticOffsetAPI, staticOffsetModel, CATEGORIES.map(key => ({
|
|
35
38
|
key,
|
|
36
39
|
method: `ResolveCoincidentTopology${key}OffsetParameters`
|
|
@@ -61,7 +64,8 @@ function implementCoincidentTopologyMethods(publicAPI, model) {
|
|
|
61
64
|
Object.keys(otherStaticMethods).forEach(methodName => {
|
|
62
65
|
publicAPI[methodName] = otherStaticMethods[methodName];
|
|
63
66
|
});
|
|
64
|
-
Object.keys(staticOffsetAPI).
|
|
67
|
+
Object.keys(staticOffsetAPI).filter(methodName => methodName !== 'modified') // don't override instance's modified
|
|
68
|
+
.forEach(methodName => {
|
|
65
69
|
publicAPI[methodName] = staticOffsetAPI[methodName];
|
|
66
70
|
});
|
|
67
71
|
addCoincidentTopologyMethods(publicAPI, model.topologyOffset, CATEGORIES.map(key => ({
|
|
@@ -489,6 +489,7 @@ function vtkOpenGLRenderWindow(publicAPI, model) {
|
|
|
489
489
|
// remember the main canvas original size, then resize it
|
|
490
490
|
model._screenshot.originalSize = model.size;
|
|
491
491
|
model.size = model._screenshot.size;
|
|
492
|
+
model.rootOpenGLRenderWindow?.resizeFromChildRenderWindows();
|
|
492
493
|
model._screenshot.size = null;
|
|
493
494
|
|
|
494
495
|
// process the resize
|
|
@@ -571,10 +572,10 @@ function vtkOpenGLRenderWindow(publicAPI, model) {
|
|
|
571
572
|
model.renderPasses[index].traverse(publicAPI, null);
|
|
572
573
|
}
|
|
573
574
|
}
|
|
575
|
+
publicAPI.copyParentContent();
|
|
574
576
|
if (model.notifyStartCaptureImage) {
|
|
575
577
|
getCanvasDataURL();
|
|
576
578
|
}
|
|
577
|
-
publicAPI.copyParentContent();
|
|
578
579
|
const childrenRW = model.renderable.getChildRenderWindowsByReference();
|
|
579
580
|
for (let i = 0; i < childrenRW.length; ++i) {
|
|
580
581
|
publicAPI.getViewNodeFor(childrenRW[i])?.traverseAllPasses();
|