@ohif/app 3.8.0-beta.42 → 3.8.0-beta.43
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/{170.bundle.8d5c47085b07b1b98f41.js → 170.bundle.5632b1b6fab9906388e2.js} +9 -9
- package/dist/{181.bundle.d2fe517852935b82368b.js → 181.bundle.a2d7b26d73467d2ce8cd.js} +6 -6
- package/dist/{185.bundle.dee4d4f6103bce7ff6e7.js → 185.bundle.6311718cd457884f813a.js} +4 -4
- package/dist/{19.bundle.ad4a68419e733f9f22cd.js → 19.bundle.2fa92040006123dc9251.js} +4 -4
- package/dist/{199.bundle.741d18af781924e8c385.js → 199.bundle.8a5e36ae7e18dd2de580.js} +4 -4
- package/dist/202.bundle.c7c412d83b745f890834.js +18169 -0
- package/dist/{250.bundle.ba94ff371388e395cd05.js → 250.bundle.96a47756a15efbdf78af.js} +4 -4
- package/dist/{359.bundle.7ef31482741597c798e4.js → 359.bundle.bb663da51cbd0b8d1eff.js} +2 -2
- package/dist/{410.bundle.6cf43e5bb1fccdc3c3aa.js → 410.bundle.bd04d9a698385a43f682.js} +2 -2
- package/dist/{451.bundle.68a551a7d1746cf904cb.js → 451.bundle.9b9abf9ca8967a46fa93.js} +2 -9
- package/dist/{456.bundle.618aab00b3812ce7e3bd.js → 456.bundle.00c2bac49511bea54b5c.js} +10 -45
- package/dist/{466.bundle.26b834134da98f20c7ca.js → 466.bundle.8cdd9c3bcc81fe4cb8c6.js} +39 -11
- package/dist/{471.bundle.5809b10f75c8fc2f7167.js → 471.bundle.a646b0616732bbc945b4.js} +4 -2
- package/dist/{483.bundle.d982f0421bcb44ea2fd3.js → 483.bundle.7a8402a110f9f42fdc94.js} +6 -6
- package/dist/{613.bundle.9c5c87fd6768ceef5caf.js → 613.bundle.a54c8cdf616a799bcf4b.js} +47 -23
- package/dist/{738.bundle.3a2ff8e9bea835a0fe81.js → 738.bundle.f5179d74c16cb154c759.js} +6 -6
- package/dist/{822.bundle.f5ae3f366ce742fb060a.js → 822.bundle.2092dbfefbc1b5834965.js} +3 -3
- package/dist/{485.bundle.5b6c33cc43d8f3470642.js → 831.bundle.127a3064e8844d6d2c82.js} +1 -279
- package/dist/{886.bundle.4496fc7fb83b8c897d20.js → 886.bundle.69f07c567a3dc69b060f.js} +1 -1
- package/dist/{95.bundle.830304446bffa705883c.js → 95.bundle.644c927d99988ff60b36.js} +26 -259
- package/dist/{965.bundle.f8680a6f67d5473d1184.js → 965.bundle.254019aafbf9c9d3d800.js} +2 -2
- package/dist/{app.bundle.de0a06c3967d6df956ee.js → app.bundle.ab96a3986fbf883f78ea.js} +49893 -49656
- package/dist/app.bundle.css +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- package/dist/202.bundle.0ca2f2479d2578f539b0.js +0 -6353
- /package/dist/{12.bundle.0bf0dc568701c021f413.js → 12.bundle.e97b1190673797a03d1a.js} +0 -0
- /package/dist/{281.bundle.24c3be00f70a1126b30c.js → 281.bundle.5eddac45a51ce75f55c4.js} +0 -0
- /package/dist/{506.bundle.edb0fe41253c046a8ac3.js → 506.bundle.4bcf51e2946dab485d2b.js} +0 -0
- /package/dist/{687.bundle.7f262cad0fe884785951.js → 687.bundle.e798aa93251dc9bc87ef.js} +0 -0
- /package/dist/{814.bundle.36a17ce54e2779f5c0b9.js → 814.bundle.198efdffbe64f60e38ef.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
1
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[831],{
|
|
2
2
|
|
|
3
3
|
/***/ 82803:
|
|
4
4
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
@@ -90,284 +90,6 @@ exports.Z = function (_ref) {
|
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
/***/ }),
|
|
94
|
-
|
|
95
|
-
/***/ 96538:
|
|
96
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
97
|
-
|
|
98
|
-
"use strict";
|
|
99
|
-
|
|
100
|
-
// EXPORTS
|
|
101
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
102
|
-
ZP: () => (/* binding */ vtkImageMarchingSquares$1)
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
// UNUSED EXPORTS: extend, newInstance
|
|
106
|
-
|
|
107
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/macros.js + 6 modules
|
|
108
|
-
var macros = __webpack_require__(41168);
|
|
109
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 6 modules
|
|
110
|
-
var PolyData = __webpack_require__(48663);
|
|
111
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/EdgeLocator.js
|
|
112
|
-
var EdgeLocator = __webpack_require__(29699);
|
|
113
|
-
;// CONCATENATED MODULE: ../../../node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares/caseTable.js
|
|
114
|
-
// ----------------------------------------------------------------------------
|
|
115
|
-
// Marching squares case functions (using lines to generate the 2D tessellation).
|
|
116
|
-
// For each case, a list of edge ids that form the triangles. A -1 marks the
|
|
117
|
-
// end of the list of edges. Edges are taken three at a time to generate
|
|
118
|
-
// triangle points.
|
|
119
|
-
// ----------------------------------------------------------------------------
|
|
120
|
-
var MARCHING_SQUARES_CASES = [[-1, -1, -1, -1, -1]
|
|
121
|
-
/* 0 */
|
|
122
|
-
, [0, 3, -1, -1, -1]
|
|
123
|
-
/* 1 */
|
|
124
|
-
, [1, 0, -1, -1, -1]
|
|
125
|
-
/* 2 */
|
|
126
|
-
, [1, 3, -1, -1, -1]
|
|
127
|
-
/* 3 */
|
|
128
|
-
, [2, 1, -1, -1, -1]
|
|
129
|
-
/* 4 */
|
|
130
|
-
, [0, 3, 2, 1, -1]
|
|
131
|
-
/* 5 */
|
|
132
|
-
, [2, 0, -1, -1, -1]
|
|
133
|
-
/* 6 */
|
|
134
|
-
, [2, 3, -1, -1, -1]
|
|
135
|
-
/* 7 */
|
|
136
|
-
, [3, 2, -1, -1, -1]
|
|
137
|
-
/* 8 */
|
|
138
|
-
, [0, 2, -1, -1, -1]
|
|
139
|
-
/* 9 */
|
|
140
|
-
, [1, 0, 3, 2, -1]
|
|
141
|
-
/* 10 */
|
|
142
|
-
, [1, 2, -1, -1, -1]
|
|
143
|
-
/* 11 */
|
|
144
|
-
, [3, 1, -1, -1, -1]
|
|
145
|
-
/* 12 */
|
|
146
|
-
, [0, 1, -1, -1, -1]
|
|
147
|
-
/* 13 */
|
|
148
|
-
, [3, 0, -1, -1, -1]
|
|
149
|
-
/* 14 */
|
|
150
|
-
, [-1, -1, -1, -1, -1]
|
|
151
|
-
/* 15 */
|
|
152
|
-
];
|
|
153
|
-
var EDGES = [[0, 1], [1, 3], [2, 3], [0, 2]];
|
|
154
|
-
|
|
155
|
-
function getCase(index) {
|
|
156
|
-
return MARCHING_SQUARES_CASES[index];
|
|
157
|
-
} // Define the four edges of the pixel by the following pairs of vertices
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
function getEdge(eid) {
|
|
161
|
-
return EDGES[eid];
|
|
162
|
-
} // ----------------------------------------------------------------------------
|
|
163
|
-
// Static API
|
|
164
|
-
// ----------------------------------------------------------------------------
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
var vtkCaseTable = {
|
|
168
|
-
getCase: getCase,
|
|
169
|
-
getEdge: getEdge
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
;// CONCATENATED MODULE: ../../../node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares.js
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
var vtkErrorMacro = macros["default"].vtkErrorMacro,
|
|
181
|
-
vtkDebugMacro = macros["default"].vtkDebugMacro; // ----------------------------------------------------------------------------
|
|
182
|
-
// vtkImageMarchingSquares methods
|
|
183
|
-
// ----------------------------------------------------------------------------
|
|
184
|
-
|
|
185
|
-
function vtkImageMarchingSquares(publicAPI, model) {
|
|
186
|
-
// Set our className
|
|
187
|
-
model.classHierarchy.push('vtkImageMarchingSquares');
|
|
188
|
-
|
|
189
|
-
publicAPI.getContourValues = function () {
|
|
190
|
-
return model.contourValues;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
publicAPI.setContourValues = function (cValues) {
|
|
194
|
-
model.contourValues = cValues;
|
|
195
|
-
publicAPI.modified();
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
var ids = [];
|
|
199
|
-
var pixelScalars = [];
|
|
200
|
-
var pixelPts = [];
|
|
201
|
-
var edgeLocator = EdgeLocator/* default */.Z.newInstance(); // Retrieve scalars and pixel coordinates. i-j-k is origin of pixel.
|
|
202
|
-
|
|
203
|
-
publicAPI.getPixelScalars = function (i, j, k, slice, dims, origin, spacing, s) {
|
|
204
|
-
// First get the indices for the pixel
|
|
205
|
-
ids[0] = k * slice + j * dims[0] + i; // i, j, k
|
|
206
|
-
|
|
207
|
-
ids[1] = ids[0] + 1; // i+1, j, k
|
|
208
|
-
|
|
209
|
-
ids[2] = ids[0] + dims[0]; // i, j+1, k
|
|
210
|
-
|
|
211
|
-
ids[3] = ids[2] + 1; // i+1, j+1, k
|
|
212
|
-
// Now retrieve the scalars
|
|
213
|
-
|
|
214
|
-
for (var ii = 0; ii < 4; ++ii) {
|
|
215
|
-
pixelScalars[ii] = s[ids[ii]];
|
|
216
|
-
}
|
|
217
|
-
}; // Retrieve pixel coordinates. i-j-k is origin of pixel.
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
publicAPI.getPixelPoints = function (i, j, k, dims, origin, spacing) {
|
|
221
|
-
// (i,i+1),(j,j+1),(k,k+1) - i varies fastest; then j; then k
|
|
222
|
-
pixelPts[0] = origin[0] + i * spacing[0]; // 0
|
|
223
|
-
|
|
224
|
-
pixelPts[1] = origin[1] + j * spacing[1];
|
|
225
|
-
pixelPts[2] = pixelPts[0] + spacing[0]; // 1
|
|
226
|
-
|
|
227
|
-
pixelPts[3] = pixelPts[1];
|
|
228
|
-
pixelPts[4] = pixelPts[0]; // 2
|
|
229
|
-
|
|
230
|
-
pixelPts[5] = pixelPts[1] + spacing[1];
|
|
231
|
-
pixelPts[6] = pixelPts[2]; // 3
|
|
232
|
-
|
|
233
|
-
pixelPts[7] = pixelPts[5];
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
publicAPI.produceLines = function (cVal, i, j, k, slice, dims, origin, spacing, scalars, points, lines) {
|
|
237
|
-
var CASE_MASK = [1, 2, 8, 4]; // case table is actually for quad
|
|
238
|
-
|
|
239
|
-
var xyz = [];
|
|
240
|
-
var pId;
|
|
241
|
-
publicAPI.getPixelScalars(i, j, k, slice, dims, origin, spacing, scalars);
|
|
242
|
-
var index = 0;
|
|
243
|
-
|
|
244
|
-
for (var idx = 0; idx < 4; idx++) {
|
|
245
|
-
if (pixelScalars[idx] >= cVal) {
|
|
246
|
-
index |= CASE_MASK[idx]; // eslint-disable-line no-bitwise
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
var pixelLines = vtkCaseTable.getCase(index);
|
|
251
|
-
|
|
252
|
-
if (pixelLines[0] < 0) {
|
|
253
|
-
return; // don't get the pixel coordinates, nothing to do
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
publicAPI.getPixelPoints(i, j, k, dims, origin, spacing);
|
|
257
|
-
var z = origin[2] + k * spacing[2];
|
|
258
|
-
|
|
259
|
-
for (var _idx = 0; pixelLines[_idx] >= 0; _idx += 3) {
|
|
260
|
-
lines.push(2);
|
|
261
|
-
|
|
262
|
-
for (var eid = 0; eid < 2; eid++) {
|
|
263
|
-
var edgeVerts = vtkCaseTable.getEdge(pixelLines[_idx + eid]);
|
|
264
|
-
pId = undefined;
|
|
265
|
-
|
|
266
|
-
if (model.mergePoints) {
|
|
267
|
-
var _edgeLocator$isInsert;
|
|
268
|
-
|
|
269
|
-
pId = (_edgeLocator$isInsert = edgeLocator.isInsertedEdge(ids[edgeVerts[0]], ids[edgeVerts[1]])) === null || _edgeLocator$isInsert === void 0 ? void 0 : _edgeLocator$isInsert.value;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
if (pId === undefined) {
|
|
273
|
-
var t = (cVal - pixelScalars[edgeVerts[0]]) / (pixelScalars[edgeVerts[1]] - pixelScalars[edgeVerts[0]]);
|
|
274
|
-
var x0 = pixelPts.slice(edgeVerts[0] * 2, (edgeVerts[0] + 1) * 2);
|
|
275
|
-
var x1 = pixelPts.slice(edgeVerts[1] * 2, (edgeVerts[1] + 1) * 2);
|
|
276
|
-
xyz[0] = x0[0] + t * (x1[0] - x0[0]);
|
|
277
|
-
xyz[1] = x0[1] + t * (x1[1] - x0[1]);
|
|
278
|
-
pId = points.length / 3;
|
|
279
|
-
points.push(xyz[0], xyz[1], z);
|
|
280
|
-
|
|
281
|
-
if (model.mergePoints) {
|
|
282
|
-
edgeLocator.insertEdge(ids[edgeVerts[0]], ids[edgeVerts[1]], pId);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
lines.push(pId);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
publicAPI.requestData = function (inData, outData) {
|
|
292
|
-
// implement requestData
|
|
293
|
-
var input = inData[0];
|
|
294
|
-
|
|
295
|
-
if (!input) {
|
|
296
|
-
vtkErrorMacro('Invalid or missing input');
|
|
297
|
-
return;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
console.time('msquares'); // Retrieve output and volume data
|
|
301
|
-
|
|
302
|
-
var origin = input.getOrigin();
|
|
303
|
-
var spacing = input.getSpacing();
|
|
304
|
-
var dims = input.getDimensions();
|
|
305
|
-
var s = input.getPointData().getScalars().getData(); // Points - dynamic array
|
|
306
|
-
|
|
307
|
-
var pBuffer = []; // Cells - dynamic array
|
|
308
|
-
|
|
309
|
-
var lBuffer = []; // Ensure slice is valid
|
|
310
|
-
|
|
311
|
-
var slice = dims[0] * dims[1];
|
|
312
|
-
var k = Math.round(model.slice);
|
|
313
|
-
|
|
314
|
-
if (k >= dims[2]) {
|
|
315
|
-
k = 0;
|
|
316
|
-
} // Loop over all contour values, and then pixels, determine case and process
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
for (var cv = 0; cv < model.contourValues.length; ++cv) {
|
|
320
|
-
for (var j = 0; j < dims[1] - 1; ++j) {
|
|
321
|
-
for (var i = 0; i < dims[0] - 1; ++i) {
|
|
322
|
-
publicAPI.produceLines(model.contourValues[cv], i, j, k, slice, dims, origin, spacing, s, pBuffer, lBuffer);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
edgeLocator.initialize();
|
|
327
|
-
} // Update output
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
var polydata = PolyData/* default.newInstance */.ZP.newInstance();
|
|
331
|
-
polydata.getPoints().setData(new Float32Array(pBuffer), 3);
|
|
332
|
-
polydata.getLines().setData(new Uint32Array(lBuffer));
|
|
333
|
-
outData[0] = polydata;
|
|
334
|
-
vtkDebugMacro('Produced output');
|
|
335
|
-
console.timeEnd('msquares');
|
|
336
|
-
};
|
|
337
|
-
} // ----------------------------------------------------------------------------
|
|
338
|
-
// Object factory
|
|
339
|
-
// ----------------------------------------------------------------------------
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
var DEFAULT_VALUES = {
|
|
343
|
-
contourValues: [],
|
|
344
|
-
slice: 0,
|
|
345
|
-
mergePoints: false
|
|
346
|
-
}; // ----------------------------------------------------------------------------
|
|
347
|
-
|
|
348
|
-
function extend(publicAPI, model) {
|
|
349
|
-
var initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
350
|
-
Object.assign(model, DEFAULT_VALUES, initialValues); // Make this a VTK object
|
|
351
|
-
|
|
352
|
-
macros["default"].obj(publicAPI, model); // Also make it an algorithm with one input and one output
|
|
353
|
-
|
|
354
|
-
macros["default"].algo(publicAPI, model, 1, 1);
|
|
355
|
-
macros["default"].setGet(publicAPI, model, ['slice', 'mergePoints']); // Object specific methods
|
|
356
|
-
|
|
357
|
-
macros["default"].algo(publicAPI, model, 1, 1);
|
|
358
|
-
vtkImageMarchingSquares(publicAPI, model);
|
|
359
|
-
} // ----------------------------------------------------------------------------
|
|
360
|
-
|
|
361
|
-
var newInstance = macros["default"].newInstance(extend, 'vtkImageMarchingSquares'); // ----------------------------------------------------------------------------
|
|
362
|
-
|
|
363
|
-
var vtkImageMarchingSquares$1 = {
|
|
364
|
-
newInstance: newInstance,
|
|
365
|
-
extend: extend
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
93
|
/***/ }),
|
|
372
94
|
|
|
373
95
|
/***/ 55187:
|
|
@@ -14,7 +14,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14
14
|
/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69190);
|
|
15
15
|
/* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71771);
|
|
16
16
|
/* harmony import */ var _tools_modules_dicomSRModule__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(64035);
|
|
17
|
-
/* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
17
|
+
/* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89556);
|
|
18
18
|
/* harmony import */ var _utils_hydrateStructuredReport__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38965);
|
|
19
19
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(62657);
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|