@kitware/vtk.js 23.3.0-beta.1 → 23.3.0
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.
|
@@ -53,6 +53,7 @@ function _addPoint(bounds) {
|
|
|
53
53
|
bounds[3] = yMax > (arguments.length <= 2 ? undefined : arguments[2]) ? yMax : arguments.length <= 2 ? undefined : arguments[2];
|
|
54
54
|
bounds[4] = zMin < (arguments.length <= 3 ? undefined : arguments[3]) ? zMin : arguments.length <= 3 ? undefined : arguments[3];
|
|
55
55
|
bounds[5] = zMax > (arguments.length <= 3 ? undefined : arguments[3]) ? zMax : arguments.length <= 3 ? undefined : arguments[3];
|
|
56
|
+
return bounds;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
function _addBounds(bounds, xMin, xMax, yMin, yMax, zMin, zMax) {
|
|
@@ -79,6 +80,8 @@ function _addBounds(bounds, xMin, xMax, yMin, yMax, zMin, zMax) {
|
|
|
79
80
|
bounds[4] = Math.min(zMin, _zMin);
|
|
80
81
|
bounds[5] = Math.max(zMax, _zMax);
|
|
81
82
|
}
|
|
83
|
+
|
|
84
|
+
return bounds;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
function _setMinPoint(bounds, x, y, z) {
|
|
@@ -124,6 +127,7 @@ function _inflate(bounds, delta) {
|
|
|
124
127
|
bounds[3] += delta;
|
|
125
128
|
bounds[4] -= delta;
|
|
126
129
|
bounds[5] += delta;
|
|
130
|
+
return bounds;
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
function _scale(bounds, sx, sy, sz) {
|
|
@@ -233,6 +237,8 @@ function _getCorners(bounds, corners) {
|
|
|
233
237
|
}
|
|
234
238
|
}
|
|
235
239
|
}
|
|
240
|
+
|
|
241
|
+
return corners;
|
|
236
242
|
} // Computes the two corners with minimal and miximal coordinates
|
|
237
243
|
|
|
238
244
|
function _computeCornerPoints(bounds, point1, point2) {
|
|
@@ -242,6 +248,7 @@ function _computeCornerPoints(bounds, point1, point2) {
|
|
|
242
248
|
point2[0] = bounds[1];
|
|
243
249
|
point2[1] = bounds[3];
|
|
244
250
|
point2[2] = bounds[5];
|
|
251
|
+
return point1;
|
|
245
252
|
}
|
|
246
253
|
|
|
247
254
|
function _computeScale(bounds) {
|
|
@@ -557,9 +564,7 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
557
564
|
this.bounds = refBounds;
|
|
558
565
|
|
|
559
566
|
if (!this.bounds) {
|
|
560
|
-
this.bounds = new Float64Array(
|
|
561
|
-
|
|
562
|
-
_setBounds(this.bounds, INIT_BOUNDS);
|
|
567
|
+
this.bounds = new Float64Array(INIT_BOUNDS);
|
|
563
568
|
}
|
|
564
569
|
}
|
|
565
570
|
|