@ohif/app 3.13.0-beta.109 → 3.13.0-beta.110
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/{3454.bundle.b0670a82c99931af.js → 3454.bundle.ab8c63c1e3d46eab.js} +220 -1609
- package/dist/{379.bundle.cacf70fcef530540.js → 379.bundle.75b0fb722268f037.js} +48 -43
- package/dist/{3856.bundle.285a42d08540a74a.js → 3856.bundle.cc247da8b523d738.js} +1 -0
- package/dist/{8274.bundle.a206a2e68e796155.js → 3867.bundle.0d44986c6b0bde7d.js} +663 -1814
- package/dist/{414.bundle.5faf580251ecccc5.js → 414.bundle.adb184d0525a2638.js} +19 -6
- package/dist/{5989.bundle.6a8c5b7de30385c8.js → 5989.bundle.f3905a4493574e09.js} +1106 -804
- package/dist/{6577.bundle.f614df8efd7562f4.js → 6577.bundle.a3e571d5f84837ea.js} +47 -41
- package/dist/{8568.bundle.73ae0a60200a13e0.js → 7579.bundle.9369c6c58a5d6df5.js} +252 -94
- package/dist/{9789.bundle.19323edfc98a32b6.js → 7760.bundle.2b8057d52a6bb394.js} +3399 -389
- package/dist/{4456.bundle.2c6f4bb6de866b88.js → 8565.bundle.a7532bbc39906b3c.js} +50 -7
- package/dist/{9358.bundle.f28c3008748433d0.js → 9358.bundle.6e3ad740c6167bce.js} +2 -2
- package/dist/{app.bundle.02d944bdfbe7f56f.js → app.bundle.2ff5b8155b4cffb1.js} +2256 -820
- package/dist/{compute.bundle.11dbfc2d25ce8e89.js → compute.bundle.4922bddc18cacdbd.js} +3 -3
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.485090724c5da16c.js → polySeg.bundle.c549b9f4bad23335.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +6 -6
- /package/dist/{100.bundle.b53f62d2c9e9d217.js → 100.bundle.4cf7bd363eb335b7.js} +0 -0
- /package/dist/{1180.bundle.91d7318b888f49d4.js → 1180.bundle.b2242ffb09ba5148.js} +0 -0
- /package/dist/{1602.bundle.82eb27054f87c46e.js → 1602.bundle.82c5d8be3ed58042.js} +0 -0
- /package/dist/{2666.bundle.ba07d670ce889a55.js → 2666.bundle.ee1d4d309ce2ca82.js} +0 -0
- /package/dist/{2779.bundle.2fc7fefe1c4baa18.js → 2779.bundle.357c1cb7a7c97a12.js} +0 -0
- /package/dist/{3500.bundle.1f08c43b36ccb8e8.js → 3500.bundle.d30a0fe9f2c01716.js} +0 -0
- /package/dist/{3760.bundle.2585498b240d6a6a.js → 3760.bundle.954d6b9d91e32698.js} +0 -0
- /package/dist/{4556.bundle.ab9eb35c4157e756.js → 4556.bundle.15bb2344dda86bc2.js} +0 -0
- /package/dist/{4683.bundle.a76560d5378ac6eb.js → 4683.bundle.e8c02628855b8f06.js} +0 -0
- /package/dist/{4834.bundle.16feedbb89a48139.js → 4834.bundle.90a643174dce8dec.js} +0 -0
- /package/dist/{5189.bundle.ef9d707c4c3f31aa.js → 5189.bundle.5ef0d5922ba029ba.js} +0 -0
- /package/dist/{5696.bundle.4c4a7c97de60e8e9.js → 5696.bundle.3c85e69c1cc52c7d.js} +0 -0
- /package/dist/{5708.bundle.6f993438bc9cd1cb.js → 5708.bundle.f4015201f2af7141.js} +0 -0
- /package/dist/{6001.bundle.ea20503d32089842.js → 6001.bundle.27b3105664e9300e.js} +0 -0
- /package/dist/{6650.bundle.29f772517a82ee09.js → 6650.bundle.defab1d01ae0dcba.js} +0 -0
- /package/dist/{7231.bundle.e80ae4c82e76f9aa.js → 7231.bundle.791409f68df0de05.js} +0 -0
- /package/dist/{7248.bundle.759cfc9d51cb3ce1.js → 7248.bundle.f59ba717c33fe7a9.js} +0 -0
- /package/dist/{7295.bundle.669ec6678960bc9b.js → 7295.bundle.ed75fcf8ee66b10a.js} +0 -0
- /package/dist/{8423.bundle.6e8a9d8368e6deb6.js → 8423.bundle.22a629778b9e5e5f.js} +0 -0
- /package/dist/{8832.bundle.5f4cceed2a78111b.js → 8832.bundle.c550b761182eb3f6.js} +0 -0
- /package/dist/{9116.bundle.1b4a60b74cf6e76f.js → 9116.bundle.c002e22cfadc9396.js} +0 -0
- /package/dist/{9290.bundle.8d5e18c97f597402.js → 9290.bundle.a77e843b58fe5013.js} +0 -0
- /package/dist/{9415.bundle.23cdd187e22f3555.js → 9415.bundle.e1cfbd843dd3d63b.js} +0 -0
- /package/dist/{9437.bundle.91da0017f6cf6613.js → 9437.bundle.10d4785589703e3d.js} +0 -0
|
@@ -4315,6 +4315,11 @@ class BaseAdapter3D {
|
|
|
4315
4315
|
};
|
|
4316
4316
|
return tidArguments;
|
|
4317
4317
|
}
|
|
4318
|
+
static getCachedStats(cachedStats, metadata) {
|
|
4319
|
+
const referencedImageId = metadata.referencedImageId,
|
|
4320
|
+
volumeId = metadata.volumeId;
|
|
4321
|
+
return cachedStats["imageId:".concat(referencedImageId)] || cachedStats["volumeId:".concat(volumeId)] || {};
|
|
4322
|
+
}
|
|
4318
4323
|
}
|
|
4319
4324
|
|
|
4320
4325
|
|
|
@@ -4485,10 +4490,10 @@ class Bidirectional_Bidirectional extends BaseAdapter3D {
|
|
|
4485
4490
|
const longAxisEndImage = toScoord(scoordProps, shortAxisPoints[1]);
|
|
4486
4491
|
const shortAxisStartImage = toScoord(scoordProps, longAxisPoints[0]);
|
|
4487
4492
|
const shortAxisEndImage = toScoord(scoordProps, longAxisPoints[1]);
|
|
4488
|
-
const
|
|
4489
|
-
length =
|
|
4490
|
-
width =
|
|
4491
|
-
unit =
|
|
4493
|
+
const _super$getCachedStats = super.getCachedStats(cachedStats, metadata),
|
|
4494
|
+
length = _super$getCachedStats.length,
|
|
4495
|
+
width = _super$getCachedStats.width,
|
|
4496
|
+
unit = _super$getCachedStats.unit;
|
|
4492
4497
|
return {
|
|
4493
4498
|
longAxis: {
|
|
4494
4499
|
point1: longAxisStartImage,
|
|
@@ -4553,7 +4558,6 @@ class Angle_Angle extends BaseAdapter3D {
|
|
|
4553
4558
|
return state;
|
|
4554
4559
|
}
|
|
4555
4560
|
static getTID300RepresentationArguments(tool) {
|
|
4556
|
-
var _cachedStats;
|
|
4557
4561
|
let is3DMeasurement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4558
4562
|
const data = tool.data,
|
|
4559
4563
|
finding = tool.finding,
|
|
@@ -4571,7 +4575,8 @@ class Angle_Angle extends BaseAdapter3D {
|
|
|
4571
4575
|
const point2 = toScoord(scoordProps, handles.points[1]);
|
|
4572
4576
|
const point3 = toScoord(scoordProps, handles.points[1]);
|
|
4573
4577
|
const point4 = toScoord(scoordProps, handles.points[2]);
|
|
4574
|
-
const
|
|
4578
|
+
const _super$getCachedStats = super.getCachedStats(cachedStats, metadata),
|
|
4579
|
+
angle = _super$getCachedStats.angle;
|
|
4575
4580
|
return {
|
|
4576
4581
|
point1,
|
|
4577
4582
|
point2,
|
|
@@ -4861,16 +4866,16 @@ class CircleROI extends BaseAdapter3D {
|
|
|
4861
4866
|
};
|
|
4862
4867
|
const center = toScoord(scoordProps, handles.points[0]);
|
|
4863
4868
|
const end = toScoord(scoordProps, handles.points[1]);
|
|
4864
|
-
const
|
|
4865
|
-
area =
|
|
4866
|
-
radius =
|
|
4867
|
-
max =
|
|
4868
|
-
min =
|
|
4869
|
-
stdDev =
|
|
4870
|
-
mean =
|
|
4871
|
-
modalityUnit =
|
|
4872
|
-
radiusUnit =
|
|
4873
|
-
areaUnit =
|
|
4869
|
+
const _super$getCachedStats = super.getCachedStats(cachedStats, metadata),
|
|
4870
|
+
area = _super$getCachedStats.area,
|
|
4871
|
+
radius = _super$getCachedStats.radius,
|
|
4872
|
+
max = _super$getCachedStats.max,
|
|
4873
|
+
min = _super$getCachedStats.min,
|
|
4874
|
+
stdDev = _super$getCachedStats.stdDev,
|
|
4875
|
+
mean = _super$getCachedStats.mean,
|
|
4876
|
+
modalityUnit = _super$getCachedStats.modalityUnit,
|
|
4877
|
+
radiusUnit = _super$getCachedStats.radiusUnit,
|
|
4878
|
+
areaUnit = _super$getCachedStats.areaUnit;
|
|
4874
4879
|
const perimeter = 2 * Math.PI * radius;
|
|
4875
4880
|
return {
|
|
4876
4881
|
area,
|
|
@@ -4973,14 +4978,14 @@ class EllipticalROI extends BaseAdapter3D {
|
|
|
4973
4978
|
} else {
|
|
4974
4979
|
points.push(left, right, top, bottom);
|
|
4975
4980
|
}
|
|
4976
|
-
const
|
|
4977
|
-
area =
|
|
4978
|
-
max =
|
|
4979
|
-
min =
|
|
4980
|
-
mean =
|
|
4981
|
-
stdDev =
|
|
4982
|
-
modalityUnit =
|
|
4983
|
-
areaUnit =
|
|
4981
|
+
const _super$getCachedStats = super.getCachedStats(cachedStats, metadata),
|
|
4982
|
+
area = _super$getCachedStats.area,
|
|
4983
|
+
max = _super$getCachedStats.max,
|
|
4984
|
+
min = _super$getCachedStats.min,
|
|
4985
|
+
mean = _super$getCachedStats.mean,
|
|
4986
|
+
stdDev = _super$getCachedStats.stdDev,
|
|
4987
|
+
modalityUnit = _super$getCachedStats.modalityUnit,
|
|
4988
|
+
areaUnit = _super$getCachedStats.areaUnit;
|
|
4984
4989
|
const convertedPoints = points.map(point => toScoord(scoordProps, point));
|
|
4985
4990
|
return {
|
|
4986
4991
|
area,
|
|
@@ -5069,14 +5074,14 @@ class RectangleROI extends BaseAdapter3D {
|
|
|
5069
5074
|
referencedImageId
|
|
5070
5075
|
};
|
|
5071
5076
|
const corners = toScoords(scoordProps, data.handles.points);
|
|
5072
|
-
const
|
|
5073
|
-
area =
|
|
5074
|
-
perimeter =
|
|
5075
|
-
max =
|
|
5076
|
-
mean =
|
|
5077
|
-
stdDev =
|
|
5078
|
-
areaUnit =
|
|
5079
|
-
modalityUnit =
|
|
5077
|
+
const _super$getCachedStats = super.getCachedStats(data.cachedStats, metadata),
|
|
5078
|
+
area = _super$getCachedStats.area,
|
|
5079
|
+
perimeter = _super$getCachedStats.perimeter,
|
|
5080
|
+
max = _super$getCachedStats.max,
|
|
5081
|
+
mean = _super$getCachedStats.mean,
|
|
5082
|
+
stdDev = _super$getCachedStats.stdDev,
|
|
5083
|
+
areaUnit = _super$getCachedStats.areaUnit,
|
|
5084
|
+
modalityUnit = _super$getCachedStats.modalityUnit;
|
|
5080
5085
|
return {
|
|
5081
5086
|
points: [corners[0], corners[1], corners[3], corners[2], corners[0]],
|
|
5082
5087
|
area,
|
|
@@ -5157,8 +5162,8 @@ class Length_Length extends BaseAdapter3D {
|
|
|
5157
5162
|
};
|
|
5158
5163
|
const point1 = toScoord(scoordProps, handles.points[0]);
|
|
5159
5164
|
const point2 = toScoord(scoordProps, handles.points[1]);
|
|
5160
|
-
const
|
|
5161
|
-
distance =
|
|
5165
|
+
const _super$getCachedStats = super.getCachedStats(cachedStats, metadata),
|
|
5166
|
+
distance = _super$getCachedStats.length;
|
|
5162
5167
|
return {
|
|
5163
5168
|
point1,
|
|
5164
5169
|
point2,
|
|
@@ -5358,15 +5363,15 @@ class PlanarFreehandROI extends BaseAdapter3D {
|
|
|
5358
5363
|
points.push(firstPoint);
|
|
5359
5364
|
}
|
|
5360
5365
|
const controlPoints = (handles === null || handles === void 0 || (_handles$points = handles.points) === null || _handles$points === void 0 ? void 0 : _handles$points.length) && toScoords(scoordProps, handles.points);
|
|
5361
|
-
const
|
|
5362
|
-
area =
|
|
5363
|
-
areaUnit =
|
|
5364
|
-
modalityUnit =
|
|
5365
|
-
perimeter =
|
|
5366
|
-
mean =
|
|
5367
|
-
max =
|
|
5368
|
-
stdDev =
|
|
5369
|
-
length =
|
|
5366
|
+
const _super$getCachedStats = super.getCachedStats(data.cachedStats, metadata),
|
|
5367
|
+
area = _super$getCachedStats.area,
|
|
5368
|
+
areaUnit = _super$getCachedStats.areaUnit,
|
|
5369
|
+
modalityUnit = _super$getCachedStats.modalityUnit,
|
|
5370
|
+
perimeter = _super$getCachedStats.perimeter,
|
|
5371
|
+
mean = _super$getCachedStats.mean,
|
|
5372
|
+
max = _super$getCachedStats.max,
|
|
5373
|
+
stdDev = _super$getCachedStats.stdDev,
|
|
5374
|
+
length = _super$getCachedStats.length;
|
|
5370
5375
|
return {
|
|
5371
5376
|
points,
|
|
5372
5377
|
controlPoints,
|
|
@@ -4568,6 +4568,7 @@ async function decodeJPEGLossless(imageFrame, pixelData) {
|
|
|
4568
4568
|
const byteOutput = imageFrame.bitsAllocated <= 8 ? 1 : 2;
|
|
4569
4569
|
const buffer = pixelData.buffer;
|
|
4570
4570
|
const decompressedData = decoder.decode(buffer, pixelData.byteOffset, pixelData.length, byteOutput);
|
|
4571
|
+
imageFrame.planarConfiguration = 0;
|
|
4571
4572
|
if (imageFrame.pixelRepresentation === 0) {
|
|
4572
4573
|
if (imageFrame.bitsAllocated === 16) {
|
|
4573
4574
|
imageFrame.pixelData = new Uint16Array(decompressedData.buffer);
|