@ohif/app 3.13.0-beta.88 → 3.13.0-beta.89
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.
- package/dist/{5491.bundle.4866d2ecb20dd089e071.js → 1124.bundle.3c1b947a1884362c1241.js} +376 -222
- package/dist/1429.bundle.bd1585628440399e6c3f.js +2079 -0
- package/dist/{2108.bundle.142ee8d405727d02b16a.js → 1704.bundle.38d95b81b9e1293e04de.js} +1 -643
- package/dist/{7537.bundle.3c7d71348190ed4e9565.js → 1741.bundle.abc3a09729ada4c25685.js} +105024 -55129
- package/dist/{1927.bundle.be67b3aafe238ca9f191.js → 1927.bundle.1749aa6ae7b1dd3d06b1.js} +1 -1
- package/dist/{6354.bundle.929febcf6d326e582e00.js → 2802.bundle.3d6cc53ef3c69901431d.js} +31 -324
- package/dist/{3461.bundle.9bc7ca0f93d754014c23.js → 3461.bundle.2f3e998096ef3fca602b.js} +5 -4
- package/dist/{3617.bundle.f408991512372e52c6cf.js → 3617.bundle.f7f53b332f72e9fe6374.js} +2 -2
- package/dist/{3754.bundle.477cfd7fc3ff13e9dc67.js → 3754.bundle.2a46971b209140d4cb08.js} +12 -6
- package/dist/{9039.bundle.49ab126163ca208e52b3.js → 4335.bundle.69a7cc007e85f043488e.js} +4114 -4263
- package/dist/{4579.bundle.1c315389368cc476aed3.js → 451.bundle.6634a9dae2b4f0e9ebc9.js} +83 -30
- package/dist/{5028.bundle.4960393948811673d99b.js → 5028.bundle.f483671d94ded4c8f6f3.js} +2 -2
- package/dist/{5858.bundle.466e58128de344ab53f3.js → 5858.bundle.c25c73ecbc47b1a69cea.js} +0 -4
- package/dist/{6125.bundle.2c6f2ba3bd8e1493e54b.js → 6125.bundle.4e46ecd271f647cb977f.js} +2 -2087
- package/dist/{6376.bundle.f5ef0f5465d575d0dbb0.js → 6376.bundle.c7c515ba478be810e03d.js} +6 -3
- package/dist/{9567.bundle.ff782480a4c66e306027.js → 650.bundle.5decc3ce72a22162b8f4.js} +3080 -216
- package/dist/{7166.bundle.0a84efe4f3e6d0ddcbec.js → 7166.bundle.eeeda537770d73736e46.js} +161 -55
- package/dist/{6386.bundle.dc7e3b159d6b4733647f.js → 741.bundle.e47adc12429ee838d3fb.js} +3408 -3722
- package/dist/{7431.bundle.a9b4dbf97a8c196efe51.js → 7431.bundle.c3bd9a9f1ea743c81335.js} +61 -60
- package/dist/{8305.bundle.8088b210631f2b22899d.js → 8305.bundle.71787ad9e3df5d1dd30d.js} +2 -2
- package/dist/{8558.bundle.79c567857e04df2694cc.js → 8558.bundle.00d5dbdf73ca0a44831a.js} +1 -1
- package/dist/{8583.bundle.e36ff2fc6ee67e4e4232.js → 8583.bundle.40859ef5654559a1c66b.js} +3 -3
- package/dist/{9205.bundle.c974537f15d86687f6d2.js → 9205.bundle.d43cd617e38109746e4d.js} +2257 -2133
- package/dist/{4287.bundle.4f28e48c1e39a46dfc87.js → 9400.bundle.a56bfccf2bf7a51ed297.js} +1362 -692
- package/dist/{2075.bundle.ba9ac60662f1fa739378.js → 9475.bundle.693fe4de0573042a17f3.js} +203 -156
- package/dist/{app.bundle.3b116829d23059e8d9d8.js → app.bundle.93ee83d5e283aa1496da.js} +81239 -52123
- package/dist/{compute.bundle.2b82d8a0d1f3b41df1d2.js → compute.bundle.2fc1182cc9b2af5f4a40.js} +3 -15
- package/dist/{histogram-worker.bundle.a2a50c4674d99c619ca7.js → histogram-worker.bundle.c81373ef983363586dc5.js} +4 -4
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.35be9e5cf473c6ebd3da.js → interpolation.bundle.a31edd1d26d81ef65b9b.js} +6 -6
- package/dist/{polySeg.bundle.ad2080f28d2c471bf208.js → polySeg.bundle.294012e3a5458cd3fecc.js} +3 -15
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.23ea55eeadd13d26d6b5.js → 1459.bundle.763540bccf93fda17fff.js} +0 -0
- /package/dist/{1933.bundle.5713711c4a8f6518803b.js → 1933.bundle.8d54b74d93a7354925c5.js} +0 -0
- /package/dist/{2018.bundle.fee6699868f9e280861c.js → 2018.bundle.7ba8f9afeb48defb425b.js} +0 -0
- /package/dist/{213.bundle.3c0a19cba715a9a87151.js → 213.bundle.1a54c6878a493c5b61c5.js} +0 -0
- /package/dist/{2424.bundle.1d615d02f985abbbc633.js → 2424.bundle.c6d74f7129108d885a1b.js} +0 -0
- /package/dist/{2516.bundle.6b52ced19754035768ae.js → 2516.bundle.28427294c53e067811ca.js} +0 -0
- /package/dist/{3138.bundle.451e4105dda240465e6d.js → 3138.bundle.3845b7e06b8ab2564951.js} +0 -0
- /package/dist/{4507.bundle.51470574cbf11549ff72.js → 4507.bundle.b658ff59d35614916a2b.js} +0 -0
- /package/dist/{4819.bundle.c5e695cd51065d2a1a88.js → 4819.bundle.e28f5f1f0d481e190bb1.js} +0 -0
- /package/dist/{5015.bundle.647c560efcc9942bb42c.js → 5015.bundle.455552a6df9b442b3c40.js} +0 -0
- /package/dist/{5457.bundle.45b43e0e56637108f8f1.js → 5457.bundle.ee1026db729958b36a2e.js} +0 -0
- /package/dist/{5485.bundle.3d2d3a7f37f948da2269.js → 5485.bundle.0ecad3940c321ae65b23.js} +0 -0
- /package/dist/{5802.bundle.da6055b6bf1a3db7b6d5.js → 5802.bundle.5e1a7df7ad850a5370f8.js} +0 -0
- /package/dist/{5830.bundle.d026ec38980fb12f2518.js → 5830.bundle.8327ccd3c8a6334ac315.js} +0 -0
- /package/dist/{6027.bundle.ea7a56c1ebde501ce02d.js → 6027.bundle.f276566b6237d9e16333.js} +0 -0
- /package/dist/{7639.bundle.2b4ae693bddf15fb9641.js → 7639.bundle.25e1a86f2248148c35d5.js} +0 -0
- /package/dist/{8499.bundle.f94b5427bb2889634aeb.js → 8499.bundle.22f25667db4ab2e59e57.js} +0 -0
- /package/dist/{85.bundle.f7cb4cf8432ca6a815c0.js → 85.bundle.2aa39c9bf12258c7ca68.js} +0 -0
- /package/dist/{9862.bundle.f92516a34b9cef88c56f.js → 9862.bundle.fb87529360fb93010555.js} +0 -0
- /package/dist/{9927.bundle.5cf09e95f0253210d431.js → 9927.bundle.f6e7785bceeeb7a1c62e.js} +0 -0
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // This function allow to reference async chunks and chunks that the entrypoint depends on
|
|
171
171
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
172
172
|
/******/ // return url for filenames based on template
|
|
173
|
-
/******/ return "" + chunkId + ".bundle." + {"732":"ea6f9d8504e37e01a208","5858":"
|
|
173
|
+
/******/ return "" + chunkId + ".bundle." + {"732":"ea6f9d8504e37e01a208","5858":"c25c73ecbc47b1a69cea","8094":"148a66619607e37cbf19"}[chunkId] + ".js";
|
|
174
174
|
/******/ };
|
|
175
175
|
/******/ })();
|
|
176
176
|
/******/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
1
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[2802],{
|
|
2
2
|
|
|
3
3
|
/***/ 40075
|
|
4
4
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -5262,14 +5262,23 @@ function setBounds(bounds, otherBounds) {
|
|
|
5262
5262
|
function reset(bounds) {
|
|
5263
5263
|
return setBounds(bounds, INIT_BOUNDS);
|
|
5264
5264
|
}
|
|
5265
|
-
function addPoint(bounds,
|
|
5265
|
+
function addPoint(bounds, xOrPoint, y, z) {
|
|
5266
5266
|
const [xMin, xMax, yMin, yMax, zMin, zMax] = bounds;
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5267
|
+
if (typeof xOrPoint === 'number') {
|
|
5268
|
+
bounds[0] = xMin < xOrPoint ? xMin : xOrPoint;
|
|
5269
|
+
bounds[1] = xMax > xOrPoint ? xMax : xOrPoint;
|
|
5270
|
+
bounds[2] = yMin < y ? yMin : y;
|
|
5271
|
+
bounds[3] = yMax > y ? yMax : y;
|
|
5272
|
+
bounds[4] = zMin < z ? zMin : z;
|
|
5273
|
+
bounds[5] = zMax > z ? zMax : z;
|
|
5274
|
+
} else {
|
|
5275
|
+
bounds[0] = xMin < xOrPoint[0] ? xMin : xOrPoint[0];
|
|
5276
|
+
bounds[1] = xMax > xOrPoint[0] ? xMax : xOrPoint[0];
|
|
5277
|
+
bounds[2] = yMin < xOrPoint[1] ? yMin : xOrPoint[1];
|
|
5278
|
+
bounds[3] = yMax > xOrPoint[1] ? yMax : xOrPoint[1];
|
|
5279
|
+
bounds[4] = zMin < xOrPoint[2] ? zMin : xOrPoint[2];
|
|
5280
|
+
bounds[5] = zMax > xOrPoint[2] ? zMax : xOrPoint[2];
|
|
5281
|
+
}
|
|
5273
5282
|
return bounds;
|
|
5274
5283
|
}
|
|
5275
5284
|
function addPoints(bounds, points) {
|
|
@@ -5486,8 +5495,7 @@ function computeCornerPoints(bounds, point1, point2) {
|
|
|
5486
5495
|
point2[2] = bounds[5];
|
|
5487
5496
|
return point1;
|
|
5488
5497
|
}
|
|
5489
|
-
function transformBounds(bounds, transform) {
|
|
5490
|
-
let out = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
5498
|
+
function transformBounds(bounds, transform, out = []) {
|
|
5491
5499
|
const corners = getCorners(bounds, []);
|
|
5492
5500
|
for (let i = 0; i < corners.length; ++i) {
|
|
5493
5501
|
gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.transformMat4 */ .eR.transformMat4(corners[i], corners[i], transform);
|
|
@@ -5495,8 +5503,7 @@ function transformBounds(bounds, transform) {
|
|
|
5495
5503
|
reset(out);
|
|
5496
5504
|
return addPoints(out, corners);
|
|
5497
5505
|
}
|
|
5498
|
-
function computeScale3(bounds) {
|
|
5499
|
-
let scale3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
5506
|
+
function computeScale3(bounds, scale3 = []) {
|
|
5500
5507
|
scale3[0] = 0.5 * (bounds[1] - bounds[0]);
|
|
5501
5508
|
scale3[1] = 0.5 * (bounds[3] - bounds[2]);
|
|
5502
5509
|
scale3[2] = 0.5 * (bounds[5] - bounds[4]);
|
|
@@ -5634,7 +5641,6 @@ function intersectPlane(bounds, origin, normal) {
|
|
|
5634
5641
|
}
|
|
5635
5642
|
return 0; // no intersection
|
|
5636
5643
|
}
|
|
5637
|
-
|
|
5638
5644
|
function intersect(bounds, bBounds) {
|
|
5639
5645
|
if (!(isValid(bounds) && isValid(bBounds))) {
|
|
5640
5646
|
return false;
|
|
@@ -5760,7 +5766,6 @@ function cutWithPlane(bounds, origin, normal) {
|
|
|
5760
5766
|
if (size === 0) {
|
|
5761
5767
|
continue; // shouldn't happen
|
|
5762
5768
|
}
|
|
5763
|
-
|
|
5764
5769
|
const ti = Math.abs(d[index[dir][i]]) / size;
|
|
5765
5770
|
if (sign > 0 && ti < t) {
|
|
5766
5771
|
t = ti;
|
|
@@ -5806,8 +5811,7 @@ function clampDivisions(targetBins, divs) {
|
|
|
5806
5811
|
* @param {Array} [adjustedBounds] - Output array to store adjusted bounds if needed
|
|
5807
5812
|
* @returns {Number} The actual total number of bins
|
|
5808
5813
|
*/
|
|
5809
|
-
function computeDivisions(bounds, totalBins, divs) {
|
|
5810
|
-
let adjustedBounds = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
5814
|
+
function computeDivisions(bounds, totalBins, divs, adjustedBounds = []) {
|
|
5811
5815
|
// This will always produce at least one bin
|
|
5812
5816
|
// eslint-disable-next-line no-param-reassign
|
|
5813
5817
|
totalBins = totalBins <= 0 ? 1 : totalBins;
|
|
@@ -5944,10 +5948,7 @@ class BoundingBox {
|
|
|
5944
5948
|
reset() {
|
|
5945
5949
|
return reset(this.bounds);
|
|
5946
5950
|
}
|
|
5947
|
-
addPoint() {
|
|
5948
|
-
for (var _len = arguments.length, xyz = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5949
|
-
xyz[_key] = arguments[_key];
|
|
5950
|
-
}
|
|
5951
|
+
addPoint(...xyz) {
|
|
5951
5952
|
return addPoint(this.bounds, ...xyz);
|
|
5952
5953
|
}
|
|
5953
5954
|
addPoints(points) {
|
|
@@ -6010,8 +6011,7 @@ class BoundingBox {
|
|
|
6010
6011
|
computeLocalBounds(u, v, w) {
|
|
6011
6012
|
return computeLocalBounds(this.bounds, u, v, w);
|
|
6012
6013
|
}
|
|
6013
|
-
transformBounds(transform) {
|
|
6014
|
-
let out = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
6014
|
+
transformBounds(transform, out = []) {
|
|
6015
6015
|
return transformBounds(this.bounds, transform, out);
|
|
6016
6016
|
}
|
|
6017
6017
|
computeScale3(scale3) {
|
|
@@ -6038,8 +6038,7 @@ class BoundingBox {
|
|
|
6038
6038
|
contains(otherBounds) {
|
|
6039
6039
|
return intersects(this.bounds, otherBounds);
|
|
6040
6040
|
}
|
|
6041
|
-
computeDivisions(totalBins, divs) {
|
|
6042
|
-
let adjustedBounds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
6041
|
+
computeDivisions(totalBins, divs, adjustedBounds = []) {
|
|
6043
6042
|
return computeDivisions(this.bounds, totalBins, divs, adjustedBounds);
|
|
6044
6043
|
}
|
|
6045
6044
|
distance2ToBounds(x) {
|
|
@@ -6168,7 +6167,6 @@ function vtkFieldData(publicAPI, model) {
|
|
|
6168
6167
|
})); // Deep-copy
|
|
6169
6168
|
// TODO: Copy array information objects (once we support information objects)
|
|
6170
6169
|
};
|
|
6171
|
-
|
|
6172
6170
|
publicAPI.getNumberOfArrays = () => model.arrays.length;
|
|
6173
6171
|
publicAPI.getNumberOfActiveArrays = () => model.arrays.length;
|
|
6174
6172
|
publicAPI.addArray = arr => {
|
|
@@ -6221,9 +6219,7 @@ function vtkFieldData(publicAPI, model) {
|
|
|
6221
6219
|
};
|
|
6222
6220
|
publicAPI.getCopyFieldFlags = () => model.copyFieldFlags;
|
|
6223
6221
|
publicAPI.getFlag = arrayName => model.copyFieldFlags[arrayName];
|
|
6224
|
-
publicAPI.passData =
|
|
6225
|
-
let fromId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
|
|
6226
|
-
let toId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
|
6222
|
+
publicAPI.passData = (other, fromId = -1, toId = -1) => {
|
|
6227
6223
|
other.getArrays().forEach(arr => {
|
|
6228
6224
|
const copyFlag = publicAPI.getFlag(arr.getName());
|
|
6229
6225
|
if (copyFlag !== false && !(model.doCopyAllOff && copyFlag !== true) && arr) {
|
|
@@ -6270,11 +6266,7 @@ function vtkFieldData(publicAPI, model) {
|
|
|
6270
6266
|
}
|
|
6271
6267
|
});
|
|
6272
6268
|
};
|
|
6273
|
-
publicAPI.interpolateData =
|
|
6274
|
-
let fromId1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
|
|
6275
|
-
let fromId2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
|
6276
|
-
let toId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : -1;
|
|
6277
|
-
let t = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0.5;
|
|
6269
|
+
publicAPI.interpolateData = (other, fromId1 = -1, fromId2 = -1, toId = -1, t = 0.5) => {
|
|
6278
6270
|
other.getArrays().forEach(arr => {
|
|
6279
6271
|
const copyFlag = publicAPI.getFlag(arr.getName());
|
|
6280
6272
|
if (copyFlag !== false && !(model.doCopyAllOff && copyFlag !== true) && arr) {
|
|
@@ -6381,8 +6373,7 @@ const DEFAULT_VALUES = {
|
|
|
6381
6373
|
doCopyAllOn: true,
|
|
6382
6374
|
doCopyAllOff: false
|
|
6383
6375
|
};
|
|
6384
|
-
function extend(publicAPI, model) {
|
|
6385
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
6376
|
+
function extend(publicAPI, model, initialValues = {}) {
|
|
6386
6377
|
Object.assign(model, DEFAULT_VALUES, initialValues);
|
|
6387
6378
|
macros2.m.obj(publicAPI, model);
|
|
6388
6379
|
vtkFieldData(publicAPI, model);
|
|
@@ -6451,16 +6442,8 @@ function vtkDataSetAttributes(publicAPI, model) {
|
|
|
6451
6442
|
DataSetAttributes_vtkWarningMacro(`Cannot set attribute ${attType}. Incorrect number of components.`);
|
|
6452
6443
|
return -1;
|
|
6453
6444
|
}
|
|
6454
|
-
let currentAttribute = model[`active${attType}`];
|
|
6455
|
-
if (currentAttribute >= 0 && currentAttribute < model.arrays.length) {
|
|
6456
|
-
if (model.arrays[currentAttribute] === arr) {
|
|
6457
|
-
return currentAttribute;
|
|
6458
|
-
}
|
|
6459
|
-
// FIXME setting an array actually changes its index
|
|
6460
|
-
publicAPI.removeArrayByIndex(currentAttribute);
|
|
6461
|
-
}
|
|
6462
6445
|
if (arr) {
|
|
6463
|
-
currentAttribute = publicAPI.addArray(arr);
|
|
6446
|
+
const currentAttribute = publicAPI.addArray(arr);
|
|
6464
6447
|
model[`active${attType}`] = currentAttribute;
|
|
6465
6448
|
} else {
|
|
6466
6449
|
model[`active${attType}`] = -1;
|
|
@@ -6590,8 +6573,7 @@ const DataSetAttributes_DEFAULT_VALUES = {
|
|
|
6590
6573
|
|
|
6591
6574
|
// ----------------------------------------------------------------------------
|
|
6592
6575
|
|
|
6593
|
-
function DataSetAttributes_extend(publicAPI, model) {
|
|
6594
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
6576
|
+
function DataSetAttributes_extend(publicAPI, model, initialValues = {}) {
|
|
6595
6577
|
Object.assign(model, DataSetAttributes_DEFAULT_VALUES, initialValues);
|
|
6596
6578
|
|
|
6597
6579
|
// Object methods
|
|
@@ -6658,7 +6640,6 @@ const FieldDataTypes = {
|
|
|
6658
6640
|
// data specifying a table row
|
|
6659
6641
|
ROW_DATA: 6 // to match VTK
|
|
6660
6642
|
};
|
|
6661
|
-
|
|
6662
6643
|
const FieldAssociations = {
|
|
6663
6644
|
FIELD_ASSOCIATION_POINTS: 0,
|
|
6664
6645
|
FIELD_ASSOCIATION_CELLS: 1,
|
|
@@ -6761,8 +6742,7 @@ function vtkDataSet(publicAPI, model) {
|
|
|
6761
6742
|
publicAPI.getBounds = macros2.m.chain(() => publicAPI.computeBounds, publicAPI.getBounds);
|
|
6762
6743
|
publicAPI.getBoundsByReference = macros2.m.chain(() => publicAPI.computeBounds, publicAPI.getBoundsByReference);
|
|
6763
6744
|
const superShallowCopy = publicAPI.shallowCopy;
|
|
6764
|
-
publicAPI.shallowCopy =
|
|
6765
|
-
let debug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
6745
|
+
publicAPI.shallowCopy = (other, debug = false) => {
|
|
6766
6746
|
superShallowCopy(other, debug);
|
|
6767
6747
|
DATASET_FIELDS.forEach(fieldName => {
|
|
6768
6748
|
model[fieldName] = vtkDataSetAttributes$1.newInstance();
|
|
@@ -6789,8 +6769,7 @@ const DataSet_DEFAULT_VALUES = {
|
|
|
6789
6769
|
|
|
6790
6770
|
// ----------------------------------------------------------------------------
|
|
6791
6771
|
|
|
6792
|
-
function DataSet_extend(publicAPI, model) {
|
|
6793
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
6772
|
+
function DataSet_extend(publicAPI, model, initialValues = {}) {
|
|
6794
6773
|
Object.assign(model, DataSet_DEFAULT_VALUES, initialValues);
|
|
6795
6774
|
|
|
6796
6775
|
// Object methods
|
|
@@ -6865,8 +6844,7 @@ const DEFAULT_VALUES = {
|
|
|
6865
6844
|
|
|
6866
6845
|
// ----------------------------------------------------------------------------
|
|
6867
6846
|
|
|
6868
|
-
function extend(publicAPI, model) {
|
|
6869
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
6847
|
+
function extend(publicAPI, model, initialValues = {}) {
|
|
6870
6848
|
Object.assign(model, DEFAULT_VALUES, initialValues);
|
|
6871
6849
|
|
|
6872
6850
|
// Object methods
|
|
@@ -6889,277 +6867,6 @@ var vtkImplicitFunction$1 = {
|
|
|
6889
6867
|
|
|
6890
6868
|
|
|
6891
6869
|
|
|
6892
|
-
/***/ },
|
|
6893
|
-
|
|
6894
|
-
/***/ 49794
|
|
6895
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
6896
|
-
|
|
6897
|
-
"use strict";
|
|
6898
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6899
|
-
/* harmony export */ Ay: () => (/* binding */ vtkPlane$1)
|
|
6900
|
-
/* harmony export */ });
|
|
6901
|
-
/* unused harmony exports STATIC, extend, newInstance, vtkPlane */
|
|
6902
|
-
/* harmony import */ var _Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8047);
|
|
6903
|
-
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90027);
|
|
6904
|
-
/* harmony import */ var _ImplicitFunction_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53001);
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
const PLANE_TOLERANCE = 1.0e-6;
|
|
6910
|
-
const COINCIDE = 'coincide';
|
|
6911
|
-
const DISJOINT = 'disjoint';
|
|
6912
|
-
|
|
6913
|
-
// ----------------------------------------------------------------------------
|
|
6914
|
-
// Global methods
|
|
6915
|
-
// ----------------------------------------------------------------------------
|
|
6916
|
-
|
|
6917
|
-
function evaluate(normal, origin, x) {
|
|
6918
|
-
return normal[0] * (x[0] - origin[0]) + normal[1] * (x[1] - origin[1]) + normal[2] * (x[2] - origin[2]);
|
|
6919
|
-
}
|
|
6920
|
-
function distanceToPlane(x, origin, normal) {
|
|
6921
|
-
const distance = normal[0] * (x[0] - origin[0]) + normal[1] * (x[1] - origin[1]) + normal[2] * (x[2] - origin[2]);
|
|
6922
|
-
return Math.abs(distance);
|
|
6923
|
-
}
|
|
6924
|
-
function projectPoint(x, origin, normal, xproj) {
|
|
6925
|
-
const xo = [];
|
|
6926
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.s)(x, origin, xo);
|
|
6927
|
-
const t = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(normal, xo);
|
|
6928
|
-
xproj[0] = x[0] - t * normal[0];
|
|
6929
|
-
xproj[1] = x[1] - t * normal[1];
|
|
6930
|
-
xproj[2] = x[2] - t * normal[2];
|
|
6931
|
-
}
|
|
6932
|
-
function projectVector(v, normal, vproj) {
|
|
6933
|
-
const t = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(v, normal);
|
|
6934
|
-
let n2 = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(normal, normal);
|
|
6935
|
-
if (n2 === 0) {
|
|
6936
|
-
n2 = 1.0;
|
|
6937
|
-
}
|
|
6938
|
-
vproj[0] = v[0] - t * normal[0] / n2;
|
|
6939
|
-
vproj[1] = v[1] - t * normal[1] / n2;
|
|
6940
|
-
vproj[2] = v[2] - t * normal[2] / n2;
|
|
6941
|
-
return vproj;
|
|
6942
|
-
}
|
|
6943
|
-
function generalizedProjectPoint(x, origin, normal, xproj) {
|
|
6944
|
-
const xo = [];
|
|
6945
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.s)(x, origin, xo);
|
|
6946
|
-
const t = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(normal, xo);
|
|
6947
|
-
const n2 = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(normal, normal);
|
|
6948
|
-
if (n2 !== 0) {
|
|
6949
|
-
xproj[0] = x[0] - t * normal[0] / n2;
|
|
6950
|
-
xproj[1] = x[1] - t * normal[1] / n2;
|
|
6951
|
-
xproj[2] = x[2] - t * normal[2] / n2;
|
|
6952
|
-
} else {
|
|
6953
|
-
xproj[0] = x[0];
|
|
6954
|
-
xproj[1] = x[1];
|
|
6955
|
-
xproj[2] = x[2];
|
|
6956
|
-
}
|
|
6957
|
-
}
|
|
6958
|
-
function intersectWithLine(p1, p2, origin, normal) {
|
|
6959
|
-
const outObj = {
|
|
6960
|
-
intersection: false,
|
|
6961
|
-
betweenPoints: false,
|
|
6962
|
-
t: Number.MAX_VALUE,
|
|
6963
|
-
x: []
|
|
6964
|
-
};
|
|
6965
|
-
const p21 = [];
|
|
6966
|
-
const p1Origin = [];
|
|
6967
|
-
// Compute line vector
|
|
6968
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.s)(p2, p1, p21);
|
|
6969
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.s)(origin, p1, p1Origin);
|
|
6970
|
-
|
|
6971
|
-
// Compute denominator. If ~0, line and plane are parallel.
|
|
6972
|
-
// const num = vtkMath.dot(normal, origin) - vtkMath.dot(normal, p1);
|
|
6973
|
-
const num = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(normal, p1Origin);
|
|
6974
|
-
const den = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(normal, p21);
|
|
6975
|
-
|
|
6976
|
-
// If denominator with respect to numerator is "zero", then the line and
|
|
6977
|
-
// plane are considered parallel.
|
|
6978
|
-
let fabsden;
|
|
6979
|
-
let fabstolerance;
|
|
6980
|
-
|
|
6981
|
-
// Trying to avoid an expensive call to fabs()
|
|
6982
|
-
if (den < 0.0) {
|
|
6983
|
-
fabsden = -den;
|
|
6984
|
-
} else {
|
|
6985
|
-
fabsden = den;
|
|
6986
|
-
}
|
|
6987
|
-
if (num < 0.0) {
|
|
6988
|
-
fabstolerance = -num * PLANE_TOLERANCE;
|
|
6989
|
-
} else {
|
|
6990
|
-
fabstolerance = num * PLANE_TOLERANCE;
|
|
6991
|
-
}
|
|
6992
|
-
if (fabsden <= fabstolerance) {
|
|
6993
|
-
return outObj;
|
|
6994
|
-
}
|
|
6995
|
-
|
|
6996
|
-
// Where on the line between p1 and p2 is the intersection
|
|
6997
|
-
// If between 0 and 1, it is between the two points. If < 0 it's before p1, if > 1 it's after p2
|
|
6998
|
-
outObj.t = num / den;
|
|
6999
|
-
outObj.x[0] = p1[0] + outObj.t * p21[0];
|
|
7000
|
-
outObj.x[1] = p1[1] + outObj.t * p21[1];
|
|
7001
|
-
outObj.x[2] = p1[2] + outObj.t * p21[2];
|
|
7002
|
-
outObj.intersection = true;
|
|
7003
|
-
outObj.betweenPoints = outObj.t >= 0.0 && outObj.t <= 1.0;
|
|
7004
|
-
return outObj;
|
|
7005
|
-
}
|
|
7006
|
-
function intersectWithPlane(plane1Origin, plane1Normal, plane2Origin, plane2Normal) {
|
|
7007
|
-
const outObj = {
|
|
7008
|
-
intersection: false,
|
|
7009
|
-
l0: [],
|
|
7010
|
-
l1: [],
|
|
7011
|
-
error: null
|
|
7012
|
-
};
|
|
7013
|
-
const cross$1 = [];
|
|
7014
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.j)(plane1Normal, plane2Normal, cross$1);
|
|
7015
|
-
const absCross = cross$1.map(n => Math.abs(n));
|
|
7016
|
-
|
|
7017
|
-
// test if the two planes are parallel
|
|
7018
|
-
if (absCross[0] + absCross[1] + absCross[2] < PLANE_TOLERANCE) {
|
|
7019
|
-
// test if disjoint or coincide
|
|
7020
|
-
const v = [];
|
|
7021
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.s)(plane1Origin, plane2Origin, v);
|
|
7022
|
-
if ((0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(plane1Normal, v) === 0) {
|
|
7023
|
-
outObj.error = COINCIDE;
|
|
7024
|
-
} else {
|
|
7025
|
-
outObj.error = DISJOINT;
|
|
7026
|
-
}
|
|
7027
|
-
return outObj;
|
|
7028
|
-
}
|
|
7029
|
-
|
|
7030
|
-
// Plane1 and Plane2 intersect in a line
|
|
7031
|
-
// first determine max abs coordinate of the cross product
|
|
7032
|
-
let maxc;
|
|
7033
|
-
if (absCross[0] > absCross[1] && absCross[0] > absCross[2]) {
|
|
7034
|
-
maxc = 'x';
|
|
7035
|
-
} else if (absCross[1] > absCross[2]) {
|
|
7036
|
-
maxc = 'y';
|
|
7037
|
-
} else {
|
|
7038
|
-
maxc = 'z';
|
|
7039
|
-
}
|
|
7040
|
-
|
|
7041
|
-
// To get a point on the intersect line, zero the max coord, and solve for the other two
|
|
7042
|
-
const iP = []; // intersectionPoint
|
|
7043
|
-
// the constants in the 2 plane equations
|
|
7044
|
-
const d1 = -(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(plane1Normal, plane1Origin);
|
|
7045
|
-
const d2 = -(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.d)(plane2Normal, plane2Origin);
|
|
7046
|
-
|
|
7047
|
-
// eslint-disable-next-line default-case
|
|
7048
|
-
switch (maxc) {
|
|
7049
|
-
case 'x':
|
|
7050
|
-
// intersect with x=0
|
|
7051
|
-
iP[0] = 0;
|
|
7052
|
-
iP[1] = (d2 * plane1Normal[2] - d1 * plane2Normal[2]) / cross$1[0];
|
|
7053
|
-
iP[2] = (d1 * plane2Normal[1] - d2 * plane1Normal[1]) / cross$1[0];
|
|
7054
|
-
break;
|
|
7055
|
-
case 'y':
|
|
7056
|
-
// intersect with y=0
|
|
7057
|
-
iP[0] = (d1 * plane2Normal[2] - d2 * plane1Normal[2]) / cross$1[1];
|
|
7058
|
-
iP[1] = 0;
|
|
7059
|
-
iP[2] = (d2 * plane1Normal[0] - d1 * plane2Normal[0]) / cross$1[1];
|
|
7060
|
-
break;
|
|
7061
|
-
case 'z':
|
|
7062
|
-
// intersect with z=0
|
|
7063
|
-
iP[0] = (d2 * plane1Normal[1] - d1 * plane2Normal[1]) / cross$1[2];
|
|
7064
|
-
iP[1] = (d1 * plane2Normal[0] - d2 * plane1Normal[0]) / cross$1[2];
|
|
7065
|
-
iP[2] = 0;
|
|
7066
|
-
break;
|
|
7067
|
-
}
|
|
7068
|
-
outObj.l0 = iP;
|
|
7069
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_0__.k)(iP, cross$1, outObj.l1);
|
|
7070
|
-
outObj.intersection = true;
|
|
7071
|
-
return outObj;
|
|
7072
|
-
}
|
|
7073
|
-
|
|
7074
|
-
// ----------------------------------------------------------------------------
|
|
7075
|
-
// Static API
|
|
7076
|
-
// ----------------------------------------------------------------------------
|
|
7077
|
-
|
|
7078
|
-
const STATIC = {
|
|
7079
|
-
evaluate,
|
|
7080
|
-
distanceToPlane,
|
|
7081
|
-
projectPoint,
|
|
7082
|
-
projectVector,
|
|
7083
|
-
generalizedProjectPoint,
|
|
7084
|
-
intersectWithLine,
|
|
7085
|
-
intersectWithPlane,
|
|
7086
|
-
DISJOINT,
|
|
7087
|
-
COINCIDE
|
|
7088
|
-
};
|
|
7089
|
-
|
|
7090
|
-
// ----------------------------------------------------------------------------
|
|
7091
|
-
// vtkPlane methods
|
|
7092
|
-
// ----------------------------------------------------------------------------
|
|
7093
|
-
|
|
7094
|
-
function vtkPlane(publicAPI, model) {
|
|
7095
|
-
// Set our className
|
|
7096
|
-
model.classHierarchy.push('vtkPlane');
|
|
7097
|
-
publicAPI.distanceToPlane = x => distanceToPlane(x, model.origin, model.normal);
|
|
7098
|
-
publicAPI.projectPoint = (x, xproj) => {
|
|
7099
|
-
projectPoint(x, model.origin, model.normal, xproj);
|
|
7100
|
-
};
|
|
7101
|
-
publicAPI.projectVector = (v, vproj) => projectVector(v, model.normal, vproj);
|
|
7102
|
-
publicAPI.push = distance => {
|
|
7103
|
-
if (distance === 0.0) {
|
|
7104
|
-
return;
|
|
7105
|
-
}
|
|
7106
|
-
for (let i = 0; i < 3; i++) {
|
|
7107
|
-
model.origin[i] += distance * model.normal[i];
|
|
7108
|
-
}
|
|
7109
|
-
};
|
|
7110
|
-
publicAPI.generalizedProjectPoint = (x, xproj) => {
|
|
7111
|
-
generalizedProjectPoint(x, model.origin, model.normal, xproj);
|
|
7112
|
-
};
|
|
7113
|
-
publicAPI.evaluateFunction = (x, y, z) => {
|
|
7114
|
-
if (!Array.isArray(x)) {
|
|
7115
|
-
return model.normal[0] * (x - model.origin[0]) + model.normal[1] * (y - model.origin[1]) + model.normal[2] * (z - model.origin[2]);
|
|
7116
|
-
}
|
|
7117
|
-
return model.normal[0] * (x[0] - model.origin[0]) + model.normal[1] * (x[1] - model.origin[1]) + model.normal[2] * (x[2] - model.origin[2]);
|
|
7118
|
-
};
|
|
7119
|
-
publicAPI.evaluateGradient = xyz => {
|
|
7120
|
-
const retVal = [model.normal[0], model.normal[1], model.normal[2]];
|
|
7121
|
-
return retVal;
|
|
7122
|
-
};
|
|
7123
|
-
publicAPI.intersectWithLine = (p1, p2) => intersectWithLine(p1, p2, model.origin, model.normal);
|
|
7124
|
-
publicAPI.intersectWithPlane = (planeOrigin, planeNormal) => intersectWithPlane(planeOrigin, planeNormal, model.origin, model.normal);
|
|
7125
|
-
}
|
|
7126
|
-
|
|
7127
|
-
// ----------------------------------------------------------------------------
|
|
7128
|
-
// Object factory
|
|
7129
|
-
// ----------------------------------------------------------------------------
|
|
7130
|
-
|
|
7131
|
-
const DEFAULT_VALUES = {
|
|
7132
|
-
normal: [0.0, 0.0, 1.0],
|
|
7133
|
-
origin: [0.0, 0.0, 0.0]
|
|
7134
|
-
};
|
|
7135
|
-
|
|
7136
|
-
// ----------------------------------------------------------------------------
|
|
7137
|
-
|
|
7138
|
-
function extend(publicAPI, model) {
|
|
7139
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
7140
|
-
Object.assign(model, DEFAULT_VALUES, initialValues);
|
|
7141
|
-
|
|
7142
|
-
// Object methods
|
|
7143
|
-
_ImplicitFunction_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"].extend */ .Ay.extend(publicAPI, model, initialValues);
|
|
7144
|
-
_macros2_js__WEBPACK_IMPORTED_MODULE_1__.m.setGetArray(publicAPI, model, ['normal', 'origin'], 3);
|
|
7145
|
-
vtkPlane(publicAPI, model);
|
|
7146
|
-
}
|
|
7147
|
-
|
|
7148
|
-
// ----------------------------------------------------------------------------
|
|
7149
|
-
|
|
7150
|
-
const newInstance = _macros2_js__WEBPACK_IMPORTED_MODULE_1__.m.newInstance(extend, 'vtkPlane');
|
|
7151
|
-
|
|
7152
|
-
// ----------------------------------------------------------------------------
|
|
7153
|
-
|
|
7154
|
-
var vtkPlane$1 = {
|
|
7155
|
-
newInstance,
|
|
7156
|
-
extend,
|
|
7157
|
-
...STATIC
|
|
7158
|
-
};
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
6870
|
/***/ },
|
|
7164
6871
|
|
|
7165
6872
|
/***/ 42365
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
/* harmony export */ sh: () => (/* binding */ SCOORDTypes)
|
|
11
11
|
/* harmony export */ });
|
|
12
12
|
/* unused harmony export RelationshipType */
|
|
13
|
-
/* harmony import */ var _cornerstonejs_adapters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
13
|
+
/* harmony import */ var _cornerstonejs_adapters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(451);
|
|
14
14
|
|
|
15
15
|
const {
|
|
16
16
|
CodeScheme: Cornerstone3DCodeScheme
|
|
@@ -74,8 +74,8 @@ var src = __webpack_require__(42356);
|
|
|
74
74
|
var i18n_src = __webpack_require__(81499);
|
|
75
75
|
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 197 modules
|
|
76
76
|
var cornerstone_src = __webpack_require__(87166);
|
|
77
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js +
|
|
78
|
-
var esm = __webpack_require__(
|
|
77
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 73 modules
|
|
78
|
+
var esm = __webpack_require__(451);
|
|
79
79
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
80
80
|
var dist_esm = __webpack_require__(4667);
|
|
81
81
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
|
|
@@ -1877,7 +1877,8 @@ class DICOMSRDisplayTool extends dist_esm.AnnotationTool {
|
|
|
1877
1877
|
|
|
1878
1878
|
// Filter toolData to only render the data for the active SR.
|
|
1879
1879
|
const filteredAnnotations = annotations.filter(annotation => trackingUniqueIdentifiers.includes(annotation.data?.TrackingUniqueIdentifier));
|
|
1880
|
-
|
|
1880
|
+
const hasActors = typeof viewport.getActors === 'function' ? viewport.getActors().length > 0 : Boolean(viewport._actors?.size);
|
|
1881
|
+
if (!hasActors) {
|
|
1881
1882
|
return;
|
|
1882
1883
|
}
|
|
1883
1884
|
const styleSpecifier = {
|
|
@@ -10815,8 +10815,8 @@ function AboutModalDefault() {
|
|
|
10815
10815
|
name
|
|
10816
10816
|
} = (0,browser_detect_es5/* default */.A)();
|
|
10817
10817
|
const browser = `${name[0].toUpperCase()}${name.substr(1)} ${version}`;
|
|
10818
|
-
const versionNumber = "3.13.0-beta.
|
|
10819
|
-
const commitHash = "
|
|
10818
|
+
const versionNumber = "3.13.0-beta.89";
|
|
10819
|
+
const commitHash = "6dd150d401ad73d60632a23378b7dfd4b5142690";
|
|
10820
10820
|
const [main, beta] = versionNumber.split('-');
|
|
10821
10821
|
return /*#__PURE__*/react.createElement(ui_next_src/* AboutModal */.VTU, {
|
|
10822
10822
|
className: "w-[400px]"
|
|
@@ -28,11 +28,14 @@ var state = __webpack_require__(71353);
|
|
|
28
28
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
29
29
|
var prop_types = __webpack_require__(97598);
|
|
30
30
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
31
|
+
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/utils/getLegacyViewportType.ts
|
|
32
|
+
var getLegacyViewportType = __webpack_require__(62739);
|
|
31
33
|
;// ../../../extensions/cornerstone/src/Viewport/Overlays/ViewportImageScrollbar.tsx
|
|
32
34
|
|
|
33
35
|
|
|
34
36
|
|
|
35
37
|
|
|
38
|
+
|
|
36
39
|
function CornerstoneImageScrollbar({
|
|
37
40
|
viewportData,
|
|
38
41
|
viewportId,
|
|
@@ -71,7 +74,7 @@ function CornerstoneImageScrollbar({
|
|
|
71
74
|
return;
|
|
72
75
|
}
|
|
73
76
|
const viewport = cornerstoneViewportService.getCornerstoneViewport(viewportId);
|
|
74
|
-
if (!viewport ||
|
|
77
|
+
if (!viewport || (0,getLegacyViewportType/* isVolume3DViewportType */.Ov)(viewport)) {
|
|
75
78
|
return;
|
|
76
79
|
}
|
|
77
80
|
try {
|
|
@@ -95,7 +98,7 @@ function CornerstoneImageScrollbar({
|
|
|
95
98
|
const eventId = viewportType === esm.Enums.ViewportType.STACK && esm.Enums.Events.STACK_NEW_IMAGE || viewportType === esm.Enums.ViewportType.ORTHOGRAPHIC && esm.Enums.Events.VOLUME_NEW_IMAGE || esm.Enums.Events.IMAGE_RENDERED;
|
|
96
99
|
const updateIndex = event => {
|
|
97
100
|
const viewport = cornerstoneViewportService.getCornerstoneViewport(viewportId);
|
|
98
|
-
if (!viewport ||
|
|
101
|
+
if (!viewport || (0,getLegacyViewportType/* isVolume3DViewportType */.Ov)(viewport)) {
|
|
99
102
|
return;
|
|
100
103
|
}
|
|
101
104
|
const {
|
|
@@ -134,6 +137,7 @@ CornerstoneImageScrollbar.propTypes = {
|
|
|
134
137
|
/* harmony default export */ const ViewportImageScrollbar = (CornerstoneImageScrollbar);
|
|
135
138
|
;// ../../../extensions/cornerstone/src/Viewport/Overlays/ViewportSliceProgressScrollbar/helpers.ts
|
|
136
139
|
|
|
140
|
+
|
|
137
141
|
function getImageIndexFromEvent(event) {
|
|
138
142
|
const {
|
|
139
143
|
imageIndex,
|
|
@@ -152,7 +156,7 @@ function getViewportImageIds(viewportData) {
|
|
|
152
156
|
return volumeImageIds || datumImageIds || [];
|
|
153
157
|
}
|
|
154
158
|
function isProgressFullMode(viewportData, viewport) {
|
|
155
|
-
if (!viewportData || !viewport ||
|
|
159
|
+
if (!viewportData || !viewport || (0,getLegacyViewportType/* isVolume3DViewportType */.Ov)(viewport)) {
|
|
156
160
|
return false;
|
|
157
161
|
}
|
|
158
162
|
if (viewportData.viewportType === esm.Enums.ViewportType.STACK) {
|
|
@@ -172,6 +176,7 @@ function getImageIdFromCacheEvent(event) {
|
|
|
172
176
|
|
|
173
177
|
|
|
174
178
|
|
|
179
|
+
|
|
175
180
|
function useProgressScrollbarMode({
|
|
176
181
|
viewportData,
|
|
177
182
|
viewportId,
|
|
@@ -241,7 +246,7 @@ function useViewportSliceSync({
|
|
|
241
246
|
return;
|
|
242
247
|
}
|
|
243
248
|
const viewport = cornerstoneViewportService.getCornerstoneViewport(viewportId);
|
|
244
|
-
if (viewport && !(
|
|
249
|
+
if (viewport && !(0,getLegacyViewportType/* isVolume3DViewportType */.Ov)(viewport)) {
|
|
245
250
|
try {
|
|
246
251
|
const currentImageIndex = viewport.getCurrentImageIdIndex();
|
|
247
252
|
const currentNumberOfSlices = viewport.getNumberOfSlices();
|
|
@@ -259,7 +264,7 @@ function useViewportSliceSync({
|
|
|
259
264
|
const eventId = viewportType === esm.Enums.ViewportType.STACK && esm.Enums.Events.STACK_NEW_IMAGE || viewportType === esm.Enums.ViewportType.ORTHOGRAPHIC && esm.Enums.Events.VOLUME_NEW_IMAGE || esm.Enums.Events.IMAGE_RENDERED;
|
|
260
265
|
const updateIndex = event => {
|
|
261
266
|
const viewport = cornerstoneViewportService.getCornerstoneViewport(viewportId);
|
|
262
|
-
if (!viewport ||
|
|
267
|
+
if (!viewport || (0,getLegacyViewportType/* isVolume3DViewportType */.Ov)(viewport)) {
|
|
263
268
|
return;
|
|
264
269
|
}
|
|
265
270
|
const nextImageIndex = getImageIndexFromEvent(event);
|
|
@@ -433,6 +438,7 @@ function useViewedSliceBytes({
|
|
|
433
438
|
|
|
434
439
|
|
|
435
440
|
|
|
441
|
+
|
|
436
442
|
function ViewportSliceProgressScrollbar({
|
|
437
443
|
viewportData,
|
|
438
444
|
viewportId,
|
|
@@ -509,7 +515,7 @@ function ViewportSliceProgressScrollbar({
|
|
|
509
515
|
});
|
|
510
516
|
const onScrollbarValueChange = targetImageIndex => {
|
|
511
517
|
const viewport = cornerstoneViewportService.getCornerstoneViewport(viewportId);
|
|
512
|
-
if (!viewport ||
|
|
518
|
+
if (!viewport || (0,getLegacyViewportType/* isVolume3DViewportType */.Ov)(viewport)) {
|
|
513
519
|
return;
|
|
514
520
|
}
|
|
515
521
|
const {
|