@ohif/app 3.14.0-beta.98 → 3.14.0-beta.99
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/{1645.bundle.a98b9ca6.js → 1645.bundle.1a466b16.js} +600 -600
- package/dist/{1788.bundle.3f1349d2.js → 1788.bundle.962951f9.js} +26 -26
- package/dist/{1793.bundle.27458a55.js → 1793.bundle.30f89e46.js} +5 -3
- package/dist/{1862.bundle.79bfe469.js → 1862.bundle.3ae388c3.js} +2 -2
- package/dist/204.bundle.bc44c201.js +101 -0
- package/dist/204.bundle.css +52 -0
- package/dist/{2748.bundle.eaa94e2e.js → 2103.bundle.1cf348e8.js} +1 -1771
- package/dist/{2478.bundle.fc6ab30b.js → 2478.bundle.68ff1b2d.js} +2 -2
- package/dist/{2717.bundle.d5f58443.js → 2717.bundle.4318f1ee.js} +45 -43
- package/dist/{5989.bundle.f484884a.js → 287.bundle.ee60c370.js} +4570 -832
- package/dist/{2894.bundle.d612efb2.js → 2894.bundle.30c0af5b.js} +20 -14
- package/dist/{2991.bundle.f94892fb.js → 2991.bundle.77642eee.js} +101 -97
- package/dist/{3004.bundle.51919fdc.js → 3004.bundle.5568149a.js} +39 -38
- package/dist/{3255.bundle.13e205ac.js → 3255.bundle.3272671f.js} +29 -27
- package/dist/{3366.bundle.62baeeec.js → 3366.bundle.d9e78e25.js} +57 -53
- package/dist/{3468.bundle.f5dc5e44.js → 3468.bundle.666f2441.js} +37 -27
- package/dist/{347.bundle.397bb252.js → 347.bundle.1323658e.js} +44 -44
- package/dist/{3622.bundle.f4cf2d16.js → 3622.bundle.edb42b96.js} +56 -54
- package/dist/{3723.bundle.eab70100.js → 3723.bundle.43ff1971.js} +1 -1
- package/dist/{3771.bundle.aba09bd7.js → 3771.bundle.a5754f97.js} +8 -8
- package/dist/{4449.bundle.aaa4ab92.js → 4487.bundle.fa0375a4.js} +853 -95
- package/dist/{4606.bundle.a3485206.js → 4606.bundle.6c297e2a.js} +9 -7
- package/dist/{4998.bundle.3aedb48d.js → 4998.bundle.25b8cbfe.js} +5 -3
- package/dist/{5076.bundle.95c07142.js → 5076.bundle.2a14756f.js} +66 -66
- package/dist/{5143.bundle.04f54c00.js → 5143.bundle.53156bb0.js} +358 -226
- package/dist/{5154.bundle.2f460017.js → 5154.bundle.ccd02dd7.js} +5 -3
- package/dist/{5320.bundle.9b05cebb.js → 5320.bundle.c17eb4a7.js} +678 -546
- package/dist/{6212.bundle.e505e123.js → 6212.bundle.c4856be7.js} +48 -46
- package/dist/{6253.bundle.f74ac5c2.js → 6253.bundle.596ce463.js} +1225 -1145
- package/dist/{1153.bundle.51d39e80.js → 6314.bundle.5aadfe48.js} +199 -420
- package/dist/{641.bundle.4627a8e1.js → 641.bundle.8e45751e.js} +89 -89
- package/dist/{6481.bundle.d2fca485.js → 6481.bundle.85093e70.js} +29 -23
- package/dist/{6507.bundle.d52f5e81.js → 6507.bundle.bbcdd01e.js} +76 -76
- package/dist/{6722.bundle.d09a8aad.js → 6722.bundle.3e9a4ef6.js} +4 -4
- package/dist/{6956.bundle.c82fd790.js → 6956.bundle.dc0e8660.js} +33 -33
- package/dist/{7526.bundle.0685dfeb.js → 7526.bundle.3460c3ca.js} +55 -53
- package/dist/{7604.bundle.9eb317c8.js → 7604.bundle.f1eeded4.js} +2 -2
- package/dist/{8312.bundle.2cb75b58.js → 8312.bundle.d67b6f4e.js} +652 -687
- package/dist/{6847.bundle.b2adb444.js → 8729.bundle.e17fe9b2.js} +87 -845
- package/dist/{8788.bundle.4bb4c65b.js → 8788.bundle.83ddf642.js} +21 -20
- package/dist/{8868.bundle.4c357767.js → 8868.bundle.8f3653b3.js} +31 -31
- package/dist/{8923.bundle.9aca06c4.js → 8923.bundle.8b682e96.js} +148 -148
- package/dist/{899.bundle.9a033d16.js → 899.bundle.4e1aee7f.js} +73 -203
- package/dist/{9187.bundle.8f72b4fe.js → 9187.bundle.407afa07.js} +112 -110
- package/dist/9385.bundle.fb0bbf4a.js +1888 -0
- package/dist/{9481.bundle.ccb81f53.js → 9481.bundle.d045ae3a.js} +8 -6
- package/dist/{9517.bundle.1ae74db3.js → 9517.bundle.3e2896ef.js} +31 -17
- package/dist/{9620.bundle.d1dc0be1.js → 9620.bundle.b4cc392c.js} +63 -61
- package/dist/{9841.bundle.0f40f02b.js → 9841.bundle.4f2c401a.js} +93 -91
- package/dist/{9886.bundle.cabb4a24.js → 9886.bundle.b00d5d78.js} +4 -4
- package/dist/{8037.bundle.30a187f7.js → 9889.bundle.bf312047.js} +7743 -1098
- package/dist/{9948.bundle.1172ebca.js → 9948.bundle.fecf81f8.js} +5 -5
- package/dist/{app.bundle.51f0a437.js → app.bundle.bb359653.js} +1926 -1223
- package/dist/{compute.bundle.0ed1fe87.js → compute.bundle.9267d449.js} +13 -12
- package/dist/{histogram-worker.bundle.58e60d7c.js → histogram-worker.bundle.29bcdbf6.js} +6 -5
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.5a53d112.js → interpolation.bundle.ee9998a4.js} +8 -7
- package/dist/{lib-router.bundle.a5ac870a.js → lib-router.bundle.2a887bc7.js} +334 -201
- package/dist/{polySeg.bundle.b4089601.js → polySeg.bundle.a55f8eee.js} +12 -12
- package/dist/sw.js +11 -1
- package/package.json +14 -19
- package/dist/1566.bundle.d58db206.js +0 -3610
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(globalThis["rspackChunk_ohif_app"] ||= []).push([[8788], {
|
|
3
3
|
35071(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
4
|
+
// ESM COMPAT FLAG
|
|
5
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4
6
|
|
|
5
7
|
// EXPORTS
|
|
6
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
9
|
+
cornerstone: () => (/* binding */ cornerstone),
|
|
7
10
|
"default": () => (/* binding */ src)
|
|
8
11
|
});
|
|
9
12
|
|
|
10
|
-
// UNUSED EXPORTS: cornerstone
|
|
11
|
-
|
|
12
13
|
// EXTERNAL MODULE: ../../node_modules/i18next/dist/esm/i18next.js + 3 modules
|
|
13
14
|
var i18next = __webpack_require__(96392);
|
|
14
15
|
;// CONCATENATED MODULE: ../../modes/microscopy/package.json
|
|
@@ -40,8 +41,8 @@ const toolbarButtons = [
|
|
|
40
41
|
uiType: 'ohif.toolButton',
|
|
41
42
|
props: {
|
|
42
43
|
icon: 'tool-length',
|
|
43
|
-
label: i18next
|
|
44
|
-
tooltip: i18next
|
|
44
|
+
label: i18next["default"].t('Buttons:Line'),
|
|
45
|
+
tooltip: i18next["default"].t('Buttons:Line Tool'),
|
|
45
46
|
commands: setToolActiveToolbar,
|
|
46
47
|
evaluate: 'evaluate.microscopyTool'
|
|
47
48
|
}
|
|
@@ -51,8 +52,8 @@ const toolbarButtons = [
|
|
|
51
52
|
uiType: 'ohif.toolButton',
|
|
52
53
|
props: {
|
|
53
54
|
icon: 'tool-point',
|
|
54
|
-
label: i18next
|
|
55
|
-
tooltip: i18next
|
|
55
|
+
label: i18next["default"].t('Buttons:Point'),
|
|
56
|
+
tooltip: i18next["default"].t('Buttons:Point Tool'),
|
|
56
57
|
commands: {
|
|
57
58
|
...setToolActiveToolbar,
|
|
58
59
|
commandOptions: {
|
|
@@ -67,8 +68,8 @@ const toolbarButtons = [
|
|
|
67
68
|
uiType: 'ohif.toolButton',
|
|
68
69
|
props: {
|
|
69
70
|
icon: 'tool-polygon',
|
|
70
|
-
label: i18next
|
|
71
|
-
tooltip: i18next
|
|
71
|
+
label: i18next["default"].t('Buttons:Polygon'),
|
|
72
|
+
tooltip: i18next["default"].t('Buttons:Polygon Tool'),
|
|
72
73
|
commands: {
|
|
73
74
|
...setToolActiveToolbar,
|
|
74
75
|
commandOptions: {
|
|
@@ -83,8 +84,8 @@ const toolbarButtons = [
|
|
|
83
84
|
uiType: 'ohif.toolButton',
|
|
84
85
|
props: {
|
|
85
86
|
icon: 'tool-circle',
|
|
86
|
-
label: i18next
|
|
87
|
-
tooltip: i18next
|
|
87
|
+
label: i18next["default"].t('Buttons:Circle'),
|
|
88
|
+
tooltip: i18next["default"].t('Buttons:Circle Tool'),
|
|
88
89
|
commands: {
|
|
89
90
|
...setToolActiveToolbar,
|
|
90
91
|
commandOptions: {
|
|
@@ -99,8 +100,8 @@ const toolbarButtons = [
|
|
|
99
100
|
uiType: 'ohif.toolButton',
|
|
100
101
|
props: {
|
|
101
102
|
icon: 'tool-rectangle',
|
|
102
|
-
label: i18next
|
|
103
|
-
tooltip: i18next
|
|
103
|
+
label: i18next["default"].t('Buttons:Box'),
|
|
104
|
+
tooltip: i18next["default"].t('Buttons:Box Tool'),
|
|
104
105
|
commands: {
|
|
105
106
|
...setToolActiveToolbar,
|
|
106
107
|
commandOptions: {
|
|
@@ -115,8 +116,8 @@ const toolbarButtons = [
|
|
|
115
116
|
uiType: 'ohif.toolButton',
|
|
116
117
|
props: {
|
|
117
118
|
icon: 'tool-freehand-polygon',
|
|
118
|
-
label: i18next
|
|
119
|
-
tooltip: i18next
|
|
119
|
+
label: i18next["default"].t('Buttons:Freehand Polygon'),
|
|
120
|
+
tooltip: i18next["default"].t('Buttons:Freehand Polygon Tool'),
|
|
120
121
|
commands: {
|
|
121
122
|
...setToolActiveToolbar,
|
|
122
123
|
commandOptions: {
|
|
@@ -131,8 +132,8 @@ const toolbarButtons = [
|
|
|
131
132
|
uiType: 'ohif.toolButton',
|
|
132
133
|
props: {
|
|
133
134
|
icon: 'tool-freehand-line',
|
|
134
|
-
label: i18next
|
|
135
|
-
tooltip: i18next
|
|
135
|
+
label: i18next["default"].t('Buttons:Freehand Line'),
|
|
136
|
+
tooltip: i18next["default"].t('Buttons:Freehand Line Tool'),
|
|
136
137
|
commands: {
|
|
137
138
|
...setToolActiveToolbar,
|
|
138
139
|
commandOptions: {
|
|
@@ -147,7 +148,7 @@ const toolbarButtons = [
|
|
|
147
148
|
uiType: 'ohif.toolButton',
|
|
148
149
|
props: {
|
|
149
150
|
icon: 'tool-move',
|
|
150
|
-
label: i18next
|
|
151
|
+
label: i18next["default"].t('Buttons:Pan'),
|
|
151
152
|
commands: {
|
|
152
153
|
...setToolActiveToolbar,
|
|
153
154
|
commandOptions: {
|
|
@@ -162,8 +163,8 @@ const toolbarButtons = [
|
|
|
162
163
|
uiType: 'ohif.toolButton',
|
|
163
164
|
props: {
|
|
164
165
|
icon: 'dicom-tag-browser',
|
|
165
|
-
label: i18next
|
|
166
|
-
tooltip: i18next
|
|
166
|
+
label: i18next["default"].t('Buttons:Dicom Tag Browser'),
|
|
167
|
+
tooltip: i18next["default"].t('Buttons:Dicom Tag Browser'),
|
|
167
168
|
commands: 'openDICOMTagViewer',
|
|
168
169
|
evaluate: 'evaluate.action'
|
|
169
170
|
}
|
|
@@ -204,7 +205,7 @@ function modeFactory({ modeConfiguration }) {
|
|
|
204
205
|
return {
|
|
205
206
|
id: id,
|
|
206
207
|
routeName: 'microscopy',
|
|
207
|
-
displayName: i18next
|
|
208
|
+
displayName: i18next["default"].t('Modes:Microscopy'),
|
|
208
209
|
/**
|
|
209
210
|
* Lifecycle hooks
|
|
210
211
|
*/ onModeEnter: ({ servicesManager })=>{
|
|
@@ -35645,9 +35645,9 @@ class ONNXSegmentationController {
|
|
|
35645
35645
|
}
|
|
35646
35646
|
mapAnnotationPoint(worldPoint, canvasPosition) {
|
|
35647
35647
|
const { origin, downVector, rightVector } = canvasPosition;
|
|
35648
|
-
const deltaOrigin = gl_matrix_esm
|
|
35649
|
-
const x = Math.round(gl_matrix_esm
|
|
35650
|
-
const y = Math.round(gl_matrix_esm
|
|
35648
|
+
const deltaOrigin = gl_matrix_esm.vec3.sub([0, 0, 0], worldPoint, origin);
|
|
35649
|
+
const x = Math.round(gl_matrix_esm.vec3.dot(deltaOrigin, rightVector) / gl_matrix_esm.vec3.sqrLen(rightVector));
|
|
35650
|
+
const y = Math.round(gl_matrix_esm.vec3.dot(deltaOrigin, downVector) / gl_matrix_esm.vec3.sqrLen(downVector));
|
|
35651
35651
|
return [x, y];
|
|
35652
35652
|
}
|
|
35653
35653
|
updateAnnotations(useSession = this.currentImage) {
|
|
@@ -35756,13 +35756,13 @@ class ONNXSegmentationController {
|
|
|
35756
35756
|
const { dimensions } = previewVoxelManager;
|
|
35757
35757
|
const { data } = mask;
|
|
35758
35758
|
const { origin, rightVector, downVector } = canvasPosition;
|
|
35759
|
-
const worldPointJ = gl_matrix_esm
|
|
35760
|
-
const worldPoint = gl_matrix_esm
|
|
35759
|
+
const worldPointJ = gl_matrix_esm.vec3.create();
|
|
35760
|
+
const worldPoint = gl_matrix_esm.vec3.create();
|
|
35761
35761
|
const imageData = viewport.getDefaultImageData();
|
|
35762
35762
|
for (let j = 0; j < canvas.height; j++) {
|
|
35763
|
-
gl_matrix_esm
|
|
35763
|
+
gl_matrix_esm.vec3.scaleAndAdd(worldPointJ, origin, downVector, j);
|
|
35764
35764
|
for (let i = 0; i < canvas.width; i++) {
|
|
35765
|
-
gl_matrix_esm
|
|
35765
|
+
gl_matrix_esm.vec3.scaleAndAdd(worldPoint, worldPointJ, rightVector, i);
|
|
35766
35766
|
const ijkPoint = imageData.worldToIndex(worldPoint).map(Math.round);
|
|
35767
35767
|
if (ijkPoint.findIndex((v, index) => v < 0 || v >= dimensions[index]) !==
|
|
35768
35768
|
-1) {
|
|
@@ -37087,18 +37087,18 @@ function isPolylineParallelToPlane(lines, points, planeNormal, dotProductToleran
|
|
|
37087
37087
|
return false;
|
|
37088
37088
|
}
|
|
37089
37089
|
const { pointCount: count, pointIndices: ids } = bestContour;
|
|
37090
|
-
const _p_v1 = gl_matrix_esm
|
|
37091
|
-
const _p_v2 = gl_matrix_esm
|
|
37092
|
-
const _p_p0 = gl_matrix_esm
|
|
37093
|
-
const _p_p1 = gl_matrix_esm
|
|
37094
|
-
const _p_p2 = gl_matrix_esm
|
|
37095
|
-
const _p_polylineNormal = gl_matrix_esm
|
|
37096
|
-
const _p_planeNormal = gl_matrix_esm
|
|
37097
|
-
gl_matrix_esm
|
|
37090
|
+
const _p_v1 = gl_matrix_esm.vec3.create();
|
|
37091
|
+
const _p_v2 = gl_matrix_esm.vec3.create();
|
|
37092
|
+
const _p_p0 = gl_matrix_esm.vec3.create();
|
|
37093
|
+
const _p_p1 = gl_matrix_esm.vec3.create();
|
|
37094
|
+
const _p_p2 = gl_matrix_esm.vec3.create();
|
|
37095
|
+
const _p_polylineNormal = gl_matrix_esm.vec3.create();
|
|
37096
|
+
const _p_planeNormal = gl_matrix_esm.vec3.create();
|
|
37097
|
+
gl_matrix_esm.vec3.set(_p_p0, points[ids[0] * 3], points[ids[0] * 3 + 1], points[ids[0] * 3 + 2]);
|
|
37098
37098
|
let p1_found = false;
|
|
37099
37099
|
for (let i = 1; i < count; i++) {
|
|
37100
|
-
gl_matrix_esm
|
|
37101
|
-
if (!gl_matrix_esm
|
|
37100
|
+
gl_matrix_esm.vec3.set(_p_p1, points[ids[i] * 3], points[ids[i] * 3 + 1], points[ids[i] * 3 + 2]);
|
|
37101
|
+
if (!gl_matrix_esm.vec3.equals(_p_p0, _p_p1)) {
|
|
37102
37102
|
p1_found = true;
|
|
37103
37103
|
break;
|
|
37104
37104
|
}
|
|
@@ -37106,26 +37106,26 @@ function isPolylineParallelToPlane(lines, points, planeNormal, dotProductToleran
|
|
|
37106
37106
|
if (!p1_found) {
|
|
37107
37107
|
return false;
|
|
37108
37108
|
}
|
|
37109
|
-
gl_matrix_esm
|
|
37109
|
+
gl_matrix_esm.vec3.subtract(_p_v1, _p_p1, _p_p0);
|
|
37110
37110
|
let p2_found = false;
|
|
37111
37111
|
for (let i = 2; i < count; i++) {
|
|
37112
|
-
gl_matrix_esm
|
|
37113
|
-
gl_matrix_esm
|
|
37114
|
-
gl_matrix_esm
|
|
37115
|
-
if (gl_matrix_esm
|
|
37112
|
+
gl_matrix_esm.vec3.set(_p_p2, points[ids[i] * 3], points[ids[i] * 3 + 1], points[ids[i] * 3 + 2]);
|
|
37113
|
+
gl_matrix_esm.vec3.subtract(_p_v2, _p_p2, _p_p0);
|
|
37114
|
+
gl_matrix_esm.vec3.cross(_p_polylineNormal, _p_v1, _p_v2);
|
|
37115
|
+
if (gl_matrix_esm.vec3.length(_p_polylineNormal) > 1e-6) {
|
|
37116
37116
|
p2_found = true;
|
|
37117
37117
|
break;
|
|
37118
37118
|
}
|
|
37119
37119
|
}
|
|
37120
|
-
gl_matrix_esm
|
|
37120
|
+
gl_matrix_esm.vec3.normalize(_p_planeNormal, planeNormal);
|
|
37121
37121
|
if (p2_found) {
|
|
37122
|
-
gl_matrix_esm
|
|
37123
|
-
const dot = gl_matrix_esm
|
|
37122
|
+
gl_matrix_esm.vec3.normalize(_p_polylineNormal, _p_polylineNormal);
|
|
37123
|
+
const dot = gl_matrix_esm.vec3.dot(_p_polylineNormal, _p_planeNormal);
|
|
37124
37124
|
return Math.abs(dot) >= dotProductTolerance;
|
|
37125
37125
|
}
|
|
37126
37126
|
else {
|
|
37127
|
-
gl_matrix_esm
|
|
37128
|
-
const dot = gl_matrix_esm
|
|
37127
|
+
gl_matrix_esm.vec3.normalize(_p_v1, _p_v1);
|
|
37128
|
+
const dot = gl_matrix_esm.vec3.dot(_p_v1, _p_planeNormal);
|
|
37129
37129
|
return Math.abs(dot) >= dotProductTolerance;
|
|
37130
37130
|
}
|
|
37131
37131
|
}
|
|
@@ -37396,10 +37396,10 @@ async function convertContourToStackLabelmap(contourRepresentationData, options
|
|
|
37396
37396
|
rowPixelSpacing = rowPixelSpacing ?? 1;
|
|
37397
37397
|
columnPixelSpacing = columnPixelSpacing ?? 1;
|
|
37398
37398
|
imagePositionPatient = imagePositionPatient ?? [0, 0, 0];
|
|
37399
|
-
const rowCosineVec = gl_matrix_esm
|
|
37400
|
-
const colCosineVec = gl_matrix_esm
|
|
37401
|
-
const scanAxisNormal = gl_matrix_esm
|
|
37402
|
-
gl_matrix_esm
|
|
37399
|
+
const rowCosineVec = gl_matrix_esm.vec3.fromValues(rowCosines[0], rowCosines[1], rowCosines[2]);
|
|
37400
|
+
const colCosineVec = gl_matrix_esm.vec3.fromValues(columnCosines[0], columnCosines[1], columnCosines[2]);
|
|
37401
|
+
const scanAxisNormal = gl_matrix_esm.vec3.create();
|
|
37402
|
+
gl_matrix_esm.vec3.cross(scanAxisNormal, rowCosineVec, colCosineVec);
|
|
37403
37403
|
const direction = [...rowCosineVec, ...colCosineVec, ...scanAxisNormal];
|
|
37404
37404
|
const spacing = [rowPixelSpacing, columnPixelSpacing, 1];
|
|
37405
37405
|
const origin = imagePositionPatient;
|