@ohif/app 3.14.0-beta.97 → 3.14.0-beta.99

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 (62) hide show
  1. package/dist/{1645.bundle.a98b9ca6.js → 1645.bundle.1a466b16.js} +600 -600
  2. package/dist/{1788.bundle.3f1349d2.js → 1788.bundle.962951f9.js} +26 -26
  3. package/dist/{1793.bundle.27458a55.js → 1793.bundle.30f89e46.js} +5 -3
  4. package/dist/{1862.bundle.79bfe469.js → 1862.bundle.3ae388c3.js} +2 -2
  5. package/dist/204.bundle.bc44c201.js +101 -0
  6. package/dist/204.bundle.css +52 -0
  7. package/dist/{2748.bundle.eaa94e2e.js → 2103.bundle.1cf348e8.js} +1 -1771
  8. package/dist/{2478.bundle.fc6ab30b.js → 2478.bundle.68ff1b2d.js} +2 -2
  9. package/dist/{2717.bundle.d5f58443.js → 2717.bundle.4318f1ee.js} +45 -43
  10. package/dist/{5989.bundle.f484884a.js → 287.bundle.ee60c370.js} +4570 -832
  11. package/dist/{2894.bundle.d612efb2.js → 2894.bundle.30c0af5b.js} +20 -14
  12. package/dist/{2991.bundle.f94892fb.js → 2991.bundle.77642eee.js} +101 -97
  13. package/dist/{3004.bundle.51919fdc.js → 3004.bundle.5568149a.js} +39 -38
  14. package/dist/{3255.bundle.13e205ac.js → 3255.bundle.3272671f.js} +29 -27
  15. package/dist/{3366.bundle.62baeeec.js → 3366.bundle.d9e78e25.js} +57 -53
  16. package/dist/{3468.bundle.f5dc5e44.js → 3468.bundle.666f2441.js} +37 -27
  17. package/dist/{347.bundle.397bb252.js → 347.bundle.1323658e.js} +44 -44
  18. package/dist/{3622.bundle.f4cf2d16.js → 3622.bundle.edb42b96.js} +56 -54
  19. package/dist/{3723.bundle.eab70100.js → 3723.bundle.43ff1971.js} +1 -1
  20. package/dist/{3771.bundle.aba09bd7.js → 3771.bundle.a5754f97.js} +8 -8
  21. package/dist/{4449.bundle.aaa4ab92.js → 4487.bundle.fa0375a4.js} +853 -95
  22. package/dist/{4606.bundle.a3485206.js → 4606.bundle.6c297e2a.js} +9 -7
  23. package/dist/{4998.bundle.3aedb48d.js → 4998.bundle.25b8cbfe.js} +5 -3
  24. package/dist/{5076.bundle.95c07142.js → 5076.bundle.2a14756f.js} +66 -66
  25. package/dist/{5143.bundle.04f54c00.js → 5143.bundle.53156bb0.js} +358 -226
  26. package/dist/{5154.bundle.2f460017.js → 5154.bundle.ccd02dd7.js} +5 -3
  27. package/dist/{5320.bundle.9b05cebb.js → 5320.bundle.c17eb4a7.js} +678 -546
  28. package/dist/{6212.bundle.e505e123.js → 6212.bundle.c4856be7.js} +48 -46
  29. package/dist/{6253.bundle.9b473339.js → 6253.bundle.596ce463.js} +1225 -1145
  30. package/dist/{1153.bundle.51d39e80.js → 6314.bundle.5aadfe48.js} +199 -420
  31. package/dist/{641.bundle.4627a8e1.js → 641.bundle.8e45751e.js} +89 -89
  32. package/dist/{6481.bundle.d2fca485.js → 6481.bundle.85093e70.js} +29 -23
  33. package/dist/{6507.bundle.d52f5e81.js → 6507.bundle.bbcdd01e.js} +76 -76
  34. package/dist/{6722.bundle.d09a8aad.js → 6722.bundle.3e9a4ef6.js} +4 -4
  35. package/dist/{6956.bundle.c82fd790.js → 6956.bundle.dc0e8660.js} +33 -33
  36. package/dist/{7526.bundle.0685dfeb.js → 7526.bundle.3460c3ca.js} +55 -53
  37. package/dist/{7604.bundle.9eb317c8.js → 7604.bundle.f1eeded4.js} +2 -2
  38. package/dist/{8312.bundle.2cb75b58.js → 8312.bundle.d67b6f4e.js} +652 -687
  39. package/dist/{6847.bundle.b2adb444.js → 8729.bundle.e17fe9b2.js} +87 -845
  40. package/dist/{8788.bundle.4bb4c65b.js → 8788.bundle.83ddf642.js} +21 -20
  41. package/dist/{8868.bundle.4c357767.js → 8868.bundle.8f3653b3.js} +31 -31
  42. package/dist/{8923.bundle.9aca06c4.js → 8923.bundle.8b682e96.js} +148 -148
  43. package/dist/{899.bundle.9a033d16.js → 899.bundle.4e1aee7f.js} +73 -203
  44. package/dist/{9187.bundle.8f72b4fe.js → 9187.bundle.407afa07.js} +112 -110
  45. package/dist/9385.bundle.fb0bbf4a.js +1888 -0
  46. package/dist/{9481.bundle.ccb81f53.js → 9481.bundle.d045ae3a.js} +8 -6
  47. package/dist/{9517.bundle.1ae74db3.js → 9517.bundle.3e2896ef.js} +31 -17
  48. package/dist/{9620.bundle.d1dc0be1.js → 9620.bundle.b4cc392c.js} +63 -61
  49. package/dist/{9841.bundle.0f40f02b.js → 9841.bundle.4f2c401a.js} +93 -91
  50. package/dist/{9886.bundle.cabb4a24.js → 9886.bundle.b00d5d78.js} +4 -4
  51. package/dist/{8037.bundle.30a187f7.js → 9889.bundle.bf312047.js} +7743 -1098
  52. package/dist/{9948.bundle.1172ebca.js → 9948.bundle.fecf81f8.js} +5 -5
  53. package/dist/{app.bundle.12bfd0b7.js → app.bundle.bb359653.js} +1953 -1245
  54. package/dist/{compute.bundle.0ed1fe87.js → compute.bundle.9267d449.js} +13 -12
  55. package/dist/{histogram-worker.bundle.58e60d7c.js → histogram-worker.bundle.29bcdbf6.js} +6 -5
  56. package/dist/index.html +1 -1
  57. package/dist/{interpolation.bundle.5a53d112.js → interpolation.bundle.ee9998a4.js} +8 -7
  58. package/dist/{lib-router.bundle.a5ac870a.js → lib-router.bundle.2a887bc7.js} +334 -201
  59. package/dist/{polySeg.bundle.b4089601.js → polySeg.bundle.a55f8eee.js} +12 -12
  60. package/dist/sw.js +11 -1
  61. package/package.json +14 -19
  62. package/dist/1566.bundle.d58db206.js +0 -3610
@@ -543,8 +543,8 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool_js__rspack
543
543
  canvasPoint[0],
544
544
  canvasPoint[1] + 1,
545
545
  ]);
546
- const deltaInX = gl_matrix__rspack_import_1/* .vec3.distance */.eR.Io(originalWorldPoint, deltaXPoint);
547
- const deltaInY = gl_matrix__rspack_import_1/* .vec3.distance */.eR.Io(originalWorldPoint, deltaYPoint);
546
+ const deltaInX = gl_matrix__rspack_import_1.vec3.distance(originalWorldPoint, deltaXPoint);
547
+ const deltaInY = gl_matrix__rspack_import_1.vec3.distance(originalWorldPoint, deltaYPoint);
548
548
  const statsArgs = {
549
549
  targetId,
550
550
  viewport,
@@ -635,8 +635,8 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool_js__rspack
635
635
  !annotationViewPlaneNormal &&
636
636
  td.metadata.FrameOfReferenceUID) {
637
637
  for (const point of td.data.contour.polyline) {
638
- const vector = gl_matrix__rspack_import_1/* .vec3.sub */.eR.jb(gl_matrix__rspack_import_1/* .vec3.create */.eR.vt(), point, camera.focalPoint);
639
- const dotProduct = gl_matrix__rspack_import_1/* .vec3.dot */.eR.Om(vector, camera.viewPlaneNormal);
638
+ const vector = gl_matrix__rspack_import_1.vec3.sub(gl_matrix__rspack_import_1.vec3.create(), point, camera.focalPoint);
639
+ const dotProduct = gl_matrix__rspack_import_1.vec3.dot(vector, camera.viewPlaneNormal);
640
640
  if (!_cornerstonejs_core__rspack_import_0.utilities.isEqual(dotProduct, 0)) {
641
641
  return false;
642
642
  }
@@ -648,13 +648,13 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool_js__rspack
648
648
  if (!annotationViewPlaneNormal) {
649
649
  const { referencedImageId } = td.metadata;
650
650
  const { imageOrientationPatient } = _cornerstonejs_core__rspack_import_0.metaData.get('imagePlaneModule', referencedImageId);
651
- const rowCosineVec = gl_matrix__rspack_import_1/* .vec3.fromValues */.eR.fA(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
652
- const colCosineVec = gl_matrix__rspack_import_1/* .vec3.fromValues */.eR.fA(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
653
- annotationViewPlaneNormal = gl_matrix__rspack_import_1/* .vec3.create */.eR.vt();
654
- gl_matrix__rspack_import_1/* .vec3.cross */.eR.$A(annotationViewPlaneNormal, rowCosineVec, colCosineVec);
651
+ const rowCosineVec = gl_matrix__rspack_import_1.vec3.fromValues(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
652
+ const colCosineVec = gl_matrix__rspack_import_1.vec3.fromValues(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
653
+ annotationViewPlaneNormal = gl_matrix__rspack_import_1.vec3.create();
654
+ gl_matrix__rspack_import_1.vec3.cross(annotationViewPlaneNormal, rowCosineVec, colCosineVec);
655
655
  td.metadata.viewPlaneNormal = annotationViewPlaneNormal;
656
656
  }
657
- const isParallel = Math.abs(gl_matrix__rspack_import_1/* .vec3.dot */.eR.Om(viewPlaneNormal, annotationViewPlaneNormal)) >
657
+ const isParallel = Math.abs(gl_matrix__rspack_import_1.vec3.dot(viewPlaneNormal, annotationViewPlaneNormal)) >
658
658
  PARALLEL_THRESHOLD;
659
659
  return annotationViewPlaneNormal && isParallel;
660
660
  });
@@ -670,9 +670,9 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool_js__rspack
670
670
  if (!annotation.isVisible) {
671
671
  continue;
672
672
  }
673
- const dir = gl_matrix__rspack_import_1/* .vec3.create */.eR.vt();
674
- gl_matrix__rspack_import_1/* .vec3.sub */.eR.jb(dir, focalPoint, point);
675
- const dot = gl_matrix__rspack_import_1/* .vec3.dot */.eR.Om(dir, viewPlaneNormal);
673
+ const dir = gl_matrix__rspack_import_1.vec3.create();
674
+ gl_matrix__rspack_import_1.vec3.sub(dir, focalPoint, point);
675
+ const dot = gl_matrix__rspack_import_1.vec3.dot(dir, viewPlaneNormal);
676
676
  if (Math.abs(dot) < halfSpacingInNormalDirection) {
677
677
  annotationsWithinSlice.push(annotation);
678
678
  }
@@ -1394,9 +1394,9 @@ class RectangleROITool extends _base_index_js__rspack_import_0/* .AnnotationTool
1394
1394
  voxelManager: voxelManager,
1395
1395
  points: worldHandles,
1396
1396
  createShape: ({ volume, planePoint, viewPlaneNormal }) => {
1397
- const majorAxis = gl_matrix__rspack_import_2/* .vec3.sub */.eR.jb(gl_matrix__rspack_import_2/* .vec3.create */.eR.vt(), worldHandles[1], worldHandles[0]);
1398
- const majorHalfLength = gl_matrix__rspack_import_2/* .vec3.distance */.eR.Io(worldHandles[0], worldHandles[1]) / 2;
1399
- const minorHalfLength = gl_matrix__rspack_import_2/* .vec3.distance */.eR.Io(worldHandles[0], worldHandles[2]) / 2;
1397
+ const majorAxis = gl_matrix__rspack_import_2.vec3.sub(gl_matrix__rspack_import_2.vec3.create(), worldHandles[1], worldHandles[0]);
1398
+ const majorHalfLength = gl_matrix__rspack_import_2.vec3.distance(worldHandles[0], worldHandles[1]) / 2;
1399
+ const minorHalfLength = gl_matrix__rspack_import_2.vec3.distance(worldHandles[0], worldHandles[2]) / 2;
1400
1400
  if (!(0,_utilities_areaAnnotationShapeUtils_js__rspack_import_24/* .hasValidAreaAnnotationDimensions */.k)(majorHalfLength, minorHalfLength)) {
1401
1401
  return null;
1402
1402
  }
@@ -1404,7 +1404,7 @@ class RectangleROITool extends _base_index_js__rspack_import_0/* .AnnotationTool
1404
1404
  volume,
1405
1405
  planePoint,
1406
1406
  viewPlaneNormal,
1407
- centerWorld: gl_matrix__rspack_import_2/* .vec3.lerp */.eR.Cc(gl_matrix__rspack_import_2/* .vec3.create */.eR.vt(), worldHandles[0], worldHandles[3], 0.5),
1407
+ centerWorld: gl_matrix__rspack_import_2.vec3.lerp(gl_matrix__rspack_import_2.vec3.create(), worldHandles[0], worldHandles[3], 0.5),
1408
1408
  majorAxis,
1409
1409
  majorHalfLength,
1410
1410
  minorHalfLength,
@@ -1623,7 +1623,7 @@ class AnnotationTool extends _AnnotationDisplayTool_js__rspack_import_2/* ["defa
1623
1623
  const annotationCanvasCoordinate = isCanvasAnnotation
1624
1624
  ? point.slice(0, 2)
1625
1625
  : viewport.worldToCanvas(point);
1626
- const near = gl_matrix__rspack_import_1/* .vec2.distance */.Zc.Io(canvasCoords, annotationCanvasCoordinate) < proximity;
1626
+ const near = gl_matrix__rspack_import_1.vec2.distance(canvasCoords, annotationCanvasCoordinate) < proximity;
1627
1627
  if (near === true) {
1628
1628
  data.handles.activeHandleIndex = i;
1629
1629
  return point;
@@ -3131,13 +3131,13 @@ function filterAnnotationsWithinSamePlane(annotations, camera) {
3131
3131
  if (!annotationViewPlaneNormal) {
3132
3132
  const { referencedImageId } = td.metadata;
3133
3133
  const { imageOrientationPatient } = _cornerstonejs_core__rspack_import_1.metaData.get('imagePlaneModule', referencedImageId);
3134
- const rowCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
3135
- const colCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
3136
- annotationViewPlaneNormal = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
3137
- gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(annotationViewPlaneNormal, rowCosineVec, colCosineVec);
3134
+ const rowCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
3135
+ const colCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
3136
+ annotationViewPlaneNormal = gl_matrix__rspack_import_0.vec3.create();
3137
+ gl_matrix__rspack_import_0.vec3.cross(annotationViewPlaneNormal, rowCosineVec, colCosineVec);
3138
3138
  td.metadata.viewPlaneNormal = annotationViewPlaneNormal;
3139
3139
  }
3140
- const isParallel = Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(viewPlaneNormal, annotationViewPlaneNormal)) >
3140
+ const isParallel = Math.abs(gl_matrix__rspack_import_0.vec3.dot(viewPlaneNormal, annotationViewPlaneNormal)) >
3141
3141
  PARALLEL_THRESHOLD;
3142
3142
  return annotationViewPlaneNormal && isParallel;
3143
3143
  });
@@ -3287,15 +3287,15 @@ function sampleAreaAnnotationVoxels({ annotation, image, voxelManager, points, b
3287
3287
  }
3288
3288
  function resolveAnnotationNormal(metadata) {
3289
3289
  const recorded = metadata?.viewPlaneNormal;
3290
- if (recorded && gl_matrix__rspack_import_0/* .vec3.squaredLength */.eR.m3(recorded) > 0) {
3290
+ if (recorded && gl_matrix__rspack_import_0.vec3.squaredLength(recorded) > 0) {
3291
3291
  return asUnitNormal(recorded);
3292
3292
  }
3293
3293
  const { inPlaneVector1, inPlaneVector2 } = metadata?.planeRestriction ?? {};
3294
3294
  if (!inPlaneVector1 || !inPlaneVector2) {
3295
3295
  return undefined;
3296
3296
  }
3297
- const normal = gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), inPlaneVector1, inPlaneVector2);
3298
- return gl_matrix__rspack_import_0/* .vec3.squaredLength */.eR.m3(normal) > 0
3297
+ const normal = gl_matrix__rspack_import_0.vec3.cross(gl_matrix__rspack_import_0.vec3.create(), inPlaneVector1, inPlaneVector2);
3298
+ return gl_matrix__rspack_import_0.vec3.squaredLength(normal) > 0
3299
3299
  ? asUnitNormal(normal)
3300
3300
  : undefined;
3301
3301
  }
@@ -3306,7 +3306,7 @@ function getShapeIndexBounds(points, volume, imageData, viewPlaneNormal, halfWid
3306
3306
  return [0, 1, 2].map((axis) => {
3307
3307
  const axisVector = direction.slice(axis * 3, axis * 3 + 3);
3308
3308
  const dilation = Math.ceil((margin +
3309
- halfWidth * Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(axisVector, viewPlaneNormal))) /
3309
+ halfWidth * Math.abs(gl_matrix__rspack_import_0.vec3.dot(axisVector, viewPlaneNormal))) /
3310
3310
  spacing[axis]) + 1;
3311
3311
  return [
3312
3312
  Math.max(0, Math.floor(boundingBox[axis][0]) - dilation),
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  (globalThis["rspackChunk_ohif_app"] ||= []).push([[1793], {
3
3
  30020(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
4
+ // ESM COMPAT FLAG
5
+ __webpack_require__.r(__webpack_exports__);
4
6
 
5
7
  // EXPORTS
6
8
  __webpack_require__.d(__webpack_exports__, {
@@ -561,10 +563,10 @@ function getPanelModule({ commandsManager, servicesManager, extensionManager })
561
563
  extensionManager
562
564
  };
563
565
  const wrappedPanelMeasurementSeries = ()=>{
564
- return /*#__PURE__*/ (0,jsx_runtime.jsx)(src/* .PanelMeasurement */.re, {
566
+ return /*#__PURE__*/ (0,jsx_runtime.jsx)(src.PanelMeasurement, {
565
567
  ...childProps,
566
- children: /*#__PURE__*/ (0,jsx_runtime.jsx)(src/* .StudyMeasurements */.B9, {
567
- children: /*#__PURE__*/ (0,jsx_runtime.jsx)(src/* .SeriesMeasurements */.V, {})
568
+ children: /*#__PURE__*/ (0,jsx_runtime.jsx)(src.StudyMeasurements, {
569
+ children: /*#__PURE__*/ (0,jsx_runtime.jsx)(src.SeriesMeasurements, {})
568
570
  })
569
571
  });
570
572
  };
@@ -30,7 +30,7 @@ function OHIFCornerstonePMAPViewport(props) {
30
30
  }
31
31
  const LoadingIndicatorTotalPercent = t0;
32
32
  const pmapDisplaySet = displaySets[0];
33
- const [viewportGrid, viewportGridService] = (0,_ohif_ui_next__rspack_import_3/* .useViewportGrid */.ihW)();
33
+ const [viewportGrid, viewportGridService] = (0,_ohif_ui_next__rspack_import_3.useViewportGrid)();
34
34
  const { viewports, activeViewportId } = viewportGrid;
35
35
  const referencedDisplaySet = pmapDisplaySet.getReferenceDisplaySet();
36
36
  const [pmapIsLoading, setPmapIsLoading] = (0,react__rspack_import_2.useState)(!pmapDisplaySet.isLoaded);
@@ -102,7 +102,7 @@ function OHIFCornerstonePMAPViewport(props) {
102
102
  type: "warning",
103
103
  message: "The values are multiplied by 100 in the viewport for better visibility"
104
104
  });
105
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_extension_cornerstone__rspack_import_4/* .OHIFCornerstoneViewport */.R9, {
105
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_extension_cornerstone__rspack_import_4.OHIFCornerstoneViewport, {
106
106
  ...props,
107
107
  displaySets: [
108
108
  referencedDisplaySet,
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ (globalThis["rspackChunk_ohif_app"] ||= []).push([[204], {
3
+ 36975(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
4
+ var react__rspack_import_0_namespace_cache;
5
+ var react_dom__rspack_import_1_namespace_cache;
6
+ var react_jsx_runtime__rspack_import_2_namespace_cache;
7
+ __webpack_require__.r(__webpack_exports__);
8
+ /* import */ var react__rspack_import_0 = __webpack_require__(14041);
9
+ /* import */ var react_dom__rspack_import_1 = __webpack_require__(43144);
10
+ /* import */ var react_jsx_runtime__rspack_import_2 = __webpack_require__(31085);
11
+ /* import */ var _ohif_core__rspack_import_3 = __webpack_require__(34142);
12
+ /* import */ var _ohif_ui_next__rspack_import_4 = __webpack_require__(2727);
13
+ /* import */ var _ohif_i18n__rspack_import_5 = __webpack_require__(65778);
14
+ /* import */ var _ohif_extension_default__rspack_import_6 = __webpack_require__(55422);
15
+ /* import */ var _ohif_extension_cornerstone__rspack_import_7 = __webpack_require__(87407);
16
+ /* import */ var _cornerstonejs_core__rspack_import_8 = __webpack_require__(62721);
17
+ /* import */ var _cornerstonejs_tools__rspack_import_9 = __webpack_require__(17819);
18
+ /* import */ var dcmjs__rspack_import_10 = __webpack_require__(85631);
19
+ /* import */ var gl_matrix__rspack_import_11 = __webpack_require__(50341);
20
+ /* import */ var react_router__rspack_import_12 = __webpack_require__(18690);
21
+ /* import */ var react_router_dom__rspack_import_13 = __webpack_require__(73657);
22
+ /* import */ var i18next__rspack_import_14 = __webpack_require__(96392);
23
+ /* import */ var react_i18next__rspack_import_15 = __webpack_require__(35261);
24
+ // platform/app/src/runtimeShared.ts
25
+ // v1 shared-dependency contract for runtime-loaded (UMD) plugins: the host
26
+ // assigns its singleton copies to window, keyed by FULL package name. Plugin
27
+ // bundles list these as externals (.rspack/pluginExternals.js) and resolve
28
+ // them from these globals — e.g. @ohif/ui-next's own UMD build externalizes
29
+ // '@ohif/ui-next', which the global assigned here satisfies. MUST stay in
30
+ // sync with pluginExternals.hostSharedPackages — enforced by
31
+ // runtimeShared.test.js.
32
+ //
33
+ // Namespace imports are deliberate: consumers get both named exports and the
34
+ // bundler's __esModule/default interop, so a plugin's `import React from
35
+ // 'react'` resolves window['react'].default and `import { useState }`
36
+ // resolves the named export.
37
+ //
38
+ // Freeze note: every package listed here (and its public API surface) is part
39
+ // of the plugin-facing contract from the moment it ships. Runtime plugins
40
+ // bind to these globals without being rebuilt against the host, so removing
41
+ // an entry, renaming exports, or making breaking API changes in a shared
42
+ // package breaks already-published plugins. Treat additions as permanent and
43
+ // coordinate any change with a major version of the contract. Moving a
44
+ // shared third-party package to a new major version is such a change too:
45
+ // runtimeShared.test.js pins those majors, and fails until the migration
46
+ // guide and the documented shared versions are updated.
47
+ //
48
+ // Every extension and mode compiled into the viewer is ALSO put on window, by
49
+ // the generated plugin loader once it has loaded (sharePlugin in
50
+ // runtimeExtensionLoader.ts; extensions loaded on demand appear only then).
51
+ // Those globals are a second tier with no compatibility promise; this list is
52
+ // the stable one, assigned before the first runtime plugin is fetched
53
+ // (shareHostPackages in runtimeExtensionLoader.ts).
54
+ //
55
+ // @ohif/i18n is shared because runtime extensions dereference it during
56
+ // module evaluation (e.g. dicom-pdf). @ohif/ui is intentionally NOT shared:
57
+ // it is legacy and a forbidden import for runtime plugins. React Router and
58
+ // i18next are shared so a plugin uses the host's Router and its one i18next
59
+ // instance; a plugin's own copy of either sees neither.
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ const shared = {
77
+ react: /*#__PURE__*/ (react__rspack_import_0_namespace_cache || (react__rspack_import_0_namespace_cache = __webpack_require__.t(react__rspack_import_0, 2))),
78
+ 'react-dom': /*#__PURE__*/ (react_dom__rspack_import_1_namespace_cache || (react_dom__rspack_import_1_namespace_cache = __webpack_require__.t(react_dom__rspack_import_1, 2))),
79
+ 'react/jsx-runtime': /*#__PURE__*/ (react_jsx_runtime__rspack_import_2_namespace_cache || (react_jsx_runtime__rspack_import_2_namespace_cache = __webpack_require__.t(react_jsx_runtime__rspack_import_2, 2))),
80
+ '@ohif/core': _ohif_core__rspack_import_3,
81
+ '@ohif/ui-next': _ohif_ui_next__rspack_import_4,
82
+ '@ohif/i18n': _ohif_i18n__rspack_import_5,
83
+ '@ohif/extension-default': _ohif_extension_default__rspack_import_6,
84
+ '@ohif/extension-cornerstone': _ohif_extension_cornerstone__rspack_import_7,
85
+ '@cornerstonejs/core': _cornerstonejs_core__rspack_import_8,
86
+ '@cornerstonejs/tools': _cornerstonejs_tools__rspack_import_9,
87
+ dcmjs: dcmjs__rspack_import_10,
88
+ 'gl-matrix': gl_matrix__rspack_import_11,
89
+ 'react-router': react_router__rspack_import_12,
90
+ 'react-router-dom': react_router_dom__rspack_import_13,
91
+ i18next: i18next__rspack_import_14,
92
+ 'react-i18next': react_i18next__rspack_import_15
93
+ };
94
+ Object.entries(shared).forEach(([name, mod])=>{
95
+ window[name] = mod;
96
+ });
97
+
98
+
99
+ },
100
+
101
+ }]);
@@ -0,0 +1,52 @@
1
+ .dicom-tag-browser-table {
2
+ margin-left: auto;
3
+ margin-right: auto;
4
+ }
5
+
6
+ .dicom-tag-browser-table-wrapper {
7
+ overflow-x: scroll;
8
+ }
9
+
10
+ .dicom-tag-browser-table tr {
11
+ color: hsl(var(--foreground));
12
+ white-space: nowrap;
13
+ padding-left: 10px;
14
+ padding-right: 10px;
15
+ }
16
+
17
+ .stick {
18
+ position: sticky;
19
+ overflow: clip;
20
+ }
21
+
22
+ .dicom-tag-browser-content {
23
+ overflow: hidden;
24
+ }
25
+
26
+ .dicom-tag-browser-instance-range .range {
27
+ height: 20px;
28
+ }
29
+
30
+ .dicom-tag-browser-instance-range {
31
+ padding: 20px 0;
32
+ }
33
+
34
+ .dicom-tag-browser-table td.dicom-tag-browser-table-center {
35
+ text-align: center;
36
+ }
37
+
38
+ .dicom-tag-browser-table th {
39
+ text-align: center;
40
+ padding-left: 10px;
41
+ padding-right: 10px;
42
+ }
43
+
44
+ .dicom-tag-browser-table th.dicom-tag-browser-table-left {
45
+ text-align: left;
46
+ }
47
+
48
+ .chrome-picker {
49
+ box-shadow: none !important;
50
+ background: none !important;
51
+ }
52
+