@ohif/app 3.14.0-beta.70 → 3.14.0-beta.72
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/{1645.bundle.618a2886.js → 1645.bundle.1a86b10e.js} +11 -28
- package/dist/{1283.bundle.f2c2bb56.js → 213.bundle.6bbe580b.js} +4743 -390
- package/dist/{8199.bundle.25557805.js → 2894.bundle.770d3d9e.js} +1355 -567
- package/dist/{3386.bundle.1a446825.js → 3386.bundle.bdaa8014.js} +14 -5
- package/dist/{3044.bundle.039294b9.js → 4500.bundle.79728db8.js} +25 -17
- package/dist/{2894.bundle.d612efb2.js → 513.bundle.9c0548cf.js} +1 -1
- package/dist/{5143.bundle.67167d39.js → 5143.bundle.1ddc3eb4.js} +66 -42
- package/dist/{5320.bundle.0c7b2cb7.js → 5320.bundle.43308cb4.js} +18 -27
- package/dist/{5989.bundle.f8096a4e.js → 5989.bundle.6da1ff18.js} +19 -28
- package/dist/{4018.bundle.48c288e5.js → 6847.bundle.7fd47a86.js} +32 -5
- package/dist/{7464.bundle.492c83ce.js → 7464.bundle.36e9c349.js} +1440 -597
- package/dist/{1724.bundle.59b20c59.js → 8699.bundle.c00d7ae1.js} +480 -87
- package/dist/{9187.bundle.237037e4.js → 9187.bundle.134a42b2.js} +2 -2
- package/dist/{9481.bundle.027aa5ca.js → 9481.bundle.65162f9d.js} +2 -2
- package/dist/{9620.bundle.67375c83.js → 9620.bundle.e098e167.js} +2 -2
- package/dist/{9892.bundle.8c1ccb0e.js → 9892.bundle.fe68e426.js} +3 -3
- package/dist/{app.bundle.ca3d1da9.js → app.bundle.58791784.js} +25 -22
- package/dist/{compute.bundle.79a2d455.js → compute.bundle.09be4c13.js} +8 -8
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.302d242b.js → interpolation.bundle.1eeebcfe.js} +5 -5
- package/dist/{polySeg.bundle.aaf002b1.js → polySeg.bundle.5bc24361.js} +8 -8
- package/dist/sw.js +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis["rspackChunk_ohif_app"] ||= []).push([[
|
|
1
|
+
(globalThis["rspackChunk_ohif_app"] ||= []).push([[2894], {
|
|
2
2
|
85631(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
3
3
|
"use strict";
|
|
4
4
|
/* provided dependency */ var Buffer = __webpack_require__(1048).hp;
|
|
@@ -30137,7 +30137,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30137
30137
|
/* import */ var _Viewport_js__rspack_import_3 = __webpack_require__(68840);
|
|
30138
30138
|
/* import */ var _helpers_index_js__rspack_import_4 = __webpack_require__(83582);
|
|
30139
30139
|
/* import */ var _GenericViewport_genericViewportDisplaySetAccess_js__rspack_import_5 = __webpack_require__(95023);
|
|
30140
|
-
/* import */ var
|
|
30140
|
+
/* import */ var _GenericViewport_ECG_ecgWaveform_js__rspack_import_6 = __webpack_require__(59076);
|
|
30141
|
+
/* import */ var _GenericViewport_ECG_ecgGeometry_js__rspack_import_7 = __webpack_require__(62195);
|
|
30142
|
+
/* import */ var _GenericViewport_ECG_ecgTraceLayouts_js__rspack_import_8 = __webpack_require__(1571);
|
|
30143
|
+
/* import */ var _GenericViewport_ECG_ecgDrawing_js__rspack_import_9 = __webpack_require__(8413);
|
|
30144
|
+
|
|
30145
|
+
|
|
30146
|
+
|
|
30141
30147
|
|
|
30142
30148
|
|
|
30143
30149
|
|
|
@@ -30145,7 +30151,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30145
30151
|
|
|
30146
30152
|
|
|
30147
30153
|
|
|
30148
|
-
const ECG_AMPLITUDE_INDEX_SIZE = 65536;
|
|
30149
30154
|
class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
30150
30155
|
constructor(props) {
|
|
30151
30156
|
super({
|
|
@@ -30158,6 +30163,7 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30158
30163
|
this.ecgWidth = 0;
|
|
30159
30164
|
this.ecgHeight = 0;
|
|
30160
30165
|
this.channelScale = 0;
|
|
30166
|
+
this.layouts = [];
|
|
30161
30167
|
this.ecgCamera = {
|
|
30162
30168
|
panWorld: [0, 0],
|
|
30163
30169
|
parallelScale: 1,
|
|
@@ -30176,7 +30182,7 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30176
30182
|
return true;
|
|
30177
30183
|
};
|
|
30178
30184
|
this.getFrameOfReferenceUID = () => {
|
|
30179
|
-
return `ecg-viewport-${this.id}`;
|
|
30185
|
+
return (0,_GenericViewport_ECG_ecgWaveform_js__rspack_import_6/* .getECGFrameOfReferenceUID */.ZE)(this.imageId) ?? `ecg-viewport-${this.id}`;
|
|
30180
30186
|
};
|
|
30181
30187
|
this.resize = () => {
|
|
30182
30188
|
const canvas = this.canvas;
|
|
@@ -30187,7 +30193,6 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30187
30193
|
}
|
|
30188
30194
|
if (this.waveformData) {
|
|
30189
30195
|
this.computeChannelScale();
|
|
30190
|
-
this.recalculateHeight();
|
|
30191
30196
|
}
|
|
30192
30197
|
this.refreshRenderValues();
|
|
30193
30198
|
this.renderFrame();
|
|
@@ -30261,6 +30266,9 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30261
30266
|
this.getImageIds = () => {
|
|
30262
30267
|
return this.imageId ? [this.imageId] : [];
|
|
30263
30268
|
};
|
|
30269
|
+
this.getCurrentMode = () => {
|
|
30270
|
+
return this.waveformData ? 'ecg' : 'empty';
|
|
30271
|
+
};
|
|
30264
30272
|
this.scroll = () => {
|
|
30265
30273
|
};
|
|
30266
30274
|
this.customRenderViewportToCanvas = () => {
|
|
@@ -30275,7 +30283,7 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30275
30283
|
const m = transform.getMatrix();
|
|
30276
30284
|
const ctx = this.canvasContext;
|
|
30277
30285
|
ctx.resetTransform();
|
|
30278
|
-
ctx.fillStyle =
|
|
30286
|
+
ctx.fillStyle = _GenericViewport_ECG_ecgWaveform_js__rspack_import_6/* .ECG_RENDERING_COLORS.background */.gk.background;
|
|
30279
30287
|
ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);
|
|
30280
30288
|
ctx.setTransform(m[0] / dpr, m[1] / dpr, m[2] / dpr, m[3] / dpr, m[4] / dpr, m[5] / dpr);
|
|
30281
30289
|
const layouts = this.computeChannelLayouts();
|
|
@@ -30316,7 +30324,7 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30316
30324
|
async setEcg(imageId) {
|
|
30317
30325
|
this.clearDisplaySets();
|
|
30318
30326
|
this.imageId = imageId;
|
|
30319
|
-
const { waveform, calibration } = await (0,
|
|
30327
|
+
const { waveform, calibration } = await (0,_GenericViewport_ECG_ecgWaveform_js__rspack_import_6/* .loadECGWaveform */.Dt)(imageId);
|
|
30320
30328
|
this.channels = waveform.channels.map((channel) => ({
|
|
30321
30329
|
...channel,
|
|
30322
30330
|
visible: true,
|
|
@@ -30327,10 +30335,9 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30327
30335
|
multiplexGroupLabel: waveform.multiplexGroupLabel,
|
|
30328
30336
|
};
|
|
30329
30337
|
this.calibration = calibration;
|
|
30330
|
-
this.ecgWidth = Math.ceil((this.waveformData.numberOfSamples *
|
|
30338
|
+
this.ecgWidth = Math.ceil((this.waveformData.numberOfSamples * (/* inlined export .ECG_SECONDS_WIDTH */150)) /
|
|
30331
30339
|
this.waveformData.samplingFrequency);
|
|
30332
30340
|
this.computeChannelScale();
|
|
30333
|
-
this.recalculateHeight();
|
|
30334
30341
|
this.refreshRenderValues();
|
|
30335
30342
|
this.renderFrame();
|
|
30336
30343
|
}
|
|
@@ -30344,7 +30351,6 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30344
30351
|
if (index >= 0 && index < this.channels.length) {
|
|
30345
30352
|
this.channels[index].visible = visible;
|
|
30346
30353
|
this.computeChannelScale();
|
|
30347
|
-
this.recalculateHeight();
|
|
30348
30354
|
this.refreshRenderValues();
|
|
30349
30355
|
this.renderFrame();
|
|
30350
30356
|
}
|
|
@@ -30362,32 +30368,32 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30362
30368
|
return { width: this.ecgWidth, height: this.ecgHeight };
|
|
30363
30369
|
}
|
|
30364
30370
|
computeChannelScale() {
|
|
30365
|
-
|
|
30366
|
-
if (visibleChannels.length === 0 || this.ecgWidth === 0) {
|
|
30371
|
+
if (!this.waveformData || this.ecgWidth === 0) {
|
|
30367
30372
|
this.channelScale = 0;
|
|
30373
|
+
this.layouts = [];
|
|
30368
30374
|
return;
|
|
30369
30375
|
}
|
|
30370
|
-
|
|
30371
|
-
for (const channel of visibleChannels) {
|
|
30372
|
-
const range = channel.max - channel.min;
|
|
30373
|
-
maxRange = Math.max(maxRange, range);
|
|
30374
|
-
}
|
|
30376
|
+
const { numberOfSamples } = this.waveformData;
|
|
30375
30377
|
const canvasAspect = this.canvas.offsetHeight && this.canvas.offsetWidth
|
|
30376
30378
|
? this.canvas.offsetHeight / this.canvas.offsetWidth
|
|
30377
30379
|
: 2 / 3;
|
|
30378
|
-
const
|
|
30379
|
-
|
|
30380
|
-
|
|
30381
|
-
|
|
30382
|
-
|
|
30383
|
-
|
|
30384
|
-
|
|
30380
|
+
const cells = (0,_GenericViewport_ECG_ecgTraceLayouts_js__rspack_import_8/* .resolveECGTraceCells */._3)({
|
|
30381
|
+
definition: (0,_GenericViewport_ECG_ecgTraceLayouts_js__rspack_import_8/* .resolveECGTraceLayout */.Hw)('12x1', { channels: this.channels }),
|
|
30382
|
+
channels: this.channels,
|
|
30383
|
+
numberOfSamples,
|
|
30384
|
+
viewSampleWindow: [0, numberOfSamples],
|
|
30385
|
+
});
|
|
30386
|
+
const geometry = (0,_GenericViewport_ECG_ecgGeometry_js__rspack_import_7/* .computeECGTraceGeometry */.io)({
|
|
30387
|
+
cells,
|
|
30388
|
+
ecgWidth: this.ecgWidth,
|
|
30389
|
+
targetHeight: this.ecgWidth * canvasAspect,
|
|
30390
|
+
});
|
|
30391
|
+
this.channelScale = geometry.channelScale;
|
|
30392
|
+
this.ecgHeight = geometry.ecgHeight;
|
|
30393
|
+
this.layouts = geometry.layouts;
|
|
30385
30394
|
}
|
|
30386
30395
|
computeChannelLayouts() {
|
|
30387
|
-
return
|
|
30388
|
-
visibleChannels: (0,_utilities_ECGUtilities_js__rspack_import_6.getVisibleECGChannelsByFlag)(this.channels),
|
|
30389
|
-
channelScale: this.channelScale,
|
|
30390
|
-
});
|
|
30396
|
+
return this.layouts;
|
|
30391
30397
|
}
|
|
30392
30398
|
setProperties(props) {
|
|
30393
30399
|
if (props.visibleChannels !== undefined) {
|
|
@@ -30395,7 +30401,6 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30395
30401
|
this.channels[i].visible = props.visibleChannels.includes(i);
|
|
30396
30402
|
}
|
|
30397
30403
|
this.computeChannelScale();
|
|
30398
|
-
this.recalculateHeight();
|
|
30399
30404
|
this.refreshRenderValues();
|
|
30400
30405
|
this.renderFrame();
|
|
30401
30406
|
}
|
|
@@ -30405,7 +30410,6 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30405
30410
|
channel.visible = true;
|
|
30406
30411
|
}
|
|
30407
30412
|
this.computeChannelScale();
|
|
30408
|
-
this.recalculateHeight();
|
|
30409
30413
|
this.refreshRenderValues();
|
|
30410
30414
|
this.renderFrame();
|
|
30411
30415
|
}
|
|
@@ -30430,7 +30434,7 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30430
30434
|
this.ecgCamera.panWorld[1] - panWorldDelta[1],
|
|
30431
30435
|
];
|
|
30432
30436
|
}
|
|
30433
|
-
this.canvasContext.fillStyle =
|
|
30437
|
+
this.canvasContext.fillStyle = _GenericViewport_ECG_ecgWaveform_js__rspack_import_6/* .ECG_RENDERING_COLORS.background */.gk.background;
|
|
30434
30438
|
this.canvasContext.fillRect(0, 0, this.canvas.width, this.canvas.height);
|
|
30435
30439
|
this.renderFrame();
|
|
30436
30440
|
}
|
|
@@ -30454,6 +30458,14 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30454
30458
|
const panWorld = this.ecgCamera.panWorld;
|
|
30455
30459
|
return [panWorld[0], panWorld[1]];
|
|
30456
30460
|
}
|
|
30461
|
+
getViewReference(specifier = {}) {
|
|
30462
|
+
const viewReference = super.getViewReference(specifier);
|
|
30463
|
+
const lead = specifier.points?.[0]?.[2];
|
|
30464
|
+
if (Number.isFinite(lead)) {
|
|
30465
|
+
viewReference.sliceIndex = Math.round(lead);
|
|
30466
|
+
}
|
|
30467
|
+
return viewReference;
|
|
30468
|
+
}
|
|
30457
30469
|
getViewReferenceId(_specifier) {
|
|
30458
30470
|
return `imageId:${this.imageId}`;
|
|
30459
30471
|
}
|
|
@@ -30473,14 +30485,16 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30473
30485
|
if (!this.ecgWidth || !this.ecgHeight) {
|
|
30474
30486
|
return;
|
|
30475
30487
|
}
|
|
30476
|
-
|
|
30477
|
-
|
|
30478
|
-
|
|
30488
|
+
const canvasWidth = this.canvas.offsetWidth || this.canvas.width || this.ecgWidth;
|
|
30489
|
+
const canvasHeight = this.canvas.offsetHeight || this.canvas.height || this.ecgHeight;
|
|
30490
|
+
let worldToCanvasRatio = canvasWidth / this.ecgWidth;
|
|
30491
|
+
if (this.ecgHeight * worldToCanvasRatio > canvasHeight) {
|
|
30492
|
+
worldToCanvasRatio = canvasHeight / this.ecgHeight;
|
|
30479
30493
|
}
|
|
30480
30494
|
const drawWidth = Math.floor(this.ecgWidth * worldToCanvasRatio);
|
|
30481
30495
|
const drawHeight = Math.floor(this.ecgHeight * worldToCanvasRatio);
|
|
30482
|
-
const xOffsetCanvas = (
|
|
30483
|
-
const yOffsetCanvas = (
|
|
30496
|
+
const xOffsetCanvas = (canvasWidth - drawWidth) / 2;
|
|
30497
|
+
const yOffsetCanvas = (canvasHeight - drawHeight) / 2;
|
|
30484
30498
|
const xOffsetWorld = xOffsetCanvas / worldToCanvasRatio;
|
|
30485
30499
|
const yOffsetWorld = yOffsetCanvas / worldToCanvasRatio;
|
|
30486
30500
|
this.ecgCamera.panWorld = [xOffsetWorld, yOffsetWorld];
|
|
@@ -30511,22 +30525,17 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30511
30525
|
return transform;
|
|
30512
30526
|
}
|
|
30513
30527
|
drawGrid(ctx) {
|
|
30514
|
-
(0,
|
|
30528
|
+
(0,_GenericViewport_ECG_ecgDrawing_js__rspack_import_9/* .drawECGGrid */.Ce)(ctx, {
|
|
30515
30529
|
ecgWidth: this.ecgWidth,
|
|
30516
30530
|
ecgHeight: this.ecgHeight,
|
|
30517
30531
|
channelScale: this.channelScale,
|
|
30518
30532
|
});
|
|
30519
30533
|
}
|
|
30520
30534
|
drawTraces(ctx, layouts) {
|
|
30521
|
-
(0,
|
|
30522
|
-
ctx,
|
|
30523
|
-
layouts,
|
|
30524
|
-
ecgWidth: this.ecgWidth,
|
|
30525
|
-
channelScale: this.channelScale,
|
|
30526
|
-
});
|
|
30535
|
+
(0,_GenericViewport_ECG_ecgDrawing_js__rspack_import_9/* .drawECGTraces */.aL)({ ctx, layouts });
|
|
30527
30536
|
}
|
|
30528
30537
|
drawLabels(ctx, layouts) {
|
|
30529
|
-
(0,
|
|
30538
|
+
(0,_GenericViewport_ECG_ecgDrawing_js__rspack_import_9/* .drawECGLabels */.z0)(ctx, layouts, this.getWorldToCanvasRatio());
|
|
30530
30539
|
}
|
|
30531
30540
|
getImageData() {
|
|
30532
30541
|
if (!this.waveformData) {
|
|
@@ -30534,11 +30543,11 @@ class ECGViewport extends _Viewport_js__rspack_import_3/* ["default"] */.A {
|
|
|
30534
30543
|
}
|
|
30535
30544
|
const nSamples = this.waveformData.numberOfSamples;
|
|
30536
30545
|
const nChannels = this.waveformData.numberOfChannels;
|
|
30537
|
-
const dimensions = [nSamples, ECG_AMPLITUDE_INDEX_SIZE, nChannels];
|
|
30546
|
+
const dimensions = [nSamples, _GenericViewport_ECG_ecgWaveform_js__rspack_import_6/* .ECG_AMPLITUDE_INDEX_SIZE */.Fi, nChannels];
|
|
30538
30547
|
const spacing = [1, 1, 1];
|
|
30539
30548
|
const origin = [0, 0, 0];
|
|
30540
30549
|
const direction = [1, 0, 0, 0, 1, 0, 0, 0, 1];
|
|
30541
|
-
const amplitudeOffset = ECG_AMPLITUDE_INDEX_SIZE / 2;
|
|
30550
|
+
const amplitudeOffset = _GenericViewport_ECG_ecgWaveform_js__rspack_import_6/* .ECG_AMPLITUDE_INDEX_SIZE */.Fi / 2;
|
|
30542
30551
|
const imageData = {
|
|
30543
30552
|
getDirection: () => direction,
|
|
30544
30553
|
getDimensions: () => dimensions,
|
|
@@ -30610,14 +30619,16 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30610
30619
|
},
|
|
30611
30620
|
25499(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
30612
30621
|
"use strict";
|
|
30613
|
-
/* import */ var
|
|
30622
|
+
/* import */ var _ecgWaveform_js__rspack_import_0 = __webpack_require__(59076);
|
|
30614
30623
|
/* import */ var _genericViewportDisplaySetAccess_js__rspack_import_1 = __webpack_require__(95023);
|
|
30615
30624
|
|
|
30616
30625
|
|
|
30617
30626
|
class DefaultECGDataProvider {
|
|
30618
|
-
async load(dataId) {
|
|
30627
|
+
async load(dataId, options) {
|
|
30619
30628
|
const sourceDataId = (0,_genericViewportDisplaySetAccess_js__rspack_import_1/* .getGenericViewportSourceDataId */._d)(dataId);
|
|
30620
|
-
const { waveform } = await (0,
|
|
30629
|
+
const { waveform } = await (0,_ecgWaveform_js__rspack_import_0/* .loadECGWaveform */.Dt)(sourceDataId, {
|
|
30630
|
+
multiplexGroupIndex: options?.multiplexGroupIndex,
|
|
30631
|
+
});
|
|
30621
30632
|
return {
|
|
30622
30633
|
id: dataId,
|
|
30623
30634
|
type: 'ecg',
|
|
@@ -30648,62 +30659,36 @@ var DefaultRenderPathResolver = __webpack_require__(65336);
|
|
|
30648
30659
|
var enums = __webpack_require__(71088);
|
|
30649
30660
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/utilities/triggerEvent.js
|
|
30650
30661
|
var triggerEvent = __webpack_require__(84444);
|
|
30651
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/
|
|
30652
|
-
var
|
|
30653
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/GenericViewport/ECG/ecgViewportCamera.js
|
|
30654
|
-
var ecgViewportCamera = __webpack_require__(93502);
|
|
30662
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/GenericViewport/ECG/ecgDrawing.js
|
|
30663
|
+
var ecgDrawing = __webpack_require__(8413);
|
|
30655
30664
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/GenericViewport/ECG/CanvasECGRenderPath.js
|
|
30656
30665
|
|
|
30657
30666
|
|
|
30658
30667
|
|
|
30659
|
-
|
|
30660
30668
|
class CanvasECGRenderPath {
|
|
30661
|
-
async addData(ctx,
|
|
30662
|
-
const waveform = data;
|
|
30669
|
+
async addData(ctx, _data, _options) {
|
|
30663
30670
|
const rendering = {
|
|
30664
30671
|
renderMode: 'signal2d',
|
|
30665
30672
|
canvas: ctx.canvas,
|
|
30666
30673
|
canvasContext: ctx.canvasContext,
|
|
30667
|
-
metrics: {
|
|
30668
|
-
ecgWidth: 1,
|
|
30669
|
-
ecgHeight: 1,
|
|
30670
|
-
channelScale: 1,
|
|
30671
|
-
worldToCanvasRatio: 1,
|
|
30672
|
-
xOffsetCanvas: 0,
|
|
30673
|
-
yOffsetCanvas: 0,
|
|
30674
|
-
},
|
|
30675
30674
|
};
|
|
30676
30675
|
return {
|
|
30677
30676
|
rendering,
|
|
30678
|
-
updateDataPresentation: (
|
|
30679
|
-
this.updateDataPresentation(rendering, props);
|
|
30677
|
+
updateDataPresentation: () => {
|
|
30680
30678
|
},
|
|
30681
|
-
applyViewState: (
|
|
30682
|
-
this.applyViewState(rendering, camera);
|
|
30679
|
+
applyViewState: () => {
|
|
30683
30680
|
},
|
|
30684
30681
|
getFrameOfReferenceUID: () => {
|
|
30685
|
-
return
|
|
30682
|
+
return ctx.getResolvedView()?.getFrameOfReferenceUID();
|
|
30686
30683
|
},
|
|
30687
30684
|
render: () => {
|
|
30688
|
-
|
|
30685
|
+
drawFrame(ctx);
|
|
30689
30686
|
},
|
|
30690
30687
|
removeData: () => {
|
|
30691
30688
|
this.removeData();
|
|
30692
30689
|
},
|
|
30693
30690
|
};
|
|
30694
30691
|
}
|
|
30695
|
-
updateDataPresentation(rendering, props) {
|
|
30696
|
-
rendering.currentDataPresentation = props;
|
|
30697
|
-
}
|
|
30698
|
-
applyViewState(rendering, camera) {
|
|
30699
|
-
rendering.currentCamera = camera;
|
|
30700
|
-
}
|
|
30701
|
-
getFrameOfReferenceUID(ctx) {
|
|
30702
|
-
return `ecg-viewport-${ctx.viewportId}`;
|
|
30703
|
-
}
|
|
30704
|
-
render(ctx, rendering, waveform) {
|
|
30705
|
-
drawFrame(ctx, rendering, waveform);
|
|
30706
|
-
}
|
|
30707
30692
|
removeData() {
|
|
30708
30693
|
}
|
|
30709
30694
|
}
|
|
@@ -30719,82 +30704,49 @@ class CanvasECGPath {
|
|
|
30719
30704
|
return new CanvasECGRenderPath();
|
|
30720
30705
|
}
|
|
30721
30706
|
}
|
|
30722
|
-
function
|
|
30723
|
-
const
|
|
30724
|
-
|
|
30725
|
-
|
|
30726
|
-
|
|
30727
|
-
});
|
|
30728
|
-
return {
|
|
30729
|
-
effectiveRatio: mapping.effectiveRatio,
|
|
30730
|
-
xOffset: mapping.xOffset,
|
|
30731
|
-
yOffset: mapping.yOffset,
|
|
30732
|
-
};
|
|
30733
|
-
}
|
|
30734
|
-
function computeTimeWindow(waveform, camera) {
|
|
30735
|
-
const durationMs = (waveform.numberOfSamples / waveform.samplingFrequency) * 1000;
|
|
30736
|
-
const startMs = Math.max(0, Math.min(camera.timeRange[0], durationMs));
|
|
30737
|
-
const requestedEnd = Math.max(startMs + 1, camera.timeRange[1]);
|
|
30738
|
-
const endMs = Math.max(startMs + 1, Math.min(requestedEnd, durationMs));
|
|
30739
|
-
const startIndex = Math.max(0, Math.min(waveform.numberOfSamples - 1, Math.floor((startMs / 1000) * waveform.samplingFrequency)));
|
|
30740
|
-
const endIndex = Math.max(startIndex + 1, Math.min(waveform.numberOfSamples, Math.ceil((endMs / 1000) * waveform.samplingFrequency)));
|
|
30741
|
-
return {
|
|
30742
|
-
startMs,
|
|
30743
|
-
endMs,
|
|
30744
|
-
startIndex,
|
|
30745
|
-
endIndex,
|
|
30746
|
-
};
|
|
30747
|
-
}
|
|
30748
|
-
function drawFrame(ecgCtx, ecgRendering, waveform) {
|
|
30749
|
-
const { canvas, canvasContext, currentCamera, currentDataPresentation } = ecgRendering;
|
|
30750
|
-
if (!currentCamera) {
|
|
30707
|
+
function drawFrame(ecgCtx) {
|
|
30708
|
+
const { canvas, canvasContext } = ecgCtx;
|
|
30709
|
+
(0,ecgDrawing/* .ensureECGCanvasSize */.zf)(canvas);
|
|
30710
|
+
const resolvedView = ecgCtx.getResolvedView();
|
|
30711
|
+
if (!resolvedView) {
|
|
30751
30712
|
return;
|
|
30752
30713
|
}
|
|
30753
|
-
const
|
|
30754
|
-
|
|
30755
|
-
const metrics =
|
|
30756
|
-
|
|
30757
|
-
|
|
30758
|
-
windowMs: Math.max(1, currentCamera.timeRange[1] - currentCamera.timeRange[0]),
|
|
30759
|
-
valueRange: currentCamera.valueRange,
|
|
30760
|
-
});
|
|
30761
|
-
const layouts = (0,ECGUtilities.computeECGChannelLayouts)({
|
|
30762
|
-
visibleChannels,
|
|
30763
|
-
channelScale: metrics.channelScale,
|
|
30764
|
-
});
|
|
30765
|
-
const timeWindow = computeTimeWindow(waveform, currentCamera);
|
|
30714
|
+
const viewState = resolvedView.state.viewState;
|
|
30715
|
+
const dataPresentation = resolvedView.state.dataPresentation;
|
|
30716
|
+
const metrics = resolvedView.metrics;
|
|
30717
|
+
const layouts = resolvedView.channelLayouts;
|
|
30718
|
+
const { effectiveRatio, xOffset, yOffset } = resolvedView.canvasTransform;
|
|
30766
30719
|
const dpr = window.devicePixelRatio || 1;
|
|
30767
|
-
ecgRendering.metrics = metrics;
|
|
30768
|
-
const { effectiveRatio, xOffset, yOffset } = getEffectiveTransform(metrics, currentCamera, canvas);
|
|
30769
30720
|
canvasContext.resetTransform();
|
|
30770
30721
|
canvasContext.fillStyle = '#000000';
|
|
30771
30722
|
canvasContext.fillRect(0, 0, canvas.width, canvas.height);
|
|
30772
|
-
if (
|
|
30723
|
+
if (dataPresentation?.visible === false) {
|
|
30773
30724
|
return;
|
|
30774
30725
|
}
|
|
30775
|
-
canvasContext.globalAlpha =
|
|
30726
|
+
canvasContext.globalAlpha = dataPresentation?.opacity ?? 1;
|
|
30776
30727
|
canvasContext.setTransform(effectiveRatio * dpr, 0, 0, effectiveRatio * dpr, xOffset * dpr, yOffset * dpr);
|
|
30777
|
-
(0,
|
|
30778
|
-
|
|
30779
|
-
|
|
30780
|
-
|
|
30728
|
+
(0,ecgDrawing/* .drawECGGrid */.Ce)(canvasContext, {
|
|
30729
|
+
...metrics,
|
|
30730
|
+
sensitivityMmMv: viewState.sensitivityMmMv,
|
|
30731
|
+
showAmplitudeLabels: dataPresentation?.showAmplitudeLabels,
|
|
30732
|
+
}, {
|
|
30733
|
+
showGrid: dataPresentation?.showGrid,
|
|
30734
|
+
bounds: resolvedView.canvasBounds,
|
|
30735
|
+
}, layouts);
|
|
30736
|
+
(0,ecgDrawing/* .drawECGTraces */.aL)({
|
|
30781
30737
|
ctx: canvasContext,
|
|
30782
30738
|
layouts,
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
startIndex: timeWindow.startIndex,
|
|
30786
|
-
endIndex: timeWindow.endIndex,
|
|
30787
|
-
lineWidth: currentDataPresentation?.lineWidth,
|
|
30788
|
-
amplitudeScale: currentDataPresentation?.amplitudeScale,
|
|
30739
|
+
lineWidth: dataPresentation?.lineWidth,
|
|
30740
|
+
amplitudeScale: resolvedView.amplitudeScale,
|
|
30789
30741
|
});
|
|
30790
|
-
(0,ECGUtilities.drawECGLabels)(canvasContext, layouts, metrics.worldToCanvasRatio);
|
|
30791
30742
|
canvasContext.resetTransform();
|
|
30743
|
+
(0,ecgDrawing/* .drawECGCanvasLabels */.Rt)(canvasContext, layouts, resolvedView.canvasTransform, dpr);
|
|
30792
30744
|
canvasContext.globalAlpha = 1;
|
|
30793
30745
|
(0,triggerEvent/* ["default"] */.A)(ecgCtx.element, enums.Events.IMAGE_RENDERED, {
|
|
30794
30746
|
element: ecgCtx.element,
|
|
30795
30747
|
viewportId: ecgCtx.viewportId,
|
|
30796
30748
|
renderingEngineId: ecgCtx.renderingEngineId,
|
|
30797
|
-
|
|
30749
|
+
resolvedView,
|
|
30798
30750
|
});
|
|
30799
30751
|
}
|
|
30800
30752
|
|
|
@@ -30815,11 +30767,17 @@ function createECGRenderPathResolver(paths = createDefaultECGRenderPaths()) {
|
|
|
30815
30767
|
/* import */ var _helpers_getOrCreateCanvas_js__rspack_import_0 = __webpack_require__(567);
|
|
30816
30768
|
/* import */ var _GenericViewport_js__rspack_import_1 = __webpack_require__(13991);
|
|
30817
30769
|
/* import */ var _enums_index_js__rspack_import_2 = __webpack_require__(71088);
|
|
30818
|
-
/* import */ var
|
|
30819
|
-
/* import */ var
|
|
30820
|
-
/* import */ var
|
|
30821
|
-
/* import */ var
|
|
30822
|
-
/* import */ var
|
|
30770
|
+
/* import */ var _ecgWaveform_js__rspack_import_3 = __webpack_require__(59076);
|
|
30771
|
+
/* import */ var _genericViewportDisplaySetAccess_js__rspack_import_4 = __webpack_require__(95023);
|
|
30772
|
+
/* import */ var _utilities_imageIdToURI_js__rspack_import_5 = __webpack_require__(60465);
|
|
30773
|
+
/* import */ var _DefaultECGDataProvider_js__rspack_import_6 = __webpack_require__(25499);
|
|
30774
|
+
/* import */ var _ECGRenderPathResolver_js__rspack_import_7 = __webpack_require__(92925);
|
|
30775
|
+
/* import */ var _ecgTraceLayouts_js__rspack_import_8 = __webpack_require__(1571);
|
|
30776
|
+
/* import */ var _ecgViewportCamera_js__rspack_import_9 = __webpack_require__(93502);
|
|
30777
|
+
/* import */ var _ECGResolvedView_js__rspack_import_10 = __webpack_require__(11750);
|
|
30778
|
+
|
|
30779
|
+
|
|
30780
|
+
|
|
30823
30781
|
|
|
30824
30782
|
|
|
30825
30783
|
|
|
@@ -30828,7 +30786,6 @@ function createECGRenderPathResolver(paths = createDefaultECGRenderPaths()) {
|
|
|
30828
30786
|
|
|
30829
30787
|
|
|
30830
30788
|
|
|
30831
|
-
const ECG_AMPLITUDE_INDEX_SIZE = 65536;
|
|
30832
30789
|
class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.A {
|
|
30833
30790
|
static get useCustomRenderingPipeline() {
|
|
30834
30791
|
return true;
|
|
@@ -30842,9 +30799,9 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
30842
30799
|
this.renderingEngineId = args.renderingEngineId;
|
|
30843
30800
|
this.canvas = (0,_helpers_getOrCreateCanvas_js__rspack_import_0/* ["default"] */.Ay)(this.element);
|
|
30844
30801
|
this.canvasContext = this.canvas.getContext('2d');
|
|
30845
|
-
this.dataProvider = args.dataProvider || new
|
|
30802
|
+
this.dataProvider = args.dataProvider || new _DefaultECGDataProvider_js__rspack_import_6/* .DefaultECGDataProvider */.c();
|
|
30846
30803
|
this.renderPathResolver =
|
|
30847
|
-
args.renderPathResolver || (0,
|
|
30804
|
+
args.renderPathResolver || (0,_ECGRenderPathResolver_js__rspack_import_7/* .createECGRenderPathResolver */.X)();
|
|
30848
30805
|
this.renderContext = {
|
|
30849
30806
|
viewportId: this.id,
|
|
30850
30807
|
type: 'ecg',
|
|
@@ -30852,10 +30809,12 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
30852
30809
|
element: this.element,
|
|
30853
30810
|
canvas: this.canvas,
|
|
30854
30811
|
canvasContext: this.canvasContext,
|
|
30812
|
+
getResolvedView: () => this.getResolvedView(),
|
|
30855
30813
|
};
|
|
30856
|
-
this.viewState = (0,
|
|
30814
|
+
this.viewState = (0,_ecgViewportCamera_js__rspack_import_9/* .createDefaultECGViewState */.hl)({
|
|
30857
30815
|
timeRange: [0, 1],
|
|
30858
30816
|
valueRange: [-1, 1],
|
|
30817
|
+
traceLayout: args.defaultOptions?.traceLayout,
|
|
30859
30818
|
});
|
|
30860
30819
|
this.element.setAttribute('data-viewport-uid', this.id);
|
|
30861
30820
|
this.element.setAttribute('data-rendering-engine-uid', this.renderingEngineId);
|
|
@@ -30863,38 +30822,82 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
30863
30822
|
}
|
|
30864
30823
|
async setDisplaySets(...entries) {
|
|
30865
30824
|
this.removeAllData();
|
|
30866
|
-
for (const { displaySetId } of entries) {
|
|
30867
|
-
const waveform = await this.loadWaveformData(displaySetId);
|
|
30825
|
+
for (const { displaySetId, options } of entries) {
|
|
30826
|
+
const waveform = await this.loadWaveformData(displaySetId, options);
|
|
30868
30827
|
const durationMs = (waveform.numberOfSamples / waveform.samplingFrequency) * 1000;
|
|
30828
|
+
const { traceLayout, sweepSpeed, sensitivityMmMv, amplitudeScale } = this.viewState;
|
|
30869
30829
|
this.setDefaultDataPresentation(displaySetId, {
|
|
30870
30830
|
visible: true,
|
|
30871
30831
|
opacity: 1,
|
|
30872
|
-
visibleChannels: waveform.channels.map((_channel, index) => index),
|
|
30873
30832
|
lineWidth: 1,
|
|
30874
|
-
amplitudeScale: 1,
|
|
30875
30833
|
showGrid: true,
|
|
30876
30834
|
});
|
|
30877
|
-
this.viewState = (0,
|
|
30835
|
+
this.viewState = (0,_ecgViewportCamera_js__rspack_import_9/* .createDefaultECGViewState */.hl)({
|
|
30878
30836
|
timeRange: [0, durationMs],
|
|
30879
|
-
valueRange: (0,
|
|
30837
|
+
valueRange: (0,_ecgWaveform_js__rspack_import_3/* .getDefaultECGValueRange */.dz)(waveform),
|
|
30838
|
+
traceLayout,
|
|
30839
|
+
sweepSpeed,
|
|
30840
|
+
sensitivityMmMv,
|
|
30841
|
+
amplitudeScale,
|
|
30880
30842
|
});
|
|
30843
|
+
warnIfAmplitudeScaleIgnored(this.viewState);
|
|
30881
30844
|
await this.addLoadedData(displaySetId, waveform, {
|
|
30882
30845
|
renderMode: 'signal2d',
|
|
30883
30846
|
});
|
|
30884
30847
|
}
|
|
30885
30848
|
}
|
|
30849
|
+
getTraceLayoutNames() {
|
|
30850
|
+
const waveform = this.getWaveformData();
|
|
30851
|
+
return (0,_ecgTraceLayouts_js__rspack_import_8/* .getECGTraceLayoutNames */.JS)(waveform
|
|
30852
|
+
? {
|
|
30853
|
+
channels: waveform.channels,
|
|
30854
|
+
numberOfSamples: waveform.numberOfSamples,
|
|
30855
|
+
samplingFrequency: waveform.samplingFrequency,
|
|
30856
|
+
}
|
|
30857
|
+
: undefined);
|
|
30858
|
+
}
|
|
30859
|
+
getSweepSpeed() {
|
|
30860
|
+
return this.viewState.sweepSpeed ?? (/* inlined export .ECG_DEFAULT_SWEEP_SPEED_MM_S */25);
|
|
30861
|
+
}
|
|
30862
|
+
setSweepSpeed(speed) {
|
|
30863
|
+
this.setViewState({ sweepSpeed: speed });
|
|
30864
|
+
}
|
|
30865
|
+
getSensitivity() {
|
|
30866
|
+
return this.viewState.sensitivityMmMv;
|
|
30867
|
+
}
|
|
30868
|
+
setSensitivity(sensitivity) {
|
|
30869
|
+
this.setViewState({ sensitivityMmMv: sensitivity });
|
|
30870
|
+
}
|
|
30886
30871
|
getWaveformData() {
|
|
30887
30872
|
return this.getWaveformBindingData() ?? null;
|
|
30888
30873
|
}
|
|
30889
|
-
|
|
30874
|
+
getCurrentMode() {
|
|
30875
|
+
return this.getWaveformData() ? 'ecg' : 'empty';
|
|
30876
|
+
}
|
|
30877
|
+
getViewReference(specifier = {}) {
|
|
30890
30878
|
const dataId = this.getFirstBinding()?.data.id;
|
|
30879
|
+
const lead = specifier.points?.[0]?.[2];
|
|
30891
30880
|
return {
|
|
30892
30881
|
FrameOfReferenceUID: this.getFrameOfReferenceUID(),
|
|
30893
30882
|
dataId,
|
|
30894
30883
|
referencedImageId: this.getCurrentImageId(),
|
|
30895
|
-
sliceIndex:
|
|
30884
|
+
...(Number.isFinite(lead) ? { sliceIndex: Math.round(lead) } : {}),
|
|
30896
30885
|
};
|
|
30897
30886
|
}
|
|
30887
|
+
isReferenceViewable(viewReference, options = {}) {
|
|
30888
|
+
if (!viewReference) {
|
|
30889
|
+
return false;
|
|
30890
|
+
}
|
|
30891
|
+
const { sliceIndex, ...recordReference } = viewReference;
|
|
30892
|
+
if (!super.isReferenceViewable(recordReference, options)) {
|
|
30893
|
+
return false;
|
|
30894
|
+
}
|
|
30895
|
+
if (typeof sliceIndex !== 'number') {
|
|
30896
|
+
return true;
|
|
30897
|
+
}
|
|
30898
|
+
const resolvedView = this.getResolvedView();
|
|
30899
|
+
return !resolvedView || !!resolvedView.findLayoutForZ(sliceIndex);
|
|
30900
|
+
}
|
|
30898
30901
|
getViewReferenceId(_specifier = {}) {
|
|
30899
30902
|
return `imageId:${this.getCurrentImageId()}`;
|
|
30900
30903
|
}
|
|
@@ -30907,7 +30910,7 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
30907
30910
|
return (this.getResolvedView()?.zoom ?? Math.max(this.viewState.scale ?? 1, 0.001));
|
|
30908
30911
|
}
|
|
30909
30912
|
normalizeViewState(viewState) {
|
|
30910
|
-
return (0,
|
|
30913
|
+
return (0,_ecgViewportCamera_js__rspack_import_9/* .normalizeECGViewState */.$3)(viewState);
|
|
30911
30914
|
}
|
|
30912
30915
|
getReferenceViewContexts() {
|
|
30913
30916
|
const binding = this.getFirstBinding();
|
|
@@ -30919,7 +30922,7 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
30919
30922
|
dataId: binding.data.id,
|
|
30920
30923
|
dataIds: [binding.data.id],
|
|
30921
30924
|
frameOfReferenceUID: this.getFrameOfReferenceUID(),
|
|
30922
|
-
imageIds:
|
|
30925
|
+
imageIds: this.getImageIds(),
|
|
30923
30926
|
currentImageIdIndex: 0,
|
|
30924
30927
|
},
|
|
30925
30928
|
];
|
|
@@ -30950,8 +30953,7 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
30950
30953
|
if (!waveform) {
|
|
30951
30954
|
return [];
|
|
30952
30955
|
}
|
|
30953
|
-
const
|
|
30954
|
-
const visibleChannels = new Set(this.getDisplaySetPresentation(dataId)?.visibleChannels ||
|
|
30956
|
+
const visibleChannels = new Set(this.viewState.visibleChannels ||
|
|
30955
30957
|
waveform.channels.map((_channel, index) => index));
|
|
30956
30958
|
return waveform.channels.map((channel, index) => ({
|
|
30957
30959
|
name: channel.name,
|
|
@@ -30959,13 +30961,13 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
30959
30961
|
}));
|
|
30960
30962
|
}
|
|
30961
30963
|
getContentDimensions() {
|
|
30962
|
-
const
|
|
30963
|
-
if (!
|
|
30964
|
+
const resolvedView = this.getResolvedView();
|
|
30965
|
+
if (!resolvedView) {
|
|
30964
30966
|
return { width: 0, height: 0 };
|
|
30965
30967
|
}
|
|
30966
30968
|
return {
|
|
30967
|
-
width:
|
|
30968
|
-
height:
|
|
30969
|
+
width: resolvedView.metrics.ecgWidth,
|
|
30970
|
+
height: resolvedView.metrics.ecgHeight,
|
|
30969
30971
|
};
|
|
30970
30972
|
}
|
|
30971
30973
|
resize() {
|
|
@@ -30984,44 +30986,94 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
30984
30986
|
customRenderViewportToCanvas() {
|
|
30985
30987
|
this.render();
|
|
30986
30988
|
}
|
|
30987
|
-
resetViewState() {
|
|
30988
|
-
const
|
|
30989
|
-
|
|
30990
|
-
|
|
30991
|
-
|
|
30992
|
-
|
|
30993
|
-
|
|
30989
|
+
resetViewState(options) {
|
|
30990
|
+
const { resetPan = true, resetZoom = true, resetTimeRange = false, } = options || {};
|
|
30991
|
+
const nextViewState = { scrollOffset: 0 };
|
|
30992
|
+
if (resetPan) {
|
|
30993
|
+
nextViewState.anchorWorld = undefined;
|
|
30994
|
+
nextViewState.anchorCanvas = [0.5, 0.5];
|
|
30995
|
+
}
|
|
30996
|
+
if (resetZoom) {
|
|
30997
|
+
nextViewState.scale = 1;
|
|
30998
|
+
nextViewState.scaleMode = 'fit';
|
|
30999
|
+
}
|
|
31000
|
+
if (resetTimeRange) {
|
|
31001
|
+
nextViewState.timeRange = [0, this.getDurationMs()];
|
|
31002
|
+
}
|
|
31003
|
+
this.setViewState(nextViewState);
|
|
30994
31004
|
this.triggerCameraResetEvent();
|
|
30995
31005
|
return true;
|
|
30996
31006
|
}
|
|
30997
31007
|
getRotation() {
|
|
30998
31008
|
return 0;
|
|
30999
31009
|
}
|
|
31000
|
-
scroll() {
|
|
31010
|
+
async scroll(delta = 1) {
|
|
31011
|
+
const timeWindow = this.getResolvedView()?.timeWindow;
|
|
31012
|
+
if (timeWindow) {
|
|
31013
|
+
const windowMs = Math.max(1, timeWindow.endMs - timeWindow.startMs);
|
|
31014
|
+
this.scrollToTime(timeWindow.startMs + windowMs * delta);
|
|
31015
|
+
}
|
|
31016
|
+
return this.getCurrentImageId();
|
|
31017
|
+
}
|
|
31018
|
+
scrollToTime(timeMs) {
|
|
31019
|
+
const timeWindow = this.getResolvedView()?.timeWindow;
|
|
31020
|
+
const durationMs = this.getDurationMs();
|
|
31021
|
+
if (!timeWindow) {
|
|
31022
|
+
return;
|
|
31023
|
+
}
|
|
31024
|
+
const windowMs = Math.max(1, timeWindow.endMs - timeWindow.startMs);
|
|
31025
|
+
if (windowMs >= durationMs) {
|
|
31026
|
+
return;
|
|
31027
|
+
}
|
|
31028
|
+
const nextStart = Math.max(0, Math.min(timeMs, durationMs - windowMs));
|
|
31029
|
+
if (nextStart === timeWindow.startMs) {
|
|
31030
|
+
return;
|
|
31031
|
+
}
|
|
31032
|
+
this.setViewState({ timeRange: [nextStart, nextStart + windowMs] });
|
|
31033
|
+
}
|
|
31034
|
+
getDurationMs() {
|
|
31035
|
+
const waveform = this.getWaveformData();
|
|
31036
|
+
if (!waveform) {
|
|
31037
|
+
return 0;
|
|
31038
|
+
}
|
|
31039
|
+
return (waveform.numberOfSamples / waveform.samplingFrequency) * 1000;
|
|
31040
|
+
}
|
|
31041
|
+
getSourceDataId() {
|
|
31042
|
+
return this.getFirstBinding()?.data.id;
|
|
31001
31043
|
}
|
|
31002
31044
|
getCurrentImageId() {
|
|
31003
|
-
const
|
|
31004
|
-
return
|
|
31045
|
+
const dataId = this.getSourceDataId();
|
|
31046
|
+
return dataId ? (0,_genericViewportDisplaySetAccess_js__rspack_import_4/* .getGenericViewportSourceDataId */._d)(dataId) : undefined;
|
|
31005
31047
|
}
|
|
31006
31048
|
getCurrentImageIdIndex() {
|
|
31007
31049
|
return 0;
|
|
31008
31050
|
}
|
|
31009
31051
|
getImageIds() {
|
|
31010
|
-
const
|
|
31011
|
-
return
|
|
31052
|
+
const imageId = this.getCurrentImageId();
|
|
31053
|
+
return imageId ? [imageId] : [];
|
|
31054
|
+
}
|
|
31055
|
+
hasImageId(imageId) {
|
|
31056
|
+
return this.getImageIds().includes(imageId);
|
|
31057
|
+
}
|
|
31058
|
+
hasImageURI(imageURI) {
|
|
31059
|
+
const imageId = this.getCurrentImageId();
|
|
31060
|
+
return (!!imageId && (imageId === imageURI || (0,_utilities_imageIdToURI_js__rspack_import_5/* ["default"] */.A)(imageId) === imageURI));
|
|
31012
31061
|
}
|
|
31013
31062
|
getImageData() {
|
|
31014
31063
|
const waveform = this.getWaveformBindingData();
|
|
31015
31064
|
if (!waveform) {
|
|
31016
|
-
return
|
|
31065
|
+
return undefined;
|
|
31017
31066
|
}
|
|
31018
31067
|
const nSamples = waveform.numberOfSamples;
|
|
31019
|
-
const
|
|
31020
|
-
|
|
31068
|
+
const dimensions = [
|
|
31069
|
+
nSamples,
|
|
31070
|
+
_ecgWaveform_js__rspack_import_3/* .ECG_AMPLITUDE_INDEX_SIZE */.Fi,
|
|
31071
|
+
(/* inlined export .ECG_LEAD_COPY_STRIDE */1000) * (/* inlined export .ECG_LEAD_COPY_STRIDE */1000),
|
|
31072
|
+
];
|
|
31021
31073
|
const spacing = [1, 1, 1];
|
|
31022
31074
|
const origin = [0, 0, 0];
|
|
31023
31075
|
const direction = [1, 0, 0, 0, 1, 0, 0, 0, 1];
|
|
31024
|
-
const amplitudeOffset = ECG_AMPLITUDE_INDEX_SIZE / 2;
|
|
31076
|
+
const amplitudeOffset = _ecgWaveform_js__rspack_import_3/* .ECG_AMPLITUDE_INDEX_SIZE */.Fi / 2;
|
|
31025
31077
|
const scalarData = new Int16Array(0);
|
|
31026
31078
|
const imageData = {
|
|
31027
31079
|
getDirection: () => direction,
|
|
@@ -31043,20 +31095,16 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
31043
31095
|
imageData,
|
|
31044
31096
|
scalarData,
|
|
31045
31097
|
hasPixelSpacing: false,
|
|
31098
|
+
calibration: waveform.calibration,
|
|
31046
31099
|
preScale: { scaled: false },
|
|
31047
|
-
metadata: {
|
|
31100
|
+
metadata: {
|
|
31101
|
+
Modality: 'ECG',
|
|
31102
|
+
FrameOfReferenceUID: this.getFrameOfReferenceUID(),
|
|
31103
|
+
},
|
|
31048
31104
|
};
|
|
31049
31105
|
}
|
|
31050
|
-
|
|
31051
|
-
const
|
|
31052
|
-
if (!resolvedView) {
|
|
31053
|
-
this.setZoom(scale);
|
|
31054
|
-
return;
|
|
31055
|
-
}
|
|
31056
|
-
this.applyResolvedViewState(resolvedView.withZoom(scale, canvasPoint).state.viewState);
|
|
31057
|
-
}
|
|
31058
|
-
async loadWaveformData(dataId) {
|
|
31059
|
-
const waveform = await this.dataProvider.load(dataId);
|
|
31106
|
+
async loadWaveformData(dataId, options) {
|
|
31107
|
+
const waveform = await this.dataProvider.load(dataId, options);
|
|
31060
31108
|
if (!isECGWaveformData(waveform)) {
|
|
31061
31109
|
throw new Error(`[ECGViewport] Loaded data for ${dataId} is not a valid ECG waveform`);
|
|
31062
31110
|
}
|
|
@@ -31069,25 +31117,16 @@ class ECGViewport extends _GenericViewport_js__rspack_import_1/* ["default"] */.
|
|
|
31069
31117
|
}
|
|
31070
31118
|
return binding.data;
|
|
31071
31119
|
}
|
|
31072
|
-
getCurrentRendering() {
|
|
31073
|
-
const binding = this.getFirstBinding();
|
|
31074
|
-
if (!binding || !isECGCanvasRendering(binding.rendering)) {
|
|
31075
|
-
return;
|
|
31076
|
-
}
|
|
31077
|
-
return binding.rendering;
|
|
31078
|
-
}
|
|
31079
31120
|
getResolvedView() {
|
|
31080
31121
|
const waveform = this.getWaveformBindingData();
|
|
31081
|
-
|
|
31082
|
-
if (!waveform || !rendering) {
|
|
31122
|
+
if (!waveform) {
|
|
31083
31123
|
return;
|
|
31084
31124
|
}
|
|
31085
|
-
return new
|
|
31125
|
+
return new _ECGResolvedView_js__rspack_import_10/* ["default"] */.A({
|
|
31086
31126
|
viewState: this.viewState,
|
|
31087
31127
|
canvas: this.canvas,
|
|
31088
31128
|
dataPresentation: this.getDisplaySetPresentation(waveform.id),
|
|
31089
|
-
frameOfReferenceUID:
|
|
31090
|
-
metrics: rendering.metrics,
|
|
31129
|
+
frameOfReferenceUID: (0,_ecgWaveform_js__rspack_import_3/* .getECGFrameOfReferenceUID */.ZE)(this.getCurrentImageId()),
|
|
31091
31130
|
waveform,
|
|
31092
31131
|
});
|
|
31093
31132
|
}
|
|
@@ -31106,10 +31145,200 @@ function isECGWaveformData(data) {
|
|
|
31106
31145
|
typeof waveform.samplingFrequency === 'number' &&
|
|
31107
31146
|
typeof waveform.numberOfChannels === 'number');
|
|
31108
31147
|
}
|
|
31109
|
-
|
|
31110
|
-
|
|
31148
|
+
let warnedAmplitudeScale = false;
|
|
31149
|
+
function warnIfAmplitudeScaleIgnored(viewState) {
|
|
31150
|
+
const { amplitudeScale, sensitivityMmMv } = viewState;
|
|
31151
|
+
if (warnedAmplitudeScale ||
|
|
31152
|
+
!sensitivityMmMv ||
|
|
31153
|
+
amplitudeScale === undefined ||
|
|
31154
|
+
amplitudeScale === 1) {
|
|
31155
|
+
return;
|
|
31156
|
+
}
|
|
31157
|
+
warnedAmplitudeScale = true;
|
|
31158
|
+
console.warn(`[ECG] amplitudeScale ${amplitudeScale} has no effect with sensitivityMmMv ${sensitivityMmMv}`);
|
|
31159
|
+
}
|
|
31160
|
+
|
|
31161
|
+
|
|
31162
|
+
},
|
|
31163
|
+
8413(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
31164
|
+
"use strict";
|
|
31165
|
+
/* import */ var _ecgWaveform_js__rspack_import_0 = __webpack_require__(59076);
|
|
31166
|
+
|
|
31167
|
+
function drawECGGrid(ctx, metrics, options, layouts) {
|
|
31168
|
+
if (options?.showGrid === false || metrics.channelScale <= 0) {
|
|
31169
|
+
return;
|
|
31170
|
+
}
|
|
31171
|
+
const { ecgWidth, ecgHeight, channelScale, sweepSpeed, sensitivityMmMv, showAmplitudeLabels = false, worldToCanvasRatio = 1, pxPerSecond, } = metrics;
|
|
31172
|
+
let minorH;
|
|
31173
|
+
let majorH;
|
|
31174
|
+
if (sensitivityMmMv != null && sensitivityMmMv > 0) {
|
|
31175
|
+
minorH = (/* inlined export .ECG_PX_PER_MM */3.779);
|
|
31176
|
+
majorH = (/* inlined export .ECG_PX_PER_MM */3.779) * 5;
|
|
31177
|
+
}
|
|
31178
|
+
else {
|
|
31179
|
+
const minLineSpacing = 8;
|
|
31180
|
+
let horizontalGridUnit = 100;
|
|
31181
|
+
while (horizontalGridUnit * channelScale < minLineSpacing) {
|
|
31182
|
+
horizontalGridUnit *= 2;
|
|
31183
|
+
}
|
|
31184
|
+
minorH = horizontalGridUnit * channelScale;
|
|
31185
|
+
majorH = minorH * 5;
|
|
31186
|
+
}
|
|
31187
|
+
const resolvedSweepSpeed = sweepSpeed != null && sweepSpeed > 0
|
|
31188
|
+
? sweepSpeed
|
|
31189
|
+
: (/* inlined export .ECG_DEFAULT_SWEEP_SPEED_MM_S */25);
|
|
31190
|
+
const resolvedPxPerSecond = pxPerSecond != null && pxPerSecond > 0 ? pxPerSecond : (/* inlined export .ECG_SECONDS_WIDTH */150);
|
|
31191
|
+
const minorV = resolvedPxPerSecond / resolvedSweepSpeed;
|
|
31192
|
+
const majorV = minorV * 5;
|
|
31193
|
+
const { minX = 0, minY = 0, maxX = ecgWidth, maxY = ecgHeight, } = options?.bounds ?? {};
|
|
31194
|
+
const effectiveMinorH = minorH * worldToCanvasRatio;
|
|
31195
|
+
const effectiveMinorV = minorV * worldToCanvasRatio;
|
|
31196
|
+
if (effectiveMinorH >= 4 && effectiveMinorV >= 4) {
|
|
31197
|
+
ctx.strokeStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.gridMinor */.gk.gridMinor;
|
|
31198
|
+
ctx.lineWidth = 0.5;
|
|
31199
|
+
ctx.beginPath();
|
|
31200
|
+
forEachGridLine(minY, maxY, minorH, (y, k) => {
|
|
31201
|
+
if (k % 5 !== 0) {
|
|
31202
|
+
ctx.moveTo(minX, y);
|
|
31203
|
+
ctx.lineTo(maxX, y);
|
|
31204
|
+
}
|
|
31205
|
+
});
|
|
31206
|
+
forEachGridLine(minX, maxX, minorV, (x, k) => {
|
|
31207
|
+
if (k % 5 !== 0) {
|
|
31208
|
+
ctx.moveTo(x, minY);
|
|
31209
|
+
ctx.lineTo(x, maxY);
|
|
31210
|
+
}
|
|
31211
|
+
});
|
|
31212
|
+
ctx.stroke();
|
|
31213
|
+
}
|
|
31214
|
+
ctx.strokeStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.gridMajor */.gk.gridMajor;
|
|
31215
|
+
ctx.lineWidth = 1;
|
|
31216
|
+
ctx.beginPath();
|
|
31217
|
+
forEachGridLine(minY, maxY, majorH, (y) => {
|
|
31218
|
+
ctx.moveTo(minX, y);
|
|
31219
|
+
ctx.lineTo(maxX, y);
|
|
31220
|
+
});
|
|
31221
|
+
forEachGridLine(minX, maxX, majorV, (x) => {
|
|
31222
|
+
ctx.moveTo(x, minY);
|
|
31223
|
+
ctx.lineTo(x, maxY);
|
|
31224
|
+
});
|
|
31225
|
+
ctx.stroke();
|
|
31226
|
+
if (showAmplitudeLabels &&
|
|
31227
|
+
sensitivityMmMv != null &&
|
|
31228
|
+
sensitivityMmMv > 0 &&
|
|
31229
|
+
layouts) {
|
|
31230
|
+
ctx.fillStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.label */.gk.label;
|
|
31231
|
+
const mvPerMajor = 5 / sensitivityMmMv;
|
|
31232
|
+
const fontSize = 10;
|
|
31233
|
+
ctx.font = `${fontSize}px monospace`;
|
|
31234
|
+
const firstColumnLayouts = layouts.filter((layout) => !layout.xOffset || layout.xOffset === 0);
|
|
31235
|
+
if (majorH >= fontSize + 4) {
|
|
31236
|
+
firstColumnLayouts.forEach((layout) => {
|
|
31237
|
+
const { baseline, itemHeight } = layout;
|
|
31238
|
+
const yPlus = baseline - majorH;
|
|
31239
|
+
const yMinus = baseline + majorH;
|
|
31240
|
+
if (yPlus >= baseline - itemHeight) {
|
|
31241
|
+
ctx.fillText(`+${mvPerMajor.toFixed(1)} mV`, 5, yPlus - 2);
|
|
31242
|
+
}
|
|
31243
|
+
if (yMinus <= baseline + itemHeight) {
|
|
31244
|
+
ctx.fillText(`-${mvPerMajor.toFixed(1)} mV`, 5, yMinus - 2);
|
|
31245
|
+
}
|
|
31246
|
+
});
|
|
31247
|
+
}
|
|
31248
|
+
}
|
|
31249
|
+
}
|
|
31250
|
+
function drawECGTraces(args) {
|
|
31251
|
+
const { ctx, layouts, lineWidth = 1, amplitudeScale = 1 } = args;
|
|
31252
|
+
layouts.forEach(({ channel, baseline, channelScale, xOffset, width, itemHeight, yOffset, startSample, endSample, }) => {
|
|
31253
|
+
const sampleCount = Math.max(1, endSample - startSample);
|
|
31254
|
+
const lastSample = Math.min(endSample, channel.data.length);
|
|
31255
|
+
ctx.strokeStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.baseline */.gk.baseline;
|
|
31256
|
+
ctx.lineWidth = 2;
|
|
31257
|
+
ctx.beginPath();
|
|
31258
|
+
ctx.moveTo(xOffset, baseline);
|
|
31259
|
+
ctx.lineTo(xOffset + width, baseline);
|
|
31260
|
+
ctx.stroke();
|
|
31261
|
+
if (lastSample <= startSample) {
|
|
31262
|
+
return;
|
|
31263
|
+
}
|
|
31264
|
+
ctx.save?.();
|
|
31265
|
+
ctx.beginPath?.();
|
|
31266
|
+
ctx.rect?.(xOffset, yOffset - itemHeight * 2, width, itemHeight * 3);
|
|
31267
|
+
ctx.clip?.();
|
|
31268
|
+
ctx.strokeStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.trace */.gk.trace;
|
|
31269
|
+
ctx.lineWidth = lineWidth;
|
|
31270
|
+
ctx.beginPath();
|
|
31271
|
+
const step = width / sampleCount;
|
|
31272
|
+
for (let index = startSample; index < lastSample; index++) {
|
|
31273
|
+
const x = xOffset + (index - startSample) * step;
|
|
31274
|
+
const y = baseline - channel.data[index] * channelScale * amplitudeScale;
|
|
31275
|
+
if (index === startSample) {
|
|
31276
|
+
ctx.moveTo(x, y);
|
|
31277
|
+
}
|
|
31278
|
+
else {
|
|
31279
|
+
ctx.lineTo(x, y);
|
|
31280
|
+
}
|
|
31281
|
+
}
|
|
31282
|
+
ctx.stroke();
|
|
31283
|
+
ctx.restore?.();
|
|
31284
|
+
});
|
|
31285
|
+
}
|
|
31286
|
+
function drawECGLabels(ctx, layouts, worldToCanvasRatio) {
|
|
31287
|
+
const fontSize = 14 / (worldToCanvasRatio || 1);
|
|
31288
|
+
layouts.forEach(({ label, itemHeight, yOffset, xOffset }) => {
|
|
31289
|
+
const labelY = yOffset - itemHeight + fontSize;
|
|
31290
|
+
ctx.font = `${fontSize}px monospace`;
|
|
31291
|
+
const textWidth = ctx.measureText(label).width;
|
|
31292
|
+
ctx.fillStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.background */.gk.background;
|
|
31293
|
+
ctx.fillRect(xOffset + 5, labelY - fontSize, textWidth + 4, fontSize + 4);
|
|
31294
|
+
ctx.fillStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.label */.gk.label;
|
|
31295
|
+
ctx.fillText(label, xOffset + 5, labelY);
|
|
31296
|
+
});
|
|
31297
|
+
}
|
|
31298
|
+
function drawECGCanvasLabels(ctx, layouts, transform, dpr = 1) {
|
|
31299
|
+
const fontSize = 12 * dpr;
|
|
31300
|
+
const { effectiveRatio, xOffset, yOffset } = transform;
|
|
31301
|
+
ctx.font = `${fontSize}px monospace`;
|
|
31302
|
+
layouts.forEach((layout) => {
|
|
31303
|
+
const x = (layout.xOffset * effectiveRatio + xOffset + 5) * dpr;
|
|
31304
|
+
const y = ((layout.yOffset - layout.itemHeight) * effectiveRatio + yOffset + 2) *
|
|
31305
|
+
dpr +
|
|
31306
|
+
fontSize;
|
|
31307
|
+
const textWidth = ctx.measureText(layout.label).width;
|
|
31308
|
+
ctx.fillStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.background */.gk.background;
|
|
31309
|
+
ctx.fillRect(x, y - fontSize, textWidth + 4 * dpr, fontSize + 4 * dpr);
|
|
31310
|
+
ctx.fillStyle = _ecgWaveform_js__rspack_import_0/* .ECG_RENDERING_COLORS.label */.gk.label;
|
|
31311
|
+
ctx.fillText(layout.label, x, y);
|
|
31312
|
+
});
|
|
31313
|
+
}
|
|
31314
|
+
function forEachGridLine(min, max, step, draw) {
|
|
31315
|
+
if (!(step > 0)) {
|
|
31316
|
+
return;
|
|
31317
|
+
}
|
|
31318
|
+
for (let k = Math.ceil(min / step); k * step <= max; k++) {
|
|
31319
|
+
draw(k * step, Math.abs(k));
|
|
31320
|
+
}
|
|
31321
|
+
}
|
|
31322
|
+
function ensureECGCanvasSize(canvas) {
|
|
31323
|
+
const dpr = window.devicePixelRatio || 1;
|
|
31324
|
+
const width = Math.max(1, canvas.clientWidth || canvas.width || 1);
|
|
31325
|
+
const height = Math.max(1, canvas.clientHeight || canvas.height || 1);
|
|
31326
|
+
const nextWidth = Math.floor(width * dpr);
|
|
31327
|
+
const nextHeight = Math.floor(height * dpr);
|
|
31328
|
+
if (canvas.width !== nextWidth || canvas.height !== nextHeight) {
|
|
31329
|
+
canvas.width = nextWidth;
|
|
31330
|
+
canvas.height = nextHeight;
|
|
31331
|
+
}
|
|
31111
31332
|
}
|
|
31112
31333
|
|
|
31334
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
31335
|
+
Ce: () => (drawECGGrid),
|
|
31336
|
+
Rt: () => (drawECGCanvasLabels),
|
|
31337
|
+
aL: () => (drawECGTraces),
|
|
31338
|
+
z0: () => (drawECGLabels),
|
|
31339
|
+
zf: () => (ensureECGCanvasSize)
|
|
31340
|
+
});
|
|
31341
|
+
|
|
31113
31342
|
|
|
31114
31343
|
},
|
|
31115
31344
|
45687(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
@@ -31138,98 +31367,305 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
31138
31367
|
|
|
31139
31368
|
|
|
31140
31369
|
},
|
|
31141
|
-
|
|
31370
|
+
1571(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
31142
31371
|
"use strict";
|
|
31143
|
-
|
|
31144
|
-
|
|
31145
|
-
|
|
31146
|
-
|
|
31147
|
-
|
|
31148
|
-
|
|
31149
|
-
|
|
31150
|
-
|
|
31151
|
-
|
|
31152
|
-
|
|
31372
|
+
/* import */ var _utilities_clamp_js__rspack_import_0 = __webpack_require__(20637);
|
|
31373
|
+
|
|
31374
|
+
const LEAD_II_CODES = new Set(['5.6.3-9-2', '2:2']);
|
|
31375
|
+
const GRID_MIN_LEADS = 8;
|
|
31376
|
+
const GRID_MIN_SECONDS = 5;
|
|
31377
|
+
const traceLayouts = new Map();
|
|
31378
|
+
const warnedNames = new Set();
|
|
31379
|
+
function registerECGTraceLayout(name, layout, options = {}) {
|
|
31380
|
+
if (traceLayouts.has(name)) {
|
|
31381
|
+
throw new Error(`ECG trace layout "${name}" is already registered`);
|
|
31382
|
+
}
|
|
31383
|
+
traceLayouts.set(name, {
|
|
31384
|
+
factory: typeof layout === 'function' ? layout : () => layout,
|
|
31385
|
+
supports: options.supports,
|
|
31386
|
+
});
|
|
31153
31387
|
}
|
|
31154
|
-
function
|
|
31155
|
-
return
|
|
31156
|
-
|
|
31157
|
-
|
|
31158
|
-
...(camera.scrollOffset !== undefined
|
|
31159
|
-
? { scrollOffset: camera.scrollOffset }
|
|
31160
|
-
: {}),
|
|
31161
|
-
anchorCanvas: cloneAnchorCanvas(camera.anchorCanvas ?? [0.5, 0.5]),
|
|
31162
|
-
scale: Math.max(camera.scale ?? 1, 0.001),
|
|
31163
|
-
scaleMode: 'fit',
|
|
31164
|
-
rotation: 0,
|
|
31165
|
-
...(camera.anchorWorld
|
|
31166
|
-
? {
|
|
31167
|
-
anchorWorld: clonePoint(camera.anchorWorld),
|
|
31168
|
-
}
|
|
31169
|
-
: {}),
|
|
31170
|
-
};
|
|
31388
|
+
function getECGTraceLayoutNames(context) {
|
|
31389
|
+
return Array.from(traceLayouts.entries())
|
|
31390
|
+
.filter(([, entry]) => !context || !entry.supports || entry.supports(context))
|
|
31391
|
+
.map(([name]) => name);
|
|
31171
31392
|
}
|
|
31172
|
-
function
|
|
31173
|
-
|
|
31174
|
-
|
|
31175
|
-
|
|
31176
|
-
|
|
31177
|
-
|
|
31178
|
-
|
|
31179
|
-
const
|
|
31180
|
-
const
|
|
31181
|
-
|
|
31182
|
-
|
|
31183
|
-
|
|
31184
|
-
|
|
31393
|
+
function getECGTraceLayout(traceLayout, context) {
|
|
31394
|
+
if (typeof traceLayout !== 'string') {
|
|
31395
|
+
return traceLayout;
|
|
31396
|
+
}
|
|
31397
|
+
return traceLayouts.get(traceLayout)?.factory(context);
|
|
31398
|
+
}
|
|
31399
|
+
function resolveDefaultECGTraceLayout(context) {
|
|
31400
|
+
const { channels, numberOfSamples = 0, samplingFrequency = 0 } = context;
|
|
31401
|
+
const isLong = !(numberOfSamples > 0 && samplingFrequency > 0) ||
|
|
31402
|
+
numberOfSamples / samplingFrequency >= GRID_MIN_SECONDS;
|
|
31403
|
+
return channels.length >= GRID_MIN_LEADS && isLong ? '3x4+1' : '12x1';
|
|
31404
|
+
}
|
|
31405
|
+
function resolveECGTraceLayout(traceLayout, context) {
|
|
31406
|
+
const defaultLayout = resolveDefaultECGTraceLayout(context);
|
|
31407
|
+
const definition = getECGTraceLayout(traceLayout ?? defaultLayout, context);
|
|
31408
|
+
if (definition) {
|
|
31409
|
+
return definition;
|
|
31410
|
+
}
|
|
31411
|
+
if (!warnedNames.has(traceLayout)) {
|
|
31412
|
+
warnedNames.add(traceLayout);
|
|
31413
|
+
console.warn(`[ECG] Unknown trace layout "${traceLayout}", using "${defaultLayout}"`);
|
|
31414
|
+
}
|
|
31415
|
+
return getECGTraceLayout(defaultLayout, context);
|
|
31416
|
+
}
|
|
31417
|
+
function hasViewTimeRegion(definition) {
|
|
31418
|
+
return definition.regions.some((region) => (region.time ?? 'view') === 'view');
|
|
31419
|
+
}
|
|
31420
|
+
const ECG_LEAD_COPY_STRIDE = 1000;
|
|
31421
|
+
const SINGLE_GROUP = { index: 0, count: 1 };
|
|
31422
|
+
function getECGLeadZ(channelIndex, copy, group = SINGLE_GROUP) {
|
|
31423
|
+
return (channelIndex + ECG_LEAD_COPY_STRIDE * (copy * group.count + group.index));
|
|
31424
|
+
}
|
|
31425
|
+
function findECGLayoutForZ(layouts, z, group = SINGLE_GROUP) {
|
|
31426
|
+
const exact = layouts.find((item) => item.leadIndex === z);
|
|
31427
|
+
if (exact) {
|
|
31428
|
+
return exact;
|
|
31429
|
+
}
|
|
31430
|
+
const k = Math.floor(z / ECG_LEAD_COPY_STRIDE);
|
|
31431
|
+
if (k < 0 || k % group.count !== group.index) {
|
|
31432
|
+
return;
|
|
31433
|
+
}
|
|
31434
|
+
const baseZ = getECGLeadZ(z % ECG_LEAD_COPY_STRIDE, 0, group);
|
|
31435
|
+
return layouts.find((item) => item.leadIndex === baseZ);
|
|
31436
|
+
}
|
|
31437
|
+
function resolveECGTraceCells(args) {
|
|
31438
|
+
const { definition, channels, numberOfSamples, viewSampleWindow, visibleChannels, group, } = args;
|
|
31439
|
+
const visible = visibleChannels ? new Set(visibleChannels) : undefined;
|
|
31440
|
+
const copies = new Map();
|
|
31441
|
+
const cells = [];
|
|
31442
|
+
definition.regions.forEach((region, regionIndex) => {
|
|
31443
|
+
const channelIndex = typeof region.lead === 'number'
|
|
31444
|
+
? region.lead
|
|
31445
|
+
: findLeadByCode(channels, region.lead);
|
|
31446
|
+
const channel = channels[channelIndex];
|
|
31447
|
+
if (!channel) {
|
|
31448
|
+
return;
|
|
31449
|
+
}
|
|
31450
|
+
const copy = copies.get(channelIndex) ?? 0;
|
|
31451
|
+
copies.set(channelIndex, copy + 1);
|
|
31452
|
+
const leadIndex = getECGLeadZ(channelIndex, copy, group);
|
|
31453
|
+
const time = region.time ?? 'view';
|
|
31454
|
+
const [startSample, endSample] = time === 'view'
|
|
31455
|
+
? viewSampleWindow
|
|
31456
|
+
: [
|
|
31457
|
+
Math.floor((0,_utilities_clamp_js__rspack_import_0/* ["default"] */.A)(time[0], 0, 1) * numberOfSamples),
|
|
31458
|
+
Math.floor((0,_utilities_clamp_js__rspack_import_0/* ["default"] */.A)(time[1], 0, 1) * numberOfSamples),
|
|
31459
|
+
];
|
|
31460
|
+
cells.push({
|
|
31461
|
+
region,
|
|
31462
|
+
regionIndex,
|
|
31463
|
+
channel,
|
|
31464
|
+
channelIndex,
|
|
31465
|
+
leadIndex,
|
|
31466
|
+
visible: channel.data.length > 0 &&
|
|
31467
|
+
channel.visible !== false &&
|
|
31468
|
+
(!visible || visible.has(channelIndex)),
|
|
31469
|
+
startSample,
|
|
31470
|
+
endSample,
|
|
31471
|
+
label: region.label ?? channel.name,
|
|
31472
|
+
});
|
|
31473
|
+
});
|
|
31474
|
+
return cells;
|
|
31475
|
+
}
|
|
31476
|
+
function findLeadByCode(channels, lead) {
|
|
31477
|
+
const byCode = channels.findIndex((channel) => channel.code === lead);
|
|
31478
|
+
return byCode >= 0
|
|
31479
|
+
? byCode
|
|
31480
|
+
: channels.findIndex((channel) => !channel.code && channel.name === lead);
|
|
31481
|
+
}
|
|
31482
|
+
function findLeadII(channels) {
|
|
31483
|
+
const byCode = channels.findIndex((channel) => LEAD_II_CODES.has(channel.code));
|
|
31484
|
+
if (byCode >= 0) {
|
|
31485
|
+
return byCode;
|
|
31486
|
+
}
|
|
31487
|
+
const byName = channels.findIndex((channel) => /\bii\b/.test((channel.name ?? '').toLowerCase()));
|
|
31488
|
+
if (byName >= 0) {
|
|
31489
|
+
return byName;
|
|
31490
|
+
}
|
|
31491
|
+
return channels.length > 1 ? 1 : 0;
|
|
31492
|
+
}
|
|
31493
|
+
function createRowsLayout({ channels, }) {
|
|
31494
|
+
const count = channels.length;
|
|
31185
31495
|
return {
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31190
|
-
|
|
31191
|
-
|
|
31192
|
-
|
|
31193
|
-
|
|
31194
|
-
|
|
31496
|
+
regions: channels.map((_channel, index) => ({
|
|
31497
|
+
lead: index,
|
|
31498
|
+
bounds: {
|
|
31499
|
+
minX: 0,
|
|
31500
|
+
maxX: 1,
|
|
31501
|
+
minY: index / count,
|
|
31502
|
+
maxY: (index + 1) / count,
|
|
31503
|
+
},
|
|
31504
|
+
time: 'view',
|
|
31505
|
+
})),
|
|
31195
31506
|
};
|
|
31196
31507
|
}
|
|
31197
|
-
function
|
|
31198
|
-
return
|
|
31199
|
-
|
|
31200
|
-
|
|
31201
|
-
|
|
31508
|
+
function createGridLayout(rowsPerColumn, nominalColumns, withRhythmStrip) {
|
|
31509
|
+
return ({ channels }) => {
|
|
31510
|
+
const columns = Math.max(nominalColumns, Math.ceil(channels.length / rowsPerColumn));
|
|
31511
|
+
const totalRows = rowsPerColumn + (withRhythmStrip ? 1 : 0);
|
|
31512
|
+
const regions = channels.map((_channel, index) => {
|
|
31513
|
+
const column = Math.floor(index / rowsPerColumn);
|
|
31514
|
+
const row = index % rowsPerColumn;
|
|
31515
|
+
return {
|
|
31516
|
+
lead: index,
|
|
31517
|
+
bounds: {
|
|
31518
|
+
minX: column / columns,
|
|
31519
|
+
maxX: (column + 1) / columns,
|
|
31520
|
+
minY: row / totalRows,
|
|
31521
|
+
maxY: (row + 1) / totalRows,
|
|
31522
|
+
},
|
|
31523
|
+
time: [column / columns, (column + 1) / columns],
|
|
31524
|
+
};
|
|
31525
|
+
});
|
|
31526
|
+
if (withRhythmStrip && channels.length) {
|
|
31527
|
+
regions.push({
|
|
31528
|
+
id: 'rhythm',
|
|
31529
|
+
lead: findLeadII(channels),
|
|
31530
|
+
bounds: { minX: 0, maxX: 1, minY: rowsPerColumn / totalRows, maxY: 1 },
|
|
31531
|
+
time: [0, 1],
|
|
31532
|
+
});
|
|
31533
|
+
}
|
|
31534
|
+
return { regions };
|
|
31535
|
+
};
|
|
31202
31536
|
}
|
|
31203
|
-
|
|
31204
|
-
|
|
31205
|
-
|
|
31206
|
-
|
|
31207
|
-
|
|
31208
|
-
|
|
31209
|
-
|
|
31210
|
-
|
|
31211
|
-
|
|
31537
|
+
const supportsGrid = ({ channels }) => channels.length >= GRID_MIN_LEADS;
|
|
31538
|
+
registerECGTraceLayout('12x1', createRowsLayout);
|
|
31539
|
+
registerECGTraceLayout('6x2', createGridLayout(6, 2, false), {
|
|
31540
|
+
supports: supportsGrid,
|
|
31541
|
+
});
|
|
31542
|
+
registerECGTraceLayout('3x4', createGridLayout(3, 4, false), {
|
|
31543
|
+
supports: supportsGrid,
|
|
31544
|
+
});
|
|
31545
|
+
registerECGTraceLayout('3x4+1', createGridLayout(3, 4, true), {
|
|
31546
|
+
supports: supportsGrid,
|
|
31547
|
+
});
|
|
31548
|
+
|
|
31549
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
31550
|
+
Hw: () => (resolveECGTraceLayout),
|
|
31551
|
+
JS: () => (getECGTraceLayoutNames),
|
|
31552
|
+
Qf: () => (resolveDefaultECGTraceLayout),
|
|
31553
|
+
_3: () => (resolveECGTraceCells),
|
|
31554
|
+
_f: () => (findECGLayoutForZ),
|
|
31555
|
+
xL: () => (hasViewTimeRegion)
|
|
31556
|
+
});
|
|
31557
|
+
|
|
31558
|
+
|
|
31559
|
+
},
|
|
31560
|
+
59076(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
31561
|
+
"use strict";
|
|
31562
|
+
/* import */ var _cornerstonejs_metadata__rspack_import_0 = __webpack_require__(86049);
|
|
31563
|
+
/* import */ var _enums_index_js__rspack_import_1 = __webpack_require__(71088);
|
|
31564
|
+
/* import */ var _metaData_js__rspack_import_2 = __webpack_require__(52284);
|
|
31565
|
+
|
|
31566
|
+
|
|
31567
|
+
|
|
31568
|
+
const ECG_DEFAULT_SWEEP_SPEED_MM_S = 25;
|
|
31569
|
+
const ECG_CLINICAL_SWEEP_SPEEDS = (/* unused pure expression or super */ null && ([12.5, 25, 50]));
|
|
31570
|
+
const ECG_CLINICAL_SENSITIVITIES = (/* unused pure expression or super */ null && ([2.5, 5, 10, 20]));
|
|
31571
|
+
const ECG_PX_PER_MM = 3.779;
|
|
31572
|
+
const ECG_SECONDS_WIDTH = 150;
|
|
31573
|
+
const ECG_CHANNEL_SPACING = 5;
|
|
31574
|
+
const ECG_DEFAULT_MV_PER_UNIT = _cornerstonejs_metadata__rspack_import_0/* .utilities.ECG_DEFAULT_MV_PER_UNIT */.BF.Fc;
|
|
31575
|
+
const ECG_AMPLITUDE_INDEX_SIZE = _cornerstonejs_metadata__rspack_import_0/* .utilities.ECG_AMPLITUDE_INDEX_SIZE */.BF.Fi;
|
|
31576
|
+
const ECG_RENDERING_COLORS = {
|
|
31577
|
+
gridMajor: '#7f0000',
|
|
31578
|
+
gridMinor: '#3f0000',
|
|
31579
|
+
baseline: '#7f4c00',
|
|
31580
|
+
trace: '#ffffff',
|
|
31581
|
+
label: '#ffff00',
|
|
31582
|
+
background: '#000000',
|
|
31583
|
+
};
|
|
31584
|
+
function getECGChannelMvPerUnit(channel) {
|
|
31585
|
+
return Number.isFinite(channel.mvPerUnit) && channel.mvPerUnit > 0
|
|
31586
|
+
? channel.mvPerUnit
|
|
31587
|
+
: ECG_DEFAULT_MV_PER_UNIT;
|
|
31212
31588
|
}
|
|
31213
|
-
function
|
|
31214
|
-
|
|
31215
|
-
|
|
31216
|
-
|
|
31217
|
-
|
|
31589
|
+
function getECGFrameOfReferenceUID(imageId) {
|
|
31590
|
+
if (!imageId) {
|
|
31591
|
+
return;
|
|
31592
|
+
}
|
|
31593
|
+
return (_metaData_js__rspack_import_2.get(_enums_index_js__rspack_import_1.MetadataModules.SOP_COMMON, imageId)?.sopInstanceUID ||
|
|
31594
|
+
`ecg:${imageId}`);
|
|
31595
|
+
}
|
|
31596
|
+
async function loadECGWaveform(dataId, options = {}) {
|
|
31597
|
+
const ecgModule = _metaData_js__rspack_import_2.getMetaData(_enums_index_js__rspack_import_1.MetadataModules.ECG, dataId, options);
|
|
31598
|
+
if (!ecgModule?.waveformData?.retrieveBulkData) {
|
|
31599
|
+
throw new Error(`[ECG] No ECG waveform data for ${dataId}`);
|
|
31600
|
+
}
|
|
31601
|
+
const { numberOfWaveformChannels: numberOfChannels, numberOfWaveformSamples: numberOfSamples, samplingFrequency, waveformBitsAllocated: bitsAllocated = 16, waveformSampleInterpretation: sampleInterpretation = 'SS', multiplexGroupLabel, multiplexGroupIndex = 0, totalMultiplexGroups: numberOfMultiplexGroups = 1, channelDefinitionSequence: channelDefinitions = [], } = ecgModule;
|
|
31602
|
+
const channelArrays = await ecgModule.waveformData.retrieveBulkData();
|
|
31603
|
+
const calibration = _metaData_js__rspack_import_2.getMetaData(_enums_index_js__rspack_import_1.MetadataModules.CALIBRATION, dataId, options);
|
|
31604
|
+
const channels = [];
|
|
31605
|
+
for (let index = 0; index < numberOfChannels; index++) {
|
|
31606
|
+
const channelDefinition = channelDefinitions[index] || {};
|
|
31607
|
+
const source = channelDefinition.channelSourceSequence;
|
|
31608
|
+
const data = channelArrays[index] || new Int16Array(0);
|
|
31609
|
+
const { min, max } = computeECGMinMax(data);
|
|
31610
|
+
channels.push({
|
|
31611
|
+
name: source?.codeMeaning || `Channel ${index + 1}`,
|
|
31612
|
+
code: source?.codeValue,
|
|
31613
|
+
data,
|
|
31614
|
+
min,
|
|
31615
|
+
max,
|
|
31616
|
+
mvPerUnit: getECGChannelMvPerUnit(channelDefinition),
|
|
31617
|
+
});
|
|
31618
|
+
}
|
|
31619
|
+
return {
|
|
31620
|
+
waveform: {
|
|
31621
|
+
channels,
|
|
31622
|
+
numberOfChannels,
|
|
31623
|
+
numberOfSamples,
|
|
31624
|
+
samplingFrequency,
|
|
31625
|
+
bitsAllocated,
|
|
31626
|
+
sampleInterpretation,
|
|
31627
|
+
multiplexGroupLabel,
|
|
31628
|
+
multiplexGroupIndex,
|
|
31629
|
+
numberOfMultiplexGroups,
|
|
31630
|
+
calibration,
|
|
31631
|
+
},
|
|
31632
|
+
calibration,
|
|
31633
|
+
};
|
|
31218
31634
|
}
|
|
31219
|
-
function
|
|
31220
|
-
|
|
31635
|
+
function computeECGMinMax(data) {
|
|
31636
|
+
let min = 0;
|
|
31637
|
+
let max = 0;
|
|
31638
|
+
for (let index = 0; index < data.length; index++) {
|
|
31639
|
+
if (data[index] < min) {
|
|
31640
|
+
min = data[index];
|
|
31641
|
+
}
|
|
31642
|
+
if (data[index] > max) {
|
|
31643
|
+
max = data[index];
|
|
31644
|
+
}
|
|
31645
|
+
}
|
|
31646
|
+
return { min, max };
|
|
31221
31647
|
}
|
|
31222
|
-
function
|
|
31223
|
-
|
|
31648
|
+
function getDefaultECGValueRange(waveform) {
|
|
31649
|
+
let min = 0;
|
|
31650
|
+
let max = 0;
|
|
31651
|
+
waveform.channels.forEach((channel) => {
|
|
31652
|
+
min = Math.min(min, channel.min);
|
|
31653
|
+
max = Math.max(max, channel.max);
|
|
31654
|
+
});
|
|
31655
|
+
if (min === max) {
|
|
31656
|
+
return [-1, 1];
|
|
31657
|
+
}
|
|
31658
|
+
return [min, max];
|
|
31224
31659
|
}
|
|
31225
31660
|
|
|
31226
31661
|
__webpack_require__.d(__webpack_exports__, {
|
|
31227
|
-
|
|
31228
|
-
|
|
31229
|
-
|
|
31230
|
-
|
|
31231
|
-
|
|
31232
|
-
|
|
31662
|
+
Dt: () => (loadECGWaveform),
|
|
31663
|
+
Dz: () => (getECGChannelMvPerUnit),
|
|
31664
|
+
ZE: () => (getECGFrameOfReferenceUID),
|
|
31665
|
+
dz: () => (getDefaultECGValueRange)
|
|
31666
|
+
}, {
|
|
31667
|
+
Fi: ECG_AMPLITUDE_INDEX_SIZE,
|
|
31668
|
+
gk: ECG_RENDERING_COLORS
|
|
31233
31669
|
});
|
|
31234
31670
|
|
|
31235
31671
|
|
|
@@ -31239,7 +31675,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
31239
31675
|
/* import */ var _ecgProjectionAdapter_js__rspack_import_0 = __webpack_require__(45687);
|
|
31240
31676
|
/* import */ var _ECGRenderPathResolver_js__rspack_import_1 = __webpack_require__(92925);
|
|
31241
31677
|
/* import */ var _DefaultECGDataProvider_js__rspack_import_2 = __webpack_require__(25499);
|
|
31242
|
-
/* import */ var
|
|
31678
|
+
/* import */ var _ecgTraceLayouts_js__rspack_import_3 = __webpack_require__(1571);
|
|
31679
|
+
/* import */ var _ecgWaveform_js__rspack_import_4 = __webpack_require__(59076);
|
|
31680
|
+
/* import */ var _ECGViewport_js__rspack_import_5 = __webpack_require__(80153);
|
|
31681
|
+
|
|
31243
31682
|
|
|
31244
31683
|
|
|
31245
31684
|
|
|
@@ -31250,6 +31689,7 @@ const ecgProjection = (/* unused pure expression or super */ null && ({
|
|
|
31250
31689
|
|
|
31251
31690
|
|
|
31252
31691
|
|
|
31692
|
+
|
|
31253
31693
|
},
|
|
31254
31694
|
13991(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
31255
31695
|
"use strict";
|
|
@@ -31274,6 +31714,8 @@ class GenericViewport {
|
|
|
31274
31714
|
};
|
|
31275
31715
|
this.id = args.id;
|
|
31276
31716
|
this.element = args.element;
|
|
31717
|
+
this.canvasToWorld = this.canvasToWorld.bind(this);
|
|
31718
|
+
this.worldToCanvas = this.worldToCanvas.bind(this);
|
|
31277
31719
|
}
|
|
31278
31720
|
async setDisplaySets(...entries) {
|
|
31279
31721
|
this.removeAllData();
|
|
@@ -35198,8 +35640,6 @@ class PlanarViewport extends _GenericViewport_js__rspack_import_15/* ["default"]
|
|
|
35198
35640
|
this.sHeight = args.sHeight;
|
|
35199
35641
|
this.defaultOptions = cloneViewportOptions(args.defaultOptions || {});
|
|
35200
35642
|
this.options = cloneViewportOptions(this.defaultOptions);
|
|
35201
|
-
this.canvasToWorld = this.canvasToWorld.bind(this);
|
|
35202
|
-
this.worldToCanvas = this.worldToCanvas.bind(this);
|
|
35203
35643
|
this.dataProvider = args.dataProvider || new _DefaultPlanarDataProvider_js__rspack_import_17/* .DefaultPlanarDataProvider */.x();
|
|
35204
35644
|
this.renderPathResolver =
|
|
35205
35645
|
args.renderPathResolver || (0,_PlanarRenderPathResolver_js__rspack_import_18/* .createPlanarRenderPathResolver */.I)();
|
|
@@ -40566,10 +41006,36 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40566
41006
|
},
|
|
40567
41007
|
95023(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
40568
41008
|
"use strict";
|
|
40569
|
-
/* import */ var
|
|
41009
|
+
/* import */ var _cornerstonejs_metadata__rspack_import_0 = __webpack_require__(86049);
|
|
41010
|
+
/* import */ var _utilities_genericViewportDisplaySetMetadataProvider_js__rspack_import_1 = __webpack_require__(51127);
|
|
41011
|
+
|
|
40570
41012
|
|
|
40571
41013
|
function getGenericViewportRegisteredDisplaySet(displaySetId) {
|
|
40572
|
-
return
|
|
41014
|
+
return (_utilities_genericViewportDisplaySetMetadataProvider_js__rspack_import_1/* ["default"].get */.A.get(_utilities_genericViewportDisplaySetMetadataProvider_js__rspack_import_1/* ["default"].VIEWPORT_V2_DISPLAY_SET */.A.VIEWPORT_V2_DISPLAY_SET, displaySetId) ??
|
|
41015
|
+
getCachedDisplaySet(displaySetId));
|
|
41016
|
+
}
|
|
41017
|
+
function getCachedDisplaySet(displaySetId) {
|
|
41018
|
+
const displaySet = _cornerstonejs_metadata__rspack_import_0/* .metaData.getTyped */.wx.FE(_cornerstonejs_metadata__rspack_import_0/* .Enums.MetadataModules.DISPLAY_SET */.fX.nb.DISPLAY_SET, displaySetId);
|
|
41019
|
+
if (!isRecord(displaySet) ||
|
|
41020
|
+
(displaySet.displaySetId !== displaySetId &&
|
|
41021
|
+
displaySet.displaySetInstanceUID !== displaySetId)) {
|
|
41022
|
+
return;
|
|
41023
|
+
}
|
|
41024
|
+
const imageIds = isStringArray(displaySet.imageIds)
|
|
41025
|
+
? [...displaySet.imageIds]
|
|
41026
|
+
: [];
|
|
41027
|
+
const underlyingImageIds = isStringArray(displaySet.underlyingImageIds)
|
|
41028
|
+
? displaySet.underlyingImageIds
|
|
41029
|
+
: [];
|
|
41030
|
+
const instanceImageId = isRecord(displaySet.instance)
|
|
41031
|
+
? displaySet.instance.imageId
|
|
41032
|
+
: undefined;
|
|
41033
|
+
const sourceDataId = (typeof instanceImageId === 'string' && instanceImageId) ||
|
|
41034
|
+
underlyingImageIds[0] ||
|
|
41035
|
+
imageIds[0];
|
|
41036
|
+
return sourceDataId
|
|
41037
|
+
? { imageIds, sourceDataId, webClient: displaySet.webClient }
|
|
41038
|
+
: undefined;
|
|
40573
41039
|
}
|
|
40574
41040
|
function getGenericViewportImageDisplaySet(displaySetId) {
|
|
40575
41041
|
const registered = getGenericViewportRegisteredDisplaySet(displaySetId);
|
|
@@ -40616,6 +41082,20 @@ function getGenericViewportWSIDisplaySet(displaySetId) {
|
|
|
40616
41082
|
},
|
|
40617
41083
|
};
|
|
40618
41084
|
}
|
|
41085
|
+
if (isRecord(registered) &&
|
|
41086
|
+
typeof registered.sourceDataId === 'string' &&
|
|
41087
|
+
isStringArray(registered.imageIds) &&
|
|
41088
|
+
registered.imageIds.length) {
|
|
41089
|
+
const webClient = registered.webClient ??
|
|
41090
|
+
_cornerstonejs_metadata__rspack_import_0/* .metaData.get */.wx.Jt(_cornerstonejs_metadata__rspack_import_0/* .Enums.MetadataModules.WADO_WEB_CLIENT */.fX.nb.WADO_WEB_CLIENT, registered.imageIds[0]);
|
|
41091
|
+
if (isWSIClientLike(webClient)) {
|
|
41092
|
+
return {
|
|
41093
|
+
kind: 'wsi',
|
|
41094
|
+
imageIds: registered.imageIds,
|
|
41095
|
+
options: { webClient },
|
|
41096
|
+
};
|
|
41097
|
+
}
|
|
41098
|
+
}
|
|
40619
41099
|
}
|
|
40620
41100
|
function getGenericViewportSourceDataId(displaySetId) {
|
|
40621
41101
|
const registered = getGenericViewportRegisteredDisplaySet(displaySetId);
|
|
@@ -40625,7 +41105,7 @@ function getGenericViewportSourceDataId(displaySetId) {
|
|
|
40625
41105
|
if (isStringArray(registered) && registered[0]) {
|
|
40626
41106
|
return registered[0];
|
|
40627
41107
|
}
|
|
40628
|
-
if (
|
|
41108
|
+
if (isRecord(registered) && typeof registered.sourceDataId === 'string') {
|
|
40629
41109
|
return registered.sourceDataId;
|
|
40630
41110
|
}
|
|
40631
41111
|
return displaySetId;
|
|
@@ -45268,53 +45748,89 @@ class WSIViewportLegacyAdapter extends WSI_WSIViewport/* ["default"] */.A {
|
|
|
45268
45748
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/GenericViewport/ECG/ECGViewportLegacyAdapter.js
|
|
45269
45749
|
|
|
45270
45750
|
|
|
45751
|
+
const LEGACY_VIEW_STATE_PROPERTIES = [
|
|
45752
|
+
'visibleChannels',
|
|
45753
|
+
'sweepSpeed',
|
|
45754
|
+
'sensitivityMmMv',
|
|
45755
|
+
'traceLayout',
|
|
45756
|
+
];
|
|
45271
45757
|
class ECGViewportLegacyAdapter extends ECG_ECGViewport/* ["default"] */.A {
|
|
45272
45758
|
async setEcg(imageId) {
|
|
45273
45759
|
await this.setDisplaySets({ displaySetId: imageId });
|
|
45274
45760
|
}
|
|
45761
|
+
getNumberOfSlices() {
|
|
45762
|
+
return 1;
|
|
45763
|
+
}
|
|
45764
|
+
getCanvas() {
|
|
45765
|
+
return this.canvas;
|
|
45766
|
+
}
|
|
45275
45767
|
setChannelVisibility(index, visible) {
|
|
45276
45768
|
const waveform = this.getWaveformData();
|
|
45277
|
-
|
|
45278
|
-
if (!waveform || !dataId) {
|
|
45769
|
+
if (!waveform) {
|
|
45279
45770
|
return;
|
|
45280
45771
|
}
|
|
45281
|
-
const
|
|
45282
|
-
|
|
45772
|
+
const nextVisibleChannels = new Set(this.getViewState().visibleChannels ||
|
|
45773
|
+
waveform.channels.map((_channel, i) => i));
|
|
45283
45774
|
if (visible) {
|
|
45284
45775
|
nextVisibleChannels.add(index);
|
|
45285
45776
|
}
|
|
45286
45777
|
else {
|
|
45287
45778
|
nextVisibleChannels.delete(index);
|
|
45288
45779
|
}
|
|
45289
|
-
this.
|
|
45780
|
+
this.setViewState({
|
|
45290
45781
|
visibleChannels: Array.from(nextVisibleChannels).sort((a, b) => a - b),
|
|
45291
45782
|
});
|
|
45292
45783
|
}
|
|
45293
|
-
setProperties(props) {
|
|
45784
|
+
setProperties(props = {}) {
|
|
45294
45785
|
const dataId = this.getFirstBinding()?.data.id;
|
|
45295
45786
|
if (!dataId) {
|
|
45296
45787
|
return;
|
|
45297
45788
|
}
|
|
45298
|
-
|
|
45299
|
-
|
|
45789
|
+
const viewStatePatch = {};
|
|
45790
|
+
LEGACY_VIEW_STATE_PROPERTIES.forEach((key) => {
|
|
45791
|
+
if (props[key] !== undefined) {
|
|
45792
|
+
viewStatePatch[key] = props[key];
|
|
45793
|
+
}
|
|
45300
45794
|
});
|
|
45795
|
+
if (props.traceLayout === undefined && props.layoutType !== undefined) {
|
|
45796
|
+
viewStatePatch.traceLayout = props.layoutType;
|
|
45797
|
+
}
|
|
45798
|
+
if (Object.keys(viewStatePatch).length) {
|
|
45799
|
+
this.setViewState(viewStatePatch);
|
|
45800
|
+
}
|
|
45801
|
+
if (props.showAmplitudeLabels !== undefined) {
|
|
45802
|
+
this.setDisplaySetPresentation(dataId, {
|
|
45803
|
+
showAmplitudeLabels: props.showAmplitudeLabels,
|
|
45804
|
+
});
|
|
45805
|
+
}
|
|
45301
45806
|
}
|
|
45302
45807
|
getProperties() {
|
|
45303
45808
|
const dataId = this.getFirstBinding()?.data.id;
|
|
45809
|
+
const presentation = dataId
|
|
45810
|
+
? this.getDisplaySetPresentation(dataId)
|
|
45811
|
+
: undefined;
|
|
45812
|
+
const viewState = this.getViewState();
|
|
45304
45813
|
return {
|
|
45305
|
-
visibleChannels:
|
|
45306
|
-
|
|
45307
|
-
|
|
45814
|
+
visibleChannels: viewState.visibleChannels,
|
|
45815
|
+
sweepSpeed: viewState.sweepSpeed,
|
|
45816
|
+
sensitivityMmMv: viewState.sensitivityMmMv,
|
|
45817
|
+
showAmplitudeLabels: presentation?.showAmplitudeLabels,
|
|
45818
|
+
traceLayout: viewState.traceLayout,
|
|
45308
45819
|
};
|
|
45309
45820
|
}
|
|
45310
45821
|
resetProperties() {
|
|
45311
|
-
const waveform = this.getWaveformData();
|
|
45312
45822
|
const dataId = this.getFirstBinding()?.data.id;
|
|
45313
|
-
if (!
|
|
45823
|
+
if (!dataId) {
|
|
45314
45824
|
return;
|
|
45315
45825
|
}
|
|
45826
|
+
this.setViewState({
|
|
45827
|
+
visibleChannels: undefined,
|
|
45828
|
+
sweepSpeed: undefined,
|
|
45829
|
+
sensitivityMmMv: undefined,
|
|
45830
|
+
traceLayout: undefined,
|
|
45831
|
+
});
|
|
45316
45832
|
this.setDisplaySetPresentation(dataId, {
|
|
45317
|
-
|
|
45833
|
+
showAmplitudeLabels: undefined,
|
|
45318
45834
|
});
|
|
45319
45835
|
}
|
|
45320
45836
|
getViewPresentation(selector) {
|
|
@@ -45331,8 +45847,61 @@ class ECGViewportLegacyAdapter extends ECG_ECGViewport/* ["default"] */.A {
|
|
|
45331
45847
|
this.setViewState(nextViewState);
|
|
45332
45848
|
}
|
|
45333
45849
|
}
|
|
45334
|
-
resetCamera() {
|
|
45335
|
-
return this.resetViewState();
|
|
45850
|
+
resetCamera(options) {
|
|
45851
|
+
return this.resetViewState(options);
|
|
45852
|
+
}
|
|
45853
|
+
getCamera() {
|
|
45854
|
+
return {
|
|
45855
|
+
...this.getViewState(),
|
|
45856
|
+
...this.getCameraForEvent(),
|
|
45857
|
+
};
|
|
45858
|
+
}
|
|
45859
|
+
setCamera(cameraPatch) {
|
|
45860
|
+
if (cameraPatch.timeRange || cameraPatch.valueRange) {
|
|
45861
|
+
const nextViewState = {};
|
|
45862
|
+
if (cameraPatch.timeRange) {
|
|
45863
|
+
nextViewState.timeRange = cameraPatch.timeRange;
|
|
45864
|
+
}
|
|
45865
|
+
if (cameraPatch.valueRange) {
|
|
45866
|
+
nextViewState.valueRange = cameraPatch.valueRange;
|
|
45867
|
+
}
|
|
45868
|
+
this.setViewState(nextViewState);
|
|
45869
|
+
}
|
|
45870
|
+
if (cameraPatch.parallelScale !== undefined &&
|
|
45871
|
+
cameraPatch.parallelScale > 0) {
|
|
45872
|
+
const currentCamera = this.getCamera();
|
|
45873
|
+
if (currentCamera.parallelScale) {
|
|
45874
|
+
const ratio = currentCamera.parallelScale / cameraPatch.parallelScale;
|
|
45875
|
+
const currentZoom = this.getZoom();
|
|
45876
|
+
this.setZoom(currentZoom * ratio);
|
|
45877
|
+
}
|
|
45878
|
+
}
|
|
45879
|
+
else if (cameraPatch.scale !== undefined && cameraPatch.scale > 0) {
|
|
45880
|
+
this.setZoom(cameraPatch.scale);
|
|
45881
|
+
}
|
|
45882
|
+
if (cameraPatch.focalPoint) {
|
|
45883
|
+
this.setFocalPoint(cameraPatch.focalPoint);
|
|
45884
|
+
}
|
|
45885
|
+
}
|
|
45886
|
+
setFocalPoint(focalPoint) {
|
|
45887
|
+
const resolvedView = this.getResolvedView();
|
|
45888
|
+
if (!resolvedView) {
|
|
45889
|
+
return;
|
|
45890
|
+
}
|
|
45891
|
+
const z = Math.round(focalPoint[2]);
|
|
45892
|
+
if (!resolvedView.findLayoutForZ(z)) {
|
|
45893
|
+
return;
|
|
45894
|
+
}
|
|
45895
|
+
const targetCanvas = resolvedView.worldToCanvas(focalPoint);
|
|
45896
|
+
const canvasCenter = [
|
|
45897
|
+
this.canvas.clientWidth / 2,
|
|
45898
|
+
this.canvas.clientHeight / 2,
|
|
45899
|
+
];
|
|
45900
|
+
const currentPan = this.getPan();
|
|
45901
|
+
this.setPan([
|
|
45902
|
+
currentPan[0] + (canvasCenter[0] - targetCanvas[0]),
|
|
45903
|
+
currentPan[1] + (canvasCenter[1] - targetCanvas[1]),
|
|
45904
|
+
]);
|
|
45336
45905
|
}
|
|
45337
45906
|
}
|
|
45338
45907
|
/* export default */ var ECG_ECGViewportLegacyAdapter = (ECGViewportLegacyAdapter);
|
|
@@ -48470,7 +49039,7 @@ var MeshType;
|
|
|
48470
49039
|
},
|
|
48471
49040
|
10234(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
48472
49041
|
"use strict";
|
|
48473
|
-
/* import */ var _cornerstonejs_metadata__rspack_import_0 = __webpack_require__(
|
|
49042
|
+
/* import */ var _cornerstonejs_metadata__rspack_import_0 = __webpack_require__(86049);
|
|
48474
49043
|
|
|
48475
49044
|
/* export default */ __webpack_exports__.A = (_cornerstonejs_metadata__rspack_import_0/* .Enums.MetadataModules */.fX.nb);
|
|
48476
49045
|
|
|
@@ -49830,28 +50399,6 @@ function createMesh(geometryId, meshData) {
|
|
|
49830
50399
|
}
|
|
49831
50400
|
|
|
49832
50401
|
|
|
49833
|
-
},
|
|
49834
|
-
52284(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
49835
|
-
"use strict";
|
|
49836
|
-
__webpack_require__.r(__webpack_exports__);
|
|
49837
|
-
/* import */ var _cornerstonejs_metadata__rspack_import_0 = __webpack_require__(76368);
|
|
49838
|
-
|
|
49839
|
-
const { /* addProvider */Zi: addProvider, /* removeProvider */iw: removeProvider, /* removeAllProviders */SD: removeAllProviders, /* getMetaData */YA: getMetaData, /* getTyped */FE: getTyped, /* get */Jt: get, /* getNormalized */Y2: getNormalized, /* toUpperCamelTag */Qy: toUpperCamelTag, /* toLowerCamelTag */Hw: toLowerCamelTag, } = _cornerstonejs_metadata__rspack_import_0/* .metaData */.wx;
|
|
49840
|
-
|
|
49841
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
49842
|
-
}, {
|
|
49843
|
-
addProvider: addProvider,
|
|
49844
|
-
get: get,
|
|
49845
|
-
getMetaData: getMetaData,
|
|
49846
|
-
getNormalized: getNormalized,
|
|
49847
|
-
getTyped: getTyped,
|
|
49848
|
-
removeAllProviders: removeAllProviders,
|
|
49849
|
-
removeProvider: removeProvider,
|
|
49850
|
-
toLowerCamelTag: toLowerCamelTag,
|
|
49851
|
-
toUpperCamelTag: toUpperCamelTag
|
|
49852
|
-
});
|
|
49853
|
-
|
|
49854
|
-
|
|
49855
50402
|
},
|
|
49856
50403
|
4193(__unused_rspack___webpack_module__, __unused_rspack___webpack_exports__, __webpack_require__) {
|
|
49857
50404
|
"use strict";
|
|
@@ -50340,7 +50887,7 @@ function resetRenderingCapabilities({ clearStorage = false, } = {}) {
|
|
|
50340
50887
|
},
|
|
50341
50888
|
6945() {
|
|
50342
50889
|
"use strict";
|
|
50343
|
-
const version = '5.
|
|
50890
|
+
const version = '5.16.0';
|
|
50344
50891
|
|
|
50345
50892
|
|
|
50346
50893
|
},
|
|
@@ -50453,7 +51000,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
50453
51000
|
|
|
50454
51001
|
|
|
50455
51002
|
},
|
|
50456
|
-
|
|
51003
|
+
86049(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
50457
51004
|
"use strict";
|
|
50458
51005
|
|
|
50459
51006
|
// EXPORTS
|
|
@@ -50463,11 +51010,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
50463
51010
|
BF: () => (/* reexport */ utilities_namespaceObject)
|
|
50464
51011
|
});
|
|
50465
51012
|
|
|
50466
|
-
// UNUSED EXPORTS: BaseDisplaySet, ImageStackDisplaySet, buildSeriesInfo, calculateSUVScalingFactors, createDisplaySetFromGroup, defaultDisplaySetSplitRules, displaySet,
|
|
51013
|
+
// UNUSED EXPORTS: BaseDisplaySet, DEFAULT_SPLIT_RULE_PRIORITY_LIMIT, DISPLAY_SET_HANDLER_NAMES, ExpressionSyntaxError, ImageStackDisplaySet, MATCH_OPERATOR_NAMES, RuleCompileError, buildSeriesInfo, bulkAnnotationSopClassUids, calculateSUVScalingFactors, chartSopClassUids, collectIdentifiers, collectReads, compare, compareInstanceNumber, compareSOPInstanceUID, compileCondition, compileExpression, compileTemplate, compileValue, compiledDisplaySetRules, createDisplaySetFromGroup, createDisplaySetSplitRules, defaultDisplaySetSplitRules, defaultMetadataContext, displaySet, displaySetRules, ecgSopClassUids, encapsulatedDocumentSopClassUids, getContextValue, getMetadataContext, groupInstancesBySplitRules, hasNoValue, imageSopClassUids, instancesSortCriteria, isAbsent, isEcgInstance, isEmpty, isImageInstance, isReconstructableInstances, isVideoInstance, isWsiInstance, logging, longVideoMinFrames, longVideoSopClassUids, looseEquals, orderInstancesForRule, parametricMapSopClassUids, parseExpressionSource, registerDefaultProviders, registerDisplaySetMetadata, registerDisplaySetProviders, resolveInstances, resolveSplitRuleSet, rtStructureSetSopClassUids, segmentationSopClassUids, setMetadataContext, sortByInstanceNumber, sortInstancesCopy, splitImageIdsBySplitRules, structuredReportSopClassUids, version, videoSopClassUids, videoTransferSyntaxUids, wholeSlideSopClassUids
|
|
50467
51014
|
// NAMESPACE OBJECT: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/index.js
|
|
50468
51015
|
var utilities_namespaceObject = {};
|
|
50469
51016
|
__webpack_require__.r(utilities_namespaceObject);
|
|
50470
51017
|
__webpack_require__.d(utilities_namespaceObject, {
|
|
51018
|
+
Fi: () => ((/* inlined export .ECG_AMPLITUDE_INDEX_SIZE */65536)),
|
|
51019
|
+
Fc: () => ((/* inlined export .ECG_DEFAULT_MV_PER_UNIT */0.001)),
|
|
50471
51020
|
VD: () => (calculateRadiographicPixelSpacing),
|
|
50472
51021
|
ZX: () => (utilities_calibratedPixelSpacingMetadataProvider/* ["default"] */.A),
|
|
50473
51022
|
Hf: () => (generateFrameImageId),
|
|
@@ -50528,6 +51077,63 @@ function bulkDataFromArray_getSingleBufferFromArray(raw) {
|
|
|
50528
51077
|
return out;
|
|
50529
51078
|
}
|
|
50530
51079
|
|
|
51080
|
+
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/decodeMultipartRelated.js
|
|
51081
|
+
const CRLF = (/* unused pure expression or super */ null && ([13, 10]));
|
|
51082
|
+
const HEADER_END = (/* unused pure expression or super */ null && ([13, 10, 13, 10]));
|
|
51083
|
+
const DASH_DASH = (/* unused pure expression or super */ null && ([45, 45]));
|
|
51084
|
+
function decodeMultipartRelated_decodeMultipartRelated(response, contentType) {
|
|
51085
|
+
const message = new Uint8Array(response);
|
|
51086
|
+
const boundary = getBoundaryFromContentType(contentType) ?? getBoundaryFromBody(message);
|
|
51087
|
+
if (!boundary) {
|
|
51088
|
+
return [response];
|
|
51089
|
+
}
|
|
51090
|
+
const delimiter = Array.from(new TextEncoder().encode(`--${boundary}`));
|
|
51091
|
+
const parts = [];
|
|
51092
|
+
let index = indexOf(message, delimiter, 0);
|
|
51093
|
+
while (index !== -1) {
|
|
51094
|
+
const afterDelimiter = index + delimiter.length;
|
|
51095
|
+
if (startsWith(message, DASH_DASH, afterDelimiter)) {
|
|
51096
|
+
break;
|
|
51097
|
+
}
|
|
51098
|
+
const headerEnd = indexOf(message, HEADER_END, afterDelimiter);
|
|
51099
|
+
if (headerEnd === -1) {
|
|
51100
|
+
break;
|
|
51101
|
+
}
|
|
51102
|
+
const dataStart = headerEnd + HEADER_END.length;
|
|
51103
|
+
const next = indexOf(message, [...CRLF, ...delimiter], dataStart);
|
|
51104
|
+
const dataEnd = next === -1 ? message.length : next;
|
|
51105
|
+
parts.push(response.slice(dataStart, dataEnd));
|
|
51106
|
+
index = next === -1 ? -1 : next + CRLF.length;
|
|
51107
|
+
}
|
|
51108
|
+
return parts.length ? parts : [response];
|
|
51109
|
+
}
|
|
51110
|
+
function getBoundaryFromContentType(contentType) {
|
|
51111
|
+
const match = contentType?.match(/boundary=(?:"([^"]+)"|([^\s;]+))/i);
|
|
51112
|
+
return match ? (match[1] ?? match[2]) : undefined;
|
|
51113
|
+
}
|
|
51114
|
+
function getBoundaryFromBody(message) {
|
|
51115
|
+
if (!startsWith(message, DASH_DASH, 0)) {
|
|
51116
|
+
return undefined;
|
|
51117
|
+
}
|
|
51118
|
+
const lineEnd = indexOf(message, CRLF, 0, 200);
|
|
51119
|
+
if (lineEnd <= DASH_DASH.length) {
|
|
51120
|
+
return undefined;
|
|
51121
|
+
}
|
|
51122
|
+
return new TextDecoder().decode(message.subarray(DASH_DASH.length, lineEnd));
|
|
51123
|
+
}
|
|
51124
|
+
function startsWith(message, token, at) {
|
|
51125
|
+
return token.every((byte, i) => message[at + i] === byte);
|
|
51126
|
+
}
|
|
51127
|
+
function indexOf(message, token, from, maxLength = message.length) {
|
|
51128
|
+
const end = Math.min(message.length, from + maxLength) - token.length;
|
|
51129
|
+
for (let i = from; i <= end; i++) {
|
|
51130
|
+
if (message[i] === token[0] && startsWith(message, token, i)) {
|
|
51131
|
+
return i;
|
|
51132
|
+
}
|
|
51133
|
+
}
|
|
51134
|
+
return -1;
|
|
51135
|
+
}
|
|
51136
|
+
|
|
50531
51137
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/definedAttributesOf.js
|
|
50532
51138
|
function definedAttributesOf(source) {
|
|
50533
51139
|
const result = {};
|
|
@@ -50978,126 +51584,8 @@ function splitImageIdsBy4DTags(imageIds) {
|
|
|
50978
51584
|
/* export default */ var utilities_splitImageIdsBy4DTags = (splitImageIdsBy4DTags);
|
|
50979
51585
|
|
|
50980
51586
|
|
|
50981
|
-
// EXTERNAL MODULE: ../../node_modules/
|
|
50982
|
-
var
|
|
50983
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/modules/index.js + 21 modules
|
|
50984
|
-
var modules = __webpack_require__(42701);
|
|
50985
|
-
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/Tags.js
|
|
50986
|
-
|
|
50987
|
-
|
|
50988
|
-
|
|
50989
|
-
|
|
50990
|
-
const Tags_cs3dLogger = esm/* .logging.metadataLog.getLogger */.m9.Um.getLogger('utilities.Tags');
|
|
50991
|
-
const dicomDictionary = dcmjs_es/* ["default"].data.DicomMetaDictionary.dictionary */.Ay.data.DicomMetaDictionary.dictionary;
|
|
50992
|
-
const nameMap = dcmjs_es/* ["default"].data.DicomMetaDictionary.nameMap */.Ay.data.DicomMetaDictionary.nameMap;
|
|
50993
|
-
|
|
50994
|
-
function createTagEntry(hexTag, ...groups) {
|
|
50995
|
-
return {
|
|
50996
|
-
tag: hexTag,
|
|
50997
|
-
groups,
|
|
50998
|
-
xTag: null,
|
|
50999
|
-
primaryGroup: null,
|
|
51000
|
-
name: null,
|
|
51001
|
-
lowerName: null,
|
|
51002
|
-
vr: null,
|
|
51003
|
-
vm: null,
|
|
51004
|
-
};
|
|
51005
|
-
}
|
|
51006
|
-
function Tags_parseVm(vm) {
|
|
51007
|
-
if (vm === undefined || vm === null) {
|
|
51008
|
-
return null;
|
|
51009
|
-
}
|
|
51010
|
-
if (typeof vm === 'number') {
|
|
51011
|
-
return vm;
|
|
51012
|
-
}
|
|
51013
|
-
const n = parseInt(vm, 10);
|
|
51014
|
-
if (String(n) === vm) {
|
|
51015
|
-
return n;
|
|
51016
|
-
}
|
|
51017
|
-
return 0;
|
|
51018
|
-
}
|
|
51019
|
-
function Tags_dictionaryLookup(hexTag) {
|
|
51020
|
-
return dicomDictionary[hexTag.toUpperCase()];
|
|
51021
|
-
}
|
|
51022
|
-
function getTagCodeByName(name) {
|
|
51023
|
-
return Tags_mapTagInfo.get(name)?.tag;
|
|
51024
|
-
}
|
|
51025
|
-
const Tags_mapModuleTags = new Map();
|
|
51026
|
-
const Tags_mapTagInfo = new Map();
|
|
51027
|
-
function addTag(name, value) {
|
|
51028
|
-
if (name && value.name && name !== value.name) {
|
|
51029
|
-
throw new Error(`Tag name provided and value don't match: ${name} !== ${value.name}`);
|
|
51030
|
-
}
|
|
51031
|
-
value.name ||= name;
|
|
51032
|
-
value.lowerName ||= metaData/* .toLowerCamelTag */.Hw(name);
|
|
51033
|
-
Tags[name] = value;
|
|
51034
|
-
const { tag: hexTag } = value;
|
|
51035
|
-
value.primaryGroup ||= value.groups?.[0];
|
|
51036
|
-
const { groups } = value;
|
|
51037
|
-
Tags_mapTagInfo.set(name, value);
|
|
51038
|
-
if (hexTag) {
|
|
51039
|
-
value.xTag = `x${hexTag.toLowerCase()}`;
|
|
51040
|
-
value.tag = hexTag.toUpperCase();
|
|
51041
|
-
Tags_mapTagInfo.set(value.xTag, value);
|
|
51042
|
-
Tags_mapTagInfo.set(value.tag, value);
|
|
51043
|
-
if (!value.vr) {
|
|
51044
|
-
const dictEntry = dicomDictionary[value.tag];
|
|
51045
|
-
if (dictEntry) {
|
|
51046
|
-
value.vr = dictEntry.vr;
|
|
51047
|
-
value.vm = Tags_parseVm(dictEntry.vm);
|
|
51048
|
-
}
|
|
51049
|
-
}
|
|
51050
|
-
}
|
|
51051
|
-
if (groups?.length) {
|
|
51052
|
-
for (const group of groups) {
|
|
51053
|
-
let moduleEntries = Tags_mapModuleTags.get(group);
|
|
51054
|
-
if (!moduleEntries) {
|
|
51055
|
-
moduleEntries = [value];
|
|
51056
|
-
Tags_mapModuleTags.set(group, moduleEntries);
|
|
51057
|
-
return;
|
|
51058
|
-
}
|
|
51059
|
-
const foundIndex = moduleEntries.findIndex((it) => it.name === name);
|
|
51060
|
-
if (foundIndex === -1) {
|
|
51061
|
-
moduleEntries.push(value);
|
|
51062
|
-
}
|
|
51063
|
-
else {
|
|
51064
|
-
moduleEntries[foundIndex] = value;
|
|
51065
|
-
}
|
|
51066
|
-
}
|
|
51067
|
-
}
|
|
51068
|
-
}
|
|
51069
|
-
function resolveHexFromKeyword(keyword) {
|
|
51070
|
-
const entry = nameMap[keyword];
|
|
51071
|
-
if (!entry) {
|
|
51072
|
-
return undefined;
|
|
51073
|
-
}
|
|
51074
|
-
return entry.tag.substring(1, 5) + entry.tag.substring(6, 10);
|
|
51075
|
-
}
|
|
51076
|
-
const Tags = {};
|
|
51077
|
-
const tagGroups = new Map();
|
|
51078
|
-
for (const [moduleName, keywords] of modules/* .moduleDefinitions */.zh) {
|
|
51079
|
-
for (const entry of keywords) {
|
|
51080
|
-
const keyword = typeof entry === 'string' ? entry : entry[0];
|
|
51081
|
-
const hexOverride = typeof entry === 'string' ? undefined : entry[1];
|
|
51082
|
-
let data = tagGroups.get(keyword);
|
|
51083
|
-
if (!data) {
|
|
51084
|
-
const hex = hexOverride ?? resolveHexFromKeyword(keyword);
|
|
51085
|
-
data = { hex, groups: [] };
|
|
51086
|
-
tagGroups.set(keyword, data);
|
|
51087
|
-
}
|
|
51088
|
-
if (moduleName !== null) {
|
|
51089
|
-
data.groups.push(moduleName);
|
|
51090
|
-
}
|
|
51091
|
-
}
|
|
51092
|
-
}
|
|
51093
|
-
for (const [keyword, { hex, groups }] of tagGroups) {
|
|
51094
|
-
if (!hex) {
|
|
51095
|
-
Tags_cs3dLogger.warn(`Tags: keyword "${keyword}" not found in dcmjs nameMap`);
|
|
51096
|
-
continue;
|
|
51097
|
-
}
|
|
51098
|
-
addTag(keyword, createTagEntry(hex, ...groups));
|
|
51099
|
-
}
|
|
51100
|
-
|
|
51587
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/Tags.js
|
|
51588
|
+
var Tags = __webpack_require__(40327);
|
|
51101
51589
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/dicomStream/MetaDataIterator.js
|
|
51102
51590
|
|
|
51103
51591
|
class MetaDataIterator_MetaDataIterator {
|
|
@@ -51158,6 +51646,8 @@ class MetaDataIterator_MetaDataIterator {
|
|
|
51158
51646
|
}
|
|
51159
51647
|
}
|
|
51160
51648
|
|
|
51649
|
+
// EXTERNAL MODULE: ../../node_modules/dcmjs/build/dcmjs.es.js
|
|
51650
|
+
var dcmjs_es = __webpack_require__(85631);
|
|
51161
51651
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/metadataProvider/makeArrayLike.js
|
|
51162
51652
|
function makeArrayLike_makeArrayLike(obj) {
|
|
51163
51653
|
if (obj === null || obj === undefined) {
|
|
@@ -51962,7 +52452,36 @@ var ecgModule = __webpack_require__(46620);
|
|
|
51962
52452
|
|
|
51963
52453
|
|
|
51964
52454
|
|
|
52455
|
+
|
|
52456
|
+
|
|
51965
52457
|
const ecgFromInstance_cs3dLogger = esm/* .logging.metadataLog.getLogger */.m9.Um.getLogger('utilities.metadataProvider.ecgFromInstance');
|
|
52458
|
+
const ECG_DEFAULT_MV_PER_UNIT = 0.001;
|
|
52459
|
+
const MV_PER_SENSITIVITY_UNIT = (/* unused pure expression or super */ null && ({
|
|
52460
|
+
v: 1000,
|
|
52461
|
+
mv: 1,
|
|
52462
|
+
uv: 0.001,
|
|
52463
|
+
µv: 0.001,
|
|
52464
|
+
nv: 0.000001,
|
|
52465
|
+
}));
|
|
52466
|
+
function getChannelMvPerUnit(channel) {
|
|
52467
|
+
const sensitivity = toFiniteFirst(channel.ChannelSensitivity);
|
|
52468
|
+
if (sensitivity === undefined || sensitivity === 0) {
|
|
52469
|
+
return ECG_DEFAULT_MV_PER_UNIT;
|
|
52470
|
+
}
|
|
52471
|
+
const correction = toFiniteFirst(channel.ChannelSensitivityCorrectionFactor) || 1;
|
|
52472
|
+
const unitsSeq = toArray(channel.ChannelSensitivityUnitsSequence);
|
|
52473
|
+
const unitCode = (unitsSeq[0]?.CodeValue ??
|
|
52474
|
+
unitsSeq[0]?.CodeMeaning ??
|
|
52475
|
+
'')
|
|
52476
|
+
.trim()
|
|
52477
|
+
.toLowerCase();
|
|
52478
|
+
const mvPerSensitivityUnit = MV_PER_SENSITIVITY_UNIT[unitCode];
|
|
52479
|
+
if (mvPerSensitivityUnit === undefined) {
|
|
52480
|
+
ecgFromInstance_cs3dLogger.warn(`[ecgFromInstance] Unknown ChannelSensitivityUnits "${unitCode}". Using ${ECG_DEFAULT_MV_PER_UNIT} mV for each unit.`);
|
|
52481
|
+
return ECG_DEFAULT_MV_PER_UNIT;
|
|
52482
|
+
}
|
|
52483
|
+
return sensitivity * correction * mvPerSensitivityUnit;
|
|
52484
|
+
}
|
|
51966
52485
|
function base64ToUint8Array(base64) {
|
|
51967
52486
|
const binaryString = atob(base64);
|
|
51968
52487
|
const bytes = new Uint8Array(binaryString.length);
|
|
@@ -51972,7 +52491,9 @@ function base64ToUint8Array(base64) {
|
|
|
51972
52491
|
return bytes;
|
|
51973
52492
|
}
|
|
51974
52493
|
function convertBuffer(dataSrc, numberOfChannels, numberOfSamples, bits, type) {
|
|
51975
|
-
const data =
|
|
52494
|
+
const data = ArrayBuffer.isView(dataSrc)
|
|
52495
|
+
? new Uint8Array(dataSrc.buffer, dataSrc.byteOffset, dataSrc.byteLength)
|
|
52496
|
+
: new Uint8Array(dataSrc);
|
|
51976
52497
|
if (bits === 16 && type === 'SS') {
|
|
51977
52498
|
const ret = [];
|
|
51978
52499
|
const bytesPerSample = 2;
|
|
@@ -51995,52 +52516,10 @@ function convertBuffer(dataSrc, numberOfChannels, numberOfSamples, bits, type) {
|
|
|
51995
52516
|
}
|
|
51996
52517
|
return [];
|
|
51997
52518
|
}
|
|
51998
|
-
function
|
|
51999
|
-
|
|
52000
|
-
|
|
52001
|
-
|
|
52002
|
-
const maxHeader = 1000;
|
|
52003
|
-
let headerEnd = -1;
|
|
52004
|
-
for (let i = 0; i < Math.min(message.length - separator.length, offset + maxHeader); i++) {
|
|
52005
|
-
let found = true;
|
|
52006
|
-
for (let j = 0; j < separator.length; j++) {
|
|
52007
|
-
if (message[i + j] !== separator[j]) {
|
|
52008
|
-
found = false;
|
|
52009
|
-
break;
|
|
52010
|
-
}
|
|
52011
|
-
}
|
|
52012
|
-
if (found) {
|
|
52013
|
-
headerEnd = i;
|
|
52014
|
-
break;
|
|
52015
|
-
}
|
|
52016
|
-
}
|
|
52017
|
-
if (headerEnd === -1)
|
|
52018
|
-
return [response];
|
|
52019
|
-
const headerStr = new TextDecoder().decode(message.slice(0, headerEnd));
|
|
52020
|
-
const boundaryMatch = headerStr.match(/boundary=([^\s;]+)/i);
|
|
52021
|
-
const boundary = boundaryMatch
|
|
52022
|
-
? new TextEncoder().encode(`--${boundaryMatch[1].replace(/"/g, '').trim()}`)
|
|
52023
|
-
: null;
|
|
52024
|
-
if (!boundary)
|
|
52025
|
-
return [response];
|
|
52026
|
-
const dataStart = headerEnd + separator.length;
|
|
52027
|
-
const components = [];
|
|
52028
|
-
let idx = message.indexOf(boundary[0], dataStart);
|
|
52029
|
-
while (idx !== -1) {
|
|
52030
|
-
const nextSep = message.indexOf(separator[0], idx);
|
|
52031
|
-
if (nextSep === -1)
|
|
52032
|
-
break;
|
|
52033
|
-
const partStart = nextSep + separator.length;
|
|
52034
|
-
const nextBound = message.indexOf(boundary[0], partStart);
|
|
52035
|
-
const partEnd = nextBound === -1 ? message.length : nextBound - 2;
|
|
52036
|
-
if (partEnd > partStart) {
|
|
52037
|
-
components.push(response.slice(partStart, partEnd));
|
|
52038
|
-
}
|
|
52039
|
-
if (nextBound === -1)
|
|
52040
|
-
break;
|
|
52041
|
-
idx = message.indexOf(boundary[0], nextBound + boundary.length);
|
|
52042
|
-
}
|
|
52043
|
-
return components.length > 0 ? components : [response];
|
|
52519
|
+
function isDecodedChannels(value, numberOfChannels, numberOfSamples) {
|
|
52520
|
+
return (Array.isArray(value) &&
|
|
52521
|
+
value.length === numberOfChannels &&
|
|
52522
|
+
value.every((channel) => channel instanceof Int16Array && channel.length === numberOfSamples));
|
|
52044
52523
|
}
|
|
52045
52524
|
function parseWadoRsImageId(imageId) {
|
|
52046
52525
|
const uri = imageId.replace(/^wadors:/i, '');
|
|
@@ -52063,12 +52542,162 @@ function toArray(seq) {
|
|
|
52063
52542
|
}
|
|
52064
52543
|
return [seq];
|
|
52065
52544
|
}
|
|
52066
|
-
|
|
52545
|
+
const ECG_CODE_MAP = new Map([
|
|
52546
|
+
['8867-4', 'ventricularHeartRate'],
|
|
52547
|
+
['2:1', 'ventricularHeartRate'],
|
|
52548
|
+
['8625-6', 'prInterval'],
|
|
52549
|
+
['8633-0', 'qrsDuration'],
|
|
52550
|
+
['8634-8', 'qtInterval'],
|
|
52551
|
+
['8636-3', 'qtcInterval'],
|
|
52552
|
+
['8637-1', 'rrInterval'],
|
|
52553
|
+
['8626-4', 'pAxis'],
|
|
52554
|
+
['8632-2', 'qrsAxis'],
|
|
52555
|
+
['8638-9', 'tAxis'],
|
|
52556
|
+
]);
|
|
52557
|
+
const ECG_MEANING_PATTERNS = (/* unused pure expression or super */ null && ([
|
|
52558
|
+
[
|
|
52559
|
+
/^(?!.*\batrial\b).*\b((ventricular\s+)?heart|ventricular)\s+rate\b|^hr$/i,
|
|
52560
|
+
'ventricularHeartRate',
|
|
52561
|
+
],
|
|
52562
|
+
[/(^|\b)p[- ]?r\s*(interval|int)\b|^p[- ]?r$/i, 'prInterval'],
|
|
52563
|
+
[/(^|\b)qrs\s*(duration|width|interval)\b|^qrs$/i, 'qrsDuration'],
|
|
52564
|
+
[/(^|\b)qtc(\s*(interval|calc|int))?\b|^qtc$/i, 'qtcInterval'],
|
|
52565
|
+
[/(^|\b)qt\s*(interval|int)\b|^qt$/i, 'qtInterval'],
|
|
52566
|
+
[/(^|\b)r[- ]?r\s*(interval|int)\b|^r[- ]?r$/i, 'rrInterval'],
|
|
52567
|
+
[/(^|\b)p(\s+wave)?\s+axis\b|axis\s+p\b/i, 'pAxis'],
|
|
52568
|
+
[/(^|\b)qrs\s+axis\b|axis\s+qrs\b/i, 'qrsAxis'],
|
|
52569
|
+
[/(^|\b)t(\s+wave)?\s+axis\b|axis\s+t\b/i, 'tAxis'],
|
|
52570
|
+
]));
|
|
52571
|
+
function matchEcgMetric(codeValue, codeMeaning) {
|
|
52572
|
+
if (codeValue && ECG_CODE_MAP.has(codeValue)) {
|
|
52573
|
+
return ECG_CODE_MAP.get(codeValue);
|
|
52574
|
+
}
|
|
52575
|
+
return codeMeaning
|
|
52576
|
+
? ECG_MEANING_PATTERNS.find(([pattern]) => pattern.test(codeMeaning))?.[1]
|
|
52577
|
+
: undefined;
|
|
52578
|
+
}
|
|
52579
|
+
function firstText(raw) {
|
|
52580
|
+
const text = asArrayFirst(raw)
|
|
52581
|
+
?.toString()
|
|
52582
|
+
.trim();
|
|
52583
|
+
return text || undefined;
|
|
52584
|
+
}
|
|
52585
|
+
function codeText(item) {
|
|
52586
|
+
return firstText(item?.CodeMeaning) || firstText(item?.CodeValue);
|
|
52587
|
+
}
|
|
52588
|
+
function parseEcgAnnotations(instance) {
|
|
52589
|
+
const seq = toArray(instance.WaveformAnnotationSequence);
|
|
52590
|
+
if (!seq.length) {
|
|
52591
|
+
return undefined;
|
|
52592
|
+
}
|
|
52593
|
+
const annotations = {
|
|
52594
|
+
units: {},
|
|
52595
|
+
interpretations: [],
|
|
52596
|
+
all: [],
|
|
52597
|
+
};
|
|
52598
|
+
for (const item of seq) {
|
|
52599
|
+
if (!item) {
|
|
52600
|
+
continue;
|
|
52601
|
+
}
|
|
52602
|
+
const concept = toArray(item.ConceptNameCodeSequence)[0];
|
|
52603
|
+
const codeMeaning = firstText(concept?.CodeMeaning) ?? '';
|
|
52604
|
+
const codeValue = firstText(concept?.CodeValue) ?? '';
|
|
52605
|
+
const numericVal = toFiniteFirst(item.NumericValue);
|
|
52606
|
+
const unitItem = toArray(item.MeasurementUnitsCodeSequence)[0];
|
|
52607
|
+
const unit = codeText(unitItem);
|
|
52608
|
+
const codedValue = codeText(toArray(item.ConceptCodeSequence)[0]);
|
|
52609
|
+
const textVal = firstText(item.UnformattedTextValue ?? item.TextValue) ?? codedValue;
|
|
52610
|
+
const channelPairs = [item.ReferencedWaveformChannels ?? []].flat();
|
|
52611
|
+
const isGlobal = item.TemporalRangeType === undefined &&
|
|
52612
|
+
item.ReferencedSamplePositions === undefined &&
|
|
52613
|
+
item.ReferencedTimeOffsets === undefined &&
|
|
52614
|
+
item.ReferencedDateTime === undefined &&
|
|
52615
|
+
channelPairs.every((value, index) => index % 2 === 0 || value === 0);
|
|
52616
|
+
if (codeMeaning || codeValue || numericVal !== undefined || textVal) {
|
|
52617
|
+
annotations.all.push({
|
|
52618
|
+
concept: codeMeaning || codeValue
|
|
52619
|
+
? {
|
|
52620
|
+
codeMeaning,
|
|
52621
|
+
codeValue,
|
|
52622
|
+
codingSchemeDesignator: firstText(concept?.CodingSchemeDesignator) ?? '',
|
|
52623
|
+
}
|
|
52624
|
+
: undefined,
|
|
52625
|
+
numericValue: numericVal,
|
|
52626
|
+
unit,
|
|
52627
|
+
textValue: textVal,
|
|
52628
|
+
});
|
|
52629
|
+
}
|
|
52630
|
+
if (!isGlobal) {
|
|
52631
|
+
continue;
|
|
52632
|
+
}
|
|
52633
|
+
const metric = numericVal !== undefined
|
|
52634
|
+
? matchEcgMetric(codeValue, codeMeaning)
|
|
52635
|
+
: undefined;
|
|
52636
|
+
if (metric) {
|
|
52637
|
+
if (annotations[metric] === undefined) {
|
|
52638
|
+
annotations[metric] = numericVal;
|
|
52639
|
+
annotations.units[metric] = firstText(unitItem?.CodeValue) || unit;
|
|
52640
|
+
}
|
|
52641
|
+
continue;
|
|
52642
|
+
}
|
|
52643
|
+
const finding = textVal || (numericVal === undefined ? codeMeaning : undefined);
|
|
52644
|
+
if (finding && !annotations.interpretations.includes(finding)) {
|
|
52645
|
+
annotations.interpretations.push(finding);
|
|
52646
|
+
}
|
|
52647
|
+
}
|
|
52648
|
+
if (annotations.ventricularHeartRate === undefined &&
|
|
52649
|
+
annotations.rrInterval !== undefined &&
|
|
52650
|
+
annotations.rrInterval > 0) {
|
|
52651
|
+
const rrUnit = annotations.units.rrInterval;
|
|
52652
|
+
const inSeconds = rrUnit === 's' || (rrUnit !== 'ms' && annotations.rrInterval < 5);
|
|
52653
|
+
const rrMs = annotations.rrInterval * (inSeconds ? 1000 : 1);
|
|
52654
|
+
annotations.ventricularHeartRate = Math.round(60000 / rrMs);
|
|
52655
|
+
annotations.units.ventricularHeartRate = '/min';
|
|
52656
|
+
}
|
|
52657
|
+
return annotations;
|
|
52658
|
+
}
|
|
52659
|
+
function getEcgMultiplexGroupIndex(options) {
|
|
52660
|
+
const index = options
|
|
52661
|
+
?.multiplexGroupIndex;
|
|
52662
|
+
return Number.isInteger(index) && index >= 0
|
|
52663
|
+
? index
|
|
52664
|
+
: undefined;
|
|
52665
|
+
}
|
|
52666
|
+
function findPrimaryWaveformGroup(groups, preferredIndex) {
|
|
52667
|
+
if (!groups.length) {
|
|
52668
|
+
throw new Error('[ecgFromInstance] WaveformSequence has no groups');
|
|
52669
|
+
}
|
|
52670
|
+
if (typeof preferredIndex === 'number' &&
|
|
52671
|
+
preferredIndex >= 0 &&
|
|
52672
|
+
preferredIndex < groups.length) {
|
|
52673
|
+
return { group: groups[preferredIndex], index: preferredIndex };
|
|
52674
|
+
}
|
|
52675
|
+
const rhythmIndex = groups.findIndex((g) => {
|
|
52676
|
+
const label = String(g.MultiplexGroupLabel || '').toUpperCase();
|
|
52677
|
+
return label.includes('RHYTHM') || label.includes('CONTINUOUS');
|
|
52678
|
+
});
|
|
52679
|
+
if (rhythmIndex >= 0) {
|
|
52680
|
+
return { group: groups[rhythmIndex], index: rhythmIndex };
|
|
52681
|
+
}
|
|
52682
|
+
let bestIndex = 0;
|
|
52683
|
+
let maxDuration = -1;
|
|
52684
|
+
groups.forEach((g, idx) => {
|
|
52685
|
+
const samples = Number(g.NumberOfWaveformSamples) || 0;
|
|
52686
|
+
const freq = Number(g.SamplingFrequency) || 1;
|
|
52687
|
+
const duration = freq > 0 ? samples / freq : samples;
|
|
52688
|
+
if (duration > maxDuration) {
|
|
52689
|
+
maxDuration = duration;
|
|
52690
|
+
bestIndex = idx;
|
|
52691
|
+
}
|
|
52692
|
+
});
|
|
52693
|
+
return { group: groups[bestIndex], index: bestIndex };
|
|
52694
|
+
}
|
|
52695
|
+
function buildEcgModuleFromInstance(instance, imageId, options = {}) {
|
|
52067
52696
|
const raw = instance.WaveformSequence;
|
|
52068
52697
|
const groups = toArray(raw);
|
|
52069
52698
|
if (!groups.length)
|
|
52070
52699
|
return null;
|
|
52071
|
-
const group = groups
|
|
52700
|
+
const { group, index: multiplexGroupIndex } = findPrimaryWaveformGroup(groups, options.multiplexGroupIndex);
|
|
52072
52701
|
const numberOfChannels = group.NumberOfWaveformChannels ?? 0;
|
|
52073
52702
|
const numberOfSamples = group.NumberOfWaveformSamples ?? 0;
|
|
52074
52703
|
const samplingFrequency = group.SamplingFrequency ?? 1;
|
|
@@ -52080,36 +52709,44 @@ function buildEcgModuleFromInstance(instance, imageId) {
|
|
|
52080
52709
|
const srcSeqArr = toArray(ch.ChannelSourceSequence);
|
|
52081
52710
|
const srcSeq = srcSeqArr[0];
|
|
52082
52711
|
const codeMeaning = srcSeq?.CodeMeaning ?? '';
|
|
52712
|
+
const codeValue = srcSeq?.CodeValue;
|
|
52713
|
+
const codingSchemeDesignator = srcSeq?.CodingSchemeDesignator;
|
|
52083
52714
|
return {
|
|
52084
|
-
channelSourceSequence: { codeMeaning },
|
|
52715
|
+
channelSourceSequence: { codeMeaning, codeValue, codingSchemeDesignator },
|
|
52716
|
+
mvPerUnit: getChannelMvPerUnit(ch),
|
|
52085
52717
|
};
|
|
52086
52718
|
});
|
|
52087
|
-
let waveformDataRaw =
|
|
52088
|
-
if (waveformDataRaw &&
|
|
52089
|
-
typeof waveformDataRaw.length === 'number' &&
|
|
52090
|
-
waveformDataRaw.length > 0) {
|
|
52719
|
+
let waveformDataRaw = group.WaveformData ?? group.waveformData;
|
|
52720
|
+
if (Array.isArray(waveformDataRaw) && waveformDataRaw.length > 0) {
|
|
52091
52721
|
waveformDataRaw = waveformDataRaw[0];
|
|
52092
52722
|
}
|
|
52093
52723
|
const waveformData = waveformDataRaw ?? {};
|
|
52094
52724
|
const { wadoRsRoot = undefined, studyUID = undefined } = imageId
|
|
52095
52725
|
? parseWadoRsImageId(imageId)
|
|
52096
52726
|
: {};
|
|
52727
|
+
const toChannels = (value) => {
|
|
52728
|
+
if (isDecodedChannels(value, numberOfChannels, numberOfSamples)) {
|
|
52729
|
+
return value;
|
|
52730
|
+
}
|
|
52731
|
+
const bytes = getSingleBufferFromArray(value);
|
|
52732
|
+
return bytes
|
|
52733
|
+
? convertBuffer(bytes, numberOfChannels, numberOfSamples, bitsAllocated, sampleInterpretation)
|
|
52734
|
+
: undefined;
|
|
52735
|
+
};
|
|
52097
52736
|
const retrieveBulkData = async () => {
|
|
52098
|
-
const
|
|
52099
|
-
if (
|
|
52100
|
-
|
|
52101
|
-
|
|
52102
|
-
ArrayBuffer.isView(wd))) {
|
|
52103
|
-
return convertBuffer(wd, numberOfChannels, numberOfSamples, bitsAllocated, sampleInterpretation);
|
|
52104
|
-
}
|
|
52105
|
-
if (waveformData.Value)
|
|
52106
|
-
return waveformData.Value;
|
|
52737
|
+
const channels = toChannels(waveformData) ?? toChannels(waveformData.Value);
|
|
52738
|
+
if (channels) {
|
|
52739
|
+
return channels;
|
|
52740
|
+
}
|
|
52107
52741
|
if (waveformData.InlineBinary) {
|
|
52108
52742
|
const raw = base64ToUint8Array(waveformData.InlineBinary);
|
|
52109
52743
|
return convertBuffer(raw, numberOfChannels, numberOfSamples, bitsAllocated, sampleInterpretation);
|
|
52110
52744
|
}
|
|
52111
52745
|
if (typeof waveformData.retrieveBulkData === 'function') {
|
|
52112
|
-
|
|
52746
|
+
const retrieved = toChannels(await waveformData.retrieveBulkData());
|
|
52747
|
+
if (retrieved) {
|
|
52748
|
+
return retrieved;
|
|
52749
|
+
}
|
|
52113
52750
|
}
|
|
52114
52751
|
if (waveformData.BulkDataURI) {
|
|
52115
52752
|
let url = waveformData.BulkDataURI;
|
|
@@ -52118,17 +52755,23 @@ function buildEcgModuleFromInstance(instance, imageId) {
|
|
|
52118
52755
|
? `${wadoRsRoot}/studies/${studyUID}/${url}`
|
|
52119
52756
|
: `${wadoRsRoot}/${url}`;
|
|
52120
52757
|
}
|
|
52121
|
-
const response = await fetch(url
|
|
52122
|
-
|
|
52123
|
-
|
|
52124
|
-
|
|
52125
|
-
|
|
52126
|
-
|
|
52127
|
-
|
|
52758
|
+
const response = await fetch(url, {
|
|
52759
|
+
headers: {
|
|
52760
|
+
Accept: 'multipart/related; type="application/octet-stream"',
|
|
52761
|
+
...options.getHeaders?.(),
|
|
52762
|
+
},
|
|
52763
|
+
});
|
|
52764
|
+
if (!response.ok) {
|
|
52765
|
+
throw new Error(`[ecgFromInstance] Waveform bulkdata fetch failed: ${response.status}`);
|
|
52766
|
+
}
|
|
52767
|
+
const [part] = decodeMultipartRelated(await response.arrayBuffer(), response.headers.get('content-type') ?? undefined);
|
|
52768
|
+
return convertBuffer(part, numberOfChannels, numberOfSamples, bitsAllocated, sampleInterpretation);
|
|
52128
52769
|
}
|
|
52129
|
-
|
|
52770
|
+
const dataKeys = Object.keys(waveformData);
|
|
52771
|
+
ecgFromInstance_cs3dLogger.warn('[ecgFromInstance] No waveform data source found. waveformData keys:', dataKeys.slice(0, 10), `(${dataKeys.length} total)`);
|
|
52130
52772
|
throw new Error('[ecgFromInstance] No waveform data source found');
|
|
52131
52773
|
};
|
|
52774
|
+
const annotations = parseEcgAnnotations(instance);
|
|
52132
52775
|
return {
|
|
52133
52776
|
numberOfWaveformChannels: numberOfChannels,
|
|
52134
52777
|
numberOfWaveformSamples: numberOfSamples,
|
|
@@ -52136,8 +52779,11 @@ function buildEcgModuleFromInstance(instance, imageId) {
|
|
|
52136
52779
|
waveformBitsAllocated: bitsAllocated,
|
|
52137
52780
|
waveformSampleInterpretation: sampleInterpretation,
|
|
52138
52781
|
multiplexGroupLabel,
|
|
52782
|
+
multiplexGroupIndex,
|
|
52783
|
+
totalMultiplexGroups: groups.length,
|
|
52139
52784
|
channelDefinitionSequence,
|
|
52140
52785
|
waveformData: { retrieveBulkData },
|
|
52786
|
+
annotations,
|
|
52141
52787
|
};
|
|
52142
52788
|
}
|
|
52143
52789
|
const ECG_FROM_INSTANCE_PRIORITY = 4_000;
|
|
@@ -52147,22 +52793,26 @@ const ecgFromInstanceProvider = (next, query, data, options) => {
|
|
|
52147
52793
|
if (!hasWaveform) {
|
|
52148
52794
|
return next(query, data, options);
|
|
52149
52795
|
}
|
|
52150
|
-
const result = buildEcgModuleFromInstance(instance, query
|
|
52796
|
+
const result = buildEcgModuleFromInstance(instance, query, {
|
|
52797
|
+
multiplexGroupIndex: getEcgMultiplexGroupIndex(options),
|
|
52798
|
+
});
|
|
52151
52799
|
return result ?? next(query, data, options);
|
|
52152
52800
|
};
|
|
52153
52801
|
const ECG_AMPLITUDE_INDEX_SIZE = 65536;
|
|
52154
|
-
const ECG_AMPLITUDE_OFFSET =
|
|
52155
|
-
|
|
52156
|
-
const instance = data;
|
|
52802
|
+
const ECG_AMPLITUDE_OFFSET = (/* unused pure expression or super */ null && (ECG_AMPLITUDE_INDEX_SIZE / 2));
|
|
52803
|
+
function buildEcgCalibrationFromInstance(instance, options) {
|
|
52157
52804
|
const raw = instance?.WaveformSequence;
|
|
52158
52805
|
const groups = toArray(raw);
|
|
52159
52806
|
if (!groups.length)
|
|
52160
|
-
return
|
|
52161
|
-
const group = groups
|
|
52807
|
+
return undefined;
|
|
52808
|
+
const { group } = findPrimaryWaveformGroup(groups, getEcgMultiplexGroupIndex(options));
|
|
52162
52809
|
const numberOfWaveformSamples = group.NumberOfWaveformSamples ?? 0;
|
|
52163
52810
|
const samplingFrequency = group.SamplingFrequency ?? 1;
|
|
52164
52811
|
const physicalDeltaX = 1 / (samplingFrequency || 1);
|
|
52165
|
-
const
|
|
52812
|
+
const firstChannel = toArray(group.ChannelDefinitionSequence)[0];
|
|
52813
|
+
const physicalDeltaY = firstChannel
|
|
52814
|
+
? getChannelMvPerUnit(firstChannel)
|
|
52815
|
+
: ECG_DEFAULT_MV_PER_UNIT;
|
|
52166
52816
|
return {
|
|
52167
52817
|
sequenceOfUltrasoundRegions: [
|
|
52168
52818
|
{
|
|
@@ -52180,7 +52830,8 @@ const ecgCalibrationProvider = (next, query, data, options) => {
|
|
|
52180
52830
|
},
|
|
52181
52831
|
],
|
|
52182
52832
|
};
|
|
52183
|
-
}
|
|
52833
|
+
}
|
|
52834
|
+
const ecgCalibrationProvider = (next, query, data, options) => buildEcgCalibrationFromInstance(data, options) ?? next(query, data, options);
|
|
52184
52835
|
function ecgFromInstance_registerEcgFromInstanceProvider() {
|
|
52185
52836
|
addTypedProvider(MetadataModules.ECG, ecgFromInstanceProvider, {
|
|
52186
52837
|
priority: ECG_FROM_INSTANCE_PRIORITY,
|
|
@@ -52359,8 +53010,8 @@ function scalingFromInstance_registerScalingFromInstanceProvider() {
|
|
|
52359
53010
|
|
|
52360
53011
|
|
|
52361
53012
|
|
|
52362
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/displayset/index.js +
|
|
52363
|
-
var displayset = __webpack_require__(
|
|
53013
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/displayset/index.js + 24 modules
|
|
53014
|
+
var displayset = __webpack_require__(94002);
|
|
52364
53015
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/index.js
|
|
52365
53016
|
|
|
52366
53017
|
|
|
@@ -52380,6 +53031,9 @@ var displayset = __webpack_require__(28270);
|
|
|
52380
53031
|
|
|
52381
53032
|
|
|
52382
53033
|
|
|
53034
|
+
|
|
53035
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/safeFunctions/index.js + 6 modules
|
|
53036
|
+
var safeFunctions = __webpack_require__(45992);
|
|
52383
53037
|
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/metadata/dist/esm/utilities/metadataProvider/compressedFrameData.js
|
|
52384
53038
|
|
|
52385
53039
|
|
|
@@ -52571,6 +53225,7 @@ function registerDefaultProviders() {
|
|
|
52571
53225
|
|
|
52572
53226
|
|
|
52573
53227
|
|
|
53228
|
+
|
|
52574
53229
|
const { /* calculateSUVScalingFactors */C: esm_calculateSUVScalingFactors } = calculate_suv_esm;
|
|
52575
53230
|
|
|
52576
53231
|
|
|
@@ -52781,6 +53436,146 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
52781
53436
|
});
|
|
52782
53437
|
|
|
52783
53438
|
|
|
53439
|
+
},
|
|
53440
|
+
40327(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
53441
|
+
"use strict";
|
|
53442
|
+
/* import */ var _metaData_js__rspack_import_0 = __webpack_require__(6482);
|
|
53443
|
+
/* import */ var dcmjs__rspack_import_1 = __webpack_require__(85631);
|
|
53444
|
+
/* import */ var _modules_index_js__rspack_import_2 = __webpack_require__(42701);
|
|
53445
|
+
/* import */ var _cornerstonejs_utils__rspack_import_3 = __webpack_require__(20325);
|
|
53446
|
+
|
|
53447
|
+
|
|
53448
|
+
|
|
53449
|
+
|
|
53450
|
+
const cs3dLogger = _cornerstonejs_utils__rspack_import_3/* .logging.metadataLog.getLogger */.m9.Um.getLogger('utilities.Tags');
|
|
53451
|
+
const dicomDictionary = dcmjs__rspack_import_1/* ["default"].data.DicomMetaDictionary.dictionary */.Ay.data.DicomMetaDictionary.dictionary;
|
|
53452
|
+
const nameMap = dcmjs__rspack_import_1/* ["default"].data.DicomMetaDictionary.nameMap */.Ay.data.DicomMetaDictionary.nameMap;
|
|
53453
|
+
|
|
53454
|
+
function createTagEntry(hexTag, ...groups) {
|
|
53455
|
+
return {
|
|
53456
|
+
tag: hexTag,
|
|
53457
|
+
groups,
|
|
53458
|
+
xTag: null,
|
|
53459
|
+
primaryGroup: null,
|
|
53460
|
+
name: null,
|
|
53461
|
+
lowerName: null,
|
|
53462
|
+
vr: null,
|
|
53463
|
+
vm: null,
|
|
53464
|
+
};
|
|
53465
|
+
}
|
|
53466
|
+
function parseVm(vm) {
|
|
53467
|
+
if (vm === undefined || vm === null) {
|
|
53468
|
+
return null;
|
|
53469
|
+
}
|
|
53470
|
+
if (typeof vm === 'number') {
|
|
53471
|
+
return vm;
|
|
53472
|
+
}
|
|
53473
|
+
const n = parseInt(vm, 10);
|
|
53474
|
+
if (String(n) === vm) {
|
|
53475
|
+
return n;
|
|
53476
|
+
}
|
|
53477
|
+
return 0;
|
|
53478
|
+
}
|
|
53479
|
+
function dictionaryLookup(hexTag) {
|
|
53480
|
+
return dicomDictionary[hexTag.toUpperCase()];
|
|
53481
|
+
}
|
|
53482
|
+
function getTagCodeByName(name) {
|
|
53483
|
+
return mapTagInfo.get(name)?.tag;
|
|
53484
|
+
}
|
|
53485
|
+
const mapModuleTags = new Map();
|
|
53486
|
+
const mapTagInfo = new Map();
|
|
53487
|
+
function addTag(name, value) {
|
|
53488
|
+
if (name && value.name && name !== value.name) {
|
|
53489
|
+
throw new Error(`Tag name provided and value don't match: ${name} !== ${value.name}`);
|
|
53490
|
+
}
|
|
53491
|
+
value.name ||= name;
|
|
53492
|
+
value.lowerName ||= _metaData_js__rspack_import_0/* .toLowerCamelTag */.Hw(name);
|
|
53493
|
+
Tags[name] = value;
|
|
53494
|
+
const { tag: hexTag } = value;
|
|
53495
|
+
value.primaryGroup ||= value.groups?.[0];
|
|
53496
|
+
const { groups } = value;
|
|
53497
|
+
mapTagInfo.set(name, value);
|
|
53498
|
+
if (hexTag) {
|
|
53499
|
+
value.xTag = `x${hexTag.toLowerCase()}`;
|
|
53500
|
+
value.tag = hexTag.toUpperCase();
|
|
53501
|
+
mapTagInfo.set(value.xTag, value);
|
|
53502
|
+
mapTagInfo.set(value.tag, value);
|
|
53503
|
+
if (!value.vr) {
|
|
53504
|
+
const dictEntry = dicomDictionary[value.tag];
|
|
53505
|
+
if (dictEntry) {
|
|
53506
|
+
value.vr = dictEntry.vr;
|
|
53507
|
+
value.vm = parseVm(dictEntry.vm);
|
|
53508
|
+
}
|
|
53509
|
+
}
|
|
53510
|
+
}
|
|
53511
|
+
if (groups?.length) {
|
|
53512
|
+
for (const group of groups) {
|
|
53513
|
+
let moduleEntries = mapModuleTags.get(group);
|
|
53514
|
+
if (!moduleEntries) {
|
|
53515
|
+
moduleEntries = [value];
|
|
53516
|
+
mapModuleTags.set(group, moduleEntries);
|
|
53517
|
+
return;
|
|
53518
|
+
}
|
|
53519
|
+
const foundIndex = moduleEntries.findIndex((it) => it.name === name);
|
|
53520
|
+
if (foundIndex === -1) {
|
|
53521
|
+
moduleEntries.push(value);
|
|
53522
|
+
}
|
|
53523
|
+
else {
|
|
53524
|
+
moduleEntries[foundIndex] = value;
|
|
53525
|
+
}
|
|
53526
|
+
}
|
|
53527
|
+
}
|
|
53528
|
+
}
|
|
53529
|
+
function resolveHexFromKeyword(keyword) {
|
|
53530
|
+
const entry = Object.prototype.hasOwnProperty.call(nameMap, keyword)
|
|
53531
|
+
? nameMap[keyword]
|
|
53532
|
+
: undefined;
|
|
53533
|
+
if (!entry?.tag) {
|
|
53534
|
+
return undefined;
|
|
53535
|
+
}
|
|
53536
|
+
return entry.tag.substring(1, 5) + entry.tag.substring(6, 10);
|
|
53537
|
+
}
|
|
53538
|
+
let keywordsByLowerCase;
|
|
53539
|
+
function keywordIgnoringCase(name) {
|
|
53540
|
+
if (!keywordsByLowerCase) {
|
|
53541
|
+
keywordsByLowerCase = new Map();
|
|
53542
|
+
for (const keyword of Object.keys(nameMap)) {
|
|
53543
|
+
keywordsByLowerCase.set(keyword.toLowerCase(), keyword);
|
|
53544
|
+
}
|
|
53545
|
+
}
|
|
53546
|
+
return keywordsByLowerCase.get(name.toLowerCase());
|
|
53547
|
+
}
|
|
53548
|
+
const Tags = {};
|
|
53549
|
+
const tagGroups = new Map();
|
|
53550
|
+
for (const [moduleName, keywords] of _modules_index_js__rspack_import_2/* .moduleDefinitions */.zh) {
|
|
53551
|
+
for (const entry of keywords) {
|
|
53552
|
+
const keyword = typeof entry === 'string' ? entry : entry[0];
|
|
53553
|
+
const hexOverride = typeof entry === 'string' ? undefined : entry[1];
|
|
53554
|
+
let data = tagGroups.get(keyword);
|
|
53555
|
+
if (!data) {
|
|
53556
|
+
const hex = hexOverride ?? resolveHexFromKeyword(keyword);
|
|
53557
|
+
data = { hex, groups: [] };
|
|
53558
|
+
tagGroups.set(keyword, data);
|
|
53559
|
+
}
|
|
53560
|
+
if (moduleName !== null) {
|
|
53561
|
+
data.groups.push(moduleName);
|
|
53562
|
+
}
|
|
53563
|
+
}
|
|
53564
|
+
}
|
|
53565
|
+
for (const [keyword, { hex, groups }] of tagGroups) {
|
|
53566
|
+
if (!hex) {
|
|
53567
|
+
cs3dLogger.warn(`Tags: keyword "${keyword}" not found in dcmjs nameMap`);
|
|
53568
|
+
continue;
|
|
53569
|
+
}
|
|
53570
|
+
addTag(keyword, createTagEntry(hex, ...groups));
|
|
53571
|
+
}
|
|
53572
|
+
|
|
53573
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
53574
|
+
PM: () => (resolveHexFromKeyword),
|
|
53575
|
+
jX: () => (keywordIgnoringCase)
|
|
53576
|
+
});
|
|
53577
|
+
|
|
53578
|
+
|
|
52784
53579
|
},
|
|
52785
53580
|
52805() {
|
|
52786
53581
|
"use strict";
|
|
@@ -53224,6 +54019,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
53224
54019
|
},
|
|
53225
54020
|
15801(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
53226
54021
|
"use strict";
|
|
54022
|
+
/* import */ var _object_asArray_js__rspack_import_0 = __webpack_require__(31389);
|
|
54023
|
+
|
|
53227
54024
|
function isNumberLike(value) {
|
|
53228
54025
|
return (typeof value === 'string' ||
|
|
53229
54026
|
typeof value === 'number' ||
|
|
@@ -53237,21 +54034,30 @@ function isEntryWise(value) {
|
|
|
53237
54034
|
return (Symbol.iterator in value ||
|
|
53238
54035
|
typeof value.length === 'number');
|
|
53239
54036
|
}
|
|
53240
|
-
function
|
|
53241
|
-
if (value
|
|
54037
|
+
function finiteOrDefault(value, defaultValue) {
|
|
54038
|
+
if (!isNumberLike(value) || String(value).trim() === '') {
|
|
53242
54039
|
return defaultValue;
|
|
53243
54040
|
}
|
|
53244
|
-
|
|
53245
|
-
|
|
53246
|
-
|
|
54041
|
+
const converted = Number(value);
|
|
54042
|
+
return Number.isFinite(converted) ? converted : defaultValue;
|
|
54043
|
+
}
|
|
54044
|
+
function toFiniteNumber(value, defaultValue) {
|
|
54045
|
+
if (isNumberLike(value) || !isEntryWise(value)) {
|
|
54046
|
+
return finiteOrDefault(value, defaultValue);
|
|
53247
54047
|
}
|
|
53248
|
-
|
|
53249
|
-
|
|
54048
|
+
return Array.from(value, (entry) => finiteOrDefault(entry, defaultValue));
|
|
54049
|
+
}
|
|
54050
|
+
function toFiniteFirst(value, defaultValue) {
|
|
54051
|
+
return finiteOrDefault((0,_object_asArray_js__rspack_import_0/* .asArrayFirst */.mm)(value), defaultValue);
|
|
54052
|
+
}
|
|
54053
|
+
function toFiniteVector(value, length) {
|
|
54054
|
+
if (isNumberLike(value) || !isEntryWise(value)) {
|
|
54055
|
+
return undefined;
|
|
53250
54056
|
}
|
|
53251
|
-
|
|
53252
|
-
|
|
53253
|
-
|
|
53254
|
-
|
|
54057
|
+
const numbers = Array.from(value, (entry) => finiteOrDefault(entry));
|
|
54058
|
+
return numbers.length === length && numbers.every((n) => n !== undefined)
|
|
54059
|
+
? numbers
|
|
54060
|
+
: undefined;
|
|
53255
54061
|
}
|
|
53256
54062
|
function toNumber(val) {
|
|
53257
54063
|
if (val === undefined || val === null) {
|
|
@@ -53271,30 +54077,12 @@ function toNumber(val) {
|
|
|
53271
54077
|
/* unused export default */ var __rspack_default_export = ((/* unused pure expression or super */ null && (toNumber)));
|
|
53272
54078
|
|
|
53273
54079
|
__webpack_require__.d(__webpack_exports__, {
|
|
53274
|
-
|
|
54080
|
+
FL: () => (toFiniteFirst),
|
|
54081
|
+
IQ: () => (toFiniteNumber),
|
|
54082
|
+
w7: () => (toFiniteVector)
|
|
53275
54083
|
});
|
|
53276
54084
|
|
|
53277
54085
|
|
|
53278
|
-
},
|
|
53279
|
-
33430() {
|
|
53280
|
-
"use strict";
|
|
53281
|
-
|
|
53282
|
-
// UNUSED EXPORTS: asArray, asArrayDefault
|
|
53283
|
-
|
|
53284
|
-
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/utils/dist/esm/utilities/object/asArray.js
|
|
53285
|
-
function asArray(item) {
|
|
53286
|
-
if (Array.isArray(item)) {
|
|
53287
|
-
return item;
|
|
53288
|
-
}
|
|
53289
|
-
return [item];
|
|
53290
|
-
}
|
|
53291
|
-
/* export default */ var object_asArray = ((/* unused pure expression or super */ null && (asArray)));
|
|
53292
|
-
|
|
53293
|
-
;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/utils/dist/esm/utilities/object/index.js
|
|
53294
|
-
|
|
53295
|
-
|
|
53296
|
-
|
|
53297
|
-
|
|
53298
54086
|
},
|
|
53299
54087
|
90655(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
53300
54088
|
"use strict";
|