@ohif/app 3.9.0-beta.45 → 3.9.0-beta.47
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/031089e563a18ada8441.wasm +0 -0
- package/dist/{445.bundle.38c6d2af64e41cd7c614.js → 10.bundle.c626810bd199ab63f3a2.js} +3 -3
- package/dist/{501.bundle.2f703ca4598a3be0d748.js → 129.bundle.3102eccbd5c78524c3dd.js} +6036 -11592
- package/dist/{140.bundle.fcf29be726bb9dcea834.js → 153.bundle.d3732d0fdebb39e139b4.js} +7 -4
- package/dist/{139.bundle.09e5af0a9ae8a285af77.js → 169.bundle.eeb9614e7b06f896c70f.js} +65 -535
- package/dist/{139.css → 169.css} +0 -1
- package/dist/{164.bundle.2b23bfbcb23497d7c87a.js → 196.bundle.cf8c2311aafb5312bbf7.js} +15562 -8539
- package/dist/{342.bundle.fcb2038060a062129d34.js → 202.bundle.bb0e8196739bb896dc9e.js} +238 -276
- package/dist/{129.bundle.894f29369d609094208b.js → 210.bundle.d6d6cbd1b65e4f506ed1.js} +46 -46
- package/dist/{363.bundle.c7e38cf0c1fc7d19a701.js → 217.bundle.042317b439df47cd38b1.js} +2099 -195
- package/dist/{363.css → 217.css} +1 -0
- package/dist/{14.bundle.60eed1138c62b91572a7.js → 246.bundle.288317813cd5781e64f7.js} +11 -11
- package/dist/250.bundle.4743b359797751102600.js +663 -0
- package/dist/{944.bundle.baa0880e0bbde13fccc5.js → 281.bundle.5946cbee5150dec1532f.js} +241 -254
- package/dist/{727.bundle.7b7f3962207601643615.js → 286.bundle.985c5ebbb2158c7e59ab.js} +4 -4
- package/dist/29.bundle.976319462f33868497c2.js +12347 -0
- package/dist/{675.bundle.c9720f40fd7c7e9b7e54.js → 315.bundle.92d7aefc4dc9cfd951bd.js} +18 -18
- package/dist/{218.bundle.a1709956bc65c4f54874.js → 353.bundle.58b3ea80771ebaca956b.js} +8 -8
- package/dist/{799.bundle.33fc63add3b915d0c2b2.js → 360.bundle.81592d66456d25930928.js} +62 -62
- package/dist/{555.bundle.768f1594e1d40b707342.js → 372.bundle.5e3dc2539055ca5861e6.js} +50 -50
- package/dist/{211.bundle.194272cd32bedb302303.js → 376.bundle.45b94427174400b86d5d.js} +8 -8
- package/dist/{612.bundle.297a033523539e0b47f9.js → 412.bundle.836f106f6e2896dc42a5.js} +4 -4
- package/dist/{931.bundle.058f8de4606f27b31f4f.js → 417.bundle.abf8bcee0f246002acb9.js} +25 -25
- package/dist/{370.bundle.bd9884c274c26a54dfae.js → 428.bundle.744fc5865b2d747de88a.js} +829 -1511
- package/dist/{483.bundle.0f1848f6a2cf34829fef.js → 497.bundle.ee102d6243f984113f08.js} +141 -141
- package/dist/{323.bundle.955cc8f5eb5c01295118.js → 498.bundle.bb47c493dd02451f77ef.js} +17 -17
- package/dist/{552.bundle.0d11c419f675cb5a63b1.js → 502.bundle.857675fc2cbb2fbe3e47.js} +8 -9
- package/dist/{835.bundle.5d1951da8bbc6afdf3e0.js → 530.bundle.87f8b13ff55bf7b2a6d1.js} +28 -28
- package/dist/{121.bundle.57fe5a392b0910f33c2d.js → 552.bundle.95c0f28b051797242104.js} +733 -62
- package/dist/{265.bundle.61b0e1ce9d444704a976.js → 571.bundle.a80609c9815339516d77.js} +24 -24
- package/dist/{853.bundle.26b774ab3259f3e6087c.js → 591.bundle.1dca7dfd3e0490ea6dc1.js} +15 -14
- package/dist/604.bundle.83f50929b208c60e48da.js +1950 -0
- package/dist/610.min.worker.js +1 -1
- package/dist/610.min.worker.js.map +1 -1
- package/dist/{792.bundle.485ad2f98823a4b3feb1.js → 658.bundle.219ed199728759098008.js} +17 -17
- package/dist/{989.bundle.4be1e8f36734961852a8.js → 791.bundle.be08fa50f9a84244253b.js} +11 -11
- package/dist/{722.bundle.1242e0348afc63ca4f5e.js → 793.bundle.c92f52ddff0e3bf506e6.js} +13 -13
- package/dist/{914.bundle.e15be8089bf422ed7b51.js → 818.bundle.cda4e369fdee5459a544.js} +1239 -627
- package/dist/{726.bundle.90d63d40a19b058034ee.js → 831.bundle.9e1a3495947e5bb49756.js} +512 -512
- package/dist/{382.bundle.7cdad0f12b64f248dd28.js → 842.bundle.0664bcdeb7f153ab52bb.js} +11 -11
- package/dist/{806.bundle.1ec5fda0b16e053350d7.js → 888.bundle.2d02f805cedcf5d2ee7d.js} +14 -14
- package/dist/{702.bundle.963481fbf871984b646f.js → 909.bundle.1fbb8bb4c41d0bb2994d.js} +119 -381
- package/dist/{109.bundle.b4fee2a22b622839baf5.js → 931.bundle.f6fa2a436ace89ebf60f.js} +5036 -4642
- package/dist/{141.bundle.556b4c1e4cab770417ac.js → 937.bundle.cc709c922731f9496810.js} +86 -478
- package/dist/{444.bundle.75f58f53dab4d04db97d.js → 944.bundle.194f4f4e4e55ec466b78.js} +9 -10
- package/dist/945.min.worker.js +1 -1
- package/dist/945.min.worker.js.map +1 -1
- package/dist/{194.bundle.e6fb48f13f312eded76b.js → 962.bundle.225fcd92e6a5af66b6a2.js} +33 -37
- package/dist/{920.bundle.f75637a18563de8c8235.js → 978.bundle.4edc8c4615d7e3b4717a.js} +6 -6
- package/dist/{236.bundle.34db90a140e37d34fd71.js → 993.bundle.aa31ebda5a5f62c44de5.js} +2363 -2351
- package/dist/{717.bundle.3b84fbd289af82208a19.js → 994.bundle.269ce05b16fd6aa28006.js} +90 -164
- package/dist/app-config.js +58 -4
- package/dist/app.bundle.css +3 -3
- package/dist/{app.bundle.e2d3b6781252f9c7b2a3.js → app.bundle.ecc3736aff52e6abfd49.js} +52547 -36094
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/dicom-microscopy-viewer/5004fdc02f329ce53b69.wasm +0 -0
- package/dist/dicom-microscopy-viewer/c22b37c3488e1d6c3aa4.wasm +0 -0
- package/dist/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js +3 -0
- package/dist/{dicomMicroscopyViewer.min.js.LICENSE.txt → dicom-microscopy-viewer/dicomMicroscopyViewer.min.js.LICENSE.txt} +11 -0
- package/dist/dicom-microscopy-viewer/index.worker.min.worker.js +2 -0
- package/dist/dicom-microscopy-viewer/index.worker.min.worker.js.map +1 -0
- package/dist/{histogram-worker.bundle.6b31e5ed4c4a7a6998f2.js → histogram-worker.bundle.e7e9fea2c3236b0e747a.js} +12 -16
- package/dist/index.html +1 -1
- package/dist/index.worker.5a5a581362c14598c3d9.worker.js +2 -0
- package/dist/index.worker.5a5a581362c14598c3d9.worker.js.map +1 -0
- package/dist/{polySeg.bundle.df492df5042827938ba4.js → polySeg.bundle.b25c61224998018d0f79.js} +24 -5
- package/dist/{suv-peak-worker.bundle.8f4b505fad3d371489fe.js → suv-peak-worker.bundle.eb11e71db02e52601ecf.js} +40 -21
- package/dist/sw.js +1 -1
- package/package.json +25 -33
- package/dist/117.bundle.1f7b56504d506e7259e3.js +0 -6552
- package/dist/172.bundle.e0ee762bee7496d6491e.js +0 -662
- package/dist/36785fbd89b0e17f6099.wasm +0 -0
- package/dist/62ab5d58a2bea7b5a1dc.wasm +0 -0
- package/dist/644.bundle.1e77691d2eeb96a423b0.js +0 -19159
- package/dist/75a0c2dfe07b824c7d21.wasm +0 -0
- package/dist/dicom-microscopy-viewer.bundle.d3a56dc9f62df5e11019.js +0 -13
- package/dist/dicomMicroscopyViewer.min.js +0 -3
- package/dist/index.worker.f4bda803c15bc6359d5f.worker.js +0 -2
- package/dist/index.worker.f4bda803c15bc6359d5f.worker.js.map +0 -1
- package/dist/index.worker.min.worker.js +0 -2
- package/dist/index.worker.min.worker.js.map +0 -1
- /package/dist/{129.css → 210.css} +0 -0
- /package/dist/{727.css → 286.css} +0 -0
- /package/dist/{172.css → 552.css} +0 -0
- /package/dist/{404.css → 757.css} +0 -0
- /package/dist/{717.css → 994.css} +0 -0
- /package/dist/{65916ef3def695744bda.wasm → dicom-microscopy-viewer/65916ef3def695744bda.wasm} +0 -0
- /package/dist/{b6b803111e2d06a825bd.wasm → dicom-microscopy-viewer/b6b803111e2d06a825bd.wasm} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
1
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[937],{
|
|
2
2
|
|
|
3
|
-
/***/
|
|
3
|
+
/***/ 86096:
|
|
4
4
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8
|
-
/* harmony export */
|
|
8
|
+
/* harmony export */ Z: () => (/* binding */ ClassHierarchy)
|
|
9
9
|
/* harmony export */ });
|
|
10
10
|
/* eslint-disable prefer-rest-params */
|
|
11
11
|
class ClassHierarchy extends Array {
|
|
@@ -24,17 +24,17 @@ class ClassHierarchy extends Array {
|
|
|
24
24
|
|
|
25
25
|
/***/ }),
|
|
26
26
|
|
|
27
|
-
/***/
|
|
27
|
+
/***/ 54131:
|
|
28
28
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
29
29
|
|
|
30
30
|
"use strict";
|
|
31
31
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32
|
-
/* harmony export */
|
|
32
|
+
/* harmony export */ "default": () => (/* binding */ vtkDataArray$1)
|
|
33
33
|
/* harmony export */ });
|
|
34
34
|
/* unused harmony exports STATIC, extend, newInstance */
|
|
35
|
-
/* harmony import */ var _DataArray_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
36
|
-
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
37
|
-
/* harmony import */ var _Math_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
35
|
+
/* harmony import */ var _DataArray_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89262);
|
|
36
|
+
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68470);
|
|
37
|
+
/* harmony import */ var _Math_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59474);
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ const {
|
|
|
44
44
|
} = _macros2_js__WEBPACK_IMPORTED_MODULE_1__.c;
|
|
45
45
|
const {
|
|
46
46
|
DefaultDataType
|
|
47
|
-
} = _DataArray_Constants_js__WEBPACK_IMPORTED_MODULE_0__
|
|
47
|
+
} = _DataArray_Constants_js__WEBPACK_IMPORTED_MODULE_0__["default"];
|
|
48
48
|
|
|
49
49
|
// ----------------------------------------------------------------------------
|
|
50
50
|
// Global methods
|
|
@@ -569,7 +569,7 @@ var vtkDataArray$1 = {
|
|
|
569
569
|
newInstance,
|
|
570
570
|
extend,
|
|
571
571
|
...STATIC,
|
|
572
|
-
..._DataArray_Constants_js__WEBPACK_IMPORTED_MODULE_0__
|
|
572
|
+
..._DataArray_Constants_js__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
573
573
|
};
|
|
574
574
|
|
|
575
575
|
|
|
@@ -577,12 +577,12 @@ var vtkDataArray$1 = {
|
|
|
577
577
|
|
|
578
578
|
/***/ }),
|
|
579
579
|
|
|
580
|
-
/***/
|
|
580
|
+
/***/ 89262:
|
|
581
581
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
582
582
|
|
|
583
583
|
"use strict";
|
|
584
584
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
585
|
-
/* harmony export */
|
|
585
|
+
/* harmony export */ "default": () => (/* binding */ Constants)
|
|
586
586
|
/* harmony export */ });
|
|
587
587
|
/* unused harmony exports DataTypeByteSize, DefaultDataType, VtkDataTypes */
|
|
588
588
|
const DataTypeByteSize = {
|
|
@@ -623,15 +623,15 @@ var Constants = {
|
|
|
623
623
|
|
|
624
624
|
/***/ }),
|
|
625
625
|
|
|
626
|
-
/***/
|
|
626
|
+
/***/ 40286:
|
|
627
627
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
628
628
|
|
|
629
629
|
"use strict";
|
|
630
630
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
631
|
-
/* harmony export */
|
|
632
|
-
/* harmony export */
|
|
633
|
-
/* harmony export */
|
|
634
|
-
/* harmony export */
|
|
631
|
+
/* harmony export */ B0: () => (/* binding */ VTK_SMALL_NUMBER),
|
|
632
|
+
/* harmony export */ Ib: () => (/* binding */ EPSILON),
|
|
633
|
+
/* harmony export */ Wd: () => (/* binding */ IDENTITY),
|
|
634
|
+
/* harmony export */ qt: () => (/* binding */ IDENTITY_3X3)
|
|
635
635
|
/* harmony export */ });
|
|
636
636
|
/* unused harmony export default */
|
|
637
637
|
const IDENTITY = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
@@ -650,7 +650,7 @@ var Constants = {
|
|
|
650
650
|
|
|
651
651
|
/***/ }),
|
|
652
652
|
|
|
653
|
-
/***/
|
|
653
|
+
/***/ 59474:
|
|
654
654
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
655
655
|
|
|
656
656
|
"use strict";
|
|
@@ -664,10 +664,10 @@ var Constants = {
|
|
|
664
664
|
/* harmony export */ s: () => (/* binding */ subtract)
|
|
665
665
|
/* harmony export */ });
|
|
666
666
|
/* unused harmony exports $, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, a, a$, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, e, f, g, h, i, l, m, o, p, q, r, t, u, v, w, x, y, z */
|
|
667
|
-
/* harmony import */ var seedrandom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
667
|
+
/* harmony import */ var seedrandom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53775);
|
|
668
668
|
/* harmony import */ var seedrandom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(seedrandom__WEBPACK_IMPORTED_MODULE_0__);
|
|
669
|
-
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
670
|
-
/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
669
|
+
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68470);
|
|
670
|
+
/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40286);
|
|
671
671
|
|
|
672
672
|
|
|
673
673
|
|
|
@@ -1303,7 +1303,7 @@ function determinant3x3(mat_3x3) {
|
|
|
1303
1303
|
* @param {Number} eps tolerance
|
|
1304
1304
|
*/
|
|
1305
1305
|
function areEquals(a, b) {
|
|
1306
|
-
let eps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .
|
|
1306
|
+
let eps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .Ib;
|
|
1307
1307
|
if (a.length !== b.length) {
|
|
1308
1308
|
return false;
|
|
1309
1309
|
}
|
|
@@ -1330,12 +1330,12 @@ function identity(n, mat) {
|
|
|
1330
1330
|
return mat;
|
|
1331
1331
|
}
|
|
1332
1332
|
function isIdentity(mat) {
|
|
1333
|
-
let eps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .
|
|
1334
|
-
return areMatricesEqual(mat, _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .IDENTITY */ .
|
|
1333
|
+
let eps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .Ib;
|
|
1334
|
+
return areMatricesEqual(mat, _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .IDENTITY */ .Wd, eps);
|
|
1335
1335
|
}
|
|
1336
1336
|
function isIdentity3x3(mat) {
|
|
1337
|
-
let eps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .
|
|
1338
|
-
return areMatricesEqual(mat, _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .IDENTITY_3X3 */ .
|
|
1337
|
+
let eps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .EPSILON */ .Ib;
|
|
1338
|
+
return areMatricesEqual(mat, _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .IDENTITY_3X3 */ .qt, eps);
|
|
1339
1339
|
}
|
|
1340
1340
|
function quaternionToMatrix3x3(quat_4, mat_3x3) {
|
|
1341
1341
|
const ww = quat_4[0] * quat_4[0];
|
|
@@ -1500,7 +1500,7 @@ function jacobiN(a, n, w, v) {
|
|
|
1500
1500
|
tmp = w[k];
|
|
1501
1501
|
for (i = j + 1; i < n; i++) {
|
|
1502
1502
|
// boundary incorrect, shifted already
|
|
1503
|
-
if (w[i] >= tmp || Math.abs(w[i] - tmp) < _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .VTK_SMALL_NUMBER */ .
|
|
1503
|
+
if (w[i] >= tmp || Math.abs(w[i] - tmp) < _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .VTK_SMALL_NUMBER */ .B0) {
|
|
1504
1504
|
// why exchange if same?
|
|
1505
1505
|
k = i;
|
|
1506
1506
|
tmp = w[k];
|
|
@@ -1893,7 +1893,7 @@ function luFactorLinearSystem(A, index, size) {
|
|
|
1893
1893
|
// Divide by pivot element and perform elimination
|
|
1894
1894
|
//
|
|
1895
1895
|
index[j] = maxI;
|
|
1896
|
-
if (Math.abs(A[j * size + j]) <= _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .VTK_SMALL_NUMBER */ .
|
|
1896
|
+
if (Math.abs(A[j * size + j]) <= _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .VTK_SMALL_NUMBER */ .B0) {
|
|
1897
1897
|
vtkWarningMacro('Unable to factor linear system');
|
|
1898
1898
|
return 0;
|
|
1899
1899
|
}
|
|
@@ -2105,7 +2105,7 @@ function solveLeastSquares(numberOfSamples, xt, xOrder, yt, yOrder, mt) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
for (i = 0; i < numberOfSamples; i++) {
|
|
2107
2107
|
for (j = 0; j < yOrder; j++) {
|
|
2108
|
-
if (Math.abs(yt[i * yOrder + j]) > _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .VTK_SMALL_NUMBER */ .
|
|
2108
|
+
if (Math.abs(yt[i * yOrder + j]) > _Constants_js__WEBPACK_IMPORTED_MODULE_2__/* .VTK_SMALL_NUMBER */ .B0) {
|
|
2109
2109
|
allHomogeneous = 0;
|
|
2110
2110
|
homogenFlags[j] = 0;
|
|
2111
2111
|
}
|
|
@@ -2920,12 +2920,12 @@ var vtkMath$1 = /*#__PURE__*/Object.freeze({
|
|
|
2920
2920
|
|
|
2921
2921
|
/***/ }),
|
|
2922
2922
|
|
|
2923
|
-
/***/
|
|
2923
|
+
/***/ 21477:
|
|
2924
2924
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2925
2925
|
|
|
2926
2926
|
"use strict";
|
|
2927
2927
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2928
|
-
/* harmony export */
|
|
2928
|
+
/* harmony export */ "default": () => (/* binding */ Constants)
|
|
2929
2929
|
/* harmony export */ });
|
|
2930
2930
|
/* unused harmony exports AttributeCopyOperations, AttributeLimitTypes, AttributeTypes, CellGhostTypes, DesiredOutputPrecision, PointGhostTypes, ghostArrayName */
|
|
2931
2931
|
const AttributeTypes = {
|
|
@@ -2995,399 +2995,7 @@ var Constants = {
|
|
|
2995
2995
|
|
|
2996
2996
|
/***/ }),
|
|
2997
2997
|
|
|
2998
|
-
/***/
|
|
2999
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3000
|
-
|
|
3001
|
-
"use strict";
|
|
3002
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3003
|
-
/* harmony export */ Ay: () => (/* binding */ vtkImageData$1)
|
|
3004
|
-
/* harmony export */ });
|
|
3005
|
-
/* unused harmony exports extend, newInstance */
|
|
3006
|
-
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50906);
|
|
3007
|
-
/* harmony import */ var _Core_Math_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68680);
|
|
3008
|
-
/* harmony import */ var _BoundingBox_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52662);
|
|
3009
|
-
/* harmony import */ var _DataSet_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32090);
|
|
3010
|
-
/* harmony import */ var _StructuredData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89780);
|
|
3011
|
-
/* harmony import */ var _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13422);
|
|
3012
|
-
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44753);
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
const {
|
|
3022
|
-
vtkErrorMacro
|
|
3023
|
-
} = _macros2_js__WEBPACK_IMPORTED_MODULE_0__.m;
|
|
3024
|
-
|
|
3025
|
-
// ----------------------------------------------------------------------------
|
|
3026
|
-
// vtkImageData methods
|
|
3027
|
-
// ----------------------------------------------------------------------------
|
|
3028
|
-
|
|
3029
|
-
function vtkImageData(publicAPI, model) {
|
|
3030
|
-
// Set our className
|
|
3031
|
-
model.classHierarchy.push('vtkImageData');
|
|
3032
|
-
publicAPI.setExtent = function () {
|
|
3033
|
-
if (model.deleted) {
|
|
3034
|
-
vtkErrorMacro('instance deleted - cannot call any method');
|
|
3035
|
-
return false;
|
|
3036
|
-
}
|
|
3037
|
-
for (var _len = arguments.length, inExtent = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3038
|
-
inExtent[_key] = arguments[_key];
|
|
3039
|
-
}
|
|
3040
|
-
const extentArray = inExtent.length === 1 ? inExtent[0] : inExtent;
|
|
3041
|
-
if (extentArray.length !== 6) {
|
|
3042
|
-
return false;
|
|
3043
|
-
}
|
|
3044
|
-
const changeDetected = model.extent.some((item, index) => item !== extentArray[index]);
|
|
3045
|
-
if (changeDetected) {
|
|
3046
|
-
model.extent = extentArray.slice();
|
|
3047
|
-
model.dataDescription = _StructuredData_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"].getDataDescriptionFromExtent */ .A.getDataDescriptionFromExtent(model.extent);
|
|
3048
|
-
publicAPI.modified();
|
|
3049
|
-
}
|
|
3050
|
-
return changeDetected;
|
|
3051
|
-
};
|
|
3052
|
-
publicAPI.setDimensions = function () {
|
|
3053
|
-
let i;
|
|
3054
|
-
let j;
|
|
3055
|
-
let k;
|
|
3056
|
-
if (model.deleted) {
|
|
3057
|
-
vtkErrorMacro('instance deleted - cannot call any method');
|
|
3058
|
-
return;
|
|
3059
|
-
}
|
|
3060
|
-
if (arguments.length === 1) {
|
|
3061
|
-
const array = arguments.length <= 0 ? undefined : arguments[0];
|
|
3062
|
-
i = array[0];
|
|
3063
|
-
j = array[1];
|
|
3064
|
-
k = array[2];
|
|
3065
|
-
} else if (arguments.length === 3) {
|
|
3066
|
-
i = arguments.length <= 0 ? undefined : arguments[0];
|
|
3067
|
-
j = arguments.length <= 1 ? undefined : arguments[1];
|
|
3068
|
-
k = arguments.length <= 2 ? undefined : arguments[2];
|
|
3069
|
-
} else {
|
|
3070
|
-
vtkErrorMacro('Bad dimension specification');
|
|
3071
|
-
return;
|
|
3072
|
-
}
|
|
3073
|
-
publicAPI.setExtent(0, i - 1, 0, j - 1, 0, k - 1);
|
|
3074
|
-
};
|
|
3075
|
-
publicAPI.getDimensions = () => [model.extent[1] - model.extent[0] + 1, model.extent[3] - model.extent[2] + 1, model.extent[5] - model.extent[4] + 1];
|
|
3076
|
-
publicAPI.getNumberOfCells = () => {
|
|
3077
|
-
const dims = publicAPI.getDimensions();
|
|
3078
|
-
let nCells = 1;
|
|
3079
|
-
for (let i = 0; i < 3; i++) {
|
|
3080
|
-
if (dims[i] === 0) {
|
|
3081
|
-
return 0;
|
|
3082
|
-
}
|
|
3083
|
-
if (dims[i] > 1) {
|
|
3084
|
-
nCells *= dims[i] - 1;
|
|
3085
|
-
}
|
|
3086
|
-
}
|
|
3087
|
-
return nCells;
|
|
3088
|
-
};
|
|
3089
|
-
publicAPI.getNumberOfPoints = () => {
|
|
3090
|
-
const dims = publicAPI.getDimensions();
|
|
3091
|
-
return dims[0] * dims[1] * dims[2];
|
|
3092
|
-
};
|
|
3093
|
-
publicAPI.getPoint = index => {
|
|
3094
|
-
const dims = publicAPI.getDimensions();
|
|
3095
|
-
if (dims[0] === 0 || dims[1] === 0 || dims[2] === 0) {
|
|
3096
|
-
vtkErrorMacro('Requesting a point from an empty image.');
|
|
3097
|
-
return null;
|
|
3098
|
-
}
|
|
3099
|
-
const ijk = new Float64Array(3);
|
|
3100
|
-
switch (model.dataDescription) {
|
|
3101
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.EMPTY:
|
|
3102
|
-
return null;
|
|
3103
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.SINGLE_POINT:
|
|
3104
|
-
break;
|
|
3105
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.X_LINE:
|
|
3106
|
-
ijk[0] = index;
|
|
3107
|
-
break;
|
|
3108
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.Y_LINE:
|
|
3109
|
-
ijk[1] = index;
|
|
3110
|
-
break;
|
|
3111
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.Z_LINE:
|
|
3112
|
-
ijk[2] = index;
|
|
3113
|
-
break;
|
|
3114
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.XY_PLANE:
|
|
3115
|
-
ijk[0] = index % dims[0];
|
|
3116
|
-
ijk[1] = index / dims[0];
|
|
3117
|
-
break;
|
|
3118
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.YZ_PLANE:
|
|
3119
|
-
ijk[1] = index % dims[1];
|
|
3120
|
-
ijk[2] = index / dims[1];
|
|
3121
|
-
break;
|
|
3122
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.XZ_PLANE:
|
|
3123
|
-
ijk[0] = index % dims[0];
|
|
3124
|
-
ijk[2] = index / dims[0];
|
|
3125
|
-
break;
|
|
3126
|
-
case _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.XYZ_GRID:
|
|
3127
|
-
ijk[0] = index % dims[0];
|
|
3128
|
-
ijk[1] = index / dims[0] % dims[1];
|
|
3129
|
-
ijk[2] = index / (dims[0] * dims[1]);
|
|
3130
|
-
break;
|
|
3131
|
-
default:
|
|
3132
|
-
vtkErrorMacro('Invalid dataDescription');
|
|
3133
|
-
break;
|
|
3134
|
-
}
|
|
3135
|
-
const coords = [0, 0, 0];
|
|
3136
|
-
publicAPI.indexToWorld(ijk, coords);
|
|
3137
|
-
return coords;
|
|
3138
|
-
};
|
|
3139
|
-
|
|
3140
|
-
// vtkCell *GetCell(vtkIdType cellId) VTK_OVERRIDE;
|
|
3141
|
-
// void GetCell(vtkIdType cellId, vtkGenericCell *cell) VTK_OVERRIDE;
|
|
3142
|
-
// void GetCellBounds(vtkIdType cellId, double bounds[6]) VTK_OVERRIDE;
|
|
3143
|
-
// virtual vtkIdType FindPoint(double x, double y, double z)
|
|
3144
|
-
// {
|
|
3145
|
-
// return this->vtkDataSet::FindPoint(x, y, z);
|
|
3146
|
-
// }
|
|
3147
|
-
// vtkIdType FindPoint(double x[3]) VTK_OVERRIDE;
|
|
3148
|
-
// vtkIdType FindCell(
|
|
3149
|
-
// double x[3], vtkCell *cell, vtkIdType cellId, double tol2,
|
|
3150
|
-
// int& subId, double pcoords[3], double *weights) VTK_OVERRIDE;
|
|
3151
|
-
// vtkIdType FindCell(
|
|
3152
|
-
// double x[3], vtkCell *cell, vtkGenericCell *gencell,
|
|
3153
|
-
// vtkIdType cellId, double tol2, int& subId,
|
|
3154
|
-
// double pcoords[3], double *weights) VTK_OVERRIDE;
|
|
3155
|
-
// vtkCell *FindAndGetCell(double x[3], vtkCell *cell, vtkIdType cellId,
|
|
3156
|
-
// double tol2, int& subId, double pcoords[3],
|
|
3157
|
-
// double *weights) VTK_OVERRIDE;
|
|
3158
|
-
// int GetCellType(vtkIdType cellId) VTK_OVERRIDE;
|
|
3159
|
-
// void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) VTK_OVERRIDE
|
|
3160
|
-
// {vtkStructuredData::GetCellPoints(cellId,ptIds,this->DataDescription,
|
|
3161
|
-
// this->GetDimensions());}
|
|
3162
|
-
// void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) VTK_OVERRIDE
|
|
3163
|
-
// {vtkStructuredData::GetPointCells(ptId,cellIds,this->GetDimensions());}
|
|
3164
|
-
// void ComputeBounds() VTK_OVERRIDE;
|
|
3165
|
-
// int GetMaxCellSize() VTK_OVERRIDE {return 8;}; //voxel is the largest
|
|
3166
|
-
|
|
3167
|
-
publicAPI.getBounds = () => publicAPI.extentToBounds(publicAPI.getSpatialExtent());
|
|
3168
|
-
publicAPI.extentToBounds = ex => _BoundingBox_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"].transformBounds */ .Ay.transformBounds(ex, model.indexToWorld);
|
|
3169
|
-
publicAPI.getSpatialExtent = () => _BoundingBox_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"].inflate */ .Ay.inflate([...model.extent], 0.5);
|
|
3170
|
-
|
|
3171
|
-
// Internal, shouldn't need to call this manually.
|
|
3172
|
-
publicAPI.computeTransforms = () => {
|
|
3173
|
-
gl_matrix__WEBPACK_IMPORTED_MODULE_6__/* .mat4.fromTranslation */ .pB.fromTranslation(model.indexToWorld, model.origin);
|
|
3174
|
-
model.indexToWorld[0] = model.direction[0];
|
|
3175
|
-
model.indexToWorld[1] = model.direction[1];
|
|
3176
|
-
model.indexToWorld[2] = model.direction[2];
|
|
3177
|
-
model.indexToWorld[4] = model.direction[3];
|
|
3178
|
-
model.indexToWorld[5] = model.direction[4];
|
|
3179
|
-
model.indexToWorld[6] = model.direction[5];
|
|
3180
|
-
model.indexToWorld[8] = model.direction[6];
|
|
3181
|
-
model.indexToWorld[9] = model.direction[7];
|
|
3182
|
-
model.indexToWorld[10] = model.direction[8];
|
|
3183
|
-
gl_matrix__WEBPACK_IMPORTED_MODULE_6__/* .mat4.scale */ .pB.scale(model.indexToWorld, model.indexToWorld, model.spacing);
|
|
3184
|
-
gl_matrix__WEBPACK_IMPORTED_MODULE_6__/* .mat4.invert */ .pB.invert(model.worldToIndex, model.indexToWorld);
|
|
3185
|
-
};
|
|
3186
|
-
publicAPI.indexToWorld = function (ain) {
|
|
3187
|
-
let aout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
3188
|
-
gl_matrix__WEBPACK_IMPORTED_MODULE_6__/* .vec3.transformMat4 */ .eR.transformMat4(aout, ain, model.indexToWorld);
|
|
3189
|
-
return aout;
|
|
3190
|
-
};
|
|
3191
|
-
publicAPI.indexToWorldVec3 = publicAPI.indexToWorld;
|
|
3192
|
-
publicAPI.worldToIndex = function (ain) {
|
|
3193
|
-
let aout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
3194
|
-
gl_matrix__WEBPACK_IMPORTED_MODULE_6__/* .vec3.transformMat4 */ .eR.transformMat4(aout, ain, model.worldToIndex);
|
|
3195
|
-
return aout;
|
|
3196
|
-
};
|
|
3197
|
-
publicAPI.worldToIndexVec3 = publicAPI.worldToIndex;
|
|
3198
|
-
publicAPI.indexToWorldBounds = function (bin) {
|
|
3199
|
-
let bout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
3200
|
-
return _BoundingBox_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"].transformBounds */ .Ay.transformBounds(bin, model.indexToWorld, bout);
|
|
3201
|
-
};
|
|
3202
|
-
publicAPI.worldToIndexBounds = function (bin) {
|
|
3203
|
-
let bout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
3204
|
-
return _BoundingBox_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"].transformBounds */ .Ay.transformBounds(bin, model.worldToIndex, bout);
|
|
3205
|
-
};
|
|
3206
|
-
|
|
3207
|
-
// Make sure the transform is correct
|
|
3208
|
-
publicAPI.onModified(publicAPI.computeTransforms);
|
|
3209
|
-
publicAPI.computeTransforms();
|
|
3210
|
-
publicAPI.getCenter = () => _BoundingBox_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"].getCenter */ .Ay.getCenter(publicAPI.getBounds());
|
|
3211
|
-
publicAPI.computeHistogram = function (worldBounds) {
|
|
3212
|
-
let voxelFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
3213
|
-
const bounds = [0, 0, 0, 0, 0, 0];
|
|
3214
|
-
publicAPI.worldToIndexBounds(worldBounds, bounds);
|
|
3215
|
-
const point1 = [0, 0, 0];
|
|
3216
|
-
const point2 = [0, 0, 0];
|
|
3217
|
-
_BoundingBox_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"].computeCornerPoints */ .Ay.computeCornerPoints(bounds, point1, point2);
|
|
3218
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_1__.b)(point1, point1);
|
|
3219
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_1__.b)(point2, point2);
|
|
3220
|
-
const dimensions = publicAPI.getDimensions();
|
|
3221
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_1__.c)(point1, [0, 0, 0], [dimensions[0] - 1, dimensions[1] - 1, dimensions[2] - 1], point1);
|
|
3222
|
-
(0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_1__.c)(point2, [0, 0, 0], [dimensions[0] - 1, dimensions[1] - 1, dimensions[2] - 1], point2);
|
|
3223
|
-
const yStride = dimensions[0];
|
|
3224
|
-
const zStride = dimensions[0] * dimensions[1];
|
|
3225
|
-
const pixels = publicAPI.getPointData().getScalars().getData();
|
|
3226
|
-
let maximum = -Infinity;
|
|
3227
|
-
let minimum = Infinity;
|
|
3228
|
-
let sumOfSquares = 0;
|
|
3229
|
-
let isum = 0;
|
|
3230
|
-
let inum = 0;
|
|
3231
|
-
for (let z = point1[2]; z <= point2[2]; z++) {
|
|
3232
|
-
for (let y = point1[1]; y <= point2[1]; y++) {
|
|
3233
|
-
let index = point1[0] + y * yStride + z * zStride;
|
|
3234
|
-
for (let x = point1[0]; x <= point2[0]; x++) {
|
|
3235
|
-
if (!voxelFunc || voxelFunc([x, y, z], bounds)) {
|
|
3236
|
-
const pixel = pixels[index];
|
|
3237
|
-
if (pixel > maximum) maximum = pixel;
|
|
3238
|
-
if (pixel < minimum) minimum = pixel;
|
|
3239
|
-
sumOfSquares += pixel * pixel;
|
|
3240
|
-
isum += pixel;
|
|
3241
|
-
inum += 1;
|
|
3242
|
-
}
|
|
3243
|
-
++index;
|
|
3244
|
-
}
|
|
3245
|
-
}
|
|
3246
|
-
}
|
|
3247
|
-
const average = inum > 0 ? isum / inum : 0;
|
|
3248
|
-
const variance = inum ? Math.abs(sumOfSquares / inum - average * average) : 0;
|
|
3249
|
-
const sigma = Math.sqrt(variance);
|
|
3250
|
-
return {
|
|
3251
|
-
minimum,
|
|
3252
|
-
maximum,
|
|
3253
|
-
average,
|
|
3254
|
-
variance,
|
|
3255
|
-
sigma,
|
|
3256
|
-
count: inum
|
|
3257
|
-
};
|
|
3258
|
-
};
|
|
3259
|
-
|
|
3260
|
-
// TODO: use the unimplemented `vtkDataSetAttributes` for scalar length, that is currently also a TODO (GetNumberOfComponents).
|
|
3261
|
-
// Scalar data could be tuples for color information?
|
|
3262
|
-
publicAPI.computeIncrements = function (extent) {
|
|
3263
|
-
let numberOfComponents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
3264
|
-
const increments = [];
|
|
3265
|
-
let incr = numberOfComponents;
|
|
3266
|
-
|
|
3267
|
-
// Calculate array increment offsets
|
|
3268
|
-
// similar to c++ vtkImageData::ComputeIncrements
|
|
3269
|
-
for (let idx = 0; idx < 3; ++idx) {
|
|
3270
|
-
increments[idx] = incr;
|
|
3271
|
-
incr *= extent[idx * 2 + 1] - extent[idx * 2] + 1;
|
|
3272
|
-
}
|
|
3273
|
-
return increments;
|
|
3274
|
-
};
|
|
3275
|
-
|
|
3276
|
-
/**
|
|
3277
|
-
* @param {Number[]} index the localized `[i,j,k]` pixel array position. Float values will be rounded.
|
|
3278
|
-
* @return {Number} the corresponding flattened index in the scalar array
|
|
3279
|
-
*/
|
|
3280
|
-
publicAPI.computeOffsetIndex = _ref => {
|
|
3281
|
-
let [i, j, k] = _ref;
|
|
3282
|
-
const extent = publicAPI.getExtent();
|
|
3283
|
-
const numberOfComponents = publicAPI.getPointData().getScalars().getNumberOfComponents();
|
|
3284
|
-
const increments = publicAPI.computeIncrements(extent, numberOfComponents);
|
|
3285
|
-
// Use the array increments to find the pixel index
|
|
3286
|
-
// similar to c++ vtkImageData::GetArrayPointer
|
|
3287
|
-
// Math.floor to catch "practically 0" e^-15 scenarios.
|
|
3288
|
-
return Math.floor((Math.round(i) - extent[0]) * increments[0] + (Math.round(j) - extent[2]) * increments[1] + (Math.round(k) - extent[4]) * increments[2]);
|
|
3289
|
-
};
|
|
3290
|
-
|
|
3291
|
-
/**
|
|
3292
|
-
* @param {Number[]} xyz the [x,y,z] Array in world coordinates
|
|
3293
|
-
* @return {Number|NaN} the corresponding pixel's index in the scalar array
|
|
3294
|
-
*/
|
|
3295
|
-
publicAPI.getOffsetIndexFromWorld = xyz => {
|
|
3296
|
-
const extent = publicAPI.getExtent();
|
|
3297
|
-
const index = publicAPI.worldToIndex(xyz);
|
|
3298
|
-
|
|
3299
|
-
// Confirm indexed i,j,k coords are within the bounds of the volume
|
|
3300
|
-
for (let idx = 0; idx < 3; ++idx) {
|
|
3301
|
-
if (index[idx] < extent[idx * 2] || index[idx] > extent[idx * 2 + 1]) {
|
|
3302
|
-
vtkErrorMacro(`GetScalarPointer: Pixel ${index} is not in memory. Current extent = ${extent}`);
|
|
3303
|
-
return NaN;
|
|
3304
|
-
}
|
|
3305
|
-
}
|
|
3306
|
-
|
|
3307
|
-
// Assumed the index here is within 0 <-> scalarData.length, but doesn't hurt to check upstream
|
|
3308
|
-
return publicAPI.computeOffsetIndex(index);
|
|
3309
|
-
};
|
|
3310
|
-
/**
|
|
3311
|
-
* @param {Number[]} xyz the [x,y,z] Array in world coordinates
|
|
3312
|
-
* @param {Number?} comp the scalar component index for multi-component scalars
|
|
3313
|
-
* @return {Number|NaN} the corresponding pixel's scalar value
|
|
3314
|
-
*/
|
|
3315
|
-
publicAPI.getScalarValueFromWorld = function (xyz) {
|
|
3316
|
-
let comp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
3317
|
-
const numberOfComponents = publicAPI.getPointData().getScalars().getNumberOfComponents();
|
|
3318
|
-
if (comp < 0 || comp >= numberOfComponents) {
|
|
3319
|
-
vtkErrorMacro(`GetScalarPointer: Scalar Component ${comp} is not within bounds. Current Scalar numberOfComponents: ${numberOfComponents}`);
|
|
3320
|
-
return NaN;
|
|
3321
|
-
}
|
|
3322
|
-
const offsetIndex = publicAPI.getOffsetIndexFromWorld(xyz);
|
|
3323
|
-
if (Number.isNaN(offsetIndex)) {
|
|
3324
|
-
// VTK Error Macro will have been tripped already, no need to do it again,
|
|
3325
|
-
return offsetIndex;
|
|
3326
|
-
}
|
|
3327
|
-
return publicAPI.getPointData().getScalars().getComponent(offsetIndex, comp);
|
|
3328
|
-
};
|
|
3329
|
-
}
|
|
3330
|
-
|
|
3331
|
-
// ----------------------------------------------------------------------------
|
|
3332
|
-
// Object factory
|
|
3333
|
-
// ----------------------------------------------------------------------------
|
|
3334
|
-
|
|
3335
|
-
const DEFAULT_VALUES = {
|
|
3336
|
-
direction: null,
|
|
3337
|
-
// a mat3
|
|
3338
|
-
indexToWorld: null,
|
|
3339
|
-
// a mat4
|
|
3340
|
-
worldToIndex: null,
|
|
3341
|
-
// a mat4
|
|
3342
|
-
spacing: [1.0, 1.0, 1.0],
|
|
3343
|
-
origin: [0.0, 0.0, 0.0],
|
|
3344
|
-
extent: [0, -1, 0, -1, 0, -1],
|
|
3345
|
-
dataDescription: _StructuredData_Constants_js__WEBPACK_IMPORTED_MODULE_5__/* .StructuredType */ .e.EMPTY
|
|
3346
|
-
};
|
|
3347
|
-
|
|
3348
|
-
// ----------------------------------------------------------------------------
|
|
3349
|
-
|
|
3350
|
-
function extend(publicAPI, model) {
|
|
3351
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3352
|
-
Object.assign(model, DEFAULT_VALUES, initialValues);
|
|
3353
|
-
|
|
3354
|
-
// Inheritance
|
|
3355
|
-
_DataSet_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"].extend */ .Ay.extend(publicAPI, model, initialValues);
|
|
3356
|
-
if (!model.direction) {
|
|
3357
|
-
model.direction = gl_matrix__WEBPACK_IMPORTED_MODULE_6__/* .mat3.identity */ .w0.identity(new Float64Array(9));
|
|
3358
|
-
} else if (Array.isArray(model.direction)) {
|
|
3359
|
-
model.direction = new Float64Array(model.direction.slice(0, 9));
|
|
3360
|
-
}
|
|
3361
|
-
model.indexToWorld = new Float64Array(16);
|
|
3362
|
-
model.worldToIndex = new Float64Array(16);
|
|
3363
|
-
|
|
3364
|
-
// Set/Get methods
|
|
3365
|
-
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.get(publicAPI, model, ['indexToWorld', 'worldToIndex']);
|
|
3366
|
-
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.setGetArray(publicAPI, model, ['origin', 'spacing'], 3);
|
|
3367
|
-
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.setGetArray(publicAPI, model, ['direction'], 9);
|
|
3368
|
-
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.getArray(publicAPI, model, ['extent'], 6);
|
|
3369
|
-
|
|
3370
|
-
// Object specific methods
|
|
3371
|
-
vtkImageData(publicAPI, model);
|
|
3372
|
-
}
|
|
3373
|
-
|
|
3374
|
-
// ----------------------------------------------------------------------------
|
|
3375
|
-
|
|
3376
|
-
const newInstance = _macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.newInstance(extend, 'vtkImageData');
|
|
3377
|
-
|
|
3378
|
-
// ----------------------------------------------------------------------------
|
|
3379
|
-
|
|
3380
|
-
var vtkImageData$1 = {
|
|
3381
|
-
newInstance,
|
|
3382
|
-
extend
|
|
3383
|
-
};
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
/***/ }),
|
|
3389
|
-
|
|
3390
|
-
/***/ 50906:
|
|
2998
|
+
/***/ 68470:
|
|
3391
2999
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3392
3000
|
|
|
3393
3001
|
"use strict";
|
|
@@ -3401,10 +3009,10 @@ var vtkImageData$1 = {
|
|
|
3401
3009
|
/* harmony export */ s: () => (/* binding */ set)
|
|
3402
3010
|
/* harmony export */ });
|
|
3403
3011
|
/* unused harmony exports A, B, C, D, E, F, G, H, I, J, K, L, M, T, V, _, d, e, f, g, h, i, j, k, l, p, q, r, t, u, v, w, x, y, z */
|
|
3404
|
-
/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3012
|
+
/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25686);
|
|
3405
3013
|
/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__);
|
|
3406
|
-
/* harmony import */ var _vtk_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
3407
|
-
/* harmony import */ var _Common_Core_ClassHierarchy_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
3014
|
+
/* harmony import */ var _vtk_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99824);
|
|
3015
|
+
/* harmony import */ var _Common_Core_ClassHierarchy_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86096);
|
|
3408
3016
|
|
|
3409
3017
|
|
|
3410
3018
|
|
|
@@ -3430,14 +3038,14 @@ const consoleMethods = ['log', 'debug', 'info', 'warn', 'error', 'time', 'timeEn
|
|
|
3430
3038
|
consoleMethods.forEach(methodName => {
|
|
3431
3039
|
fakeConsole[methodName] = noOp;
|
|
3432
3040
|
});
|
|
3433
|
-
_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .
|
|
3041
|
+
_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .I.console = console.hasOwnProperty('log') ? console : fakeConsole;
|
|
3434
3042
|
const loggerFunctions = {
|
|
3435
3043
|
debug: noOp,
|
|
3436
3044
|
// Don't print debug by default
|
|
3437
|
-
error: _vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .
|
|
3438
|
-
info: _vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .
|
|
3439
|
-
log: _vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .
|
|
3440
|
-
warn: _vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .
|
|
3045
|
+
error: _vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .I.console.error || noOp,
|
|
3046
|
+
info: _vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .I.console.info || noOp,
|
|
3047
|
+
log: _vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .I.console.log || noOp,
|
|
3048
|
+
warn: _vtk_js__WEBPACK_IMPORTED_MODULE_1__/* .vtkGlobal */ .I.console.warn || noOp
|
|
3441
3049
|
};
|
|
3442
3050
|
function setLoggerFunction(name, fn) {
|
|
3443
3051
|
if (loggerFunctions[name]) {
|
|
@@ -3637,9 +3245,9 @@ function obj() {
|
|
|
3637
3245
|
model.mtime = ++globalMTime;
|
|
3638
3246
|
}
|
|
3639
3247
|
if (!('classHierarchy' in model)) {
|
|
3640
|
-
model.classHierarchy = new _Common_Core_ClassHierarchy_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .
|
|
3641
|
-
} else if (!(model.classHierarchy instanceof _Common_Core_ClassHierarchy_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .
|
|
3642
|
-
const hierarchy = new _Common_Core_ClassHierarchy_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .
|
|
3248
|
+
model.classHierarchy = new _Common_Core_ClassHierarchy_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z('vtkObject');
|
|
3249
|
+
} else if (!(model.classHierarchy instanceof _Common_Core_ClassHierarchy_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)) {
|
|
3250
|
+
const hierarchy = new _Common_Core_ClassHierarchy_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z();
|
|
3643
3251
|
for (let i = 0; i < model.classHierarchy.length; i++) {
|
|
3644
3252
|
hierarchy.push(model.classHierarchy[i]);
|
|
3645
3253
|
}
|
|
@@ -4040,22 +3648,22 @@ function moveToProtected(publicAPI, model, fieldNames) {
|
|
|
4040
3648
|
|
|
4041
3649
|
function algo(publicAPI, model, numberOfInputs, numberOfOutputs) {
|
|
4042
3650
|
if (model.inputData) {
|
|
4043
|
-
model.inputData = model.inputData.map(_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .
|
|
3651
|
+
model.inputData = model.inputData.map(_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z);
|
|
4044
3652
|
} else {
|
|
4045
3653
|
model.inputData = [];
|
|
4046
3654
|
}
|
|
4047
3655
|
if (model.inputConnection) {
|
|
4048
|
-
model.inputConnection = model.inputConnection.map(_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .
|
|
3656
|
+
model.inputConnection = model.inputConnection.map(_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z);
|
|
4049
3657
|
} else {
|
|
4050
3658
|
model.inputConnection = [];
|
|
4051
3659
|
}
|
|
4052
3660
|
if (model.output) {
|
|
4053
|
-
model.output = model.output.map(_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .
|
|
3661
|
+
model.output = model.output.map(_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z);
|
|
4054
3662
|
} else {
|
|
4055
3663
|
model.output = [];
|
|
4056
3664
|
}
|
|
4057
3665
|
if (model.inputArrayToProcess) {
|
|
4058
|
-
model.inputArrayToProcess = model.inputArrayToProcess.map(_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .
|
|
3666
|
+
model.inputArrayToProcess = model.inputArrayToProcess.map(_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z);
|
|
4059
3667
|
} else {
|
|
4060
3668
|
model.inputArrayToProcess = [];
|
|
4061
3669
|
}
|
|
@@ -4327,7 +3935,7 @@ function newInstance(extend, className) {
|
|
|
4327
3935
|
|
|
4328
3936
|
// Register constructor to factory
|
|
4329
3937
|
if (className) {
|
|
4330
|
-
_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .
|
|
3938
|
+
_vtk_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.register(className, constructor);
|
|
4331
3939
|
}
|
|
4332
3940
|
return constructor;
|
|
4333
3941
|
}
|
|
@@ -5098,15 +4706,15 @@ var macro$1 = /*#__PURE__*/Object.freeze({
|
|
|
5098
4706
|
|
|
5099
4707
|
/***/ }),
|
|
5100
4708
|
|
|
5101
|
-
/***/
|
|
4709
|
+
/***/ 99824:
|
|
5102
4710
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5103
4711
|
|
|
5104
4712
|
"use strict";
|
|
5105
4713
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5106
|
-
/* harmony export */
|
|
5107
|
-
/* harmony export */
|
|
4714
|
+
/* harmony export */ I: () => (/* binding */ vtkGlobal),
|
|
4715
|
+
/* harmony export */ Z: () => (/* binding */ vtk)
|
|
5108
4716
|
/* harmony export */ });
|
|
5109
|
-
/* harmony import */ var globalthis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4717
|
+
/* harmony import */ var globalthis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7218);
|
|
5110
4718
|
/* harmony import */ var globalthis__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(globalthis__WEBPACK_IMPORTED_MODULE_0__);
|
|
5111
4719
|
|
|
5112
4720
|
|
|
@@ -5167,7 +4775,7 @@ vtk.register = register;
|
|
|
5167
4775
|
|
|
5168
4776
|
/***/ }),
|
|
5169
4777
|
|
|
5170
|
-
/***/
|
|
4778
|
+
/***/ 25686:
|
|
5171
4779
|
/***/ ((module) => {
|
|
5172
4780
|
|
|
5173
4781
|
"use strict";
|
|
@@ -5221,7 +4829,7 @@ module.exports = function equal(a, b) {
|
|
|
5221
4829
|
|
|
5222
4830
|
/***/ }),
|
|
5223
4831
|
|
|
5224
|
-
/***/
|
|
4832
|
+
/***/ 30654:
|
|
5225
4833
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5226
4834
|
|
|
5227
4835
|
"use strict";
|
|
@@ -5284,34 +4892,34 @@ if (!Math.hypot) Math.hypot = function () {
|
|
|
5284
4892
|
|
|
5285
4893
|
/***/ }),
|
|
5286
4894
|
|
|
5287
|
-
/***/
|
|
4895
|
+
/***/ 72076:
|
|
5288
4896
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5289
4897
|
|
|
5290
4898
|
"use strict";
|
|
5291
4899
|
|
|
5292
4900
|
// EXPORTS
|
|
5293
4901
|
__webpack_require__.d(__webpack_exports__, {
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
4902
|
+
wO: () => (/* reexport */ mat3),
|
|
4903
|
+
_E: () => (/* reexport */ mat4),
|
|
4904
|
+
R3: () => (/* reexport */ vec3)
|
|
5297
4905
|
});
|
|
5298
4906
|
|
|
5299
4907
|
// UNUSED EXPORTS: glMatrix, mat2, mat2d, quat, quat2, vec2, vec4
|
|
5300
4908
|
|
|
5301
4909
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/common.js
|
|
5302
|
-
var common = __webpack_require__(
|
|
4910
|
+
var common = __webpack_require__(30654);
|
|
5303
4911
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/mat2.js
|
|
5304
|
-
var mat2 = __webpack_require__(
|
|
4912
|
+
var mat2 = __webpack_require__(43618);
|
|
5305
4913
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/mat2d.js
|
|
5306
|
-
var mat2d = __webpack_require__(
|
|
4914
|
+
var mat2d = __webpack_require__(97681);
|
|
5307
4915
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/mat3.js
|
|
5308
|
-
var mat3 = __webpack_require__(
|
|
4916
|
+
var mat3 = __webpack_require__(48689);
|
|
5309
4917
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/mat4.js
|
|
5310
|
-
var mat4 = __webpack_require__(
|
|
4918
|
+
var mat4 = __webpack_require__(54592);
|
|
5311
4919
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/quat.js
|
|
5312
|
-
var quat = __webpack_require__(
|
|
4920
|
+
var quat = __webpack_require__(75771);
|
|
5313
4921
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/quat2.js
|
|
5314
|
-
var quat2 = __webpack_require__(
|
|
4922
|
+
var quat2 = __webpack_require__(53687);
|
|
5315
4923
|
;// CONCATENATED MODULE: ../../../node_modules/gl-matrix/esm/vec2.js
|
|
5316
4924
|
|
|
5317
4925
|
/**
|
|
@@ -5938,9 +5546,9 @@ var forEach = function () {
|
|
|
5938
5546
|
};
|
|
5939
5547
|
}();
|
|
5940
5548
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/vec3.js
|
|
5941
|
-
var vec3 = __webpack_require__(
|
|
5549
|
+
var vec3 = __webpack_require__(66477);
|
|
5942
5550
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/vec4.js
|
|
5943
|
-
var vec4 = __webpack_require__(
|
|
5551
|
+
var vec4 = __webpack_require__(74572);
|
|
5944
5552
|
;// CONCATENATED MODULE: ../../../node_modules/gl-matrix/esm/index.js
|
|
5945
5553
|
|
|
5946
5554
|
|
|
@@ -5956,7 +5564,7 @@ var vec4 = __webpack_require__(81254);
|
|
|
5956
5564
|
|
|
5957
5565
|
/***/ }),
|
|
5958
5566
|
|
|
5959
|
-
/***/
|
|
5567
|
+
/***/ 48689:
|
|
5960
5568
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5961
5569
|
|
|
5962
5570
|
"use strict";
|
|
@@ -5995,7 +5603,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5995
5603
|
/* harmony export */ translate: () => (/* binding */ translate),
|
|
5996
5604
|
/* harmony export */ transpose: () => (/* binding */ transpose)
|
|
5997
5605
|
/* harmony export */ });
|
|
5998
|
-
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
5606
|
+
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30654);
|
|
5999
5607
|
|
|
6000
5608
|
/**
|
|
6001
5609
|
* 3x3 Matrix
|
|
@@ -6777,7 +6385,7 @@ var sub = subtract;
|
|
|
6777
6385
|
|
|
6778
6386
|
/***/ }),
|
|
6779
6387
|
|
|
6780
|
-
/***/
|
|
6388
|
+
/***/ 75771:
|
|
6781
6389
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6782
6390
|
|
|
6783
6391
|
"use strict";
|
|
@@ -6788,10 +6396,10 @@ var sub = subtract;
|
|
|
6788
6396
|
/* harmony export */ squaredLength: () => (/* binding */ squaredLength)
|
|
6789
6397
|
/* harmony export */ });
|
|
6790
6398
|
/* unused harmony exports create, identity, setAxisAngle, getAxisAngle, getAngle, multiply, rotateX, rotateY, rotateZ, calculateW, exp, ln, pow, slerp, random, invert, conjugate, fromMat3, fromEuler, str, clone, fromValues, set, add, mul, scale, lerp, len, sqrLen, normalize, exactEquals, equals, rotationTo, sqlerp, setAxes */
|
|
6791
|
-
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
6792
|
-
/* harmony import */ var _mat3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
6793
|
-
/* harmony import */ var _vec3_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
6794
|
-
/* harmony import */ var _vec4_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
6399
|
+
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30654);
|
|
6400
|
+
/* harmony import */ var _mat3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48689);
|
|
6401
|
+
/* harmony import */ var _vec3_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66477);
|
|
6402
|
+
/* harmony import */ var _vec4_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74572);
|
|
6795
6403
|
|
|
6796
6404
|
|
|
6797
6405
|
|
|
@@ -7505,7 +7113,7 @@ var setAxes = function () {
|
|
|
7505
7113
|
|
|
7506
7114
|
/***/ }),
|
|
7507
7115
|
|
|
7508
|
-
/***/
|
|
7116
|
+
/***/ 74572:
|
|
7509
7117
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7510
7118
|
|
|
7511
7119
|
"use strict";
|
|
@@ -7525,7 +7133,7 @@ var setAxes = function () {
|
|
|
7525
7133
|
/* harmony export */ squaredLength: () => (/* binding */ squaredLength)
|
|
7526
7134
|
/* harmony export */ });
|
|
7527
7135
|
/* unused harmony exports create, subtract, multiply, divide, ceil, floor, min, max, round, scaleAndAdd, distance, squaredDistance, negate, inverse, cross, random, transformMat4, transformQuat, zero, str, sub, mul, div, dist, sqrDist, len, sqrLen, forEach */
|
|
7528
|
-
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
7136
|
+
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30654);
|
|
7529
7137
|
|
|
7530
7138
|
/**
|
|
7531
7139
|
* 4 Dimensional Vector
|
|
@@ -8192,7 +7800,7 @@ var forEach = function () {
|
|
|
8192
7800
|
|
|
8193
7801
|
/***/ }),
|
|
8194
7802
|
|
|
8195
|
-
/***/
|
|
7803
|
+
/***/ 53775:
|
|
8196
7804
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8197
7805
|
|
|
8198
7806
|
// A library of seedable RNGs implemented in Javascript.
|
|
@@ -8207,17 +7815,17 @@ var forEach = function () {
|
|
|
8207
7815
|
// alea, a 53-bit multiply-with-carry generator by Johannes Baagøe.
|
|
8208
7816
|
// Period: ~2^116
|
|
8209
7817
|
// Reported to pass all BigCrush tests.
|
|
8210
|
-
var alea = __webpack_require__(
|
|
7818
|
+
var alea = __webpack_require__(99438);
|
|
8211
7819
|
|
|
8212
7820
|
// xor128, a pure xor-shift generator by George Marsaglia.
|
|
8213
7821
|
// Period: 2^128-1.
|
|
8214
7822
|
// Reported to fail: MatrixRank and LinearComp.
|
|
8215
|
-
var xor128 = __webpack_require__(
|
|
7823
|
+
var xor128 = __webpack_require__(85494);
|
|
8216
7824
|
|
|
8217
7825
|
// xorwow, George Marsaglia's 160-bit xor-shift combined plus weyl.
|
|
8218
7826
|
// Period: 2^192-2^32
|
|
8219
7827
|
// Reported to fail: CollisionOver, SimpPoker, and LinearComp.
|
|
8220
|
-
var xorwow = __webpack_require__(
|
|
7828
|
+
var xorwow = __webpack_require__(13106);
|
|
8221
7829
|
|
|
8222
7830
|
// xorshift7, by François Panneton and Pierre L'ecuyer, takes
|
|
8223
7831
|
// a different approach: it adds robustness by allowing more shifts
|
|
@@ -8225,7 +7833,7 @@ var xorwow = __webpack_require__(48377);
|
|
|
8225
7833
|
// with 256 bits, that passes BigCrush with no systmatic failures.
|
|
8226
7834
|
// Period 2^256-1.
|
|
8227
7835
|
// No systematic BigCrush failures reported.
|
|
8228
|
-
var xorshift7 = __webpack_require__(
|
|
7836
|
+
var xorshift7 = __webpack_require__(67516);
|
|
8229
7837
|
|
|
8230
7838
|
// xor4096, by Richard Brent, is a 4096-bit xor-shift with a
|
|
8231
7839
|
// very long period that also adds a Weyl generator. It also passes
|
|
@@ -8234,18 +7842,18 @@ var xorshift7 = __webpack_require__(52161);
|
|
|
8234
7842
|
// collisions.
|
|
8235
7843
|
// Period: 2^4128-2^32.
|
|
8236
7844
|
// No systematic BigCrush failures reported.
|
|
8237
|
-
var xor4096 = __webpack_require__(
|
|
7845
|
+
var xor4096 = __webpack_require__(89155);
|
|
8238
7846
|
|
|
8239
7847
|
// Tyche-i, by Samuel Neves and Filipe Araujo, is a bit-shifting random
|
|
8240
7848
|
// number generator derived from ChaCha, a modern stream cipher.
|
|
8241
7849
|
// https://eden.dei.uc.pt/~sneves/pubs/2011-snfa2.pdf
|
|
8242
7850
|
// Period: ~2^127
|
|
8243
7851
|
// No systematic BigCrush failures reported.
|
|
8244
|
-
var tychei = __webpack_require__(
|
|
7852
|
+
var tychei = __webpack_require__(8121);
|
|
8245
7853
|
|
|
8246
7854
|
// The original ARC4-based prng included in this library.
|
|
8247
7855
|
// Period: ~2^1600
|
|
8248
|
-
var sr = __webpack_require__(
|
|
7856
|
+
var sr = __webpack_require__(15570);
|
|
8249
7857
|
|
|
8250
7858
|
sr.alea = alea;
|
|
8251
7859
|
sr.xor128 = xor128;
|
|
@@ -8259,12 +7867,12 @@ module.exports = sr;
|
|
|
8259
7867
|
|
|
8260
7868
|
/***/ }),
|
|
8261
7869
|
|
|
8262
|
-
/***/
|
|
7870
|
+
/***/ 28635:
|
|
8263
7871
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8264
7872
|
|
|
8265
7873
|
"use strict";
|
|
8266
7874
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8267
|
-
/* harmony export */
|
|
7875
|
+
/* harmony export */ Jj: () => (/* binding */ expose)
|
|
8268
7876
|
/* harmony export */ });
|
|
8269
7877
|
/* unused harmony exports createEndpoint, finalizer, proxy, proxyMarker, releaseProxy, transfer, transferHandlers, windowEndpoint, wrap */
|
|
8270
7878
|
/**
|