@ohif/app 3.14.0-beta.98 → 3.14.0-beta.99
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.a98b9ca6.js → 1645.bundle.1a466b16.js} +600 -600
- package/dist/{1788.bundle.3f1349d2.js → 1788.bundle.962951f9.js} +26 -26
- package/dist/{1793.bundle.27458a55.js → 1793.bundle.30f89e46.js} +5 -3
- package/dist/{1862.bundle.79bfe469.js → 1862.bundle.3ae388c3.js} +2 -2
- package/dist/204.bundle.bc44c201.js +101 -0
- package/dist/204.bundle.css +52 -0
- package/dist/{2748.bundle.eaa94e2e.js → 2103.bundle.1cf348e8.js} +1 -1771
- package/dist/{2478.bundle.fc6ab30b.js → 2478.bundle.68ff1b2d.js} +2 -2
- package/dist/{2717.bundle.d5f58443.js → 2717.bundle.4318f1ee.js} +45 -43
- package/dist/{5989.bundle.f484884a.js → 287.bundle.ee60c370.js} +4570 -832
- package/dist/{2894.bundle.d612efb2.js → 2894.bundle.30c0af5b.js} +20 -14
- package/dist/{2991.bundle.f94892fb.js → 2991.bundle.77642eee.js} +101 -97
- package/dist/{3004.bundle.51919fdc.js → 3004.bundle.5568149a.js} +39 -38
- package/dist/{3255.bundle.13e205ac.js → 3255.bundle.3272671f.js} +29 -27
- package/dist/{3366.bundle.62baeeec.js → 3366.bundle.d9e78e25.js} +57 -53
- package/dist/{3468.bundle.f5dc5e44.js → 3468.bundle.666f2441.js} +37 -27
- package/dist/{347.bundle.397bb252.js → 347.bundle.1323658e.js} +44 -44
- package/dist/{3622.bundle.f4cf2d16.js → 3622.bundle.edb42b96.js} +56 -54
- package/dist/{3723.bundle.eab70100.js → 3723.bundle.43ff1971.js} +1 -1
- package/dist/{3771.bundle.aba09bd7.js → 3771.bundle.a5754f97.js} +8 -8
- package/dist/{4449.bundle.aaa4ab92.js → 4487.bundle.fa0375a4.js} +853 -95
- package/dist/{4606.bundle.a3485206.js → 4606.bundle.6c297e2a.js} +9 -7
- package/dist/{4998.bundle.3aedb48d.js → 4998.bundle.25b8cbfe.js} +5 -3
- package/dist/{5076.bundle.95c07142.js → 5076.bundle.2a14756f.js} +66 -66
- package/dist/{5143.bundle.04f54c00.js → 5143.bundle.53156bb0.js} +358 -226
- package/dist/{5154.bundle.2f460017.js → 5154.bundle.ccd02dd7.js} +5 -3
- package/dist/{5320.bundle.9b05cebb.js → 5320.bundle.c17eb4a7.js} +678 -546
- package/dist/{6212.bundle.e505e123.js → 6212.bundle.c4856be7.js} +48 -46
- package/dist/{6253.bundle.f74ac5c2.js → 6253.bundle.596ce463.js} +1225 -1145
- package/dist/{1153.bundle.51d39e80.js → 6314.bundle.5aadfe48.js} +199 -420
- package/dist/{641.bundle.4627a8e1.js → 641.bundle.8e45751e.js} +89 -89
- package/dist/{6481.bundle.d2fca485.js → 6481.bundle.85093e70.js} +29 -23
- package/dist/{6507.bundle.d52f5e81.js → 6507.bundle.bbcdd01e.js} +76 -76
- package/dist/{6722.bundle.d09a8aad.js → 6722.bundle.3e9a4ef6.js} +4 -4
- package/dist/{6956.bundle.c82fd790.js → 6956.bundle.dc0e8660.js} +33 -33
- package/dist/{7526.bundle.0685dfeb.js → 7526.bundle.3460c3ca.js} +55 -53
- package/dist/{7604.bundle.9eb317c8.js → 7604.bundle.f1eeded4.js} +2 -2
- package/dist/{8312.bundle.2cb75b58.js → 8312.bundle.d67b6f4e.js} +652 -687
- package/dist/{6847.bundle.b2adb444.js → 8729.bundle.e17fe9b2.js} +87 -845
- package/dist/{8788.bundle.4bb4c65b.js → 8788.bundle.83ddf642.js} +21 -20
- package/dist/{8868.bundle.4c357767.js → 8868.bundle.8f3653b3.js} +31 -31
- package/dist/{8923.bundle.9aca06c4.js → 8923.bundle.8b682e96.js} +148 -148
- package/dist/{899.bundle.9a033d16.js → 899.bundle.4e1aee7f.js} +73 -203
- package/dist/{9187.bundle.8f72b4fe.js → 9187.bundle.407afa07.js} +112 -110
- package/dist/9385.bundle.fb0bbf4a.js +1888 -0
- package/dist/{9481.bundle.ccb81f53.js → 9481.bundle.d045ae3a.js} +8 -6
- package/dist/{9517.bundle.1ae74db3.js → 9517.bundle.3e2896ef.js} +31 -17
- package/dist/{9620.bundle.d1dc0be1.js → 9620.bundle.b4cc392c.js} +63 -61
- package/dist/{9841.bundle.0f40f02b.js → 9841.bundle.4f2c401a.js} +93 -91
- package/dist/{9886.bundle.cabb4a24.js → 9886.bundle.b00d5d78.js} +4 -4
- package/dist/{8037.bundle.30a187f7.js → 9889.bundle.bf312047.js} +7743 -1098
- package/dist/{9948.bundle.1172ebca.js → 9948.bundle.fecf81f8.js} +5 -5
- package/dist/{app.bundle.51f0a437.js → app.bundle.bb359653.js} +1926 -1223
- package/dist/{compute.bundle.0ed1fe87.js → compute.bundle.9267d449.js} +13 -12
- package/dist/{histogram-worker.bundle.58e60d7c.js → histogram-worker.bundle.29bcdbf6.js} +6 -5
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.5a53d112.js → interpolation.bundle.ee9998a4.js} +8 -7
- package/dist/{lib-router.bundle.a5ac870a.js → lib-router.bundle.2a887bc7.js} +334 -201
- package/dist/{polySeg.bundle.b4089601.js → polySeg.bundle.a55f8eee.js} +12 -12
- package/dist/sw.js +11 -1
- package/package.json +14 -19
- package/dist/1566.bundle.d58db206.js +0 -3610
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(globalThis["rspackChunk_ohif_app"] ||= []).push([[4606], {
|
|
3
3
|
4893(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
4
|
+
// ESM COMPAT FLAG
|
|
5
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4
6
|
|
|
5
7
|
// EXPORTS
|
|
6
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -32,8 +34,8 @@ var esm = __webpack_require__(17819);
|
|
|
32
34
|
var dcmjs_es = __webpack_require__(85631);
|
|
33
35
|
;// CONCATENATED MODULE: ../../extensions/cornerstone-dicom-rt/src/loadRTStruct.js
|
|
34
36
|
|
|
35
|
-
const { DicomMessage, DicomMetaDictionary } = dcmjs_es
|
|
36
|
-
const dicomlab2RGB = dcmjs_es
|
|
37
|
+
const { DicomMessage, DicomMetaDictionary } = dcmjs_es["default"].data;
|
|
38
|
+
const dicomlab2RGB = dcmjs_es["default"].data.Colors.dicomlab2RGB; /**
|
|
37
39
|
* Checks and loads contour data for RT Structure Set, handling both inline and bulk data URIs.
|
|
38
40
|
* Processes ROIContourSequence to extract contour data and resolve any bulk data references.
|
|
39
41
|
*
|
|
@@ -357,7 +359,7 @@ function _toArray(objOrArray) {
|
|
|
357
359
|
|
|
358
360
|
|
|
359
361
|
|
|
360
|
-
const { sopClassDictionary } = src
|
|
362
|
+
const { sopClassDictionary } = src.utils;
|
|
361
363
|
const sopClassUids = [
|
|
362
364
|
sopClassDictionary.RTStructureSetStorage
|
|
363
365
|
];
|
|
@@ -370,7 +372,7 @@ const loadPromises = {}; /**
|
|
|
370
372
|
*/
|
|
371
373
|
function _extendDisplaySet(displaySet, { servicesManager, extensionManager }) {
|
|
372
374
|
const { instances } = displaySet;
|
|
373
|
-
src
|
|
375
|
+
src.utils.sortStudyInstances(instances); // Choose the LAST instance in the list as the most recently created one.
|
|
374
376
|
const instance = instances[instances.length - 1];
|
|
375
377
|
const { StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID, SeriesDescription = '', SeriesNumber, SOPClassUID, wadoRoot, wadoUri, wadoUriRoot, imageId: predecessorImageId } = instance; /**
|
|
376
378
|
* The "SeriesDate" for a display set is really the display set date, which
|
|
@@ -378,7 +380,7 @@ function _extendDisplaySet(displaySet, { servicesManager, extensionManager }) {
|
|
|
378
380
|
* usually the structure set date/time, and for one saved into an existing
|
|
379
381
|
* series only the instance level date/time reflects the save.
|
|
380
382
|
*/
|
|
381
|
-
const { SeriesDate, SeriesTime } = src
|
|
383
|
+
const { SeriesDate, SeriesTime } = src.utils.getLatestInstanceDateTime(instance);
|
|
382
384
|
Object.assign(displaySet, {
|
|
383
385
|
Modality: 'RTSTRUCT',
|
|
384
386
|
loading: false,
|
|
@@ -407,7 +409,7 @@ function _extendDisplaySet(displaySet, { servicesManager, extensionManager }) {
|
|
|
407
409
|
wadoUriRoot,
|
|
408
410
|
wadoUri,
|
|
409
411
|
isOverlayDisplaySet: true,
|
|
410
|
-
label: SeriesDescription || `${i18n_src
|
|
412
|
+
label: SeriesDescription || `${i18n_src["default"].t('Series')} ${SeriesNumber} - ${i18n_src["default"].t('RTSTRUCT')}`
|
|
411
413
|
});
|
|
412
414
|
let referencedSeriesSequence = instance.ReferencedSeriesSequence;
|
|
413
415
|
if (instance.ReferencedFrameOfReferenceSequence?.RTReferencedStudySequence && !instance.ReferencedSeriesSequence) {
|
|
@@ -448,7 +450,7 @@ function _extendDisplaySet(displaySet, { servicesManager, extensionManager }) {
|
|
|
448
450
|
}
|
|
449
451
|
function _getDisplaySetsFromSeries(instances, servicesManager, extensionManager) {
|
|
450
452
|
const displaySet = {
|
|
451
|
-
displaySetInstanceUID: src
|
|
453
|
+
displaySetInstanceUID: src.utils.guid(),
|
|
452
454
|
instances
|
|
453
455
|
};
|
|
454
456
|
if (!_extendDisplaySet(displaySet, {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(globalThis["rspackChunk_ohif_app"] ||= []).push([[4998], {
|
|
3
3
|
50613(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
4
|
+
// ESM COMPAT FLAG
|
|
5
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4
6
|
|
|
5
7
|
// EXPORTS
|
|
6
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -319,7 +321,7 @@ const getDocumentFields = (instance)=>{
|
|
|
319
321
|
const { SeriesDescription = 'PDF', MIMETypeOfEncapsulatedDocument } = instance;
|
|
320
322
|
const { SeriesNumber, SOPClassUID } = instance; // The date/time of a display set is the date/time of the instance it shows,
|
|
321
323
|
// chosen from all the attributes that instance carries.
|
|
322
|
-
const { SeriesDate, SeriesTime } = src
|
|
324
|
+
const { SeriesDate, SeriesTime } = src.utils.getLatestInstanceDateTime(instance); // The declared type is only a claim. It is resolved against the displayable
|
|
323
325
|
// type allowlist, and the payload is re-wrapped in a Blob of the canonical
|
|
324
326
|
// type, so the instance cannot steer how the browser parses the document.
|
|
325
327
|
const mimeType = normalizeDocumentMimeType(MIMETypeOfEncapsulatedDocument) || 'application/pdf';
|
|
@@ -350,7 +352,7 @@ const getDocumentFields = (instance)=>{
|
|
|
350
352
|
numInstances: 1,
|
|
351
353
|
instance,
|
|
352
354
|
supportsWindowLevel: true,
|
|
353
|
-
label: SeriesDescription || `${i18n_src
|
|
355
|
+
label: SeriesDescription || `${i18n_src["default"].t('Series')} ${SeriesNumber} - ${i18n_src["default"].t(Modality)}`
|
|
354
356
|
};
|
|
355
357
|
};
|
|
356
358
|
const _getDisplaySetsFromSeries = (instances)=>{
|
|
@@ -358,7 +360,7 @@ const _getDisplaySetsFromSeries = (instances)=>{
|
|
|
358
360
|
const { SeriesInstanceUID, StudyInstanceUID } = instance;
|
|
359
361
|
return {
|
|
360
362
|
...getDocumentFields(instance),
|
|
361
|
-
displaySetInstanceUID: src
|
|
363
|
+
displaySetInstanceUID: src.utils.guid(),
|
|
362
364
|
SeriesInstanceUID,
|
|
363
365
|
StudyInstanceUID,
|
|
364
366
|
instances: [
|
|
@@ -16,9 +16,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
function create() {
|
|
19
|
-
var out = new _common_js__rspack_import_0
|
|
19
|
+
var out = new _common_js__rspack_import_0.ARRAY_TYPE(16);
|
|
20
20
|
|
|
21
|
-
if (_common_js__rspack_import_0
|
|
21
|
+
if (_common_js__rspack_import_0.ARRAY_TYPE != Float32Array) {
|
|
22
22
|
out[1] = 0;
|
|
23
23
|
out[2] = 0;
|
|
24
24
|
out[3] = 0;
|
|
@@ -47,7 +47,7 @@ function create() {
|
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
49
|
function clone(a) {
|
|
50
|
-
var out = new _common_js__rspack_import_0
|
|
50
|
+
var out = new _common_js__rspack_import_0.ARRAY_TYPE(16);
|
|
51
51
|
out[0] = a[0];
|
|
52
52
|
out[1] = a[1];
|
|
53
53
|
out[2] = a[2];
|
|
@@ -116,7 +116,7 @@ function copy(out, a) {
|
|
|
116
116
|
*/
|
|
117
117
|
|
|
118
118
|
function fromValues(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) {
|
|
119
|
-
var out = new _common_js__rspack_import_0
|
|
119
|
+
var out = new _common_js__rspack_import_0.ARRAY_TYPE(16);
|
|
120
120
|
out[0] = m00;
|
|
121
121
|
out[1] = m01;
|
|
122
122
|
out[2] = m02;
|
|
@@ -568,7 +568,7 @@ function rotate(out, a, rad, axis) {
|
|
|
568
568
|
var b10, b11, b12;
|
|
569
569
|
var b20, b21, b22;
|
|
570
570
|
|
|
571
|
-
if (len < _common_js__rspack_import_0
|
|
571
|
+
if (len < _common_js__rspack_import_0.EPSILON) {
|
|
572
572
|
return null;
|
|
573
573
|
}
|
|
574
574
|
|
|
@@ -839,7 +839,7 @@ function fromRotation(out, rad, axis) {
|
|
|
839
839
|
var len = Math.hypot(x, y, z);
|
|
840
840
|
var s, c, t;
|
|
841
841
|
|
|
842
|
-
if (len < _common_js__rspack_import_0
|
|
842
|
+
if (len < _common_js__rspack_import_0.EPSILON) {
|
|
843
843
|
return null;
|
|
844
844
|
}
|
|
845
845
|
|
|
@@ -1032,7 +1032,7 @@ function fromRotationTranslation(out, q, v) {
|
|
|
1032
1032
|
*/
|
|
1033
1033
|
|
|
1034
1034
|
function fromQuat2(out, a) {
|
|
1035
|
-
var translation = new _common_js__rspack_import_0
|
|
1035
|
+
var translation = new _common_js__rspack_import_0.ARRAY_TYPE(3);
|
|
1036
1036
|
var bx = -a[0],
|
|
1037
1037
|
by = -a[1],
|
|
1038
1038
|
bz = -a[2],
|
|
@@ -1109,7 +1109,7 @@ function getScaling(out, mat) {
|
|
|
1109
1109
|
*/
|
|
1110
1110
|
|
|
1111
1111
|
function getRotation(out, mat) {
|
|
1112
|
-
var scaling = new _common_js__rspack_import_0
|
|
1112
|
+
var scaling = new _common_js__rspack_import_0.ARRAY_TYPE(3);
|
|
1113
1113
|
getScaling(scaling, mat);
|
|
1114
1114
|
var is1 = 1 / scaling[0];
|
|
1115
1115
|
var is2 = 1 / scaling[1];
|
|
@@ -1594,7 +1594,7 @@ function lookAt(out, eye, center, up) {
|
|
|
1594
1594
|
var centery = center[1];
|
|
1595
1595
|
var centerz = center[2];
|
|
1596
1596
|
|
|
1597
|
-
if (Math.abs(eyex - centerx) < _common_js__rspack_import_0
|
|
1597
|
+
if (Math.abs(eyex - centerx) < _common_js__rspack_import_0.EPSILON && Math.abs(eyey - centery) < _common_js__rspack_import_0.EPSILON && Math.abs(eyez - centerz) < _common_js__rspack_import_0.EPSILON) {
|
|
1598
1598
|
return identity(out);
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
@@ -1899,7 +1899,7 @@ function equals(a, b) {
|
|
|
1899
1899
|
b13 = b[13],
|
|
1900
1900
|
b14 = b[14],
|
|
1901
1901
|
b15 = b[15];
|
|
1902
|
-
return Math.abs(a0 - b0) <= _common_js__rspack_import_0
|
|
1902
|
+
return Math.abs(a0 - b0) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)) && Math.abs(a9 - b9) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a9), Math.abs(b9)) && Math.abs(a10 - b10) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a10), Math.abs(b10)) && Math.abs(a11 - b11) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a11), Math.abs(b11)) && Math.abs(a12 - b12) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a12), Math.abs(b12)) && Math.abs(a13 - b13) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a13), Math.abs(b13)) && Math.abs(a14 - b14) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a14), Math.abs(b14)) && Math.abs(a15 - b15) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a15), Math.abs(b15));
|
|
1903
1903
|
}
|
|
1904
1904
|
/**
|
|
1905
1905
|
* Alias for {@link mat4.multiply}
|
|
@@ -1990,9 +1990,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1990
1990
|
*/
|
|
1991
1991
|
|
|
1992
1992
|
function create() {
|
|
1993
|
-
var out = new _common_js__rspack_import_0
|
|
1993
|
+
var out = new _common_js__rspack_import_0.ARRAY_TYPE(4);
|
|
1994
1994
|
|
|
1995
|
-
if (_common_js__rspack_import_0
|
|
1995
|
+
if (_common_js__rspack_import_0.ARRAY_TYPE != Float32Array) {
|
|
1996
1996
|
out[0] = 0;
|
|
1997
1997
|
out[1] = 0;
|
|
1998
1998
|
out[2] = 0;
|
|
@@ -2052,7 +2052,7 @@ function getAxisAngle(out_axis, q) {
|
|
|
2052
2052
|
var rad = Math.acos(q[3]) * 2.0;
|
|
2053
2053
|
var s = Math.sin(rad / 2.0);
|
|
2054
2054
|
|
|
2055
|
-
if (s > _common_js__rspack_import_0
|
|
2055
|
+
if (s > _common_js__rspack_import_0.EPSILON) {
|
|
2056
2056
|
out_axis[0] = q[0] / s;
|
|
2057
2057
|
out_axis[1] = q[1] / s;
|
|
2058
2058
|
out_axis[2] = q[2] / s;
|
|
@@ -2282,7 +2282,7 @@ function slerp(out, a, b, t) {
|
|
|
2282
2282
|
} // calculate coefficients
|
|
2283
2283
|
|
|
2284
2284
|
|
|
2285
|
-
if (1.0 - cosom > _common_js__rspack_import_0
|
|
2285
|
+
if (1.0 - cosom > _common_js__rspack_import_0.EPSILON) {
|
|
2286
2286
|
// standard case (slerp)
|
|
2287
2287
|
omega = Math.acos(cosom);
|
|
2288
2288
|
sinom = Math.sin(omega);
|
|
@@ -2452,7 +2452,7 @@ function str(a) {
|
|
|
2452
2452
|
* @function
|
|
2453
2453
|
*/
|
|
2454
2454
|
|
|
2455
|
-
var clone = _vec4_js__rspack_import_3
|
|
2455
|
+
var clone = _vec4_js__rspack_import_3.clone;
|
|
2456
2456
|
/**
|
|
2457
2457
|
* Creates a new quat initialized with the given values
|
|
2458
2458
|
*
|
|
@@ -2464,7 +2464,7 @@ var clone = _vec4_js__rspack_import_3/* .clone */.o8;
|
|
|
2464
2464
|
* @function
|
|
2465
2465
|
*/
|
|
2466
2466
|
|
|
2467
|
-
var fromValues = _vec4_js__rspack_import_3
|
|
2467
|
+
var fromValues = _vec4_js__rspack_import_3.fromValues;
|
|
2468
2468
|
/**
|
|
2469
2469
|
* Copy the values from one quat to another
|
|
2470
2470
|
*
|
|
@@ -2474,7 +2474,7 @@ var fromValues = _vec4_js__rspack_import_3/* .fromValues */.fA;
|
|
|
2474
2474
|
* @function
|
|
2475
2475
|
*/
|
|
2476
2476
|
|
|
2477
|
-
var copy = _vec4_js__rspack_import_3
|
|
2477
|
+
var copy = _vec4_js__rspack_import_3.copy;
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Set the components of a quat to the given values
|
|
2480
2480
|
*
|
|
@@ -2487,7 +2487,7 @@ var copy = _vec4_js__rspack_import_3/* .copy */.C;
|
|
|
2487
2487
|
* @function
|
|
2488
2488
|
*/
|
|
2489
2489
|
|
|
2490
|
-
var set = _vec4_js__rspack_import_3
|
|
2490
|
+
var set = _vec4_js__rspack_import_3.set;
|
|
2491
2491
|
/**
|
|
2492
2492
|
* Adds two quat's
|
|
2493
2493
|
*
|
|
@@ -2498,7 +2498,7 @@ var set = _vec4_js__rspack_import_3/* .set */.hZ;
|
|
|
2498
2498
|
* @function
|
|
2499
2499
|
*/
|
|
2500
2500
|
|
|
2501
|
-
var add = _vec4_js__rspack_import_3
|
|
2501
|
+
var add = _vec4_js__rspack_import_3.add;
|
|
2502
2502
|
/**
|
|
2503
2503
|
* Alias for {@link quat.multiply}
|
|
2504
2504
|
* @function
|
|
@@ -2515,7 +2515,7 @@ var mul = (/* unused pure expression or super */ null && (multiply));
|
|
|
2515
2515
|
* @function
|
|
2516
2516
|
*/
|
|
2517
2517
|
|
|
2518
|
-
var scale = _vec4_js__rspack_import_3
|
|
2518
|
+
var scale = _vec4_js__rspack_import_3.scale;
|
|
2519
2519
|
/**
|
|
2520
2520
|
* Calculates the dot product of two quat's
|
|
2521
2521
|
*
|
|
@@ -2525,7 +2525,7 @@ var scale = _vec4_js__rspack_import_3/* .scale */.hs;
|
|
|
2525
2525
|
* @function
|
|
2526
2526
|
*/
|
|
2527
2527
|
|
|
2528
|
-
var dot = _vec4_js__rspack_import_3
|
|
2528
|
+
var dot = _vec4_js__rspack_import_3.dot;
|
|
2529
2529
|
/**
|
|
2530
2530
|
* Performs a linear interpolation between two quat's
|
|
2531
2531
|
*
|
|
@@ -2537,7 +2537,7 @@ var dot = _vec4_js__rspack_import_3/* .dot */.Om;
|
|
|
2537
2537
|
* @function
|
|
2538
2538
|
*/
|
|
2539
2539
|
|
|
2540
|
-
var lerp = _vec4_js__rspack_import_3
|
|
2540
|
+
var lerp = _vec4_js__rspack_import_3.lerp;
|
|
2541
2541
|
/**
|
|
2542
2542
|
* Calculates the length of a quat
|
|
2543
2543
|
*
|
|
@@ -2545,7 +2545,7 @@ var lerp = _vec4_js__rspack_import_3/* .lerp */.Cc;
|
|
|
2545
2545
|
* @returns {Number} length of a
|
|
2546
2546
|
*/
|
|
2547
2547
|
|
|
2548
|
-
var length = _vec4_js__rspack_import_3
|
|
2548
|
+
var length = _vec4_js__rspack_import_3.length;
|
|
2549
2549
|
/**
|
|
2550
2550
|
* Alias for {@link quat.length}
|
|
2551
2551
|
* @function
|
|
@@ -2560,7 +2560,7 @@ var len = (/* unused pure expression or super */ null && (length));
|
|
|
2560
2560
|
* @function
|
|
2561
2561
|
*/
|
|
2562
2562
|
|
|
2563
|
-
var squaredLength = _vec4_js__rspack_import_3
|
|
2563
|
+
var squaredLength = _vec4_js__rspack_import_3.squaredLength;
|
|
2564
2564
|
/**
|
|
2565
2565
|
* Alias for {@link quat.squaredLength}
|
|
2566
2566
|
* @function
|
|
@@ -2576,7 +2576,7 @@ var sqrLen = (/* unused pure expression or super */ null && (squaredLength));
|
|
|
2576
2576
|
* @function
|
|
2577
2577
|
*/
|
|
2578
2578
|
|
|
2579
|
-
var normalize = _vec4_js__rspack_import_3
|
|
2579
|
+
var normalize = _vec4_js__rspack_import_3.normalize;
|
|
2580
2580
|
/**
|
|
2581
2581
|
* Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===)
|
|
2582
2582
|
*
|
|
@@ -2585,7 +2585,7 @@ var normalize = _vec4_js__rspack_import_3/* .normalize */.S8;
|
|
|
2585
2585
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
2586
2586
|
*/
|
|
2587
2587
|
|
|
2588
|
-
var exactEquals = _vec4_js__rspack_import_3
|
|
2588
|
+
var exactEquals = _vec4_js__rspack_import_3.exactEquals;
|
|
2589
2589
|
/**
|
|
2590
2590
|
* Returns whether or not the quaternions have approximately the same elements in the same position.
|
|
2591
2591
|
*
|
|
@@ -2594,7 +2594,7 @@ var exactEquals = _vec4_js__rspack_import_3/* .exactEquals */.t2;
|
|
|
2594
2594
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
2595
2595
|
*/
|
|
2596
2596
|
|
|
2597
|
-
var equals = _vec4_js__rspack_import_3
|
|
2597
|
+
var equals = _vec4_js__rspack_import_3.equals;
|
|
2598
2598
|
/**
|
|
2599
2599
|
* Sets a quaternion to represent the shortest rotation from one
|
|
2600
2600
|
* vector to another.
|
|
@@ -2608,16 +2608,16 @@ var equals = _vec4_js__rspack_import_3/* .equals */.aI;
|
|
|
2608
2608
|
*/
|
|
2609
2609
|
|
|
2610
2610
|
var rotationTo = function () {
|
|
2611
|
-
var tmpvec3 = _vec3_js__rspack_import_2
|
|
2612
|
-
var xUnitVec3 = _vec3_js__rspack_import_2
|
|
2613
|
-
var yUnitVec3 = _vec3_js__rspack_import_2
|
|
2611
|
+
var tmpvec3 = _vec3_js__rspack_import_2.create();
|
|
2612
|
+
var xUnitVec3 = _vec3_js__rspack_import_2.fromValues(1, 0, 0);
|
|
2613
|
+
var yUnitVec3 = _vec3_js__rspack_import_2.fromValues(0, 1, 0);
|
|
2614
2614
|
return function (out, a, b) {
|
|
2615
|
-
var dot = _vec3_js__rspack_import_2
|
|
2615
|
+
var dot = _vec3_js__rspack_import_2.dot(a, b);
|
|
2616
2616
|
|
|
2617
2617
|
if (dot < -0.999999) {
|
|
2618
|
-
_vec3_js__rspack_import_2
|
|
2619
|
-
if (_vec3_js__rspack_import_2
|
|
2620
|
-
_vec3_js__rspack_import_2
|
|
2618
|
+
_vec3_js__rspack_import_2.cross(tmpvec3, xUnitVec3, a);
|
|
2619
|
+
if (_vec3_js__rspack_import_2.len(tmpvec3) < 0.000001) _vec3_js__rspack_import_2.cross(tmpvec3, yUnitVec3, a);
|
|
2620
|
+
_vec3_js__rspack_import_2.normalize(tmpvec3, tmpvec3);
|
|
2621
2621
|
setAxisAngle(out, tmpvec3, Math.PI);
|
|
2622
2622
|
return out;
|
|
2623
2623
|
} else if (dot > 0.999999) {
|
|
@@ -2627,7 +2627,7 @@ var rotationTo = function () {
|
|
|
2627
2627
|
out[3] = 1;
|
|
2628
2628
|
return out;
|
|
2629
2629
|
} else {
|
|
2630
|
-
_vec3_js__rspack_import_2
|
|
2630
|
+
_vec3_js__rspack_import_2.cross(tmpvec3, a, b);
|
|
2631
2631
|
out[0] = tmpvec3[0];
|
|
2632
2632
|
out[1] = tmpvec3[1];
|
|
2633
2633
|
out[2] = tmpvec3[2];
|
|
@@ -2685,17 +2685,17 @@ var setAxes = function () {
|
|
|
2685
2685
|
};
|
|
2686
2686
|
}();
|
|
2687
2687
|
__webpack_require__.d(__webpack_exports__, {
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2688
|
+
conjugate: () => (conjugate),
|
|
2689
|
+
copy: () => (copy),
|
|
2690
|
+
create: () => (create),
|
|
2691
|
+
dot: () => (dot),
|
|
2692
|
+
fromValues: () => (fromValues),
|
|
2693
|
+
getAxisAngle: () => (getAxisAngle),
|
|
2694
|
+
length: () => (length),
|
|
2695
|
+
multiply: () => (multiply),
|
|
2696
|
+
setAxisAngle: () => (setAxisAngle),
|
|
2697
|
+
slerp: () => (slerp),
|
|
2698
|
+
squaredLength: () => (squaredLength)
|
|
2699
2699
|
});
|
|
2700
2700
|
|
|
2701
2701
|
|
|
@@ -2715,9 +2715,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2715
2715
|
*/
|
|
2716
2716
|
|
|
2717
2717
|
function create() {
|
|
2718
|
-
var out = new _common_js__rspack_import_0
|
|
2718
|
+
var out = new _common_js__rspack_import_0.ARRAY_TYPE(4);
|
|
2719
2719
|
|
|
2720
|
-
if (_common_js__rspack_import_0
|
|
2720
|
+
if (_common_js__rspack_import_0.ARRAY_TYPE != Float32Array) {
|
|
2721
2721
|
out[0] = 0;
|
|
2722
2722
|
out[1] = 0;
|
|
2723
2723
|
out[2] = 0;
|
|
@@ -2734,7 +2734,7 @@ function create() {
|
|
|
2734
2734
|
*/
|
|
2735
2735
|
|
|
2736
2736
|
function clone(a) {
|
|
2737
|
-
var out = new _common_js__rspack_import_0
|
|
2737
|
+
var out = new _common_js__rspack_import_0.ARRAY_TYPE(4);
|
|
2738
2738
|
out[0] = a[0];
|
|
2739
2739
|
out[1] = a[1];
|
|
2740
2740
|
out[2] = a[2];
|
|
@@ -2752,7 +2752,7 @@ function clone(a) {
|
|
|
2752
2752
|
*/
|
|
2753
2753
|
|
|
2754
2754
|
function fromValues(x, y, z, w) {
|
|
2755
|
-
var out = new _common_js__rspack_import_0
|
|
2755
|
+
var out = new _common_js__rspack_import_0.ARRAY_TYPE(4);
|
|
2756
2756
|
out[0] = x;
|
|
2757
2757
|
out[1] = y;
|
|
2758
2758
|
out[2] = z;
|
|
@@ -3274,7 +3274,7 @@ function equals(a, b) {
|
|
|
3274
3274
|
b1 = b[1],
|
|
3275
3275
|
b2 = b[2],
|
|
3276
3276
|
b3 = b[3];
|
|
3277
|
-
return Math.abs(a0 - b0) <= _common_js__rspack_import_0
|
|
3277
|
+
return Math.abs(a0 - b0) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= _common_js__rspack_import_0.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3));
|
|
3278
3278
|
}
|
|
3279
3279
|
/**
|
|
3280
3280
|
* Alias for {@link vec4.subtract}
|
|
@@ -3366,21 +3366,21 @@ var forEach = function () {
|
|
|
3366
3366
|
};
|
|
3367
3367
|
}();
|
|
3368
3368
|
__webpack_require__.d(__webpack_exports__, {
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3369
|
+
add: () => (add),
|
|
3370
|
+
clone: () => (clone),
|
|
3371
|
+
copy: () => (copy),
|
|
3372
|
+
dot: () => (dot),
|
|
3373
|
+
equals: () => (equals),
|
|
3374
|
+
exactEquals: () => (exactEquals),
|
|
3375
|
+
fromValues: () => (fromValues),
|
|
3376
|
+
length: () => (length),
|
|
3377
|
+
lerp: () => (lerp),
|
|
3378
|
+
normalize: () => (normalize),
|
|
3379
|
+
scale: () => (scale),
|
|
3380
|
+
set: () => (set),
|
|
3381
|
+
squaredLength: () => (squaredLength),
|
|
3382
|
+
subtract: () => (subtract),
|
|
3383
|
+
transformMat4: () => (transformMat4)
|
|
3384
3384
|
});
|
|
3385
3385
|
|
|
3386
3386
|
|