@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.
Files changed (47) hide show
  1. package/dist/{2894.bundle.770d3d9e.js → 1153.bundle.efd8a415.js} +3129 -166
  2. package/dist/{1566.bundle.e9f5d851.js → 1566.bundle.d58db206.js} +47 -9
  3. package/dist/{1645.bundle.1a86b10e.js → 1645.bundle.a8ee81ea.js} +73 -20
  4. package/dist/{1793.bundle.7b6d510f.js → 1793.bundle.27458a55.js} +2 -2
  5. package/dist/{1862.bundle.10bed54a.js → 1862.bundle.79bfe469.js} +1 -1
  6. package/dist/{9892.bundle.fe68e426.js → 2382.bundle.3198d878.js} +41 -28
  7. package/dist/{2717.bundle.4167aa16.js → 2717.bundle.e4bad54f.js} +2 -2
  8. package/dist/{2748.bundle.a90b290d.js → 2748.bundle.eaa94e2e.js} +0 -805
  9. package/dist/{513.bundle.9c0548cf.js → 2894.bundle.d612efb2.js} +1 -1
  10. package/dist/{3004.bundle.cbd2e499.js → 3004.bundle.483559ec.js} +4 -4
  11. package/dist/3723.bundle.eab70100.js +808 -0
  12. package/dist/{3771.bundle.1c9e74f3.js → 3771.bundle.6cb07c14.js} +2 -2
  13. package/dist/{4500.bundle.79728db8.js → 4449.bundle.3e4b07e6.js} +1043 -69
  14. package/dist/{4606.bundle.05282205.js → 4606.bundle.a2a1aa34.js} +1 -1
  15. package/dist/{5076.bundle.157252dd.js → 5076.bundle.95c07142.js} +50 -8
  16. package/dist/{5143.bundle.1ddc3eb4.js → 5143.bundle.2ea0b15d.js} +1145 -134
  17. package/dist/{5320.bundle.43308cb4.js → 5320.bundle.335efd86.js} +247 -210
  18. package/dist/{5914.bundle.00f408d2.js → 5914.bundle.f6e9fc4a.js} +37 -9
  19. package/dist/{5989.bundle.6da1ff18.js → 5989.bundle.2999d206.js} +320 -231
  20. package/dist/{213.bundle.6bbe580b.js → 6133.bundle.d4f7403f.js} +3062 -117
  21. package/dist/{3386.bundle.bdaa8014.js → 6289.bundle.a946bfc5.js} +99 -30
  22. package/dist/{8699.bundle.c00d7ae1.js → 6507.bundle.1b793bf6.js} +13 -8
  23. package/dist/{6847.bundle.7fd47a86.js → 6847.bundle.5a087332.js} +27 -4
  24. package/dist/{7526.bundle.1803d311.js → 7526.bundle.ed8b2bf3.js} +6 -2
  25. package/dist/{7604.bundle.2d399cf0.js → 7604.bundle.e703a54d.js} +1 -1
  26. package/dist/{7464.bundle.36e9c349.js → 8037.bundle.8b5f4114.js} +2753 -495
  27. package/dist/{9187.bundle.134a42b2.js → 9187.bundle.2a03db07.js} +6 -6
  28. package/dist/{9481.bundle.65162f9d.js → 9481.bundle.6fe2a588.js} +4 -4
  29. package/dist/{9620.bundle.e098e167.js → 9620.bundle.36e4615d.js} +11 -6
  30. package/dist/{9841.bundle.74186de7.js → 9841.bundle.e74fc41c.js} +2 -2
  31. package/dist/{9886.bundle.5c1ff898.js → 9886.bundle.cabb4a24.js} +2 -2
  32. package/dist/{9948.bundle.29548cec.js → 9948.bundle.b4ff610d.js} +2 -2
  33. package/dist/app-config.js +2 -0
  34. package/dist/{app.bundle.58791784.js → app.bundle.af846c60.js} +83 -45
  35. package/dist/{compute.bundle.09be4c13.js → compute.bundle.19cf1283.js} +10 -10
  36. package/dist/customizations/gpu/high-texture-4096.jsonc +9 -0
  37. package/dist/customizations/gpu/high.jsonc +8 -0
  38. package/dist/customizations/gpu/low-tablet.jsonc +7 -0
  39. package/dist/customizations/gpu/low.jsonc +7 -0
  40. package/dist/customizations/gpu/medium.jsonc +7 -0
  41. package/dist/customizations/index.html +39 -0
  42. package/dist/{histogram-worker.bundle.a8bb873a.js → histogram-worker.bundle.58e60d7c.js} +4 -4
  43. package/dist/index.html +1 -1
  44. package/dist/{interpolation.bundle.1eeebcfe.js → interpolation.bundle.7b3850e6.js} +7 -7
  45. package/dist/{polySeg.bundle.5bc24361.js → polySeg.bundle.157e1e17.js} +11 -11
  46. package/dist/sw.js +1 -1
  47. package/package.json +6 -6
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- (globalThis["rspackChunk_ohif_app"] ||= []).push([[3386], {
2
+ (globalThis["rspackChunk_ohif_app"] ||= []).push([[6289], {
3
3
  66340(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
4
4
 
5
5
  // EXPORTS
@@ -495,7 +495,7 @@ __webpack_require__.d(__webpack_exports__, {
495
495
  /* import */ var react__rspack_import_1 = __webpack_require__(14041);
496
496
  /* import */ var lodash_debounce__rspack_import_2 = __webpack_require__(30072);
497
497
  /* import */ var lodash_debounce__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__rspack_import_2);
498
- /* import */ var _ohif_core_src_utils__rspack_import_3 = __webpack_require__(55374);
498
+ /* import */ var _ohif_core_src_utils__rspack_import_3 = __webpack_require__(59195);
499
499
  /* import */ var _ohif_core__rspack_import_4 = __webpack_require__(24178);
500
500
 
501
501
 
@@ -2152,7 +2152,7 @@ __webpack_require__.d(__webpack_exports__, {
2152
2152
  /* import */ var react__rspack_import_1 = __webpack_require__(14041);
2153
2153
  /* import */ var lodash_debounce__rspack_import_2 = __webpack_require__(30072);
2154
2154
  /* import */ var lodash_debounce__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__rspack_import_2);
2155
- /* import */ var _ohif_core_src_utils__rspack_import_3 = __webpack_require__(55374);
2155
+ /* import */ var _ohif_core_src_utils__rspack_import_3 = __webpack_require__(59195);
2156
2156
  /* import */ var _ohif_core__rspack_import_4 = __webpack_require__(24178);
2157
2157
 
2158
2158
 
@@ -2355,7 +2355,7 @@ __webpack_require__.d(__webpack_exports__, {
2355
2355
 
2356
2356
 
2357
2357
  },
2358
- 9696(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
2358
+ 87407(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
2359
2359
 
2360
2360
  // EXPORTS
2361
2361
  __webpack_require__.d(__webpack_exports__, {
@@ -2577,8 +2577,8 @@ class WindowLevelTool extends dist_esm.WindowLevelTool {
2577
2577
  }
2578
2578
  /* export default */ var tools_WindowLevelTool = (WindowLevelTool);
2579
2579
 
2580
- // EXTERNAL MODULE: ../core/src/utils/index.ts + 36 modules
2581
- var utils = __webpack_require__(55374);
2580
+ // EXTERNAL MODULE: ../core/src/utils/index.ts + 37 modules
2581
+ var utils = __webpack_require__(59195);
2582
2582
  ;// CONCATENATED MODULE: ../../extensions/cornerstone/src/tools/OverlayPlaneModuleProvider.ts
2583
2583
 
2584
2584
  const _cachedOverlayMetadata = new Map(); /**
@@ -6569,6 +6569,54 @@ function imageRenderedListener(evt) {
6569
6569
  }
6570
6570
  }
6571
6571
 
6572
+ ;// CONCATENATED MODULE: ../../extensions/cornerstone/src/utils/initGpuSettingsPreset.ts
6573
+
6574
+ const CUSTOMIZATION_ID = 'cornerstone.gpuSettingsPreset'; /**
6575
+ * Applies the `cornerstone.gpuSettingsPreset` customization, and applies it
6576
+ * again when the global or the mode customization changes.
6577
+ *
6578
+ * - A preset id selects that preset and turns final downsampling on, also in a
6579
+ * config that keeps `lossyDownsampling.final` off, such as `config/default.js`.
6580
+ * - `null` returns to the Cornerstone3D default preset and to
6581
+ * `appConfig.lossyDownsampling.final`.
6582
+ *
6583
+ * A volume viewport reads the preset when it adds its actor, so call this
6584
+ * before a mode opens a viewport. The `bootstrap` and `global` phases of a
6585
+ * `?customization=` module both apply early enough.
6586
+ *
6587
+ * See the "Select the GPU settings preset" section of specificCustomizations.md.
6588
+ */
6589
+ function initGpuSettingsPreset({ customizationService, appConfig }) {
6590
+ const configuredFinal = Boolean(appConfig?.lossyDownsampling?.final);
6591
+ let appliedId = null;
6592
+ const apply = ()=>{
6593
+ const presetId = customizationService.getValue(CUSTOMIZATION_ID) ?? null;
6594
+ if (presetId === appliedId) {
6595
+ return;
6596
+ }
6597
+ if (!presetId) {
6598
+ (0,esm.resetGpuSettingsPreset)();
6599
+ (0,esm.setLossyDownsampling)({
6600
+ final: configuredFinal
6601
+ });
6602
+ appliedId = null;
6603
+ return;
6604
+ }
6605
+ try {
6606
+ (0,esm.setGpuSettingsPreset)(presetId);
6607
+ (0,esm.setLossyDownsampling)({
6608
+ final: true
6609
+ });
6610
+ appliedId = presetId;
6611
+ } catch (error) {
6612
+ console.warn(`${CUSTOMIZATION_ID} states "${presetId}", which is not a preset.`, error);
6613
+ }
6614
+ };
6615
+ apply();
6616
+ customizationService.subscribe(customizationService.EVENTS.GLOBAL_CUSTOMIZATION_MODIFIED, apply);
6617
+ customizationService.subscribe(customizationService.EVENTS.MODE_CUSTOMIZATION_MODIFIED, apply);
6618
+ }
6619
+
6572
6620
  ;// CONCATENATED MODULE: ../../extensions/cornerstone/src/utils/colormaps.js
6573
6621
  const colormaps_colormaps = [
6574
6622
  {
@@ -16090,6 +16138,7 @@ function initializeWebWorkerProgressHandler(uiNotificationService) {
16090
16138
 
16091
16139
 
16092
16140
 
16141
+
16093
16142
 
16094
16143
 
16095
16144
  const { registerColormap } = esm.utilities.colormap; // TODO: Cypress tests are currently grabbing this from the window?
@@ -16109,6 +16158,11 @@ async function init({ servicesManager, commandsManager, extensionManager, appCon
16109
16158
  peerImport: appConfig.peerImport,
16110
16159
  debug: {
16111
16160
  statsOverlay
16161
+ },
16162
+ ...appConfig.lossyDownsampling && {
16163
+ rendering: {
16164
+ lossyDownsampling: appConfig.lossyDownsampling
16165
+ }
16112
16166
  }
16113
16167
  });
16114
16168
  esm.setUseCPURendering(Boolean(appConfig.useCPURendering)); // All native ("next") Generic Viewport settings live under one config object:
@@ -16158,6 +16212,10 @@ async function init({ servicesManager, commandsManager, extensionManager, appCon
16158
16212
  initCornerstoneTools();
16159
16213
  esm.Settings.getRuntimeSettings().set('useCursors', Boolean(appConfig.useCursors));
16160
16214
  const { userAuthenticationService, customizationService, uiModalService, uiNotificationService, cornerstoneViewportService, hangingProtocolService, viewportGridService, segmentationService, measurementService, colorbarService, displaySetService, toolbarService } = servicesManager.services;
16215
+ initGpuSettingsPreset({
16216
+ customizationService,
16217
+ appConfig
16218
+ });
16161
16219
  toolbarService.registerEventForToolbarUpdate(colorbarService, [
16162
16220
  colorbarService.EVENTS.STATE_CHANGED
16163
16221
  ]);
@@ -21838,6 +21896,15 @@ function captureViewportModalCustomization_ViewportDownloadFormNew(t0) {
21838
21896
  };
21839
21897
  }
21840
21898
 
21899
+ ;// CONCATENATED MODULE: ../../extensions/cornerstone/src/customizations/gpuSettingsPresetCustomization.ts
21900
+ /**
21901
+ * The `id` of the Cornerstone3D GPU settings preset that volume viewports fit
21902
+ * their textures to. `null` selects no preset. See `initGpuSettingsPreset` and
21903
+ * the "Select the GPU settings preset" section of specificCustomizations.md.
21904
+ */ /* export default */ var gpuSettingsPresetCustomization = ({
21905
+ 'cornerstone.gpuSettingsPreset': null
21906
+ });
21907
+
21841
21908
  ;// CONCATENATED MODULE: ../../extensions/cornerstone/src/getCustomizationModule.tsx
21842
21909
 
21843
21910
 
@@ -21857,6 +21924,7 @@ function captureViewportModalCustomization_ViewportDownloadFormNew(t0) {
21857
21924
 
21858
21925
 
21859
21926
 
21927
+
21860
21928
  function getCustomizationModule({ commandsManager, servicesManager, extensionManager }) {
21861
21929
  return [
21862
21930
  {
@@ -21885,7 +21953,8 @@ function getCustomizationModule({ commandsManager, servicesManager, extensionMan
21885
21953
  ...miscCustomization,
21886
21954
  ...captureViewportModalCustomization,
21887
21955
  ...viewportDownloadWarningCustomization,
21888
- ...getViewportScrollbarCustomization()
21956
+ ...getViewportScrollbarCustomization(),
21957
+ ...gpuSettingsPresetCustomization
21889
21958
  }
21890
21959
  }
21891
21960
  ];
@@ -23241,7 +23310,7 @@ function generateSegmentationCSVReport(segmentationData, info) {
23241
23310
  // EXTERNAL MODULE: ../../extensions/cornerstone/src/utils/isDisplaySetOverlayable.ts
23242
23311
  var isDisplaySetOverlayable = __webpack_require__(23319);
23243
23312
  ;// CONCATENATED MODULE: ../../extensions/cornerstone/src/utils/autoHydrateViewportTypes.ts
23244
- const CUSTOMIZATION_ID = 'cornerstone.segmentation.autoHydrateViewportTypes'; /**
23313
+ const autoHydrateViewportTypes_CUSTOMIZATION_ID = 'cornerstone.segmentation.autoHydrateViewportTypes'; /**
23245
23314
  * The customization is written in OHIF viewport types (the vocabulary of a
23246
23315
  * hanging protocol's `viewportOptions.viewportType`: 'stack', 'volume',
23247
23316
  * 'volume3d', ...), because that is the vocabulary a site configures in.
@@ -23281,7 +23350,7 @@ function normalizeViewportType(viewportType) {
23281
23350
  * without preventing a user from adding the segmentation there by hand.
23282
23351
  */
23283
23352
  function isAutoHydrateViewportType({ viewportType, customizationService }) {
23284
- const allowedTypes = customizationService?.getCustomization(CUSTOMIZATION_ID);
23353
+ const allowedTypes = customizationService?.getCustomization(autoHydrateViewportTypes_CUSTOMIZATION_ID);
23285
23354
  if (!Array.isArray(allowedTypes)) {
23286
23355
  return true;
23287
23356
  }
@@ -24919,15 +24988,7 @@ function commandsModule({ servicesManager, commandsManager, extensionManager })
24919
24988
  });
24920
24989
  },
24921
24990
  updateVolumeData: ({ volume })=>{
24922
- const { imageData, vtkOpenGLTexture } = volume;
24923
- const numSlices = imageData.getDimensions()[2];
24924
- const slicesToUpdate = [
24925
- ...Array(numSlices).keys()
24926
- ];
24927
- slicesToUpdate.forEach((i)=>{
24928
- vtkOpenGLTexture.setUpdatedFrame(i);
24929
- });
24930
- imageData.modified();
24991
+ volume.modified();
24931
24992
  },
24932
24993
  attachProtocolViewportDataListener: ({ protocol, stageIndex })=>{
24933
24994
  const EVENT = cornerstoneViewportService.EVENTS.VIEWPORT_DATA_CHANGED;
@@ -26178,7 +26239,6 @@ const mpr = {
26178
26239
  editableBy: {},
26179
26240
  numberOfPriorsReferenced: 0,
26180
26241
  protocolMatchingRules: [],
26181
- imageLoadStrategy: 'nth',
26182
26242
  callbacks: {},
26183
26243
  displaySetSelectors: {
26184
26244
  activeDisplaySet: {
@@ -44699,18 +44759,22 @@ const cornerstoneExtension = {
44699
44759
  ]); // Apply the undo/redo history size on mode entry rather than in
44700
44760
  // preRegistration, because the global customizations are applied after
44701
44761
  // the extensions register.
44702
- esm.utilities.HistoryMemo.DefaultHistoryMemo.size = customizationService.getCustomization('cornerstone.maxUndoRedoCacheSize') || 50; // Configure the interleaved/HTJ2K loader
44703
- imageRetrieveMetadataProvider.clear(); // The default volume interleaved options are to interleave the
44704
- // image retrieve, but don't perform progressive loading per image
44705
- // This interleaves images and replicates them for low-resolution depth volume
44706
- // reconstruction, which progressively improves
44707
- imageRetrieveMetadataProvider.add('volume', esm.ProgressiveRetrieveImages.interleavedRetrieveStages); /**
44762
+ esm.utilities.HistoryMemo.DefaultHistoryMemo.size = customizationService.getCustomization('cornerstone.maxUndoRedoCacheSize') || 50;
44763
+ const sourceConfig = extensionManager?.getActiveDataSource?.()?.[0]?.getConfig?.() ?? {}; // Configure the interleaved/HTJ2K loader
44764
+ imageRetrieveMetadataProvider.clear(); // Volumes load every 64th image first and copy it to the empty frames around it, then refine.
44765
+ // The data source `volumeRetrieveOptions` can name another ProgressiveRetrieveImages stage set
44766
+ // (for example 'interleavedRetrieveStages', the 3.13 default) or give a `{ stages }` object.
44767
+ const volumeOptions = sourceConfig.volumeRetrieveOptions ?? 'coarseInterleavedRetrieveStages';
44768
+ const volumeStages = typeof volumeOptions === 'string' ? esm.ProgressiveRetrieveImages[volumeOptions] : volumeOptions;
44769
+ if (!volumeStages?.stages) {
44770
+ console.warn('volumeRetrieveOptions is not a retrieve stage set:', volumeOptions);
44771
+ }
44772
+ imageRetrieveMetadataProvider.add('volume', volumeStages?.stages ? volumeStages : esm.ProgressiveRetrieveImages.coarseInterleavedRetrieveStages); /**
44708
44773
  * Stack retrieve options: read from active data source configuration.
44709
44774
  * Pass an immutability-helper spec (e.g. { $merge: {...} } or { $set: {...} }) in
44710
44775
  * stackRetrieveOptions to customize. Plain object is treated as $merge for backward compat.
44711
44776
  * Set streaming: false for uncompressed DICOM that requires full file before decode.
44712
44777
  */
44713
- const sourceConfig = extensionManager?.getActiveDataSource?.()?.[0]?.getConfig?.() ?? {};
44714
44778
  const config = sourceConfig.stackRetrieveOptions ?? {};
44715
44779
  const stackOptions = immutability_helper_default()(DEFAULT_STACK_RETRIEVE_OPTIONS, toUpdateSpec(config));
44716
44780
  imageRetrieveMetadataProvider.add('stack', stackOptions);
@@ -45056,6 +45120,11 @@ class NextViewportAdapter {
45056
45120
  return mode === 'volume' || mode === 'volume3d';
45057
45121
  }
45058
45122
  isInAcquisitionPlane() {
45123
+ const reference = this.viewport.getViewReference?.();
45124
+ const volume = reference?.volumeId ? esm.cache.getVolume(reference.volumeId) : undefined;
45125
+ if (volume && reference.viewPlaneNormal) {
45126
+ return esm.utilities.isAcquisitionPlaneNormal(volume, reference.viewPlaneNormal);
45127
+ } // orientation defaults to ACQUISITION when unset on the native view state.
45059
45128
  const orientation = this.viewport.getViewState?.()?.orientation;
45060
45129
  return orientation === esm.Enums.OrientationAxis.ACQUISITION || orientation == null;
45061
45130
  }
@@ -55281,8 +55350,8 @@ const reuseCachedLayout = (state, hangingProtocolService)=>{
55281
55350
  };
55282
55351
  /* export default */ var reuseCachedLayouts = (reuseCachedLayout);
55283
55352
 
55284
- // EXTERNAL MODULE: ../../extensions/cornerstone/src/index.tsx + 215 modules
55285
- var cornerstone_src = __webpack_require__(9696);
55353
+ // EXTERNAL MODULE: ../../extensions/cornerstone/src/index.tsx + 217 modules
55354
+ var cornerstone_src = __webpack_require__(87407);
55286
55355
  ;// CONCATENATED MODULE: ../../extensions/default/src/utils/layerConfigurationUtils.ts
55287
55356
 
55288
55357
  const DERIVED_OVERLAY_MODALITIES = [
@@ -59196,8 +59265,8 @@ function AboutModalDefault() {
59196
59265
  version = $[3];
59197
59266
  }
59198
59267
  const browser = `${t0}${t1} ${version}`;
59199
- const versionNumber = "3.14.0-beta.72";
59200
- const commitHash = "3cc32b56739cb9b8c7ffd107a90a12db409428be";
59268
+ const versionNumber = "3.14.0-beta.74";
59269
+ const commitHash = "7127a6087769c11968d8e2c13fd818ebdad8b45b";
59201
59270
  let t2;
59202
59271
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
59203
59272
  t2 = versionNumber.split("-");
@@ -1,4 +1,4 @@
1
- (globalThis["rspackChunk_ohif_app"] ||= []).push([[8699], {
1
+ (globalThis["rspackChunk_ohif_app"] ||= []).push([[6507], {
2
2
  21094(module) {
3
3
  "use strict";
4
4
 
@@ -392,7 +392,7 @@ function isSlowBuffer (obj) {
392
392
 
393
393
 
394
394
  },
395
- 3990(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
395
+ 24694(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
396
396
  "use strict";
397
397
 
398
398
  // EXPORTS
@@ -551,11 +551,8 @@ function scoordToWorld(_ref, scoord) {
551
551
 
552
552
  // EXTERNAL MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/index.js + 29 modules
553
553
  var dist_esm = __webpack_require__(86049);
554
- ;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/adapters/dist/esm/version.js
555
- const version = '5.16.0';
556
-
557
-
558
-
554
+ // EXTERNAL MODULE: ../../node_modules/@cornerstonejs/adapters/dist/esm/version.js
555
+ var version = __webpack_require__(69544);
559
556
  ;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/adapters/dist/esm/utilities/getWriterHeader.js
560
557
 
561
558
 
@@ -563,7 +560,7 @@ const version = '5.16.0';
563
560
  const DEFAULT_WRITER_HEADER = {
564
561
  Manufacturer: 'CornerstoneJS',
565
562
  ManufacturerModelName: '@cornerstonejs/adapters',
566
- SoftwareVersions: (/* inlined export .version */"5.16.0")
563
+ SoftwareVersions: (/* inlined export .version */"5.17.1")
567
564
  };
568
565
  const valueOr = (value, fallback) => (0,dist_esm/* .hasNoValue */.Tn)(value) ? fallback : value;
569
566
  function getWriterHeader() {
@@ -9313,6 +9310,14 @@ const graphicTypeEquals = graphicType => {
9313
9310
 
9314
9311
 
9315
9312
 
9313
+ },
9314
+ 69544() {
9315
+ "use strict";
9316
+ const version = '5.17.1';
9317
+
9318
+
9319
+
9320
+
9316
9321
  },
9317
9322
 
9318
9323
  }]);
@@ -985,6 +985,7 @@ __webpack_require__.d(__webpack_exports__, {
985
985
  up: () => (/* binding */ getCanUseNorm16Texture),
986
986
  D0: () => (/* binding */ getConfiguration),
987
987
  cz: () => (/* binding */ getEffectiveRenderBackend),
988
+ GR: () => (/* binding */ getLossyDownsampling),
988
989
  LH: () => (/* binding */ getShouldUseCPURendering),
989
990
  xu: () => (/* binding */ getUseGenericViewport),
990
991
  G_: () => (/* binding */ getWebWorkerManager),
@@ -992,7 +993,7 @@ __webpack_require__.d(__webpack_exports__, {
992
993
  a: () => (/* binding */ peerImport)
993
994
  });
994
995
 
995
- // UNUSED EXPORTS: getRenderBackend, init, resetInitialization, resetUseCPURendering, resolveAutoRenderBackend, setConfiguration, setPreferSizeOverAccuracy, setRenderBackend, setUseCPURendering
996
+ // UNUSED EXPORTS: getRenderBackend, init, resetInitialization, resetUseCPURendering, resolveAutoRenderBackend, setConfiguration, setLossyDownsampling, setPreferSizeOverAccuracy, setRenderBackend, setUseCPURendering
996
997
 
997
998
  // EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/getRenderingEngine.js
998
999
  var getRenderingEngine = __webpack_require__(2448);
@@ -1178,6 +1179,7 @@ let csRenderInitialized = false;
1178
1179
  const log = logger.coreLog.getLogger('init');
1179
1180
  const defaultConfig = {
1180
1181
  isMobile: false,
1182
+ dangerouslyDisableFidelityIndicator: false,
1181
1183
  rendering: {
1182
1184
  useCPURendering: false,
1183
1185
  preferSizeOverAccuracy: false,
@@ -1196,12 +1198,18 @@ const defaultConfig = {
1196
1198
  volumeRendering: {
1197
1199
  sampleDistanceMultiplier: 1,
1198
1200
  },
1201
+ lossyDownsampling: {
1202
+ final: false,
1203
+ interactive: true,
1204
+ interleavedLoading: true,
1205
+ },
1199
1206
  },
1200
1207
  segmentation: {
1201
1208
  labelmapVoxelRepresentation: enums.VoxelManagerEnum.Volume,
1202
1209
  },
1203
1210
  debug: {
1204
1211
  statsOverlay: false,
1212
+ fidelityIndicatorDebug: false,
1205
1213
  },
1206
1214
  peerImport: (moduleId) => null,
1207
1215
  };
@@ -1321,7 +1329,7 @@ function setPreferSizeOverAccuracy(status) {
1321
1329
  }
1322
1330
  function canRenderFloatTextures() {
1323
1331
  const capabilities = (0,renderingCapabilities/* .getRenderingCapabilities */.BV)();
1324
- if (capabilities.webgl2) {
1332
+ if (capabilities.webgl) {
1325
1333
  return capabilities.floatLinear;
1326
1334
  }
1327
1335
  return !isIOS();
@@ -1376,6 +1384,20 @@ function getWebWorkerManager() {
1376
1384
  }
1377
1385
  return init_webWorkerManager;
1378
1386
  }
1387
+ function getLossyDownsampling() {
1388
+ return {
1389
+ ...defaultConfig.rendering
1390
+ .lossyDownsampling,
1391
+ ...config.rendering?.lossyDownsampling,
1392
+ };
1393
+ }
1394
+ function setLossyDownsampling(change) {
1395
+ config.rendering = {
1396
+ ...config.rendering,
1397
+ lossyDownsampling: { ...getLossyDownsampling(), ...change },
1398
+ };
1399
+ triggerEvent(eventTarget, Events.VOLUME_TEXTURE_LIMITS_CHANGED);
1400
+ }
1379
1401
  async function peerImport(moduleId) {
1380
1402
  return config.peerImport(moduleId);
1381
1403
  }
@@ -4899,11 +4921,12 @@ function addSegmentations(segmentationInputArray, suppressEvents) {
4899
4921
 
4900
4922
 
4901
4923
 
4902
- function triggerSegmentationDataModified(segmentationId, modifiedSlicesToUse, segmentIndex) {
4924
+ function triggerSegmentationDataModified(segmentationId, modifiedSlicesToUse, segmentIndex, { voxelsUnchanged } = {}) {
4903
4925
  const eventDetail = {
4904
4926
  segmentationId,
4905
4927
  modifiedSlicesToUse,
4906
4928
  segmentIndex,
4929
+ ...(voxelsUnchanged ? { voxelsUnchanged } : {}),
4907
4930
  };
4908
4931
  (0,_utilities_segmentation_utilities_js__rspack_import_2/* .setSegmentationDirty */.HM)(segmentationId);
4909
4932
  (0,_cornerstonejs_core__rspack_import_0.triggerEvent)(_cornerstonejs_core__rspack_import_0.eventTarget, _enums_index_js__rspack_import_1.Events.SEGMENTATION_DATA_MODIFIED, eventDetail);
@@ -7568,7 +7591,7 @@ RectangleROIThresholdTool.toolName = 'RectangleROIThreshold';
7568
7591
 
7569
7592
 
7570
7593
 
7571
- function getStrategyDataForVolumeViewport({ operationData }) {
7594
+ function getStrategyDataForVolumeViewport({ operationData, }) {
7572
7595
  const { volumeId } = operationData;
7573
7596
  if (!volumeId) {
7574
7597
  const event = new CustomEvent(_cornerstonejs_core__rspack_import_0.Enums.Events.ERROR_EVENT, {
@@ -964,6 +964,7 @@ const DEVICE_OBSERVER_UID_uid = '2.25.285241207697168520771311899641885187923';
964
964
 
965
965
  ;// CONCATENATED MODULE: ../../extensions/dicom-microscopy/src/utils/constructSR.ts
966
966
 
967
+
967
968
  /**
968
969
  *
969
970
  * @param {*} metadata - Microscopy Image instance metadata
@@ -1085,6 +1086,7 @@ function constructSR(metadata, { SeriesDescription, SeriesNumber }, annotations)
1085
1086
  }),
1086
1087
  imagingMeasurements
1087
1088
  });
1089
+ const writerHeader = core_src/* .utils.getOhifWriterHeader */.Wp.getOhifWriterHeader('dcmjs', 'dcmjs', "0.52.0");
1088
1090
  const dataset = new dcmjs_es/* ["default"].sr.documents.Comprehensive3DSR */.Ay.sr.documents.Comprehensive3DSR({
1089
1091
  content: measurementReport[0],
1090
1092
  evidence: [
@@ -1095,8 +1097,10 @@ function constructSR(metadata, { SeriesDescription, SeriesNumber }, annotations)
1095
1097
  seriesDescription: SeriesDescription || 'Whole slide imaging structured report',
1096
1098
  sopInstanceUID: dcmjs_es/* ["default"].data.DicomMetaDictionary.uid */.Ay.data.DicomMetaDictionary.uid(),
1097
1099
  instanceNumber: 1,
1098
- manufacturer: 'dcmjs-org'
1099
- });
1100
+ manufacturer: writerHeader.Manufacturer
1101
+ }); // The constructor does not take the model name or the software versions.
1102
+ dataset.ManufacturerModelName = writerHeader.ManufacturerModelName;
1103
+ dataset.SoftwareVersions = writerHeader.SoftwareVersions;
1100
1104
  dataset.SpecificCharacterSet = 'ISO_IR 192';
1101
1105
  const fileMetaInformationVersionArray = new Uint8Array(2);
1102
1106
  fileMetaInformationVersionArray[1] = 1;
@@ -6,7 +6,7 @@ __webpack_require__.r(__webpack_exports__);
6
6
  /* import */ var react_compiler_runtime__rspack_import_1 = __webpack_require__(54005);
7
7
  /* import */ var react__rspack_import_2 = __webpack_require__(14041);
8
8
  /* import */ var _ohif_ui_next__rspack_import_3 = __webpack_require__(2727);
9
- /* import */ var _ohif_extension_cornerstone__rspack_import_4 = __webpack_require__(9696);
9
+ /* import */ var _ohif_extension_cornerstone__rspack_import_4 = __webpack_require__(87407);
10
10
  /* import */ var _cornerstonejs_tools__rspack_import_5 = __webpack_require__(17819);
11
11
  /* import */ var _getContextModule__rspack_import_6 = __webpack_require__(71830);
12
12
  /* import */ var _cornerstonejs_core__rspack_import_7 = __webpack_require__(62721);