@ohif/app 3.10.0-beta.76 → 3.10.0-beta.78
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/{1919.bundle.a56f8d9725154e8785e7.js → 1919.bundle.31872868d6d682f65000.js} +2 -2
- package/dist/{2701.bundle.b0e1042f5a528fb6bd2b.js → 2701.bundle.835eb3e0006bcfb85469.js} +2 -2
- package/dist/{2897.bundle.47ef91cbdce2c8d82aff.js → 2897.bundle.64b79bbbfa3cd956b6ed.js} +75 -77
- package/dist/{4526.bundle.90118ca1c32e0a4c7314.js → 4526.bundle.7d643ae29b3ac24f4972.js} +2 -2
- package/dist/{5770.bundle.4e4a67dd013f0faa1eff.js → 5770.bundle.a141e0d905d7f8583ed2.js} +2 -2
- package/dist/{6201.bundle.403edc53e7164620ff5a.js → 6201.bundle.c12aad45324561ef6a49.js} +2 -2
- package/dist/{7197.bundle.1654101bf836a84b875a.js → 7197.bundle.38967aed63fbf5958bba.js} +1 -1
- package/dist/{9199.bundle.1835c89a9e816d376292.js → 7490.bundle.a0eb8dff1c95bc1fb8b3.js} +916 -6
- package/dist/{810.bundle.16e2a7c2a5d74546586d.js → 810.bundle.c68b62c36b04f7569ab8.js} +2 -2
- package/dist/{8558.bundle.197f8d88a960c8ceef2a.js → 8558.bundle.bb60433936e8f98f1367.js} +1 -1
- package/dist/{870.bundle.6ab5c5d47f75fac67051.js → 870.bundle.3130ad17a04f89b763e3.js} +4 -3
- package/dist/{469.bundle.69efc7cbdeffc44f59d4.js → 9026.bundle.b8a3e1be70effe7ebe86.js} +8 -873
- package/dist/{9890.bundle.6656f9fdf968b9d9ed53.js → 9890.bundle.fa30fef9d54652d5980a.js} +2 -2
- package/dist/{app.bundle.c86f056e0b2d993eeab6.js → app.bundle.3f9345da025297a0d34d.js} +28 -28
- package/dist/app.bundle.css +2 -2
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- /package/dist/{213.bundle.e66ee8d813d7c9424cf1.js → 213.bundle.2e09b554c8c4cfdc78f1.js} +0 -0
- /package/dist/{2424.bundle.bb567908bf781783f52f.js → 2424.bundle.105a5f0e5354ca006188.js} +0 -0
- /package/dist/{2825.bundle.0f26105bd56c3934213b.js → 2825.bundle.a70345948ef742dac625.js} +0 -0
- /package/dist/{4834.bundle.c7e2834009cd0d4c19aa.js → 4834.bundle.ed13be06e063fbb85456.js} +0 -0
- /package/dist/{5247.bundle.5d156b22f93b05578a09.js → 5247.bundle.0b5588cb3d9b6f4506b4.js} +0 -0
- /package/dist/{6027.bundle.e940f475cf4f303cbb20.js → 6027.bundle.09862392da22ade4af87.js} +0 -0
- /package/dist/{6734.bundle.58377d74255354f6a7ba.js → 6734.bundle.0781a06cf061800fd9bb.js} +0 -0
- /package/dist/{7955.bundle.8485f4b6745eff1c94b1.js → 7955.bundle.53399afcafd2bd5122c0.js} +0 -0
- /package/dist/{8008.bundle.dcf5d32b42518268e006.js → 8008.bundle.5cf0282e312d1a99c95b.js} +0 -0
- /package/dist/{8259.bundle.b4c17d9aef7b49bdc9d5.js → 8259.bundle.148bed58e5ad1bc22874.js} +0 -0
- /package/dist/{469.css → 9026.css} +0 -0
- /package/dist/{9551.bundle.2bd0a06c01c076e1f748.js → 9551.bundle.6b770d7d70d2f32aceb8.js} +0 -0
|
@@ -1358,8 +1358,8 @@ function WorkflowPanel({
|
|
|
1358
1358
|
|
|
1359
1359
|
|
|
1360
1360
|
|
|
1361
|
-
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx +
|
|
1362
|
-
var cornerstone_src = __webpack_require__(
|
|
1361
|
+
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 117 modules
|
|
1362
|
+
var cornerstone_src = __webpack_require__(7490);
|
|
1363
1363
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dynamic-volume/src/panels/DynamicExport.tsx
|
|
1364
1364
|
|
|
1365
1365
|
|
|
@@ -27,8 +27,8 @@ var dicomSRModule = __webpack_require__(76654);
|
|
|
27
27
|
var ui_src = __webpack_require__(32907);
|
|
28
28
|
// EXTERNAL MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/createReferencedImageDisplaySet.ts
|
|
29
29
|
var createReferencedImageDisplaySet = __webpack_require__(92643);
|
|
30
|
-
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx +
|
|
31
|
-
var cornerstone_src = __webpack_require__(
|
|
30
|
+
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 117 modules
|
|
31
|
+
var cornerstone_src = __webpack_require__(7490);
|
|
32
32
|
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 2624 modules
|
|
33
33
|
var ui_next_src = __webpack_require__(18817);
|
|
34
34
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/components/OHIFCornerstoneSRMeasurementViewport.tsx
|
|
@@ -3073,8 +3073,8 @@ function ViewerHeader({
|
|
|
3073
3073
|
hotkeyDefinitions,
|
|
3074
3074
|
hotkeyDefaults
|
|
3075
3075
|
} = hotkeysManager;
|
|
3076
|
-
const versionNumber = "3.10.0-beta.
|
|
3077
|
-
const commitHash = "
|
|
3076
|
+
const versionNumber = "3.10.0-beta.78";
|
|
3077
|
+
const commitHash = "6abb095b8a39c5ae4f8df8852b3ddb3249ec463f";
|
|
3078
3078
|
const menuOptions = [{
|
|
3079
3079
|
title: t('Header:About'),
|
|
3080
3080
|
icon: 'info',
|
|
@@ -3236,9 +3236,9 @@ const SidePanelWithServices = ({
|
|
|
3236
3236
|
// EXTERNAL MODULE: ../../../node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js
|
|
3237
3237
|
var react_resizable_panels_browser_esm = __webpack_require__(17825);
|
|
3238
3238
|
;// CONCATENATED MODULE: ../../../extensions/default/src/ViewerLayout/constants/panels.ts
|
|
3239
|
-
const expandedInsideBorderSize =
|
|
3239
|
+
const expandedInsideBorderSize = 0;
|
|
3240
3240
|
const collapsedInsideBorderSize = 4;
|
|
3241
|
-
const collapsedOutsideBorderSize =
|
|
3241
|
+
const collapsedOutsideBorderSize = 4;
|
|
3242
3242
|
const collapsedWidth = 25;
|
|
3243
3243
|
const rightPanelInitialExpandedWidth = 280;
|
|
3244
3244
|
const leftPanelInitialExpandedWidth = 282;
|
|
@@ -3279,7 +3279,7 @@ const panelGroupDefinition = {
|
|
|
3279
3279
|
/**
|
|
3280
3280
|
* Set the minimum and maximum css style width attributes for the given element.
|
|
3281
3281
|
* The two style attributes are cleared whenever the width
|
|
3282
|
-
*
|
|
3282
|
+
* argument is undefined.
|
|
3283
3283
|
* <p>
|
|
3284
3284
|
* This utility is used as part of a HACK throughout the ViewerLayout component as
|
|
3285
3285
|
* the means of restricting the side panel widths during the resizing of the
|
|
@@ -3298,7 +3298,7 @@ const useResizablePanels = (leftPanelClosed, setLeftPanelClosed, rightPanelClose
|
|
|
3298
3298
|
const [rightPanelExpandedWidth, setRightPanelExpandedWidth] = (0,react.useState)(panelGroupDefinition.right.initialExpandedWidth);
|
|
3299
3299
|
const [leftResizablePanelMinimumSize, setLeftResizablePanelMinimumSize] = (0,react.useState)(0);
|
|
3300
3300
|
const [rightResizablePanelMinimumSize, setRightResizablePanelMinimumSize] = (0,react.useState)(0);
|
|
3301
|
-
const [
|
|
3301
|
+
const [leftResizablePanelCollapsedSize, setLeftResizePanelCollapsedSize] = (0,react.useState)(0);
|
|
3302
3302
|
const [rightResizePanelCollapsedSize, setRightResizePanelCollapsedSize] = (0,react.useState)(0);
|
|
3303
3303
|
const resizablePanelGroupElemRef = (0,react.useRef)(null);
|
|
3304
3304
|
const resizableLeftPanelElemRef = (0,react.useRef)(null);
|
|
@@ -3307,6 +3307,9 @@ const useResizablePanels = (leftPanelClosed, setLeftPanelClosed, rightPanelClose
|
|
|
3307
3307
|
const resizableRightPanelAPIRef = (0,react.useRef)(null);
|
|
3308
3308
|
const isResizableHandleDraggingRef = (0,react.useRef)(false);
|
|
3309
3309
|
|
|
3310
|
+
// The total width of both handles.
|
|
3311
|
+
const resizableHandlesWidth = (0,react.useRef)(null);
|
|
3312
|
+
|
|
3310
3313
|
// This useLayoutEffect is used to...
|
|
3311
3314
|
// - Grab a reference to the various resizable panel elements needed for
|
|
3312
3315
|
// converting between percentages and pixels in various callbacks.
|
|
@@ -3314,25 +3317,29 @@ const useResizablePanels = (leftPanelClosed, setLeftPanelClosed, rightPanelClose
|
|
|
3314
3317
|
(0,react.useLayoutEffect)(() => {
|
|
3315
3318
|
const panelGroupElem = (0,react_resizable_panels_browser_esm/* getPanelGroupElement */.Gx)(panelGroupDefinition.groupId);
|
|
3316
3319
|
resizablePanelGroupElemRef.current = panelGroupElem;
|
|
3317
|
-
const {
|
|
3318
|
-
width: panelGroupWidth
|
|
3319
|
-
} = panelGroupElem.getBoundingClientRect();
|
|
3320
3320
|
const leftPanelElem = (0,react_resizable_panels_browser_esm/* getPanelElement */.PV)(panelGroupDefinition.left.panelId);
|
|
3321
3321
|
resizableLeftPanelElemRef.current = leftPanelElem;
|
|
3322
3322
|
const rightPanelElem = (0,react_resizable_panels_browser_esm/* getPanelElement */.PV)(panelGroupDefinition.right.panelId);
|
|
3323
3323
|
resizableRightPanelElemRef.current = rightPanelElem;
|
|
3324
3324
|
|
|
3325
|
+
// Calculate and set the width of both handles combined.
|
|
3326
|
+
const resizeHandles = document.querySelectorAll('[data-panel-resize-handle-id]');
|
|
3327
|
+
resizableHandlesWidth.current = 0;
|
|
3328
|
+
resizeHandles.forEach(resizeHandle => {
|
|
3329
|
+
resizableHandlesWidth.current += resizeHandle.offsetWidth;
|
|
3330
|
+
});
|
|
3331
|
+
|
|
3325
3332
|
// Since both resizable panels are collapsed by default (i.e. their default size is zero),
|
|
3326
3333
|
// on the very first render check if either/both side panels should be expanded.
|
|
3327
3334
|
// we use the initialExpandedOffsetWidth on the first render incase the panel has min width but we want the initial state to be larger than that
|
|
3328
3335
|
|
|
3329
3336
|
if (!leftPanelClosed) {
|
|
3330
|
-
const leftResizablePanelExpandedSize = panelGroupDefinition.left.initialExpandedOffsetWidth
|
|
3337
|
+
const leftResizablePanelExpandedSize = getPercentageSize(panelGroupDefinition.left.initialExpandedOffsetWidth);
|
|
3331
3338
|
resizableLeftPanelAPIRef?.current?.expand(leftResizablePanelExpandedSize);
|
|
3332
3339
|
setMinMaxWidth(leftPanelElem, panelGroupDefinition.left.initialExpandedOffsetWidth);
|
|
3333
3340
|
}
|
|
3334
3341
|
if (!rightPanelClosed) {
|
|
3335
|
-
const rightResizablePanelExpandedSize = panelGroupDefinition.right.initialExpandedOffsetWidth
|
|
3342
|
+
const rightResizablePanelExpandedSize = getPercentageSize(panelGroupDefinition.right.initialExpandedOffsetWidth);
|
|
3336
3343
|
resizableRightPanelAPIRef?.current?.expand(rightResizablePanelExpandedSize);
|
|
3337
3344
|
setMinMaxWidth(rightPanelElem, panelGroupDefinition.right.initialExpandedOffsetWidth);
|
|
3338
3345
|
}
|
|
@@ -3348,67 +3355,34 @@ const useResizablePanels = (leftPanelClosed, setLeftPanelClosed, rightPanelClose
|
|
|
3348
3355
|
// values whenever the resizable panel group is resized (e.g. whenever the
|
|
3349
3356
|
// browser window is resized).
|
|
3350
3357
|
(0,react.useLayoutEffect)(() => {
|
|
3351
|
-
const {
|
|
3352
|
-
width: panelGroupWidth
|
|
3353
|
-
} = resizablePanelGroupElemRef.current.getBoundingClientRect();
|
|
3354
|
-
|
|
3355
3358
|
// Ensure the side panels' percentage size is in synch with the pixel width of the
|
|
3356
3359
|
// expanded side panels. In general the two get out-of-sync during a browser
|
|
3357
3360
|
// window resize. Note that this code is here and NOT in the ResizeObserver
|
|
3358
3361
|
// because it has to be done AFTER the minimum percentage size for a panel is
|
|
3359
|
-
// updated which occurs only AFTER the render following a resize.
|
|
3360
|
-
// of the dependency on the
|
|
3361
|
-
// is executed on the render following an update of the minimum percentage
|
|
3362
|
+
// updated which occurs only AFTER the render following a browser window resize.
|
|
3363
|
+
// And by virtue of the dependency on the minimum size state variables, this code
|
|
3364
|
+
// is executed on the render following an update of the minimum percentage sizes
|
|
3362
3365
|
// for a panel.
|
|
3363
3366
|
if (!resizableLeftPanelAPIRef.current.isCollapsed()) {
|
|
3364
|
-
const leftSize = (leftPanelExpandedWidth + panelGroupDefinition.shared.expandedInsideBorderSize)
|
|
3367
|
+
const leftSize = getPercentageSize(leftPanelExpandedWidth + panelGroupDefinition.shared.expandedInsideBorderSize);
|
|
3365
3368
|
resizableLeftPanelAPIRef.current.resize(leftSize);
|
|
3366
3369
|
}
|
|
3367
3370
|
if (!resizableRightPanelAPIRef.current.isCollapsed()) {
|
|
3368
|
-
const rightSize = (rightPanelExpandedWidth + panelGroupDefinition.shared.expandedInsideBorderSize)
|
|
3371
|
+
const rightSize = getPercentageSize(rightPanelExpandedWidth + panelGroupDefinition.shared.expandedInsideBorderSize);
|
|
3369
3372
|
resizableRightPanelAPIRef.current.resize(rightSize);
|
|
3370
3373
|
}
|
|
3371
3374
|
|
|
3372
3375
|
// This observer kicks in when the ViewportLayout resizable panel group
|
|
3373
3376
|
// component is resized. This typically occurs when the browser window resizes.
|
|
3374
3377
|
const observer = new ResizeObserver(() => {
|
|
3375
|
-
const
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
setRightResizablePanelMinimumSize(Math.min(50, minimumRightSize));
|
|
3384
|
-
setLeftResizePanelCollapsedSize(panelGroupDefinition.left.collapsedOffsetWidth / panelGroupWidth * 100);
|
|
3385
|
-
setRightResizePanelCollapsedSize(panelGroupDefinition.right.collapsedOffsetWidth / panelGroupWidth * 100);
|
|
3386
|
-
if (resizableLeftPanelAPIRef.current.isCollapsed() && resizableRightPanelAPIRef.current.isCollapsed()) {
|
|
3387
|
-
return;
|
|
3388
|
-
}
|
|
3389
|
-
|
|
3390
|
-
// The code that follows is to handle cases when the group panel is resized to be
|
|
3391
|
-
// too small to display either side panel at its current width.
|
|
3392
|
-
|
|
3393
|
-
// Determine the current widths of the two side panels.
|
|
3394
|
-
let leftPanelOffsetWidth = resizableLeftPanelAPIRef.current.isCollapsed() ? panelGroupDefinition.left.collapsedOffsetWidth : leftPanelExpandedWidth + panelGroupDefinition.shared.expandedInsideBorderSize;
|
|
3395
|
-
let rightPanelOffsetWidth = resizableRightPanelAPIRef.current.isCollapsed() ? panelGroupDefinition.right.collapsedOffsetWidth : rightPanelExpandedWidth + panelGroupDefinition.shared.expandedInsideBorderSize;
|
|
3396
|
-
if (!resizableLeftPanelAPIRef.current.isCollapsed() && leftPanelOffsetWidth + rightPanelOffsetWidth > panelGroupWidth) {
|
|
3397
|
-
// There is not enough space to show both panels at their pre-resize widths.
|
|
3398
|
-
// Note that at this point, the viewport grid component is zero width.
|
|
3399
|
-
// Reduce the left panel width so that both panels might fit.
|
|
3400
|
-
leftPanelOffsetWidth = Math.max(panelGroupWidth - rightPanelOffsetWidth, panelGroupDefinition.left.minimumExpandedOffsetWidth);
|
|
3401
|
-
setLeftPanelExpandedWidth(leftPanelOffsetWidth - panelGroupDefinition.shared.expandedInsideBorderSize);
|
|
3402
|
-
setMinMaxWidth(resizableLeftPanelElemRef.current, leftPanelOffsetWidth);
|
|
3403
|
-
}
|
|
3404
|
-
if (!resizableRightPanelAPIRef.current.isCollapsed() && rightPanelOffsetWidth + leftPanelOffsetWidth > panelGroupWidth) {
|
|
3405
|
-
// There is not enough space to show both panels at their pre-resize widths.
|
|
3406
|
-
// Note that at this point, the viewport grid component is zero width.
|
|
3407
|
-
// Reduce the right panel width so that both panels might fit.
|
|
3408
|
-
rightPanelOffsetWidth = Math.max(panelGroupWidth - leftPanelOffsetWidth, panelGroupDefinition.right.minimumExpandedOffsetWidth);
|
|
3409
|
-
setRightPanelExpandedWidth(rightPanelOffsetWidth - panelGroupDefinition.shared.expandedInsideBorderSize);
|
|
3410
|
-
setMinMaxWidth(resizableRightPanelElemRef.current, rightPanelOffsetWidth);
|
|
3411
|
-
}
|
|
3378
|
+
const minimumLeftSize = getPercentageSize(panelGroupDefinition.left.minimumExpandedOffsetWidth);
|
|
3379
|
+
const minimumRightSize = getPercentageSize(panelGroupDefinition.right.minimumExpandedOffsetWidth);
|
|
3380
|
+
|
|
3381
|
+
// Set the new minimum and collapsed resizable panel sizes.
|
|
3382
|
+
setLeftResizablePanelMinimumSize(minimumLeftSize);
|
|
3383
|
+
setRightResizablePanelMinimumSize(minimumRightSize);
|
|
3384
|
+
setLeftResizePanelCollapsedSize(getPercentageSize(panelGroupDefinition.left.collapsedOffsetWidth));
|
|
3385
|
+
setRightResizePanelCollapsedSize(getPercentageSize(panelGroupDefinition.right.collapsedOffsetWidth));
|
|
3412
3386
|
});
|
|
3413
3387
|
observer.observe(resizablePanelGroupElemRef.current);
|
|
3414
3388
|
return () => {
|
|
@@ -3440,21 +3414,21 @@ const useResizablePanels = (leftPanelClosed, setLeftPanelClosed, rightPanelClose
|
|
|
3440
3414
|
resizableLeftPanelAPIRef?.current?.collapse();
|
|
3441
3415
|
}, [setLeftPanelClosed]);
|
|
3442
3416
|
const onLeftPanelOpen = (0,react.useCallback)(() => {
|
|
3443
|
-
|
|
3444
|
-
width: panelGroupWidth
|
|
3445
|
-
} = resizablePanelGroupElemRef.current.getBoundingClientRect();
|
|
3446
|
-
resizableLeftPanelAPIRef?.current?.expand(panelGroupDefinition.left.initialExpandedOffsetWidth / panelGroupWidth * 100);
|
|
3417
|
+
resizableLeftPanelAPIRef?.current?.expand(getPercentageSize(panelGroupDefinition.left.initialExpandedOffsetWidth));
|
|
3447
3418
|
setLeftPanelClosed(false);
|
|
3448
3419
|
}, [setLeftPanelClosed]);
|
|
3449
3420
|
const onLeftPanelResize = (0,react.useCallback)(size => {
|
|
3450
|
-
if (resizableLeftPanelAPIRef.current.isCollapsed()) {
|
|
3421
|
+
if (!resizablePanelGroupElemRef?.current || resizableLeftPanelAPIRef.current.isCollapsed()) {
|
|
3451
3422
|
return;
|
|
3452
3423
|
}
|
|
3453
|
-
const
|
|
3454
|
-
width: panelGroupWidth
|
|
3455
|
-
} = resizablePanelGroupElemRef.current.getBoundingClientRect();
|
|
3456
|
-
const newExpandedWidth = size / 100 * panelGroupWidth - panelGroupDefinition.shared.expandedInsideBorderSize;
|
|
3424
|
+
const newExpandedWidth = getExpandedPixelWidth(size);
|
|
3457
3425
|
setLeftPanelExpandedWidth(newExpandedWidth);
|
|
3426
|
+
if (!isResizableHandleDraggingRef.current) {
|
|
3427
|
+
// This typically gets executed when the left panel is expanded via one of the UI
|
|
3428
|
+
// buttons. It is done here instead of in the onLeftPanelOpen method
|
|
3429
|
+
// because here we know the size of the expanded panel.
|
|
3430
|
+
setMinMaxWidth(resizableLeftPanelElemRef.current, newExpandedWidth);
|
|
3431
|
+
}
|
|
3458
3432
|
}, []);
|
|
3459
3433
|
const onRightPanelClose = (0,react.useCallback)(() => {
|
|
3460
3434
|
setRightPanelClosed(true);
|
|
@@ -3462,22 +3436,45 @@ const useResizablePanels = (leftPanelClosed, setLeftPanelClosed, rightPanelClose
|
|
|
3462
3436
|
resizableRightPanelAPIRef?.current?.collapse();
|
|
3463
3437
|
}, [setRightPanelClosed]);
|
|
3464
3438
|
const onRightPanelOpen = (0,react.useCallback)(() => {
|
|
3465
|
-
|
|
3466
|
-
width: panelGroupWidth
|
|
3467
|
-
} = resizablePanelGroupElemRef.current.getBoundingClientRect();
|
|
3468
|
-
resizableRightPanelAPIRef?.current?.expand(panelGroupDefinition.right.initialExpandedOffsetWidth / panelGroupWidth * 100);
|
|
3439
|
+
resizableRightPanelAPIRef?.current?.expand(getPercentageSize(panelGroupDefinition.right.initialExpandedOffsetWidth));
|
|
3469
3440
|
setRightPanelClosed(false);
|
|
3470
3441
|
}, [setRightPanelClosed]);
|
|
3471
3442
|
const onRightPanelResize = (0,react.useCallback)(size => {
|
|
3472
|
-
if (
|
|
3443
|
+
if (!resizablePanelGroupElemRef?.current || resizableRightPanelAPIRef.current.isCollapsed()) {
|
|
3473
3444
|
return;
|
|
3474
3445
|
}
|
|
3446
|
+
const newExpandedWidth = getExpandedPixelWidth(size);
|
|
3447
|
+
setRightPanelExpandedWidth(newExpandedWidth);
|
|
3448
|
+
if (!isResizableHandleDraggingRef.current) {
|
|
3449
|
+
// This typically gets executed when the right panel is expanded via one of the UI
|
|
3450
|
+
// buttons. It is done here instead of in the onRightPanelOpen method
|
|
3451
|
+
// because here we know the size of the expanded panel.
|
|
3452
|
+
setMinMaxWidth(resizableRightPanelElemRef.current, newExpandedWidth);
|
|
3453
|
+
}
|
|
3454
|
+
}, []);
|
|
3455
|
+
|
|
3456
|
+
/**
|
|
3457
|
+
* Gets the percentage size corresponding to the given pixel size.
|
|
3458
|
+
* Note that the width attributed to the handles must be taken into account.
|
|
3459
|
+
*/
|
|
3460
|
+
const getPercentageSize = pixelSize => {
|
|
3475
3461
|
const {
|
|
3476
3462
|
width: panelGroupWidth
|
|
3477
3463
|
} = resizablePanelGroupElemRef.current.getBoundingClientRect();
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3464
|
+
return pixelSize / (panelGroupWidth - resizableHandlesWidth.current) * 100;
|
|
3465
|
+
};
|
|
3466
|
+
|
|
3467
|
+
/**
|
|
3468
|
+
* Gets the width in pixels for an expanded panel given its percentage size/width.
|
|
3469
|
+
* Note that the width attributed to the handles must be taken into account.
|
|
3470
|
+
*/
|
|
3471
|
+
const getExpandedPixelWidth = percentageSize => {
|
|
3472
|
+
const {
|
|
3473
|
+
width: panelGroupWidth
|
|
3474
|
+
} = resizablePanelGroupElemRef.current.getBoundingClientRect();
|
|
3475
|
+
const expandedWidth = percentageSize / 100 * (panelGroupWidth - resizableHandlesWidth.current) - panelGroupDefinition.shared.expandedInsideBorderSize;
|
|
3476
|
+
return expandedWidth;
|
|
3477
|
+
};
|
|
3481
3478
|
return [{
|
|
3482
3479
|
expandedWidth: leftPanelExpandedWidth,
|
|
3483
3480
|
collapsedWidth: panelGroupDefinition.shared.collapsedWidth,
|
|
@@ -3502,7 +3499,7 @@ const useResizablePanels = (leftPanelClosed, setLeftPanelClosed, rightPanelClose
|
|
|
3502
3499
|
minSize: leftResizablePanelMinimumSize,
|
|
3503
3500
|
onResize: onLeftPanelResize,
|
|
3504
3501
|
collapsible: true,
|
|
3505
|
-
collapsedSize:
|
|
3502
|
+
collapsedSize: leftResizablePanelCollapsedSize,
|
|
3506
3503
|
onCollapse: () => setLeftPanelClosed(true),
|
|
3507
3504
|
onExpand: () => setLeftPanelClosed(false),
|
|
3508
3505
|
ref: resizableLeftPanelAPIRef,
|
|
@@ -3536,6 +3533,7 @@ function ViewerLayout_extends() { return ViewerLayout_extends = Object.assign ?
|
|
|
3536
3533
|
|
|
3537
3534
|
|
|
3538
3535
|
|
|
3536
|
+
const resizableHandleClassName = 'mt-[1px] bg-black';
|
|
3539
3537
|
function ViewerLayout({
|
|
3540
3538
|
// From Extension Module Params
|
|
3541
3539
|
extensionManager,
|
|
@@ -3648,7 +3646,7 @@ function ViewerLayout({
|
|
|
3648
3646
|
}, leftPanelProps))), /*#__PURE__*/react.createElement(ui_next_src/* ResizableHandle */.WM, {
|
|
3649
3647
|
onDragging: onHandleDragging,
|
|
3650
3648
|
disabled: !leftPanelResizable,
|
|
3651
|
-
className:
|
|
3649
|
+
className: resizableHandleClassName
|
|
3652
3650
|
})) : null, /*#__PURE__*/react.createElement(ui_next_src/* ResizablePanel */.wV, resizableViewportGridPanelProps, /*#__PURE__*/react.createElement("div", {
|
|
3653
3651
|
className: "flex h-full flex-1 flex-col"
|
|
3654
3652
|
}, /*#__PURE__*/react.createElement("div", {
|
|
@@ -3660,7 +3658,7 @@ function ViewerLayout({
|
|
|
3660
3658
|
})))), hasRightPanels ? /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(ui_next_src/* ResizableHandle */.WM, {
|
|
3661
3659
|
onDragging: onHandleDragging,
|
|
3662
3660
|
disabled: !rightPanelResizable,
|
|
3663
|
-
className:
|
|
3661
|
+
className: resizableHandleClassName
|
|
3664
3662
|
}), /*#__PURE__*/react.createElement(ui_next_src/* ResizablePanel */.wV, resizableRightPanelProps, /*#__PURE__*/react.createElement(Components_SidePanelWithServices, ViewerLayout_extends({
|
|
3665
3663
|
side: "right",
|
|
3666
3664
|
isExpanded: !rightPanelClosedState,
|
|
@@ -144,8 +144,8 @@ function _getStatusComponent({
|
|
|
144
144
|
side: "bottom"
|
|
145
145
|
}, /*#__PURE__*/react.createElement(ToolTipMessage, null))), !ToolTipMessage && /*#__PURE__*/react.createElement(StatusArea, null));
|
|
146
146
|
}
|
|
147
|
-
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx +
|
|
148
|
-
var cornerstone_src = __webpack_require__(
|
|
147
|
+
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 117 modules
|
|
148
|
+
var cornerstone_src = __webpack_require__(7490);
|
|
149
149
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js + 2 modules
|
|
150
150
|
var enums = __webpack_require__(99737);
|
|
151
151
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/viewports/OHIFCornerstoneSEGViewport.tsx
|
|
@@ -75,8 +75,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
75
75
|
var react = __webpack_require__(86326);
|
|
76
76
|
// EXTERNAL MODULE: ../../core/src/index.ts + 73 modules
|
|
77
77
|
var src = __webpack_require__(10532);
|
|
78
|
-
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx +
|
|
79
|
-
var cornerstone_src = __webpack_require__(
|
|
78
|
+
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 117 modules
|
|
79
|
+
var cornerstone_src = __webpack_require__(7490);
|
|
80
80
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 62 modules
|
|
81
81
|
var esm = __webpack_require__(4904);
|
|
82
82
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 94 modules
|
|
@@ -28,8 +28,8 @@ var src = __webpack_require__(10532);
|
|
|
28
28
|
var esm = __webpack_require__(81985);
|
|
29
29
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 62 modules
|
|
30
30
|
var dist_esm = __webpack_require__(4904);
|
|
31
|
-
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx +
|
|
32
|
-
var cornerstone_src = __webpack_require__(
|
|
31
|
+
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 117 modules
|
|
32
|
+
var cornerstone_src = __webpack_require__(7490);
|
|
33
33
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-pmap/src/getSopClassHandlerModule.ts
|
|
34
34
|
|
|
35
35
|
|
|
@@ -771,7 +771,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
771
771
|
|
|
772
772
|
|
|
773
773
|
const Component = /*#__PURE__*/react.lazy(() => {
|
|
774
|
-
return Promise.all(/* import() */[__webpack_require__.e(3334), __webpack_require__.e(
|
|
774
|
+
return Promise.all(/* import() */[__webpack_require__.e(3334), __webpack_require__.e(7490), __webpack_require__.e(4526)]).then(__webpack_require__.bind(__webpack_require__, 58295));
|
|
775
775
|
});
|
|
776
776
|
const OHIFCornerstoneSEGViewport = props => {
|
|
777
777
|
return /*#__PURE__*/react.createElement(react.Suspense, {
|