@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,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[7639],{
|
|
3
3
|
|
|
4
|
-
/***/ 47639
|
|
5
|
-
|
|
4
|
+
/***/ 47639
|
|
5
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
|
|
7
|
-
// ESM COMPAT FLAG
|
|
8
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9
7
|
|
|
10
8
|
// EXPORTS
|
|
11
9
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -571,16 +569,16 @@ const toolbarButtons = [{
|
|
|
571
569
|
}
|
|
572
570
|
}
|
|
573
571
|
}, {
|
|
574
|
-
name: 'Shape',
|
|
572
|
+
name: i18next/* default */.A.t('Buttons:Shape'),
|
|
575
573
|
type: 'radio',
|
|
576
574
|
id: 'brush-mode',
|
|
577
575
|
value: 'CircularBrush',
|
|
578
576
|
values: [{
|
|
579
577
|
value: 'CircularBrush',
|
|
580
|
-
label: 'Circle'
|
|
578
|
+
label: i18next/* default */.A.t('Buttons:Circle')
|
|
581
579
|
}, {
|
|
582
580
|
value: 'SphereBrush',
|
|
583
|
-
label: 'Sphere'
|
|
581
|
+
label: i18next/* default */.A.t('Buttons:Sphere')
|
|
584
582
|
}],
|
|
585
583
|
commands: 'setToolActiveToolbar'
|
|
586
584
|
}]
|
|
@@ -596,7 +594,7 @@ const toolbarButtons = [{
|
|
|
596
594
|
toolNames: ['CircularEraser', 'SphereEraser']
|
|
597
595
|
},
|
|
598
596
|
options: [{
|
|
599
|
-
name: 'Radius (mm)',
|
|
597
|
+
name: i18next/* default */.A.t('Buttons:Radius (mm)'),
|
|
600
598
|
id: 'eraser-radius',
|
|
601
599
|
type: 'range',
|
|
602
600
|
min: 0.5,
|
|
@@ -610,16 +608,16 @@ const toolbarButtons = [{
|
|
|
610
608
|
}
|
|
611
609
|
}
|
|
612
610
|
}, {
|
|
613
|
-
name: 'Shape',
|
|
611
|
+
name: i18next/* default */.A.t('Buttons:Shape'),
|
|
614
612
|
type: 'radio',
|
|
615
613
|
id: 'eraser-mode',
|
|
616
614
|
value: 'CircularEraser',
|
|
617
615
|
values: [{
|
|
618
616
|
value: 'CircularEraser',
|
|
619
|
-
label: 'Circle'
|
|
617
|
+
label: i18next/* default */.A.t('Buttons:Circle')
|
|
620
618
|
}, {
|
|
621
619
|
value: 'SphereEraser',
|
|
622
|
-
label: 'Sphere'
|
|
620
|
+
label: i18next/* default */.A.t('Buttons:Sphere')
|
|
623
621
|
}],
|
|
624
622
|
commands: 'setToolActiveToolbar'
|
|
625
623
|
}]
|
|
@@ -635,7 +633,7 @@ const toolbarButtons = [{
|
|
|
635
633
|
toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush']
|
|
636
634
|
},
|
|
637
635
|
options: [{
|
|
638
|
-
name: 'Radius (mm)',
|
|
636
|
+
name: i18next/* default */.A.t('Buttons:Radius (mm)'),
|
|
639
637
|
id: 'threshold-radius',
|
|
640
638
|
type: 'range',
|
|
641
639
|
min: 0.5,
|
|
@@ -649,16 +647,16 @@ const toolbarButtons = [{
|
|
|
649
647
|
}
|
|
650
648
|
}
|
|
651
649
|
}, {
|
|
652
|
-
name: 'Shape',
|
|
650
|
+
name: i18next/* default */.A.t('Buttons:Shape'),
|
|
653
651
|
type: 'radio',
|
|
654
652
|
id: 'eraser-mode',
|
|
655
653
|
value: 'ThresholdCircularBrush',
|
|
656
654
|
values: [{
|
|
657
655
|
value: 'ThresholdCircularBrush',
|
|
658
|
-
label: 'Circle'
|
|
656
|
+
label: i18next/* default */.A.t('Buttons:Circle')
|
|
659
657
|
}, {
|
|
660
658
|
value: 'ThresholdSphereBrush',
|
|
661
|
-
label: 'Sphere'
|
|
659
|
+
label: i18next/* default */.A.t('Buttons:Sphere')
|
|
662
660
|
}],
|
|
663
661
|
commands: 'setToolActiveToolbar'
|
|
664
662
|
}, {
|
|
@@ -688,19 +686,19 @@ const toolbarButtons = [{
|
|
|
688
686
|
},
|
|
689
687
|
icon: 'icon-tool-shape',
|
|
690
688
|
options: [{
|
|
691
|
-
name: 'Shape',
|
|
689
|
+
name: i18next/* default */.A.t('Buttons:Shape'),
|
|
692
690
|
type: 'radio',
|
|
693
691
|
value: 'CircleScissor',
|
|
694
692
|
id: 'shape-mode',
|
|
695
693
|
values: [{
|
|
696
694
|
value: 'CircleScissor',
|
|
697
|
-
label: 'Circle'
|
|
695
|
+
label: i18next/* default */.A.t('Buttons:Circle')
|
|
698
696
|
}, {
|
|
699
697
|
value: 'SphereScissor',
|
|
700
|
-
label: 'Sphere'
|
|
698
|
+
label: i18next/* default */.A.t('Buttons:Sphere')
|
|
701
699
|
}, {
|
|
702
700
|
value: 'RectangleScissor',
|
|
703
|
-
label: 'Rectangle'
|
|
701
|
+
label: i18next/* default */.A.t('Buttons:Rectangle')
|
|
704
702
|
}],
|
|
705
703
|
commands: 'setToolActiveToolbar'
|
|
706
704
|
}]
|
|
@@ -868,12 +866,16 @@ function modeFactory({
|
|
|
868
866
|
unsubscribe
|
|
869
867
|
} = cornerstoneViewportService.subscribe(cornerstoneViewportService.EVENTS.VIEWPORT_VOLUMES_CHANGED, () => {
|
|
870
868
|
const viewportId = viewportGridService.getActiveViewportId();
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
869
|
+
if (!viewportId) {
|
|
870
|
+
return;
|
|
871
|
+
}
|
|
872
|
+
const frameRate = 24;
|
|
873
|
+
cineService.setIsCineEnabled(true);
|
|
874
|
+
cineService.setCine({
|
|
875
|
+
id: viewportId,
|
|
876
|
+
isPlaying: true,
|
|
877
|
+
frameRate
|
|
874
878
|
});
|
|
875
|
-
// cineService.setIsCineEnabled(true);
|
|
876
|
-
|
|
877
879
|
unsubscribe();
|
|
878
880
|
});
|
|
879
881
|
},
|
|
@@ -970,6 +972,6 @@ const mode = {
|
|
|
970
972
|
};
|
|
971
973
|
/* harmony default export */ const src = (mode);
|
|
972
974
|
|
|
973
|
-
/***/ }
|
|
975
|
+
/***/ }
|
|
974
976
|
|
|
975
977
|
}]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[7758],{
|
|
3
3
|
|
|
4
|
-
/***/ 65745
|
|
5
|
-
|
|
4
|
+
/***/ 65745
|
|
5
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
|
|
7
7
|
// ESM COMPAT FLAG
|
|
8
8
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -62,6 +62,6 @@ class ICRPolySeg {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
/***/ }
|
|
65
|
+
/***/ }
|
|
66
66
|
|
|
67
67
|
}]);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[8094],{
|
|
3
3
|
|
|
4
|
-
/***/ 8094
|
|
5
|
-
|
|
4
|
+
/***/ 8094
|
|
5
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
|
|
7
|
-
__webpack_require__.r(__webpack_exports__);
|
|
8
7
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
8
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10
9
|
/* harmony export */ });
|
|
@@ -894,6 +893,6 @@ class JpegImage {
|
|
|
894
893
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JpegImage);
|
|
895
894
|
|
|
896
895
|
|
|
897
|
-
/***/ }
|
|
896
|
+
/***/ }
|
|
898
897
|
|
|
899
898
|
}]);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[8305
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[2591,8305],{
|
|
3
3
|
|
|
4
|
-
/***/ 9099
|
|
5
|
-
|
|
4
|
+
/***/ 9099
|
|
5
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
|
|
7
|
-
// ESM COMPAT FLAG
|
|
8
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9
7
|
|
|
10
8
|
// EXPORTS
|
|
11
9
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -24,14 +22,14 @@ const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
|
|
|
24
22
|
var react = __webpack_require__(86326);
|
|
25
23
|
// EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
|
|
26
24
|
var src = __webpack_require__(42356);
|
|
27
|
-
// EXTERNAL MODULE: ../../i18n/src/index.js +
|
|
28
|
-
var i18n_src = __webpack_require__(
|
|
25
|
+
// EXTERNAL MODULE: ../../i18n/src/index.js + 286 modules
|
|
26
|
+
var i18n_src = __webpack_require__(89010);
|
|
29
27
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
|
|
30
28
|
var esm = __webpack_require__(15327);
|
|
31
29
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
32
30
|
var dist_esm = __webpack_require__(4667);
|
|
33
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js +
|
|
34
|
-
var adapters_dist_esm = __webpack_require__(
|
|
31
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 71 modules
|
|
32
|
+
var adapters_dist_esm = __webpack_require__(22031);
|
|
35
33
|
// EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
|
|
36
34
|
var dcmjs_es = __webpack_require__(5842);
|
|
37
35
|
;// ../../../extensions/cornerstone-dicom-seg/src/utils/dicomlabToRGB.ts
|
|
@@ -354,8 +352,8 @@ function getHangingProtocolModule() {
|
|
|
354
352
|
}
|
|
355
353
|
/* harmony default export */ const src_getHangingProtocolModule = (getHangingProtocolModule);
|
|
356
354
|
|
|
357
|
-
// EXTERNAL MODULE: ../../../extensions/default/src/index.ts +
|
|
358
|
-
var default_src = __webpack_require__(
|
|
355
|
+
// EXTERNAL MODULE: ../../../extensions/default/src/index.ts + 140 modules
|
|
356
|
+
var default_src = __webpack_require__(62851);
|
|
359
357
|
// EXTERNAL MODULE: ../../../extensions/default/src/utils/_shared/PROMPT_RESPONSES.ts
|
|
360
358
|
var PROMPT_RESPONSES = __webpack_require__(96357);
|
|
361
359
|
;// ../../../extensions/cornerstone-dicom-seg/src/commandsModule.ts
|
|
@@ -584,7 +582,7 @@ const commandsModule = ({
|
|
|
584
582
|
series,
|
|
585
583
|
priorSeriesNumber,
|
|
586
584
|
action
|
|
587
|
-
} = await (0,default_src
|
|
585
|
+
} = await (0,default_src/* createReportDialogPrompt */.tc)({
|
|
588
586
|
servicesManager,
|
|
589
587
|
extensionManager,
|
|
590
588
|
predecessorImageId,
|
|
@@ -674,7 +672,7 @@ const commandsModule = ({
|
|
|
674
672
|
const {
|
|
675
673
|
uiState,
|
|
676
674
|
setUIState
|
|
677
|
-
} = default_src
|
|
675
|
+
} = default_src/* useUIStateStore */.FS.getState();
|
|
678
676
|
const isButtonActive = uiState['activeSegmentationUtility'] === buttonId;
|
|
679
677
|
console.log('toggleActiveSegmentationUtility', isButtonActive, buttonId);
|
|
680
678
|
// if the button is active, clear the active segmentation utility
|
|
@@ -700,12 +698,14 @@ const commandsModule = ({
|
|
|
700
698
|
};
|
|
701
699
|
};
|
|
702
700
|
/* harmony default export */ const src_commandsModule = (commandsModule);
|
|
703
|
-
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx +
|
|
704
|
-
var cornerstone_src = __webpack_require__(
|
|
705
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
706
|
-
var ui_next_src = __webpack_require__(
|
|
701
|
+
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 193 modules
|
|
702
|
+
var cornerstone_src = __webpack_require__(63081);
|
|
703
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
|
|
704
|
+
var ui_next_src = __webpack_require__(12517);
|
|
707
705
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/index.js
|
|
708
706
|
var utilities = __webpack_require__(53860);
|
|
707
|
+
// EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
|
|
708
|
+
var es = __webpack_require__(99993);
|
|
709
709
|
;// ../../../extensions/cornerstone-dicom-seg/src/components/LogicalContourOperationsOptions.tsx
|
|
710
710
|
|
|
711
711
|
|
|
@@ -713,6 +713,7 @@ var utilities = __webpack_require__(53860);
|
|
|
713
713
|
|
|
714
714
|
|
|
715
715
|
|
|
716
|
+
|
|
716
717
|
const {
|
|
717
718
|
LogicalOperation
|
|
718
719
|
} = utilities.contourSegmentation;
|
|
@@ -744,6 +745,9 @@ function SegmentSelector({
|
|
|
744
745
|
segments,
|
|
745
746
|
placeholder = 'Select a segment'
|
|
746
747
|
}) {
|
|
748
|
+
const {
|
|
749
|
+
t
|
|
750
|
+
} = (0,es/* useTranslation */.Bd)('SegmentationPanel');
|
|
747
751
|
return /*#__PURE__*/react.createElement("div", {
|
|
748
752
|
className: "flex justify-between gap-6"
|
|
749
753
|
}, /*#__PURE__*/react.createElement("div", null, label), /*#__PURE__*/react.createElement(ui_next_src/* Select */.l6P, {
|
|
@@ -753,7 +757,7 @@ function SegmentSelector({
|
|
|
753
757
|
}, /*#__PURE__*/react.createElement(ui_next_src/* SelectTrigger */.bqE, {
|
|
754
758
|
className: "overflow-hidden"
|
|
755
759
|
}, /*#__PURE__*/react.createElement(ui_next_src/* SelectValue */.yvm, {
|
|
756
|
-
placeholder: placeholder
|
|
760
|
+
placeholder: t(placeholder)
|
|
757
761
|
})), /*#__PURE__*/react.createElement(ui_next_src/* SelectContent */.gCo, null, segments.map(segment => /*#__PURE__*/react.createElement(ui_next_src/* SelectItem */.ebT, {
|
|
758
762
|
key: segment.segmentIndex,
|
|
759
763
|
value: segment.segmentIndex.toString()
|
|
@@ -766,9 +770,12 @@ function LogicalContourOperationOptions() {
|
|
|
766
770
|
const {
|
|
767
771
|
segmentationService
|
|
768
772
|
} = servicesManager.services;
|
|
773
|
+
const {
|
|
774
|
+
t
|
|
775
|
+
} = (0,es/* useTranslation */.Bd)('SegmentationPanel');
|
|
769
776
|
const {
|
|
770
777
|
segmentationsWithRepresentations
|
|
771
|
-
} = (0,cornerstone_src
|
|
778
|
+
} = (0,cornerstone_src/* useActiveViewportSegmentationRepresentations */.c3)();
|
|
772
779
|
const activeRepresentation = segmentationsWithRepresentations?.find(({
|
|
773
780
|
representation
|
|
774
781
|
}) => representation?.active);
|
|
@@ -840,7 +847,7 @@ function LogicalContourOperationOptions() {
|
|
|
840
847
|
}, /*#__PURE__*/react.createElement(ui_next_src/* Icons */.FI1.ByName, {
|
|
841
848
|
name: icon
|
|
842
849
|
}));
|
|
843
|
-
}))), /*#__PURE__*/react.createElement("div", null, operation.label)), /*#__PURE__*/react.createElement("div", {
|
|
850
|
+
}))), /*#__PURE__*/react.createElement("div", null, t(operation.label))), /*#__PURE__*/react.createElement("div", {
|
|
844
851
|
className: "bg-primary-dark flex h-[62px] w-[88px] items-center justify-center rounded-lg"
|
|
845
852
|
}, /*#__PURE__*/react.createElement(ui_next_src/* Icons */.FI1.ByName, {
|
|
846
853
|
name: operation.helperIcon
|
|
@@ -862,7 +869,7 @@ function LogicalContourOperationOptions() {
|
|
|
862
869
|
onClick: () => {
|
|
863
870
|
applyLogicalContourOperation();
|
|
864
871
|
}
|
|
865
|
-
}, operation.label)), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
|
|
872
|
+
}, t(operation.label))), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
|
|
866
873
|
className: "bg-input mt-2 h-[1px]"
|
|
867
874
|
}), /*#__PURE__*/react.createElement("div", {
|
|
868
875
|
className: "flex flex-col gap-2"
|
|
@@ -873,14 +880,14 @@ function LogicalContourOperationOptions() {
|
|
|
873
880
|
onCheckedChange: setCreateNewSegment
|
|
874
881
|
}), /*#__PURE__*/react.createElement(ui_next_src/* Label */.JU7, {
|
|
875
882
|
htmlFor: "logical-contour-operations-create-new-segment-switch"
|
|
876
|
-
},
|
|
883
|
+
}, t('Create a new segment'))), /*#__PURE__*/react.createElement("div", {
|
|
877
884
|
className: "pl-9"
|
|
878
885
|
}, /*#__PURE__*/react.createElement(ui_next_src/* Input */.pde, {
|
|
879
886
|
className: (0,ui_next_src.cn)(createNewSegment ? 'visible' : 'hidden'),
|
|
880
887
|
disabled: !createNewSegment,
|
|
881
888
|
id: "logical-contour-operations-create-new-segment-input",
|
|
882
889
|
type: "text",
|
|
883
|
-
placeholder:
|
|
890
|
+
placeholder: t('New segment name'),
|
|
884
891
|
value: newSegmentName,
|
|
885
892
|
onChange: e => setNewSegmentName(e.target.value)
|
|
886
893
|
}))));
|
|
@@ -890,29 +897,33 @@ function LogicalContourOperationOptions() {
|
|
|
890
897
|
|
|
891
898
|
|
|
892
899
|
|
|
900
|
+
|
|
893
901
|
function SimplifyContourOptions() {
|
|
894
902
|
const [areaThreshold, setAreaThreshold] = (0,react.useState)(10);
|
|
895
903
|
const runCommand = (0,src/* useRunCommand */.qN)();
|
|
904
|
+
const {
|
|
905
|
+
t
|
|
906
|
+
} = (0,es/* useTranslation */.Bd)('SegmentationPanel');
|
|
896
907
|
return /*#__PURE__*/react.createElement("div", {
|
|
897
908
|
className: "flex w-auto w-[252px] flex-col gap-[8px] text-base font-normal leading-none"
|
|
898
909
|
}, /*#__PURE__*/react.createElement("div", {
|
|
899
910
|
className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
|
|
900
|
-
}, /*#__PURE__*/react.createElement("div", null,
|
|
911
|
+
}, /*#__PURE__*/react.createElement("div", null, t('Fill contour holes')), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
|
|
901
912
|
className: "border-primary/60 border",
|
|
902
913
|
variant: "ghost",
|
|
903
914
|
onClick: () => {
|
|
904
915
|
runCommand('removeContourHoles');
|
|
905
916
|
}
|
|
906
|
-
},
|
|
917
|
+
}, t('Fill Holes')), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
|
|
907
918
|
className: "bg-input mt-[20px] h-[1px]"
|
|
908
919
|
})), /*#__PURE__*/react.createElement("div", {
|
|
909
920
|
className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
|
|
910
|
-
}, /*#__PURE__*/react.createElement("div", null,
|
|
921
|
+
}, /*#__PURE__*/react.createElement("div", null, t('Remove Small Contours')), /*#__PURE__*/react.createElement("div", {
|
|
911
922
|
className: "flex items-center gap-2 self-end"
|
|
912
923
|
}, /*#__PURE__*/react.createElement(ui_next_src/* Label */.JU7, {
|
|
913
924
|
htmlFor: "simplify-contour-options",
|
|
914
925
|
className: "text-muted-foreground"
|
|
915
|
-
},
|
|
926
|
+
}, t('Area Threshold')), /*#__PURE__*/react.createElement(ui_next_src/* Input */.pde, {
|
|
916
927
|
id: "simplify-contour-options",
|
|
917
928
|
className: "w-20",
|
|
918
929
|
type: "number",
|
|
@@ -926,46 +937,50 @@ function SimplifyContourOptions() {
|
|
|
926
937
|
areaThreshold
|
|
927
938
|
});
|
|
928
939
|
}
|
|
929
|
-
},
|
|
940
|
+
}, t('Remove Small Contours')), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
|
|
930
941
|
className: "bg-input mt-[20px] h-[1px]"
|
|
931
942
|
})), /*#__PURE__*/react.createElement("div", {
|
|
932
943
|
className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
|
|
933
|
-
}, /*#__PURE__*/react.createElement("div", null,
|
|
944
|
+
}, /*#__PURE__*/react.createElement("div", null, t('Create New Segment from Holes')), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
|
|
934
945
|
className: "border-primary/60 border",
|
|
935
946
|
variant: "ghost",
|
|
936
947
|
onClick: () => {
|
|
937
948
|
runCommand('convertContourHoles');
|
|
938
949
|
}
|
|
939
|
-
},
|
|
950
|
+
}, t('Create New Segment'))));
|
|
940
951
|
}
|
|
941
952
|
/* harmony default export */ const components_SimplifyContourOptions = (SimplifyContourOptions);
|
|
942
953
|
;// ../../../extensions/cornerstone-dicom-seg/src/components/SmoothContoursOptions.tsx
|
|
943
954
|
|
|
944
955
|
|
|
945
956
|
|
|
957
|
+
|
|
946
958
|
function SmoothContoursOptions() {
|
|
947
959
|
const runCommand = (0,src/* useRunCommand */.qN)();
|
|
960
|
+
const {
|
|
961
|
+
t
|
|
962
|
+
} = (0,es/* useTranslation */.Bd)('SegmentationPanel');
|
|
948
963
|
return /*#__PURE__*/react.createElement("div", {
|
|
949
964
|
className: "flex w-auto w-[245px] flex-col gap-[8px] text-base font-normal leading-none"
|
|
950
965
|
}, /*#__PURE__*/react.createElement("div", {
|
|
951
966
|
className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
|
|
952
|
-
}, /*#__PURE__*/react.createElement("div", null,
|
|
967
|
+
}, /*#__PURE__*/react.createElement("div", null, t('Smooth all edges')), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
|
|
953
968
|
className: "border-primary/60 border",
|
|
954
969
|
variant: "ghost",
|
|
955
970
|
onClick: () => {
|
|
956
971
|
runCommand('smoothContours');
|
|
957
972
|
}
|
|
958
|
-
},
|
|
973
|
+
}, t('Smooth Edges')), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
|
|
959
974
|
className: "bg-input mt-[20px] h-[1px]"
|
|
960
975
|
})), /*#__PURE__*/react.createElement("div", {
|
|
961
976
|
className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
|
|
962
|
-
}, /*#__PURE__*/react.createElement("div", null,
|
|
977
|
+
}, /*#__PURE__*/react.createElement("div", null, t('Remove extra points')), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
|
|
963
978
|
className: "border-primary/60 border",
|
|
964
979
|
variant: "ghost",
|
|
965
980
|
onClick: () => {
|
|
966
981
|
runCommand('decimateContours');
|
|
967
982
|
}
|
|
968
|
-
},
|
|
983
|
+
}, t('Remove Points'))));
|
|
969
984
|
}
|
|
970
985
|
/* harmony default export */ const components_SmoothContoursOptions = (SmoothContoursOptions);
|
|
971
986
|
;// ../../../extensions/cornerstone-dicom-seg/src/getToolbarModule.ts
|
|
@@ -974,6 +989,7 @@ function SmoothContoursOptions() {
|
|
|
974
989
|
|
|
975
990
|
|
|
976
991
|
|
|
992
|
+
|
|
977
993
|
function getToolbarModule({
|
|
978
994
|
servicesManager
|
|
979
995
|
}) {
|
|
@@ -998,7 +1014,7 @@ function getToolbarModule({
|
|
|
998
1014
|
}) => {
|
|
999
1015
|
const {
|
|
1000
1016
|
uiState
|
|
1001
|
-
} = default_src
|
|
1017
|
+
} = default_src/* useUIStateStore */.FS.getState();
|
|
1002
1018
|
return {
|
|
1003
1019
|
isActive: uiState[`activeSegmentationUtility`] === button.id
|
|
1004
1020
|
};
|
|
@@ -1023,7 +1039,7 @@ function getToolbarModule({
|
|
|
1023
1039
|
if (!segmentations?.length) {
|
|
1024
1040
|
return {
|
|
1025
1041
|
disabled: true,
|
|
1026
|
-
disabledText: 'No segmentations available'
|
|
1042
|
+
disabledText: i18n_src/* default */.A.t('SegmentationPanel:No segmentations available')
|
|
1027
1043
|
};
|
|
1028
1044
|
}
|
|
1029
1045
|
if (!segmentations.some(segmentation => Boolean(segmentation.type === segmentationRepresentationType))) {
|
|
@@ -1049,21 +1065,21 @@ function getToolbarModule({
|
|
|
1049
1065
|
if (!segmentations?.length) {
|
|
1050
1066
|
return {
|
|
1051
1067
|
disabled: true,
|
|
1052
|
-
disabledText: disabledText ?? 'No segmentations available'
|
|
1068
|
+
disabledText: disabledText ?? i18n_src/* default */.A.t('SegmentationPanel:No segmentations available')
|
|
1053
1069
|
};
|
|
1054
1070
|
}
|
|
1055
1071
|
const activeSegmentation = segmentationService.getActiveSegmentation(viewportId);
|
|
1056
1072
|
if (!Object.keys(activeSegmentation.segments).length) {
|
|
1057
1073
|
return {
|
|
1058
1074
|
disabled: true,
|
|
1059
|
-
disabledText: 'Add segment to enable this tool'
|
|
1075
|
+
disabledText: i18n_src/* default */.A.t('SegmentationPanel:Add segment to enable this tool')
|
|
1060
1076
|
};
|
|
1061
1077
|
}
|
|
1062
1078
|
const toolGroup = toolGroupService.getToolGroupForViewport(viewportId);
|
|
1063
1079
|
if (!toolGroup) {
|
|
1064
1080
|
return {
|
|
1065
1081
|
disabled: true,
|
|
1066
|
-
disabledText: disabledText ?? 'Not available on the current viewport'
|
|
1082
|
+
disabledText: disabledText ?? i18n_src/* default */.A.t('SegmentationPanel:Not available on the current viewport')
|
|
1067
1083
|
};
|
|
1068
1084
|
}
|
|
1069
1085
|
if (!toolNames) {
|
|
@@ -1076,7 +1092,7 @@ function getToolbarModule({
|
|
|
1076
1092
|
if (!toolGroup.hasTool(toolName) && !toolNames) {
|
|
1077
1093
|
return {
|
|
1078
1094
|
disabled: true,
|
|
1079
|
-
disabledText: disabledText ?? 'Not available on the current viewport'
|
|
1095
|
+
disabledText: disabledText ?? i18n_src/* default */.A.t('SegmentationPanel:Not available on the current viewport')
|
|
1080
1096
|
};
|
|
1081
1097
|
}
|
|
1082
1098
|
const isPrimaryActive = toolNames ? toolNames.includes(toolGroup.getActivePrimaryMouseButtonTool()) : toolGroup.getActivePrimaryMouseButtonTool() === toolName;
|
|
@@ -1161,6 +1177,6 @@ const extension = {
|
|
|
1161
1177
|
};
|
|
1162
1178
|
/* harmony default export */ const cornerstone_dicom_seg_src = (extension);
|
|
1163
1179
|
|
|
1164
|
-
/***/ }
|
|
1180
|
+
/***/ }
|
|
1165
1181
|
|
|
1166
1182
|
}]);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[85],{
|
|
3
3
|
|
|
4
|
-
/***/ 70085
|
|
5
|
-
|
|
4
|
+
/***/ 70085
|
|
5
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
|
|
7
|
-
// ESM COMPAT FLAG
|
|
8
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9
7
|
|
|
10
8
|
// EXPORTS
|
|
11
9
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -1069,6 +1067,6 @@ const mode = {
|
|
|
1069
1067
|
};
|
|
1070
1068
|
/* harmony default export */ const basic_test_mode_src = (mode);
|
|
1071
1069
|
|
|
1072
|
-
/***/ }
|
|
1070
|
+
/***/ }
|
|
1073
1071
|
|
|
1074
1072
|
}]);
|