@ohif/app 3.14.0-beta.72 → 3.14.0-beta.74
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/{2894.bundle.770d3d9e.js → 1153.bundle.efd8a415.js} +3129 -166
- package/dist/{1566.bundle.e9f5d851.js → 1566.bundle.d58db206.js} +47 -9
- package/dist/{1645.bundle.1a86b10e.js → 1645.bundle.a8ee81ea.js} +73 -20
- package/dist/{1793.bundle.7b6d510f.js → 1793.bundle.27458a55.js} +2 -2
- package/dist/{1862.bundle.10bed54a.js → 1862.bundle.79bfe469.js} +1 -1
- package/dist/{9892.bundle.fe68e426.js → 2382.bundle.3198d878.js} +41 -28
- package/dist/{2717.bundle.4167aa16.js → 2717.bundle.e4bad54f.js} +2 -2
- package/dist/{2748.bundle.a90b290d.js → 2748.bundle.eaa94e2e.js} +0 -805
- package/dist/{513.bundle.9c0548cf.js → 2894.bundle.d612efb2.js} +1 -1
- package/dist/{3004.bundle.cbd2e499.js → 3004.bundle.483559ec.js} +4 -4
- package/dist/3723.bundle.eab70100.js +808 -0
- package/dist/{3771.bundle.1c9e74f3.js → 3771.bundle.6cb07c14.js} +2 -2
- package/dist/{4500.bundle.79728db8.js → 4449.bundle.3e4b07e6.js} +1043 -69
- package/dist/{4606.bundle.05282205.js → 4606.bundle.a2a1aa34.js} +1 -1
- package/dist/{5076.bundle.157252dd.js → 5076.bundle.95c07142.js} +50 -8
- package/dist/{5143.bundle.1ddc3eb4.js → 5143.bundle.2ea0b15d.js} +1145 -134
- package/dist/{5320.bundle.43308cb4.js → 5320.bundle.335efd86.js} +247 -210
- package/dist/{5914.bundle.00f408d2.js → 5914.bundle.f6e9fc4a.js} +37 -9
- package/dist/{5989.bundle.6da1ff18.js → 5989.bundle.2999d206.js} +320 -231
- package/dist/{213.bundle.6bbe580b.js → 6133.bundle.d4f7403f.js} +3062 -117
- package/dist/{3386.bundle.bdaa8014.js → 6289.bundle.a946bfc5.js} +99 -30
- package/dist/{8699.bundle.c00d7ae1.js → 6507.bundle.1b793bf6.js} +13 -8
- package/dist/{6847.bundle.7fd47a86.js → 6847.bundle.5a087332.js} +27 -4
- package/dist/{7526.bundle.1803d311.js → 7526.bundle.ed8b2bf3.js} +6 -2
- package/dist/{7604.bundle.2d399cf0.js → 7604.bundle.e703a54d.js} +1 -1
- package/dist/{7464.bundle.36e9c349.js → 8037.bundle.8b5f4114.js} +2753 -495
- package/dist/{9187.bundle.134a42b2.js → 9187.bundle.2a03db07.js} +6 -6
- package/dist/{9481.bundle.65162f9d.js → 9481.bundle.6fe2a588.js} +4 -4
- package/dist/{9620.bundle.e098e167.js → 9620.bundle.36e4615d.js} +11 -6
- package/dist/{9841.bundle.74186de7.js → 9841.bundle.e74fc41c.js} +2 -2
- package/dist/{9886.bundle.5c1ff898.js → 9886.bundle.cabb4a24.js} +2 -2
- package/dist/{9948.bundle.29548cec.js → 9948.bundle.b4ff610d.js} +2 -2
- package/dist/app-config.js +2 -0
- package/dist/{app.bundle.58791784.js → app.bundle.af846c60.js} +83 -45
- package/dist/{compute.bundle.09be4c13.js → compute.bundle.19cf1283.js} +10 -10
- package/dist/customizations/gpu/high-texture-4096.jsonc +9 -0
- package/dist/customizations/gpu/high.jsonc +8 -0
- package/dist/customizations/gpu/low-tablet.jsonc +7 -0
- package/dist/customizations/gpu/low.jsonc +7 -0
- package/dist/customizations/gpu/medium.jsonc +7 -0
- package/dist/customizations/index.html +39 -0
- package/dist/{histogram-worker.bundle.a8bb873a.js → histogram-worker.bundle.58e60d7c.js} +4 -4
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.1eeebcfe.js → interpolation.bundle.7b3850e6.js} +7 -7
- package/dist/{polySeg.bundle.5bc24361.js → polySeg.bundle.157e1e17.js} +11 -11
- package/dist/sw.js +1 -1
- package/package.json +6 -6
|
@@ -569,7 +569,7 @@ const commandsModule = ({ commandsManager, servicesManager })=>{
|
|
|
569
569
|
|
|
570
570
|
|
|
571
571
|
const Component = /*#__PURE__*/ react.lazy(()=>{
|
|
572
|
-
return Promise.all(/* import() */ [__webpack_require__.e(5383), __webpack_require__.e(
|
|
572
|
+
return Promise.all(/* import() */ [__webpack_require__.e(5383), __webpack_require__.e(6289), __webpack_require__.e(9948)]).then(__webpack_require__.bind(__webpack_require__, 37999));
|
|
573
573
|
});
|
|
574
574
|
const OHIFCornerstoneRTViewport = (props)=>{
|
|
575
575
|
const $ = (0,compiler_runtime.c)(3);
|
|
@@ -3416,20 +3416,54 @@ async function addVolumesToViewports(renderingEngine, volumeInputs, viewportIds,
|
|
|
3416
3416
|
/* import */ var _init_js__rspack_import_1 = __webpack_require__(90934);
|
|
3417
3417
|
/* import */ var _kitware_vtk_js_Rendering_Core_VolumeMapper_js__rspack_import_2 = __webpack_require__(21067);
|
|
3418
3418
|
/* import */ var _kitware_vtk_js_Common_Core_DataArray_js__rspack_import_3 = __webpack_require__(84472);
|
|
3419
|
+
/* import */ var _kitware_vtk_js_Common_DataModel_BoundingBox_js__rspack_import_4 = __webpack_require__(28710);
|
|
3419
3420
|
|
|
3420
3421
|
|
|
3421
3422
|
|
|
3422
3423
|
|
|
3424
|
+
|
|
3425
|
+
const MAXIMUM_SAMPLES_PER_RAY = 4000;
|
|
3426
|
+
function sampleDistanceOf(imageData, texture, multiplier = (0,_init_js__rspack_import_1/* .getConfiguration */.D0)().rendering?.volumeRendering
|
|
3427
|
+
?.sampleDistanceMultiplier || 1) {
|
|
3428
|
+
const grid = texture?.getGrid?.();
|
|
3429
|
+
const spacing = grid?.spacing ?? imageData.getSpacing();
|
|
3430
|
+
const distance = (multiplier * (spacing[0] + spacing[1] + spacing[2])) / 6;
|
|
3431
|
+
if (!(0,_init_js__rspack_import_1/* .getLossyDownsampling */.GR)().final) {
|
|
3432
|
+
return distance;
|
|
3433
|
+
}
|
|
3434
|
+
const diagonal = _kitware_vtk_js_Common_DataModel_BoundingBox_js__rspack_import_4/* ["default"].getDiagonalLength */.Ay.getDiagonalLength(imageData.getBounds());
|
|
3435
|
+
return Math.max(distance, diagonal / (MAXIMUM_SAMPLES_PER_RAY - 1));
|
|
3436
|
+
}
|
|
3437
|
+
const idleSampleDistanceMultipliers = new WeakMap();
|
|
3438
|
+
function setIdleSampleDistanceMultiplier(mapper, multiplier) {
|
|
3439
|
+
idleSampleDistanceMultipliers.set(mapper, Number.isFinite(multiplier) ? Math.max(multiplier, 0.001) : 1);
|
|
3440
|
+
}
|
|
3441
|
+
function idleSampleDistanceMultiplierOf(mapper) {
|
|
3442
|
+
return (idleSampleDistanceMultipliers.get(mapper) ??
|
|
3443
|
+
((0,_init_js__rspack_import_1/* .getConfiguration */.D0)().rendering?.volumeRendering?.sampleDistanceMultiplier ||
|
|
3444
|
+
1));
|
|
3445
|
+
}
|
|
3446
|
+
function sampleDistanceRatiosOf(mapper, texture = mapper?.getScalarTexture?.()) {
|
|
3447
|
+
const current = mapper?.getSampleDistance?.();
|
|
3448
|
+
const imageData = mapper?.getInputData?.();
|
|
3449
|
+
if (!imageData || !(current > 0)) {
|
|
3450
|
+
return { current: 1, idle: 1 };
|
|
3451
|
+
}
|
|
3452
|
+
const baseline = sampleDistanceOf(imageData, texture, 1);
|
|
3453
|
+
if (!(baseline > 0)) {
|
|
3454
|
+
return { current: 1, idle: 1 };
|
|
3455
|
+
}
|
|
3456
|
+
const idle = sampleDistanceOf(imageData, texture, idleSampleDistanceMultiplierOf(mapper));
|
|
3457
|
+
return { current: current / baseline, idle: idle / baseline };
|
|
3458
|
+
}
|
|
3423
3459
|
function createVolumeMapper(imageData, vtkOpenGLTexture) {
|
|
3424
3460
|
const volumeMapper = _vtkClasses_index_js__rspack_import_0/* .vtkSharedVolumeMapper.newInstance */.wu.newInstance();
|
|
3425
3461
|
volumeMapper.setInputData(imageData);
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
volumeMapper.setSampleDistance(sampleDistance);
|
|
3432
|
-
volumeMapper.setScalarTexture(vtkOpenGLTexture);
|
|
3462
|
+
volumeMapper.setMaximumSamplesPerRay(MAXIMUM_SAMPLES_PER_RAY);
|
|
3463
|
+
volumeMapper.setSampleDistance(sampleDistanceOf(imageData, vtkOpenGLTexture));
|
|
3464
|
+
if (vtkOpenGLTexture) {
|
|
3465
|
+
volumeMapper.setScalarTexture(vtkOpenGLTexture);
|
|
3466
|
+
}
|
|
3433
3467
|
return volumeMapper;
|
|
3434
3468
|
}
|
|
3435
3469
|
function convertMapperToNotSharedMapper(sharedMapper) {
|
|
@@ -3450,7 +3484,11 @@ function convertMapperToNotSharedMapper(sharedMapper) {
|
|
|
3450
3484
|
}
|
|
3451
3485
|
|
|
3452
3486
|
__webpack_require__.d(__webpack_exports__, {
|
|
3453
|
-
|
|
3487
|
+
$U: () => (setIdleSampleDistanceMultiplier),
|
|
3488
|
+
Ax: () => (idleSampleDistanceMultiplierOf),
|
|
3489
|
+
Ay: () => (createVolumeMapper),
|
|
3490
|
+
h6: () => (sampleDistanceOf),
|
|
3491
|
+
nr: () => (sampleDistanceRatiosOf)
|
|
3454
3492
|
});
|
|
3455
3493
|
|
|
3456
3494
|
|
|
@@ -3660,6 +3698,10 @@ Settings.getDefaultSettings().set('useCursors', true);
|
|
|
3660
3698
|
/* import */ var _classes_Mesh_js__rspack_import_3 = __webpack_require__(99931);
|
|
3661
3699
|
/* import */ var _classes_StreamingImageVolume_js__rspack_import_4 = __webpack_require__(40676);
|
|
3662
3700
|
/* import */ var _classes_StreamingDynamicImageVolume_js__rspack_import_5 = __webpack_require__(32855);
|
|
3701
|
+
/* import */ var _volumeTextureStore_js__rspack_import_6 = __webpack_require__(82340);
|
|
3702
|
+
/* import */ var _classes_VolumeTextureSet_js__rspack_import_7 = __webpack_require__(97896);
|
|
3703
|
+
|
|
3704
|
+
|
|
3663
3705
|
|
|
3664
3706
|
|
|
3665
3707
|
|