@kitware/vtk.js 34.11.1 → 34.11.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.
|
@@ -193,7 +193,9 @@ function vtkImageData(publicAPI, model) {
|
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
// Make sure the transform is correct
|
|
196
|
-
|
|
196
|
+
model._onOriginChanged = publicAPI.computeTransforms;
|
|
197
|
+
model._onDirectionChanged = publicAPI.computeTransforms;
|
|
198
|
+
model._onSpacingChanged = publicAPI.computeTransforms;
|
|
197
199
|
publicAPI.computeTransforms();
|
|
198
200
|
publicAPI.getCenter = () => vtkBoundingBox.getCenter(publicAPI.getBounds());
|
|
199
201
|
publicAPI.computeHistogram = function (worldBounds) {
|
|
@@ -63,14 +63,19 @@ export interface vtkViewport extends vtkObject {
|
|
|
63
63
|
getSize(): Size;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Viewport for the Viewport to draw in the rendering window.
|
|
67
|
+
* Coordinates are expressed as (xmin,ymin,xmax,ymax), where each
|
|
68
|
+
* coordinate is 0 <= coordinate <= 1.0.
|
|
69
|
+
* @returns {Number[]}
|
|
70
|
+
* @see getViewportByReference()
|
|
71
|
+
* @see setViewport()
|
|
67
72
|
*/
|
|
68
|
-
getViewport():
|
|
73
|
+
getViewport(): [number, number, number, number];
|
|
69
74
|
|
|
70
75
|
/**
|
|
71
76
|
*
|
|
72
77
|
*/
|
|
73
|
-
getViewportByReference():
|
|
78
|
+
getViewportByReference(): [number, number, number, number];
|
|
74
79
|
|
|
75
80
|
/**
|
|
76
81
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitware/vtk.js",
|
|
3
|
-
"version": "34.11.
|
|
3
|
+
"version": "34.11.2",
|
|
4
4
|
"description": "Visualization Toolkit for the Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3d",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"typescript": "^5.8.3",
|
|
124
124
|
"webpack": "5.97.1",
|
|
125
125
|
"webpack-bundle-analyzer": "4.5.0",
|
|
126
|
-
"webpack-cli": "
|
|
126
|
+
"webpack-cli": "5.1.4",
|
|
127
127
|
"webpack-dashboard": "3.3.7",
|
|
128
128
|
"webpack-dev-server": "^5.2.2",
|
|
129
129
|
"webpack-merge": "5.8.0",
|