@ohif/app 3.12.0-beta.80 → 3.12.0-beta.81
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/{3190.bundle.cd955568fe4d80ab2e4b.js → 1037.bundle.7502b1bb0e5eee58a1d8.js} +51 -15
- package/dist/{1927.bundle.081901df8d9b33633806.js → 1927.bundle.da6db325e08bacb0bca0.js} +3 -3
- package/dist/{6725.bundle.0d2cdc2107924a76f362.js → 2018.bundle.48b73891bb66796a3b2d.js} +47 -14
- package/dist/{306.bundle.a2380c4b23436c127faf.js → 306.bundle.c671a09e1eacf6bcfc84.js} +1 -1
- package/dist/{3613.bundle.f5fceb4697407a89921b.js → 3613.bundle.3542f5bb1f69651bc239.js} +98 -45
- package/dist/{4019.bundle.6505ff57ca48af03da8a.js → 4019.bundle.8172183f816ea5500dd5.js} +46 -8
- package/dist/{4092.bundle.00d575990d745230c1b2.js → 4092.bundle.9ab4766b293d4e447551.js} +19 -0
- package/dist/{5400.bundle.eb0f5866140b5db31518.js → 5400.bundle.3ebba479fc068cd8c700.js} +8 -2
- package/dist/{3353.bundle.a52e42421b9407ad28ce.js → 5858.bundle.99a6b9de04c621694ffd.js} +850 -747
- package/dist/{7412.bundle.94802a6a629f62daab88.js → 7412.bundle.dd19b713fc5158ef34c1.js} +157 -139
- package/dist/{7948.bundle.ca4da4046481100dccca.js → 7948.bundle.2c6514eb65957b44b127.js} +23 -27
- package/dist/{9548.bundle.6f232a0a03e60854b49e.js → 9548.bundle.ee365804b810d67b2766.js} +2 -2
- package/dist/{1807.bundle.4fe7031d498b59f1ed68.js → 9927.bundle.174996e11c1432053378.js} +52 -21
- package/dist/{app.bundle.a16db06e6e1ae5b7b3c5.js → app.bundle.619935f4e9b60960eec1.js} +936 -689
- package/dist/{compute.bundle.f6f1236073e2a486ddfb.js → compute.bundle.ea0325cee6d2a4be77d7.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.d0ed88f3bfea700c211b.js → polySeg.bundle.19444130c84583d811bd.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.d8ca1f502eeb88a6e020.js → 1459.bundle.68ad9f4d048db1ded95e.js} +0 -0
- /package/dist/{147.bundle.53fe889b205dd91c245b.js → 147.bundle.9dac0500e2fa57626fdb.js} +0 -0
- /package/dist/{1604.bundle.b8b471d4b94ff2cf56ab.js → 1604.bundle.43520d5718d17febb2cf.js} +0 -0
- /package/dist/{1919.bundle.45c73b6e5367ff362580.js → 1919.bundle.27d4d453ec440181e449.js} +0 -0
- /package/dist/{213.bundle.cf999dc57ee54e1a61d0.js → 213.bundle.0d4bbf28ab97c107cdd5.js} +0 -0
- /package/dist/{2243.bundle.12b6ee3196121df88f63.js → 2243.bundle.873b4152dd2f550e76c6.js} +0 -0
- /package/dist/{2424.bundle.bfb5c29973df67ab4d1d.js → 2424.bundle.d8e65c4cd46695af1843.js} +0 -0
- /package/dist/{2518.bundle.b21d8c66dc8deb8ba922.js → 2518.bundle.ac5afa27c4799530d767.js} +0 -0
- /package/dist/{4113.bundle.6849f66f615847ada125.js → 4113.bundle.bebb8ac4abb95780b383.js} +0 -0
- /package/dist/{414.bundle.24a6ae428cbbec6fac72.js → 414.bundle.401bcf7a053bec6d5b32.js} +0 -0
- /package/dist/{5457.bundle.1b6c9d9754568061510c.js → 5457.bundle.f137a9e71ccf98addfbf.js} +0 -0
- /package/dist/{5485.bundle.8e456ebcf976c9c50dc3.js → 5485.bundle.08a4230790c12a80eb29.js} +0 -0
- /package/dist/{6027.bundle.5be91623f59d577abbd4.js → 6027.bundle.2a306549492ad8e7c2cd.js} +0 -0
- /package/dist/{6201.bundle.c59a4ef10b5d2126f3fe.js → 6201.bundle.d06a18bf366ae85c52b2.js} +0 -0
- /package/dist/{6991.bundle.e3e4ba73befe78136d84.js → 6991.bundle.1a945d91824788fde106.js} +0 -0
- /package/dist/{7431.bundle.ad1982d7c54a5931d409.js → 7431.bundle.be686be30c718b6f0165.js} +0 -0
- /package/dist/{7639.bundle.4fc45f7230e0fa936753.js → 7639.bundle.75968faa6648c318a4db.js} +0 -0
- /package/dist/{810.bundle.d472e7b39cb1da8d5c02.js → 810.bundle.d5ba529e18a59343a305.js} +0 -0
- /package/dist/{85.bundle.ca9e53b4f5669c6af047.js → 85.bundle.9e0a56a0cc52c4656d85.js} +0 -0
- /package/dist/{8558.bundle.ed93f8a5a7b3ea9acfce.js → 8558.bundle.226b7ea0dbfc9168e743.js} +0 -0
- /package/dist/{934.bundle.9445c5082a67dba7e121.js → 934.bundle.939f1fec0da4d0d82572.js} +0 -0
- /package/dist/{9862.bundle.e2c4c129f7907500b840.js → 9862.bundle.cb4de0892ea411293655.js} +0 -0
|
@@ -1768,8 +1768,8 @@ var src = __webpack_require__(42356);
|
|
|
1768
1768
|
var loaders = __webpack_require__(19742);
|
|
1769
1769
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/enums/RequestType.js
|
|
1770
1770
|
var RequestType = __webpack_require__(43213);
|
|
1771
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/dicom-image-loader/dist/esm/index.js +
|
|
1772
|
-
var dicom_image_loader_dist_esm = __webpack_require__(
|
|
1771
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/dicom-image-loader/dist/esm/index.js + 77 modules
|
|
1772
|
+
var dicom_image_loader_dist_esm = __webpack_require__(75524);
|
|
1773
1773
|
;// ../../../extensions/cornerstone/src/initWADOImageLoader.js
|
|
1774
1774
|
|
|
1775
1775
|
|
|
@@ -10399,6 +10399,7 @@ function commandsModule({
|
|
|
10399
10399
|
}) {
|
|
10400
10400
|
const {
|
|
10401
10401
|
viewportGridService,
|
|
10402
|
+
toolbarService,
|
|
10402
10403
|
toolGroupService,
|
|
10403
10404
|
cineService,
|
|
10404
10405
|
uiDialogService,
|
|
@@ -10432,6 +10433,22 @@ function commandsModule({
|
|
|
10432
10433
|
segmentIndex: activeSegmentIndex
|
|
10433
10434
|
};
|
|
10434
10435
|
}
|
|
10436
|
+
function _handleBrushSizeAction(action) {
|
|
10437
|
+
const toolGroupIds = toolGroupService.getToolGroupIds();
|
|
10438
|
+
if (!toolGroupIds?.length) {
|
|
10439
|
+
return;
|
|
10440
|
+
}
|
|
10441
|
+
for (const toolGroupId of toolGroupIds) {
|
|
10442
|
+
const brushSize = segmentationUtils.getBrushSizeForToolGroup(toolGroupId);
|
|
10443
|
+
const newBrushSize = action === 'increase' ? brushSize + 3 : brushSize - 3;
|
|
10444
|
+
if (brushSize) {
|
|
10445
|
+
segmentationUtils.setBrushSizeForToolGroup(toolGroupId, newBrushSize);
|
|
10446
|
+
toolbarService.refreshToolbarState({
|
|
10447
|
+
toolGroupId
|
|
10448
|
+
});
|
|
10449
|
+
}
|
|
10450
|
+
}
|
|
10451
|
+
}
|
|
10435
10452
|
const actions = {
|
|
10436
10453
|
jumpToMeasurementViewport: ({
|
|
10437
10454
|
annotationUID,
|
|
@@ -12430,18 +12447,11 @@ function commandsModule({
|
|
|
12430
12447
|
}
|
|
12431
12448
|
},
|
|
12432
12449
|
setBrushSize: ({
|
|
12433
|
-
value
|
|
12434
|
-
toolNames
|
|
12450
|
+
value
|
|
12435
12451
|
}) => {
|
|
12436
12452
|
const brushSize = Number(value);
|
|
12437
12453
|
toolGroupService.getToolGroupIds()?.forEach(toolGroupId => {
|
|
12438
|
-
|
|
12439
|
-
segmentationUtils.setBrushSizeForToolGroup(toolGroupId, brushSize);
|
|
12440
|
-
} else {
|
|
12441
|
-
toolNames?.forEach(toolName => {
|
|
12442
|
-
segmentationUtils.setBrushSizeForToolGroup(toolGroupId, brushSize, toolName);
|
|
12443
|
-
});
|
|
12444
|
-
}
|
|
12454
|
+
segmentationUtils.setBrushSizeForToolGroup(toolGroupId, brushSize);
|
|
12445
12455
|
});
|
|
12446
12456
|
},
|
|
12447
12457
|
setThresholdRange: ({
|
|
@@ -12464,24 +12474,10 @@ function commandsModule({
|
|
|
12464
12474
|
}
|
|
12465
12475
|
},
|
|
12466
12476
|
increaseBrushSize: () => {
|
|
12467
|
-
|
|
12468
|
-
if (!toolGroupIds?.length) {
|
|
12469
|
-
return;
|
|
12470
|
-
}
|
|
12471
|
-
for (const toolGroupId of toolGroupIds) {
|
|
12472
|
-
const brushSize = segmentationUtils.getBrushSizeForToolGroup(toolGroupId);
|
|
12473
|
-
segmentationUtils.setBrushSizeForToolGroup(toolGroupId, brushSize + 3);
|
|
12474
|
-
}
|
|
12477
|
+
_handleBrushSizeAction('increase');
|
|
12475
12478
|
},
|
|
12476
12479
|
decreaseBrushSize: () => {
|
|
12477
|
-
|
|
12478
|
-
if (!toolGroupIds?.length) {
|
|
12479
|
-
return;
|
|
12480
|
-
}
|
|
12481
|
-
for (const toolGroupId of toolGroupIds) {
|
|
12482
|
-
const brushSize = segmentationUtils.getBrushSizeForToolGroup(toolGroupId);
|
|
12483
|
-
segmentationUtils.setBrushSizeForToolGroup(toolGroupId, brushSize - 3);
|
|
12484
|
-
}
|
|
12480
|
+
_handleBrushSizeAction('decrease');
|
|
12485
12481
|
},
|
|
12486
12482
|
addNewSegment: () => {
|
|
12487
12483
|
const {
|
|
@@ -10435,8 +10435,8 @@ function AboutModalDefault() {
|
|
|
10435
10435
|
name
|
|
10436
10436
|
} = (0,browser_detect_es5/* default */.A)();
|
|
10437
10437
|
const browser = `${name[0].toUpperCase()}${name.substr(1)} ${version}`;
|
|
10438
|
-
const versionNumber = "3.12.0-beta.
|
|
10439
|
-
const commitHash = "
|
|
10438
|
+
const versionNumber = "3.12.0-beta.81";
|
|
10439
|
+
const commitHash = "29bd87c8c0592a9a1350e687b862f5452627aece";
|
|
10440
10440
|
const [main, beta] = versionNumber.split('-');
|
|
10441
10441
|
return /*#__PURE__*/react.createElement(ui_next_src/* AboutModal */.VTU, {
|
|
10442
10442
|
className: "w-[400px]"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[9927],{
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 69927:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6
6
|
|
|
7
7
|
// ESM COMPAT FLAG
|
|
@@ -14,7 +14,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
14
|
|
|
15
15
|
// EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
|
|
16
16
|
var src = __webpack_require__(42356);
|
|
17
|
+
;// ../../../modes/tmtv/src/constants.ts
|
|
18
|
+
const MIN_SEGMENTATION_DRAWING_RADIUS = 0.5;
|
|
19
|
+
const MAX_SEGMENTATION_DRAWING_RADIUS = 99.5;
|
|
17
20
|
;// ../../../modes/tmtv/src/initToolGroups.js
|
|
21
|
+
|
|
18
22
|
const toolGroupIds = {
|
|
19
23
|
CT: 'ctToolGroup',
|
|
20
24
|
PT: 'ptToolGroup',
|
|
@@ -92,37 +96,49 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
|
|
|
92
96
|
toolName: 'CircularBrush',
|
|
93
97
|
parentTool: 'Brush',
|
|
94
98
|
configuration: {
|
|
95
|
-
activeStrategy: 'FILL_INSIDE_CIRCLE'
|
|
99
|
+
activeStrategy: 'FILL_INSIDE_CIRCLE',
|
|
100
|
+
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
101
|
+
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS
|
|
96
102
|
}
|
|
97
103
|
}, {
|
|
98
104
|
toolName: 'CircularEraser',
|
|
99
105
|
parentTool: 'Brush',
|
|
100
106
|
configuration: {
|
|
101
|
-
activeStrategy: 'ERASE_INSIDE_CIRCLE'
|
|
107
|
+
activeStrategy: 'ERASE_INSIDE_CIRCLE',
|
|
108
|
+
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
109
|
+
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS
|
|
102
110
|
}
|
|
103
111
|
}, {
|
|
104
112
|
toolName: 'SphereBrush',
|
|
105
113
|
parentTool: 'Brush',
|
|
106
114
|
configuration: {
|
|
107
|
-
activeStrategy: 'FILL_INSIDE_SPHERE'
|
|
115
|
+
activeStrategy: 'FILL_INSIDE_SPHERE',
|
|
116
|
+
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
117
|
+
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS
|
|
108
118
|
}
|
|
109
119
|
}, {
|
|
110
120
|
toolName: 'SphereEraser',
|
|
111
121
|
parentTool: 'Brush',
|
|
112
122
|
configuration: {
|
|
113
|
-
activeStrategy: 'ERASE_INSIDE_SPHERE'
|
|
123
|
+
activeStrategy: 'ERASE_INSIDE_SPHERE',
|
|
124
|
+
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
125
|
+
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS
|
|
114
126
|
}
|
|
115
127
|
}, {
|
|
116
128
|
toolName: 'ThresholdCircularBrush',
|
|
117
129
|
parentTool: 'Brush',
|
|
118
130
|
configuration: {
|
|
119
|
-
activeStrategy: 'THRESHOLD_INSIDE_CIRCLE'
|
|
131
|
+
activeStrategy: 'THRESHOLD_INSIDE_CIRCLE',
|
|
132
|
+
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
133
|
+
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS
|
|
120
134
|
}
|
|
121
135
|
}, {
|
|
122
136
|
toolName: 'ThresholdSphereBrush',
|
|
123
137
|
parentTool: 'Brush',
|
|
124
138
|
configuration: {
|
|
125
|
-
activeStrategy: 'THRESHOLD_INSIDE_SPHERE'
|
|
139
|
+
activeStrategy: 'THRESHOLD_INSIDE_SPHERE',
|
|
140
|
+
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
141
|
+
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS
|
|
126
142
|
}
|
|
127
143
|
}, {
|
|
128
144
|
toolName: 'ThresholdCircularBrushDynamic',
|
|
@@ -135,7 +151,9 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
|
|
|
135
151
|
threshold: {
|
|
136
152
|
isDynamic: true,
|
|
137
153
|
dynamicRadius: 3
|
|
138
|
-
}
|
|
154
|
+
},
|
|
155
|
+
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
156
|
+
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS
|
|
139
157
|
}
|
|
140
158
|
}],
|
|
141
159
|
enabled: [],
|
|
@@ -199,6 +217,7 @@ var i18next = __webpack_require__(40680);
|
|
|
199
217
|
;// ../../../modes/tmtv/src/toolbarButtons.ts
|
|
200
218
|
|
|
201
219
|
|
|
220
|
+
|
|
202
221
|
const setToolActiveToolbar = {
|
|
203
222
|
commandName: 'setToolActiveToolbar',
|
|
204
223
|
commandOptions: {
|
|
@@ -379,17 +398,21 @@ const toolbarButtons = [{
|
|
|
379
398
|
props: {
|
|
380
399
|
icon: 'icon-tool-brush',
|
|
381
400
|
label: i18next/* default */.A.t('Buttons:Brush'),
|
|
382
|
-
evaluate: {
|
|
401
|
+
evaluate: [{
|
|
383
402
|
name: 'evaluate.cornerstone.segmentation',
|
|
384
403
|
toolNames: ['CircularBrush', 'SphereBrush'],
|
|
385
404
|
disabledText: i18next/* default */.A.t('Buttons:Create new segmentation to enable this tool.')
|
|
386
|
-
},
|
|
405
|
+
}, {
|
|
406
|
+
name: 'evaluate.cornerstone.segmentation.synchronizeDrawingRadius',
|
|
407
|
+
radiusOptionId: 'brush-radius'
|
|
408
|
+
}],
|
|
387
409
|
options: [{
|
|
388
410
|
name: 'Radius (mm)',
|
|
389
411
|
id: 'brush-radius',
|
|
390
412
|
type: 'range',
|
|
391
|
-
|
|
392
|
-
|
|
413
|
+
explicitRunOnly: true,
|
|
414
|
+
min: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
415
|
+
max: MAX_SEGMENTATION_DRAWING_RADIUS,
|
|
393
416
|
step: 0.5,
|
|
394
417
|
value: 25,
|
|
395
418
|
commands: {
|
|
@@ -419,16 +442,20 @@ const toolbarButtons = [{
|
|
|
419
442
|
props: {
|
|
420
443
|
icon: 'icon-tool-eraser',
|
|
421
444
|
label: i18next/* default */.A.t('Buttons:Eraser'),
|
|
422
|
-
evaluate: {
|
|
445
|
+
evaluate: [{
|
|
423
446
|
name: 'evaluate.cornerstone.segmentation',
|
|
424
447
|
toolNames: ['CircularEraser', 'SphereEraser']
|
|
425
|
-
},
|
|
448
|
+
}, {
|
|
449
|
+
name: 'evaluate.cornerstone.segmentation.synchronizeDrawingRadius',
|
|
450
|
+
radiusOptionId: 'eraser-radius'
|
|
451
|
+
}],
|
|
426
452
|
options: [{
|
|
427
453
|
name: 'Radius (mm)',
|
|
428
454
|
id: 'eraser-radius',
|
|
429
455
|
type: 'range',
|
|
430
|
-
|
|
431
|
-
|
|
456
|
+
explicitRunOnly: true,
|
|
457
|
+
min: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
458
|
+
max: MAX_SEGMENTATION_DRAWING_RADIUS,
|
|
432
459
|
step: 0.5,
|
|
433
460
|
value: 25,
|
|
434
461
|
commands: {
|
|
@@ -458,16 +485,20 @@ const toolbarButtons = [{
|
|
|
458
485
|
props: {
|
|
459
486
|
icon: 'icon-tool-threshold',
|
|
460
487
|
label: i18next/* default */.A.t('Buttons:Threshold Tool'),
|
|
461
|
-
evaluate: {
|
|
488
|
+
evaluate: [{
|
|
462
489
|
name: 'evaluate.cornerstone.segmentation',
|
|
463
490
|
toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush']
|
|
464
|
-
},
|
|
491
|
+
}, {
|
|
492
|
+
name: 'evaluate.cornerstone.segmentation.synchronizeDrawingRadius',
|
|
493
|
+
radiusOptionId: 'threshold-radius'
|
|
494
|
+
}],
|
|
465
495
|
options: [{
|
|
466
496
|
name: 'Radius (mm)',
|
|
467
497
|
id: 'threshold-radius',
|
|
468
498
|
type: 'range',
|
|
469
|
-
|
|
470
|
-
|
|
499
|
+
explicitRunOnly: true,
|
|
500
|
+
min: MIN_SEGMENTATION_DRAWING_RADIUS,
|
|
501
|
+
max: MAX_SEGMENTATION_DRAWING_RADIUS,
|
|
471
502
|
step: 0.5,
|
|
472
503
|
value: 25,
|
|
473
504
|
commands: {
|