@ohif/app 3.14.0-beta.97 → 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.
Files changed (62) hide show
  1. package/dist/{1645.bundle.a98b9ca6.js → 1645.bundle.1a466b16.js} +600 -600
  2. package/dist/{1788.bundle.3f1349d2.js → 1788.bundle.962951f9.js} +26 -26
  3. package/dist/{1793.bundle.27458a55.js → 1793.bundle.30f89e46.js} +5 -3
  4. package/dist/{1862.bundle.79bfe469.js → 1862.bundle.3ae388c3.js} +2 -2
  5. package/dist/204.bundle.bc44c201.js +101 -0
  6. package/dist/204.bundle.css +52 -0
  7. package/dist/{2748.bundle.eaa94e2e.js → 2103.bundle.1cf348e8.js} +1 -1771
  8. package/dist/{2478.bundle.fc6ab30b.js → 2478.bundle.68ff1b2d.js} +2 -2
  9. package/dist/{2717.bundle.d5f58443.js → 2717.bundle.4318f1ee.js} +45 -43
  10. package/dist/{5989.bundle.f484884a.js → 287.bundle.ee60c370.js} +4570 -832
  11. package/dist/{2894.bundle.d612efb2.js → 2894.bundle.30c0af5b.js} +20 -14
  12. package/dist/{2991.bundle.f94892fb.js → 2991.bundle.77642eee.js} +101 -97
  13. package/dist/{3004.bundle.51919fdc.js → 3004.bundle.5568149a.js} +39 -38
  14. package/dist/{3255.bundle.13e205ac.js → 3255.bundle.3272671f.js} +29 -27
  15. package/dist/{3366.bundle.62baeeec.js → 3366.bundle.d9e78e25.js} +57 -53
  16. package/dist/{3468.bundle.f5dc5e44.js → 3468.bundle.666f2441.js} +37 -27
  17. package/dist/{347.bundle.397bb252.js → 347.bundle.1323658e.js} +44 -44
  18. package/dist/{3622.bundle.f4cf2d16.js → 3622.bundle.edb42b96.js} +56 -54
  19. package/dist/{3723.bundle.eab70100.js → 3723.bundle.43ff1971.js} +1 -1
  20. package/dist/{3771.bundle.aba09bd7.js → 3771.bundle.a5754f97.js} +8 -8
  21. package/dist/{4449.bundle.aaa4ab92.js → 4487.bundle.fa0375a4.js} +853 -95
  22. package/dist/{4606.bundle.a3485206.js → 4606.bundle.6c297e2a.js} +9 -7
  23. package/dist/{4998.bundle.3aedb48d.js → 4998.bundle.25b8cbfe.js} +5 -3
  24. package/dist/{5076.bundle.95c07142.js → 5076.bundle.2a14756f.js} +66 -66
  25. package/dist/{5143.bundle.04f54c00.js → 5143.bundle.53156bb0.js} +358 -226
  26. package/dist/{5154.bundle.2f460017.js → 5154.bundle.ccd02dd7.js} +5 -3
  27. package/dist/{5320.bundle.9b05cebb.js → 5320.bundle.c17eb4a7.js} +678 -546
  28. package/dist/{6212.bundle.e505e123.js → 6212.bundle.c4856be7.js} +48 -46
  29. package/dist/{6253.bundle.9b473339.js → 6253.bundle.596ce463.js} +1225 -1145
  30. package/dist/{1153.bundle.51d39e80.js → 6314.bundle.5aadfe48.js} +199 -420
  31. package/dist/{641.bundle.4627a8e1.js → 641.bundle.8e45751e.js} +89 -89
  32. package/dist/{6481.bundle.d2fca485.js → 6481.bundle.85093e70.js} +29 -23
  33. package/dist/{6507.bundle.d52f5e81.js → 6507.bundle.bbcdd01e.js} +76 -76
  34. package/dist/{6722.bundle.d09a8aad.js → 6722.bundle.3e9a4ef6.js} +4 -4
  35. package/dist/{6956.bundle.c82fd790.js → 6956.bundle.dc0e8660.js} +33 -33
  36. package/dist/{7526.bundle.0685dfeb.js → 7526.bundle.3460c3ca.js} +55 -53
  37. package/dist/{7604.bundle.9eb317c8.js → 7604.bundle.f1eeded4.js} +2 -2
  38. package/dist/{8312.bundle.2cb75b58.js → 8312.bundle.d67b6f4e.js} +652 -687
  39. package/dist/{6847.bundle.b2adb444.js → 8729.bundle.e17fe9b2.js} +87 -845
  40. package/dist/{8788.bundle.4bb4c65b.js → 8788.bundle.83ddf642.js} +21 -20
  41. package/dist/{8868.bundle.4c357767.js → 8868.bundle.8f3653b3.js} +31 -31
  42. package/dist/{8923.bundle.9aca06c4.js → 8923.bundle.8b682e96.js} +148 -148
  43. package/dist/{899.bundle.9a033d16.js → 899.bundle.4e1aee7f.js} +73 -203
  44. package/dist/{9187.bundle.8f72b4fe.js → 9187.bundle.407afa07.js} +112 -110
  45. package/dist/9385.bundle.fb0bbf4a.js +1888 -0
  46. package/dist/{9481.bundle.ccb81f53.js → 9481.bundle.d045ae3a.js} +8 -6
  47. package/dist/{9517.bundle.1ae74db3.js → 9517.bundle.3e2896ef.js} +31 -17
  48. package/dist/{9620.bundle.d1dc0be1.js → 9620.bundle.b4cc392c.js} +63 -61
  49. package/dist/{9841.bundle.0f40f02b.js → 9841.bundle.4f2c401a.js} +93 -91
  50. package/dist/{9886.bundle.cabb4a24.js → 9886.bundle.b00d5d78.js} +4 -4
  51. package/dist/{8037.bundle.30a187f7.js → 9889.bundle.bf312047.js} +7743 -1098
  52. package/dist/{9948.bundle.1172ebca.js → 9948.bundle.fecf81f8.js} +5 -5
  53. package/dist/{app.bundle.12bfd0b7.js → app.bundle.bb359653.js} +1953 -1245
  54. package/dist/{compute.bundle.0ed1fe87.js → compute.bundle.9267d449.js} +13 -12
  55. package/dist/{histogram-worker.bundle.58e60d7c.js → histogram-worker.bundle.29bcdbf6.js} +6 -5
  56. package/dist/index.html +1 -1
  57. package/dist/{interpolation.bundle.5a53d112.js → interpolation.bundle.ee9998a4.js} +8 -7
  58. package/dist/{lib-router.bundle.a5ac870a.js → lib-router.bundle.2a887bc7.js} +334 -201
  59. package/dist/{polySeg.bundle.b4089601.js → polySeg.bundle.a55f8eee.js} +12 -12
  60. package/dist/sw.js +11 -1
  61. package/package.json +14 -19
  62. package/dist/1566.bundle.d58db206.js +0 -3610
@@ -23194,41 +23194,6 @@ module.exports = reflectGetProto
23194
23194
  : null;
23195
23195
 
23196
23196
 
23197
- },
23198
- 50341(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
23199
- "use strict";
23200
- /* import */ var _common_js__rspack_import_0 = __webpack_require__(23172);
23201
- /* import */ var _mat2_js__rspack_import_1 = __webpack_require__(21589);
23202
- /* import */ var _mat2d_js__rspack_import_2 = __webpack_require__(46245);
23203
- /* import */ var _mat3_js__rspack_import_3 = __webpack_require__(45878);
23204
- /* import */ var _mat4_js__rspack_import_4 = __webpack_require__(39095);
23205
- /* import */ var _quat_js__rspack_import_5 = __webpack_require__(6462);
23206
- /* import */ var _quat2_js__rspack_import_6 = __webpack_require__(8470);
23207
- /* import */ var _vec2_js__rspack_import_7 = __webpack_require__(90333);
23208
- /* import */ var _vec3_js__rspack_import_8 = __webpack_require__(64062);
23209
- /* import */ var _vec4_js__rspack_import_9 = __webpack_require__(70911);
23210
-
23211
-
23212
-
23213
-
23214
-
23215
-
23216
-
23217
-
23218
-
23219
-
23220
-
23221
- __webpack_require__.d(__webpack_exports__, {
23222
- Fd: () => (/* reexport module object */ _common_js__rspack_import_0),
23223
- Yu: () => (/* reexport module object */ _quat_js__rspack_import_5),
23224
- Zc: () => (/* reexport module object */ _vec2_js__rspack_import_7),
23225
- eR: () => (/* reexport module object */ _vec3_js__rspack_import_8),
23226
- ln: () => (/* reexport module object */ _vec4_js__rspack_import_9),
23227
- pB: () => (/* reexport module object */ _mat4_js__rspack_import_4),
23228
- w0: () => (/* reexport module object */ _mat3_js__rspack_import_3)
23229
- });
23230
-
23231
-
23232
23197
  },
23233
23198
  61292(module) {
23234
23199
  "use strict";
@@ -38480,10 +38445,10 @@ function getPlanarAcquisitionOrientation(imageIds) {
38480
38445
  if (!imageOrientationPatient || imageOrientationPatient.length !== 6) {
38481
38446
  return;
38482
38447
  }
38483
- const rowVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
38484
- const colVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
38485
- const scanAxisNormal = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
38486
- gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(scanAxisNormal, rowVec, colVec);
38448
+ const rowVec = gl_matrix__rspack_import_0.vec3.fromValues(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
38449
+ const colVec = gl_matrix__rspack_import_0.vec3.fromValues(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
38450
+ const scanAxisNormal = gl_matrix__rspack_import_0.vec3.create();
38451
+ gl_matrix__rspack_import_0.vec3.cross(scanAxisNormal, rowVec, colVec);
38487
38452
  const orientation = (0,_helpers_getCameraVectors_js__rspack_import_9/* .getOrientationFromScanAxisNormal */.sB)([
38488
38453
  scanAxisNormal[0],
38489
38454
  scanAxisNormal[1],
@@ -38938,7 +38903,7 @@ function getPlanarViewReference(args) {
38938
38903
  const viewPlaneNormal = toPoint3(targetCamera?.viewPlaneNormal);
38939
38904
  const viewUp = toPoint3(targetCamera?.viewUp);
38940
38905
  const inPlaneVector2 = viewUp && viewPlaneNormal
38941
- ? toPoint3(esm/* .vec3.cross */.eR.$A(esm/* .vec3.create */.eR.vt(), viewUp, viewPlaneNormal))
38906
+ ? toPoint3(esm.vec3.cross(esm.vec3.create(), viewUp, viewPlaneNormal))
38942
38907
  : undefined;
38943
38908
  const viewReference = {
38944
38909
  FrameOfReferenceUID: frameOfReferenceUID,
@@ -39034,19 +38999,19 @@ function isPlanarPlaneViewable(args) {
39034
38999
  return true;
39035
39000
  }
39036
39001
  if (planeRestriction.inPlaneVector1 &&
39037
- !(0,utilities_isEqual/* ["default"] */.Ay)(0, esm/* .vec3.dot */.eR.Om(viewPlaneNormal, planeRestriction.inPlaneVector1))) {
39002
+ !(0,utilities_isEqual/* ["default"] */.Ay)(0, esm.vec3.dot(viewPlaneNormal, planeRestriction.inPlaneVector1))) {
39038
39003
  return false;
39039
39004
  }
39040
39005
  if (planeRestriction.inPlaneVector2 &&
39041
- !(0,utilities_isEqual/* ["default"] */.Ay)(0, esm/* .vec3.dot */.eR.Om(viewPlaneNormal, planeRestriction.inPlaneVector2))) {
39006
+ !(0,utilities_isEqual/* ["default"] */.Ay)(0, esm.vec3.dot(viewPlaneNormal, planeRestriction.inPlaneVector2))) {
39042
39007
  return false;
39043
39008
  }
39044
39009
  if (options?.withNavigation) {
39045
39010
  return true;
39046
39011
  }
39047
39012
  const { point } = planeRestriction;
39048
- const pointVector = esm/* .vec3.sub */.eR.jb(esm/* .vec3.create */.eR.vt(), point, focalPoint);
39049
- return (0,utilities_isEqual/* ["default"] */.Ay)(0, esm/* .vec3.dot */.eR.Om(pointVector, viewPlaneNormal));
39013
+ const pointVector = esm.vec3.sub(esm.vec3.create(), point, focalPoint);
39014
+ return (0,utilities_isEqual/* ["default"] */.Ay)(0, esm.vec3.dot(pointVector, viewPlaneNormal));
39050
39015
  }
39051
39016
  function isPlanarReferenceViewable(args) {
39052
39017
  const { frameOfReferenceUID, imageIds, options = {}, viewRef } = args;
@@ -39399,8 +39364,8 @@ class PlanarViewReferenceController {
39399
39364
  }
39400
39365
  if (viewRef.viewPlaneNormal) {
39401
39366
  const { rowCosines, columnCosines } = metaData.get(enums.MetadataModules.IMAGE_PLANE, imageIds[index]);
39402
- const normal = esm/* .vec3.cross */.eR.$A(esm/* .vec3.create */.eR.vt(), rowCosines, columnCosines);
39403
- if (Math.abs(esm/* .vec3.dot */.eR.Om(normal, viewRef.viewPlaneNormal)) <
39367
+ const normal = esm.vec3.cross(esm.vec3.create(), rowCosines, columnCosines);
39368
+ if (Math.abs(esm.vec3.dot(normal, viewRef.viewPlaneNormal)) <
39404
39369
  PARALLEL_COSINE) {
39405
39370
  return;
39406
39371
  }
@@ -39488,16 +39453,16 @@ class PlanarViewReferenceController {
39488
39453
  }
39489
39454
  let derivedViewPlaneNormal;
39490
39455
  if (inPlaneVector1 && inPlaneVector2) {
39491
- const cross = esm/* .vec3.cross */.eR.$A(esm/* .vec3.create */.eR.vt(), inPlaneVector2, inPlaneVector1);
39492
- if (esm/* .vec3.length */.eR.Bw(cross) > 0) {
39493
- esm/* .vec3.normalize */.eR.S8(cross, cross);
39456
+ const cross = esm.vec3.cross(esm.vec3.create(), inPlaneVector2, inPlaneVector1);
39457
+ if (esm.vec3.length(cross) > 0) {
39458
+ esm.vec3.normalize(cross, cross);
39494
39459
  derivedViewPlaneNormal = [...cross];
39495
39460
  }
39496
39461
  }
39497
39462
  else if (inPlaneVector1 && currentViewPlaneNormal) {
39498
- const cross = esm/* .vec3.cross */.eR.$A(esm/* .vec3.create */.eR.vt(), currentViewPlaneNormal, inPlaneVector1);
39499
- if (esm/* .vec3.length */.eR.Bw(cross) > 0) {
39500
- esm/* .vec3.normalize */.eR.S8(cross, cross);
39463
+ const cross = esm.vec3.cross(esm.vec3.create(), currentViewPlaneNormal, inPlaneVector1);
39464
+ if (esm.vec3.length(cross) > 0) {
39465
+ esm.vec3.normalize(cross, cross);
39501
39466
  derivedViewPlaneNormal = [...cross];
39502
39467
  }
39503
39468
  }
@@ -39514,9 +39479,9 @@ class PlanarViewReferenceController {
39514
39479
  }
39515
39480
  isPlaneRestrictionCompatibleWithNormal(planeRestriction, viewPlaneNormal) {
39516
39481
  return ((!planeRestriction.inPlaneVector1 ||
39517
- (0,utilities_isEqual/* ["default"] */.Ay)(0, esm/* .vec3.dot */.eR.Om(viewPlaneNormal, planeRestriction.inPlaneVector1))) &&
39482
+ (0,utilities_isEqual/* ["default"] */.Ay)(0, esm.vec3.dot(viewPlaneNormal, planeRestriction.inPlaneVector1))) &&
39518
39483
  (!planeRestriction.inPlaneVector2 ||
39519
- (0,utilities_isEqual/* ["default"] */.Ay)(0, esm/* .vec3.dot */.eR.Om(viewPlaneNormal, planeRestriction.inPlaneVector2))));
39484
+ (0,utilities_isEqual/* ["default"] */.Ay)(0, esm.vec3.dot(viewPlaneNormal, planeRestriction.inPlaneVector2))));
39520
39485
  }
39521
39486
  resolveVolumeReferenceSliceTarget(referenceContext, viewRef, effectiveViewPlaneNormal, isOppositeNormal) {
39522
39487
  const { rendering } = referenceContext;
@@ -39586,7 +39551,7 @@ class PlanarViewReferenceController {
39586
39551
  if (!currentViewPlaneNormal || !targetViewPlaneNormal) {
39587
39552
  return false;
39588
39553
  }
39589
- return (0,utilities_isEqual/* ["default"] */.Ay)(esm/* .vec3.negate */.eR.ze(esm/* .vec3.create */.eR.vt(), currentViewPlaneNormal), targetViewPlaneNormal);
39554
+ return (0,utilities_isEqual/* ["default"] */.Ay)(esm.vec3.negate(esm.vec3.create(), currentViewPlaneNormal), targetViewPlaneNormal);
39590
39555
  }
39591
39556
  }
39592
39557
  /* export default */ var Planar_PlanarViewReferenceController = (PlanarViewReferenceController);
@@ -39608,14 +39573,14 @@ class PlanarViewReferenceController {
39608
39573
 
39609
39574
 
39610
39575
  function getPlanarViewStateBasis(camera) {
39611
- const viewUp = gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), camera.viewUp);
39612
- const viewPlaneNormal = gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), camera.viewPlaneNormal);
39613
- let right = gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), viewUp, viewPlaneNormal);
39614
- if (!gl_matrix__rspack_import_0/* .vec3.length */.eR.Bw(right)) {
39615
- right = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(1, 0, 0);
39576
+ const viewUp = gl_matrix__rspack_import_0.vec3.normalize(gl_matrix__rspack_import_0.vec3.create(), camera.viewUp);
39577
+ const viewPlaneNormal = gl_matrix__rspack_import_0.vec3.normalize(gl_matrix__rspack_import_0.vec3.create(), camera.viewPlaneNormal);
39578
+ let right = gl_matrix__rspack_import_0.vec3.cross(gl_matrix__rspack_import_0.vec3.create(), viewUp, viewPlaneNormal);
39579
+ if (!gl_matrix__rspack_import_0.vec3.length(right)) {
39580
+ right = gl_matrix__rspack_import_0.vec3.fromValues(1, 0, 0);
39616
39581
  }
39617
39582
  return {
39618
- right: gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), right),
39583
+ right: gl_matrix__rspack_import_0.vec3.normalize(gl_matrix__rspack_import_0.vec3.create(), right),
39619
39584
  viewPlaneNormal,
39620
39585
  viewUp,
39621
39586
  };
@@ -39632,8 +39597,8 @@ function canvasToWorldPlanarViewState(args) {
39632
39597
  const xOffset = (canvasPos[0] / safeCanvasWidth - 0.5) * worldWidth;
39633
39598
  const yOffset = (0.5 - canvasPos[1] / safeCanvasHeight) * worldHeight;
39634
39599
  const worldPos = [...camera.focalPoint];
39635
- gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(worldPos, worldPos, right, xOffset);
39636
- gl_matrix__rspack_import_0/* .vec3.scaleAndAdd */.eR.Ln(worldPos, worldPos, viewUp, yOffset);
39600
+ gl_matrix__rspack_import_0.vec3.scaleAndAdd(worldPos, worldPos, right, xOffset);
39601
+ gl_matrix__rspack_import_0.vec3.scaleAndAdd(worldPos, worldPos, viewUp, yOffset);
39637
39602
  return worldPos;
39638
39603
  }
39639
39604
  function worldToCanvasPlanarViewState(args) {
@@ -39645,9 +39610,9 @@ function worldToCanvasPlanarViewState(args) {
39645
39610
  const worldWidth = worldHeight *
39646
39611
  (safeCanvasWidth / safeCanvasHeight) *
39647
39612
  (1 / (0,_planarCameraScale_js__rspack_import_5/* .getPlanarScaleRatio */.OB)(camera.presentationScale));
39648
- const delta = gl_matrix__rspack_import_0/* .vec3.subtract */.eR.Re(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), worldPos, camera.focalPoint);
39649
- const xOffset = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(delta, right);
39650
- const yOffset = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(delta, viewUp);
39613
+ const delta = gl_matrix__rspack_import_0.vec3.subtract(gl_matrix__rspack_import_0.vec3.create(), worldPos, camera.focalPoint);
39614
+ const xOffset = gl_matrix__rspack_import_0.vec3.dot(delta, right);
39615
+ const yOffset = gl_matrix__rspack_import_0.vec3.dot(delta, viewUp);
39651
39616
  return [
39652
39617
  (xOffset / worldWidth + 0.5) * safeCanvasWidth,
39653
39618
  (0.5 - yOffset / worldHeight) * safeCanvasHeight,
@@ -39704,12 +39669,12 @@ function getOrthogonalVolumeSliceGeometry(args) {
39704
39669
  const rowAxis = directionArray.slice(0, 3);
39705
39670
  const colAxis = directionArray.slice(3, 6);
39706
39671
  const scanAxis = directionArray.slice(6, 9);
39707
- const normalizedViewUp = gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), viewUp);
39708
- const normalizedViewPlaneNormal = gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), viewPlaneNormal);
39709
- const right = gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), normalizedViewUp, normalizedViewPlaneNormal));
39672
+ const normalizedViewUp = gl_matrix__rspack_import_0.vec3.normalize(gl_matrix__rspack_import_0.vec3.create(), viewUp);
39673
+ const normalizedViewPlaneNormal = gl_matrix__rspack_import_0.vec3.normalize(gl_matrix__rspack_import_0.vec3.create(), viewPlaneNormal);
39674
+ const right = gl_matrix__rspack_import_0.vec3.normalize(gl_matrix__rspack_import_0.vec3.create(), gl_matrix__rspack_import_0.vec3.cross(gl_matrix__rspack_import_0.vec3.create(), normalizedViewUp, normalizedViewPlaneNormal));
39710
39675
  const basis = [rowAxis, colAxis, scanAxis];
39711
39676
  const columnAxisIndex = getMajorAxisIndex(right, basis);
39712
- const rowAxisIndex = getMajorAxisIndex(gl_matrix__rspack_import_0/* .vec3.negate */.eR.ze(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), normalizedViewUp), basis);
39677
+ const rowAxisIndex = getMajorAxisIndex(gl_matrix__rspack_import_0.vec3.negate(gl_matrix__rspack_import_0.vec3.create(), normalizedViewUp), basis);
39713
39678
  if (columnAxisIndex === undefined ||
39714
39679
  rowAxisIndex === undefined ||
39715
39680
  columnAxisIndex === rowAxisIndex) {
@@ -39723,7 +39688,7 @@ function getOrthogonalVolumeSliceGeometry(args) {
39723
39688
  };
39724
39689
  }
39725
39690
  function getMajorAxisIndex(vector, basis) {
39726
- const scores = basis.map((axis) => Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(vector, axis)));
39691
+ const scores = basis.map((axis) => Math.abs(gl_matrix__rspack_import_0.vec3.dot(vector, axis)));
39727
39692
  const maxScore = Math.max(...scores);
39728
39693
  if (maxScore < 0.995) {
39729
39694
  return;
@@ -39750,7 +39715,7 @@ __webpack_require__.d(__webpack_exports__, {
39750
39715
  const SOURCE_SLICE_INDEX_TOLERANCE = 1e-4;
39751
39716
  const NEAREST_VOXEL_TIE_EPSILON = 1e-6;
39752
39717
  function dot(a, b) {
39753
- return gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(a, b);
39718
+ return gl_matrix__rspack_import_0.vec3.dot(a, b);
39754
39719
  }
39755
39720
  function getIndexMajorAxis(volume, worldVector, majorThreshold = 0.995) {
39756
39721
  const row = volume.direction.slice(0, 3);
@@ -41312,22 +41277,22 @@ var getClosestImageId = __webpack_require__(27307);
41312
41277
  ;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/utilities/reflectVector.js
41313
41278
 
41314
41279
  function reflectVector(v, normal) {
41315
- const dotProduct = esm/* .vec3.dot */.eR.Om(v, normal);
41316
- const scaledNormal = esm/* .vec3.scale */.eR.hs(esm/* .vec3.create */.eR.vt(), normal, 2 * dotProduct);
41317
- return esm/* .vec3.sub */.eR.jb(esm/* .vec3.create */.eR.vt(), v, scaledNormal);
41280
+ const dotProduct = esm.vec3.dot(v, normal);
41281
+ const scaledNormal = esm.vec3.scale(esm.vec3.create(), normal, 2 * dotProduct);
41282
+ return esm.vec3.sub(esm.vec3.create(), v, scaledNormal);
41318
41283
  }
41319
41284
 
41320
41285
  ;// CONCATENATED MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/utilities/adjustInitialViewUp.js
41321
41286
 
41322
41287
 
41323
41288
  function adjustInitialViewUp(initialViewUp, flipHorizontal, flipVertical, viewPlaneNormal) {
41324
- let adjustedInitialViewUp = esm/* .vec3.clone */.eR.o8(initialViewUp);
41289
+ let adjustedInitialViewUp = esm.vec3.clone(initialViewUp);
41325
41290
  if (flipVertical) {
41326
- esm/* .vec3.negate */.eR.ze(adjustedInitialViewUp, adjustedInitialViewUp);
41291
+ esm.vec3.negate(adjustedInitialViewUp, adjustedInitialViewUp);
41327
41292
  }
41328
41293
  if (flipHorizontal) {
41329
- const screenVerticalAxis = esm/* .vec3.cross */.eR.$A(esm/* .vec3.create */.eR.vt(), viewPlaneNormal, adjustedInitialViewUp);
41330
- esm/* .vec3.normalize */.eR.S8(screenVerticalAxis, screenVerticalAxis);
41294
+ const screenVerticalAxis = esm.vec3.cross(esm.vec3.create(), viewPlaneNormal, adjustedInitialViewUp);
41295
+ esm.vec3.normalize(screenVerticalAxis, screenVerticalAxis);
41331
41296
  adjustedInitialViewUp = reflectVector(adjustedInitialViewUp, screenVerticalAxis);
41332
41297
  }
41333
41298
  return adjustedInitialViewUp;
@@ -41513,10 +41478,10 @@ class StackViewport extends Viewport/* ["default"] */.A {
41513
41478
  this.getRotationGPU = () => {
41514
41479
  const { viewUp: currentViewUp, viewPlaneNormal, flipVertical, flipHorizontal, } = this.getCameraNoRotation();
41515
41480
  const adjustedViewUp = adjustInitialViewUp(this.initialViewUp, flipHorizontal, flipVertical, viewPlaneNormal);
41516
- const angleRad = esm/* .vec3.angle */.eR.g7(adjustedViewUp, currentViewUp);
41481
+ const angleRad = esm.vec3.angle(adjustedViewUp, currentViewUp);
41517
41482
  const initialToCurrentViewUpAngle = (angleRad * 180) / Math.PI;
41518
- const initialToCurrentViewUpCross = esm/* .vec3.cross */.eR.$A(esm/* .vec3.create */.eR.vt(), adjustedViewUp, currentViewUp);
41519
- const normalDot = esm/* .vec3.dot */.eR.Om(initialToCurrentViewUpCross, viewPlaneNormal);
41483
+ const initialToCurrentViewUpCross = esm.vec3.cross(esm.vec3.create(), adjustedViewUp, currentViewUp);
41484
+ const normalDot = esm.vec3.dot(initialToCurrentViewUpCross, viewPlaneNormal);
41520
41485
  return normalDot >= 0
41521
41486
  ? initialToCurrentViewUpAngle
41522
41487
  : (360 - initialToCurrentViewUpAngle) % 360;
@@ -41561,18 +41526,18 @@ class StackViewport extends Viewport/* ["default"] */.A {
41561
41526
  const { origin, spacing, direction } = this.getImageData();
41562
41527
  const iVector = direction.slice(0, 3);
41563
41528
  const jVector = direction.slice(3, 6);
41564
- esm/* .vec3.scaleAndAdd */.eR.Ln(worldPos, origin, iVector, px * spacing[0]);
41565
- esm/* .vec3.scaleAndAdd */.eR.Ln(worldPos, worldPos, jVector, py * spacing[1]);
41529
+ esm.vec3.scaleAndAdd(worldPos, origin, iVector, px * spacing[0]);
41530
+ esm.vec3.scaleAndAdd(worldPos, worldPos, jVector, py * spacing[1]);
41566
41531
  return worldPos;
41567
41532
  };
41568
41533
  this.worldToCanvasCPU = (worldPos) => {
41569
41534
  const { spacing, direction, origin } = this.getImageData();
41570
41535
  const iVector = direction.slice(0, 3);
41571
41536
  const jVector = direction.slice(3, 6);
41572
- const diff = esm/* .vec3.subtract */.eR.Re(esm/* .vec3.create */.eR.vt(), worldPos, origin);
41537
+ const diff = esm.vec3.subtract(esm.vec3.create(), worldPos, origin);
41573
41538
  const indexPoint = [
41574
- esm/* .vec3.dot */.eR.Om(diff, iVector) / spacing[0],
41575
- esm/* .vec3.dot */.eR.Om(diff, jVector) / spacing[1],
41539
+ esm.vec3.dot(diff, iVector) / spacing[0],
41540
+ esm.vec3.dot(diff, jVector) / spacing[1],
41576
41541
  ];
41577
41542
  const canvasPoint = (0,pixelToCanvas/* ["default"] */.A)(this._cpuFallbackEnabledElement, indexPoint);
41578
41543
  return deviceToCssPixels(canvasPoint);
@@ -42179,8 +42144,8 @@ class StackViewport extends Viewport/* ["default"] */.A {
42179
42144
  const viewPlaneNormal = direction.slice(6, 9).map((x) => -x);
42180
42145
  let viewUp = direction.slice(3, 6).map((x) => -x);
42181
42146
  if (viewport.rotation) {
42182
- const rotationMatrix = esm/* .mat4.fromRotation */.pB.fromRotation(esm/* .mat4.create */.pB.create(), (viewport.rotation * Math.PI) / 180, viewPlaneNormal);
42183
- viewUp = esm/* .vec3.transformMat4 */.eR.Z0(esm/* .vec3.create */.eR.vt(), viewUp, rotationMatrix);
42147
+ const rotationMatrix = esm.mat4.fromRotation(esm.mat4.create(), (viewport.rotation * Math.PI) / 180, viewPlaneNormal);
42148
+ viewUp = esm.vec3.transformMat4(esm.vec3.create(), viewUp, rotationMatrix);
42184
42149
  }
42185
42150
  const canvasCenter = [
42186
42151
  this.element.clientWidth / 2,
@@ -42189,7 +42154,7 @@ class StackViewport extends Viewport/* ["default"] */.A {
42189
42154
  const canvasCenterWorld = this.canvasToWorld(canvasCenter);
42190
42155
  const topLeftWorld = this.canvasToWorld([0, 0]);
42191
42156
  const bottomLeftWorld = this.canvasToWorld([0, this.element.clientHeight]);
42192
- const parallelScale = esm/* .vec3.distance */.eR.Io(topLeftWorld, bottomLeftWorld) / 2;
42157
+ const parallelScale = esm.vec3.distance(topLeftWorld, bottomLeftWorld) / 2;
42193
42158
  return {
42194
42159
  parallelProjection: true,
42195
42160
  focalPoint: canvasCenterWorld,
@@ -42235,8 +42200,8 @@ class StackViewport extends Viewport/* ["default"] */.A {
42235
42200
  const focalPointPixel = (0,canvasToPixel/* ["default"] */.A)(this._cpuFallbackEnabledElement, cssToDevicePixels(focalPointCanvas));
42236
42201
  const prevFocalPointCanvas = this.worldToCanvasCPU(previousCamera.focalPoint);
42237
42202
  const prevFocalPointPixel = (0,canvasToPixel/* ["default"] */.A)(this._cpuFallbackEnabledElement, cssToDevicePixels(prevFocalPointCanvas));
42238
- const deltaPixel = esm/* .vec2.create */.Zc.vt();
42239
- esm/* .vec2.subtract */.Zc.Re(deltaPixel, esm/* .vec2.fromValues */.Zc.fA(focalPointPixel[0], focalPointPixel[1]), esm/* .vec2.fromValues */.Zc.fA(prevFocalPointPixel[0], prevFocalPointPixel[1]));
42203
+ const deltaPixel = esm.vec2.create();
42204
+ esm.vec2.subtract(deltaPixel, esm.vec2.fromValues(focalPointPixel[0], focalPointPixel[1]), esm.vec2.fromValues(prevFocalPointPixel[0], prevFocalPointPixel[1]));
42240
42205
  const shift = (0,correctShift/* ["default"] */.A)({ x: deltaPixel[0], y: deltaPixel[1] }, viewport);
42241
42206
  viewport.translation.x -= shift.x;
42242
42207
  viewport.translation.y -= shift.y;
@@ -42340,7 +42305,7 @@ class StackViewport extends Viewport/* ["default"] */.A {
42340
42305
  setRotationGPU(rotation) {
42341
42306
  const panFit = this.getPan(this.fitToCanvasCamera);
42342
42307
  const pan = this.getPan();
42343
- const panSub = esm/* .vec2.sub */.Zc.jb([0, 0], panFit, pan);
42308
+ const panSub = esm.vec2.sub([0, 0], panFit, pan);
42344
42309
  this.setPan(panSub, false);
42345
42310
  const { flipVertical, flipHorizontal, viewPlaneNormal } = this.getCamera();
42346
42311
  const adjustedViewUp = adjustInitialViewUp(this.initialViewUp, flipHorizontal, flipVertical, viewPlaneNormal);
@@ -42350,8 +42315,8 @@ class StackViewport extends Viewport/* ["default"] */.A {
42350
42315
  this.getVtkActiveCamera().roll(-rotation);
42351
42316
  const afterPan = this.getPan();
42352
42317
  const afterPanFit = this.getPan(this.fitToCanvasCamera);
42353
- const newCenter = esm/* .vec2.sub */.Zc.jb([0, 0], afterPan, afterPanFit);
42354
- const newOffset = esm/* .vec2.add */.Zc.WQ([0, 0], panFit, newCenter);
42318
+ const newCenter = esm.vec2.sub([0, 0], afterPan, afterPanFit);
42319
+ const newOffset = esm.vec2.add([0, 0], panFit, newCenter);
42355
42320
  this.setPan(newOffset, false);
42356
42321
  }
42357
42322
  setInterpolationTypeGPU(interpolationType) {
@@ -42607,7 +42572,7 @@ class StackViewport extends Viewport/* ["default"] */.A {
42607
42572
  let { rowCosines, columnCosines } = imagePlaneModule;
42608
42573
  rowCosines ||= [1, 0, 0];
42609
42574
  columnCosines ||= [0, 1, 0];
42610
- const viewPlaneNormal = esm/* .vec3.cross */.eR.$A([0, 0, 0], columnCosines, rowCosines);
42575
+ const viewPlaneNormal = esm.vec3.cross([0, 0, 0], columnCosines, rowCosines);
42611
42576
  return {
42612
42577
  FrameOfReferenceUID,
42613
42578
  viewPlaneNormal,
@@ -43297,8 +43262,8 @@ class StackViewport extends Viewport/* ["default"] */.A {
43297
43262
  const { spacing, direction, origin } = this.getImageData();
43298
43263
  const viewPlaneNormal = direction.slice(6, 9);
43299
43264
  const sliceThickness = (0,getSpacingInNormalDirection/* ["default"] */.A)({ direction, spacing }, viewPlaneNormal);
43300
- const diff = esm/* .vec3.subtract */.eR.Re(esm/* .vec3.create */.eR.vt(), cameraFocalPoint, origin);
43301
- const distanceToPlane = esm/* .vec3.dot */.eR.Om(diff, viewPlaneNormal);
43265
+ const diff = esm.vec3.subtract(esm.vec3.create(), cameraFocalPoint, origin);
43266
+ const distanceToPlane = esm.vec3.dot(diff, viewPlaneNormal);
43302
43267
  const threshold = sliceThickness / 2;
43303
43268
  if (Math.abs(distanceToPlane) <= threshold) {
43304
43269
  return true;
@@ -43671,19 +43636,19 @@ class VolumeViewport extends BaseVolumeViewport/* ["default"] */.A {
43671
43636
  }
43672
43637
  const { focalPoint } = this.getCamera();
43673
43638
  const delta = [0, 0, 0];
43674
- esm/* .vec3.sub */.eR.jb(delta, targetWorldPos, focalPoint);
43639
+ esm.vec3.sub(delta, targetWorldPos, focalPoint);
43675
43640
  const camera = this.getCamera();
43676
43641
  const normal = camera.viewPlaneNormal;
43677
- const dotProd = esm/* .vec3.dot */.eR.Om(delta, normal);
43678
- const projectedDelta = esm/* .vec3.fromValues */.eR.fA(normal[0], normal[1], normal[2]);
43679
- esm/* .vec3.scale */.eR.hs(projectedDelta, projectedDelta, dotProd);
43642
+ const dotProd = esm.vec3.dot(delta, normal);
43643
+ const projectedDelta = esm.vec3.fromValues(normal[0], normal[1], normal[2]);
43644
+ esm.vec3.scale(projectedDelta, projectedDelta, dotProd);
43680
43645
  if (Math.abs(projectedDelta[0]) > 1e-3 ||
43681
43646
  Math.abs(projectedDelta[1]) > 1e-3 ||
43682
43647
  Math.abs(projectedDelta[2]) > 1e-3) {
43683
43648
  const newFocalPoint = [0, 0, 0];
43684
43649
  const newPosition = [0, 0, 0];
43685
- esm/* .vec3.add */.eR.WQ(newFocalPoint, camera.focalPoint, projectedDelta);
43686
- esm/* .vec3.add */.eR.WQ(newPosition, camera.position, projectedDelta);
43650
+ esm.vec3.add(newFocalPoint, camera.focalPoint, projectedDelta);
43651
+ esm.vec3.add(newPosition, camera.position, projectedDelta);
43687
43652
  this.setCamera({
43688
43653
  focalPoint: newFocalPoint,
43689
43654
  position: newPosition,
@@ -43909,19 +43874,19 @@ class VolumeViewport extends BaseVolumeViewport/* ["default"] */.A {
43909
43874
  const { viewPlaneNormal } = this.getCamera();
43910
43875
  const normalDirection = [direction[6], direction[7], direction[8]];
43911
43876
  const TOLERANCE = 0.99;
43912
- return (Math.abs(esm/* .vec3.dot */.eR.Om(viewPlaneNormal, normalDirection)) > TOLERANCE);
43877
+ return (Math.abs(esm.vec3.dot(viewPlaneNormal, normalDirection)) > TOLERANCE);
43913
43878
  }
43914
43879
  getSliceViewInfo() {
43915
43880
  const { width: canvasWidth, height: canvasHeight } = this.getCanvas();
43916
43881
  const ijkOriginPoint = (0,transformCanvasToIJK/* .transformCanvasToIJK */.e)(this, [0, 0]);
43917
43882
  const ijkRowPoint = (0,transformCanvasToIJK/* .transformCanvasToIJK */.e)(this, [canvasWidth - 1, 0]);
43918
43883
  const ijkColPoint = (0,transformCanvasToIJK/* .transformCanvasToIJK */.e)(this, [0, canvasHeight - 1]);
43919
- const ijkRowVec = esm/* .vec3.sub */.eR.jb(esm/* .vec3.create */.eR.vt(), ijkRowPoint, ijkOriginPoint);
43920
- const ijkColVec = esm/* .vec3.sub */.eR.jb(esm/* .vec3.create */.eR.vt(), ijkColPoint, ijkOriginPoint);
43921
- const ijkSliceVec = esm/* .vec3.cross */.eR.$A(esm/* .vec3.create */.eR.vt(), ijkRowVec, ijkColVec);
43922
- esm/* .vec3.normalize */.eR.S8(ijkRowVec, ijkRowVec);
43923
- esm/* .vec3.normalize */.eR.S8(ijkColVec, ijkColVec);
43924
- esm/* .vec3.normalize */.eR.S8(ijkSliceVec, ijkSliceVec);
43884
+ const ijkRowVec = esm.vec3.sub(esm.vec3.create(), ijkRowPoint, ijkOriginPoint);
43885
+ const ijkColVec = esm.vec3.sub(esm.vec3.create(), ijkColPoint, ijkOriginPoint);
43886
+ const ijkSliceVec = esm.vec3.cross(esm.vec3.create(), ijkRowVec, ijkColVec);
43887
+ esm.vec3.normalize(ijkRowVec, ijkRowVec);
43888
+ esm.vec3.normalize(ijkColVec, ijkColVec);
43889
+ esm.vec3.normalize(ijkSliceVec, ijkSliceVec);
43925
43890
  const { dimensions } = this.getImageData();
43926
43891
  const [sx, sy, sz] = dimensions;
43927
43892
  const ijkCorners = [
@@ -43946,13 +43911,13 @@ class VolumeViewport extends BaseVolumeViewport/* ["default"] */.A {
43946
43911
  canvasAABB.minX,
43947
43912
  canvasAABB.minY,
43948
43913
  ]);
43949
- const sliceToIndexMatrix = esm/* .mat4.fromValues */.pB.fromValues(ijkRowVec[0], ijkRowVec[1], ijkRowVec[2], 0, ijkColVec[0], ijkColVec[1], ijkColVec[2], 0, ijkSliceVec[0], ijkSliceVec[1], ijkSliceVec[2], 0, ijkTopLeft[0], ijkTopLeft[1], ijkTopLeft[2], 1);
43914
+ const sliceToIndexMatrix = esm.mat4.fromValues(ijkRowVec[0], ijkRowVec[1], ijkRowVec[2], 0, ijkColVec[0], ijkColVec[1], ijkColVec[2], 0, ijkSliceVec[0], ijkSliceVec[1], ijkSliceVec[2], 0, ijkTopLeft[0], ijkTopLeft[1], ijkTopLeft[2], 1);
43950
43915
  const ijkBottomRight = (0,transformCanvasToIJK/* .transformCanvasToIJK */.e)(this, [
43951
43916
  canvasAABB.maxX,
43952
43917
  canvasAABB.maxY,
43953
43918
  ]);
43954
- const ijkDiagonal = esm/* .vec3.sub */.eR.jb(esm/* .vec3.create */.eR.vt(), ijkBottomRight, ijkTopLeft);
43955
- const indexToSliceMatrix = esm/* .mat4.invert */.pB.invert(esm/* .mat4.create */.pB.create(), sliceToIndexMatrix);
43919
+ const ijkDiagonal = esm.vec3.sub(esm.vec3.create(), ijkBottomRight, ijkTopLeft);
43920
+ const indexToSliceMatrix = esm.mat4.invert(esm.mat4.create(), sliceToIndexMatrix);
43956
43921
  const { viewPlaneNormal } = this.getCamera();
43957
43922
  const isOblique = viewPlaneNormal.filter((component) => Math.abs(component) > constants.EPSILON)
43958
43923
  .length > 1;
@@ -43963,8 +43928,8 @@ class VolumeViewport extends BaseVolumeViewport/* ["default"] */.A {
43963
43928
  if (sliceAxis === -1) {
43964
43929
  throw new Error('Unable to determine slice axis');
43965
43930
  }
43966
- const sliceWidth = esm/* .vec3.dot */.eR.Om(ijkRowVec, ijkDiagonal) + 1;
43967
- const sliceHeight = esm/* .vec3.dot */.eR.Om(ijkColVec, ijkDiagonal) + 1;
43931
+ const sliceWidth = esm.vec3.dot(ijkRowVec, ijkDiagonal) + 1;
43932
+ const sliceHeight = esm.vec3.dot(ijkColVec, ijkDiagonal) + 1;
43968
43933
  return {
43969
43934
  sliceIndex: this.getSliceIndex(),
43970
43935
  width: sliceWidth,
@@ -47189,18 +47154,18 @@ function calculateCameraPosition(rowCosineVec, colCosineVec, scanAxisNormal, ori
47189
47154
  referenceCameraValues = MPR_CAMERA_VALUES.axial;
47190
47155
  break;
47191
47156
  }
47192
- const normalizedRowCosine = gl_matrix__rspack_import_4/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_4/* .vec3.create */.eR.vt(), rowCosineVec);
47193
- const normalizedColCosine = gl_matrix__rspack_import_4/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_4/* .vec3.create */.eR.vt(), colCosineVec);
47194
- const normalizedScanAxis = gl_matrix__rspack_import_4/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_4/* .vec3.create */.eR.vt(), scanAxisNormal);
47157
+ const normalizedRowCosine = gl_matrix__rspack_import_4.vec3.normalize(gl_matrix__rspack_import_4.vec3.create(), rowCosineVec);
47158
+ const normalizedColCosine = gl_matrix__rspack_import_4.vec3.normalize(gl_matrix__rspack_import_4.vec3.create(), colCosineVec);
47159
+ const normalizedScanAxis = gl_matrix__rspack_import_4.vec3.normalize(gl_matrix__rspack_import_4.vec3.create(), scanAxisNormal);
47195
47160
  const inputVectors = [
47196
47161
  normalizedRowCosine,
47197
47162
  normalizedColCosine,
47198
47163
  normalizedScanAxis,
47199
47164
  ];
47200
47165
  const referenceVectors = [
47201
- gl_matrix__rspack_import_4/* .vec3.fromValues */.eR.fA(referenceCameraValues.viewRight[0], referenceCameraValues.viewRight[1], referenceCameraValues.viewRight[2]),
47202
- gl_matrix__rspack_import_4/* .vec3.fromValues */.eR.fA(referenceCameraValues.viewUp[0], referenceCameraValues.viewUp[1], referenceCameraValues.viewUp[2]),
47203
- gl_matrix__rspack_import_4/* .vec3.fromValues */.eR.fA(referenceCameraValues.viewPlaneNormal[0], referenceCameraValues.viewPlaneNormal[1], referenceCameraValues.viewPlaneNormal[2]),
47166
+ gl_matrix__rspack_import_4.vec3.fromValues(referenceCameraValues.viewRight[0], referenceCameraValues.viewRight[1], referenceCameraValues.viewRight[2]),
47167
+ gl_matrix__rspack_import_4.vec3.fromValues(referenceCameraValues.viewUp[0], referenceCameraValues.viewUp[1], referenceCameraValues.viewUp[2]),
47168
+ gl_matrix__rspack_import_4.vec3.fromValues(referenceCameraValues.viewPlaneNormal[0], referenceCameraValues.viewPlaneNormal[1], referenceCameraValues.viewPlaneNormal[2]),
47204
47169
  ];
47205
47170
  const usedInputIndices = new Set();
47206
47171
  const findBestMatch = (refVector) => {
@@ -47211,7 +47176,7 @@ function calculateCameraPosition(rowCosineVec, colCosineVec, scanAxisNormal, ori
47211
47176
  if (usedInputIndices.has(index)) {
47212
47177
  return;
47213
47178
  }
47214
- const dot = gl_matrix__rspack_import_4/* .vec3.dot */.eR.Om(refVector, inputVec);
47179
+ const dot = gl_matrix__rspack_import_4.vec3.dot(refVector, inputVec);
47215
47180
  const absDot = Math.abs(dot);
47216
47181
  if (absDot > bestDot) {
47217
47182
  bestDot = absDot;
@@ -47220,9 +47185,9 @@ function calculateCameraPosition(rowCosineVec, colCosineVec, scanAxisNormal, ori
47220
47185
  }
47221
47186
  });
47222
47187
  usedInputIndices.add(bestMatch);
47223
- const matchedVector = gl_matrix__rspack_import_4/* .vec3.clone */.eR.o8(inputVectors[bestMatch]);
47188
+ const matchedVector = gl_matrix__rspack_import_4.vec3.clone(inputVectors[bestMatch]);
47224
47189
  if (shouldInvert) {
47225
- gl_matrix__rspack_import_4/* .vec3.negate */.eR.ze(matchedVector, matchedVector);
47190
+ gl_matrix__rspack_import_4.vec3.negate(matchedVector, matchedVector);
47226
47191
  }
47227
47192
  return matchedVector;
47228
47193
  };
@@ -47254,9 +47219,9 @@ function getCameraVectors(viewport, config) {
47254
47219
  return;
47255
47220
  }
47256
47221
  const { imageOrientationPatient } = _metaData_js__rspack_import_0.get(_enums_index_js__rspack_import_2.MetadataModules.IMAGE_PLANE, imageId);
47257
- const rowCosineVec = gl_matrix__rspack_import_4/* .vec3.fromValues */.eR.fA(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
47258
- const colCosineVec = gl_matrix__rspack_import_4/* .vec3.fromValues */.eR.fA(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
47259
- const scanAxisNormal = gl_matrix__rspack_import_4/* .vec3.cross */.eR.$A(gl_matrix__rspack_import_4/* .vec3.create */.eR.vt(), rowCosineVec, colCosineVec);
47222
+ const rowCosineVec = gl_matrix__rspack_import_4.vec3.fromValues(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
47223
+ const colCosineVec = gl_matrix__rspack_import_4.vec3.fromValues(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
47224
+ const scanAxisNormal = gl_matrix__rspack_import_4.vec3.cross(gl_matrix__rspack_import_4.vec3.create(), rowCosineVec, colCosineVec);
47260
47225
  let { orientation } = config || {};
47261
47226
  const { useViewportNormal } = config || {};
47262
47227
  let normalPlaneForOrientation = scanAxisNormal;
@@ -47269,13 +47234,13 @@ function getCameraVectors(viewport, config) {
47269
47234
  return calculateCameraPosition(rowCosineVec, colCosineVec, scanAxisNormal, orientation);
47270
47235
  }
47271
47236
  function getOrientationFromScanAxisNormal(scanAxisNormal) {
47272
- const normalizedScanAxis = gl_matrix__rspack_import_4/* .vec3.normalize */.eR.S8(gl_matrix__rspack_import_4/* .vec3.create */.eR.vt(), scanAxisNormal);
47273
- const axialNormal = gl_matrix__rspack_import_4/* .vec3.fromValues */.eR.fA(MPR_CAMERA_VALUES.axial.viewPlaneNormal[0], MPR_CAMERA_VALUES.axial.viewPlaneNormal[1], MPR_CAMERA_VALUES.axial.viewPlaneNormal[2]);
47274
- const sagittalNormal = gl_matrix__rspack_import_4/* .vec3.fromValues */.eR.fA(MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[0], MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[1], MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[2]);
47275
- const coronalNormal = gl_matrix__rspack_import_4/* .vec3.fromValues */.eR.fA(MPR_CAMERA_VALUES.coronal.viewPlaneNormal[0], MPR_CAMERA_VALUES.coronal.viewPlaneNormal[1], MPR_CAMERA_VALUES.coronal.viewPlaneNormal[2]);
47276
- const axialDot = Math.abs(gl_matrix__rspack_import_4/* .vec3.dot */.eR.Om(normalizedScanAxis, axialNormal));
47277
- const sagittalDot = Math.abs(gl_matrix__rspack_import_4/* .vec3.dot */.eR.Om(normalizedScanAxis, sagittalNormal));
47278
- const coronalDot = Math.abs(gl_matrix__rspack_import_4/* .vec3.dot */.eR.Om(normalizedScanAxis, coronalNormal));
47237
+ const normalizedScanAxis = gl_matrix__rspack_import_4.vec3.normalize(gl_matrix__rspack_import_4.vec3.create(), scanAxisNormal);
47238
+ const axialNormal = gl_matrix__rspack_import_4.vec3.fromValues(MPR_CAMERA_VALUES.axial.viewPlaneNormal[0], MPR_CAMERA_VALUES.axial.viewPlaneNormal[1], MPR_CAMERA_VALUES.axial.viewPlaneNormal[2]);
47239
+ const sagittalNormal = gl_matrix__rspack_import_4.vec3.fromValues(MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[0], MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[1], MPR_CAMERA_VALUES.sagittal.viewPlaneNormal[2]);
47240
+ const coronalNormal = gl_matrix__rspack_import_4.vec3.fromValues(MPR_CAMERA_VALUES.coronal.viewPlaneNormal[0], MPR_CAMERA_VALUES.coronal.viewPlaneNormal[1], MPR_CAMERA_VALUES.coronal.viewPlaneNormal[2]);
47241
+ const axialDot = Math.abs(gl_matrix__rspack_import_4.vec3.dot(normalizedScanAxis, axialNormal));
47242
+ const sagittalDot = Math.abs(gl_matrix__rspack_import_4.vec3.dot(normalizedScanAxis, sagittalNormal));
47243
+ const coronalDot = Math.abs(gl_matrix__rspack_import_4.vec3.dot(normalizedScanAxis, coronalNormal));
47279
47244
  if (axialDot >= sagittalDot && axialDot >= coronalDot) {
47280
47245
  return OrientationAxis.AXIAL;
47281
47246
  }
@@ -48900,7 +48865,7 @@ function extendedVtkCamera(publicAPI, model) {
48900
48865
  const [sx, sy] = (0,_utilities_getNormalizedAspectRatio_js__rspack_import_3/* .getNormalizedAspectRatio */.x)(model.aspectRatio);
48901
48866
  if (sx !== 1.0 || sy !== 1.0) {
48902
48867
  const scaleMatrix = (0,_helpers_getProjectionScaleMatrix_js__rspack_import_2/* .getProjectionScaleMatrix */.L)([sx, sy]);
48903
- gl_matrix__rspack_import_4/* .mat4.multiply */.pB.multiply(matrix, scaleMatrix, matrix);
48868
+ gl_matrix__rspack_import_4.mat4.multiply(matrix, scaleMatrix, matrix);
48904
48869
  }
48905
48870
  return matrix;
48906
48871
  };
@@ -51355,9 +51320,9 @@ function vtkOpenGLGlyph3DMapper(publicAPI, model) {
51355
51320
  const drawSurfaceWithEdges = actor.getProperty().getEdgeVisibility() && representation === Representation.SURFACE;
51356
51321
  const keyMats = model.openGLCamera.getKeyMatrices(ren);
51357
51322
  const actMats = model.openGLActor.getKeyMatrices();
51358
- esm/* .mat3.multiply */.w0.multiply(model.normalMatrix, keyMats.normalMatrix, actMats.normalMatrix);
51359
- esm/* .mat4.multiply */.pB.multiply(model.mcpcMatrix, keyMats.wcpc, actMats.mcwc);
51360
- esm/* .mat4.multiply */.pB.multiply(model.mcvcMatrix, keyMats.wcvc, actMats.mcwc);
51323
+ esm.mat3.multiply(model.normalMatrix, keyMats.normalMatrix, actMats.normalMatrix);
51324
+ esm.mat4.multiply(model.mcpcMatrix, keyMats.wcpc, actMats.mcwc);
51325
+ esm.mat4.multiply(model.mcvcMatrix, keyMats.wcvc, actMats.mcwc);
51361
51326
  const garray = model.renderable.getMatrixArray();
51362
51327
  const narray = model.renderable.getNormalArray();
51363
51328
  const carray = model.renderable.getColorArray();
@@ -51434,10 +51399,10 @@ function vtkOpenGLGlyph3DMapper(publicAPI, model) {
51434
51399
  if (useShiftAndScale) {
51435
51400
  const buf = garray.buffer;
51436
51401
  const shiftScaleMat = (0,helpers/* .computeInverseShiftAndScaleMatrix */.cW)(coordShift, coordScale);
51437
- esm/* .mat4.invert */.pB.invert(shiftScaleMat, shiftScaleMat);
51402
+ esm.mat4.invert(shiftScaleMat, shiftScaleMat);
51438
51403
  for (let ptIdx = 0; ptIdx < garray.byteLength; ptIdx += MAT4_BYTE_SIZE) {
51439
51404
  const mat = new Float32Array(buf, ptIdx, MAT4_ELEMENT_COUNT);
51440
- esm/* .mat4.multiply */.pB.multiply(mat, shiftScaleMat, mat);
51405
+ esm.mat4.multiply(mat, shiftScaleMat, mat);
51441
51406
  }
51442
51407
  }
51443
51408
  if (model.renderable.getBuildTime().getMTime() > model.glyphBOBuildTime.getMTime()) {
@@ -51475,10 +51440,10 @@ var Glyph3DMapper_DEFAULT_VALUES = {
51475
51440
  function Glyph3DMapper_extend(publicAPI, model, initialValues = {}) {
51476
51441
  Object.assign(model, Glyph3DMapper_DEFAULT_VALUES, initialValues);
51477
51442
  PolyDataMapper/* ["default"].extend */.Ay.extend(publicAPI, model, initialValues);
51478
- model.tmpMat3 = esm/* .mat3.identity */.w0.identity(new Float64Array(9));
51479
- model.normalMatrix = esm/* .mat3.identity */.w0.identity(new Float64Array(9));
51480
- model.mcpcMatrix = esm/* .mat4.identity */.pB.identity(new Float64Array(16));
51481
- model.mcvcMatrix = esm/* .mat4.identity */.pB.identity(new Float64Array(16));
51443
+ model.tmpMat3 = esm.mat3.identity(new Float64Array(9));
51444
+ model.normalMatrix = esm.mat3.identity(new Float64Array(9));
51445
+ model.mcpcMatrix = esm.mat4.identity(new Float64Array(16));
51446
+ model.mcvcMatrix = esm.mat4.identity(new Float64Array(16));
51482
51447
  model.tmpColor = [];
51483
51448
  model.glyphBOBuildTime = {};
51484
51449
  (0,macros/* .obj */.WL)(model.glyphBOBuildTime, { mtime: 0 });
@@ -51621,12 +51586,12 @@ function vtkOpenGLSphereMapper(publicAPI, model) {
51621
51586
  const tmp4 = new Float64Array(16);
51622
51587
  if (program.isUniformUsed("MCVCMatrix")) if (!actor.getIsIdentity()) {
51623
51588
  const actMats = model.openGLActor.getKeyMatrices();
51624
- esm/* .mat4.multiply */.pB.multiply(tmp4, keyMats.wcvc, actMats.mcwc);
51625
- if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) esm/* .mat4.multiply */.pB.multiply(tmp4, tmp4, cellBO.getCABO().getInverseShiftAndScaleMatrix());
51589
+ esm.mat4.multiply(tmp4, keyMats.wcvc, actMats.mcwc);
51590
+ if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) esm.mat4.multiply(tmp4, tmp4, cellBO.getCABO().getInverseShiftAndScaleMatrix());
51626
51591
  program.setUniformMatrix("MCVCMatrix", tmp4);
51627
51592
  } else {
51628
- esm/* .mat4.copy */.pB.copy(tmp4, keyMats.wcvc);
51629
- if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) esm/* .mat4.multiply */.pB.multiply(tmp4, tmp4, cellBO.getCABO().getInverseShiftAndScaleMatrix());
51593
+ esm.mat4.copy(tmp4, keyMats.wcvc);
51594
+ if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) esm.mat4.multiply(tmp4, tmp4, cellBO.getCABO().getInverseShiftAndScaleMatrix());
51630
51595
  program.setUniformMatrix("MCVCMatrix", tmp4);
51631
51596
  }
51632
51597
  if (program.isUniformUsed("cameraParallel")) cellBO.getProgram().setUniformi("cameraParallel", cam.getParallelProjection());
@@ -51864,12 +51829,12 @@ function vtkOpenGLStickMapper(publicAPI, model) {
51864
51829
  const actMats = model.openGLActor.getKeyMatrices();
51865
51830
  if (program.isUniformUsed("MCVCMatrix")) {
51866
51831
  const tmp4 = new Float64Array(16);
51867
- esm/* .mat4.multiply */.pB.multiply(tmp4, keyMats.wcvc, actMats.mcwc);
51832
+ esm.mat4.multiply(tmp4, keyMats.wcvc, actMats.mcwc);
51868
51833
  program.setUniformMatrix("MCVCMatrix", tmp4);
51869
51834
  }
51870
51835
  if (program.isUniformUsed("normalMatrix")) {
51871
51836
  const anorms = new Float64Array(9);
51872
- esm/* .mat3.multiply */.w0.multiply(anorms, keyMats.normalMatrix, actMats.normalMatrix);
51837
+ esm.mat3.multiply(anorms, keyMats.normalMatrix, actMats.normalMatrix);
51873
51838
  program.setUniformMatrix3x3("normalMatrix", anorms);
51874
51839
  }
51875
51840
  } else {
@@ -53725,19 +53690,19 @@ function extend(publicAPI, model, initialValues = {}) {
53725
53690
  const newInstance = _kitware_vtk_js_macros_js__rspack_import_0/* ["default"].newInstance */.Ay.newInstance(extend, 'vtkSlabCamera');
53726
53691
  function vtkSlabCamera(publicAPI, model) {
53727
53692
  model.classHierarchy.push('vtkSlabCamera');
53728
- const tmpMatrix = gl_matrix__rspack_import_3/* .mat4.identity */.pB.identity(new Float64Array(16));
53693
+ const tmpMatrix = gl_matrix__rspack_import_3.mat4.identity(new Float64Array(16));
53729
53694
  const tmpvec1 = new Float64Array(3);
53730
53695
  publicAPI.getProjectionMatrix = (aspect, nearz, farz) => {
53731
- const result = gl_matrix__rspack_import_3/* .mat4.create */.pB.create();
53696
+ const result = gl_matrix__rspack_import_3.mat4.create();
53732
53697
  if (model.projectionMatrix) {
53733
53698
  const scale = 1 / model.physicalScale;
53734
- gl_matrix__rspack_import_3/* .vec3.set */.eR.hZ(tmpvec1, scale, scale, scale);
53735
- gl_matrix__rspack_import_3/* .mat4.copy */.pB.copy(result, model.projectionMatrix);
53736
- gl_matrix__rspack_import_3/* .mat4.scale */.pB.scale(result, result, tmpvec1);
53737
- gl_matrix__rspack_import_3/* .mat4.transpose */.pB.transpose(result, result);
53699
+ gl_matrix__rspack_import_3.vec3.set(tmpvec1, scale, scale, scale);
53700
+ gl_matrix__rspack_import_3.mat4.copy(result, model.projectionMatrix);
53701
+ gl_matrix__rspack_import_3.mat4.scale(result, result, tmpvec1);
53702
+ gl_matrix__rspack_import_3.mat4.transpose(result, result);
53738
53703
  return result;
53739
53704
  }
53740
- gl_matrix__rspack_import_3/* .mat4.identity */.pB.identity(tmpMatrix);
53705
+ gl_matrix__rspack_import_3.mat4.identity(tmpMatrix);
53741
53706
  let cRange0 = model.clippingRange[0];
53742
53707
  let cRange1 = model.clippingRange[1];
53743
53708
  if (model.isPerformingCoordinateTransformation) {
@@ -53756,8 +53721,8 @@ function vtkSlabCamera(publicAPI, model) {
53756
53721
  const xmax = (model.windowCenter[0] + 1.0) * width;
53757
53722
  const ymin = (model.windowCenter[1] - 1.0) * height;
53758
53723
  const ymax = (model.windowCenter[1] + 1.0) * height;
53759
- gl_matrix__rspack_import_3/* .mat4.ortho */.pB.ortho(tmpMatrix, xmin, xmax, ymin, ymax, cRange[0], cRange[1]);
53760
- gl_matrix__rspack_import_3/* .mat4.transpose */.pB.transpose(tmpMatrix, tmpMatrix);
53724
+ gl_matrix__rspack_import_3.mat4.ortho(tmpMatrix, xmin, xmax, ymin, ymax, cRange[0], cRange[1]);
53725
+ gl_matrix__rspack_import_3.mat4.transpose(tmpMatrix, tmpMatrix);
53761
53726
  }
53762
53727
  else if (model.useOffAxisProjection) {
53763
53728
  throw new Error('Off-Axis projection is not supported at this time');
@@ -53792,9 +53757,9 @@ function vtkSlabCamera(publicAPI, model) {
53792
53757
  const [sx, sy] = (0,_utilities_getNormalizedAspectRatio_js__rspack_import_5/* .getNormalizedAspectRatio */.x)(model.aspectRatio);
53793
53758
  if (sx !== 1.0 || sy !== 1.0) {
53794
53759
  const scaleMatrix = (0,_helpers_getProjectionScaleMatrix_js__rspack_import_4/* .getProjectionScaleMatrix */.L)([sx, sy]);
53795
- gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(tmpMatrix, scaleMatrix, tmpMatrix);
53760
+ gl_matrix__rspack_import_3.mat4.multiply(tmpMatrix, scaleMatrix, tmpMatrix);
53796
53761
  }
53797
- gl_matrix__rspack_import_3/* .mat4.copy */.pB.copy(result, tmpMatrix);
53762
+ gl_matrix__rspack_import_3.mat4.copy(result, tmpMatrix);
53798
53763
  return result;
53799
53764
  };
53800
53765
  }
@@ -60952,19 +60917,19 @@ function calculateSpacingBetweenImageIds(imageIds) {
60952
60917
  }
60953
60918
  return DEFAULT_THICKNESS_SINGLE_SLICE;
60954
60919
  }
60955
- const rowCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
60956
- const colCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
60957
- const scanAxisNormal = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
60958
- gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(scanAxisNormal, rowCosineVec, colCosineVec);
60959
- const refIppVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(referenceImagePositionPatient[0], referenceImagePositionPatient[1], referenceImagePositionPatient[2]);
60920
+ const rowCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
60921
+ const colCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
60922
+ const scanAxisNormal = gl_matrix__rspack_import_0.vec3.create();
60923
+ gl_matrix__rspack_import_0.vec3.cross(scanAxisNormal, rowCosineVec, colCosineVec);
60924
+ const refIppVec = gl_matrix__rspack_import_0.vec3.fromValues(referenceImagePositionPatient[0], referenceImagePositionPatient[1], referenceImagePositionPatient[2]);
60960
60925
  const usingWadoUri = imageIds[0].split(':')[0] === 'wadouri';
60961
60926
  let spacing;
60962
60927
  function getDistance(imageId) {
60963
60928
  const { imagePositionPatient } = _metaData_js__rspack_import_1.get(_enums_index_js__rspack_import_2.MetadataModules.IMAGE_PLANE, imageId);
60964
- const positionVector = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
60965
- const ippVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imagePositionPatient[0], imagePositionPatient[1], imagePositionPatient[2]);
60966
- gl_matrix__rspack_import_0/* .vec3.sub */.eR.jb(positionVector, refIppVec, ippVec);
60967
- return gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(positionVector, scanAxisNormal);
60929
+ const positionVector = gl_matrix__rspack_import_0.vec3.create();
60930
+ const ippVec = gl_matrix__rspack_import_0.vec3.fromValues(imagePositionPatient[0], imagePositionPatient[1], imagePositionPatient[2]);
60931
+ gl_matrix__rspack_import_0.vec3.sub(positionVector, refIppVec, ippVec);
60932
+ return gl_matrix__rspack_import_0.vec3.dot(positionVector, scanAxisNormal);
60968
60933
  }
60969
60934
  if (!usingWadoUri) {
60970
60935
  const distanceImagePairs = imageIds.map((imageId) => {
@@ -60990,10 +60955,10 @@ function calculateSpacingBetweenImageIds(imageIds) {
60990
60955
  if (!metadataForMiddleImage) {
60991
60956
  throw new Error('Incomplete metadata required for volume construction.');
60992
60957
  }
60993
- const positionVector = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
60994
- const middleIppVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(metadataForMiddleImage.imagePositionPatient[0], metadataForMiddleImage.imagePositionPatient[1], metadataForMiddleImage.imagePositionPatient[2]);
60995
- gl_matrix__rspack_import_0/* .vec3.sub */.eR.jb(positionVector, refIppVec, middleIppVec);
60996
- const distanceBetweenFirstAndMiddleImages = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(positionVector, scanAxisNormal);
60958
+ const positionVector = gl_matrix__rspack_import_0.vec3.create();
60959
+ const middleIppVec = gl_matrix__rspack_import_0.vec3.fromValues(metadataForMiddleImage.imagePositionPatient[0], metadataForMiddleImage.imagePositionPatient[1], metadataForMiddleImage.imagePositionPatient[2]);
60960
+ gl_matrix__rspack_import_0.vec3.sub(positionVector, refIppVec, middleIppVec);
60961
+ const distanceBetweenFirstAndMiddleImages = gl_matrix__rspack_import_0.vec3.dot(positionVector, scanAxisNormal);
60997
60962
  spacing =
60998
60963
  Math.abs(distanceBetweenFirstAndMiddleImages) /
60999
60964
  Math.floor(imageIds.length / 2);
@@ -61103,7 +61068,7 @@ __webpack_require__.d(__webpack_exports__, {
61103
61068
 
61104
61069
 
61105
61070
  function createPositionCallback(imageData) {
61106
- const currentPos = gl_matrix_esm_vec3_js__rspack_import_0/* .create */.vt();
61071
+ const currentPos = gl_matrix_esm_vec3_js__rspack_import_0.create();
61107
61072
  const dimensions = imageData.getDimensions();
61108
61073
  const positionI = _PointsManager_js__rspack_import_1/* ["default"].create3 */.A.create3(dimensions[0]);
61109
61074
  const positionJ = _PointsManager_js__rspack_import_1/* ["default"].create3 */.A.create3(dimensions[1]);
@@ -61115,18 +61080,18 @@ function createPositionCallback(imageData) {
61115
61080
  const spacing = imageData.getSpacing();
61116
61081
  const [rowSpacing, columnSpacing, scanAxisSpacing] = spacing;
61117
61082
  const worldPosStart = imageData.indexToWorld([0, 0, 0]);
61118
- const rowStep = gl_matrix_esm_vec3_js__rspack_import_0/* .fromValues */.fA(rowCosines[0] * rowSpacing, rowCosines[1] * rowSpacing, rowCosines[2] * rowSpacing);
61119
- const columnStep = gl_matrix_esm_vec3_js__rspack_import_0/* .fromValues */.fA(columnCosines[0] * columnSpacing, columnCosines[1] * columnSpacing, columnCosines[2] * columnSpacing);
61120
- const scanAxisStep = gl_matrix_esm_vec3_js__rspack_import_0/* .fromValues */.fA(scanAxisNormal[0] * scanAxisSpacing, scanAxisNormal[1] * scanAxisSpacing, scanAxisNormal[2] * scanAxisSpacing);
61121
- const scaled = gl_matrix_esm_vec3_js__rspack_import_0/* .create */.vt();
61083
+ const rowStep = gl_matrix_esm_vec3_js__rspack_import_0.fromValues(rowCosines[0] * rowSpacing, rowCosines[1] * rowSpacing, rowCosines[2] * rowSpacing);
61084
+ const columnStep = gl_matrix_esm_vec3_js__rspack_import_0.fromValues(columnCosines[0] * columnSpacing, columnCosines[1] * columnSpacing, columnCosines[2] * columnSpacing);
61085
+ const scanAxisStep = gl_matrix_esm_vec3_js__rspack_import_0.fromValues(scanAxisNormal[0] * scanAxisSpacing, scanAxisNormal[1] * scanAxisSpacing, scanAxisNormal[2] * scanAxisSpacing);
61086
+ const scaled = gl_matrix_esm_vec3_js__rspack_import_0.create();
61122
61087
  for (let i = 0; i < dimensions[0]; i++) {
61123
- positionI.push(gl_matrix_esm_vec3_js__rspack_import_0/* .add */.WQ(scaled, worldPosStart, gl_matrix_esm_vec3_js__rspack_import_0/* .scale */.hs(scaled, rowStep, i)));
61088
+ positionI.push(gl_matrix_esm_vec3_js__rspack_import_0.add(scaled, worldPosStart, gl_matrix_esm_vec3_js__rspack_import_0.scale(scaled, rowStep, i)));
61124
61089
  }
61125
61090
  for (let j = 0; j < dimensions[1]; j++) {
61126
- positionJ.push(gl_matrix_esm_vec3_js__rspack_import_0/* .scale */.hs(scaled, columnStep, j));
61091
+ positionJ.push(gl_matrix_esm_vec3_js__rspack_import_0.scale(scaled, columnStep, j));
61127
61092
  }
61128
61093
  for (let k = 0; k < dimensions[2]; k++) {
61129
- positionK.push(gl_matrix_esm_vec3_js__rspack_import_0/* .scale */.hs(scaled, scanAxisStep, k));
61094
+ positionK.push(gl_matrix_esm_vec3_js__rspack_import_0.scale(scaled, scanAxisStep, k));
61130
61095
  }
61131
61096
  const dataI = positionI.getTypedArray();
61132
61097
  const dataJ = positionJ.getTypedArray();
@@ -61316,10 +61281,10 @@ const constructorToTypedArray = {
61316
61281
  function generateVolumePropsFromImageIds(imageIds, volumeId) {
61317
61282
  const volumeMetadata = (0,_makeVolumeMetadata_js__rspack_import_1/* ["default"] */.A)(imageIds);
61318
61283
  const { ImageOrientationPatient, PixelSpacing, Columns, Rows } = volumeMetadata;
61319
- const rowCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(ImageOrientationPatient[0], ImageOrientationPatient[1], ImageOrientationPatient[2]);
61320
- const colCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(ImageOrientationPatient[3], ImageOrientationPatient[4], ImageOrientationPatient[5]);
61321
- const scanAxisNormal = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
61322
- gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(scanAxisNormal, rowCosineVec, colCosineVec);
61284
+ const rowCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(ImageOrientationPatient[0], ImageOrientationPatient[1], ImageOrientationPatient[2]);
61285
+ const colCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(ImageOrientationPatient[3], ImageOrientationPatient[4], ImageOrientationPatient[5]);
61286
+ const scanAxisNormal = gl_matrix__rspack_import_0.vec3.create();
61287
+ gl_matrix__rspack_import_0.vec3.cross(scanAxisNormal, rowCosineVec, colCosineVec);
61323
61288
  const { zSpacing, origin, sortedImageIds } = (0,_sortImageIdsAndGetSpacing_js__rspack_import_2/* ["default"] */.A)(imageIds, scanAxisNormal);
61324
61289
  const numFrames = imageIds.length;
61325
61290
  const spacing = [PixelSpacing[1], PixelSpacing[0], zSpacing];
@@ -61470,7 +61435,7 @@ function getClosestImageId(imageVolume, worldPos, viewPlaneNormal, options) {
61470
61435
  return;
61471
61436
  }
61472
61437
  const kVector = direction.slice(6, 9);
61473
- const dotProduct = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(kVector, viewPlaneNormal);
61438
+ const dotProduct = gl_matrix__rspack_import_0.vec3.dot(kVector, viewPlaneNormal);
61474
61439
  if (Math.abs(dotProduct) < 1 - _constants_index_js__rspack_import_5.EPSILON) {
61475
61440
  return;
61476
61441
  }
@@ -61489,9 +61454,9 @@ function getClosestImageId(imageVolume, worldPos, viewPlaneNormal, options) {
61489
61454
  continue;
61490
61455
  }
61491
61456
  const { imagePositionPatient } = imagePlaneModule;
61492
- const dir = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
61493
- gl_matrix__rspack_import_0/* .vec3.sub */.eR.jb(dir, worldPos, imagePositionPatient);
61494
- const distance = Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(dir, viewPlaneNormal));
61457
+ const dir = gl_matrix__rspack_import_0.vec3.create();
61458
+ gl_matrix__rspack_import_0.vec3.sub(dir, worldPos, imagePositionPatient);
61459
+ const distance = Math.abs(gl_matrix__rspack_import_0.vec3.dot(dir, viewPlaneNormal));
61495
61460
  if (ignoreSpacing) {
61496
61461
  if (distance < minDistance) {
61497
61462
  minDistance = distance;
@@ -61532,10 +61497,10 @@ function getImageDataMetadata(image) {
61532
61497
  rowCosines = [1, 0, 0];
61533
61498
  columnCosines = [0, 1, 0];
61534
61499
  }
61535
- const rowCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(rowCosines[0], rowCosines[1], rowCosines[2]);
61536
- const colCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(columnCosines[0], columnCosines[1], columnCosines[2]);
61537
- const scanAxisNormal = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
61538
- gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(scanAxisNormal, rowCosineVec, colCosineVec);
61500
+ const rowCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(rowCosines[0], rowCosines[1], rowCosines[2]);
61501
+ const colCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(columnCosines[0], columnCosines[1], columnCosines[2]);
61502
+ const scanAxisNormal = gl_matrix__rspack_import_0.vec3.create();
61503
+ gl_matrix__rspack_import_0.vec3.cross(scanAxisNormal, rowCosineVec, colCosineVec);
61539
61504
  let origin = imagePlaneModule.imagePositionPatient;
61540
61505
  if (origin == null) {
61541
61506
  origin = [0, 0, 0];
@@ -61829,13 +61794,13 @@ function getSpacingInNormalDirection(imageVolume, viewPlaneNormal) {
61829
61794
  const jVector = direction.slice(3, 6);
61830
61795
  const kVector = direction.slice(6, 9);
61831
61796
  const dotProducts = [
61832
- gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(iVector, viewPlaneNormal),
61833
- gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(jVector, viewPlaneNormal),
61834
- gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(kVector, viewPlaneNormal),
61797
+ gl_matrix__rspack_import_0.vec3.dot(iVector, viewPlaneNormal),
61798
+ gl_matrix__rspack_import_0.vec3.dot(jVector, viewPlaneNormal),
61799
+ gl_matrix__rspack_import_0.vec3.dot(kVector, viewPlaneNormal),
61835
61800
  ];
61836
- const projectedSpacing = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
61837
- gl_matrix__rspack_import_0/* .vec3.set */.eR.hZ(projectedSpacing, dotProducts[0] * spacing[0], dotProducts[1] * spacing[1], dotProducts[2] * spacing[2]);
61838
- const spacingInNormalDirection = gl_matrix__rspack_import_0/* .vec3.length */.eR.Bw(projectedSpacing);
61801
+ const projectedSpacing = gl_matrix__rspack_import_0.vec3.create();
61802
+ gl_matrix__rspack_import_0.vec3.set(projectedSpacing, dotProducts[0] * spacing[0], dotProducts[1] * spacing[1], dotProducts[2] * spacing[2]);
61803
+ const spacingInNormalDirection = gl_matrix__rspack_import_0.vec3.length(projectedSpacing);
61839
61804
  return spacingInNormalDirection;
61840
61805
  }
61841
61806
 
@@ -62287,8 +62252,8 @@ __webpack_require__.d(__webpack_exports__, {
62287
62252
 
62288
62253
  function isAcquisitionPlaneNormal(imageVolume, viewPlaneNormal) {
62289
62254
  const { direction, dimensions, spacing } = imageVolume;
62290
- const scanAxis = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(direction[6], direction[7], direction[8]);
62291
- const cos = Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(scanAxis, viewPlaneNormal));
62255
+ const scanAxis = gl_matrix__rspack_import_0.vec3.fromValues(direction[6], direction[7], direction[8]);
62256
+ const cos = Math.abs(gl_matrix__rspack_import_0.vec3.dot(scanAxis, viewPlaneNormal));
62292
62257
  const sin = Math.sqrt(Math.max(0, 1 - cos * cos));
62293
62258
  const halfDiagonal = Math.hypot(dimensions[0] * spacing[0], dimensions[1] * spacing[1]) / 2;
62294
62259
  return sin * halfDiagonal < spacing[2] / 2;
@@ -62478,8 +62443,8 @@ __webpack_require__.d(__webpack_exports__, {
62478
62443
  /* import */ var gl_matrix__rspack_import_0 = __webpack_require__(50341);
62479
62444
 
62480
62445
  function rotateToViewCoordinates(imageData, viewPlaneNormal, viewUp) {
62481
- const viewRight = gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), viewPlaneNormal, viewUp);
62482
- gl_matrix__rspack_import_0/* .vec3.normalize */.eR.S8(viewRight, viewRight);
62446
+ const viewRight = gl_matrix__rspack_import_0.vec3.cross(gl_matrix__rspack_import_0.vec3.create(), viewPlaneNormal, viewUp);
62447
+ gl_matrix__rspack_import_0.vec3.normalize(viewRight, viewRight);
62483
62448
  const spatialExtent = imageData.getSpatialExtent();
62484
62449
  const xMin = spatialExtent[0];
62485
62450
  const xMax = spatialExtent[1];
@@ -62501,9 +62466,9 @@ function rotateToViewCoordinates(imageData, viewPlaneNormal, viewUp) {
62501
62466
  const worldPoint = [0, 0, 0];
62502
62467
  imageData.indexToWorld(corner, worldPoint);
62503
62468
  const viewPoint = [
62504
- gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(worldPoint, viewRight),
62505
- gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(worldPoint, viewUp),
62506
- gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(worldPoint, viewPlaneNormal),
62469
+ gl_matrix__rspack_import_0.vec3.dot(worldPoint, viewRight),
62470
+ gl_matrix__rspack_import_0.vec3.dot(worldPoint, viewUp),
62471
+ gl_matrix__rspack_import_0.vec3.dot(worldPoint, viewPlaneNormal),
62507
62472
  ];
62508
62473
  return viewPoint;
62509
62474
  });
@@ -62865,8 +62830,8 @@ function snapFocalPointToSlice(focalPoint, position, sliceRange, viewPlaneNormal
62865
62830
  newPosition: [...position],
62866
62831
  };
62867
62832
  }
62868
- const posDiffFromFocalPoint = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
62869
- gl_matrix__rspack_import_0/* .vec3.sub */.eR.jb(posDiffFromFocalPoint, position, focalPoint);
62833
+ const posDiffFromFocalPoint = gl_matrix__rspack_import_0.vec3.create();
62834
+ gl_matrix__rspack_import_0.vec3.sub(posDiffFromFocalPoint, position, focalPoint);
62870
62835
  const fraction = (current - min) / (max - min);
62871
62836
  const floatingStepNumber = fraction * steps;
62872
62837
  let frameIndex = Math.round(floatingStepNumber);
@@ -62918,19 +62883,19 @@ __webpack_require__.d(__webpack_exports__, {
62918
62883
  function sortImageIdsAndGetSpacing(imageIds, scanAxisNormal) {
62919
62884
  const { imagePositionPatient: referenceImagePositionPatient, imageOrientationPatient, } = _metaData_js__rspack_import_1.get(_enums_index_js__rspack_import_2.MetadataModules.IMAGE_PLANE, imageIds[0]);
62920
62885
  if (!scanAxisNormal) {
62921
- const rowCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
62922
- const colCosineVec = gl_matrix__rspack_import_0/* .vec3.fromValues */.eR.fA(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
62923
- scanAxisNormal = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
62924
- gl_matrix__rspack_import_0/* .vec3.cross */.eR.$A(scanAxisNormal, rowCosineVec, colCosineVec);
62886
+ const rowCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
62887
+ const colCosineVec = gl_matrix__rspack_import_0.vec3.fromValues(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
62888
+ scanAxisNormal = gl_matrix__rspack_import_0.vec3.create();
62889
+ gl_matrix__rspack_import_0.vec3.cross(scanAxisNormal, rowCosineVec, colCosineVec);
62925
62890
  }
62926
62891
  const usingWadoUri = imageIds[0].split(':')[0] === 'wadouri';
62927
62892
  const zSpacing = (0,_calculateSpacingBetweenImageIds_js__rspack_import_3/* ["default"] */.A)(imageIds);
62928
62893
  let sortedImageIds;
62929
62894
  function getDistance(imageId) {
62930
62895
  const { imagePositionPatient } = _metaData_js__rspack_import_1.get(_enums_index_js__rspack_import_2.MetadataModules.IMAGE_PLANE, imageId);
62931
- const positionVector = gl_matrix__rspack_import_0/* .vec3.create */.eR.vt();
62932
- gl_matrix__rspack_import_0/* .vec3.sub */.eR.jb(positionVector, referenceImagePositionPatient, imagePositionPatient);
62933
- return gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(positionVector, scanAxisNormal);
62896
+ const positionVector = gl_matrix__rspack_import_0.vec3.create();
62897
+ gl_matrix__rspack_import_0.vec3.sub(positionVector, referenceImagePositionPatient, imagePositionPatient);
62898
+ return gl_matrix__rspack_import_0.vec3.dot(positionVector, scanAxisNormal);
62934
62899
  }
62935
62900
  if (!usingWadoUri) {
62936
62901
  const distanceImagePairs = imageIds.map((imageId) => {
@@ -63045,8 +63010,8 @@ function updatePlaneRestriction(points, reference, viewRefSpecifier = {}) {
63045
63010
  return planeRestriction;
63046
63011
  }
63047
63012
  if (n === 2) {
63048
- const between = gl_matrix__rspack_import_1/* .vec3.sub */.eR.jb(gl_matrix__rspack_import_1/* .vec3.create */.eR.vt(), points[0], points[1]);
63049
- gl_matrix__rspack_import_1/* .vec3.normalize */.eR.S8(between, between);
63013
+ const between = gl_matrix__rspack_import_1.vec3.sub(gl_matrix__rspack_import_1.vec3.create(), points[0], points[1]);
63014
+ gl_matrix__rspack_import_1.vec3.normalize(between, between);
63050
63015
  planeRestriction.inPlaneVector1 = between;
63051
63016
  planeRestriction.inPlaneVector2 = null;
63052
63017
  return planeRestriction;
@@ -63056,22 +63021,22 @@ function updatePlaneRestriction(points, reference, viewRefSpecifier = {}) {
63056
63021
  !viewRefSpecifier.forceInPlaneVectors) {
63057
63022
  return planeRestriction;
63058
63023
  }
63059
- const v1 = gl_matrix__rspack_import_1/* .vec3.sub */.eR.jb(gl_matrix__rspack_import_1/* .vec3.create */.eR.vt(), points[0], points[Math.floor(n / 2)]);
63060
- gl_matrix__rspack_import_1/* .vec3.normalize */.eR.S8(v1, v1);
63024
+ const v1 = gl_matrix__rspack_import_1.vec3.sub(gl_matrix__rspack_import_1.vec3.create(), points[0], points[Math.floor(n / 2)]);
63025
+ gl_matrix__rspack_import_1.vec3.normalize(v1, v1);
63061
63026
  planeRestriction.inPlaneVector1 = v1;
63062
- const candidate = gl_matrix__rspack_import_1/* .vec3.create */.eR.vt();
63027
+ const candidate = gl_matrix__rspack_import_1.vec3.create();
63063
63028
  let bestVector = null;
63064
63029
  let bestCollinearity = ORTHOGONAL_TEST_VALUE;
63065
63030
  for (let i = Math.floor(n / 3); i < n; i++) {
63066
- gl_matrix__rspack_import_1/* .vec3.sub */.eR.jb(candidate, points[i], points[0]);
63067
- const length = gl_matrix__rspack_import_1/* .vec3.length */.eR.Bw(candidate);
63031
+ gl_matrix__rspack_import_1.vec3.sub(candidate, points[i], points[0]);
63032
+ const length = gl_matrix__rspack_import_1.vec3.length(candidate);
63068
63033
  if ((0,_utilities_isEqual_js__rspack_import_0/* .isEqual */.n4)(length, 0)) {
63069
63034
  continue;
63070
63035
  }
63071
- const collinearity = Math.abs(gl_matrix__rspack_import_1/* .vec3.dot */.eR.Om(candidate, planeRestriction.inPlaneVector1)) / length;
63036
+ const collinearity = Math.abs(gl_matrix__rspack_import_1.vec3.dot(candidate, planeRestriction.inPlaneVector1)) / length;
63072
63037
  if (collinearity < bestCollinearity) {
63073
63038
  bestCollinearity = collinearity;
63074
- bestVector = gl_matrix__rspack_import_1/* .vec3.scale */.eR.hs(gl_matrix__rspack_import_1/* .vec3.create */.eR.vt(), candidate, 1 / length);
63039
+ bestVector = gl_matrix__rspack_import_1.vec3.scale(gl_matrix__rspack_import_1.vec3.create(), candidate, 1 / length);
63075
63040
  }
63076
63041
  }
63077
63042
  if (bestVector) {
@@ -63088,9 +63053,9 @@ function updateReferencePoint(reference, point) {
63088
63053
  if (!cameraFocalPoint || !viewPlaneNormal) {
63089
63054
  return;
63090
63055
  }
63091
- const focalToPoint = gl_matrix__rspack_import_1/* .vec3.sub */.eR.jb(gl_matrix__rspack_import_1/* .vec3.create */.eR.vt(), point, cameraFocalPoint);
63092
- const depth = gl_matrix__rspack_import_1/* .vec3.dot */.eR.Om(focalToPoint, viewPlaneNormal);
63093
- reference.cameraFocalPoint = (gl_matrix__rspack_import_1/* .vec3.scaleAndAdd */.eR.Ln(gl_matrix__rspack_import_1/* .vec3.create */.eR.vt(), cameraFocalPoint, viewPlaneNormal, depth));
63056
+ const focalToPoint = gl_matrix__rspack_import_1.vec3.sub(gl_matrix__rspack_import_1.vec3.create(), point, cameraFocalPoint);
63057
+ const depth = gl_matrix__rspack_import_1.vec3.dot(focalToPoint, viewPlaneNormal);
63058
+ reference.cameraFocalPoint = (gl_matrix__rspack_import_1.vec3.scaleAndAdd(gl_matrix__rspack_import_1.vec3.create(), cameraFocalPoint, viewPlaneNormal, depth));
63094
63059
  }
63095
63060
 
63096
63061
  __webpack_require__.d(__webpack_exports__, {
@@ -63365,9 +63330,9 @@ function getVoxelThicknessAlongNormal(volume, normal) {
63365
63330
  const iVector = direction.slice(0, 3);
63366
63331
  const jVector = direction.slice(3, 6);
63367
63332
  const kVector = direction.slice(6, 9);
63368
- return (Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(iVector, normal)) * spacing[0] +
63369
- Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(jVector, normal)) * spacing[1] +
63370
- Math.abs(gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(kVector, normal)) * spacing[2]);
63333
+ return (Math.abs(gl_matrix__rspack_import_0.vec3.dot(iVector, normal)) * spacing[0] +
63334
+ Math.abs(gl_matrix__rspack_import_0.vec3.dot(jVector, normal)) * spacing[1] +
63335
+ Math.abs(gl_matrix__rspack_import_0.vec3.dot(kVector, normal)) * spacing[2]);
63371
63336
  }
63372
63337
 
63373
63338
  __webpack_require__.d(__webpack_exports__, {
@@ -63385,8 +63350,8 @@ __webpack_require__.d(__webpack_exports__, {
63385
63350
 
63386
63351
 
63387
63352
  function isPlaneDepthViewable(planePoint, focalPoint, viewPlaneNormal, referencePlaneThickness, viewportSlabThickness = 0) {
63388
- const pointVector = gl_matrix__rspack_import_0/* .vec3.sub */.eR.jb(gl_matrix__rspack_import_0/* .vec3.create */.eR.vt(), planePoint, focalPoint);
63389
- const depth = gl_matrix__rspack_import_0/* .vec3.dot */.eR.Om(pointVector, viewPlaneNormal);
63353
+ const pointVector = gl_matrix__rspack_import_0.vec3.sub(gl_matrix__rspack_import_0.vec3.create(), planePoint, focalPoint);
63354
+ const depth = gl_matrix__rspack_import_0.vec3.dot(pointVector, viewPlaneNormal);
63390
63355
  if (!Number.isFinite(referencePlaneThickness)) {
63391
63356
  return (0,_isEqual_js__rspack_import_1/* .isEqual */.n4)(0, depth);
63392
63357
  }
@@ -64098,10 +64063,10 @@ const DISPLAY_SET_HANDLER_NAMES = (/* unused pure expression or super */ null &&
64098
64063
  /* import */ var dcmjs__rspack_import_0 = __webpack_require__(85631);
64099
64064
 
64100
64065
  const TransferSyntaxes = {
64101
- IMPLICIT_VR_LITTLE_ENDIAN: dcmjs__rspack_import_0/* .constants.IMPLICIT_LITTLE_ENDIAN */.AA.IMPLICIT_LITTLE_ENDIAN,
64102
- EXPLICIT_VR_LITTLE_ENDIAN: dcmjs__rspack_import_0/* .constants.EXPLICIT_LITTLE_ENDIAN */.AA.EXPLICIT_LITTLE_ENDIAN,
64103
- DEFLATED_EXPLICIT_VR_LITTLE_ENDIAN: dcmjs__rspack_import_0/* .constants.DEFLATED_EXPLICIT_LITTLE_ENDIAN */.AA.DEFLATED_EXPLICIT_LITTLE_ENDIAN,
64104
- EXPLICIT_VR_BIG_ENDIAN: dcmjs__rspack_import_0/* .constants.EXPLICIT_BIG_ENDIAN */.AA.EXPLICIT_BIG_ENDIAN,
64066
+ IMPLICIT_VR_LITTLE_ENDIAN: dcmjs__rspack_import_0.constants.IMPLICIT_LITTLE_ENDIAN,
64067
+ EXPLICIT_VR_LITTLE_ENDIAN: dcmjs__rspack_import_0.constants.EXPLICIT_LITTLE_ENDIAN,
64068
+ DEFLATED_EXPLICIT_VR_LITTLE_ENDIAN: dcmjs__rspack_import_0.constants.DEFLATED_EXPLICIT_LITTLE_ENDIAN,
64069
+ EXPLICIT_VR_BIG_ENDIAN: dcmjs__rspack_import_0.constants.EXPLICIT_BIG_ENDIAN,
64105
64070
  RLE_LOSSLESS: '1.2.840.10008.1.2.5',
64106
64071
  MPEG2_MAIN_PROFILE_MAIN_LEVEL: '1.2.840.10008.1.2.4.100',
64107
64072
  MPEG2_MAIN_PROFILE_MAIN_LEVEL_FRAGMENTABLE: '1.2.840.10008.1.2.4.100.1',
@@ -66346,10 +66311,10 @@ const labelmapInterpolationLog = cs3dLog.getLogger('labelmapInterpolation');
66346
66311
  const aiLog = cs3dLog.getLogger('ai');
66347
66312
  const examplesLog = cs3dLog.getLogger('examples');
66348
66313
  const workerLog = cs3dLog.getLogger('worker');
66349
- const dicomConsistencyLog = dcmjs__rspack_import_0/* .log.getLogger */.Rm.getLogger('consistency.dicom');
66350
- const imageConsistencyLog = dcmjs__rspack_import_0/* .log.getLogger */.Rm.getLogger('consistency.image');
66314
+ const dicomConsistencyLog = dcmjs__rspack_import_0.log.getLogger('consistency.dicom');
66315
+ const imageConsistencyLog = dcmjs__rspack_import_0.log.getLogger('consistency.image');
66351
66316
  function getRootLogger(name) {
66352
- const logger = dcmjs__rspack_import_0/* .log.getLogger */.Rm.getLogger(name);
66317
+ const logger = dcmjs__rspack_import_0.log.getLogger(name);
66353
66318
  logger.getLogger = (...names) => getRootLogger(`${name}.${names.join('.')}`);
66354
66319
  return logger;
66355
66320
  }
@@ -66359,7 +66324,7 @@ function getLogger(...name) {
66359
66324
 
66360
66325
 
66361
66326
  __webpack_require__.d(__webpack_exports__, {
66362
- Rm: () => (/* reexport safe */ dcmjs__rspack_import_0.Rm),
66327
+ Rm: () => (/* reexport safe */ dcmjs__rspack_import_0.log),
66363
66328
  pp: () => (getRootLogger),
66364
66329
  tZ: () => (getLogger)
66365
66330
  }, {
@@ -67033,71 +66998,71 @@ var NoOp = (v) => v;
67033
66998
  var EPSILON = 1e-6;
67034
66999
  var Transform = class {
67035
67000
  constructor(useDegree = false) {
67036
- this.matrix = gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(new Float64Array(16));
67001
+ this.matrix = gl_matrix__rspack_import_2.mat4.identity(new Float64Array(16));
67037
67002
  this.tmp = new Float64Array(3);
67038
- this.angleConv = useDegree ? gl_matrix__rspack_import_2/* .glMatrix.toRadian */.Fd.DF : NoOp;
67003
+ this.angleConv = useDegree ? gl_matrix__rspack_import_2.glMatrix.toRadian : NoOp;
67039
67004
  }
67040
67005
  rotateFromDirections(originDirection, targetDirection) {
67041
67006
  const src = new Float64Array(3);
67042
67007
  const dst = new Float64Array(3);
67043
67008
  const transf = new Float64Array(16);
67044
- gl_matrix__rspack_import_2/* .vec3.set */.eR.hZ(src, originDirection[0], originDirection[1], originDirection[2]);
67045
- gl_matrix__rspack_import_2/* .vec3.set */.eR.hZ(dst, targetDirection[0], targetDirection[1], targetDirection[2]);
67046
- gl_matrix__rspack_import_2/* .vec3.normalize */.eR.S8(src, src);
67047
- gl_matrix__rspack_import_2/* .vec3.normalize */.eR.S8(dst, dst);
67048
- const cosAlpha = gl_matrix__rspack_import_2/* .vec3.dot */.eR.Om(src, dst);
67009
+ gl_matrix__rspack_import_2.vec3.set(src, originDirection[0], originDirection[1], originDirection[2]);
67010
+ gl_matrix__rspack_import_2.vec3.set(dst, targetDirection[0], targetDirection[1], targetDirection[2]);
67011
+ gl_matrix__rspack_import_2.vec3.normalize(src, src);
67012
+ gl_matrix__rspack_import_2.vec3.normalize(dst, dst);
67013
+ const cosAlpha = gl_matrix__rspack_import_2.vec3.dot(src, dst);
67049
67014
  if (cosAlpha >= 1) return this;
67050
- gl_matrix__rspack_import_2/* .vec3.cross */.eR.$A(this.tmp, src, dst);
67051
- if (gl_matrix__rspack_import_2/* .vec3.length */.eR.Bw(this.tmp) < EPSILON) {
67052
- gl_matrix__rspack_import_2/* .vec3.cross */.eR.$A(this.tmp, [
67015
+ gl_matrix__rspack_import_2.vec3.cross(this.tmp, src, dst);
67016
+ if (gl_matrix__rspack_import_2.vec3.length(this.tmp) < EPSILON) {
67017
+ gl_matrix__rspack_import_2.vec3.cross(this.tmp, [
67053
67018
  1,
67054
67019
  0,
67055
67020
  0
67056
67021
  ], originDirection);
67057
- if (gl_matrix__rspack_import_2/* .vec3.length */.eR.Bw(this.tmp) < EPSILON) gl_matrix__rspack_import_2/* .vec3.cross */.eR.$A(this.tmp, [
67022
+ if (gl_matrix__rspack_import_2.vec3.length(this.tmp) < EPSILON) gl_matrix__rspack_import_2.vec3.cross(this.tmp, [
67058
67023
  0,
67059
67024
  1,
67060
67025
  0
67061
67026
  ], originDirection);
67062
67027
  }
67063
- gl_matrix__rspack_import_2/* .mat4.fromRotation */.pB.fromRotation(transf, Math.acos(cosAlpha), this.tmp);
67064
- gl_matrix__rspack_import_2/* .mat4.multiply */.pB.multiply(this.matrix, this.matrix, transf);
67028
+ gl_matrix__rspack_import_2.mat4.fromRotation(transf, Math.acos(cosAlpha), this.tmp);
67029
+ gl_matrix__rspack_import_2.mat4.multiply(this.matrix, this.matrix, transf);
67065
67030
  return this;
67066
67031
  }
67067
67032
  rotate(angle, axis) {
67068
- gl_matrix__rspack_import_2/* .vec3.set */.eR.hZ(this.tmp, ...axis);
67069
- gl_matrix__rspack_import_2/* .vec3.normalize */.eR.S8(this.tmp, this.tmp);
67070
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(this.matrix, this.matrix, this.angleConv(angle), this.tmp);
67033
+ gl_matrix__rspack_import_2.vec3.set(this.tmp, ...axis);
67034
+ gl_matrix__rspack_import_2.vec3.normalize(this.tmp, this.tmp);
67035
+ gl_matrix__rspack_import_2.mat4.rotate(this.matrix, this.matrix, this.angleConv(angle), this.tmp);
67071
67036
  return this;
67072
67037
  }
67073
67038
  rotateX(angle) {
67074
- gl_matrix__rspack_import_2/* .mat4.rotateX */.pB.rotateX(this.matrix, this.matrix, this.angleConv(angle));
67039
+ gl_matrix__rspack_import_2.mat4.rotateX(this.matrix, this.matrix, this.angleConv(angle));
67075
67040
  return this;
67076
67041
  }
67077
67042
  rotateY(angle) {
67078
- gl_matrix__rspack_import_2/* .mat4.rotateY */.pB.rotateY(this.matrix, this.matrix, this.angleConv(angle));
67043
+ gl_matrix__rspack_import_2.mat4.rotateY(this.matrix, this.matrix, this.angleConv(angle));
67079
67044
  return this;
67080
67045
  }
67081
67046
  rotateZ(angle) {
67082
- gl_matrix__rspack_import_2/* .mat4.rotateZ */.pB.rotateZ(this.matrix, this.matrix, this.angleConv(angle));
67047
+ gl_matrix__rspack_import_2.mat4.rotateZ(this.matrix, this.matrix, this.angleConv(angle));
67083
67048
  return this;
67084
67049
  }
67085
67050
  translate(x, y, z) {
67086
- gl_matrix__rspack_import_2/* .vec3.set */.eR.hZ(this.tmp, x, y, z);
67087
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(this.matrix, this.matrix, this.tmp);
67051
+ gl_matrix__rspack_import_2.vec3.set(this.tmp, x, y, z);
67052
+ gl_matrix__rspack_import_2.mat4.translate(this.matrix, this.matrix, this.tmp);
67088
67053
  return this;
67089
67054
  }
67090
67055
  scale(sx, sy, sz) {
67091
- gl_matrix__rspack_import_2/* .vec3.set */.eR.hZ(this.tmp, sx, sy, sz);
67092
- gl_matrix__rspack_import_2/* .mat4.scale */.pB.scale(this.matrix, this.matrix, this.tmp);
67056
+ gl_matrix__rspack_import_2.vec3.set(this.tmp, sx, sy, sz);
67057
+ gl_matrix__rspack_import_2.mat4.scale(this.matrix, this.matrix, this.tmp);
67093
67058
  return this;
67094
67059
  }
67095
67060
  multiply(mat4x4) {
67096
- gl_matrix__rspack_import_2/* .mat4.multiply */.pB.multiply(this.matrix, this.matrix, mat4x4);
67061
+ gl_matrix__rspack_import_2.mat4.multiply(this.matrix, this.matrix, mat4x4);
67097
67062
  return this;
67098
67063
  }
67099
67064
  multiply3x3(mat3x3) {
67100
- gl_matrix__rspack_import_2/* .mat4.multiply */.pB.multiply(this.matrix, this.matrix, [
67065
+ gl_matrix__rspack_import_2.mat4.multiply(this.matrix, this.matrix, [
67101
67066
  mat3x3[0],
67102
67067
  mat3x3[1],
67103
67068
  mat3x3[2],
@@ -67118,19 +67083,19 @@ var Transform = class {
67118
67083
  return this;
67119
67084
  }
67120
67085
  invert() {
67121
- gl_matrix__rspack_import_2/* .mat4.invert */.pB.invert(this.matrix, this.matrix);
67086
+ gl_matrix__rspack_import_2.mat4.invert(this.matrix, this.matrix);
67122
67087
  return this;
67123
67088
  }
67124
67089
  identity() {
67125
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(this.matrix);
67090
+ gl_matrix__rspack_import_2.mat4.identity(this.matrix);
67126
67091
  return this;
67127
67092
  }
67128
67093
  apply(typedArray, offset = 0, nbIterations = -1) {
67129
67094
  if ((0,_Math_js__rspack_import_1/* .areMatricesEqual */.nY)(_Math_Constants_js__rspack_import_0/* .IDENTITY */.zK, this.matrix)) return this;
67130
67095
  const size = nbIterations === -1 ? typedArray.length : offset + nbIterations * 3;
67131
67096
  for (let i = offset; i < size; i += 3) {
67132
- gl_matrix__rspack_import_2/* .vec3.set */.eR.hZ(this.tmp, typedArray[i], typedArray[i + 1], typedArray[i + 2]);
67133
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(this.tmp, this.tmp, this.matrix);
67097
+ gl_matrix__rspack_import_2.vec3.set(this.tmp, typedArray[i], typedArray[i + 1], typedArray[i + 2]);
67098
+ gl_matrix__rspack_import_2.vec3.transformMat4(this.tmp, this.tmp, this.matrix);
67134
67099
  typedArray[i] = this.tmp[0];
67135
67100
  typedArray[i + 1] = this.tmp[1];
67136
67101
  typedArray[i + 2] = this.tmp[2];
@@ -67141,7 +67106,7 @@ var Transform = class {
67141
67106
  return this.matrix;
67142
67107
  }
67143
67108
  setMatrix(mat4x4) {
67144
- if (!!mat4x4 && mat4x4.length === 16) gl_matrix__rspack_import_2/* .mat4.copy */.pB.copy(this.matrix, mat4x4);
67109
+ if (!!mat4x4 && mat4x4.length === 16) gl_matrix__rspack_import_2.mat4.copy(this.matrix, mat4x4);
67145
67110
  return this;
67146
67111
  }
67147
67112
  };
@@ -68180,7 +68145,7 @@ function vtkImageData(publicAPI, model) {
68180
68145
  publicAPI.extentToBounds = (ex) => _BoundingBox_js__rspack_import_2/* ["default"].transformBounds */.Ay.transformBounds(ex, model.indexToWorld);
68181
68146
  publicAPI.getSpatialExtent = () => _BoundingBox_js__rspack_import_2/* ["default"].inflate */.Ay.inflate([...model.extent], .5);
68182
68147
  publicAPI.computeTransforms = () => {
68183
- gl_matrix__rspack_import_6/* .mat4.fromTranslation */.pB.fromTranslation(model.indexToWorld, model.origin);
68148
+ gl_matrix__rspack_import_6.mat4.fromTranslation(model.indexToWorld, model.origin);
68184
68149
  model.indexToWorld[0] = model.direction[0];
68185
68150
  model.indexToWorld[1] = model.direction[1];
68186
68151
  model.indexToWorld[2] = model.direction[2];
@@ -68190,16 +68155,16 @@ function vtkImageData(publicAPI, model) {
68190
68155
  model.indexToWorld[8] = model.direction[6];
68191
68156
  model.indexToWorld[9] = model.direction[7];
68192
68157
  model.indexToWorld[10] = model.direction[8];
68193
- gl_matrix__rspack_import_6/* .mat4.scale */.pB.scale(model.indexToWorld, model.indexToWorld, model.spacing);
68194
- gl_matrix__rspack_import_6/* .mat4.invert */.pB.invert(model.worldToIndex, model.indexToWorld);
68158
+ gl_matrix__rspack_import_6.mat4.scale(model.indexToWorld, model.indexToWorld, model.spacing);
68159
+ gl_matrix__rspack_import_6.mat4.invert(model.worldToIndex, model.indexToWorld);
68195
68160
  };
68196
68161
  publicAPI.indexToWorld = (ain, aout = []) => {
68197
- gl_matrix__rspack_import_6/* .vec3.transformMat4 */.eR.Z0(aout, ain, model.indexToWorld);
68162
+ gl_matrix__rspack_import_6.vec3.transformMat4(aout, ain, model.indexToWorld);
68198
68163
  return aout;
68199
68164
  };
68200
68165
  publicAPI.indexToWorldVec3 = publicAPI.indexToWorld;
68201
68166
  publicAPI.worldToIndex = (ain, aout = []) => {
68202
- gl_matrix__rspack_import_6/* .vec3.transformMat4 */.eR.Z0(aout, ain, model.worldToIndex);
68167
+ gl_matrix__rspack_import_6.vec3.transformMat4(aout, ain, model.worldToIndex);
68203
68168
  return aout;
68204
68169
  };
68205
68170
  publicAPI.worldToIndexVec3 = publicAPI.worldToIndex;
@@ -68339,7 +68304,7 @@ function vtkImageData(publicAPI, model) {
68339
68304
  const superInitialize = publicAPI.initialize;
68340
68305
  publicAPI.initialize = () => {
68341
68306
  publicAPI.set({
68342
- direction: gl_matrix__rspack_import_6/* .mat3.identity */.w0.identity(model.direction),
68307
+ direction: gl_matrix__rspack_import_6.mat3.identity(model.direction),
68343
68308
  spacing: [
68344
68309
  1,
68345
68310
  1,
@@ -68390,7 +68355,7 @@ var DEFAULT_VALUES = {
68390
68355
  function extend(publicAPI, model, initialValues = {}) {
68391
68356
  Object.assign(model, DEFAULT_VALUES, initialValues);
68392
68357
  _DataSet_js__rspack_import_3/* ["default"].extend */.Ay.extend(publicAPI, model, initialValues);
68393
- if (!model.direction) model.direction = gl_matrix__rspack_import_6/* .mat3.identity */.w0.identity(new Float64Array(9));
68358
+ if (!model.direction) model.direction = gl_matrix__rspack_import_6.mat3.identity(new Float64Array(9));
68394
68359
  else if (Array.isArray(model.direction)) model.direction = new Float64Array(model.direction.slice(0, 9));
68395
68360
  model.indexToWorld = new Float64Array(16);
68396
68361
  model.worldToIndex = new Float64Array(16);
@@ -68622,7 +68587,7 @@ function vtkLine(publicAPI, model) {
68622
68587
  };
68623
68588
  publicAPI.evaluateOrientation = (pcoords, q, weights) => {
68624
68589
  if (model.orientations) {
68625
- gl_matrix__rspack_import_4/* .quat.slerp */.Yu.nu(q, model.orientations[0], model.orientations[1], pcoords[0]);
68590
+ gl_matrix__rspack_import_4.quat.slerp(q, model.orientations[0], model.orientations[1], pcoords[0]);
68626
68591
  weights[0] = 1 - pcoords[0];
68627
68592
  weights[1] = pcoords[0];
68628
68593
  return true;
@@ -70535,7 +70500,7 @@ function vtkPolyLine(publicAPI, model) {
70535
70500
  model.points.getPoint(i, currentPoint);
70536
70501
  totalDistance += model.distanceFunction(previousPoint, currentPoint);
70537
70502
  model.distances[i] = totalDistance;
70538
- gl_matrix__rspack_import_3/* .vec3.copy */.eR.C(previousPoint, currentPoint);
70503
+ gl_matrix__rspack_import_3.vec3.copy(previousPoint, currentPoint);
70539
70504
  }
70540
70505
  }
70541
70506
  model.distancesTime.modified();
@@ -70558,7 +70523,7 @@ function vtkPolyLine(publicAPI, model) {
70558
70523
  }
70559
70524
  var DEFAULT_VALUES = {
70560
70525
  orientations: null,
70561
- distanceFunction: gl_matrix__rspack_import_3/* .vec3.dist */.eR.xg
70526
+ distanceFunction: gl_matrix__rspack_import_3.vec3.dist
70562
70527
  };
70563
70528
  function extend(publicAPI, model, initialValues = {}) {
70564
70529
  Object.assign(model, DEFAULT_VALUES, initialValues);
@@ -71497,7 +71462,7 @@ var newInstance;
71497
71462
  function vtkTransform(publicAPI, model) {
71498
71463
  model.classHierarchy.push("vtkAbstractTransform", "vtkHomogeneousTransform", "vtkTransform");
71499
71464
  publicAPI.transformPoint = (point, out) => {
71500
- gl_matrix__rspack_import_3/* .vec3.transformMat4 */.eR.Z0(out, point, model.matrix);
71465
+ gl_matrix__rspack_import_3.vec3.transformMat4(out, point, model.matrix);
71501
71466
  return out;
71502
71467
  };
71503
71468
  publicAPI.transformPoints = (points, out) => {
@@ -71507,7 +71472,7 @@ function vtkTransform(publicAPI, model) {
71507
71472
  inPoint[0] = points[i];
71508
71473
  inPoint[1] = points[i + 1];
71509
71474
  inPoint[2] = points[i + 2];
71510
- gl_matrix__rspack_import_3/* .vec3.transformMat4 */.eR.Z0(outPoint, inPoint, model.matrix);
71475
+ gl_matrix__rspack_import_3.vec3.transformMat4(outPoint, inPoint, model.matrix);
71511
71476
  out[i] = outPoint[0];
71512
71477
  out[i + 1] = outPoint[1];
71513
71478
  out[i + 2] = outPoint[2];
@@ -71533,14 +71498,14 @@ function vtkTransform(publicAPI, model) {
71533
71498
  publicAPI.setPreMultiplyFlag(false);
71534
71499
  };
71535
71500
  publicAPI.transformMatrix = (matrix, out) => {
71536
- if (model.preMultiplyFlag) gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(out, model.matrix, matrix);
71537
- else gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(out, matrix, model.matrix);
71501
+ if (model.preMultiplyFlag) gl_matrix__rspack_import_3.mat4.multiply(out, model.matrix, matrix);
71502
+ else gl_matrix__rspack_import_3.mat4.multiply(out, matrix, model.matrix);
71538
71503
  return out;
71539
71504
  };
71540
71505
  publicAPI.transformMatrices = (matrices, out) => {
71541
71506
  const inMat = new Float64Array(16);
71542
71507
  const outMat = new Float64Array(16);
71543
- const transform = model.preMultiplyFlag ? () => gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(outMat, model.matrix, inMat) : () => gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(outMat, inMat, model.matrix);
71508
+ const transform = model.preMultiplyFlag ? () => gl_matrix__rspack_import_3.mat4.multiply(outMat, model.matrix, inMat) : () => gl_matrix__rspack_import_3.mat4.multiply(outMat, inMat, model.matrix);
71544
71509
  for (let i = 0; i < matrices.length; i += 16) {
71545
71510
  for (let j = 0; j < 16; ++j) inMat[j] = matrices[i + j];
71546
71511
  transform();
@@ -71561,14 +71526,14 @@ function vtkTransform(publicAPI, model) {
71561
71526
  */
71562
71527
  publicAPI.translate = (x, y, z) => {
71563
71528
  if (x === 0 && y === 0 && z === 0) return;
71564
- const tMat = gl_matrix__rspack_import_3/* .mat4.create */.pB.create();
71565
- gl_matrix__rspack_import_3/* .mat4.fromTranslation */.pB.fromTranslation(tMat, [
71529
+ const tMat = gl_matrix__rspack_import_3.mat4.create();
71530
+ gl_matrix__rspack_import_3.mat4.fromTranslation(tMat, [
71566
71531
  x,
71567
71532
  y,
71568
71533
  z
71569
71534
  ]);
71570
- if (model.preMultiplyFlag) gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(model.matrix, model.matrix, tMat);
71571
- else gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(model.matrix, tMat, model.matrix);
71535
+ if (model.preMultiplyFlag) gl_matrix__rspack_import_3.mat4.multiply(model.matrix, model.matrix, tMat);
71536
+ else gl_matrix__rspack_import_3.mat4.multiply(model.matrix, tMat, model.matrix);
71572
71537
  publicAPI.modified();
71573
71538
  };
71574
71539
  /**
@@ -71587,16 +71552,16 @@ function vtkTransform(publicAPI, model) {
71587
71552
  }
71588
71553
  if (degrees === 0) return;
71589
71554
  const angle = _Core_Math_js__rspack_import_2/* ["default"].radiansFromDegrees */.Ay.radiansFromDegrees(degrees);
71590
- const q = gl_matrix__rspack_import_3/* .quat.create */.Yu.vt();
71591
- gl_matrix__rspack_import_3/* .quat.setAxisAngle */.Yu.x8(q, [
71555
+ const q = gl_matrix__rspack_import_3.quat.create();
71556
+ gl_matrix__rspack_import_3.quat.setAxisAngle(q, [
71592
71557
  x,
71593
71558
  y,
71594
71559
  z
71595
71560
  ], angle);
71596
71561
  const quatMat = new Float64Array(16);
71597
- gl_matrix__rspack_import_3/* .mat4.fromQuat */.pB.fromQuat(quatMat, q);
71598
- if (model.preMultiplyFlag) gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(model.matrix, model.matrix, quatMat);
71599
- else gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(model.matrix, quatMat, model.matrix);
71562
+ gl_matrix__rspack_import_3.mat4.fromQuat(quatMat, q);
71563
+ if (model.preMultiplyFlag) gl_matrix__rspack_import_3.mat4.multiply(model.matrix, model.matrix, quatMat);
71564
+ else gl_matrix__rspack_import_3.mat4.multiply(model.matrix, quatMat, model.matrix);
71600
71565
  publicAPI.modified();
71601
71566
  };
71602
71567
  /**
@@ -71637,14 +71602,14 @@ function vtkTransform(publicAPI, model) {
71637
71602
  */
71638
71603
  publicAPI.scale = (x, y, z) => {
71639
71604
  if (x === 1 && y === 1 && z === 1) return;
71640
- const sMat = gl_matrix__rspack_import_3/* .mat4.create */.pB.create();
71641
- gl_matrix__rspack_import_3/* .mat4.fromScaling */.pB.fromScaling(sMat, [
71605
+ const sMat = gl_matrix__rspack_import_3.mat4.create();
71606
+ gl_matrix__rspack_import_3.mat4.fromScaling(sMat, [
71642
71607
  x,
71643
71608
  y,
71644
71609
  z
71645
71610
  ]);
71646
- if (model.preMultiplyFlag) gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(model.matrix, model.matrix, sMat);
71647
- else gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(model.matrix, sMat, model.matrix);
71611
+ if (model.preMultiplyFlag) gl_matrix__rspack_import_3.mat4.multiply(model.matrix, model.matrix, sMat);
71612
+ else gl_matrix__rspack_import_3.mat4.multiply(model.matrix, sMat, model.matrix);
71648
71613
  publicAPI.modified();
71649
71614
  };
71650
71615
  /**
@@ -71654,11 +71619,11 @@ function vtkTransform(publicAPI, model) {
71654
71619
  * @returns {vec3} The transformed normal vector
71655
71620
  */
71656
71621
  publicAPI.transformNormal = (inNormal, outNormal = []) => {
71657
- const matrix3x3 = gl_matrix__rspack_import_3/* .mat3.fromMat4 */.w0.fromMat4(gl_matrix__rspack_import_3/* .mat3.create */.w0.create(), model.matrix);
71658
- const invMat3 = gl_matrix__rspack_import_3/* .mat3.create */.w0.create();
71659
- gl_matrix__rspack_import_3/* .mat3.invert */.w0.invert(invMat3, matrix3x3);
71660
- const tMat3 = gl_matrix__rspack_import_3/* .mat3.create */.w0.create();
71661
- gl_matrix__rspack_import_3/* .mat3.transpose */.w0.transpose(tMat3, invMat3);
71622
+ const matrix3x3 = gl_matrix__rspack_import_3.mat3.fromMat4(gl_matrix__rspack_import_3.mat3.create(), model.matrix);
71623
+ const invMat3 = gl_matrix__rspack_import_3.mat3.create();
71624
+ gl_matrix__rspack_import_3.mat3.invert(invMat3, matrix3x3);
71625
+ const tMat3 = gl_matrix__rspack_import_3.mat3.create();
71626
+ gl_matrix__rspack_import_3.mat3.transpose(tMat3, invMat3);
71662
71627
  publicAPI.transformVector(inNormal, outNormal, tMat3);
71663
71628
  _Core_Math_js__rspack_import_2/* ["default"].normalize */.Ay.normalize(outNormal);
71664
71629
  return outNormal;
@@ -71677,11 +71642,11 @@ function vtkTransform(publicAPI, model) {
71677
71642
  0,
71678
71643
  0
71679
71644
  ];
71680
- const matrix3x3 = gl_matrix__rspack_import_3/* .mat3.fromMat4 */.w0.fromMat4(gl_matrix__rspack_import_3/* .mat3.create */.w0.create(), model.matrix);
71681
- const invMat3 = gl_matrix__rspack_import_3/* .mat3.create */.w0.create();
71682
- gl_matrix__rspack_import_3/* .mat3.invert */.w0.invert(invMat3, matrix3x3);
71683
- const tMat3 = gl_matrix__rspack_import_3/* .mat3.create */.w0.create();
71684
- gl_matrix__rspack_import_3/* .mat3.transpose */.w0.transpose(tMat3, invMat3);
71645
+ const matrix3x3 = gl_matrix__rspack_import_3.mat3.fromMat4(gl_matrix__rspack_import_3.mat3.create(), model.matrix);
71646
+ const invMat3 = gl_matrix__rspack_import_3.mat3.create();
71647
+ gl_matrix__rspack_import_3.mat3.invert(invMat3, matrix3x3);
71648
+ const tMat3 = gl_matrix__rspack_import_3.mat3.create();
71649
+ gl_matrix__rspack_import_3.mat3.transpose(tMat3, invMat3);
71685
71650
  for (let i = 0; i < inArr.length; i += 3) {
71686
71651
  tmp[0] = inArr[i];
71687
71652
  tmp[1] = inArr[i + 1];
@@ -71701,8 +71666,8 @@ function vtkTransform(publicAPI, model) {
71701
71666
  * @returns {vec3} The transformed vector
71702
71667
  */
71703
71668
  publicAPI.transformVector = (inVector, outVector = [], matrix = null) => {
71704
- const matrix3x3 = matrix || gl_matrix__rspack_import_3/* .mat3.fromMat4 */.w0.fromMat4(gl_matrix__rspack_import_3/* .mat3.create */.w0.create(), model.matrix);
71705
- gl_matrix__rspack_import_3/* .vec3.transformMat3 */.eR.ei(outVector, inVector, matrix3x3);
71669
+ const matrix3x3 = matrix || gl_matrix__rspack_import_3.mat3.fromMat4(gl_matrix__rspack_import_3.mat3.create(), model.matrix);
71670
+ gl_matrix__rspack_import_3.vec3.transformMat3(outVector, inVector, matrix3x3);
71706
71671
  return outVector;
71707
71672
  };
71708
71673
  /**
@@ -76165,9 +76130,9 @@ function vtkAbstractMapper(publicAPI, model) {
76165
76130
  }
76166
76131
  const outHNormal = hnormal || new Float64Array(4);
76167
76132
  getClipPlaneEquation(model.clippingPlanes[i], tmpClipWorldPlane);
76168
- esm/* .mat4.invert */.pB.invert(tmpClipMatrix, worldToCoords);
76169
- esm/* .mat4.transpose */.pB.transpose(tmpClipMatrix, tmpClipMatrix);
76170
- esm/* .vec4.transformMat4 */.ln.Z0(outHNormal, tmpClipWorldPlane, tmpClipMatrix);
76133
+ esm.mat4.invert(tmpClipMatrix, worldToCoords);
76134
+ esm.mat4.transpose(tmpClipMatrix, tmpClipMatrix);
76135
+ esm.vec4.transformMat4(outHNormal, tmpClipWorldPlane, tmpClipMatrix);
76171
76136
  return outHNormal;
76172
76137
  };
76173
76138
  publicAPI.getClippingPlaneInDataCoords = (coordsToWorld, i, hnormal) => {
@@ -76176,7 +76141,7 @@ function vtkAbstractMapper(publicAPI, model) {
76176
76141
  const n = clipPlanes.length;
76177
76142
  if (i >= 0 && i < n) {
76178
76143
  getClipPlaneEquation(clipPlanes[i], tmpClipWorldPlane);
76179
- esm/* .vec4.transformMat4 */.ln.Z0(hnormal, tmpClipWorldPlane, coordsToWorld);
76144
+ esm.vec4.transformMat4(hnormal, tmpClipWorldPlane, coordsToWorld);
76180
76145
  return;
76181
76146
  }
76182
76147
  }
@@ -76360,13 +76325,13 @@ function vtkCamera(publicAPI, model) {
76360
76325
  1,
76361
76326
  0
76362
76327
  ]);
76363
- const tmpMatrix = gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(new Float64Array(16));
76364
- const tmpMatrix2 = gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(new Float64Array(16));
76328
+ const tmpMatrix = gl_matrix__rspack_import_2.mat4.identity(new Float64Array(16));
76329
+ const tmpMatrix2 = gl_matrix__rspack_import_2.mat4.identity(new Float64Array(16));
76365
76330
  const tmpvec1 = new Float64Array(3);
76366
76331
  const tmpvec2 = new Float64Array(3);
76367
76332
  const tmpvec3 = new Float64Array(3);
76368
- const rotateMatrix = gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(new Float64Array(16));
76369
- const trans = gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(new Float64Array(16));
76333
+ const rotateMatrix = gl_matrix__rspack_import_2.mat4.identity(new Float64Array(16));
76334
+ const trans = gl_matrix__rspack_import_2.mat4.identity(new Float64Array(16));
76370
76335
  const newPosition = new Float64Array(3);
76371
76336
  const newFocalPoint = new Float64Array(3);
76372
76337
  function computeViewPlaneNormal() {
@@ -76443,14 +76408,14 @@ function vtkCamera(publicAPI, model) {
76443
76408
  up[2],
76444
76409
  0
76445
76410
  ]);
76446
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(rotateMatrix);
76411
+ gl_matrix__rspack_import_2.mat4.identity(rotateMatrix);
76447
76412
  const viewDir = new Float64Array([
76448
76413
  at[0] - eye[0],
76449
76414
  at[1] - eye[1],
76450
76415
  at[2] - eye[2]
76451
76416
  ]);
76452
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(rotateMatrix, rotateMatrix, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), viewDir);
76453
- gl_matrix__rspack_import_2/* .vec4.transformMat4 */.ln.Z0(viewUpVec4, viewUpVec4, rotateMatrix);
76417
+ gl_matrix__rspack_import_2.mat4.rotate(rotateMatrix, rotateMatrix, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), viewDir);
76418
+ gl_matrix__rspack_import_2.vec4.transformMat4(viewUpVec4, viewUpVec4, rotateMatrix);
76454
76419
  model.viewUp[0] = viewUpVec4[0];
76455
76420
  model.viewUp[1] = viewUpVec4[1];
76456
76421
  model.viewUp[2] = viewUpVec4[2];
@@ -76458,28 +76423,28 @@ function vtkCamera(publicAPI, model) {
76458
76423
  };
76459
76424
  publicAPI.azimuth = (angle) => {
76460
76425
  const fp = model.focalPoint;
76461
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(trans);
76462
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(trans, trans, fp);
76463
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(trans, trans, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), model.viewUp);
76464
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(trans, trans, [
76426
+ gl_matrix__rspack_import_2.mat4.identity(trans);
76427
+ gl_matrix__rspack_import_2.mat4.translate(trans, trans, fp);
76428
+ gl_matrix__rspack_import_2.mat4.rotate(trans, trans, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), model.viewUp);
76429
+ gl_matrix__rspack_import_2.mat4.translate(trans, trans, [
76465
76430
  -fp[0],
76466
76431
  -fp[1],
76467
76432
  -fp[2]
76468
76433
  ]);
76469
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(newPosition, model.position, trans);
76434
+ gl_matrix__rspack_import_2.vec3.transformMat4(newPosition, model.position, trans);
76470
76435
  publicAPI.setPosition(newPosition[0], newPosition[1], newPosition[2]);
76471
76436
  };
76472
76437
  publicAPI.yaw = (angle) => {
76473
76438
  const position = model.position;
76474
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(trans);
76475
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(trans, trans, position);
76476
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(trans, trans, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), model.viewUp);
76477
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(trans, trans, [
76439
+ gl_matrix__rspack_import_2.mat4.identity(trans);
76440
+ gl_matrix__rspack_import_2.mat4.translate(trans, trans, position);
76441
+ gl_matrix__rspack_import_2.mat4.rotate(trans, trans, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), model.viewUp);
76442
+ gl_matrix__rspack_import_2.mat4.translate(trans, trans, [
76478
76443
  -position[0],
76479
76444
  -position[1],
76480
76445
  -position[2]
76481
76446
  ]);
76482
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(newFocalPoint, model.focalPoint, trans);
76447
+ gl_matrix__rspack_import_2.vec3.transformMat4(newFocalPoint, model.focalPoint, trans);
76483
76448
  publicAPI.setFocalPoint(newFocalPoint[0], newFocalPoint[1], newFocalPoint[2]);
76484
76449
  };
76485
76450
  publicAPI.elevation = (angle) => {
@@ -76490,15 +76455,15 @@ function vtkCamera(publicAPI, model) {
76490
76455
  -tmpMatrix[1],
76491
76456
  -tmpMatrix[2]
76492
76457
  ];
76493
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(trans);
76494
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(trans, trans, fp);
76495
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(trans, trans, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), axis);
76496
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(trans, trans, [
76458
+ gl_matrix__rspack_import_2.mat4.identity(trans);
76459
+ gl_matrix__rspack_import_2.mat4.translate(trans, trans, fp);
76460
+ gl_matrix__rspack_import_2.mat4.rotate(trans, trans, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), axis);
76461
+ gl_matrix__rspack_import_2.mat4.translate(trans, trans, [
76497
76462
  -fp[0],
76498
76463
  -fp[1],
76499
76464
  -fp[2]
76500
76465
  ]);
76501
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(newPosition, model.position, trans);
76466
+ gl_matrix__rspack_import_2.vec3.transformMat4(newPosition, model.position, trans);
76502
76467
  publicAPI.setPosition(newPosition[0], newPosition[1], newPosition[2]);
76503
76468
  };
76504
76469
  publicAPI.pitch = (angle) => {
@@ -76509,15 +76474,15 @@ function vtkCamera(publicAPI, model) {
76509
76474
  tmpMatrix[1],
76510
76475
  tmpMatrix[2]
76511
76476
  ];
76512
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(trans);
76513
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(trans, trans, position);
76514
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(trans, trans, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), axis);
76515
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(trans, trans, [
76477
+ gl_matrix__rspack_import_2.mat4.identity(trans);
76478
+ gl_matrix__rspack_import_2.mat4.translate(trans, trans, position);
76479
+ gl_matrix__rspack_import_2.mat4.rotate(trans, trans, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(angle), axis);
76480
+ gl_matrix__rspack_import_2.mat4.translate(trans, trans, [
76516
76481
  -position[0],
76517
76482
  -position[1],
76518
76483
  -position[2]
76519
76484
  ]);
76520
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(newFocalPoint, model.focalPoint, trans);
76485
+ gl_matrix__rspack_import_2.vec3.transformMat4(newFocalPoint, model.focalPoint, trans);
76521
76486
  publicAPI.setFocalPoint(...newFocalPoint);
76522
76487
  };
76523
76488
  publicAPI.zoom = (factor) => {
@@ -76545,9 +76510,9 @@ function vtkCamera(publicAPI, model) {
76545
76510
  vuOld[0] += model.position[0];
76546
76511
  vuOld[1] += model.position[1];
76547
76512
  vuOld[2] += model.position[2];
76548
- gl_matrix__rspack_import_2/* .vec4.transformMat4 */.ln.Z0(posNew, [...model.position, 1], transformMat4);
76549
- gl_matrix__rspack_import_2/* .vec4.transformMat4 */.ln.Z0(fpNew, [...model.focalPoint, 1], transformMat4);
76550
- gl_matrix__rspack_import_2/* .vec4.transformMat4 */.ln.Z0(vuNew, vuOld, transformMat4);
76513
+ gl_matrix__rspack_import_2.vec4.transformMat4(posNew, [...model.position, 1], transformMat4);
76514
+ gl_matrix__rspack_import_2.vec4.transformMat4(fpNew, [...model.focalPoint, 1], transformMat4);
76515
+ gl_matrix__rspack_import_2.vec4.transformMat4(vuNew, vuOld, transformMat4);
76551
76516
  vuNew[0] -= posNew[0];
76552
76517
  vuNew[1] -= posNew[1];
76553
76518
  vuNew[2] -= posNew[2];
@@ -76618,7 +76583,7 @@ function vtkCamera(publicAPI, model) {
76618
76583
  ];
76619
76584
  const matrix = publicAPI.getCompositeProjectionMatrix(aspect, -1, 1);
76620
76585
  for (let i = 0; i < 6; i++) {
76621
- gl_matrix__rspack_import_2/* .vec4.transformMat4 */.ln.Z0(normals[i], normals[i], matrix);
76586
+ gl_matrix__rspack_import_2.vec4.transformMat4(normals[i], normals[i], matrix);
76622
76587
  (0,_Common_Core_Math_js__rspack_import_1/* .normalize4D */.aA)(normals[i]);
76623
76588
  planes[4 * i + 0] = normals[i][0];
76624
76589
  planes[4 * i + 1] = normals[i][1];
@@ -76628,20 +76593,20 @@ function vtkCamera(publicAPI, model) {
76628
76593
  return planes;
76629
76594
  };
76630
76595
  publicAPI.getCameraLightTransformMatrix = (matrix) => {
76631
- gl_matrix__rspack_import_2/* .mat4.copy */.pB.copy(matrix, model.cameraLightTransform);
76596
+ gl_matrix__rspack_import_2.mat4.copy(matrix, model.cameraLightTransform);
76632
76597
  return matrix;
76633
76598
  };
76634
76599
  publicAPI.computeCameraLightTransform = () => {
76635
76600
  publicAPI.getViewMatrix(tmpMatrix);
76636
- gl_matrix__rspack_import_2/* .mat4.invert */.pB.invert(tmpMatrix, tmpMatrix);
76637
- gl_matrix__rspack_import_2/* .mat4.fromScaling */.pB.fromScaling(tmpMatrix2, [
76601
+ gl_matrix__rspack_import_2.mat4.invert(tmpMatrix, tmpMatrix);
76602
+ gl_matrix__rspack_import_2.mat4.fromScaling(tmpMatrix2, [
76638
76603
  model.distance,
76639
76604
  model.distance,
76640
76605
  model.distance
76641
76606
  ]);
76642
- gl_matrix__rspack_import_2/* .mat4.multiply */.pB.multiply(tmpMatrix, tmpMatrix, tmpMatrix2);
76643
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(model.cameraLightTransform);
76644
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(model.cameraLightTransform, tmpMatrix, [
76607
+ gl_matrix__rspack_import_2.mat4.multiply(tmpMatrix, tmpMatrix, tmpMatrix2);
76608
+ gl_matrix__rspack_import_2.mat4.identity(model.cameraLightTransform);
76609
+ gl_matrix__rspack_import_2.mat4.translate(model.cameraLightTransform, tmpMatrix, [
76645
76610
  0,
76646
76611
  0,
76647
76612
  -1
@@ -76649,12 +76614,12 @@ function vtkCamera(publicAPI, model) {
76649
76614
  };
76650
76615
  publicAPI.deepCopy = (sourceCamera) => {};
76651
76616
  publicAPI.physicalOrientationToWorldDirection = (ori) => {
76652
- const oriq = gl_matrix__rspack_import_2/* .quat.fromValues */.Yu.fA(ori[0], ori[1], ori[2], ori[3]);
76653
- const coriq = gl_matrix__rspack_import_2/* .quat.create */.Yu.vt();
76654
- const qdir = gl_matrix__rspack_import_2/* .quat.fromValues */.Yu.fA(0, 0, 1, 0);
76655
- gl_matrix__rspack_import_2/* .quat.conjugate */.Yu.Xr(coriq, oriq);
76656
- gl_matrix__rspack_import_2/* .quat.multiply */.Yu.lw(qdir, oriq, qdir);
76657
- gl_matrix__rspack_import_2/* .quat.multiply */.Yu.lw(qdir, qdir, coriq);
76617
+ const oriq = gl_matrix__rspack_import_2.quat.fromValues(ori[0], ori[1], ori[2], ori[3]);
76618
+ const coriq = gl_matrix__rspack_import_2.quat.create();
76619
+ const qdir = gl_matrix__rspack_import_2.quat.fromValues(0, 0, 1, 0);
76620
+ gl_matrix__rspack_import_2.quat.conjugate(coriq, oriq);
76621
+ gl_matrix__rspack_import_2.quat.multiply(qdir, oriq, qdir);
76622
+ gl_matrix__rspack_import_2.quat.multiply(qdir, qdir, coriq);
76658
76623
  return [
76659
76624
  qdir[0],
76660
76625
  qdir[1],
@@ -76663,10 +76628,10 @@ function vtkCamera(publicAPI, model) {
76663
76628
  };
76664
76629
  publicAPI.getPhysicalToWorldMatrix = (result) => {
76665
76630
  publicAPI.getWorldToPhysicalMatrix(result);
76666
- gl_matrix__rspack_import_2/* .mat4.invert */.pB.invert(result, result);
76631
+ gl_matrix__rspack_import_2.mat4.invert(result, result);
76667
76632
  };
76668
76633
  publicAPI.getWorldToPhysicalMatrix = (result) => {
76669
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(result);
76634
+ gl_matrix__rspack_import_2.mat4.identity(result);
76670
76635
  const physVRight = [3];
76671
76636
  (0,_Common_Core_Math_js__rspack_import_1/* .cross */.$A)(model.physicalViewNorth, model.physicalViewUp, physVRight);
76672
76637
  result[0] = physVRight[0];
@@ -76678,48 +76643,48 @@ function vtkCamera(publicAPI, model) {
76678
76643
  result[8] = -model.physicalViewNorth[0];
76679
76644
  result[9] = -model.physicalViewNorth[1];
76680
76645
  result[10] = -model.physicalViewNorth[2];
76681
- gl_matrix__rspack_import_2/* .mat4.transpose */.pB.transpose(result, result);
76682
- gl_matrix__rspack_import_2/* .vec3.set */.eR.hZ(tmpvec1, 1 / model.physicalScale, 1 / model.physicalScale, 1 / model.physicalScale);
76683
- gl_matrix__rspack_import_2/* .mat4.scale */.pB.scale(result, result, tmpvec1);
76684
- gl_matrix__rspack_import_2/* .mat4.translate */.pB.translate(result, result, model.physicalTranslation);
76646
+ gl_matrix__rspack_import_2.mat4.transpose(result, result);
76647
+ gl_matrix__rspack_import_2.vec3.set(tmpvec1, 1 / model.physicalScale, 1 / model.physicalScale, 1 / model.physicalScale);
76648
+ gl_matrix__rspack_import_2.mat4.scale(result, result, tmpvec1);
76649
+ gl_matrix__rspack_import_2.mat4.translate(result, result, model.physicalTranslation);
76685
76650
  };
76686
76651
  publicAPI.computeViewParametersFromViewMatrix = (vmat) => {
76687
- gl_matrix__rspack_import_2/* .mat4.invert */.pB.invert(tmpMatrix, vmat);
76688
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(tmpvec1, origin, tmpMatrix);
76652
+ gl_matrix__rspack_import_2.mat4.invert(tmpMatrix, vmat);
76653
+ gl_matrix__rspack_import_2.vec3.transformMat4(tmpvec1, origin, tmpMatrix);
76689
76654
  publicAPI.computeDistance();
76690
76655
  const oldDist = model.distance;
76691
76656
  publicAPI.setPosition(tmpvec1[0], tmpvec1[1], tmpvec1[2]);
76692
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(tmpvec2, dopbasis, tmpMatrix);
76693
- gl_matrix__rspack_import_2/* .vec3.subtract */.eR.Re(tmpvec2, tmpvec2, tmpvec1);
76694
- gl_matrix__rspack_import_2/* .vec3.normalize */.eR.S8(tmpvec2, tmpvec2);
76657
+ gl_matrix__rspack_import_2.vec3.transformMat4(tmpvec2, dopbasis, tmpMatrix);
76658
+ gl_matrix__rspack_import_2.vec3.subtract(tmpvec2, tmpvec2, tmpvec1);
76659
+ gl_matrix__rspack_import_2.vec3.normalize(tmpvec2, tmpvec2);
76695
76660
  publicAPI.setDirectionOfProjection(tmpvec2[0], tmpvec2[1], tmpvec2[2]);
76696
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(tmpvec3, upbasis, tmpMatrix);
76697
- gl_matrix__rspack_import_2/* .vec3.subtract */.eR.Re(tmpvec3, tmpvec3, tmpvec1);
76698
- gl_matrix__rspack_import_2/* .vec3.normalize */.eR.S8(tmpvec3, tmpvec3);
76661
+ gl_matrix__rspack_import_2.vec3.transformMat4(tmpvec3, upbasis, tmpMatrix);
76662
+ gl_matrix__rspack_import_2.vec3.subtract(tmpvec3, tmpvec3, tmpvec1);
76663
+ gl_matrix__rspack_import_2.vec3.normalize(tmpvec3, tmpvec3);
76699
76664
  publicAPI.setViewUp(tmpvec3[0], tmpvec3[1], tmpvec3[2]);
76700
76665
  publicAPI.setDistance(oldDist);
76701
76666
  };
76702
76667
  publicAPI.computeViewParametersFromPhysicalMatrix = (mat) => {
76703
76668
  publicAPI.getWorldToPhysicalMatrix(tmpMatrix);
76704
- gl_matrix__rspack_import_2/* .mat4.multiply */.pB.multiply(tmpMatrix, mat, tmpMatrix);
76669
+ gl_matrix__rspack_import_2.mat4.multiply(tmpMatrix, mat, tmpMatrix);
76705
76670
  publicAPI.computeViewParametersFromViewMatrix(tmpMatrix);
76706
76671
  };
76707
76672
  publicAPI.setViewMatrix = (mat) => {
76708
76673
  model.viewMatrix = mat;
76709
76674
  if (model.viewMatrix) {
76710
76675
  publicAPI.computeViewParametersFromViewMatrix(model.viewMatrix);
76711
- gl_matrix__rspack_import_2/* .mat4.transpose */.pB.transpose(model.viewMatrix, model.viewMatrix);
76676
+ gl_matrix__rspack_import_2.mat4.transpose(model.viewMatrix, model.viewMatrix);
76712
76677
  }
76713
76678
  };
76714
76679
  publicAPI.getViewMatrix = (out = new Float64Array(16)) => {
76715
76680
  if (model.viewMatrix) {
76716
- if (model.modelTransformMatrix) gl_matrix__rspack_import_2/* .mat4.multiply */.pB.multiply(out, model.modelTransformMatrix, model.viewMatrix);
76717
- else gl_matrix__rspack_import_2/* .mat4.copy */.pB.copy(out, model.viewMatrix);
76681
+ if (model.modelTransformMatrix) gl_matrix__rspack_import_2.mat4.multiply(out, model.modelTransformMatrix, model.viewMatrix);
76682
+ else gl_matrix__rspack_import_2.mat4.copy(out, model.viewMatrix);
76718
76683
  return out;
76719
76684
  }
76720
- gl_matrix__rspack_import_2/* .mat4.lookAt */.pB.lookAt(out, model.position, model.focalPoint, model.viewUp);
76721
- gl_matrix__rspack_import_2/* .mat4.transpose */.pB.transpose(out, out);
76722
- if (model.modelTransformMatrix) gl_matrix__rspack_import_2/* .mat4.multiply */.pB.multiply(out, model.modelTransformMatrix, out);
76685
+ gl_matrix__rspack_import_2.mat4.lookAt(out, model.position, model.focalPoint, model.viewUp);
76686
+ gl_matrix__rspack_import_2.mat4.transpose(out, out);
76687
+ if (model.modelTransformMatrix) gl_matrix__rspack_import_2.mat4.multiply(out, model.modelTransformMatrix, out);
76723
76688
  return out;
76724
76689
  };
76725
76690
  publicAPI.setProjectionMatrix = (mat) => {
@@ -76727,16 +76692,16 @@ function vtkCamera(publicAPI, model) {
76727
76692
  };
76728
76693
  publicAPI.getProjectionMatrix = (aspect, nearz, farz) => {
76729
76694
  const result = new Float64Array(16);
76730
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(result);
76695
+ gl_matrix__rspack_import_2.mat4.identity(result);
76731
76696
  if (model.projectionMatrix) {
76732
76697
  const scale = 1 / model.physicalScale;
76733
- gl_matrix__rspack_import_2/* .vec3.set */.eR.hZ(tmpvec1, scale, scale, scale);
76734
- gl_matrix__rspack_import_2/* .mat4.copy */.pB.copy(result, model.projectionMatrix);
76735
- gl_matrix__rspack_import_2/* .mat4.scale */.pB.scale(result, result, tmpvec1);
76736
- gl_matrix__rspack_import_2/* .mat4.transpose */.pB.transpose(result, result);
76698
+ gl_matrix__rspack_import_2.vec3.set(tmpvec1, scale, scale, scale);
76699
+ gl_matrix__rspack_import_2.mat4.copy(result, model.projectionMatrix);
76700
+ gl_matrix__rspack_import_2.mat4.scale(result, result, tmpvec1);
76701
+ gl_matrix__rspack_import_2.mat4.transpose(result, result);
76737
76702
  return result;
76738
76703
  }
76739
- gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(tmpMatrix);
76704
+ gl_matrix__rspack_import_2.mat4.identity(tmpMatrix);
76740
76705
  const cWidth = model.clippingRange[1] - model.clippingRange[0];
76741
76706
  const cRange = [model.clippingRange[0] + (nearz + 1) * cWidth / 2, model.clippingRange[0] + (farz + 1) * cWidth / 2];
76742
76707
  if (model.parallelProjection) {
@@ -76746,8 +76711,8 @@ function vtkCamera(publicAPI, model) {
76746
76711
  const xmax = (model.windowCenter[0] + 1) * width;
76747
76712
  const ymin = (model.windowCenter[1] - 1) * height;
76748
76713
  const ymax = (model.windowCenter[1] + 1) * height;
76749
- gl_matrix__rspack_import_2/* .mat4.ortho */.pB.ortho(tmpMatrix, xmin, xmax, ymin, ymax, cRange[0], cRange[1]);
76750
- gl_matrix__rspack_import_2/* .mat4.transpose */.pB.transpose(tmpMatrix, tmpMatrix);
76714
+ gl_matrix__rspack_import_2.mat4.ortho(tmpMatrix, xmin, xmax, ymin, ymax, cRange[0], cRange[1]);
76715
+ gl_matrix__rspack_import_2.mat4.transpose(tmpMatrix, tmpMatrix);
76751
76716
  } else if (model.useOffAxisProjection) throw new Error("Off-Axis projection is not supported at this time");
76752
76717
  else {
76753
76718
  const tmp = Math.tan((0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(model.viewAngle) / 2);
@@ -76775,13 +76740,13 @@ function vtkCamera(publicAPI, model) {
76775
76740
  tmpMatrix[11] = -2 * znear * zfar / (zfar - znear);
76776
76741
  tmpMatrix[15] = 0;
76777
76742
  }
76778
- gl_matrix__rspack_import_2/* .mat4.copy */.pB.copy(result, tmpMatrix);
76743
+ gl_matrix__rspack_import_2.mat4.copy(result, tmpMatrix);
76779
76744
  return result;
76780
76745
  };
76781
76746
  publicAPI.getCompositeProjectionMatrix = (aspect, nearz, farz) => {
76782
76747
  const vMat = publicAPI.getViewMatrix();
76783
76748
  const pMat = publicAPI.getProjectionMatrix(aspect, nearz, farz);
76784
- gl_matrix__rspack_import_2/* .mat4.multiply */.pB.multiply(pMat, vMat, pMat);
76749
+ gl_matrix__rspack_import_2.mat4.multiply(pMat, vMat, pMat);
76785
76750
  return pMat;
76786
76751
  };
76787
76752
  publicAPI.setDirectionOfProjection = (x, y, z) => {
@@ -76798,43 +76763,43 @@ function vtkCamera(publicAPI, model) {
76798
76763
  publicAPI.setDeviceAngles = (alpha, beta, gamma, screen) => {
76799
76764
  const physVRight = [3];
76800
76765
  (0,_Common_Core_Math_js__rspack_import_1/* .cross */.$A)(model.physicalViewNorth, model.physicalViewUp, physVRight);
76801
- const rotmat = gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(new Float64Array(16));
76802
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(rotmat, rotmat, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(alpha), model.physicalViewUp);
76803
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(rotmat, rotmat, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(beta), physVRight);
76804
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(rotmat, rotmat, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(gamma), model.physicalViewNorth);
76805
- gl_matrix__rspack_import_2/* .mat4.rotate */.pB.rotate(rotmat, rotmat, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(-screen), model.physicalViewUp);
76766
+ const rotmat = gl_matrix__rspack_import_2.mat4.identity(new Float64Array(16));
76767
+ gl_matrix__rspack_import_2.mat4.rotate(rotmat, rotmat, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(alpha), model.physicalViewUp);
76768
+ gl_matrix__rspack_import_2.mat4.rotate(rotmat, rotmat, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(beta), physVRight);
76769
+ gl_matrix__rspack_import_2.mat4.rotate(rotmat, rotmat, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(gamma), model.physicalViewNorth);
76770
+ gl_matrix__rspack_import_2.mat4.rotate(rotmat, rotmat, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(-screen), model.physicalViewUp);
76806
76771
  const dop = new Float64Array([
76807
76772
  -model.physicalViewUp[0],
76808
76773
  -model.physicalViewUp[1],
76809
76774
  -model.physicalViewUp[2]
76810
76775
  ]);
76811
76776
  const vup = new Float64Array(model.physicalViewNorth);
76812
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(dop, dop, rotmat);
76813
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(vup, vup, rotmat);
76777
+ gl_matrix__rspack_import_2.vec3.transformMat4(dop, dop, rotmat);
76778
+ gl_matrix__rspack_import_2.vec3.transformMat4(vup, vup, rotmat);
76814
76779
  publicAPI.setDirectionOfProjection(dop[0], dop[1], dop[2]);
76815
76780
  publicAPI.setViewUp(vup[0], vup[1], vup[2]);
76816
76781
  publicAPI.modified();
76817
76782
  };
76818
76783
  publicAPI.setOrientationWXYZ = (degrees, x, y, z) => {
76819
- const quatMat = gl_matrix__rspack_import_2/* .mat4.identity */.pB.identity(new Float64Array(16));
76784
+ const quatMat = gl_matrix__rspack_import_2.mat4.identity(new Float64Array(16));
76820
76785
  if (degrees !== 0 && (x !== 0 || y !== 0 || z !== 0)) {
76821
76786
  const angle = (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(degrees);
76822
- const q = gl_matrix__rspack_import_2/* .quat.create */.Yu.vt();
76823
- gl_matrix__rspack_import_2/* .quat.setAxisAngle */.Yu.x8(q, [
76787
+ const q = gl_matrix__rspack_import_2.quat.create();
76788
+ gl_matrix__rspack_import_2.quat.setAxisAngle(q, [
76824
76789
  x,
76825
76790
  y,
76826
76791
  z
76827
76792
  ], angle);
76828
- gl_matrix__rspack_import_2/* .mat4.fromQuat */.pB.fromQuat(quatMat, q);
76793
+ gl_matrix__rspack_import_2.mat4.fromQuat(quatMat, q);
76829
76794
  }
76830
76795
  const newdop = new Float64Array(3);
76831
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(newdop, [
76796
+ gl_matrix__rspack_import_2.vec3.transformMat4(newdop, [
76832
76797
  0,
76833
76798
  0,
76834
76799
  -1
76835
76800
  ], quatMat);
76836
76801
  const newvup = new Float64Array(3);
76837
- gl_matrix__rspack_import_2/* .vec3.transformMat4 */.eR.Z0(newvup, [
76802
+ gl_matrix__rspack_import_2.vec3.transformMat4(newvup, [
76838
76803
  0,
76839
76804
  1,
76840
76805
  0
@@ -76913,7 +76878,7 @@ var DEFAULT_VALUES = {
76913
76878
  projectionMatrix: null,
76914
76879
  viewMatrix: null,
76915
76880
  modelTransformMatrix: null,
76916
- cameraLightTransform: gl_matrix__rspack_import_2/* .mat4.create */.pB.create(),
76881
+ cameraLightTransform: gl_matrix__rspack_import_2.mat4.create(),
76917
76882
  physicalTranslation: [
76918
76883
  0,
76919
76884
  0,
@@ -77997,7 +77962,7 @@ function doPicking(p1, p2, mapper) {
77997
77962
  worldNormal[0] -= worldOrigin[0];
77998
77963
  worldNormal[1] -= worldOrigin[1];
77999
77964
  worldNormal[2] -= worldOrigin[2];
78000
- esm/* .vec3.normalize */.eR.S8(worldNormal, worldNormal);
77965
+ esm.vec3.normalize(worldNormal, worldNormal);
78001
77966
  const intersect = Plane/* ["default"].intersectWithLine */.Ay.intersectWithLine(p1, p2, worldOrigin, worldNormal);
78002
77967
  if (intersect.intersection) {
78003
77968
  const point = intersect.x;
@@ -78506,8 +78471,8 @@ var tmpTangent2 = [
78506
78471
  0,
78507
78472
  0
78508
78473
  ];
78509
- var tmpVec3a = gl_matrix__rspack_import_2/* .vec3.create */.eR.vt();
78510
- var tmpVec3b = gl_matrix__rspack_import_2/* .vec3.create */.eR.vt();
78474
+ var tmpVec3a = gl_matrix__rspack_import_2.vec3.create();
78475
+ var tmpVec3b = gl_matrix__rspack_import_2.vec3.create();
78511
78476
  function computeSliceTangents(slicePlane, planeNormalOut = [
78512
78477
  0,
78513
78478
  0,
@@ -78550,10 +78515,10 @@ function computeSliceTangents(slicePlane, planeNormalOut = [
78550
78515
  };
78551
78516
  }
78552
78517
  function computeInputOutlineBasis(imageData, tangent1, tangent2, texelSizeOut) {
78553
- gl_matrix__rspack_import_2/* .mat3.set */.w0.set(tmpMat3, ...imageData.getDirection());
78554
- gl_matrix__rspack_import_2/* .mat3.invert */.w0.invert(tmpMat3, tmpMat3);
78555
- gl_matrix__rspack_import_2/* .vec3.transformMat3 */.eR.ei(tmpVec3a, tangent1, tmpMat3);
78556
- gl_matrix__rspack_import_2/* .vec3.transformMat3 */.eR.ei(tmpVec3b, tangent2, tmpMat3);
78518
+ gl_matrix__rspack_import_2.mat3.set(tmpMat3, ...imageData.getDirection());
78519
+ gl_matrix__rspack_import_2.mat3.invert(tmpMat3, tmpMat3);
78520
+ gl_matrix__rspack_import_2.vec3.transformMat3(tmpVec3a, tangent1, tmpMat3);
78521
+ gl_matrix__rspack_import_2.vec3.transformMat3(tmpVec3b, tangent2, tmpMat3);
78557
78522
  const dims = imageData.getDimensions();
78558
78523
  const spacing = imageData.getSpacing();
78559
78524
  const minSpacing = Math.min(Math.abs(spacing[0]), Math.abs(spacing[1]), Math.abs(spacing[2]));
@@ -78594,7 +78559,7 @@ var tmpAxisAlignedN = [
78594
78559
  function isVectorAxisAligned(n) {
78595
78560
  _Common_Core_Math_js__rspack_import_0/* ["default"].normalize */.Ay.normalize(n);
78596
78561
  for (let i = 0; i < 3; ++i) {
78597
- gl_matrix__rspack_import_2/* .vec3.zero */.eR.v_(tmpAxisAlignedN);
78562
+ gl_matrix__rspack_import_2.vec3.zero(tmpAxisAlignedN);
78598
78563
  tmpAxisAlignedN[i] = 1;
78599
78564
  const dotP = _Common_Core_Math_js__rspack_import_0/* ["default"].dot */.Ay.dot(n, tmpAxisAlignedN);
78600
78565
  if (dotP < -.999999 || dotP > .999999) return [true, i];
@@ -78620,11 +78585,11 @@ function computeResliceGeometryState(renderable, firstImageData) {
78620
78585
  resGeomString = `Plane${slicePlane.getMTime()}`;
78621
78586
  if (firstImageData) {
78622
78587
  resGeomString = `${resGeomString}Image${firstImageData.getMTime()}`;
78623
- const w2io = gl_matrix__rspack_import_2/* .mat3.create */.w0.create();
78624
- gl_matrix__rspack_import_2/* .mat3.set */.w0.set(w2io, ...firstImageData.getDirection());
78625
- gl_matrix__rspack_import_2/* .mat3.invert */.w0.invert(w2io, w2io);
78588
+ const w2io = gl_matrix__rspack_import_2.mat3.create();
78589
+ gl_matrix__rspack_import_2.mat3.set(w2io, ...firstImageData.getDirection());
78590
+ gl_matrix__rspack_import_2.mat3.invert(w2io, w2io);
78626
78591
  const imageLocalNormal = [...slicePlane.getNormal()];
78627
- gl_matrix__rspack_import_2/* .vec3.transformMat3 */.eR.ei(imageLocalNormal, imageLocalNormal, w2io);
78592
+ gl_matrix__rspack_import_2.vec3.transformMat3(imageLocalNormal, imageLocalNormal, w2io);
78628
78593
  [orthoSlicing, orthoAxis] = isVectorAxisAligned(imageLocalNormal);
78629
78594
  }
78630
78595
  } else {
@@ -78956,7 +78921,7 @@ function vtkImageSlice(publicAPI, model) {
78956
78921
  if (!BoundingBox/* ["default"].isValid */.Ay.isValid(bds)) return bds;
78957
78922
  publicAPI.computeMatrix();
78958
78923
  const tmp4 = new Float64Array(16);
78959
- esm/* .mat4.transpose */.pB.transpose(tmp4, model.matrix);
78924
+ esm.mat4.transpose(tmp4, model.matrix);
78960
78925
  return BoundingBox/* ["default"].transformBounds */.Ay.transformBounds(bds, tmp4);
78961
78926
  };
78962
78927
  publicAPI.getMinXBound = () => publicAPI.getBoundsByReference()[0];
@@ -80175,50 +80140,50 @@ function vtkProp3D(publicAPI, model) {
80175
80140
  publicAPI.modified();
80176
80141
  };
80177
80142
  publicAPI.getOrientationWXYZ = () => {
80178
- const q = gl_matrix__rspack_import_4/* .quat.create */.Yu.vt();
80179
- gl_matrix__rspack_import_4/* .mat4.getRotation */.pB.getRotation(q, model.rotation);
80143
+ const q = gl_matrix__rspack_import_4.quat.create();
80144
+ gl_matrix__rspack_import_4.mat4.getRotation(q, model.rotation);
80180
80145
  const oaxis = new Float64Array(3);
80181
80146
  return [
80182
- (0,_Common_Core_Math_js__rspack_import_1/* .degreesFromRadians */.WK)(gl_matrix__rspack_import_4/* .quat.getAxisAngle */.Yu.Xd(oaxis, q)),
80147
+ (0,_Common_Core_Math_js__rspack_import_1/* .degreesFromRadians */.WK)(gl_matrix__rspack_import_4.quat.getAxisAngle(oaxis, q)),
80183
80148
  oaxis[0],
80184
80149
  oaxis[1],
80185
80150
  oaxis[2]
80186
80151
  ];
80187
80152
  };
80188
- publicAPI.getOrientationQuaternion = (out = []) => gl_matrix__rspack_import_4/* .mat4.getRotation */.pB.getRotation(out, model.rotation);
80153
+ publicAPI.getOrientationQuaternion = (out = []) => gl_matrix__rspack_import_4.mat4.getRotation(out, model.rotation);
80189
80154
  publicAPI.rotateX = (val) => {
80190
80155
  if (val === 0) return;
80191
- gl_matrix__rspack_import_4/* .mat4.rotateX */.pB.rotateX(model.rotation, model.rotation, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(val));
80156
+ gl_matrix__rspack_import_4.mat4.rotateX(model.rotation, model.rotation, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(val));
80192
80157
  publicAPI.modified();
80193
80158
  };
80194
80159
  publicAPI.rotateY = (val) => {
80195
80160
  if (val === 0) return;
80196
- gl_matrix__rspack_import_4/* .mat4.rotateY */.pB.rotateY(model.rotation, model.rotation, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(val));
80161
+ gl_matrix__rspack_import_4.mat4.rotateY(model.rotation, model.rotation, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(val));
80197
80162
  publicAPI.modified();
80198
80163
  };
80199
80164
  publicAPI.rotateZ = (val) => {
80200
80165
  if (val === 0) return;
80201
- gl_matrix__rspack_import_4/* .mat4.rotateZ */.pB.rotateZ(model.rotation, model.rotation, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(val));
80166
+ gl_matrix__rspack_import_4.mat4.rotateZ(model.rotation, model.rotation, (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(val));
80202
80167
  publicAPI.modified();
80203
80168
  };
80204
80169
  publicAPI.rotateWXYZ = (degrees, x, y, z) => {
80205
80170
  if (degrees === 0 || x === 0 && y === 0 && z === 0) return;
80206
80171
  const angle = (0,_Common_Core_Math_js__rspack_import_1/* .radiansFromDegrees */.el)(degrees);
80207
- const q = gl_matrix__rspack_import_4/* .quat.create */.Yu.vt();
80208
- gl_matrix__rspack_import_4/* .quat.setAxisAngle */.Yu.x8(q, [
80172
+ const q = gl_matrix__rspack_import_4.quat.create();
80173
+ gl_matrix__rspack_import_4.quat.setAxisAngle(q, [
80209
80174
  x,
80210
80175
  y,
80211
80176
  z
80212
80177
  ], angle);
80213
80178
  const quatMat = new Float64Array(16);
80214
- gl_matrix__rspack_import_4/* .mat4.fromQuat */.pB.fromQuat(quatMat, q);
80215
- gl_matrix__rspack_import_4/* .mat4.multiply */.pB.multiply(model.rotation, model.rotation, quatMat);
80179
+ gl_matrix__rspack_import_4.mat4.fromQuat(quatMat, q);
80180
+ gl_matrix__rspack_import_4.mat4.multiply(model.rotation, model.rotation, quatMat);
80216
80181
  publicAPI.modified();
80217
80182
  };
80218
80183
  publicAPI.rotateQuaternion = (orientationQuaternion) => {
80219
80184
  if (Math.abs(orientationQuaternion[3]) >= 1 - VTK_EPSILON) return;
80220
- const oriQuatMat = gl_matrix__rspack_import_4/* .mat4.fromQuat */.pB.fromQuat(new Float64Array(16), orientationQuaternion);
80221
- gl_matrix__rspack_import_4/* .mat4.multiply */.pB.multiply(model.rotation, model.rotation, oriQuatMat);
80185
+ const oriQuatMat = gl_matrix__rspack_import_4.mat4.fromQuat(new Float64Array(16), orientationQuaternion);
80186
+ gl_matrix__rspack_import_4.mat4.multiply(model.rotation, model.rotation, oriQuatMat);
80222
80187
  publicAPI.modified();
80223
80188
  };
80224
80189
  publicAPI.setOrientation = (x, y, z) => {
@@ -80228,7 +80193,7 @@ function vtkProp3D(publicAPI, model) {
80228
80193
  y,
80229
80194
  z
80230
80195
  ];
80231
- gl_matrix__rspack_import_4/* .mat4.identity */.pB.identity(model.rotation);
80196
+ gl_matrix__rspack_import_4.mat4.identity(model.rotation);
80232
80197
  publicAPI.rotateZ(z);
80233
80198
  publicAPI.rotateX(x);
80234
80199
  publicAPI.rotateY(y);
@@ -80236,8 +80201,8 @@ function vtkProp3D(publicAPI, model) {
80236
80201
  return true;
80237
80202
  };
80238
80203
  publicAPI.setOrientationFromQuaternion = (q) => {
80239
- const rotation = gl_matrix__rspack_import_4/* .mat4.create */.pB.create();
80240
- gl_matrix__rspack_import_4/* .mat4.fromQuat */.pB.fromQuat(rotation, q);
80204
+ const rotation = gl_matrix__rspack_import_4.mat4.create();
80205
+ gl_matrix__rspack_import_4.mat4.fromQuat(rotation, q);
80241
80206
  if (!(0,_Common_Core_Math_js__rspack_import_1/* .areMatricesEqual */.nY)(rotation, model.rotation)) {
80242
80207
  model.rotation = rotation;
80243
80208
  publicAPI.modified();
@@ -80247,7 +80212,7 @@ function vtkProp3D(publicAPI, model) {
80247
80212
  };
80248
80213
  publicAPI.setUserMatrix = (matrix) => {
80249
80214
  if ((0,_Common_Core_Math_js__rspack_import_1/* .areMatricesEqual */.nY)(model.userMatrix, matrix)) return false;
80250
- gl_matrix__rspack_import_4/* .mat4.copy */.pB.copy(model.userMatrix, matrix);
80215
+ gl_matrix__rspack_import_4.mat4.copy(model.userMatrix, matrix);
80251
80216
  publicAPI.modified();
80252
80217
  return true;
80253
80218
  };
@@ -80257,18 +80222,18 @@ function vtkProp3D(publicAPI, model) {
80257
80222
  };
80258
80223
  publicAPI.computeMatrix = () => {
80259
80224
  if (publicAPI.getMTime() > model.matrixMTime.getMTime()) {
80260
- gl_matrix__rspack_import_4/* .mat4.identity */.pB.identity(model.matrix);
80261
- if (model.userMatrix) gl_matrix__rspack_import_4/* .mat4.multiply */.pB.multiply(model.matrix, model.matrix, model.userMatrix);
80262
- gl_matrix__rspack_import_4/* .mat4.translate */.pB.translate(model.matrix, model.matrix, model.origin);
80263
- gl_matrix__rspack_import_4/* .mat4.translate */.pB.translate(model.matrix, model.matrix, model.position);
80264
- gl_matrix__rspack_import_4/* .mat4.multiply */.pB.multiply(model.matrix, model.matrix, model.rotation);
80265
- gl_matrix__rspack_import_4/* .mat4.scale */.pB.scale(model.matrix, model.matrix, model.scale);
80266
- gl_matrix__rspack_import_4/* .mat4.translate */.pB.translate(model.matrix, model.matrix, [
80225
+ gl_matrix__rspack_import_4.mat4.identity(model.matrix);
80226
+ if (model.userMatrix) gl_matrix__rspack_import_4.mat4.multiply(model.matrix, model.matrix, model.userMatrix);
80227
+ gl_matrix__rspack_import_4.mat4.translate(model.matrix, model.matrix, model.origin);
80228
+ gl_matrix__rspack_import_4.mat4.translate(model.matrix, model.matrix, model.position);
80229
+ gl_matrix__rspack_import_4.mat4.multiply(model.matrix, model.matrix, model.rotation);
80230
+ gl_matrix__rspack_import_4.mat4.scale(model.matrix, model.matrix, model.scale);
80231
+ gl_matrix__rspack_import_4.mat4.translate(model.matrix, model.matrix, [
80267
80232
  -model.origin[0],
80268
80233
  -model.origin[1],
80269
80234
  -model.origin[2]
80270
80235
  ]);
80271
- gl_matrix__rspack_import_4/* .mat4.transpose */.pB.transpose(model.matrix, model.matrix);
80236
+ gl_matrix__rspack_import_4.mat4.transpose(model.matrix, model.matrix);
80272
80237
  model.isIdentity = true;
80273
80238
  for (let i = 0; i < 4; ++i) for (let j = 0; j < 4; ++j) if ((i === j ? 1 : 0) !== model.matrix[i + j * 4]) model.isIdentity = false;
80274
80239
  model.matrixMTime.modified();
@@ -80291,7 +80256,7 @@ function vtkProp3D(publicAPI, model) {
80291
80256
  model.mapperBounds = bds;
80292
80257
  publicAPI.computeMatrix();
80293
80258
  const transposedMatrix = new Float64Array(16);
80294
- gl_matrix__rspack_import_4/* .mat4.transpose */.pB.transpose(transposedMatrix, model.matrix);
80259
+ gl_matrix__rspack_import_4.mat4.transpose(transposedMatrix, model.matrix);
80295
80260
  _Common_DataModel_BoundingBox_js__rspack_import_2/* ["default"].transformBounds */.Ay.transformBounds(bds, transposedMatrix, model.bounds);
80296
80261
  model.boundsMTime.modified();
80297
80262
  }
@@ -80385,9 +80350,9 @@ function extend(publicAPI, model, initialValues = {}) {
80385
80350
  ], 3);
80386
80351
  _macros_js__rspack_import_0/* ["default"].setGet */.Ay.setGet(publicAPI, model, ["properties"]);
80387
80352
  _macros_js__rspack_import_0/* ["default"].getArray */.Ay.getArray(publicAPI, model, ["bounds"], 6);
80388
- model.matrix = gl_matrix__rspack_import_4/* .mat4.identity */.pB.identity(new Float64Array(16));
80389
- model.rotation = gl_matrix__rspack_import_4/* .mat4.identity */.pB.identity(new Float64Array(16));
80390
- model.userMatrix = gl_matrix__rspack_import_4/* .mat4.identity */.pB.identity(new Float64Array(16));
80353
+ model.matrix = gl_matrix__rspack_import_4.mat4.identity(new Float64Array(16));
80354
+ model.rotation = gl_matrix__rspack_import_4.mat4.identity(new Float64Array(16));
80355
+ model.userMatrix = gl_matrix__rspack_import_4.mat4.identity(new Float64Array(16));
80391
80356
  model.transform = null;
80392
80357
  vtkProp3D(publicAPI, model);
80393
80358
  }
@@ -80624,18 +80589,18 @@ function vtkLight(publicAPI, model) {
80624
80589
  model.classHierarchy.push("vtkLight");
80625
80590
  const tmpVec = new Float64Array(3);
80626
80591
  publicAPI.getTransformedPosition = () => {
80627
- if (model.transformMatrix) esm/* .vec3.transformMat4 */.eR.Z0(tmpVec, model.position, model.transformMatrix);
80628
- else esm/* .vec3.set */.eR.hZ(tmpVec, model.position[0], model.position[1], model.position[2]);
80592
+ if (model.transformMatrix) esm.vec3.transformMat4(tmpVec, model.position, model.transformMatrix);
80593
+ else esm.vec3.set(tmpVec, model.position[0], model.position[1], model.position[2]);
80629
80594
  return tmpVec;
80630
80595
  };
80631
80596
  publicAPI.getTransformedFocalPoint = () => {
80632
- if (model.transformMatrix) esm/* .vec3.transformMat4 */.eR.Z0(tmpVec, model.focalPoint, model.transformMatrix);
80633
- else esm/* .vec3.set */.eR.hZ(tmpVec, model.focalPoint[0], model.focalPoint[1], model.focalPoint[2]);
80597
+ if (model.transformMatrix) esm.vec3.transformMat4(tmpVec, model.focalPoint, model.transformMatrix);
80598
+ else esm.vec3.set(tmpVec, model.focalPoint[0], model.focalPoint[1], model.focalPoint[2]);
80634
80599
  return tmpVec;
80635
80600
  };
80636
80601
  publicAPI.getDirection = () => {
80637
80602
  if (model.directionMTime < model.mtime) {
80638
- esm/* .vec3.sub */.eR.jb(model.direction, model.focalPoint, model.position);
80603
+ esm.vec3.sub(model.direction, model.focalPoint, model.position);
80639
80604
  (0,Core_Math/* .normalize */.S8)(model.direction);
80640
80605
  model.directionMTime = model.mtime;
80641
80606
  }
@@ -80643,7 +80608,7 @@ function vtkLight(publicAPI, model) {
80643
80608
  };
80644
80609
  publicAPI.setDirection = (directionVector) => {
80645
80610
  const newFocalPoint = new Float64Array(3);
80646
- esm/* .vec3.sub */.eR.jb(newFocalPoint, model.position, directionVector);
80611
+ esm.vec3.sub(newFocalPoint, model.position, directionVector);
80647
80612
  model.focalPoint = newFocalPoint;
80648
80613
  };
80649
80614
  publicAPI.setDirectionAngle = (elevation, azimuth) => {
@@ -80909,7 +80874,7 @@ function vtkRenderer(publicAPI, model) {
80909
80874
  light.setPositionFrom(camera.getPositionByReference());
80910
80875
  light.setFocalPointFrom(camera.getFocalPointByReference());
80911
80876
  light.modified(camera.getMTime());
80912
- } else if (light.lightTypeIsCameraLight()) light.setTransformMatrix(camera.getCameraLightTransformMatrix(esm/* .mat4.create */.pB.create()));
80877
+ } else if (light.lightTypeIsCameraLight()) light.setTransformMatrix(camera.getCameraLightTransformMatrix(esm.mat4.create()));
80913
80878
  else Renderer_vtkErrorMacro("light has unknown light type", light.get());
80914
80879
  });
80915
80880
  };
@@ -81050,14 +81015,14 @@ function vtkRenderer(publicAPI, model) {
81050
81015
  ];
81051
81016
  }
81052
81017
  const matrix = model.activeCamera.getViewMatrix();
81053
- esm/* .mat4.invert */.pB.invert(matrix, matrix);
81054
- esm/* .mat4.transpose */.pB.transpose(matrix, matrix);
81018
+ esm.mat4.invert(matrix, matrix);
81019
+ esm.mat4.transpose(matrix, matrix);
81055
81020
  const result = new Float64Array([
81056
81021
  x,
81057
81022
  y,
81058
81023
  z
81059
81024
  ]);
81060
- esm/* .vec3.transformMat4 */.eR.Z0(result, result, matrix);
81025
+ esm.vec3.transformMat4(result, result, matrix);
81061
81026
  return result;
81062
81027
  };
81063
81028
  publicAPI.projectionToView = (x, y, z, aspect) => {
@@ -81070,14 +81035,14 @@ function vtkRenderer(publicAPI, model) {
81070
81035
  ];
81071
81036
  }
81072
81037
  const matrix = model.activeCamera.getProjectionMatrix(aspect, -1, 1);
81073
- esm/* .mat4.invert */.pB.invert(matrix, matrix);
81074
- esm/* .mat4.transpose */.pB.transpose(matrix, matrix);
81038
+ esm.mat4.invert(matrix, matrix);
81039
+ esm.mat4.transpose(matrix, matrix);
81075
81040
  const result = new Float64Array([
81076
81041
  x,
81077
81042
  y,
81078
81043
  z
81079
81044
  ]);
81080
- esm/* .vec3.transformMat4 */.eR.Z0(result, result, matrix);
81045
+ esm.vec3.transformMat4(result, result, matrix);
81081
81046
  return result;
81082
81047
  };
81083
81048
  publicAPI.worldToView = (x, y, z) => {
@@ -81090,13 +81055,13 @@ function vtkRenderer(publicAPI, model) {
81090
81055
  ];
81091
81056
  }
81092
81057
  const matrix = model.activeCamera.getViewMatrix();
81093
- esm/* .mat4.transpose */.pB.transpose(matrix, matrix);
81058
+ esm.mat4.transpose(matrix, matrix);
81094
81059
  const result = new Float64Array([
81095
81060
  x,
81096
81061
  y,
81097
81062
  z
81098
81063
  ]);
81099
- esm/* .vec3.transformMat4 */.eR.Z0(result, result, matrix);
81064
+ esm.vec3.transformMat4(result, result, matrix);
81100
81065
  return result;
81101
81066
  };
81102
81067
  publicAPI.viewToProjection = (x, y, z, aspect) => {
@@ -81109,13 +81074,13 @@ function vtkRenderer(publicAPI, model) {
81109
81074
  ];
81110
81075
  }
81111
81076
  const matrix = model.activeCamera.getProjectionMatrix(aspect, -1, 1);
81112
- esm/* .mat4.transpose */.pB.transpose(matrix, matrix);
81077
+ esm.mat4.transpose(matrix, matrix);
81113
81078
  const result = new Float64Array([
81114
81079
  x,
81115
81080
  y,
81116
81081
  z
81117
81082
  ]);
81118
- esm/* .vec3.transformMat4 */.eR.Z0(result, result, matrix);
81083
+ esm.vec3.transformMat4(result, result, matrix);
81119
81084
  return result;
81120
81085
  };
81121
81086
  publicAPI.computeVisiblePropBounds = () => {
@@ -81797,13 +81762,13 @@ function vtkOpenGLActor(publicAPI, model) {
81797
81762
  publicAPI.getKeyMatrices = () => {
81798
81763
  if (model.renderable.getMTime() > model.keyMatrixTime.getMTime()) {
81799
81764
  model.renderable.computeMatrix();
81800
- gl_matrix__rspack_import_3/* .mat4.copy */.pB.copy(model.keyMatrices.mcwc, model.renderable.getMatrix());
81801
- gl_matrix__rspack_import_3/* .mat4.transpose */.pB.transpose(model.keyMatrices.mcwc, model.keyMatrices.mcwc);
81802
- if (model.renderable.getIsIdentity()) gl_matrix__rspack_import_3/* .mat3.identity */.w0.identity(model.keyMatrices.normalMatrix);
81765
+ gl_matrix__rspack_import_3.mat4.copy(model.keyMatrices.mcwc, model.renderable.getMatrix());
81766
+ gl_matrix__rspack_import_3.mat4.transpose(model.keyMatrices.mcwc, model.keyMatrices.mcwc);
81767
+ if (model.renderable.getIsIdentity()) gl_matrix__rspack_import_3.mat3.identity(model.keyMatrices.normalMatrix);
81803
81768
  else {
81804
- gl_matrix__rspack_import_3/* .mat3.fromMat4 */.w0.fromMat4(model.keyMatrices.normalMatrix, model.keyMatrices.mcwc);
81805
- gl_matrix__rspack_import_3/* .mat3.invert */.w0.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
81806
- gl_matrix__rspack_import_3/* .mat3.transpose */.w0.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
81769
+ gl_matrix__rspack_import_3.mat3.fromMat4(model.keyMatrices.normalMatrix, model.keyMatrices.mcwc);
81770
+ gl_matrix__rspack_import_3.mat3.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
81771
+ gl_matrix__rspack_import_3.mat3.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
81807
81772
  }
81808
81773
  model.keyMatrixTime.modified();
81809
81774
  }
@@ -81822,8 +81787,8 @@ function extend(publicAPI, model, initialValues = {}) {
81822
81787
  model.keyMatrixTime = {};
81823
81788
  (0,_macros_js__rspack_import_0/* .obj */.WL)(model.keyMatrixTime, { mtime: 0 });
81824
81789
  model.keyMatrices = {
81825
- normalMatrix: gl_matrix__rspack_import_3/* .mat3.identity */.w0.identity(new Float64Array(9)),
81826
- mcwc: gl_matrix__rspack_import_3/* .mat4.identity */.pB.identity(new Float64Array(16))
81790
+ normalMatrix: gl_matrix__rspack_import_3.mat3.identity(new Float64Array(9)),
81791
+ mcwc: gl_matrix__rspack_import_3.mat4.identity(new Float64Array(16))
81827
81792
  };
81828
81793
  (0,_macros_js__rspack_import_0/* .setGet */.V0)(publicAPI, model, ["context"]);
81829
81794
  (0,_macros_js__rspack_import_0/* .get */.Jt)(publicAPI, model, ["activeTextures"]);
@@ -82123,13 +82088,13 @@ function vtkOpenGLCamera(publicAPI, model) {
82123
82088
  publicAPI.getKeyMatrices = (ren) => {
82124
82089
  if (ren !== model.lastRenderer || model._openGLRenderWindow.getMTime() > model.keyMatrixTime.getMTime() || publicAPI.getMTime() > model.keyMatrixTime.getMTime() || ren.getMTime() > model.keyMatrixTime.getMTime() || model.renderable.getMTime() > model.keyMatrixTime.getMTime()) {
82125
82090
  model.renderable.getViewMatrix(model.keyMatrices.wcvc);
82126
- gl_matrix__rspack_import_3/* .mat3.fromMat4 */.w0.fromMat4(model.keyMatrices.normalMatrix, model.keyMatrices.wcvc);
82127
- gl_matrix__rspack_import_3/* .mat3.invert */.w0.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
82128
- gl_matrix__rspack_import_3/* .mat4.transpose */.pB.transpose(model.keyMatrices.wcvc, model.keyMatrices.wcvc);
82091
+ gl_matrix__rspack_import_3.mat3.fromMat4(model.keyMatrices.normalMatrix, model.keyMatrices.wcvc);
82092
+ gl_matrix__rspack_import_3.mat3.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
82093
+ gl_matrix__rspack_import_3.mat4.transpose(model.keyMatrices.wcvc, model.keyMatrices.wcvc);
82129
82094
  const aspectRatio = model._openGLRenderer.getAspectRatio();
82130
- gl_matrix__rspack_import_3/* .mat4.copy */.pB.copy(model.keyMatrices.vcpc, model.renderable.getProjectionMatrix(aspectRatio, -1, 1));
82131
- gl_matrix__rspack_import_3/* .mat4.transpose */.pB.transpose(model.keyMatrices.vcpc, model.keyMatrices.vcpc);
82132
- gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(model.keyMatrices.wcpc, model.keyMatrices.vcpc, model.keyMatrices.wcvc);
82095
+ gl_matrix__rspack_import_3.mat4.copy(model.keyMatrices.vcpc, model.renderable.getProjectionMatrix(aspectRatio, -1, 1));
82096
+ gl_matrix__rspack_import_3.mat4.transpose(model.keyMatrices.vcpc, model.keyMatrices.vcpc);
82097
+ gl_matrix__rspack_import_3.mat4.multiply(model.keyMatrices.wcpc, model.keyMatrices.vcpc, model.keyMatrices.wcvc);
82133
82098
  model.keyMatrixTime.modified();
82134
82099
  model.lastRenderer = ren;
82135
82100
  }
@@ -82219,9 +82184,9 @@ function computeCoordShiftAndScale(points) {
82219
82184
  }
82220
82185
  function computeInverseShiftAndScaleMatrix(coordShift, coordScale) {
82221
82186
  const inverseScale = new Float64Array(3);
82222
- gl_matrix__rspack_import_0/* .vec3.inverse */.eR.DI(inverseScale, coordScale);
82187
+ gl_matrix__rspack_import_0.vec3.inverse(inverseScale, coordScale);
82223
82188
  const matrix = new Float64Array(16);
82224
- gl_matrix__rspack_import_0/* .mat4.fromRotationTranslationScale */.pB.fromRotationTranslationScale(matrix, gl_matrix__rspack_import_0/* .quat.create */.Yu.vt(), coordShift, inverseScale);
82189
+ gl_matrix__rspack_import_0.mat4.fromRotationTranslationScale(matrix, gl_matrix__rspack_import_0.quat.create(), coordShift, inverseScale);
82225
82190
  return matrix;
82226
82191
  }
82227
82192
  var helpers_default = (/* unused pure expression or super */ null && ({
@@ -82918,11 +82883,11 @@ var esm = __webpack_require__(50341);
82918
82883
  var { vtkErrorMacro } = macros/* ["default"] */.Ay;
82919
82884
  function shouldApplyCoordShiftAndScale(coordShift, coordScale) {
82920
82885
  if (coordShift === null || coordScale === null) return false;
82921
- return !(esm/* .vec3.exactEquals */.eR.t2(coordShift, [
82886
+ return !(esm.vec3.exactEquals(coordShift, [
82922
82887
  0,
82923
82888
  0,
82924
82889
  0
82925
- ]) && esm/* .vec3.exactEquals */.eR.t2(coordScale, [
82890
+ ]) && esm.vec3.exactEquals(coordScale, [
82926
82891
  1,
82927
82892
  1,
82928
82893
  1
@@ -83153,8 +83118,8 @@ function vtkOpenGLCellArrayBufferObject(publicAPI, model) {
83153
83118
  vtkErrorMacro("Wrong type for coordScale, expected vec3 or null");
83154
83119
  return;
83155
83120
  }
83156
- if (model.coordShift === null || coordShift === null || !esm/* .vec3.equals */.eR.aI(coordShift, model.coordShift)) model.coordShift = coordShift;
83157
- if (model.coordScale === null || coordScale === null || !esm/* .vec3.equals */.eR.aI(coordScale, model.coordScale)) model.coordScale = coordScale;
83121
+ if (model.coordShift === null || coordShift === null || !esm.vec3.equals(coordShift, model.coordShift)) model.coordShift = coordShift;
83122
+ if (model.coordScale === null || coordScale === null || !esm.vec3.equals(coordScale, model.coordScale)) model.coordScale = coordScale;
83158
83123
  model.coordShiftAndScaleEnabled = shouldApplyCoordShiftAndScale(model.coordShift, model.coordScale);
83159
83124
  if (model.coordShiftAndScaleEnabled) model.inverseShiftAndScaleMatrix = (0,helpers/* .computeInverseShiftAndScaleMatrix */.cW)(model.coordShift, model.coordScale);
83160
83125
  else model.inverseShiftAndScaleMatrix = null;
@@ -84143,8 +84108,8 @@ function vtkOpenGLImageCPRMapper(publicAPI, model) {
84143
84108
  }
84144
84109
  const image = model.currentImageDataInput;
84145
84110
  const MCICMatrix = image.getWorldToIndex();
84146
- const ICTCMatrix = gl_matrix__rspack_import_18/* .mat4.fromScaling */.pB.fromScaling(new Float32Array(16), gl_matrix__rspack_import_18/* .vec3.inverse */.eR.DI([], image.getDimensions()));
84147
- const MCTCMatrix = gl_matrix__rspack_import_18/* .mat4.mul */.pB.mul(ICTCMatrix, ICTCMatrix, MCICMatrix);
84111
+ const ICTCMatrix = gl_matrix__rspack_import_18.mat4.fromScaling(new Float32Array(16), gl_matrix__rspack_import_18.vec3.inverse([], image.getDimensions()));
84112
+ const MCTCMatrix = gl_matrix__rspack_import_18.mat4.mul(ICTCMatrix, ICTCMatrix, MCICMatrix);
84148
84113
  program.setUniformMatrix("MCTCMatrix", MCTCMatrix);
84149
84114
  if (model.haveSeenDepthRequest) cellBO.getProgram().setUniformi("depthRequest", model.renderDepth ? 1 : 0);
84150
84115
  if (model.renderable.getNumberOfClippingPlanes()) {
@@ -84154,14 +84119,14 @@ function vtkOpenGLImageCPRMapper(publicAPI, model) {
84154
84119
  numClipPlanes = 6;
84155
84120
  }
84156
84121
  const inverseShiftScaleMatrix = cellArrayBufferObject.getCoordShiftAndScaleEnabled() ? cellArrayBufferObject.getInverseShiftAndScaleMatrix() : null;
84157
- const mat = inverseShiftScaleMatrix ? gl_matrix__rspack_import_18/* .mat4.copy */.pB.copy(model.imagematinv, actor.getMatrix()) : actor.getMatrix();
84122
+ const mat = inverseShiftScaleMatrix ? gl_matrix__rspack_import_18.mat4.copy(model.imagematinv, actor.getMatrix()) : actor.getMatrix();
84158
84123
  if (inverseShiftScaleMatrix) {
84159
- gl_matrix__rspack_import_18/* .mat4.transpose */.pB.transpose(mat, mat);
84160
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(mat, mat, inverseShiftScaleMatrix);
84161
- gl_matrix__rspack_import_18/* .mat4.transpose */.pB.transpose(mat, mat);
84124
+ gl_matrix__rspack_import_18.mat4.transpose(mat, mat);
84125
+ gl_matrix__rspack_import_18.mat4.multiply(mat, mat, inverseShiftScaleMatrix);
84126
+ gl_matrix__rspack_import_18.mat4.transpose(mat, mat);
84162
84127
  }
84163
- gl_matrix__rspack_import_18/* .mat4.transpose */.pB.transpose(model.imagemat, model.currentImageDataInput.getIndexToWorld());
84164
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(model.imagematinv, mat, model.imagemat);
84128
+ gl_matrix__rspack_import_18.mat4.transpose(model.imagemat, model.currentImageDataInput.getIndexToWorld());
84129
+ gl_matrix__rspack_import_18.mat4.multiply(model.imagematinv, mat, model.imagemat);
84165
84130
  const planeEquations = [];
84166
84131
  for (let i = 0; i < numClipPlanes; i++) {
84167
84132
  const planeEquation = [];
@@ -84180,10 +84145,10 @@ function vtkOpenGLImageCPRMapper(publicAPI, model) {
84180
84145
  publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => {
84181
84146
  const MCWCMatrix = model.openGLImageSlice.getKeyMatrices().mcwc;
84182
84147
  const WCPCMatrix = model.openGLCamera.getKeyMatrices(ren).wcpc;
84183
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(model.imagemat, WCPCMatrix, MCWCMatrix);
84148
+ gl_matrix__rspack_import_18.mat4.multiply(model.imagemat, WCPCMatrix, MCWCMatrix);
84184
84149
  if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) {
84185
84150
  const inverseShiftScaleMat = cellBO.getCABO().getInverseShiftAndScaleMatrix();
84186
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(model.imagemat, model.imagemat, inverseShiftScaleMat);
84151
+ gl_matrix__rspack_import_18.mat4.multiply(model.imagemat, model.imagemat, inverseShiftScaleMat);
84187
84152
  }
84188
84153
  cellBO.getProgram().setUniformMatrix("MCPCMatrix", model.imagemat);
84189
84154
  };
@@ -84277,8 +84242,8 @@ function extend(publicAPI, model, initialValues = {}) {
84277
84242
  model.volumeTexture = null;
84278
84243
  model.colorTexture = null;
84279
84244
  model.pwfTexture = null;
84280
- model.imagemat = gl_matrix__rspack_import_18/* .mat4.identity */.pB.identity(new Float64Array(16));
84281
- model.imagematinv = gl_matrix__rspack_import_18/* .mat4.identity */.pB.identity(new Float64Array(16));
84245
+ model.imagemat = gl_matrix__rspack_import_18.mat4.identity(new Float64Array(16));
84246
+ model.imagematinv = gl_matrix__rspack_import_18.mat4.identity(new Float64Array(16));
84282
84247
  model.VBOBuildTime = {};
84283
84248
  _macros_js__rspack_import_0/* ["default"].obj */.Ay.obj(model.VBOBuildTime, { mtime: 0 });
84284
84249
  vtkOpenGLImageCPRMapper(publicAPI, model);
@@ -84772,14 +84737,14 @@ function vtkOpenGLImageMapper(publicAPI, model) {
84772
84737
  numClipPlanes = 6;
84773
84738
  }
84774
84739
  const inverseShiftScaleMatrix = cellBO.getCABO().getCoordShiftAndScaleEnabled() ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null;
84775
- const mat = inverseShiftScaleMatrix ? gl_matrix__rspack_import_18/* .mat4.copy */.pB.copy(model.imagematinv, actor.getMatrix()) : actor.getMatrix();
84740
+ const mat = inverseShiftScaleMatrix ? gl_matrix__rspack_import_18.mat4.copy(model.imagematinv, actor.getMatrix()) : actor.getMatrix();
84776
84741
  if (inverseShiftScaleMatrix) {
84777
- gl_matrix__rspack_import_18/* .mat4.transpose */.pB.transpose(mat, mat);
84778
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(mat, mat, inverseShiftScaleMatrix);
84779
- gl_matrix__rspack_import_18/* .mat4.transpose */.pB.transpose(mat, mat);
84742
+ gl_matrix__rspack_import_18.mat4.transpose(mat, mat);
84743
+ gl_matrix__rspack_import_18.mat4.multiply(mat, mat, inverseShiftScaleMatrix);
84744
+ gl_matrix__rspack_import_18.mat4.transpose(mat, mat);
84780
84745
  }
84781
- gl_matrix__rspack_import_18/* .mat4.transpose */.pB.transpose(model.imagemat, model.currentInput.getIndexToWorld());
84782
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(model.imagematinv, mat, model.imagemat);
84746
+ gl_matrix__rspack_import_18.mat4.transpose(model.imagemat, model.currentInput.getIndexToWorld());
84747
+ gl_matrix__rspack_import_18.mat4.multiply(model.imagematinv, mat, model.imagemat);
84783
84748
  const planeEquations = [];
84784
84749
  for (let i = 0; i < numClipPlanes; i++) {
84785
84750
  const planeEquation = [];
@@ -84795,12 +84760,12 @@ function vtkOpenGLImageMapper(publicAPI, model) {
84795
84760
  const actMats = model.openGLImageSlice.getKeyMatrices();
84796
84761
  const image = model.currentInput;
84797
84762
  const i2wmat4 = image.getIndexToWorld();
84798
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(model.imagemat, actMats.mcwc, i2wmat4);
84763
+ gl_matrix__rspack_import_18.mat4.multiply(model.imagemat, actMats.mcwc, i2wmat4);
84799
84764
  const keyMats = model.openGLCamera.getKeyMatrices(ren);
84800
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(model.imagemat, keyMats.wcpc, model.imagemat);
84765
+ gl_matrix__rspack_import_18.mat4.multiply(model.imagemat, keyMats.wcpc, model.imagemat);
84801
84766
  if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) {
84802
84767
  const inverseShiftScaleMat = cellBO.getCABO().getInverseShiftAndScaleMatrix();
84803
- gl_matrix__rspack_import_18/* .mat4.multiply */.pB.multiply(model.imagemat, model.imagemat, inverseShiftScaleMat);
84768
+ gl_matrix__rspack_import_18.mat4.multiply(model.imagemat, model.imagemat, inverseShiftScaleMat);
84804
84769
  }
84805
84770
  program.setUniformMatrix("MCPCMatrix", model.imagemat);
84806
84771
  if (actor.getProperty().getUseLabelOutline() === true) {
@@ -84812,7 +84777,7 @@ function vtkOpenGLImageMapper(publicAPI, model) {
84812
84777
  program.setUniformi("sliceAxis", sliceAxis);
84813
84778
  program.setUniformMatrix("vWCtoIDX", worldToIndex);
84814
84779
  const labelOutlineKeyMats = model.openGLCamera.getKeyMatrices(ren);
84815
- gl_matrix__rspack_import_18/* .mat4.invert */.pB.invert(model.projectionToWorld, labelOutlineKeyMats.wcpc);
84780
+ gl_matrix__rspack_import_18.mat4.invert(model.projectionToWorld, labelOutlineKeyMats.wcpc);
84816
84781
  model.openGLCamera.getKeyMatrices(ren);
84817
84782
  program.setUniformMatrix("PCWCMatrix", model.projectionToWorld);
84818
84783
  const size = publicAPI.getRenderTargetSize();
@@ -85285,13 +85250,13 @@ function extend(publicAPI, model, initialValues = {}) {
85285
85250
  _ReplacementShaderMapper_js__rspack_import_16/* ["default"].implementReplaceShaderCoincidentOffset */.A.implementReplaceShaderCoincidentOffset(publicAPI, model, initialValues);
85286
85251
  _ReplacementShaderMapper_js__rspack_import_16/* ["default"].implementBuildShadersWithReplacements */.A.implementBuildShadersWithReplacements(publicAPI, model, initialValues);
85287
85252
  model.tris = _Helper_js__rspack_import_13/* ["default"].newInstance */.Ay.newInstance();
85288
- model.imagemat = gl_matrix__rspack_import_18/* .mat4.identity */.pB.identity(new Float64Array(16));
85289
- model.imagematinv = gl_matrix__rspack_import_18/* .mat4.identity */.pB.identity(new Float64Array(16));
85290
- model.projectionToWorld = gl_matrix__rspack_import_18/* .mat4.identity */.pB.identity(new Float64Array(16));
85291
- model.idxToView = gl_matrix__rspack_import_18/* .mat4.identity */.pB.identity(new Float64Array(16));
85292
- model.idxNormalMatrix = gl_matrix__rspack_import_18/* .mat3.identity */.w0.identity(new Float64Array(9));
85293
- model.modelToView = gl_matrix__rspack_import_18/* .mat4.identity */.pB.identity(new Float64Array(16));
85294
- model.projectionToView = gl_matrix__rspack_import_18/* .mat4.identity */.pB.identity(new Float64Array(16));
85253
+ model.imagemat = gl_matrix__rspack_import_18.mat4.identity(new Float64Array(16));
85254
+ model.imagematinv = gl_matrix__rspack_import_18.mat4.identity(new Float64Array(16));
85255
+ model.projectionToWorld = gl_matrix__rspack_import_18.mat4.identity(new Float64Array(16));
85256
+ model.idxToView = gl_matrix__rspack_import_18.mat4.identity(new Float64Array(16));
85257
+ model.idxNormalMatrix = gl_matrix__rspack_import_18.mat3.identity(new Float64Array(9));
85258
+ model.modelToView = gl_matrix__rspack_import_18.mat4.identity(new Float64Array(16));
85259
+ model.projectionToView = gl_matrix__rspack_import_18.mat4.identity(new Float64Array(16));
85295
85260
  (0,_macros_js__rspack_import_0/* .setGet */.V0)(publicAPI, model, []);
85296
85261
  model.VBOBuildTime = {};
85297
85262
  (0,_macros_js__rspack_import_0/* .obj */.WL)(model.VBOBuildTime);
@@ -85811,15 +85776,15 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
85811
85776
  if (program.isUniformUsed(uniformName)) {
85812
85777
  const imageData = model.currentValidInputs[i].imageData;
85813
85778
  const dim = imageData.getDimensions();
85814
- esm/* .mat4.copy */.pB.copy(model.tmpMat4, imageData.getIndexToWorld());
85815
- esm/* .mat4.translate */.pB.translate(model.tmpMat4, model.tmpMat4, [
85779
+ esm.mat4.copy(model.tmpMat4, imageData.getIndexToWorld());
85780
+ esm.mat4.translate(model.tmpMat4, model.tmpMat4, [
85816
85781
  -.5,
85817
85782
  -.5,
85818
85783
  -.5
85819
85784
  ]);
85820
- esm/* .mat4.scale */.pB.scale(model.tmpMat4, model.tmpMat4, dim);
85821
- esm/* .mat4.invert */.pB.invert(model.tmpMat4, model.tmpMat4);
85822
- if (inverseShiftScaleMatrix) esm/* .mat4.multiply */.pB.multiply(model.tmpMat4, model.tmpMat4, inverseShiftScaleMatrix);
85785
+ esm.mat4.scale(model.tmpMat4, model.tmpMat4, dim);
85786
+ esm.mat4.invert(model.tmpMat4, model.tmpMat4);
85787
+ if (inverseShiftScaleMatrix) esm.mat4.multiply(model.tmpMat4, model.tmpMat4, inverseShiftScaleMatrix);
85823
85788
  program.setUniformMatrix(uniformName, model.tmpMat4);
85824
85789
  }
85825
85790
  }
@@ -85843,20 +85808,20 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
85843
85808
  const inverseShiftScaleMatrix = cellBO.getCABO().getCoordShiftAndScaleEnabled() ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null;
85844
85809
  const program = cellBO.getProgram();
85845
85810
  if (program.isUniformUsed("MCPCMatrix")) {
85846
- esm/* .mat4.identity */.pB.identity(model.tmpMat4);
85811
+ esm.mat4.identity(model.tmpMat4);
85847
85812
  program.setUniformMatrix("MCPCMatrix", safeMatrixMultiply([
85848
85813
  keyMats.wcpc,
85849
85814
  actMats.mcwc,
85850
85815
  inverseShiftScaleMatrix
85851
- ], esm/* .mat4 */.pB, model.tmpMat4));
85816
+ ], esm.mat4, model.tmpMat4));
85852
85817
  }
85853
85818
  if (program.isUniformUsed("MCVCMatrix")) {
85854
- esm/* .mat4.identity */.pB.identity(model.tmpMat4);
85819
+ esm.mat4.identity(model.tmpMat4);
85855
85820
  program.setUniformMatrix("MCVCMatrix", safeMatrixMultiply([
85856
85821
  keyMats.wcvc,
85857
85822
  actMats.mcwc,
85858
85823
  inverseShiftScaleMatrix
85859
- ], esm/* .mat4 */.pB, model.tmpMat4));
85824
+ ], esm.mat4, model.tmpMat4));
85860
85825
  }
85861
85826
  };
85862
85827
  publicAPI.setPropertyShaderParameters = (cellBO, ren, actor) => {
@@ -86668,7 +86633,7 @@ function extend(publicAPI, model, initialValues = {}) {
86668
86633
  model.pwfTexture = null;
86669
86634
  model.VBOBuildTime = {};
86670
86635
  (0,macros/* .obj */.WL)(model.VBOBuildTime);
86671
- model.tmpMat4 = esm/* .mat4.identity */.pB.identity(new Float64Array(16));
86636
+ model.tmpMat4 = esm.mat4.identity(new Float64Array(16));
86672
86637
  model._tmpTexelSize = [
86673
86638
  0,
86674
86639
  0,
@@ -86763,8 +86728,8 @@ function vtkOpenGLImageSlice(publicAPI, model) {
86763
86728
  };
86764
86729
  publicAPI.getKeyMatrices = () => {
86765
86730
  if (model.renderable.getMTime() > model.keyMatrixTime.getMTime()) {
86766
- gl_matrix__rspack_import_3/* .mat4.copy */.pB.copy(model.keyMatrices.mcwc, model.renderable.getMatrix());
86767
- gl_matrix__rspack_import_3/* .mat4.transpose */.pB.transpose(model.keyMatrices.mcwc, model.keyMatrices.mcwc);
86731
+ gl_matrix__rspack_import_3.mat4.copy(model.keyMatrices.mcwc, model.renderable.getMatrix());
86732
+ gl_matrix__rspack_import_3.mat4.transpose(model.keyMatrices.mcwc, model.keyMatrices.mcwc);
86768
86733
  model.keyMatrixTime.modified();
86769
86734
  }
86770
86735
  return model.keyMatrices;
@@ -86780,7 +86745,7 @@ function extend(publicAPI, model, initialValues = {}) {
86780
86745
  _SceneGraph_ViewNode_js__rspack_import_1/* ["default"].extend */.A.extend(publicAPI, model, initialValues);
86781
86746
  model.keyMatrixTime = {};
86782
86747
  (0,_macros_js__rspack_import_0/* .obj */.WL)(model.keyMatrixTime, { mtime: 0 });
86783
- model.keyMatrices = { mcwc: gl_matrix__rspack_import_3/* .mat4.identity */.pB.identity(new Float64Array(16)) };
86748
+ model.keyMatrices = { mcwc: gl_matrix__rspack_import_3.mat4.identity(new Float64Array(16)) };
86784
86749
  (0,_macros_js__rspack_import_0/* .setGet */.V0)(publicAPI, model, ["context"]);
86785
86750
  vtkOpenGLImageSlice(publicAPI, model);
86786
86751
  }
@@ -87509,11 +87474,11 @@ function vtkOpenGLPolyDataMapper(publicAPI, model) {
87509
87474
  const numClipPlanes = model.renderable.getNumberOfClippingPlanes();
87510
87475
  const planeEquations = [];
87511
87476
  const inverseShiftScaleMatrix = cellBO.getCABO().getCoordShiftAndScaleEnabled() ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null;
87512
- const mat = inverseShiftScaleMatrix ? gl_matrix__rspack_import_17/* .mat4.copy */.pB.copy(model.tmpMat4, actor.getMatrix()) : actor.getMatrix();
87477
+ const mat = inverseShiftScaleMatrix ? gl_matrix__rspack_import_17.mat4.copy(model.tmpMat4, actor.getMatrix()) : actor.getMatrix();
87513
87478
  if (inverseShiftScaleMatrix) {
87514
- gl_matrix__rspack_import_17/* .mat4.transpose */.pB.transpose(mat, mat);
87515
- gl_matrix__rspack_import_17/* .mat4.multiply */.pB.multiply(mat, mat, inverseShiftScaleMatrix);
87516
- gl_matrix__rspack_import_17/* .mat4.transpose */.pB.transpose(mat, mat);
87479
+ gl_matrix__rspack_import_17.mat4.transpose(mat, mat);
87480
+ gl_matrix__rspack_import_17.mat4.multiply(mat, mat, inverseShiftScaleMatrix);
87481
+ gl_matrix__rspack_import_17.mat4.transpose(mat, mat);
87517
87482
  }
87518
87483
  for (let i = 0; i < numClipPlanes; i++) {
87519
87484
  const planeEquation = [];
@@ -87579,14 +87544,14 @@ function vtkOpenGLPolyDataMapper(publicAPI, model) {
87579
87544
  }
87580
87545
  if (lastLightComplexity < 3) return;
87581
87546
  const viewTF = ren.getActiveCamera().getViewMatrix();
87582
- gl_matrix__rspack_import_17/* .mat4.transpose */.pB.transpose(viewTF, viewTF);
87547
+ gl_matrix__rspack_import_17.mat4.transpose(viewTF, viewTF);
87583
87548
  numberOfLights = 0;
87584
87549
  for (let index = 0; index < lights.length; ++index) {
87585
87550
  const light = lights[index];
87586
87551
  if (light.getSwitch() > 0) {
87587
87552
  const lp = light.getTransformedPosition();
87588
87553
  const np = new Float64Array(3);
87589
- gl_matrix__rspack_import_17/* .vec3.transformMat4 */.eR.Z0(np, lp, viewTF);
87554
+ gl_matrix__rspack_import_17.vec3.transformMat4(np, lp, viewTF);
87590
87555
  program.setUniform3fArray(`lightAttenuation${numberOfLights}`, light.getAttenuationValuesByReference());
87591
87556
  program.setUniformi(`lightPositional${numberOfLights}`, light.getPositional());
87592
87557
  program.setUniformf(`lightExponent${numberOfLights}`, light.getExponent());
@@ -87621,24 +87586,24 @@ function vtkOpenGLPolyDataMapper(publicAPI, model) {
87621
87586
  } : model.openGLActor.getKeyMatrices();
87622
87587
  if (actor.getCoordinateSystem() === CoordinateSystem.DISPLAY) {
87623
87588
  const size = model._openGLRenderer.getTiledSizeAndOrigin();
87624
- gl_matrix__rspack_import_17/* .mat4.identity */.pB.identity(model.tmpMat4);
87589
+ gl_matrix__rspack_import_17.mat4.identity(model.tmpMat4);
87625
87590
  model.tmpMat4[0] = 2 / size.usize;
87626
87591
  model.tmpMat4[12] = -1;
87627
87592
  model.tmpMat4[5] = 2 / size.vsize;
87628
87593
  model.tmpMat4[13] = -1;
87629
- gl_matrix__rspack_import_17/* .mat4.multiply */.pB.multiply(model.tmpMat4, model.tmpMat4, inverseShiftScaleMatrix);
87594
+ gl_matrix__rspack_import_17.mat4.multiply(model.tmpMat4, model.tmpMat4, inverseShiftScaleMatrix);
87630
87595
  program.setUniformMatrix("MCPCMatrix", model.tmpMat4);
87631
87596
  } else program.setUniformMatrix("MCPCMatrix", safeMatrixMultiply([
87632
87597
  keyMats.wcpc,
87633
87598
  actMats.mcwc,
87634
87599
  inverseShiftScaleMatrix
87635
- ], gl_matrix__rspack_import_17/* .mat4 */.pB, model.tmpMat4));
87600
+ ], gl_matrix__rspack_import_17.mat4, model.tmpMat4));
87636
87601
  if (program.isUniformUsed("MCVCMatrix")) program.setUniformMatrix("MCVCMatrix", safeMatrixMultiply([
87637
87602
  keyMats.wcvc,
87638
87603
  actMats.mcwc,
87639
87604
  inverseShiftScaleMatrix
87640
- ], gl_matrix__rspack_import_17/* .mat4 */.pB, model.tmpMat4));
87641
- if (program.isUniformUsed("normalMatrix")) program.setUniformMatrix3x3("normalMatrix", safeMatrixMultiply([keyMats.normalMatrix, actMats.normalMatrix], gl_matrix__rspack_import_17/* .mat3 */.w0, model.tmpMat3));
87605
+ ], gl_matrix__rspack_import_17.mat4, model.tmpMat4));
87606
+ if (program.isUniformUsed("normalMatrix")) program.setUniformMatrix3x3("normalMatrix", safeMatrixMultiply([keyMats.normalMatrix, actMats.normalMatrix], gl_matrix__rspack_import_17.mat3, model.tmpMat3));
87642
87607
  if (progm !== camm) {
87643
87608
  if (program.isUniformUsed("cameraParallel")) program.setUniformi("cameraParallel", cam.getParallelProjection());
87644
87609
  program.setLastCameraMTime(camm);
@@ -87909,8 +87874,8 @@ function extend(publicAPI, model, initialValues = {}) {
87909
87874
  _ReplacementShaderMapper_js__rspack_import_16/* ["default"].implementBuildShadersWithReplacements */.A.implementBuildShadersWithReplacements(publicAPI, model, initialValues);
87910
87875
  model.primitives = [];
87911
87876
  model.primTypes = primTypes;
87912
- model.tmpMat3 = gl_matrix__rspack_import_17/* .mat3.identity */.w0.identity(new Float64Array(9));
87913
- model.tmpMat4 = gl_matrix__rspack_import_17/* .mat4.identity */.pB.identity(new Float64Array(16));
87877
+ model.tmpMat3 = gl_matrix__rspack_import_17.mat3.identity(new Float64Array(9));
87878
+ model.tmpMat4 = gl_matrix__rspack_import_17.mat4.identity(new Float64Array(16));
87914
87879
  for (let i = primTypes.Start; i < primTypes.End; i++) {
87915
87880
  model.primitives[i] = _Helper_js__rspack_import_13/* ["default"].newInstance */.Ay.newInstance();
87916
87881
  model.primitives[i].setPrimitiveType(i);
@@ -88775,7 +88740,7 @@ function vtkOpenGLSkybox(publicAPI, model) {
88775
88740
  const ren = model._openGLRenderer.getRenderable();
88776
88741
  const keyMats = model.openGLCamera.getKeyMatrices(ren);
88777
88742
  const imat = new Float64Array(16);
88778
- gl_matrix__rspack_import_7/* .mat4.invert */.pB.invert(imat, keyMats.wcpc);
88743
+ gl_matrix__rspack_import_7.mat4.invert(imat, keyMats.wcpc);
88779
88744
  model.tris.getProgram().setUniformMatrix("IMCPCMatrix", imat);
88780
88745
  if (model.lastFormat === "box") {
88781
88746
  const camPos = ren.getActiveCamera().getPosition();
@@ -88885,8 +88850,8 @@ function extend(publicAPI, model, initialValues = {}) {
88885
88850
  model.keyMatrixTime = {};
88886
88851
  (0,_macros_js__rspack_import_0/* .obj */.WL)(model.keyMatrixTime, { mtime: 0 });
88887
88852
  model.keyMatrices = {
88888
- normalMatrix: gl_matrix__rspack_import_7/* .mat3.identity */.w0.identity(new Float64Array(9)),
88889
- mcwc: gl_matrix__rspack_import_7/* .mat4.identity */.pB.identity(new Float64Array(16))
88853
+ normalMatrix: gl_matrix__rspack_import_7.mat3.identity(new Float64Array(9)),
88854
+ mcwc: gl_matrix__rspack_import_7.mat4.identity(new Float64Array(16))
88890
88855
  };
88891
88856
  (0,_macros_js__rspack_import_0/* .setGet */.V0)(publicAPI, model, ["context"]);
88892
88857
  (0,_macros_js__rspack_import_0/* .get */.Jt)(publicAPI, model, ["activeTextures"]);
@@ -90443,13 +90408,13 @@ function vtkOpenGLVolume(publicAPI, model) {
90443
90408
  publicAPI.getKeyMatrices = () => {
90444
90409
  if (model.renderable.getMTime() > model.keyMatrixTime.getMTime()) {
90445
90410
  model.renderable.computeMatrix();
90446
- gl_matrix__rspack_import_3/* .mat4.copy */.pB.copy(model.MCWCMatrix, model.renderable.getMatrix());
90447
- gl_matrix__rspack_import_3/* .mat4.transpose */.pB.transpose(model.MCWCMatrix, model.MCWCMatrix);
90448
- if (model.renderable.getIsIdentity()) gl_matrix__rspack_import_3/* .mat3.identity */.w0.identity(model.normalMatrix);
90411
+ gl_matrix__rspack_import_3.mat4.copy(model.MCWCMatrix, model.renderable.getMatrix());
90412
+ gl_matrix__rspack_import_3.mat4.transpose(model.MCWCMatrix, model.MCWCMatrix);
90413
+ if (model.renderable.getIsIdentity()) gl_matrix__rspack_import_3.mat3.identity(model.normalMatrix);
90449
90414
  else {
90450
- gl_matrix__rspack_import_3/* .mat3.fromMat4 */.w0.fromMat4(model.normalMatrix, model.MCWCMatrix);
90451
- gl_matrix__rspack_import_3/* .mat3.invert */.w0.invert(model.normalMatrix, model.normalMatrix);
90452
- gl_matrix__rspack_import_3/* .mat3.transpose */.w0.transpose(model.normalMatrix, model.normalMatrix);
90415
+ gl_matrix__rspack_import_3.mat3.fromMat4(model.normalMatrix, model.MCWCMatrix);
90416
+ gl_matrix__rspack_import_3.mat3.invert(model.normalMatrix, model.normalMatrix);
90417
+ gl_matrix__rspack_import_3.mat3.transpose(model.normalMatrix, model.normalMatrix);
90453
90418
  }
90454
90419
  model.keyMatrixTime.modified();
90455
90420
  }
@@ -90573,11 +90538,11 @@ var esm = __webpack_require__(50341);
90573
90538
  //#region Sources/Rendering/OpenGL/VolumeMapper/index.js
90574
90539
  var { vtkWarningMacro, vtkErrorMacro } = macros/* .macros_exports */.o$;
90575
90540
  var preAllocatedMatrices = {
90576
- idxToView: esm/* .mat4.identity */.pB.identity(new Float64Array(16)),
90577
- vecISToVCMatrix: esm/* .mat3.identity */.w0.identity(new Float64Array(9)),
90578
- modelToView: esm/* .mat4.identity */.pB.identity(new Float64Array(16)),
90579
- projectionToView: esm/* .mat4.identity */.pB.identity(new Float64Array(16)),
90580
- projectionToWorld: esm/* .mat4.identity */.pB.identity(new Float64Array(16))
90541
+ idxToView: esm.mat4.identity(new Float64Array(16)),
90542
+ vecISToVCMatrix: esm.mat3.identity(new Float64Array(9)),
90543
+ modelToView: esm.mat4.identity(new Float64Array(16)),
90544
+ projectionToView: esm.mat4.identity(new Float64Array(16)),
90545
+ projectionToWorld: esm.mat4.identity(new Float64Array(16))
90581
90546
  };
90582
90547
  function vtkOpenGLVolumeMapper(publicAPI, model) {
90583
90548
  model.classHierarchy.push("vtkOpenGLVolumeMapper");
@@ -90864,7 +90829,7 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
90864
90829
  const { idxToView, vecISToVCMatrix, modelToView, projectionToView, projectionToWorld } = preAllocatedMatrices;
90865
90830
  const keyMats = model.openGLCamera.getKeyMatrices(ren);
90866
90831
  const actMats = model.openGLVolume.getKeyMatrices();
90867
- esm/* .mat4.multiply */.pB.multiply(modelToView, keyMats.wcvc, actMats.mcwc);
90832
+ esm.mat4.multiply(modelToView, keyMats.wcvc, actMats.mcwc);
90868
90833
  const program = cellBO.getProgram();
90869
90834
  const camera = model.openGLCamera.getRenderable();
90870
90835
  const useParallelProjection = camera.getParallelProjection();
@@ -90876,12 +90841,12 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
90876
90841
  const firstValidInput = model.currentValidInputs[0];
90877
90842
  const boundsMC = firstValidInput.imageData.getBounds();
90878
90843
  const cornersDC = BoundingBox/* ["default"].getCorners */.Ay.getCorners(boundsMC, []).map((corner) => {
90879
- esm/* .vec3.transformMat4 */.eR.Z0(corner, corner, modelToView);
90844
+ esm.vec3.transformMat4(corner, corner, modelToView);
90880
90845
  if (!useParallelProjection) {
90881
- const newScale = -clippingRange[0] / (corner[2] * esm/* .vec3.length */.eR.Bw(corner));
90882
- esm/* .vec3.scale */.eR.hs(corner, corner, newScale);
90846
+ const newScale = -clippingRange[0] / (corner[2] * esm.vec3.length(corner));
90847
+ esm.vec3.scale(corner, corner, newScale);
90883
90848
  }
90884
- esm/* .vec3.transformMat4 */.eR.Z0(corner, corner, keyMats.vcpc);
90849
+ esm.vec3.transformMat4(corner, corner, keyMats.vcpc);
90885
90850
  return corner;
90886
90851
  });
90887
90852
  const boundsDC = BoundingBox/* ["default"].addPoints */.Ay.addPoints([...BoundingBox/* ["default"].INIT_BOUNDS */.Ay.INIT_BOUNDS], cornersDC);
@@ -90895,7 +90860,7 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
90895
90860
  const offset = publicAPI.getRenderTargetOffset();
90896
90861
  program.setUniformf("vpOffsetX", offset[0] / size[0]);
90897
90862
  program.setUniformf("vpOffsetY", offset[1] / size[1]);
90898
- esm/* .mat4.invert */.pB.invert(projectionToView, keyMats.vcpc);
90863
+ esm.mat4.invert(projectionToView, keyMats.vcpc);
90899
90864
  program.setUniformMatrix("PCVCMatrix", projectionToView);
90900
90865
  program.setUniformi("twoSidedLighting", ren.getTwoSidedLighting());
90901
90866
  const kernelSample = new Array(2 * model.previousState.maxLaoKernelSize);
@@ -90911,14 +90876,14 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
90911
90876
  const lightPrefix = `lights[${lightIndex}]`;
90912
90877
  const color = light.getColor();
90913
90878
  const intensity = light.getIntensity();
90914
- const scaledColor = esm/* .vec3.scale */.eR.hs([], color, intensity);
90879
+ const scaledColor = esm.vec3.scale([], color, intensity);
90915
90880
  program.setUniform3fv(`${lightPrefix}.color`, scaledColor);
90916
90881
  const position = light.getTransformedPosition();
90917
- esm/* .vec3.transformMat4 */.eR.Z0(position, position, modelToView);
90882
+ esm.vec3.transformMat4(position, position, modelToView);
90918
90883
  program.setUniform3fv(`${lightPrefix}.positionVC`, position);
90919
90884
  const direction = [...light.getDirection()];
90920
- esm/* .vec3.transformMat3 */.eR.ei(direction, direction, keyMats.normalMatrix);
90921
- esm/* .vec3.normalize */.eR.S8(direction, direction);
90885
+ esm.vec3.transformMat3(direction, direction, keyMats.normalMatrix);
90886
+ esm.vec3.normalize(direction, direction);
90922
90887
  program.setUniform3fv(`${lightPrefix}.directionVC`, direction);
90923
90888
  const halfAngle = [
90924
90889
  -.5 * direction[0],
@@ -90947,33 +90912,33 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
90947
90912
  const idxToModel = firstImageData.getIndexToWorld();
90948
90913
  const worldToIndex = firstImageData.getWorldToIndex();
90949
90914
  const imageDirection = firstImageData.getDirectionByReference();
90950
- esm/* .mat4.multiply */.pB.multiply(idxToView, modelToView, idxToModel);
90915
+ esm.mat4.multiply(idxToView, modelToView, idxToModel);
90951
90916
  program.setUniform3fv(`${uniformPrefix}.spacing`, spacing);
90952
- const inverseSpacing = esm/* .vec3.inverse */.eR.DI([], spacing);
90917
+ const inverseSpacing = esm.vec3.inverse([], spacing);
90953
90918
  program.setUniform3fv(`${uniformPrefix}.inverseSpacing`, inverseSpacing);
90954
90919
  program.setUniform3iv(`${uniformPrefix}.dimensions`, dimensions);
90955
- program.setUniform3fv(`${uniformPrefix}.inverseDimensions`, esm/* .vec3.inverse */.eR.DI([], dimensions));
90920
+ program.setUniform3fv(`${uniformPrefix}.inverseDimensions`, esm.vec3.inverse([], dimensions));
90956
90921
  program.setUniformMatrix(`${uniformPrefix}.worldToIndex`, worldToIndex);
90957
90922
  vecISToVCMatrix.fill(0);
90958
- const sizeVC = esm/* .vec3.multiply */.eR.lw(new Float64Array(3), dimensions, spacing);
90923
+ const sizeVC = esm.vec3.multiply(new Float64Array(3), dimensions, spacing);
90959
90924
  vecISToVCMatrix[0] = sizeVC[0];
90960
90925
  vecISToVCMatrix[4] = sizeVC[1];
90961
90926
  vecISToVCMatrix[8] = sizeVC[2];
90962
- esm/* .mat3.multiply */.w0.multiply(vecISToVCMatrix, imageDirection, vecISToVCMatrix);
90963
- esm/* .mat3.multiply */.w0.multiply(vecISToVCMatrix, actMats.normalMatrix, vecISToVCMatrix);
90964
- esm/* .mat3.multiply */.w0.multiply(vecISToVCMatrix, keyMats.normalMatrix, vecISToVCMatrix);
90927
+ esm.mat3.multiply(vecISToVCMatrix, imageDirection, vecISToVCMatrix);
90928
+ esm.mat3.multiply(vecISToVCMatrix, actMats.normalMatrix, vecISToVCMatrix);
90929
+ esm.mat3.multiply(vecISToVCMatrix, keyMats.normalMatrix, vecISToVCMatrix);
90965
90930
  program.setUniformMatrix3x3(`${uniformPrefix}.vecISToVCMatrix`, vecISToVCMatrix);
90966
- program.setUniformMatrix3x3(`${uniformPrefix}.vecVCToISMatrix`, esm/* .mat3.invert */.w0.invert(new Float32Array(9), vecISToVCMatrix));
90967
- const spacialExtentMinIC = esm/* .vec3.fromValues */.eR.fA(spatialExtent[0], spatialExtent[2], spatialExtent[4]);
90968
- const originVC = esm/* .vec3.transformMat4 */.eR.Z0(new Float64Array(3), spacialExtentMinIC, idxToView);
90931
+ program.setUniformMatrix3x3(`${uniformPrefix}.vecVCToISMatrix`, esm.mat3.invert(new Float32Array(9), vecISToVCMatrix));
90932
+ const spacialExtentMinIC = esm.vec3.fromValues(spatialExtent[0], spatialExtent[2], spatialExtent[4]);
90933
+ const originVC = esm.vec3.transformMat4(new Float64Array(3), spacialExtentMinIC, idxToView);
90969
90934
  program.setUniform3fv(`${uniformPrefix}.originVC`, originVC);
90970
- const diagonalLength = esm/* .vec3.length */.eR.Bw(sizeVC);
90935
+ const diagonalLength = esm.vec3.length(sizeVC);
90971
90936
  program.setUniformf(`${uniformPrefix}.diagonalLength`, diagonalLength);
90972
90937
  if (isLabelmapOutlineRequired(firstVolumeProperty)) {
90973
90938
  const distance = camera.getDistance();
90974
90939
  camera.setClippingRange(distance, distance + .1);
90975
90940
  const labelOutlineKeyMats = model.openGLCamera.getKeyMatrices(ren);
90976
- esm/* .mat4.invert */.pB.invert(projectionToWorld, labelOutlineKeyMats.wcpc);
90941
+ esm.mat4.invert(projectionToWorld, labelOutlineKeyMats.wcpc);
90977
90942
  camera.setClippingRange(clippingRange[0], clippingRange[1]);
90978
90943
  model.openGLCamera.getKeyMatrices(ren);
90979
90944
  program.setUniformMatrix(`${uniformPrefix}.PCWCMatrix`, projectionToWorld);
@@ -91100,9 +91065,9 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
91100
91065
  for (let i = 0; i < clipPlaneSize; ++i) {
91101
91066
  const clipPlaneNormal = clipPlanes[i].getNormal();
91102
91067
  const clipPlanePos = clipPlanes[i].getOrigin();
91103
- esm/* .vec3.transformMat3 */.eR.ei(clipPlaneNormal, clipPlaneNormal, keyMats.normalMatrix);
91104
- esm/* .vec3.transformMat4 */.eR.Z0(clipPlanePos, clipPlanePos, keyMats.wcvc);
91105
- const clipPlaneDist = -1 * esm/* .vec3.dot */.eR.Om(clipPlanePos, clipPlaneNormal);
91068
+ esm.vec3.transformMat3(clipPlaneNormal, clipPlaneNormal, keyMats.normalMatrix);
91069
+ esm.vec3.transformMat4(clipPlanePos, clipPlanePos, keyMats.wcvc);
91070
+ const clipPlaneDist = -1 * esm.vec3.dot(clipPlanePos, clipPlaneNormal);
91106
91071
  clipPlaneNormals.push(clipPlaneNormal[0]);
91107
91072
  clipPlaneNormals.push(clipPlaneNormal[1]);
91108
91073
  clipPlaneNormals.push(clipPlaneNormal[2]);
@@ -91770,14 +91735,14 @@ function vtkCubeAxesActorHelper(publicAPI, model) {
91770
91735
  ptv3[0] = coords[pos * 3];
91771
91736
  ptv3[1] = coords[pos * 3 + 1];
91772
91737
  ptv3[2] = coords[pos * 3 + 2];
91773
- esm/* .vec3.transformMat4 */.eR.Z0(CubeAxesActor_tmpv3, ptv3, cmat);
91738
+ esm.vec3.transformMat4(CubeAxesActor_tmpv3, ptv3, cmat);
91774
91739
  CubeAxesActor_tmpv3[0] += .1;
91775
- esm/* .vec3.transformMat4 */.eR.Z0(pt2v3, CubeAxesActor_tmpv3, imat);
91776
- esm/* .vec3.subtract */.eR.Re(xDir, pt2v3, ptv3);
91740
+ esm.vec3.transformMat4(pt2v3, CubeAxesActor_tmpv3, imat);
91741
+ esm.vec3.subtract(xDir, pt2v3, ptv3);
91777
91742
  CubeAxesActor_tmpv3[0] -= .1;
91778
91743
  CubeAxesActor_tmpv3[1] += .1;
91779
- esm/* .vec3.transformMat4 */.eR.Z0(pt2v3, CubeAxesActor_tmpv3, imat);
91780
- esm/* .vec3.subtract */.eR.Re(yDir, pt2v3, ptv3);
91744
+ esm.vec3.transformMat4(pt2v3, CubeAxesActor_tmpv3, imat);
91745
+ esm.vec3.subtract(yDir, pt2v3, ptv3);
91781
91746
  for (let i = 0; i < 3; i++) {
91782
91747
  xDir[i] /= .5 * .1 * size[0];
91783
91748
  yDir[i] /= .5 * .1 * size[1];
@@ -91787,36 +91752,36 @@ function vtkCubeAxesActorHelper(publicAPI, model) {
91787
91752
  ptv3[0] = coords[pos * 3];
91788
91753
  ptv3[1] = coords[pos * 3 + 1];
91789
91754
  ptv3[2] = coords[pos * 3 + 2];
91790
- if (dir[0] < -.5) esm/* .vec3.scale */.eR.hs(CubeAxesActor_tmpv3, xDir, dir[0] * offset - value.width);
91791
- else if (dir[0] > .5) esm/* .vec3.scale */.eR.hs(CubeAxesActor_tmpv3, xDir, dir[0] * offset);
91792
- else esm/* .vec3.scale */.eR.hs(CubeAxesActor_tmpv3, xDir, dir[0] * offset - value.width / 2);
91793
- esm/* .vec3.add */.eR.WQ(ptv3, ptv3, CubeAxesActor_tmpv3);
91794
- esm/* .vec3.scale */.eR.hs(CubeAxesActor_tmpv3, yDir, dir[1] * offset - value.height / 2);
91795
- esm/* .vec3.add */.eR.WQ(ptv3, ptv3, CubeAxesActor_tmpv3);
91755
+ if (dir[0] < -.5) esm.vec3.scale(CubeAxesActor_tmpv3, xDir, dir[0] * offset - value.width);
91756
+ else if (dir[0] > .5) esm.vec3.scale(CubeAxesActor_tmpv3, xDir, dir[0] * offset);
91757
+ else esm.vec3.scale(CubeAxesActor_tmpv3, xDir, dir[0] * offset - value.width / 2);
91758
+ esm.vec3.add(ptv3, ptv3, CubeAxesActor_tmpv3);
91759
+ esm.vec3.scale(CubeAxesActor_tmpv3, yDir, dir[1] * offset - value.height / 2);
91760
+ esm.vec3.add(ptv3, ptv3, CubeAxesActor_tmpv3);
91796
91761
  results.points[ptIdx * 3] = ptv3[0];
91797
91762
  results.points[ptIdx * 3 + 1] = ptv3[1];
91798
91763
  results.points[ptIdx * 3 + 2] = ptv3[2];
91799
91764
  results.tcoords[ptIdx * 2] = value.tcoords[0];
91800
91765
  results.tcoords[ptIdx * 2 + 1] = value.tcoords[1];
91801
91766
  ptIdx++;
91802
- esm/* .vec3.scale */.eR.hs(CubeAxesActor_tmpv3, xDir, value.width);
91803
- esm/* .vec3.add */.eR.WQ(ptv3, ptv3, CubeAxesActor_tmpv3);
91767
+ esm.vec3.scale(CubeAxesActor_tmpv3, xDir, value.width);
91768
+ esm.vec3.add(ptv3, ptv3, CubeAxesActor_tmpv3);
91804
91769
  results.points[ptIdx * 3] = ptv3[0];
91805
91770
  results.points[ptIdx * 3 + 1] = ptv3[1];
91806
91771
  results.points[ptIdx * 3 + 2] = ptv3[2];
91807
91772
  results.tcoords[ptIdx * 2] = value.tcoords[2];
91808
91773
  results.tcoords[ptIdx * 2 + 1] = value.tcoords[3];
91809
91774
  ptIdx++;
91810
- esm/* .vec3.scale */.eR.hs(CubeAxesActor_tmpv3, yDir, value.height);
91811
- esm/* .vec3.add */.eR.WQ(ptv3, ptv3, CubeAxesActor_tmpv3);
91775
+ esm.vec3.scale(CubeAxesActor_tmpv3, yDir, value.height);
91776
+ esm.vec3.add(ptv3, ptv3, CubeAxesActor_tmpv3);
91812
91777
  results.points[ptIdx * 3] = ptv3[0];
91813
91778
  results.points[ptIdx * 3 + 1] = ptv3[1];
91814
91779
  results.points[ptIdx * 3 + 2] = ptv3[2];
91815
91780
  results.tcoords[ptIdx * 2] = value.tcoords[4];
91816
91781
  results.tcoords[ptIdx * 2 + 1] = value.tcoords[5];
91817
91782
  ptIdx++;
91818
- esm/* .vec3.scale */.eR.hs(CubeAxesActor_tmpv3, xDir, value.width);
91819
- esm/* .vec3.subtract */.eR.Re(ptv3, ptv3, CubeAxesActor_tmpv3);
91783
+ esm.vec3.scale(CubeAxesActor_tmpv3, xDir, value.width);
91784
+ esm.vec3.subtract(ptv3, ptv3, CubeAxesActor_tmpv3);
91820
91785
  results.points[ptIdx * 3] = ptv3[0];
91821
91786
  results.points[ptIdx * 3 + 1] = ptv3[1];
91822
91787
  results.points[ptIdx * 3 + 2] = ptv3[2];
@@ -91837,14 +91802,14 @@ function vtkCubeAxesActorHelper(publicAPI, model) {
91837
91802
  };
91838
91803
  publicAPI.updateTexturePolyData = () => {
91839
91804
  const cmat = model.camera.getCompositeProjectionMatrix(model.lastAspectRatio, -1, 1);
91840
- esm/* .mat4.transpose */.pB.transpose(cmat, cmat);
91805
+ esm.mat4.transpose(cmat, cmat);
91841
91806
  const numLabels = model.renderable.getTextValues().length;
91842
91807
  const numPts = numLabels * 4;
91843
91808
  const numTris = numLabels * 2;
91844
91809
  const points = new Float64Array(numPts * 3);
91845
91810
  const polys = new Uint16Array(numTris * 4);
91846
91811
  const tcoords = new Float32Array(numPts * 2);
91847
- esm/* .mat4.invert */.pB.invert(invmat, cmat);
91812
+ esm.mat4.invert(invmat, cmat);
91848
91813
  const results = {
91849
91814
  ptIdx: 0,
91850
91815
  cellIdx: 0,
@@ -91861,12 +91826,12 @@ function vtkCubeAxesActorHelper(publicAPI, model) {
91861
91826
  ptv3[0] = coords[ptIdx * 3];
91862
91827
  ptv3[1] = coords[ptIdx * 3 + 1];
91863
91828
  ptv3[2] = coords[ptIdx * 3 + 2];
91864
- esm/* .vec3.transformMat4 */.eR.Z0(CubeAxesActor_tmpv3, ptv3, cmat);
91829
+ esm.vec3.transformMat4(CubeAxesActor_tmpv3, ptv3, cmat);
91865
91830
  ptv3[0] = coords[ptIdx * 3 + 3];
91866
91831
  ptv3[1] = coords[ptIdx * 3 + 4];
91867
91832
  ptv3[2] = coords[ptIdx * 3 + 5];
91868
- esm/* .vec3.transformMat4 */.eR.Z0(CubeAxesActor_tmp2v3, ptv3, cmat);
91869
- esm/* .vec3.subtract */.eR.Re(CubeAxesActor_tmpv3, CubeAxesActor_tmpv3, CubeAxesActor_tmp2v3);
91833
+ esm.vec3.transformMat4(CubeAxesActor_tmp2v3, ptv3, cmat);
91834
+ esm.vec3.subtract(CubeAxesActor_tmpv3, CubeAxesActor_tmpv3, CubeAxesActor_tmp2v3);
91870
91835
  const dir = [CubeAxesActor_tmpv3[0], CubeAxesActor_tmpv3[1]];
91871
91836
  (0,Core_Math/* .normalize2D */.S7)(dir);
91872
91837
  publicAPI.createPolyDataForOneLabel(textValues[textIdx], ptIdx, cmat, invmat, dir, model.renderable.getAxisTitlePixelOffset(), results);
@@ -91943,7 +91908,7 @@ function vtkCubeAxesActor(publicAPI, model) {
91943
91908
  };
91944
91909
  publicAPI.computeFacesToDraw = () => {
91945
91910
  const cmat = model.camera.getViewMatrix();
91946
- esm/* .mat4.transpose */.pB.transpose(cmat, cmat);
91911
+ esm.mat4.transpose(cmat, cmat);
91947
91912
  let changed = false;
91948
91913
  const length = BoundingBox/* ["default"].getDiagonalLength */.Ay.getDiagonalLength(model.dataBounds);
91949
91914
  const faceDot = Math.sin(model.faceVisibilityAngle * Math.PI / 180);
@@ -91956,15 +91921,15 @@ function vtkCubeAxesActor(publicAPI, model) {
91956
91921
  ptv3[faceAxis] = model.dataBounds[f] - .1 * length * faceNormals[f][faceAxis];
91957
91922
  ptv3[otherAxis1] = .5 * (model.dataBounds[otherAxis1 * 2] + model.dataBounds[otherAxis1 * 2 + 1]);
91958
91923
  ptv3[otherAxis2] = .5 * (model.dataBounds[otherAxis2 * 2] + model.dataBounds[otherAxis2 * 2 + 1]);
91959
- esm/* .vec3.transformMat4 */.eR.Z0(CubeAxesActor_tmpv3, ptv3, cmat);
91924
+ esm.vec3.transformMat4(CubeAxesActor_tmpv3, ptv3, cmat);
91960
91925
  ptv3[faceAxis] = model.dataBounds[f];
91961
- esm/* .vec3.transformMat4 */.eR.Z0(CubeAxesActor_tmp2v3, ptv3, cmat);
91962
- esm/* .vec3.subtract */.eR.Re(CubeAxesActor_tmpv3, CubeAxesActor_tmp2v3, CubeAxesActor_tmpv3);
91963
- esm/* .vec3.normalize */.eR.S8(CubeAxesActor_tmpv3, CubeAxesActor_tmpv3);
91926
+ esm.vec3.transformMat4(CubeAxesActor_tmp2v3, ptv3, cmat);
91927
+ esm.vec3.subtract(CubeAxesActor_tmpv3, CubeAxesActor_tmp2v3, CubeAxesActor_tmpv3);
91928
+ esm.vec3.normalize(CubeAxesActor_tmpv3, CubeAxesActor_tmpv3);
91964
91929
  drawit = CubeAxesActor_tmpv3[2] > faceDot;
91965
91930
  if (!model.camera.getParallelProjection()) {
91966
- esm/* .vec3.normalize */.eR.S8(CubeAxesActor_tmp2v3, CubeAxesActor_tmp2v3);
91967
- drawit = esm/* .vec3.dot */.eR.Om(CubeAxesActor_tmp2v3, CubeAxesActor_tmpv3) > faceDot;
91931
+ esm.vec3.normalize(CubeAxesActor_tmp2v3, CubeAxesActor_tmp2v3);
91932
+ drawit = esm.vec3.dot(CubeAxesActor_tmp2v3, CubeAxesActor_tmpv3) > faceDot;
91968
91933
  }
91969
91934
  }
91970
91935
  if (drawit !== model.lastFacesToDraw[f]) {
@@ -92531,7 +92496,7 @@ function vtkOpenGLCutterMapper(publicAPI, model) {
92531
92496
  if (shiftScaleEnabled && !inverseShiftScaleMatrix) vtkErrorMacro("Failed to retrieve inverse shift and scale matrix for cut function");
92532
92497
  const cutFunctionTransform = cutFunction.getTransform?.();
92533
92498
  const transformMatrix = cutFunctionTransform?.getMatrix ? Array.from(cutFunctionTransform.getMatrix()) : Constants/* .IDENTITY */.zK;
92534
- const cutFunctionMatrix = inverseShiftScaleMatrix ? esm/* .mat4.multiply */.pB.multiply(model.tmpMat4, transformMatrix, inverseShiftScaleMatrix) : transformMatrix;
92499
+ const cutFunctionMatrix = inverseShiftScaleMatrix ? esm.mat4.multiply(model.tmpMat4, transformMatrix, inverseShiftScaleMatrix) : transformMatrix;
92535
92500
  const program = cellBO.getProgram();
92536
92501
  if (program.isUniformUsed("cutFunctionMatrix")) program.setUniformMatrix("cutFunctionMatrix", cutFunctionMatrix);
92537
92502
  switch (functionName) {
@@ -92991,7 +92956,7 @@ function vtkOpenGLPolyDataMapper2D(publicAPI, model) {
92991
92956
  let top = -yoff + size[1];
92992
92957
  if (left === right) right = left + 1;
92993
92958
  if (bottom === top) top = bottom + 1;
92994
- const tmpMat4 = esm/* .mat4.identity */.pB.identity(new Float64Array(16));
92959
+ const tmpMat4 = esm.mat4.identity(new Float64Array(16));
92995
92960
  tmpMat4[0] = 2 / (right - left);
92996
92961
  tmpMat4[5] = 2 / (top - bottom);
92997
92962
  tmpMat4[3] = -1 * (right + left) / (right - left);
@@ -92999,8 +92964,8 @@ function vtkOpenGLPolyDataMapper2D(publicAPI, model) {
92999
92964
  tmpMat4[10] = 0;
93000
92965
  tmpMat4[11] = actor.getProperty().getDisplayLocation() === DisplayLocation.FOREGROUND ? -1 : 1;
93001
92966
  tmpMat4[15] = 1;
93002
- esm/* .mat4.transpose */.pB.transpose(tmpMat4, tmpMat4);
93003
- program.setUniformMatrix("WCVCMatrix", safeMatrixMultiply([tmpMat4, inverseShiftScaleMatrix], esm/* .mat4 */.pB, model.tmpMat4));
92967
+ esm.mat4.transpose(tmpMat4, tmpMat4);
92968
+ program.setUniformMatrix("WCVCMatrix", safeMatrixMultiply([tmpMat4, inverseShiftScaleMatrix], esm.mat4, model.tmpMat4));
93004
92969
  };
93005
92970
  publicAPI.getAllocatedGPUMemoryInBytes = () => {
93006
92971
  let memUsed = 0;
@@ -93025,7 +92990,7 @@ function PolyDataMapper2D_extend(publicAPI, model, initialValues = {}) {
93025
92990
  ReplacementShaderMapper/* ["default"].implementBuildShadersWithReplacements */.A.implementBuildShadersWithReplacements(publicAPI, model, initialValues);
93026
92991
  model.primitives = [];
93027
92992
  model.primTypes = primTypes;
93028
- model.tmpMat4 = esm/* .mat4.identity */.pB.identity(new Float64Array(16));
92993
+ model.tmpMat4 = esm.mat4.identity(new Float64Array(16));
93029
92994
  for (let i = primTypes.Start; i < primTypes.End; i++) {
93030
92995
  model.primitives[i] = Helper/* ["default"].newInstance */.Ay.newInstance();
93031
92996
  model.primitives[i].setPrimitiveType(i);
@@ -94234,27 +94199,27 @@ function vtkWebGPUActor(publicAPI, model) {
94234
94199
  model.bufferShift[1] -= center[1];
94235
94200
  model.bufferShift[2] -= center[2];
94236
94201
  }
94237
- esm/* .mat4.transpose */.pB.transpose(model.keyMatrices.bcwc, mcwc);
94238
- if (model.renderable.getIsIdentity()) esm/* .mat4.identity */.pB.identity(model.keyMatrices.normalMatrix);
94202
+ esm.mat4.transpose(model.keyMatrices.bcwc, mcwc);
94203
+ if (model.renderable.getIsIdentity()) esm.mat4.identity(model.keyMatrices.normalMatrix);
94239
94204
  else {
94240
- esm/* .mat4.copy */.pB.copy(model.keyMatrices.normalMatrix, model.keyMatrices.bcwc);
94205
+ esm.mat4.copy(model.keyMatrices.normalMatrix, model.keyMatrices.bcwc);
94241
94206
  model.keyMatrices.normalMatrix[3] = 0;
94242
94207
  model.keyMatrices.normalMatrix[7] = 0;
94243
94208
  model.keyMatrices.normalMatrix[11] = 0;
94244
- esm/* .mat4.invert */.pB.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
94245
- esm/* .mat4.transpose */.pB.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
94209
+ esm.mat4.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
94210
+ esm.mat4.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
94246
94211
  }
94247
- esm/* .mat4.translate */.pB.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [
94212
+ esm.mat4.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [
94248
94213
  -model.bufferShift[0],
94249
94214
  -model.bufferShift[1],
94250
94215
  -model.bufferShift[2]
94251
94216
  ]);
94252
- if (model.renderable.getCoordinateSystem() === CoordinateSystem.WORLD) esm/* .mat4.translate */.pB.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [
94217
+ if (model.renderable.getCoordinateSystem() === CoordinateSystem.WORLD) esm.mat4.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [
94253
94218
  -center[0],
94254
94219
  -center[1],
94255
94220
  -center[2]
94256
94221
  ]);
94257
- else esm/* .mat4.copy */.pB.copy(model.keyMatrices.bcsc, model.keyMatrices.bcwc);
94222
+ else esm.mat4.copy(model.keyMatrices.bcsc, model.keyMatrices.bcwc);
94258
94223
  model.keyMatricesTime.modified();
94259
94224
  }
94260
94225
  return model.keyMatrices;
@@ -94349,19 +94314,19 @@ function vtkWebGPUActor2D(publicAPI, model) {
94349
94314
  model.bufferShift[1] -= center[1];
94350
94315
  model.bufferShift[2] -= center[2];
94351
94316
  }
94352
- esm/* .mat4.identity */.pB.identity(model.keyMatrices.bcwc);
94353
- esm/* .mat4.identity */.pB.identity(model.keyMatrices.normalMatrix);
94354
- esm/* .mat4.translate */.pB.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [
94317
+ esm.mat4.identity(model.keyMatrices.bcwc);
94318
+ esm.mat4.identity(model.keyMatrices.normalMatrix);
94319
+ esm.mat4.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [
94355
94320
  -model.bufferShift[0],
94356
94321
  -model.bufferShift[1],
94357
94322
  -model.bufferShift[2]
94358
94323
  ]);
94359
- if (model.renderable.getCoordinateSystem() === Actor2D_CoordinateSystem.WORLD) esm/* .mat4.translate */.pB.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [
94324
+ if (model.renderable.getCoordinateSystem() === Actor2D_CoordinateSystem.WORLD) esm.mat4.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [
94360
94325
  -center[0],
94361
94326
  -center[1],
94362
94327
  -center[2]
94363
94328
  ]);
94364
- else esm/* .mat4.copy */.pB.copy(model.keyMatrices.bcsc, model.keyMatrices.bcwc);
94329
+ else esm.mat4.copy(model.keyMatrices.bcsc, model.keyMatrices.bcwc);
94365
94330
  model.keyMatricesTime.modified();
94366
94331
  }
94367
94332
  return model.keyMatrices;
@@ -95038,7 +95003,7 @@ function vtkWebGPUCellArrayMapper(publicAPI, model) {
95038
95003
  model.UBO.setValue("NumClipPlanes", 0);
95039
95004
  if (!model.is2D && model.useRendererMatrix) {
95040
95005
  const center = model.WebGPURenderer.getStabilizedCenterByReference();
95041
- esm/* .mat4.fromTranslation */.pB.fromTranslation(tmp2Mat4, [
95006
+ esm.mat4.fromTranslation(tmp2Mat4, [
95042
95007
  -center[0],
95043
95008
  -center[1],
95044
95009
  -center[2]
@@ -95656,7 +95621,7 @@ function CellArrayMapper_extend(publicAPI, model, initiaLalues = {}) {
95656
95621
  SimpleMapper/* ["default"].extend */.Ay.extend(publicAPI, model, initiaLalues);
95657
95622
  model.fragmentShaderTemplate = vtkWebGPUPolyDataFS;
95658
95623
  model.vertexShaderTemplate = vtkWebGPUPolyDataVS;
95659
- model._tmpMat3 = esm/* .mat3.identity */.w0.identity(new Float64Array(9));
95624
+ model._tmpMat3 = esm.mat3.identity(new Float64Array(9));
95660
95625
  model.UBO = UniformBuffer/* ["default"].newInstance */.Ay.newInstance({ label: "mapperUBO" });
95661
95626
  model.UBO.addEntry("BCWCMatrix", "mat4x4<f32>");
95662
95627
  model.UBO.addEntry("BCSCMatrix", "mat4x4<f32>");
@@ -96563,7 +96528,7 @@ function vtkWebGPUSkybox(publicAPI, model) {
96563
96528
  const camera = model.WebGPURenderer.getRenderable().getActiveCamera();
96564
96529
  const keyMats = model.webgpuCamera.getKeyMatrices(model.WebGPURenderer);
96565
96530
  const stabilizedCenter = model.WebGPURenderer.getStabilizedCenterByReference();
96566
- esm/* .mat4.copy */.pB.copy(_imcpc, keyMats.pcsc);
96531
+ esm.mat4.copy(_imcpc, keyMats.pcsc);
96567
96532
  model.UBO.setArray("IMCPCMatrix", _imcpc);
96568
96533
  model.UBO.setArray("CameraPosition", [
96569
96534
  camera.getPositionByReference()[0] - stabilizedCenter[0],
@@ -96913,27 +96878,27 @@ function vtkWebGPUImageMapper(publicAPI, model) {
96913
96878
  if (publicAPI.getMTime() > utime || model.renderable.getMTime() > utime || actor.getProperty().getMTime() > utime || clippingPlanesMTime > utime) {
96914
96879
  const image = volMapr.getCurrentImage();
96915
96880
  const center = model.WebGPURenderer.getStabilizedCenterByReference();
96916
- esm/* .mat4.identity */.pB.identity(tmpMat4);
96917
- esm/* .mat4.translate */.pB.translate(tmpMat4, tmpMat4, center);
96881
+ esm.mat4.identity(tmpMat4);
96882
+ esm.mat4.translate(tmpMat4, tmpMat4, center);
96918
96883
  const mcwcmat = actor.getMatrix();
96919
- esm/* .mat4.transpose */.pB.transpose(tmp2Mat4, mcwcmat);
96920
- esm/* .mat4.invert */.pB.invert(tmp2Mat4, tmp2Mat4);
96921
- esm/* .mat4.multiply */.pB.multiply(tmpMat4, tmp2Mat4, tmpMat4);
96884
+ esm.mat4.transpose(tmp2Mat4, mcwcmat);
96885
+ esm.mat4.invert(tmp2Mat4, tmp2Mat4);
96886
+ esm.mat4.multiply(tmpMat4, tmp2Mat4, tmpMat4);
96922
96887
  const modelToIndex = image.getWorldToIndex();
96923
- esm/* .mat4.multiply */.pB.multiply(tmpMat4, modelToIndex, tmpMat4);
96924
- esm/* .mat4.invert */.pB.invert(tmp3Mat4, tmpMat4);
96888
+ esm.mat4.multiply(tmpMat4, modelToIndex, tmpMat4);
96889
+ esm.mat4.invert(tmp3Mat4, tmpMat4);
96925
96890
  tmpTranslate3[0] = .5;
96926
96891
  tmpTranslate3[1] = .5;
96927
96892
  tmpTranslate3[2] = .5;
96928
- esm/* .mat4.fromTranslation */.pB.fromTranslation(tmp2Mat4, tmpTranslate3);
96929
- esm/* .mat4.multiply */.pB.multiply(tmpMat4, tmp2Mat4, tmpMat4);
96893
+ esm.mat4.fromTranslation(tmp2Mat4, tmpTranslate3);
96894
+ esm.mat4.multiply(tmpMat4, tmp2Mat4, tmpMat4);
96930
96895
  const dims = image.getDimensions();
96931
- esm/* .mat4.identity */.pB.identity(tmp2Mat4);
96896
+ esm.mat4.identity(tmp2Mat4);
96932
96897
  tmpScale3[0] = 1 / dims[0];
96933
96898
  tmpScale3[1] = 1 / dims[1];
96934
96899
  tmpScale3[2] = 1 / dims[2];
96935
- esm/* .mat4.scale */.pB.scale(tmp2Mat4, tmp2Mat4, tmpScale3);
96936
- esm/* .mat4.multiply */.pB.multiply(tmpMat4, tmp2Mat4, tmpMat4);
96900
+ esm.mat4.scale(tmp2Mat4, tmp2Mat4, tmpScale3);
96901
+ esm.mat4.multiply(tmpMat4, tmp2Mat4, tmpMat4);
96937
96902
  model.UBO.setArray("SCTCMatrix", tmpMat4);
96938
96903
  const ext = model.currentInput.getExtent();
96939
96904
  const { ijkMode } = model.renderable.getClosestIJKAxis();
@@ -96955,22 +96920,22 @@ function vtkWebGPUImageMapper(publicAPI, model) {
96955
96920
  ptsArray1[axis1] = ext[axis1 * 2] - .5;
96956
96921
  ptsArray1[axis2] = ext[axis2 * 2] - .5;
96957
96922
  ptsArray1[3] = 1;
96958
- esm/* .vec4.transformMat4 */.ln.Z0(ptsArray1, ptsArray1, tmp3Mat4);
96923
+ esm.vec4.transformMat4(ptsArray1, ptsArray1, tmp3Mat4);
96959
96924
  model.UBO.setArray("Origin", ptsArray1);
96960
96925
  ptsArray2[axis0] = nSlice;
96961
96926
  ptsArray2[axis1] = ext[axis1 * 2 + 1] + .5;
96962
96927
  ptsArray2[axis2] = ext[axis2 * 2] - .5;
96963
96928
  ptsArray2[3] = 1;
96964
- esm/* .vec4.transformMat4 */.ln.Z0(ptsArray2, ptsArray2, tmp3Mat4);
96965
- esm/* .vec4.subtract */.ln.Re(ptsArray2, ptsArray2, ptsArray1);
96929
+ esm.vec4.transformMat4(ptsArray2, ptsArray2, tmp3Mat4);
96930
+ esm.vec4.subtract(ptsArray2, ptsArray2, ptsArray1);
96966
96931
  ptsArray2[3] = 1;
96967
96932
  model.UBO.setArray("Axis1", ptsArray2);
96968
96933
  ptsArray2[axis0] = nSlice;
96969
96934
  ptsArray2[axis1] = ext[axis1 * 2] - .5;
96970
96935
  ptsArray2[axis2] = ext[axis2 * 2 + 1] + .5;
96971
96936
  ptsArray2[3] = 1;
96972
- esm/* .vec4.transformMat4 */.ln.Z0(ptsArray2, ptsArray2, tmp3Mat4);
96973
- esm/* .vec4.subtract */.ln.Re(ptsArray2, ptsArray2, ptsArray1);
96937
+ esm.vec4.transformMat4(ptsArray2, ptsArray2, tmp3Mat4);
96938
+ esm.vec4.subtract(ptsArray2, ptsArray2, ptsArray1);
96974
96939
  ptsArray2[3] = 1;
96975
96940
  model.UBO.setArray("Axis2", ptsArray2);
96976
96941
  const { cScale, cShift, oScale, oShift, componentWeight } = model;
@@ -97036,7 +97001,7 @@ function vtkWebGPUImageMapper(publicAPI, model) {
97036
97001
  const numClipPlanes = model.renderable.getClippingPlanes().length;
97037
97002
  model.UBO.setValue("NumClipPlanes", numClipPlanes);
97038
97003
  if (numClipPlanes > 0) {
97039
- esm/* .mat4.fromTranslation */.pB.fromTranslation(tmp2Mat4, [
97004
+ esm.mat4.fromTranslation(tmp2Mat4, [
97040
97005
  -center[0],
97041
97006
  -center[1],
97042
97007
  -center[2]
@@ -97629,8 +97594,8 @@ function extend(publicAPI, model, initialValues = {}) {
97629
97594
  model.UBO.addEntry("NumClipPlanes", "u32");
97630
97595
  model.lutBuildTime = {};
97631
97596
  (0,macros/* .obj */.WL)(model.lutBuildTime, { mtime: 0 });
97632
- model.imagemat = esm/* .mat4.identity */.pB.identity(new Float64Array(16));
97633
- model.imagematinv = esm/* .mat4.identity */.pB.identity(new Float64Array(16));
97597
+ model.imagemat = esm.mat4.identity(new Float64Array(16));
97598
+ model.imagematinv = esm.mat4.identity(new Float64Array(16));
97634
97599
  model.cScale = new Float32Array(4);
97635
97600
  model.cShift = new Float32Array(4);
97636
97601
  model.oScale = new Float32Array(4);
@@ -97726,22 +97691,22 @@ function vtkWebGPUImageSlice(publicAPI, model) {
97726
97691
  model.bufferShift[0] = mcwc[3] - center[0];
97727
97692
  model.bufferShift[1] = mcwc[7] - center[1];
97728
97693
  model.bufferShift[2] = mcwc[11] - center[2];
97729
- esm/* .mat4.transpose */.pB.transpose(model.keyMatrices.bcwc, mcwc);
97730
- if (model.renderable.getIsIdentity()) esm/* .mat4.identity */.pB.identity(model.keyMatrices.normalMatrix);
97694
+ esm.mat4.transpose(model.keyMatrices.bcwc, mcwc);
97695
+ if (model.renderable.getIsIdentity()) esm.mat4.identity(model.keyMatrices.normalMatrix);
97731
97696
  else {
97732
- esm/* .mat4.copy */.pB.copy(model.keyMatrices.normalMatrix, model.keyMatrices.bcwc);
97697
+ esm.mat4.copy(model.keyMatrices.normalMatrix, model.keyMatrices.bcwc);
97733
97698
  model.keyMatrices.normalMatrix[3] = 0;
97734
97699
  model.keyMatrices.normalMatrix[7] = 0;
97735
97700
  model.keyMatrices.normalMatrix[11] = 0;
97736
- esm/* .mat4.invert */.pB.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
97737
- esm/* .mat4.transpose */.pB.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
97701
+ esm.mat4.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
97702
+ esm.mat4.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
97738
97703
  }
97739
- esm/* .mat4.translate */.pB.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [
97704
+ esm.mat4.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [
97740
97705
  -model.bufferShift[0],
97741
97706
  -model.bufferShift[1],
97742
97707
  -model.bufferShift[2]
97743
97708
  ]);
97744
- esm/* .mat4.translate */.pB.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [
97709
+ esm.mat4.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [
97745
97710
  -center[0],
97746
97711
  -center[1],
97747
97712
  -center[2]
@@ -97769,7 +97734,7 @@ function ImageSlice_extend(publicAPI, model, initialValues = {}) {
97769
97734
  };
97770
97735
  model.keyMatrixTime = {};
97771
97736
  (0,macros/* .obj */.WL)(model.keyMatrixTime, { mtime: 0 });
97772
- model.keyMatrices = { mcwc: esm/* .mat4.identity */.pB.identity(new Float64Array(16)) };
97737
+ model.keyMatrices = { mcwc: esm.mat4.identity(new Float64Array(16)) };
97773
97738
  model.bufferShift = [
97774
97739
  0,
97775
97740
  0,
@@ -97847,8 +97812,8 @@ function vtkWebGPUVolume(publicAPI, model) {
97847
97812
  model.renderable.computeMatrix();
97848
97813
  const mcwc = model.renderable.getMatrix();
97849
97814
  const center = wgpuRen.getStabilizedCenterByReference();
97850
- esm/* .mat4.transpose */.pB.transpose(model.keyMatrices.bcwc, mcwc);
97851
- esm/* .mat4.translate */.pB.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [
97815
+ esm.mat4.transpose(model.keyMatrices.bcwc, mcwc);
97816
+ esm.mat4.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [
97852
97817
  -center[0],
97853
97818
  -center[1],
97854
97819
  -center[2]
@@ -98415,8 +98380,8 @@ function vtkWebGPUImageCPRMapper(publicAPI, model) {
98415
98380
  const image = model.currentImageDataInput;
98416
98381
  if (publicAPI.getMTime() <= utime && model.renderable.getMTime() <= utime && actor.getMTime() <= utime && property.getMTime() <= utime && image.getMTime() <= utime && model.WebGPURenderer.getStabilizedTime() <= utime) return;
98417
98382
  const center = model.WebGPURenderer.getStabilizedCenterByReference();
98418
- esm/* .mat4.transpose */.pB.transpose(ImageCPRMapper_tmpMat4, actor.getMatrix());
98419
- esm/* .mat4.translate */.pB.translate(ImageCPRMapper_tmpMat4, ImageCPRMapper_tmpMat4, [
98383
+ esm.mat4.transpose(ImageCPRMapper_tmpMat4, actor.getMatrix());
98384
+ esm.mat4.translate(ImageCPRMapper_tmpMat4, ImageCPRMapper_tmpMat4, [
98420
98385
  -center[0],
98421
98386
  -center[1],
98422
98387
  -center[2]
@@ -98424,13 +98389,13 @@ function vtkWebGPUImageCPRMapper(publicAPI, model) {
98424
98389
  model.UBO.setArray("BCSCMatrix", ImageCPRMapper_tmpMat4);
98425
98390
  const modelToIndex = image.getWorldToIndex();
98426
98391
  const dims = image.getDimensions();
98427
- esm/* .mat4.identity */.pB.identity(ImageCPRMapper_tmp2Mat4);
98428
- esm/* .mat4.scale */.pB.scale(ImageCPRMapper_tmp2Mat4, ImageCPRMapper_tmp2Mat4, [
98392
+ esm.mat4.identity(ImageCPRMapper_tmp2Mat4);
98393
+ esm.mat4.scale(ImageCPRMapper_tmp2Mat4, ImageCPRMapper_tmp2Mat4, [
98429
98394
  1 / Math.max(dims[0], 1),
98430
98395
  1 / Math.max(dims[1], 1),
98431
98396
  1 / Math.max(dims[2], 1)
98432
98397
  ]);
98433
- esm/* .mat4.multiply */.pB.multiply(ImageCPRMapper_tmpMat4, ImageCPRMapper_tmp2Mat4, modelToIndex);
98398
+ esm.mat4.multiply(ImageCPRMapper_tmpMat4, ImageCPRMapper_tmp2Mat4, modelToIndex);
98434
98399
  model.UBO.setArray("MCTCMatrix", ImageCPRMapper_tmpMat4);
98435
98400
  const centerPoint = model.renderable.getCenterPoint();
98436
98401
  model.UBO.setArray("GlobalCenterPoint", [...centerPoint ?? [
@@ -99046,28 +99011,28 @@ function buildDependentComponentSampleLines(textureChannelMode) {
99046
99011
  }
99047
99012
  function updateResliceMatrixUBO(model) {
99048
99013
  const image = model.currentInput;
99049
- esm/* .mat4.copy */.pB.copy(ImageResliceMapper_tmpMat4, image.getIndexToWorld());
99050
- esm/* .mat4.translate */.pB.translate(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4, [
99014
+ esm.mat4.copy(ImageResliceMapper_tmpMat4, image.getIndexToWorld());
99015
+ esm.mat4.translate(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4, [
99051
99016
  -.5,
99052
99017
  -.5,
99053
99018
  -.5
99054
99019
  ]);
99055
- esm/* .mat4.scale */.pB.scale(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4, image.getDimensions());
99056
- esm/* .mat4.invert */.pB.invert(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4);
99020
+ esm.mat4.scale(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4, image.getDimensions());
99021
+ esm.mat4.invert(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4);
99057
99022
  model.UBO.setArray("SCTCMatrix", ImageResliceMapper_tmpMat4);
99058
99023
  for (let i = 1; i < MAX_TEXTURE_INPUTS; i++) {
99059
99024
  const imageData = model.currentValidInputs[i]?.imageData;
99060
99025
  if (imageData) {
99061
- esm/* .mat4.copy */.pB.copy(ImageResliceMapper_tmpMat4, imageData.getIndexToWorld());
99062
- esm/* .mat4.translate */.pB.translate(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4, [
99026
+ esm.mat4.copy(ImageResliceMapper_tmpMat4, imageData.getIndexToWorld());
99027
+ esm.mat4.translate(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4, [
99063
99028
  -.5,
99064
99029
  -.5,
99065
99030
  -.5
99066
99031
  ]);
99067
- esm/* .mat4.scale */.pB.scale(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4, imageData.getDimensions());
99068
- esm/* .mat4.invert */.pB.invert(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4);
99032
+ esm.mat4.scale(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4, imageData.getDimensions());
99033
+ esm.mat4.invert(ImageResliceMapper_tmpMat4, ImageResliceMapper_tmpMat4);
99069
99034
  model.UBO.setArray(getWCTCMatrixName(i), ImageResliceMapper_tmpMat4);
99070
- } else model.UBO.setArray(getWCTCMatrixName(i), esm/* .mat4.identity */.pB.identity(ImageResliceMapper_tmpMat4));
99035
+ } else model.UBO.setArray(getWCTCMatrixName(i), esm.mat4.identity(ImageResliceMapper_tmpMat4));
99071
99036
  }
99072
99037
  }
99073
99038
  function updateOutlineBasisUBO(model, slicePlane) {
@@ -100801,7 +100766,7 @@ __webpack_require__.d(__webpack_exports__, {
100801
100766
  function vtkWebGPUCamera(publicAPI, model) {
100802
100767
  model.classHierarchy.push("vtkWebGPUCamera");
100803
100768
  publicAPI.getProjectionMatrix = (outMat, aspect, cRange, windowCenter) => {
100804
- gl_matrix__rspack_import_3/* .mat4.identity */.pB.identity(outMat);
100769
+ gl_matrix__rspack_import_3.mat4.identity(outMat);
100805
100770
  if (model.renderable.getParallelProjection()) {
100806
100771
  const parallelScale = model.renderable.getParallelScale();
100807
100772
  const width = parallelScale * aspect;
@@ -100855,19 +100820,19 @@ function vtkWebGPUCamera(publicAPI, model) {
100855
100820
  const webGPURenderWindow = webGPURenderer.getParent();
100856
100821
  if (Math.max(webGPURenderWindow.getMTime(), publicAPI.getMTime(), ren.getMTime(), model.renderable.getMTime(), webGPURenderer.getStabilizedTime()) > model.keyMatrixTime.getMTime()) {
100857
100822
  const wcvc = model.renderable.getViewMatrix();
100858
- gl_matrix__rspack_import_3/* .mat4.copy */.pB.copy(model.keyMatrices.normalMatrix, wcvc);
100823
+ gl_matrix__rspack_import_3.mat4.copy(model.keyMatrices.normalMatrix, wcvc);
100859
100824
  model.keyMatrices.normalMatrix[3] = 0;
100860
100825
  model.keyMatrices.normalMatrix[7] = 0;
100861
100826
  model.keyMatrices.normalMatrix[11] = 0;
100862
- gl_matrix__rspack_import_3/* .mat4.invert */.pB.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
100863
- gl_matrix__rspack_import_3/* .mat4.transpose */.pB.transpose(model.keyMatrices.wcvc, wcvc);
100827
+ gl_matrix__rspack_import_3.mat4.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix);
100828
+ gl_matrix__rspack_import_3.mat4.transpose(model.keyMatrices.wcvc, wcvc);
100864
100829
  const center = webGPURenderer.getStabilizedCenterByReference();
100865
- gl_matrix__rspack_import_3/* .mat4.translate */.pB.translate(model.keyMatrices.scvc, model.keyMatrices.wcvc, center);
100830
+ gl_matrix__rspack_import_3.mat4.translate(model.keyMatrices.scvc, model.keyMatrices.wcvc, center);
100866
100831
  const aspectRatio = webGPURenderer.getAspectRatio();
100867
100832
  const cRange = model.renderable.getClippingRangeByReference();
100868
100833
  publicAPI.getProjectionMatrix(model.keyMatrices.vcpc, aspectRatio, cRange, model.renderable.getWindowCenterByReference());
100869
- gl_matrix__rspack_import_3/* .mat4.multiply */.pB.multiply(model.keyMatrices.scpc, model.keyMatrices.vcpc, model.keyMatrices.scvc);
100870
- gl_matrix__rspack_import_3/* .mat4.invert */.pB.invert(model.keyMatrices.pcsc, model.keyMatrices.scpc);
100834
+ gl_matrix__rspack_import_3.mat4.multiply(model.keyMatrices.scpc, model.keyMatrices.vcpc, model.keyMatrices.scvc);
100835
+ gl_matrix__rspack_import_3.mat4.invert(model.keyMatrices.pcsc, model.keyMatrices.scpc);
100871
100836
  model.keyMatrixTime.modified();
100872
100837
  }
100873
100838
  return model.keyMatrices;
@@ -101476,9 +101441,9 @@ function vtkWebGPUBackground(publicAPI, model) {
101476
101441
  1
101477
101442
  ]);
101478
101443
  const keyMats = model.webgpuCamera.getKeyMatrices(rendererNode);
101479
- esm/* .mat4.transpose */.pB.transpose(_tNormalMat4, keyMats.normalMatrix);
101480
- esm/* .mat4.mul */.pB.mul(_fsqMat4, keyMats.scvc, keyMats.pcsc);
101481
- esm/* .mat4.mul */.pB.mul(_fsqMat4, _tNormalMat4, _fsqMat4);
101444
+ esm.mat4.transpose(_tNormalMat4, keyMats.normalMatrix);
101445
+ esm.mat4.mul(_fsqMat4, keyMats.scvc, keyMats.pcsc);
101446
+ esm.mat4.mul(_fsqMat4, _tNormalMat4, _fsqMat4);
101482
101447
  model.UBO.setArray("FSQMatrix", _fsqMat4);
101483
101448
  model.UBO.sendIfNeeded(device);
101484
101449
  };
@@ -101554,10 +101519,10 @@ function vtkWebGPURenderer(publicAPI, model) {
101554
101519
  const dop = model.camera.getDirectionOfProjectionByReference();
101555
101520
  const center = [];
101556
101521
  const offset = [];
101557
- esm/* .vec3.scale */.eR.hs(offset, dop, .5 * (clipRange[0] + clipRange[1]));
101558
- esm/* .vec3.add */.eR.WQ(center, pos, offset);
101559
- esm/* .vec3.sub */.eR.jb(offset, center, model.stabilizedCenter);
101560
- if (esm/* .vec3.len */.eR.Il(offset) / (clipRange[1] - clipRange[0]) > model.recenterThreshold) {
101522
+ esm.vec3.scale(offset, dop, .5 * (clipRange[0] + clipRange[1]));
101523
+ esm.vec3.add(center, pos, offset);
101524
+ esm.vec3.sub(offset, center, model.stabilizedCenter);
101525
+ if (esm.vec3.len(offset) / (clipRange[1] - clipRange[0]) > model.recenterThreshold) {
101561
101526
  model.stabilizedCenter = center;
101562
101527
  model.stabilizedTime.modified();
101563
101528
  }
@@ -101606,7 +101571,7 @@ function vtkWebGPURenderer(publicAPI, model) {
101606
101571
  for (let i = 0; i < lights.length; i++) {
101607
101572
  const offset = i * 4;
101608
101573
  const viewCoordinatePosition = lights[i].getPosition();
101609
- esm/* .vec3.transformMat4 */.eR.Z0(viewCoordinatePosition, viewCoordinatePosition, keyMats.wcvc);
101574
+ esm.vec3.transformMat4(viewCoordinatePosition, viewCoordinatePosition, keyMats.wcvc);
101610
101575
  lightPosArray[offset] = viewCoordinatePosition[0];
101611
101576
  lightPosArray[offset + 1] = viewCoordinatePosition[1];
101612
101577
  lightPosArray[offset + 2] = viewCoordinatePosition[2];
@@ -101774,7 +101739,7 @@ function Renderer_extend(publicAPI, model, initialValues = {}) {
101774
101739
  model.bindGroup = BindGroup/* ["default"].newInstance */.Ay.newInstance({ label: "rendererBG" });
101775
101740
  model.bindGroup.setBindables([model.UBO, model.SSBO]);
101776
101741
  model.background = Background_default.newInstance();
101777
- model.tmpMat4 = esm/* .mat4.identity */.pB.identity(new Float64Array(16));
101742
+ model.tmpMat4 = esm.mat4.identity(new Float64Array(16));
101778
101743
  model.stabilizedTime = {};
101779
101744
  (0,macros/* .obj */.WL)(model.stabilizedTime, { mtime: 0 });
101780
101745
  (0,macros/* .get */.Jt)(publicAPI, model, ["bindGroup", "stabilizedTime"]);