@ohif/app 3.12.0-beta.99 → 3.12.1
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/{1403.bundle.94a178e2572f1f0b2a2c.js → 1403.bundle.761239eb886a88301851.js} +37 -37
- package/dist/{1459.bundle.3785cdd0abf449adebf1.js → 1459.bundle.fcdd0dec6286845179bf.js} +5 -6
- package/dist/{147.bundle.205350dc3d21478277b1.js → 147.bundle.47af018b91121924a12c.js} +10 -18
- package/dist/{1608.bundle.f855c4bdb7f00eb66fca.js → 1608.bundle.b9abbf4ed6cc2e491dc3.js} +10 -10
- package/dist/{1730.bundle.37c569ae3ed057b69840.js → 1730.bundle.51e69967a025226592cd.js} +41 -40
- package/dist/{1927.bundle.019331c266d306772371.js → 1927.bundle.be67b3aafe238ca9f191.js} +27 -38
- package/dist/{1933.bundle.ab5e8036f6e1c854c965.js → 1933.bundle.e3ba7d4dcbbd75701d8e.js} +19 -17
- package/dist/{2018.bundle.469f9ad42597b6b29ff1.js → 2018.bundle.45c44470b4b098aa343f.js} +65 -66
- package/dist/{2108.bundle.e84aa8d858d8c4f2413e.js → 2108.bundle.aea8d3b39486dd5ab39e.js} +569 -558
- package/dist/{213.bundle.398730bb3ceb1af54413.js → 213.bundle.863ab5d320fc06043a4e.js} +5 -7
- package/dist/{3584.bundle.839a16d349815b3f7c97.js → 2199.bundle.974037f21bfd12c4e8af.js} +256 -2236
- package/dist/{2424.bundle.be90e7bcf0fd8db68b2f.js → 2424.bundle.b070e83baf101dad2121.js} +5 -7
- package/dist/{2516.bundle.1ea0988d309a757bb6da.js → 2516.bundle.f62228e9a800de8d4b31.js} +6 -6
- package/dist/{2701.bundle.aca0d4f24a6f2094c3c3.js → 2701.bundle.58a6a580073edbb4cc04.js} +9 -9
- package/dist/{2842.bundle.7852a204d3510fca8b27.js → 2816.bundle.838fa4d72921c026083c.js} +1136 -2342
- package/dist/{9195.bundle.e2fd5c6b5830c0ee25a8.js → 2851.bundle.70227d013c1937e846be.js} +318 -150
- package/dist/{1903.bundle.dc5248f7cb6ba1dc1072.js → 3081.bundle.930757b1a5aa8549e112.js} +752 -466
- package/dist/{3343.bundle.f8fe9316b0ff68d087f7.js → 3343.bundle.a4424b8418b8c0c1a9e4.js} +27 -25
- package/dist/{3461.bundle.50c752c623f39cf6c457.js → 3461.bundle.ab31c31a5ddc4baa72f7.js} +40 -40
- package/dist/{4202.bundle.790706560c6edb303476.js → 4202.bundle.4f76d3a50d6cf819fba0.js} +6 -6
- package/dist/{4019.bundle.01f63d5dd5b96ded0c00.js → 4287.bundle.87e14e648f2bce5e4176.js} +372 -567
- package/dist/{4775.bundle.d7f0645419f1df8e00b8.js → 4775.bundle.768f00df706f506f3789.js} +57 -51
- package/dist/{4819.bundle.ef1151f023b3784bc1be.js → 4819.bundle.6377aba4cf194120e7d4.js} +35 -34
- package/dist/{5028.bundle.b3611b7c7422a5c2e723.js → 5028.bundle.3a086ff61ec8dc1da4b1.js} +13 -15
- package/dist/{5261.bundle.6e1a017f8f1027557f5b.js → 5261.bundle.2655560097e9250eac44.js} +412 -345
- package/dist/{5457.bundle.9f2eb65ad85fcbb75e27.js → 5457.bundle.0063531ed24c06fba48b.js} +16 -23
- package/dist/{5462.bundle.a81a691eeef782ab95b9.js → 5462.bundle.d5bb9b3ddc510fea141f.js} +1108 -1030
- package/dist/{5485.bundle.71041ca4bc9e6ab57d92.js → 5485.bundle.b523d7015979fc641f7e.js} +17 -32
- package/dist/{5491.bundle.2e01dd7ad29e4cc01bc1.js → 5491.bundle.4866d2ecb20dd089e071.js} +54 -51
- package/dist/5724.bundle.62ea5c07c7809ab4cd74.js +297 -0
- package/dist/5724.css +2 -0
- package/dist/{5802.bundle.28ab859d9b48a5b2c31c.js → 5802.bundle.ae4d88742c353de462c2.js} +13 -18
- package/dist/{5830.bundle.b073c265c4fcea1afff3.js → 5830.bundle.791019deddd536980a11.js} +3 -3
- package/dist/{5858.bundle.d5f4bf849aaeebf5025c.js → 5858.bundle.466e58128de344ab53f3.js} +90 -86
- package/dist/{6027.bundle.160bd47ea03784276275.js → 6027.bundle.3cf6c827b4ce9066b426.js} +3 -5
- package/dist/{6163.bundle.1f096bdbe3a341c1710d.js → 6163.bundle.ac77880c970e788c9a07.js} +33 -33
- package/dist/{5549.bundle.d5def6a3124a3a481b7c.js → 6280.bundle.f22f9955eb906e1d7da8.js} +2475 -1200
- package/dist/{3353.bundle.a0f1654c642395bbbbbc.js → 6347.bundle.f8393c20d5159ed41b64.js} +358 -214
- package/dist/{6354.bundle.c387737dc09c9cab4ff2.js → 6354.bundle.d8a592b03e9a5b7a66c2.js} +102 -96
- package/dist/{6376.bundle.272e755bdcbb5615a44e.js → 6376.bundle.527820a5cb1eece2a8d2.js} +6 -6
- package/dist/{5400.bundle.de97508611da1c00d58a.js → 6409.bundle.24edbaa283b7c521b8f7.js} +517 -146
- package/dist/6939.bundle.41fbdef87597b5172ec6.js +3 -3
- package/dist/7159.bundle.a5991a5d4f0dd8f1c95f.js +3 -3
- package/dist/{7190.bundle.d731ae6cf6e933a2c408.js → 7190.bundle.479332d662ffe08d1f92.js} +1462 -955
- package/dist/{732.bundle.6978ac30a1e36abf06db.js → 732.bundle.ea6f9d8504e37e01a208.js} +5 -13
- package/dist/{7431.bundle.999b2b65d4973bc56218.js → 7431.bundle.b31ebb4a2625e89d864e.js} +38 -32
- package/dist/{7639.bundle.e004d734044049fe8fe9.js → 7639.bundle.0147cdd1c23858221b62.js} +27 -25
- package/dist/7758.bundle.c8d106364298e7d288f0.js +3 -3
- package/dist/{8094.bundle.5c44190a325ac23e3e5c.js → 8094.bundle.148a66619607e37cbf19.js} +3 -4
- package/dist/{8305.bundle.ba43ed23edea2bf394b3.js → 8305.bundle.565339762503b9ae4f59.js} +57 -41
- package/dist/{85.bundle.a16e254910c60223df19.js → 85.bundle.b2365b2e4c3c6935f453.js} +3 -5
- package/dist/{8558.bundle.463ddb34a619cf47493e.js → 8558.bundle.9af6d13a22ddb44ea766.js} +60 -32
- package/dist/{8583.bundle.59c239cf891c2e10bf10.js → 8583.bundle.f51188077125da303398.js} +42 -39
- package/dist/{5448.bundle.9a36e001169ea3bfeb6c.js → 8665.bundle.dc56c125411422f9f686.js} +3753 -1424
- package/dist/{7412.bundle.aec4834a71fc27c4ce06.js → 9205.bundle.2a2f38a4ee23647f5fa4.js} +3413 -1271
- package/dist/{9845.bundle.31aec3fe7a5cdc247f4e.js → 9845.bundle.31f3e7e2d28fa6033ee5.js} +22 -14
- package/dist/{9862.bundle.3ca0ad5f54db87ccf91e.js → 9862.bundle.73ea2a7703bf1bb96275.js} +8 -6
- package/dist/{9927.bundle.f421cd167be94a7109f6.js → 9927.bundle.af31e6ce5cac195607fd.js} +19 -21
- package/dist/app-config.js +12 -0
- package/dist/{app.bundle.7df5bc1cd812bd602686.js → app.bundle.b2817894afde20b59bdb.js} +67903 -63389
- package/dist/app.bundle.css +1 -1
- package/dist/{compute.bundle.fdee4a0f193ee2e1b6da.js → compute.bundle.73440405025831e0e072.js} +10 -22
- package/dist/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js +3254 -1792
- package/dist/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js.map +1 -1
- package/dist/{histogram-worker.bundle.d4e40a8018d2698b072e.js → histogram-worker.bundle.5b679ce4142c803c80a4.js} +11 -23
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.1938b79f9d6db363528a.js → interpolation.bundle.7554483d97f6119414f9.js} +14 -26
- package/dist/{polySeg.bundle.11f9746cd60c9811a412.js → polySeg.bundle.6373e24bd578ae0d41eb.js} +8 -20
- package/dist/sw.js +1 -1
- package/package.json +24 -24
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[4287],{
|
|
3
3
|
|
|
4
|
-
/***/ 97181
|
|
5
|
-
|
|
4
|
+
/***/ 97181
|
|
5
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
|
|
7
7
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -13,10 +13,10 @@ function _getHash(annotationUID, drawingElementType, nodeUID) {
|
|
|
13
13
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_getHash);
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
/***/ }
|
|
16
|
+
/***/ },
|
|
17
17
|
|
|
18
|
-
/***/ 76910
|
|
19
|
-
|
|
18
|
+
/***/ 76910
|
|
19
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20
20
|
|
|
21
21
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22
22
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -56,10 +56,10 @@ const getMouseModifierKey = (evt) => {
|
|
|
56
56
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getMouseModifierKey);
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
/***/ }
|
|
59
|
+
/***/ },
|
|
60
60
|
|
|
61
|
-
/***/ 97
|
|
62
|
-
|
|
61
|
+
/***/ 97
|
|
62
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
// EXPORTS
|
|
@@ -123,10 +123,10 @@ function resetAnnotationManager() {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
/***/ }
|
|
126
|
+
/***/ },
|
|
127
127
|
|
|
128
|
-
/***/ 75419
|
|
129
|
-
|
|
128
|
+
/***/ 75419
|
|
129
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
130
130
|
|
|
131
131
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
132
132
|
/* harmony export */ R: () => (/* binding */ triggerSegmentationAdded)
|
|
@@ -143,10 +143,10 @@ function triggerSegmentationAdded(segmentationId) {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
/***/ }
|
|
146
|
+
/***/ },
|
|
147
147
|
|
|
148
|
-
/***/ 9726
|
|
149
|
-
|
|
148
|
+
/***/ 9726
|
|
149
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
150
150
|
|
|
151
151
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
152
152
|
/* harmony export */ G: () => (/* binding */ triggerSegmentationModified)
|
|
@@ -163,10 +163,10 @@ function triggerSegmentationModified(segmentationId) {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
/***/ }
|
|
166
|
+
/***/ },
|
|
167
167
|
|
|
168
|
-
/***/ 1485
|
|
169
|
-
|
|
168
|
+
/***/ 1485
|
|
169
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
170
170
|
|
|
171
171
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
172
172
|
/* harmony export */ B: () => (/* binding */ triggerSegmentationRemoved)
|
|
@@ -183,10 +183,10 @@ function triggerSegmentationRemoved(segmentationId) {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
|
|
186
|
-
/***/ }
|
|
186
|
+
/***/ },
|
|
187
187
|
|
|
188
|
-
/***/ 44951
|
|
189
|
-
|
|
188
|
+
/***/ 44951
|
|
189
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
190
190
|
|
|
191
191
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
192
192
|
/* harmony export */ r: () => (/* binding */ triggerSegmentationRepresentationModified)
|
|
@@ -205,10 +205,10 @@ function triggerSegmentationRepresentationModified(viewportId, segmentationId, t
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
|
|
208
|
-
/***/ }
|
|
208
|
+
/***/ },
|
|
209
209
|
|
|
210
|
-
/***/ 65290
|
|
211
|
-
|
|
210
|
+
/***/ 65290
|
|
211
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
212
212
|
|
|
213
213
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
214
214
|
/* harmony export */ O: () => (/* binding */ triggerSegmentationRepresentationRemoved)
|
|
@@ -227,10 +227,10 @@ function triggerSegmentationRepresentationRemoved(viewportId, segmentationId, ty
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
|
|
230
|
-
/***/ }
|
|
230
|
+
/***/ },
|
|
231
231
|
|
|
232
|
-
/***/ 33283
|
|
233
|
-
|
|
232
|
+
/***/ 33283
|
|
233
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
234
234
|
|
|
235
235
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
236
236
|
/* harmony export */ T: () => (/* binding */ getSegmentation)
|
|
@@ -243,10 +243,10 @@ function getSegmentation(segmentationId) {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
|
|
246
|
-
/***/ }
|
|
246
|
+
/***/ },
|
|
247
247
|
|
|
248
|
-
/***/ 47098
|
|
249
|
-
|
|
248
|
+
/***/ 47098
|
|
249
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
250
250
|
|
|
251
251
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
252
252
|
/* harmony export */ s: () => (/* binding */ internalGetHiddenSegmentIndices)
|
|
@@ -268,11 +268,13 @@ function internalGetHiddenSegmentIndices(viewportId, specifier) {
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
|
|
271
|
-
/***/ }
|
|
271
|
+
/***/ },
|
|
272
272
|
|
|
273
|
-
/***/ 9711
|
|
274
|
-
|
|
273
|
+
/***/ 9711
|
|
274
|
+
(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
275
275
|
|
|
276
|
+
/* unused harmony import specifier */ var Enums;
|
|
277
|
+
/* unused harmony import specifier */ var validatePublicLabelmap;
|
|
276
278
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29857);
|
|
277
279
|
/* harmony import */ var _utilities_segmentation_validateLabelmap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21345);
|
|
278
280
|
|
|
@@ -297,43 +299,10 @@ function validateSegmentationInput(segmentationInputArray) {
|
|
|
297
299
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (validateSegmentationInput)));
|
|
298
300
|
|
|
299
301
|
|
|
300
|
-
/***/ }
|
|
302
|
+
/***/ },
|
|
301
303
|
|
|
302
|
-
/***/
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
306
|
-
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
307
|
-
/* harmony export */ });
|
|
308
|
-
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85204);
|
|
309
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29857);
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
const MODES = [_enums__WEBPACK_IMPORTED_MODULE_1__.ToolModes.Active, _enums__WEBPACK_IMPORTED_MODULE_1__.ToolModes.Passive, _enums__WEBPACK_IMPORTED_MODULE_1__.ToolModes.Enabled];
|
|
313
|
-
function getToolGroupsWithToolName(toolName) {
|
|
314
|
-
return _state__WEBPACK_IMPORTED_MODULE_0__/* .state */ .wk.toolGroups.filter(({ toolOptions }) => {
|
|
315
|
-
const toolGroupToolNames = Object.keys(toolOptions);
|
|
316
|
-
for (let i = 0; i < toolGroupToolNames.length; i++) {
|
|
317
|
-
if (toolName !== toolGroupToolNames[i]) {
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
if (!toolOptions[toolName]) {
|
|
321
|
-
continue;
|
|
322
|
-
}
|
|
323
|
-
if (MODES.includes(toolOptions[toolName].mode)) {
|
|
324
|
-
return true;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
return false;
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getToolGroupsWithToolName);
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
/***/ }),
|
|
334
|
-
|
|
335
|
-
/***/ 57999:
|
|
336
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
304
|
+
/***/ 57999
|
|
305
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
337
306
|
|
|
338
307
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
339
308
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -343,7 +312,7 @@ function getToolGroupsWithToolName(toolName) {
|
|
|
343
312
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85204);
|
|
344
313
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29857);
|
|
345
314
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7001);
|
|
346
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
315
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85895);
|
|
347
316
|
/* harmony import */ var _types_ContourAnnotation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93126);
|
|
348
317
|
/* harmony import */ var _utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42797);
|
|
349
318
|
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(58640);
|
|
@@ -611,10 +580,10 @@ function registerClosedContourEditLoop(toolInstance) {
|
|
|
611
580
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (registerClosedContourEditLoop);
|
|
612
581
|
|
|
613
582
|
|
|
614
|
-
/***/ }
|
|
583
|
+
/***/ },
|
|
615
584
|
|
|
616
|
-
/***/ 55927
|
|
617
|
-
|
|
585
|
+
/***/ 55927
|
|
586
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
618
587
|
|
|
619
588
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
620
589
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -629,7 +598,7 @@ function registerClosedContourEditLoop(toolInstance) {
|
|
|
629
598
|
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58640);
|
|
630
599
|
/* harmony import */ var _stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(44049);
|
|
631
600
|
/* harmony import */ var _findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5403);
|
|
632
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
601
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(85895);
|
|
633
602
|
/* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82056);
|
|
634
603
|
/* harmony import */ var _types_ContourAnnotation__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(93126);
|
|
635
604
|
|
|
@@ -767,7 +736,7 @@ function completeDrawClosedContour(element, options) {
|
|
|
767
736
|
}
|
|
768
737
|
const { annotation, viewportIdsToRender } = this.commonData;
|
|
769
738
|
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
770
|
-
const { viewport
|
|
739
|
+
const { viewport } = enabledElement;
|
|
771
740
|
addCanvasPointsToArray(element, canvasPoints, canvasPoints[0], this.commonData);
|
|
772
741
|
canvasPoints.pop();
|
|
773
742
|
const updatedPoints = (0,_utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_5__/* .shouldSmooth */ .Q)(this.configuration, annotation)
|
|
@@ -813,7 +782,7 @@ function completeDrawOpenContour(element, options) {
|
|
|
813
782
|
}
|
|
814
783
|
const { annotation, viewportIdsToRender } = this.commonData;
|
|
815
784
|
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
816
|
-
const { viewport
|
|
785
|
+
const { viewport } = enabledElement;
|
|
817
786
|
const updatedPoints = (0,_utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_5__/* .shouldSmooth */ .Q)(this.configuration, annotation)
|
|
818
787
|
? (0,_utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_5__/* .getInterpolatedPoints */ .p)(this.configuration, canvasPoints)
|
|
819
788
|
: canvasPoints;
|
|
@@ -827,7 +796,8 @@ function completeDrawOpenContour(element, options) {
|
|
|
827
796
|
worldPoints[0],
|
|
828
797
|
worldPoints[worldPoints.length - 1],
|
|
829
798
|
];
|
|
830
|
-
if (annotation.data.isOpenUShapeContour
|
|
799
|
+
if (annotation.data.isOpenUShapeContour === true ||
|
|
800
|
+
annotation.data.isOpenUShapeContour === 'farthestT') {
|
|
831
801
|
annotation.data.openUShapeContourVectorToPeak =
|
|
832
802
|
(0,_findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)(canvasPoints, viewport);
|
|
833
803
|
}
|
|
@@ -895,8 +865,6 @@ function haltDrawing(element, canvasPoints) {
|
|
|
895
865
|
const { subPixelResolution } = this.configuration;
|
|
896
866
|
if (shouldHaltDrawing(canvasPoints, subPixelResolution)) {
|
|
897
867
|
const { annotation, viewportIdsToRender } = this.commonData;
|
|
898
|
-
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
899
|
-
const { renderingEngine } = enabledElement;
|
|
900
868
|
(0,_stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_11__.removeAnnotation)(annotation.annotationUID);
|
|
901
869
|
this.isDrawing = false;
|
|
902
870
|
this.drawData = undefined;
|
|
@@ -927,16 +895,16 @@ function registerDrawLoop(toolInstance) {
|
|
|
927
895
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (registerDrawLoop);
|
|
928
896
|
|
|
929
897
|
|
|
930
|
-
/***/ }
|
|
898
|
+
/***/ },
|
|
931
899
|
|
|
932
|
-
/***/ 92400
|
|
933
|
-
|
|
900
|
+
/***/ 92400
|
|
901
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
934
902
|
|
|
935
903
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
936
904
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
937
905
|
/* harmony export */ });
|
|
938
906
|
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3823);
|
|
939
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
907
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85895);
|
|
940
908
|
|
|
941
909
|
|
|
942
910
|
const { addCanvasPointsToArray, getFirstLineSegmentIntersectionIndexes } = _utilities_math__WEBPACK_IMPORTED_MODULE_1__.polyline;
|
|
@@ -1085,10 +1053,10 @@ function registerEditLoopCommon(toolInstance) {
|
|
|
1085
1053
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (registerEditLoopCommon);
|
|
1086
1054
|
|
|
1087
1055
|
|
|
1088
|
-
/***/ }
|
|
1056
|
+
/***/ },
|
|
1089
1057
|
|
|
1090
|
-
/***/ 5403
|
|
1091
|
-
|
|
1058
|
+
/***/ 5403
|
|
1059
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1092
1060
|
|
|
1093
1061
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1094
1062
|
/* harmony export */ A: () => (/* binding */ findOpenUShapedContourVectorToPeak),
|
|
@@ -1136,10 +1104,10 @@ function findOpenUShapedContourVectorToPeakOnRender(enabledElement, annotation)
|
|
|
1136
1104
|
}
|
|
1137
1105
|
|
|
1138
1106
|
|
|
1139
|
-
/***/ }
|
|
1107
|
+
/***/ },
|
|
1140
1108
|
|
|
1141
|
-
/***/ 69855
|
|
1142
|
-
|
|
1109
|
+
/***/ 69855
|
|
1110
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1143
1111
|
|
|
1144
1112
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1145
1113
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -1149,7 +1117,7 @@ function findOpenUShapedContourVectorToPeakOnRender(enabledElement, annotation)
|
|
|
1149
1117
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85204);
|
|
1150
1118
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29857);
|
|
1151
1119
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7001);
|
|
1152
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
1120
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85895);
|
|
1153
1121
|
/* harmony import */ var _utilities_planarFreehandROITool_smoothPoints__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42797);
|
|
1154
1122
|
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58640);
|
|
1155
1123
|
/* harmony import */ var _utilities_contours_updateContourPolyline__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(72967);
|
|
@@ -1486,10 +1454,10 @@ function registerOpenContourEditLoop(toolInstance) {
|
|
|
1486
1454
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (registerOpenContourEditLoop);
|
|
1487
1455
|
|
|
1488
1456
|
|
|
1489
|
-
/***/ }
|
|
1457
|
+
/***/ },
|
|
1490
1458
|
|
|
1491
|
-
/***/ 70734
|
|
1492
|
-
|
|
1459
|
+
/***/ 70734
|
|
1460
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1493
1461
|
|
|
1494
1462
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1495
1463
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -1498,7 +1466,7 @@ function registerOpenContourEditLoop(toolInstance) {
|
|
|
1498
1466
|
/* harmony import */ var _store_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85204);
|
|
1499
1467
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29857);
|
|
1500
1468
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7001);
|
|
1501
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
1469
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85895);
|
|
1502
1470
|
|
|
1503
1471
|
|
|
1504
1472
|
|
|
@@ -1549,16 +1517,16 @@ function registerOpenContourEndEditLoop(toolInstance) {
|
|
|
1549
1517
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (registerOpenContourEndEditLoop);
|
|
1550
1518
|
|
|
1551
1519
|
|
|
1552
|
-
/***/ }
|
|
1520
|
+
/***/ },
|
|
1553
1521
|
|
|
1554
|
-
/***/ 58161
|
|
1555
|
-
|
|
1522
|
+
/***/ 58161
|
|
1523
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1556
1524
|
|
|
1557
1525
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1558
1526
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1559
1527
|
/* harmony export */ });
|
|
1560
1528
|
/* harmony import */ var _drawingSvg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74347);
|
|
1561
|
-
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1529
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85895);
|
|
1562
1530
|
/* harmony import */ var _findOpenUShapedContourVectorToPeak__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5403);
|
|
1563
1531
|
/* harmony import */ var _utilities_contours_getContourHolesDataCanvas__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15451);
|
|
1564
1532
|
|
|
@@ -1779,324 +1747,10 @@ function registerRenderMethods(toolInstance) {
|
|
|
1779
1747
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (registerRenderMethods);
|
|
1780
1748
|
|
|
1781
1749
|
|
|
1782
|
-
/***/ }
|
|
1783
|
-
|
|
1784
|
-
/***/ 91350:
|
|
1785
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1786
|
-
|
|
1787
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1788
|
-
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1789
|
-
/* harmony export */ });
|
|
1790
|
-
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
1791
|
-
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
|
|
1792
|
-
/* harmony import */ var _AnnotationDisplayTool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6030);
|
|
1793
|
-
/* harmony import */ var _stateManagement_annotation_annotationLocking__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2076);
|
|
1794
|
-
/* harmony import */ var _stateManagement_annotation_annotationVisibility__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29601);
|
|
1795
|
-
/* harmony import */ var _stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(82056);
|
|
1796
|
-
/* harmony import */ var _stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44049);
|
|
1797
|
-
/* harmony import */ var _enums_ChangeTypes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75183);
|
|
1798
|
-
/* harmony import */ var _stateManagement_annotation_annotationSelection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17343);
|
|
1799
|
-
/* harmony import */ var _utilities_contourSegmentation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(56534);
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1750
|
+
/***/ },
|
|
1805
1751
|
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
const { DefaultHistoryMemo } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.HistoryMemo;
|
|
1811
|
-
const { PointsManager } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities;
|
|
1812
|
-
class AnnotationTool extends _AnnotationDisplayTool__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A {
|
|
1813
|
-
static createAnnotationForViewport(viewport, ...annotationBaseData) {
|
|
1814
|
-
return this.createAnnotation({ metadata: viewport.getViewReference() }, ...annotationBaseData);
|
|
1815
|
-
}
|
|
1816
|
-
static createAndAddAnnotation(viewport, ...annotationBaseData) {
|
|
1817
|
-
const annotation = this.createAnnotationForViewport(viewport, ...annotationBaseData);
|
|
1818
|
-
(0,_stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_5__.addAnnotation)(annotation, viewport.element);
|
|
1819
|
-
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_6__.triggerAnnotationModified)(annotation, viewport.element);
|
|
1820
|
-
}
|
|
1821
|
-
constructor(toolProps, defaultToolProps) {
|
|
1822
|
-
super(toolProps, defaultToolProps);
|
|
1823
|
-
this.mouseMoveCallback = (evt, filteredAnnotations) => {
|
|
1824
|
-
if (!filteredAnnotations) {
|
|
1825
|
-
return false;
|
|
1826
|
-
}
|
|
1827
|
-
const { element, currentPoints } = evt.detail;
|
|
1828
|
-
const canvasCoords = currentPoints.canvas;
|
|
1829
|
-
let annotationsNeedToBeRedrawn = false;
|
|
1830
|
-
for (const annotation of filteredAnnotations) {
|
|
1831
|
-
if ((0,_stateManagement_annotation_annotationLocking__WEBPACK_IMPORTED_MODULE_3__.isAnnotationLocked)(annotation.annotationUID) ||
|
|
1832
|
-
!(0,_stateManagement_annotation_annotationVisibility__WEBPACK_IMPORTED_MODULE_4__.isAnnotationVisible)(annotation.annotationUID)) {
|
|
1833
|
-
continue;
|
|
1834
|
-
}
|
|
1835
|
-
const { data } = annotation;
|
|
1836
|
-
const activateHandleIndex = data.handles
|
|
1837
|
-
? data.handles.activeHandleIndex
|
|
1838
|
-
: undefined;
|
|
1839
|
-
const near = this._imagePointNearToolOrHandle(element, annotation, canvasCoords, 6);
|
|
1840
|
-
const nearToolAndNotMarkedActive = near && !annotation.highlighted;
|
|
1841
|
-
const notNearToolAndMarkedActive = !near && annotation.highlighted;
|
|
1842
|
-
if (nearToolAndNotMarkedActive || notNearToolAndMarkedActive) {
|
|
1843
|
-
annotation.highlighted = !annotation.highlighted;
|
|
1844
|
-
annotationsNeedToBeRedrawn = true;
|
|
1845
|
-
}
|
|
1846
|
-
else if (data.handles &&
|
|
1847
|
-
data.handles.activeHandleIndex !== activateHandleIndex) {
|
|
1848
|
-
annotationsNeedToBeRedrawn = true;
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
return annotationsNeedToBeRedrawn;
|
|
1852
|
-
};
|
|
1853
|
-
this.isSuvScaled = AnnotationTool.isSuvScaled;
|
|
1854
|
-
if (toolProps.configuration?.getTextLines) {
|
|
1855
|
-
this.configuration.getTextLines = toolProps.configuration.getTextLines;
|
|
1856
|
-
}
|
|
1857
|
-
if (toolProps.configuration?.statsCalculator) {
|
|
1858
|
-
this.configuration.statsCalculator =
|
|
1859
|
-
toolProps.configuration.statsCalculator;
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
getHandleNearImagePoint(element, annotation, canvasCoords, proximity) {
|
|
1863
|
-
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
1864
|
-
const { viewport } = enabledElement;
|
|
1865
|
-
const { data } = annotation;
|
|
1866
|
-
const { isCanvasAnnotation } = data;
|
|
1867
|
-
const { points, textBox } = data.handles;
|
|
1868
|
-
if (textBox) {
|
|
1869
|
-
const { worldBoundingBox } = textBox;
|
|
1870
|
-
if (worldBoundingBox) {
|
|
1871
|
-
const canvasBoundingBox = {
|
|
1872
|
-
topLeft: viewport.worldToCanvas(worldBoundingBox.topLeft),
|
|
1873
|
-
topRight: viewport.worldToCanvas(worldBoundingBox.topRight),
|
|
1874
|
-
bottomLeft: viewport.worldToCanvas(worldBoundingBox.bottomLeft),
|
|
1875
|
-
bottomRight: viewport.worldToCanvas(worldBoundingBox.bottomRight),
|
|
1876
|
-
};
|
|
1877
|
-
if (canvasCoords[0] >= canvasBoundingBox.topLeft[0] &&
|
|
1878
|
-
canvasCoords[0] <= canvasBoundingBox.bottomRight[0] &&
|
|
1879
|
-
canvasCoords[1] >= canvasBoundingBox.topLeft[1] &&
|
|
1880
|
-
canvasCoords[1] <= canvasBoundingBox.bottomRight[1]) {
|
|
1881
|
-
data.handles.activeHandleIndex = null;
|
|
1882
|
-
return textBox;
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
for (let i = 0; i < points?.length; i++) {
|
|
1887
|
-
const point = points[i];
|
|
1888
|
-
const annotationCanvasCoordinate = isCanvasAnnotation
|
|
1889
|
-
? point.slice(0, 2)
|
|
1890
|
-
: viewport.worldToCanvas(point);
|
|
1891
|
-
const near = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec2.distance */ .Zc.distance(canvasCoords, annotationCanvasCoordinate) < proximity;
|
|
1892
|
-
if (near === true) {
|
|
1893
|
-
data.handles.activeHandleIndex = i;
|
|
1894
|
-
return point;
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
data.handles.activeHandleIndex = null;
|
|
1898
|
-
}
|
|
1899
|
-
getLinkedTextBoxStyle(specifications, annotation) {
|
|
1900
|
-
return {
|
|
1901
|
-
visibility: this.getStyle('textBoxVisibility', specifications, annotation),
|
|
1902
|
-
fontFamily: this.getStyle('textBoxFontFamily', specifications, annotation),
|
|
1903
|
-
fontSize: this.getStyle('textBoxFontSize', specifications, annotation),
|
|
1904
|
-
color: this.getStyle('textBoxColor', specifications, annotation),
|
|
1905
|
-
shadow: this.getStyle('textBoxShadow', specifications, annotation),
|
|
1906
|
-
background: this.getStyle('textBoxBackground', specifications, annotation),
|
|
1907
|
-
lineWidth: this.getStyle('textBoxLinkLineWidth', specifications, annotation),
|
|
1908
|
-
lineDash: this.getStyle('textBoxLinkLineDash', specifications, annotation),
|
|
1909
|
-
textBoxBorderRadius: this.getStyle('textBoxBorderRadius', specifications, annotation),
|
|
1910
|
-
textBoxMargin: this.getStyle('textBoxMargin', specifications, annotation),
|
|
1911
|
-
textBoxLinkLineColor: this.getStyle('textBoxLinkLineColor', specifications, annotation),
|
|
1912
|
-
};
|
|
1913
|
-
}
|
|
1914
|
-
static isSuvScaled(viewport, targetId, imageId) {
|
|
1915
|
-
if (viewport instanceof _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.BaseVolumeViewport) {
|
|
1916
|
-
const volumeId = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.getVolumeId(targetId);
|
|
1917
|
-
const volume = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.cache.getVolume(volumeId);
|
|
1918
|
-
return volume?.scaling?.PT !== undefined;
|
|
1919
|
-
}
|
|
1920
|
-
const scalingModule = imageId && _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.metaData.get('scalingModule', imageId);
|
|
1921
|
-
return typeof scalingModule?.suvbw === 'number';
|
|
1922
|
-
}
|
|
1923
|
-
getAnnotationStyle(context) {
|
|
1924
|
-
const { annotation, styleSpecifier } = context;
|
|
1925
|
-
const getStyle = (property) => this.getStyle(property, styleSpecifier, annotation);
|
|
1926
|
-
const { annotationUID } = annotation;
|
|
1927
|
-
const visibility = (0,_stateManagement_annotation_annotationVisibility__WEBPACK_IMPORTED_MODULE_4__.isAnnotationVisible)(annotationUID);
|
|
1928
|
-
const locked = (0,_stateManagement_annotation_annotationLocking__WEBPACK_IMPORTED_MODULE_3__.isAnnotationLocked)(annotationUID);
|
|
1929
|
-
const lineWidth = getStyle('lineWidth');
|
|
1930
|
-
const lineDash = getStyle('lineDash');
|
|
1931
|
-
const angleArcLineDash = getStyle('angleArcLineDash');
|
|
1932
|
-
const color = getStyle('color');
|
|
1933
|
-
const markerSize = getStyle('markerSize');
|
|
1934
|
-
const shadow = getStyle('shadow');
|
|
1935
|
-
const textboxStyle = this.getLinkedTextBoxStyle(styleSpecifier, annotation);
|
|
1936
|
-
return {
|
|
1937
|
-
visibility,
|
|
1938
|
-
locked,
|
|
1939
|
-
color,
|
|
1940
|
-
lineWidth,
|
|
1941
|
-
lineDash,
|
|
1942
|
-
lineOpacity: 1,
|
|
1943
|
-
fillColor: color,
|
|
1944
|
-
fillOpacity: 0,
|
|
1945
|
-
shadow,
|
|
1946
|
-
textbox: textboxStyle,
|
|
1947
|
-
markerSize,
|
|
1948
|
-
angleArcLineDash,
|
|
1949
|
-
};
|
|
1950
|
-
}
|
|
1951
|
-
_imagePointNearToolOrHandle(element, annotation, canvasCoords, proximity) {
|
|
1952
|
-
const handleNearImagePoint = this.getHandleNearImagePoint(element, annotation, canvasCoords, proximity);
|
|
1953
|
-
if (handleNearImagePoint) {
|
|
1954
|
-
return true;
|
|
1955
|
-
}
|
|
1956
|
-
const toolNewImagePoint = this.isPointNearTool(element, annotation, canvasCoords, proximity, 'mouse');
|
|
1957
|
-
if (toolNewImagePoint) {
|
|
1958
|
-
return true;
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
1961
|
-
static createAnnotationState(annotation, deleting) {
|
|
1962
|
-
const { data, annotationUID } = annotation;
|
|
1963
|
-
const cloneData = {
|
|
1964
|
-
...data,
|
|
1965
|
-
cachedStats: {},
|
|
1966
|
-
};
|
|
1967
|
-
delete cloneData.contour;
|
|
1968
|
-
delete cloneData.spline;
|
|
1969
|
-
const state = {
|
|
1970
|
-
annotationUID,
|
|
1971
|
-
data: structuredClone(cloneData),
|
|
1972
|
-
deleting,
|
|
1973
|
-
};
|
|
1974
|
-
const contour = data.contour;
|
|
1975
|
-
if (contour) {
|
|
1976
|
-
state.data.contour = {
|
|
1977
|
-
...contour,
|
|
1978
|
-
polyline: null,
|
|
1979
|
-
pointsManager: PointsManager.create3(contour.polyline.length, contour.polyline),
|
|
1980
|
-
};
|
|
1981
|
-
}
|
|
1982
|
-
return state;
|
|
1983
|
-
}
|
|
1984
|
-
static createAnnotationMemo(element, annotation, options) {
|
|
1985
|
-
if (!annotation) {
|
|
1986
|
-
return;
|
|
1987
|
-
}
|
|
1988
|
-
const { newAnnotation, deleting = newAnnotation ? false : undefined } = options || {};
|
|
1989
|
-
const { annotationUID } = annotation;
|
|
1990
|
-
const state = AnnotationTool.createAnnotationState(annotation, deleting);
|
|
1991
|
-
const annotationMemo = {
|
|
1992
|
-
restoreMemo: () => {
|
|
1993
|
-
const newState = AnnotationTool.createAnnotationState(annotation, deleting);
|
|
1994
|
-
const { viewport } = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element) || {};
|
|
1995
|
-
viewport?.setViewReference(annotation.metadata);
|
|
1996
|
-
if (state.deleting === true) {
|
|
1997
|
-
state.deleting = false;
|
|
1998
|
-
Object.assign(annotation.data, state.data);
|
|
1999
|
-
if (annotation.data.contour) {
|
|
2000
|
-
const annotationData = annotation.data;
|
|
2001
|
-
annotationData.contour.polyline = state.data.contour.pointsManager.points;
|
|
2002
|
-
delete state.data.contour.pointsManager;
|
|
2003
|
-
if (annotationData.segmentation) {
|
|
2004
|
-
(0,_utilities_contourSegmentation__WEBPACK_IMPORTED_MODULE_9__.addContourSegmentationAnnotation)(annotation);
|
|
2005
|
-
}
|
|
2006
|
-
}
|
|
2007
|
-
state.data = newState.data;
|
|
2008
|
-
(0,_stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_5__.addAnnotation)(annotation, element);
|
|
2009
|
-
(0,_stateManagement_annotation_annotationSelection__WEBPACK_IMPORTED_MODULE_8__.setAnnotationSelected)(annotation.annotationUID, true);
|
|
2010
|
-
viewport?.render();
|
|
2011
|
-
return;
|
|
2012
|
-
}
|
|
2013
|
-
if (state.deleting === false) {
|
|
2014
|
-
state.deleting = true;
|
|
2015
|
-
state.data = newState.data;
|
|
2016
|
-
(0,_stateManagement_annotation_annotationSelection__WEBPACK_IMPORTED_MODULE_8__.setAnnotationSelected)(annotation.annotationUID);
|
|
2017
|
-
(0,_stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_5__.removeAnnotation)(annotation.annotationUID);
|
|
2018
|
-
viewport?.render();
|
|
2019
|
-
return;
|
|
2020
|
-
}
|
|
2021
|
-
const currentAnnotation = (0,_stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_5__.getAnnotation)(annotationUID);
|
|
2022
|
-
if (!currentAnnotation) {
|
|
2023
|
-
console.warn('No current annotation');
|
|
2024
|
-
return;
|
|
2025
|
-
}
|
|
2026
|
-
Object.assign(currentAnnotation.data, state.data);
|
|
2027
|
-
if (currentAnnotation.data.contour) {
|
|
2028
|
-
currentAnnotation.data
|
|
2029
|
-
.contour.polyline = state.data.contour.pointsManager.points;
|
|
2030
|
-
}
|
|
2031
|
-
state.data = newState.data;
|
|
2032
|
-
currentAnnotation.invalidated = true;
|
|
2033
|
-
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_6__.triggerAnnotationModified)(currentAnnotation, element, _enums_ChangeTypes__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.History);
|
|
2034
|
-
},
|
|
2035
|
-
id: annotationUID,
|
|
2036
|
-
operationType: 'annotation',
|
|
2037
|
-
};
|
|
2038
|
-
DefaultHistoryMemo.push(annotationMemo);
|
|
2039
|
-
return annotationMemo;
|
|
2040
|
-
}
|
|
2041
|
-
createMemo(element, annotation, options) {
|
|
2042
|
-
this.memo ||= AnnotationTool.createAnnotationMemo(element, annotation, options);
|
|
2043
|
-
}
|
|
2044
|
-
startGroupRecording() {
|
|
2045
|
-
DefaultHistoryMemo.startGroupRecording();
|
|
2046
|
-
}
|
|
2047
|
-
endGroupRecording() {
|
|
2048
|
-
DefaultHistoryMemo.endGroupRecording();
|
|
2049
|
-
}
|
|
2050
|
-
static hydrateBase(ToolClass, enabledElement, points, options = {}) {
|
|
2051
|
-
if (!enabledElement) {
|
|
2052
|
-
return null;
|
|
2053
|
-
}
|
|
2054
|
-
const { viewport } = enabledElement;
|
|
2055
|
-
const FrameOfReferenceUID = viewport.getFrameOfReferenceUID();
|
|
2056
|
-
const camera = viewport.getCamera();
|
|
2057
|
-
const viewPlaneNormal = options.viewplaneNormal ?? camera.viewPlaneNormal;
|
|
2058
|
-
const viewUp = options.viewUp ?? camera.viewUp;
|
|
2059
|
-
const instance = options.toolInstance || new ToolClass();
|
|
2060
|
-
let referencedImageId;
|
|
2061
|
-
let finalViewPlaneNormal = viewPlaneNormal;
|
|
2062
|
-
let finalViewUp = viewUp;
|
|
2063
|
-
if (options.referencedImageId) {
|
|
2064
|
-
referencedImageId = options.referencedImageId;
|
|
2065
|
-
finalViewPlaneNormal = undefined;
|
|
2066
|
-
finalViewUp = undefined;
|
|
2067
|
-
}
|
|
2068
|
-
else {
|
|
2069
|
-
if (viewport instanceof _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.StackViewport) {
|
|
2070
|
-
const closestImageIndex = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.getClosestStackImageIndexForPoint(points[0], viewport);
|
|
2071
|
-
if (closestImageIndex !== undefined) {
|
|
2072
|
-
referencedImageId = viewport.getImageIds()[closestImageIndex];
|
|
2073
|
-
}
|
|
2074
|
-
}
|
|
2075
|
-
else if (viewport instanceof _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.BaseVolumeViewport) {
|
|
2076
|
-
referencedImageId = instance.getReferencedImageId(viewport, points[0], viewPlaneNormal, viewUp);
|
|
2077
|
-
}
|
|
2078
|
-
else {
|
|
2079
|
-
throw new Error('Unsupported viewport type');
|
|
2080
|
-
}
|
|
2081
|
-
}
|
|
2082
|
-
return {
|
|
2083
|
-
FrameOfReferenceUID,
|
|
2084
|
-
referencedImageId,
|
|
2085
|
-
viewPlaneNormal: finalViewPlaneNormal,
|
|
2086
|
-
viewUp: finalViewUp,
|
|
2087
|
-
instance,
|
|
2088
|
-
viewport,
|
|
2089
|
-
};
|
|
2090
|
-
}
|
|
2091
|
-
}
|
|
2092
|
-
AnnotationTool.toolName = 'AnnotationTool';
|
|
2093
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AnnotationTool);
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
/***/ }),
|
|
2097
|
-
|
|
2098
|
-
/***/ 36320:
|
|
2099
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1752
|
+
/***/ 36320
|
|
1753
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2100
1754
|
|
|
2101
1755
|
|
|
2102
1756
|
// EXPORTS
|
|
@@ -2267,8 +1921,8 @@ var InterpolationManager = __webpack_require__(27740);
|
|
|
2267
1921
|
var contourSegmentation = __webpack_require__(56534);
|
|
2268
1922
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/triggerAnnotationRenderForToolGroupIds.js
|
|
2269
1923
|
var triggerAnnotationRenderForToolGroupIds = __webpack_require__(94779);
|
|
2270
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js +
|
|
2271
|
-
var ToolGroupManager = __webpack_require__(
|
|
1924
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js + 7 modules
|
|
1925
|
+
var ToolGroupManager = __webpack_require__(7754);
|
|
2272
1926
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getSegmentationRepresentation.js
|
|
2273
1927
|
var getSegmentationRepresentation = __webpack_require__(93210);
|
|
2274
1928
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/getActiveSegmentation.js
|
|
@@ -2378,10 +2032,12 @@ class ContourSegmentationBaseTool extends ContourBaseTool {
|
|
|
2378
2032
|
const { segmentationId } = (annotation).data.segmentation;
|
|
2379
2033
|
(0,triggerSegmentationEvents.triggerSegmentationDataModified)(segmentationId);
|
|
2380
2034
|
const viewportIds = (0,getViewportIdsWithSegmentation/* getViewportIdsWithSegmentation */.P)(segmentationId);
|
|
2381
|
-
const toolGroupIds = viewportIds
|
|
2035
|
+
const toolGroupIds = viewportIds
|
|
2036
|
+
.map((viewportId) => {
|
|
2382
2037
|
const toolGroup = (0,ToolGroupManager.getToolGroupForViewport)(viewportId);
|
|
2383
|
-
return toolGroup
|
|
2384
|
-
})
|
|
2038
|
+
return toolGroup?.id;
|
|
2039
|
+
})
|
|
2040
|
+
.filter((toolGroupId) => toolGroupId != null);
|
|
2385
2041
|
(0,triggerAnnotationRenderForToolGroupIds/* triggerAnnotationRenderForToolGroupIds */._)(toolGroupIds);
|
|
2386
2042
|
}
|
|
2387
2043
|
return renderResult;
|
|
@@ -2450,10 +2106,10 @@ class ContourSegmentationBaseTool extends ContourBaseTool {
|
|
|
2450
2106
|
|
|
2451
2107
|
|
|
2452
2108
|
|
|
2453
|
-
/***/ }
|
|
2109
|
+
/***/ },
|
|
2454
2110
|
|
|
2455
|
-
/***/ 67772
|
|
2456
|
-
|
|
2111
|
+
/***/ 67772
|
|
2112
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2457
2113
|
|
|
2458
2114
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2459
2115
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -2480,10 +2136,10 @@ function getDefaultContourStyle() {
|
|
|
2480
2136
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getDefaultContourStyle);
|
|
2481
2137
|
|
|
2482
2138
|
|
|
2483
|
-
/***/ }
|
|
2139
|
+
/***/ },
|
|
2484
2140
|
|
|
2485
|
-
/***/ 22384
|
|
2486
|
-
|
|
2141
|
+
/***/ 22384
|
|
2142
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2487
2143
|
|
|
2488
2144
|
|
|
2489
2145
|
// EXPORTS
|
|
@@ -2508,6 +2164,10 @@ var Points = __webpack_require__(74973);
|
|
|
2508
2164
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 11 modules
|
|
2509
2165
|
var PolyData = __webpack_require__(12548);
|
|
2510
2166
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/displayTools/Contour/contourHandler/utils.js
|
|
2167
|
+
/* unused harmony import specifier */ var Enums;
|
|
2168
|
+
/* unused harmony import specifier */ var vtkCellArray;
|
|
2169
|
+
/* unused harmony import specifier */ var vtkPoints;
|
|
2170
|
+
/* unused harmony import specifier */ var vtkPolyData;
|
|
2511
2171
|
|
|
2512
2172
|
|
|
2513
2173
|
|
|
@@ -2633,11 +2293,13 @@ function addContourSetsToElement(viewport, geometryIds, contourRepresentation) {
|
|
|
2633
2293
|
|
|
2634
2294
|
|
|
2635
2295
|
|
|
2636
|
-
/***/ }
|
|
2296
|
+
/***/ },
|
|
2637
2297
|
|
|
2638
|
-
/***/ 87420
|
|
2639
|
-
|
|
2298
|
+
/***/ 87420
|
|
2299
|
+
(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
2640
2300
|
|
|
2301
|
+
/* unused harmony import specifier */ var getSegmentation;
|
|
2302
|
+
/* unused harmony import specifier */ var removeAnnotation;
|
|
2641
2303
|
/* harmony import */ var _stateManagement_segmentation_getSegmentation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33283);
|
|
2642
2304
|
/* harmony import */ var _stateManagement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6802);
|
|
2643
2305
|
|
|
@@ -2654,10 +2316,10 @@ function removeContourFromElement(viewportId, segmentationId, removeFromCache =
|
|
|
2654
2316
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (removeContourFromElement)));
|
|
2655
2317
|
|
|
2656
2318
|
|
|
2657
|
-
/***/ }
|
|
2319
|
+
/***/ },
|
|
2658
2320
|
|
|
2659
|
-
/***/ 63597
|
|
2660
|
-
|
|
2321
|
+
/***/ 63597
|
|
2322
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2661
2323
|
|
|
2662
2324
|
|
|
2663
2325
|
// EXPORTS
|
|
@@ -2687,7 +2349,7 @@ const load = ({ cfun, ofun, actor }) => {
|
|
|
2687
2349
|
async function addVolumesAsIndependentComponents({ viewport, volumeInputs, segmentationId, }) {
|
|
2688
2350
|
const defaultActor = viewport.getDefaultActor();
|
|
2689
2351
|
const { actor } = defaultActor;
|
|
2690
|
-
const { uid
|
|
2352
|
+
const { uid } = defaultActor;
|
|
2691
2353
|
const referenceVolumeId = viewport.getVolumeId();
|
|
2692
2354
|
if (internalCache.get(uid)?.added) {
|
|
2693
2355
|
return {
|
|
@@ -2709,6 +2371,11 @@ async function addVolumesAsIndependentComponents({ viewport, volumeInputs, segme
|
|
|
2709
2371
|
const segData = segVoxelManager.getCompleteScalarDataArray();
|
|
2710
2372
|
const { imageData: segImageData } = segImageVolume;
|
|
2711
2373
|
const baseVolume = esm.cache.getVolume(referenceVolumeId);
|
|
2374
|
+
const volumeTexture = baseVolume.vtkOpenGLTexture;
|
|
2375
|
+
const hasPendingFrames = volumeTexture.hasUpdatedFrames();
|
|
2376
|
+
if (hasPendingFrames) {
|
|
2377
|
+
return;
|
|
2378
|
+
}
|
|
2712
2379
|
const baseVoxelManager = baseVolume.voxelManager;
|
|
2713
2380
|
const baseData = baseVoxelManager.getCompleteScalarDataArray();
|
|
2714
2381
|
const newComp = 2;
|
|
@@ -2731,14 +2398,18 @@ async function addVolumesAsIndependentComponents({ viewport, volumeInputs, segme
|
|
|
2731
2398
|
const arrayAgain = mapper.getInputData().getPointData().getArray(0);
|
|
2732
2399
|
arrayAgain.setData(cubeData);
|
|
2733
2400
|
arrayAgain.setNumberOfComponents(2);
|
|
2401
|
+
const oldColorMixPreset = actor.getProperty().getColorMixPreset();
|
|
2734
2402
|
actor.getProperty().setColorMixPreset(1);
|
|
2403
|
+
const oldForceNearestInterpolation = actor
|
|
2404
|
+
.getProperty()
|
|
2405
|
+
.getForceNearestInterpolation(1);
|
|
2735
2406
|
actor.getProperty().setForceNearestInterpolation(1, true);
|
|
2407
|
+
const oldIndependentComponents = actor
|
|
2408
|
+
.getProperty()
|
|
2409
|
+
.getIndependentComponents();
|
|
2736
2410
|
actor.getProperty().setIndependentComponents(true);
|
|
2737
2411
|
viewport.addActor({
|
|
2738
|
-
|
|
2739
|
-
uid,
|
|
2740
|
-
callback,
|
|
2741
|
-
referencedId: referenceVolumeId,
|
|
2412
|
+
...defaultActor,
|
|
2742
2413
|
representationUID: `${segmentationId}-${enums.SegmentationRepresentations.Labelmap}`,
|
|
2743
2414
|
});
|
|
2744
2415
|
internalCache.set(uid, {
|
|
@@ -2746,6 +2417,7 @@ async function addVolumesAsIndependentComponents({ viewport, volumeInputs, segme
|
|
|
2746
2417
|
segmentationRepresentationUID: `${segmentationId}`,
|
|
2747
2418
|
originalBlendMode: viewport.getBlendMode(),
|
|
2748
2419
|
});
|
|
2420
|
+
const oldPreLoad = actor.get('preLoad');
|
|
2749
2421
|
actor.set({
|
|
2750
2422
|
preLoad: load,
|
|
2751
2423
|
});
|
|
@@ -2777,26 +2449,33 @@ async function addVolumesAsIndependentComponents({ viewport, volumeInputs, segme
|
|
|
2777
2449
|
viewport.render();
|
|
2778
2450
|
}
|
|
2779
2451
|
esm.eventTarget.addEventListenerDebounced(enums.Events.SEGMENTATION_DATA_MODIFIED, onSegmentationDataModified, 200);
|
|
2780
|
-
|
|
2452
|
+
function onSegmentationRepresentationRemoved(evt) {
|
|
2453
|
+
if (evt.detail.viewportId !== viewport.id) {
|
|
2454
|
+
return;
|
|
2455
|
+
}
|
|
2781
2456
|
esm.eventTarget.removeEventListener(enums.Events.SEGMENTATION_DATA_MODIFIED, onSegmentationDataModified);
|
|
2457
|
+
esm.eventTarget.removeEventListener(enums.Events.SEGMENTATION_REPRESENTATION_REMOVED, onSegmentationRepresentationRemoved);
|
|
2782
2458
|
const actorEntry = viewport.getActor(uid);
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2459
|
+
if (actorEntry) {
|
|
2460
|
+
viewport.removeActors([uid]);
|
|
2461
|
+
}
|
|
2462
|
+
internalCache.delete(uid);
|
|
2463
|
+
if (viewport.isDisabled) {
|
|
2464
|
+
return;
|
|
2465
|
+
}
|
|
2466
|
+
actor.setMapper(oldMapper);
|
|
2467
|
+
actor.getProperty().setColorMixPreset(oldColorMixPreset);
|
|
2468
|
+
actor
|
|
2469
|
+
.getProperty()
|
|
2470
|
+
.setForceNearestInterpolation(1, oldForceNearestInterpolation);
|
|
2471
|
+
actor.getProperty().setIndependentComponents(oldIndependentComponents);
|
|
2472
|
+
viewport.addActor({
|
|
2473
|
+
...defaultActor,
|
|
2474
|
+
});
|
|
2475
|
+
actor.set(oldPreLoad);
|
|
2798
2476
|
viewport.render();
|
|
2799
|
-
}
|
|
2477
|
+
}
|
|
2478
|
+
esm.eventTarget.addEventListener(enums.Events.SEGMENTATION_REPRESENTATION_REMOVED, onSegmentationRepresentationRemoved);
|
|
2800
2479
|
return {
|
|
2801
2480
|
uid,
|
|
2802
2481
|
actor,
|
|
@@ -2897,10 +2576,10 @@ async function _handleMissingVolume(labelMapData) {
|
|
|
2897
2576
|
/* harmony default export */ const Labelmap_addLabelmapToElement = (addLabelmapToElement);
|
|
2898
2577
|
|
|
2899
2578
|
|
|
2900
|
-
/***/ }
|
|
2579
|
+
/***/ },
|
|
2901
2580
|
|
|
2902
|
-
/***/ 53486
|
|
2903
|
-
|
|
2581
|
+
/***/ 53486
|
|
2582
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2904
2583
|
|
|
2905
2584
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2906
2585
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -2924,10 +2603,10 @@ function getDefaultLabelmapStyle() {
|
|
|
2924
2603
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getDefaultLabelmapStyle);
|
|
2925
2604
|
|
|
2926
2605
|
|
|
2927
|
-
/***/ }
|
|
2606
|
+
/***/ },
|
|
2928
2607
|
|
|
2929
|
-
/***/ 88234
|
|
2930
|
-
|
|
2608
|
+
/***/ 88234
|
|
2609
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2931
2610
|
|
|
2932
2611
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2933
2612
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -2944,10 +2623,10 @@ function removeLabelmapFromElement(element, segmentationId) {
|
|
|
2944
2623
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (removeLabelmapFromElement);
|
|
2945
2624
|
|
|
2946
2625
|
|
|
2947
|
-
/***/ }
|
|
2626
|
+
/***/ },
|
|
2948
2627
|
|
|
2949
|
-
/***/ 18796
|
|
2950
|
-
|
|
2628
|
+
/***/ 18796
|
|
2629
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2951
2630
|
|
|
2952
2631
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2953
2632
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -3024,10 +2703,10 @@ function addOrUpdateSurfaceToElement(viewport, surface, segmentationId) {
|
|
|
3024
2703
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (addOrUpdateSurfaceToElement);
|
|
3025
2704
|
|
|
3026
2705
|
|
|
3027
|
-
/***/ }
|
|
2706
|
+
/***/ },
|
|
3028
2707
|
|
|
3029
|
-
/***/ 20552
|
|
3030
|
-
|
|
2708
|
+
/***/ 20552
|
|
2709
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3031
2710
|
|
|
3032
2711
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3033
2712
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -3046,17 +2725,17 @@ function removeSurfaceFromElement(element, segmentationId) {
|
|
|
3046
2725
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (removeSurfaceFromElement);
|
|
3047
2726
|
|
|
3048
2727
|
|
|
3049
|
-
/***/ }
|
|
2728
|
+
/***/ },
|
|
3050
2729
|
|
|
3051
|
-
/***/ 55887
|
|
3052
|
-
|
|
2730
|
+
/***/ 55887
|
|
2731
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3053
2732
|
|
|
3054
2733
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3055
2734
|
/* harmony export */ A: () => (/* binding */ BrushStrategy)
|
|
3056
2735
|
/* harmony export */ });
|
|
3057
2736
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
3058
2737
|
/* harmony import */ var _stateManagement_segmentation_triggerSegmentationEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49906);
|
|
3059
|
-
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
2738
|
+
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(64664);
|
|
3060
2739
|
/* harmony import */ var _utils_getStrategyData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40905);
|
|
3061
2740
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29857);
|
|
3062
2741
|
|
|
@@ -3082,6 +2761,8 @@ class BrushStrategy {
|
|
|
3082
2761
|
[_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.EnsureImageVolumeFor3DManipulation]: addListMethod(_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.EnsureImageVolumeFor3DManipulation),
|
|
3083
2762
|
[_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.AddPreview]: addListMethod(_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.AddPreview),
|
|
3084
2763
|
[_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.GetStatistics]: addSingletonMethod(_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.GetStatistics),
|
|
2764
|
+
[_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.CalculateCursorGeometry]: addSingletonMethod(_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.CalculateCursorGeometry, true),
|
|
2765
|
+
[_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.RenderCursor]: addSingletonMethod(_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.RenderCursor, true),
|
|
3085
2766
|
compositions: null,
|
|
3086
2767
|
}; }
|
|
3087
2768
|
constructor(name, ...initializers) {
|
|
@@ -3113,6 +2794,18 @@ class BrushStrategy {
|
|
|
3113
2794
|
return initializedData;
|
|
3114
2795
|
};
|
|
3115
2796
|
this.configurationName = name;
|
|
2797
|
+
const cursorGeometryInitializer = initializers.find((init) => init.hasOwnProperty(_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.CalculateCursorGeometry));
|
|
2798
|
+
const renderCursorInitializer = initializers.find((init) => init.hasOwnProperty(_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.RenderCursor));
|
|
2799
|
+
if (!cursorGeometryInitializer) {
|
|
2800
|
+
initializers.push({
|
|
2801
|
+
[_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.CalculateCursorGeometry]: _compositions__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.circularCursor.calculateCursorGeometry,
|
|
2802
|
+
});
|
|
2803
|
+
}
|
|
2804
|
+
if (!renderCursorInitializer) {
|
|
2805
|
+
initializers.push({
|
|
2806
|
+
[_enums__WEBPACK_IMPORTED_MODULE_4__.StrategyCallbacks.RenderCursor]: _compositions__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.circularCursor.renderCursor,
|
|
2807
|
+
});
|
|
2808
|
+
}
|
|
3116
2809
|
this.compositions = initializers;
|
|
3117
2810
|
initializers.forEach((initializer) => {
|
|
3118
2811
|
const result = typeof initializer === 'function' ? initializer() : initializer;
|
|
@@ -3136,7 +2829,10 @@ class BrushStrategy {
|
|
|
3136
2829
|
initialize(enabledElement, operationData, operationName) {
|
|
3137
2830
|
const { viewport } = enabledElement;
|
|
3138
2831
|
const data = (0,_utils_getStrategyData__WEBPACK_IMPORTED_MODULE_3__/* .getStrategyData */ .S)({ operationData, viewport, strategy: this });
|
|
3139
|
-
if (!data
|
|
2832
|
+
if (!data ||
|
|
2833
|
+
!data.imageVoxelManager ||
|
|
2834
|
+
!data.segmentationVoxelManager ||
|
|
2835
|
+
!data.segmentationImageData) {
|
|
3140
2836
|
return null;
|
|
3141
2837
|
}
|
|
3142
2838
|
const { imageVoxelManager, segmentationVoxelManager, segmentationImageData, } = data;
|
|
@@ -3195,10 +2891,10 @@ function addSingletonMethod(name, isInitialized = true) {
|
|
|
3195
2891
|
}
|
|
3196
2892
|
|
|
3197
2893
|
|
|
3198
|
-
/***/ }
|
|
2894
|
+
/***/ },
|
|
3199
2895
|
|
|
3200
|
-
/***/
|
|
3201
|
-
|
|
2896
|
+
/***/ 64664
|
|
2897
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3202
2898
|
|
|
3203
2899
|
|
|
3204
2900
|
// EXPORTS
|
|
@@ -3311,9 +3007,13 @@ var esm = __webpack_require__(3823);
|
|
|
3311
3007
|
},
|
|
3312
3008
|
[StrategyCallbacks/* default */.A.ComputeInnerCircleRadius]: (operationData) => {
|
|
3313
3009
|
const { configuration, viewport } = operationData;
|
|
3314
|
-
const
|
|
3010
|
+
const thresholdConfig = configuration?.threshold;
|
|
3011
|
+
if (!thresholdConfig) {
|
|
3012
|
+
return;
|
|
3013
|
+
}
|
|
3014
|
+
const { dynamicRadius = 0, isDynamic } = thresholdConfig;
|
|
3315
3015
|
if (!isDynamic) {
|
|
3316
|
-
|
|
3016
|
+
thresholdConfig.dynamicRadiusInCanvas = 0;
|
|
3317
3017
|
return;
|
|
3318
3018
|
}
|
|
3319
3019
|
if (dynamicRadius === 0) {
|
|
@@ -3333,10 +3033,10 @@ var esm = __webpack_require__(3823);
|
|
|
3333
3033
|
const offSetCenterInWorld = centerCursorInWorld.map((coord) => coord + radiusInWorld);
|
|
3334
3034
|
const offSetCenterCanvas = viewport.worldToCanvas(offSetCenterInWorld);
|
|
3335
3035
|
const dynamicRadiusInCanvas = Math.abs(centerCanvas[0] - offSetCenterCanvas[0]);
|
|
3336
|
-
if (!
|
|
3337
|
-
|
|
3036
|
+
if (!thresholdConfig.dynamicRadiusInCanvas) {
|
|
3037
|
+
thresholdConfig.dynamicRadiusInCanvas = 0;
|
|
3338
3038
|
}
|
|
3339
|
-
|
|
3039
|
+
thresholdConfig.dynamicRadiusInCanvas = 3 + dynamicRadiusInCanvas;
|
|
3340
3040
|
},
|
|
3341
3041
|
});
|
|
3342
3042
|
|
|
@@ -3655,6 +3355,108 @@ var getStatistics = __webpack_require__(38440);
|
|
|
3655
3355
|
var ensureSegmentationVolume = __webpack_require__(38732);
|
|
3656
3356
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/compositions/ensureImageVolume.js
|
|
3657
3357
|
var ensureImageVolume = __webpack_require__(62753);
|
|
3358
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/index.js + 4 modules
|
|
3359
|
+
var drawingSvg = __webpack_require__(74347);
|
|
3360
|
+
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/compositions/circularCursor.js
|
|
3361
|
+
|
|
3362
|
+
|
|
3363
|
+
|
|
3364
|
+
/* harmony default export */ const circularCursor = ({
|
|
3365
|
+
[StrategyCallbacks/* default */.A.CalculateCursorGeometry]: function (enabledElement, operationData) {
|
|
3366
|
+
if (!operationData) {
|
|
3367
|
+
return;
|
|
3368
|
+
}
|
|
3369
|
+
const { configuration, activeStrategy, hoverData } = operationData;
|
|
3370
|
+
const { viewport } = enabledElement;
|
|
3371
|
+
const camera = viewport.getCamera();
|
|
3372
|
+
const { brushSize } = configuration;
|
|
3373
|
+
const viewUp = esm/* vec3.fromValues */.eR.fromValues(camera.viewUp[0], camera.viewUp[1], camera.viewUp[2]);
|
|
3374
|
+
const viewPlaneNormal = esm/* vec3.fromValues */.eR.fromValues(camera.viewPlaneNormal[0], camera.viewPlaneNormal[1], camera.viewPlaneNormal[2]);
|
|
3375
|
+
const viewRight = esm/* vec3.create */.eR.create();
|
|
3376
|
+
esm/* vec3.cross */.eR.cross(viewRight, viewUp, viewPlaneNormal);
|
|
3377
|
+
const { canvasToWorld } = viewport;
|
|
3378
|
+
const { centerCanvas } = hoverData;
|
|
3379
|
+
const centerCursorInWorld = canvasToWorld([
|
|
3380
|
+
centerCanvas[0],
|
|
3381
|
+
centerCanvas[1],
|
|
3382
|
+
]);
|
|
3383
|
+
const bottomCursorInWorld = esm/* vec3.create */.eR.create();
|
|
3384
|
+
const topCursorInWorld = esm/* vec3.create */.eR.create();
|
|
3385
|
+
const leftCursorInWorld = esm/* vec3.create */.eR.create();
|
|
3386
|
+
const rightCursorInWorld = esm/* vec3.create */.eR.create();
|
|
3387
|
+
for (let i = 0; i <= 2; i++) {
|
|
3388
|
+
bottomCursorInWorld[i] = centerCursorInWorld[i] - viewUp[i] * brushSize;
|
|
3389
|
+
topCursorInWorld[i] = centerCursorInWorld[i] + viewUp[i] * brushSize;
|
|
3390
|
+
leftCursorInWorld[i] = centerCursorInWorld[i] - viewRight[i] * brushSize;
|
|
3391
|
+
rightCursorInWorld[i] = centerCursorInWorld[i] + viewRight[i] * brushSize;
|
|
3392
|
+
}
|
|
3393
|
+
if (!hoverData) {
|
|
3394
|
+
return;
|
|
3395
|
+
}
|
|
3396
|
+
const { brushCursor } = hoverData;
|
|
3397
|
+
const { data } = brushCursor;
|
|
3398
|
+
if (data.handles === undefined) {
|
|
3399
|
+
data.handles = {};
|
|
3400
|
+
}
|
|
3401
|
+
data.handles.points = [
|
|
3402
|
+
bottomCursorInWorld,
|
|
3403
|
+
topCursorInWorld,
|
|
3404
|
+
leftCursorInWorld,
|
|
3405
|
+
rightCursorInWorld,
|
|
3406
|
+
];
|
|
3407
|
+
const strategy = configuration.strategies[activeStrategy];
|
|
3408
|
+
if (typeof strategy?.computeInnerCircleRadius === 'function') {
|
|
3409
|
+
strategy.computeInnerCircleRadius({
|
|
3410
|
+
configuration,
|
|
3411
|
+
viewport,
|
|
3412
|
+
});
|
|
3413
|
+
}
|
|
3414
|
+
data.invalidated = false;
|
|
3415
|
+
},
|
|
3416
|
+
[StrategyCallbacks/* default */.A.RenderCursor]: function (enabledElement, operationData, svgDrawingHelper) {
|
|
3417
|
+
if (!operationData) {
|
|
3418
|
+
return;
|
|
3419
|
+
}
|
|
3420
|
+
const { configuration, hoverData } = operationData;
|
|
3421
|
+
const { viewport } = enabledElement;
|
|
3422
|
+
const { brushCursor } = hoverData;
|
|
3423
|
+
const toolMetadata = brushCursor.metadata;
|
|
3424
|
+
if (!toolMetadata) {
|
|
3425
|
+
return;
|
|
3426
|
+
}
|
|
3427
|
+
const annotationUID = toolMetadata.brushCursorUID;
|
|
3428
|
+
const data = brushCursor.data;
|
|
3429
|
+
const { points } = data.handles;
|
|
3430
|
+
const canvasCoordinates = points.map((p) => viewport.worldToCanvas(p));
|
|
3431
|
+
const bottom = canvasCoordinates[0];
|
|
3432
|
+
const top = canvasCoordinates[1];
|
|
3433
|
+
const center = [
|
|
3434
|
+
Math.floor((bottom[0] + top[0]) / 2),
|
|
3435
|
+
Math.floor((bottom[1] + top[1]) / 2),
|
|
3436
|
+
];
|
|
3437
|
+
const radius = Math.abs(bottom[1] - Math.floor((bottom[1] + top[1]) / 2));
|
|
3438
|
+
const color = `rgb(${toolMetadata.segmentColor?.slice(0, 3) || [0, 0, 0]})`;
|
|
3439
|
+
if (!viewport.getRenderingEngine()) {
|
|
3440
|
+
console.warn('Rendering Engine has been destroyed');
|
|
3441
|
+
return;
|
|
3442
|
+
}
|
|
3443
|
+
const circleUID = '0';
|
|
3444
|
+
(0,drawingSvg.drawCircle)(svgDrawingHelper, annotationUID, circleUID, center, radius, {
|
|
3445
|
+
color,
|
|
3446
|
+
lineDash: this.centerSegmentIndexInfo.segmentIndex === 0 ? [1, 2] : null,
|
|
3447
|
+
});
|
|
3448
|
+
const { dynamicRadiusInCanvas } = configuration?.threshold || {
|
|
3449
|
+
dynamicRadiusInCanvas: 0,
|
|
3450
|
+
};
|
|
3451
|
+
if (dynamicRadiusInCanvas) {
|
|
3452
|
+
const circleUID1 = '1';
|
|
3453
|
+
(0,drawingSvg.drawCircle)(svgDrawingHelper, annotationUID, circleUID1, center, dynamicRadiusInCanvas, {
|
|
3454
|
+
color,
|
|
3455
|
+
});
|
|
3456
|
+
}
|
|
3457
|
+
},
|
|
3458
|
+
});
|
|
3459
|
+
|
|
3658
3460
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/segmentation/strategies/compositions/index.js
|
|
3659
3461
|
|
|
3660
3462
|
|
|
@@ -3667,6 +3469,7 @@ var ensureImageVolume = __webpack_require__(62753);
|
|
|
3667
3469
|
|
|
3668
3470
|
|
|
3669
3471
|
|
|
3472
|
+
|
|
3670
3473
|
/* harmony default export */ const compositions = ({
|
|
3671
3474
|
determineSegmentIndex: determineSegmentIndex,
|
|
3672
3475
|
dynamicThreshold: dynamicThreshold,
|
|
@@ -3679,20 +3482,21 @@ var ensureImageVolume = __webpack_require__(62753);
|
|
|
3679
3482
|
labelmapStatistics: labelmapStatistics,
|
|
3680
3483
|
ensureSegmentationVolumeFor3DManipulation: ensureSegmentationVolume/* default */.A,
|
|
3681
3484
|
ensureImageVolumeFor3DManipulation: ensureImageVolume/* default */.A,
|
|
3485
|
+
circularCursor: circularCursor
|
|
3682
3486
|
});
|
|
3683
3487
|
|
|
3684
3488
|
|
|
3685
|
-
/***/ }
|
|
3489
|
+
/***/ },
|
|
3686
3490
|
|
|
3687
|
-
/***/ 33852
|
|
3688
|
-
|
|
3491
|
+
/***/ 33852
|
|
3492
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3689
3493
|
|
|
3690
3494
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3691
3495
|
/* harmony export */ r: () => (/* binding */ eraseInsideCircle)
|
|
3692
3496
|
/* harmony export */ });
|
|
3693
3497
|
/* harmony import */ var _BrushStrategy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55887);
|
|
3694
3498
|
/* harmony import */ var _fillCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56789);
|
|
3695
|
-
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
3499
|
+
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(64664);
|
|
3696
3500
|
|
|
3697
3501
|
|
|
3698
3502
|
|
|
@@ -3701,17 +3505,17 @@ const eraseInsideCircle = ERASE_CIRCLE_STRATEGY.strategyFunction;
|
|
|
3701
3505
|
|
|
3702
3506
|
|
|
3703
3507
|
|
|
3704
|
-
/***/ }
|
|
3508
|
+
/***/ },
|
|
3705
3509
|
|
|
3706
|
-
/***/ 1989
|
|
3707
|
-
|
|
3510
|
+
/***/ 1989
|
|
3511
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3708
3512
|
|
|
3709
3513
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3710
3514
|
/* harmony export */ _: () => (/* binding */ eraseInsideSphere)
|
|
3711
3515
|
/* harmony export */ });
|
|
3712
3516
|
/* harmony import */ var _BrushStrategy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55887);
|
|
3713
3517
|
/* harmony import */ var _fillSphere__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17492);
|
|
3714
|
-
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
3518
|
+
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(64664);
|
|
3715
3519
|
|
|
3716
3520
|
|
|
3717
3521
|
|
|
@@ -3720,10 +3524,10 @@ const eraseInsideSphere = ERASE_SPHERE_STRATEGY.strategyFunction;
|
|
|
3720
3524
|
|
|
3721
3525
|
|
|
3722
3526
|
|
|
3723
|
-
/***/ }
|
|
3527
|
+
/***/ },
|
|
3724
3528
|
|
|
3725
|
-
/***/ 17492
|
|
3726
|
-
|
|
3529
|
+
/***/ 17492
|
|
3530
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3727
3531
|
|
|
3728
3532
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3729
3533
|
/* harmony export */ Jq: () => (/* binding */ fillInsideSphere),
|
|
@@ -3735,7 +3539,7 @@ const eraseInsideSphere = ERASE_SPHERE_STRATEGY.strategyFunction;
|
|
|
3735
3539
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
3736
3540
|
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
|
|
3737
3541
|
/* harmony import */ var _BrushStrategy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55887);
|
|
3738
|
-
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
3542
|
+
/* harmony import */ var _compositions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(64664);
|
|
3739
3543
|
/* harmony import */ var _enums_StrategyCallbacks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84093);
|
|
3740
3544
|
/* harmony import */ var _fillCircle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(56789);
|
|
3741
3545
|
/* harmony import */ var _utilities_getSphereBoundsInfo__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4296);
|
|
@@ -3847,10 +3651,10 @@ function fillOutsideSphere() {
|
|
|
3847
3651
|
|
|
3848
3652
|
|
|
3849
3653
|
|
|
3850
|
-
/***/ }
|
|
3654
|
+
/***/ },
|
|
3851
3655
|
|
|
3852
|
-
/***/ 109
|
|
3853
|
-
|
|
3656
|
+
/***/ 109
|
|
3657
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3854
3658
|
|
|
3855
3659
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3856
3660
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -3897,10 +3701,10 @@ function getContourImageSequence(imageId, metadataProvider) {
|
|
|
3897
3701
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RectangleROIStartEndThreshold);
|
|
3898
3702
|
|
|
3899
3703
|
|
|
3900
|
-
/***/ }
|
|
3704
|
+
/***/ },
|
|
3901
3705
|
|
|
3902
|
-
/***/ 55421
|
|
3903
|
-
|
|
3706
|
+
/***/ 55421
|
|
3707
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3904
3708
|
|
|
3905
3709
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3906
3710
|
/* harmony export */ A: () => (/* binding */ getInterpolationData)
|
|
@@ -3955,10 +3759,10 @@ function getInterpolationData(viewportData, filterParams = []) {
|
|
|
3955
3759
|
}
|
|
3956
3760
|
|
|
3957
3761
|
|
|
3958
|
-
/***/ }
|
|
3762
|
+
/***/ },
|
|
3959
3763
|
|
|
3960
|
-
/***/ 51893
|
|
3961
|
-
|
|
3764
|
+
/***/ 51893
|
|
3765
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3962
3766
|
|
|
3963
3767
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3964
3768
|
/* harmony export */ A: () => (/* binding */ getInterpolationDataCollection)
|
|
@@ -3980,10 +3784,10 @@ function getInterpolationDataCollection(viewportData, filterParams) {
|
|
|
3980
3784
|
}
|
|
3981
3785
|
|
|
3982
3786
|
|
|
3983
|
-
/***/ }
|
|
3787
|
+
/***/ },
|
|
3984
3788
|
|
|
3985
|
-
/***/ 73816
|
|
3986
|
-
|
|
3789
|
+
/***/ 73816
|
|
3790
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3987
3791
|
|
|
3988
3792
|
|
|
3989
3793
|
// EXPORTS
|
|
@@ -4153,12 +3957,18 @@ var stateManagement_annotation = __webpack_require__(47807);
|
|
|
4153
3957
|
|
|
4154
3958
|
|
|
4155
3959
|
const { PointsManager } = esm.utilities;
|
|
4156
|
-
function selectHandles(polyline,
|
|
3960
|
+
function selectHandles(polyline, options = {}) {
|
|
3961
|
+
const { handleCount = 12, isOpenUShapeContour } = options;
|
|
4157
3962
|
const handles = PointsManager.create3(handleCount);
|
|
4158
3963
|
handles.sources = [];
|
|
4159
3964
|
const { sources: destPoints } = handles;
|
|
4160
3965
|
const { length, sources: sourcePoints = [] } = polyline;
|
|
4161
3966
|
const distance = 5;
|
|
3967
|
+
if (isOpenUShapeContour) {
|
|
3968
|
+
const handles = polyline.subselect(handleCount);
|
|
3969
|
+
handles.push(polyline.getPoint(polyline.length - 1));
|
|
3970
|
+
return handles;
|
|
3971
|
+
}
|
|
4162
3972
|
if (length < distance * 3) {
|
|
4163
3973
|
return polyline.subselect(handleCount);
|
|
4164
3974
|
}
|
|
@@ -4395,6 +4205,7 @@ function _linearlyInterpolateBetween(indices, annotationPair, interpolationData,
|
|
|
4395
4205
|
const annotation1 = interpolationData.get(annotationPair[1])[0];
|
|
4396
4206
|
const c1 = _generateClosedContour(annotation0.data.contour.polyline);
|
|
4397
4207
|
const c2 = _generateClosedContour(annotation1.data.contour.polyline);
|
|
4208
|
+
console.warn('annotation0=', annotation0);
|
|
4398
4209
|
const { c1Interp, c2Interp } = _generateInterpolationContourPair(c1, c2);
|
|
4399
4210
|
c1Interp.kIndex = annotationPair[0];
|
|
4400
4211
|
c2Interp.kIndex = annotationPair[1];
|
|
@@ -4402,15 +4213,6 @@ function _linearlyInterpolateBetween(indices, annotationPair, interpolationData,
|
|
|
4402
4213
|
_linearlyInterpolateContour(c1Interp, c2Interp, index, annotationPair, interpolationData, c1.x.length > c2.x.length, eventData);
|
|
4403
4214
|
});
|
|
4404
4215
|
}
|
|
4405
|
-
function getPointCount(pointArray) {
|
|
4406
|
-
let sum = 0;
|
|
4407
|
-
for (let i = 0; i < pointArray.I.length; i++) {
|
|
4408
|
-
if (pointArray.I[i]) {
|
|
4409
|
-
sum++;
|
|
4410
|
-
}
|
|
4411
|
-
}
|
|
4412
|
-
return sum;
|
|
4413
|
-
}
|
|
4414
4216
|
function _linearlyInterpolateContour(c1Interp, c2Interp, sliceIndex, annotationPair, interpolationData, c1HasMoreNodes, eventData) {
|
|
4415
4217
|
const [startIndex, endIndex] = annotationPair;
|
|
4416
4218
|
const zInterp = (sliceIndex - startIndex) / (endIndex - startIndex);
|
|
@@ -4418,7 +4220,10 @@ function _linearlyInterpolateContour(c1Interp, c2Interp, sliceIndex, annotationP
|
|
|
4418
4220
|
const annotation1 = interpolationData.get(endIndex)[0];
|
|
4419
4221
|
const interpolated3DPoints = _generateInterpolatedOpenContour(c1Interp, c2Interp, zInterp, c1HasMoreNodes);
|
|
4420
4222
|
const nearestAnnotation = zInterp > 0.5 ? annotation1 : annotation0;
|
|
4421
|
-
const
|
|
4223
|
+
const isOpenUShapeContour = nearestAnnotation.data.isOpenUShapeContour;
|
|
4224
|
+
const handlePoints = selectHandles(interpolated3DPoints, {
|
|
4225
|
+
isOpenUShapeContour,
|
|
4226
|
+
});
|
|
4422
4227
|
if (interpolationData.has(sliceIndex)) {
|
|
4423
4228
|
_editInterpolatedContour(interpolated3DPoints, handlePoints, sliceIndex, nearestAnnotation, eventData);
|
|
4424
4229
|
}
|
|
@@ -4672,10 +4477,10 @@ function _generateClosedContour(points) {
|
|
|
4672
4477
|
/* harmony default export */ const interpolation_interpolate = (interpolate);
|
|
4673
4478
|
|
|
4674
4479
|
|
|
4675
|
-
/***/ }
|
|
4480
|
+
/***/ },
|
|
4676
4481
|
|
|
4677
|
-
/***/ 69013
|
|
4678
|
-
|
|
4482
|
+
/***/ 69013
|
|
4483
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4679
4484
|
|
|
4680
4485
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4681
4486
|
/* harmony export */ B: () => (/* binding */ InstanceBasicStatsCalculator),
|
|
@@ -4920,10 +4725,10 @@ class InstanceBasicStatsCalculator extends _Calculator__WEBPACK_IMPORTED_MODULE_
|
|
|
4920
4725
|
}
|
|
4921
4726
|
|
|
4922
4727
|
|
|
4923
|
-
/***/ }
|
|
4728
|
+
/***/ },
|
|
4924
4729
|
|
|
4925
|
-
/***/ 86978
|
|
4926
|
-
|
|
4730
|
+
/***/ 86978
|
|
4731
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4927
4732
|
|
|
4928
4733
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4929
4734
|
/* harmony export */ A: () => (/* binding */ distanceToPoint)
|
|
@@ -4938,10 +4743,10 @@ function distanceToPoint(lineStart, lineEnd, point) {
|
|
|
4938
4743
|
}
|
|
4939
4744
|
|
|
4940
4745
|
|
|
4941
|
-
/***/ }
|
|
4746
|
+
/***/ },
|
|
4942
4747
|
|
|
4943
|
-
/***/ 81205
|
|
4944
|
-
|
|
4748
|
+
/***/ 81205
|
|
4749
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4945
4750
|
|
|
4946
4751
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4947
4752
|
/* harmony export */ A: () => (/* binding */ intersectLine)
|
|
@@ -4999,10 +4804,10 @@ function intersectLine(line1Start, line1End, line2Start, line2End, infinite = fa
|
|
|
4999
4804
|
}
|
|
5000
4805
|
|
|
5001
4806
|
|
|
5002
|
-
/***/ }
|
|
4807
|
+
/***/ },
|
|
5003
4808
|
|
|
5004
|
-
/***/ 87105
|
|
5005
|
-
|
|
4809
|
+
/***/ 87105
|
|
4810
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5006
4811
|
|
|
5007
4812
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5008
4813
|
/* harmony export */ A: () => (/* binding */ distanceToPoint)
|
|
@@ -5044,10 +4849,10 @@ function distanceToPoint(rect, point) {
|
|
|
5044
4849
|
}
|
|
5045
4850
|
|
|
5046
4851
|
|
|
5047
|
-
/***/ }
|
|
4852
|
+
/***/ },
|
|
5048
4853
|
|
|
5049
|
-
/***/ 94418
|
|
5050
|
-
|
|
4854
|
+
/***/ 94418
|
|
4855
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5051
4856
|
|
|
5052
4857
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5053
4858
|
/* harmony export */ A: () => (/* binding */ filterAnnotationsForDisplay)
|
|
@@ -5082,10 +4887,10 @@ function filterAnnotationsForDisplay(viewport, annotations, filterOptions = {})
|
|
|
5082
4887
|
}
|
|
5083
4888
|
|
|
5084
4889
|
|
|
5085
|
-
/***/ }
|
|
4890
|
+
/***/ },
|
|
5086
4891
|
|
|
5087
|
-
/***/ 40770
|
|
5088
|
-
|
|
4892
|
+
/***/ 40770
|
|
4893
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5089
4894
|
|
|
5090
4895
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5091
4896
|
/* harmony export */ W: () => (/* binding */ filterAnnotationsWithinSamePlane)
|
|
@@ -5120,10 +4925,10 @@ function filterAnnotationsWithinSamePlane(annotations, camera) {
|
|
|
5120
4925
|
}
|
|
5121
4926
|
|
|
5122
4927
|
|
|
5123
|
-
/***/ }
|
|
4928
|
+
/***/ },
|
|
5124
4929
|
|
|
5125
|
-
/***/ 36374
|
|
5126
|
-
|
|
4930
|
+
/***/ 36374
|
|
4931
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5127
4932
|
|
|
5128
4933
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5129
4934
|
/* harmony export */ A: () => (/* binding */ filterAnnotationsWithinSlice)
|
|
@@ -5206,10 +5011,10 @@ function filterAnnotationsWithinSlice(annotations, camera, spacingInNormalDirect
|
|
|
5206
5011
|
}
|
|
5207
5012
|
|
|
5208
5013
|
|
|
5209
|
-
/***/ }
|
|
5014
|
+
/***/ },
|
|
5210
5015
|
|
|
5211
|
-
/***/ 57063
|
|
5212
|
-
|
|
5016
|
+
/***/ 57063
|
|
5017
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5213
5018
|
|
|
5214
5019
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5215
5020
|
/* harmony export */ R: () => (/* binding */ getPointInLineOfSightWithCriteria),
|
|
@@ -5267,10 +5072,10 @@ const _inBounds = function (point, bounds) {
|
|
|
5267
5072
|
};
|
|
5268
5073
|
|
|
5269
5074
|
|
|
5270
|
-
/***/ }
|
|
5075
|
+
/***/ },
|
|
5271
5076
|
|
|
5272
|
-
/***/ 35489
|
|
5273
|
-
|
|
5077
|
+
/***/ 35489
|
|
5078
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5274
5079
|
|
|
5275
5080
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5276
5081
|
/* harmony export */ A: () => (/* binding */ getWorldWidthAndHeightFromCorners)
|
|
@@ -5296,10 +5101,10 @@ function getWorldWidthAndHeightFromCorners(viewPlaneNormal, viewUp, topLeftWorld
|
|
|
5296
5101
|
}
|
|
5297
5102
|
|
|
5298
5103
|
|
|
5299
|
-
/***/ }
|
|
5104
|
+
/***/ },
|
|
5300
5105
|
|
|
5301
|
-
/***/ 62514
|
|
5302
|
-
|
|
5106
|
+
/***/ 62514
|
|
5107
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5303
5108
|
|
|
5304
5109
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5305
5110
|
/* harmony export */ A: () => (/* binding */ getWorldWidthAndHeightFromTwoPoints)
|
|
@@ -5325,10 +5130,10 @@ function getWorldWidthAndHeightFromTwoPoints(viewPlaneNormal, viewUp, worldPos1,
|
|
|
5325
5130
|
}
|
|
5326
5131
|
|
|
5327
5132
|
|
|
5328
|
-
/***/ }
|
|
5133
|
+
/***/ },
|
|
5329
5134
|
|
|
5330
|
-
/***/ 30698
|
|
5331
|
-
|
|
5135
|
+
/***/ 30698
|
|
5136
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5332
5137
|
|
|
5333
5138
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5334
5139
|
/* harmony export */ Y: () => (/* binding */ isPlaneIntersectingAABB)
|
|
@@ -5363,10 +5168,10 @@ const isPlaneIntersectingAABB = (origin, normal, minX, minY, minZ, maxX, maxY, m
|
|
|
5363
5168
|
};
|
|
5364
5169
|
|
|
5365
5170
|
|
|
5366
|
-
/***/ }
|
|
5171
|
+
/***/ },
|
|
5367
5172
|
|
|
5368
|
-
/***/ 30269
|
|
5369
|
-
|
|
5173
|
+
/***/ 30269
|
|
5174
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5370
5175
|
|
|
5371
5176
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5372
5177
|
/* harmony export */ H: () => (/* binding */ interpolatePoints)
|
|
@@ -5397,16 +5202,16 @@ function interpolatePoints(originalPoints, knotsIndexes) {
|
|
|
5397
5202
|
}
|
|
5398
5203
|
|
|
5399
5204
|
|
|
5400
|
-
/***/ }
|
|
5205
|
+
/***/ },
|
|
5401
5206
|
|
|
5402
|
-
/***/ 42797
|
|
5403
|
-
|
|
5207
|
+
/***/ 42797
|
|
5208
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5404
5209
|
|
|
5405
5210
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5406
5211
|
/* harmony export */ Q: () => (/* binding */ shouldSmooth),
|
|
5407
5212
|
/* harmony export */ p: () => (/* binding */ getInterpolatedPoints)
|
|
5408
5213
|
/* harmony export */ });
|
|
5409
|
-
/* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
5214
|
+
/* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85895);
|
|
5410
5215
|
/* harmony import */ var _interpolation_interpolateSegmentPoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61768);
|
|
5411
5216
|
|
|
5412
5217
|
|
|
@@ -5501,10 +5306,10 @@ function getInterpolatedPoints(configuration, points, pointsOfReference) {
|
|
|
5501
5306
|
}
|
|
5502
5307
|
|
|
5503
5308
|
|
|
5504
|
-
/***/ }
|
|
5309
|
+
/***/ },
|
|
5505
5310
|
|
|
5506
|
-
/***/ 56229
|
|
5507
|
-
|
|
5311
|
+
/***/ 56229
|
|
5312
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5508
5313
|
|
|
5509
5314
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5510
5315
|
/* harmony export */ A: () => (/* binding */ deleteRelatedAnnotations)
|
|
@@ -5582,10 +5387,10 @@ function deleteRelatedAnnotations(viewportData) {
|
|
|
5582
5387
|
}
|
|
5583
5388
|
|
|
5584
5389
|
|
|
5585
|
-
/***/ }
|
|
5390
|
+
/***/ },
|
|
5586
5391
|
|
|
5587
|
-
/***/ 27479
|
|
5588
|
-
|
|
5392
|
+
/***/ 27479
|
|
5393
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5589
5394
|
|
|
5590
5395
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5591
5396
|
/* harmony export */ d: () => (/* binding */ computeAndAddRepresentation)
|
|
@@ -5605,10 +5410,10 @@ async function computeAndAddRepresentation(segmentationId, type, computeFunction
|
|
|
5605
5410
|
|
|
5606
5411
|
|
|
5607
5412
|
|
|
5608
|
-
/***/ }
|
|
5413
|
+
/***/ },
|
|
5609
5414
|
|
|
5610
|
-
/***/ 86644
|
|
5611
|
-
|
|
5415
|
+
/***/ 86644
|
|
5416
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5612
5417
|
|
|
5613
5418
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5614
5419
|
/* harmony export */ u: () => (/* binding */ getSVGStyleForSegment)
|
|
@@ -5697,10 +5502,10 @@ function getSVGStyleForSegment({ segmentationId, segmentIndex, viewportId, autoG
|
|
|
5697
5502
|
}
|
|
5698
5503
|
|
|
5699
5504
|
|
|
5700
|
-
/***/ }
|
|
5505
|
+
/***/ },
|
|
5701
5506
|
|
|
5702
|
-
/***/ 14543
|
|
5703
|
-
|
|
5507
|
+
/***/ 14543
|
|
5508
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5704
5509
|
|
|
5705
5510
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5706
5511
|
/* harmony export */ A: () => (/* binding */ getViewportIdsWithToolToRender)
|
|
@@ -5728,6 +5533,6 @@ function getViewportIdsWithToolToRender(element, toolName, requireParallelNormal
|
|
|
5728
5533
|
}
|
|
5729
5534
|
|
|
5730
5535
|
|
|
5731
|
-
/***/ }
|
|
5536
|
+
/***/ }
|
|
5732
5537
|
|
|
5733
5538
|
}]);
|