exploria-ui 2026.9.26 → 2026.10.2

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 (159) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
  2. package/dist/components/data/EMediaViewer/EMediaViewer.d.ts +3 -4
  3. package/dist/components/feedback/EDialog/EDialog.vue.d.ts +15 -9
  4. package/dist/components/feedback/EDrawer/EDrawer.vue.d.ts +3 -4
  5. package/dist/components/feedback/EMessage/EMessage.d.ts +6 -7
  6. package/dist/components/feedback/EMessageBox/EMessageBox.d.ts +47 -20
  7. package/dist/components/feedback/EMessageBox/EMessageBox.vue.d.ts +10 -1
  8. package/dist/components/feedback/ENotification/ENotification.d.ts +3 -4
  9. package/dist/components/feedback/EPopover.vue.d.ts +5 -0
  10. package/dist/components/hooks/useContainer.d.ts +8 -7
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/components/index.js +59 -55
  13. package/dist/components/navigation/ETabs/ETabs.vue.d.ts +4 -0
  14. package/dist/directives/index.js +3 -3
  15. package/dist/index.css +1 -1
  16. package/dist/node_modules/.pnpm/@intlify_core-base@11.4.10/node_modules/@intlify/core-base/dist/core-base.js +829 -0
  17. package/dist/node_modules/.pnpm/@intlify_message-compiler@11.4.10/node_modules/@intlify/message-compiler/dist/message-compiler.js +775 -0
  18. package/dist/node_modules/.pnpm/@intlify_shared@11.4.10/node_modules/@intlify/shared/dist/shared.js +148 -0
  19. package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +1110 -0
  20. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/controls/OrbitControls.js +439 -0
  21. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/curves/NURBSCurve.js +31 -0
  22. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/curves/NURBSUtils.js +115 -0
  23. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/libs/fflate.module.js +251 -0
  24. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/FBXLoader.js +1426 -0
  25. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/FontLoader.js +68 -0
  26. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/GLTFLoader.js +1340 -0
  27. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +24 -0
  28. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/utils/SkeletonUtils.js +20 -0
  29. package/dist/node_modules/.pnpm/vue-i18n@11.4.10_vue@3.5.41_typescript@5.9.3_/node_modules/vue-i18n/dist/vue-i18n.js +532 -0
  30. package/dist/package.json.js +86 -0
  31. package/dist/src/components/advanced/ERollingFollow/ERollingFollow.vue.js +7 -0
  32. package/dist/src/components/advanced/ERollingFollow/ERollingFollow.vue_vue_type_script_setup_true_lang.js +42 -0
  33. package/dist/src/components/advanced/EVirtualList/EVirtualList.vue.js +7 -0
  34. package/dist/src/components/advanced/EVirtualList/EVirtualList.vue_vue_type_script_setup_true_lang.js +41 -0
  35. package/dist/src/components/advanced/EWatermark/EWatermark.vue.js +7 -0
  36. package/dist/src/components/advanced/EWatermark/EWatermark.vue_vue_type_script_setup_true_lang.js +98 -0
  37. package/dist/src/components/basic/EAvatar/EAvatar.vue.js +7 -0
  38. package/dist/src/components/basic/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +45 -0
  39. package/dist/src/components/basic/EBadge/EBadge.vue.js +7 -0
  40. package/dist/src/components/basic/EBadge/EBadge.vue_vue_type_script_setup_true_lang.js +48 -0
  41. package/dist/src/components/basic/EButton/EButton.vue.js +7 -0
  42. package/dist/src/components/basic/EButton/EButton.vue_vue_type_script_setup_true_lang.js +37 -0
  43. package/dist/src/components/basic/ECard/ECard.vue.js +7 -0
  44. package/dist/src/components/basic/ECard/ECard.vue_vue_type_script_setup_true_lang.js +41 -0
  45. package/dist/src/components/basic/ESvgIcon/ESvgIcon.vue.js +5 -0
  46. package/dist/src/components/basic/ESvgIcon/ESvgIcon.vue_vue_type_script_setup_true_lang.js +11 -0
  47. package/dist/src/components/basic/EUnderLine/EUnderLine.vue.js +11 -0
  48. package/dist/src/components/data/ECalendar.vue.js +7 -0
  49. package/dist/src/components/data/ECalendar.vue_vue_type_script_setup_true_lang.js +109 -0
  50. package/dist/src/components/data/ECarousel/ECarousel.vue.js +7 -0
  51. package/dist/src/components/data/ECarousel/ECarousel.vue_vue_type_script_setup_true_lang.js +165 -0
  52. package/dist/src/components/data/ECarousel/ECarouselItem.vue.js +7 -0
  53. package/dist/src/components/data/ECarousel/ECarouselItem.vue_vue_type_script_setup_true_lang.js +42 -0
  54. package/dist/src/components/data/ECodeCollapse/ECodeCollapse.vue.js +7 -0
  55. package/dist/src/components/data/ECodeCollapse/ECodeCollapse.vue_vue_type_script_setup_true_lang.js +46 -0
  56. package/dist/src/components/data/ECollapse/ECollapse.vue.js +7 -0
  57. package/dist/src/components/data/ECollapse/ECollapse.vue_vue_type_script_setup_true_lang.js +29 -0
  58. package/dist/src/components/data/EImage.vue.js +7 -0
  59. package/dist/src/components/data/EImage.vue_vue_type_script_setup_true_lang.js +31 -0
  60. package/dist/src/components/data/EList.vue.js +7 -0
  61. package/dist/src/components/data/EList.vue_vue_type_script_setup_true_lang.js +52 -0
  62. package/dist/src/components/data/EMediaViewer/EMediaViewer.js +64 -0
  63. package/dist/src/components/data/EMediaViewer/EMediaViewer.vue.js +7 -0
  64. package/dist/src/components/data/EMediaViewer/EMediaViewer.vue_vue_type_script_setup_true_lang.js +210 -0
  65. package/dist/src/components/data/EProgress.vue.js +7 -0
  66. package/dist/src/components/data/EProgress.vue_vue_type_script_setup_true_lang.js +100 -0
  67. package/dist/src/components/data/ERollingPagination.vue.js +7 -0
  68. package/dist/src/components/data/ERollingPagination.vue_vue_type_script_setup_true_lang.js +45 -0
  69. package/dist/src/components/data/ESkeleton/ESkeleton.vue.js +14 -0
  70. package/dist/src/components/data/ESteps/EStepItem.vue.js +7 -0
  71. package/dist/src/components/data/ESteps/EStepItem.vue_vue_type_script_setup_true_lang.js +144 -0
  72. package/dist/src/components/data/ESteps/ESteps.vue.js +7 -0
  73. package/dist/src/components/data/ESteps/ESteps.vue_vue_type_script_setup_true_lang.js +25 -0
  74. package/dist/src/components/data/ETable/ETable.vue.js +7 -0
  75. package/dist/src/components/data/ETable/ETable.vue_vue_type_script_setup_true_lang.js +60 -0
  76. package/dist/src/components/data/ETable/ETableColumn.vue.js +5 -0
  77. package/dist/src/components/data/ETable/ETableColumn.vue_vue_type_script_setup_true_lang.js +23 -0
  78. package/dist/src/components/data/ETable/no_data.svg.js +4 -0
  79. package/dist/src/components/data/ETimeline/ETimeline.vue.js +7 -0
  80. package/dist/src/components/data/ETimeline/ETimeline.vue_vue_type_script_setup_true_lang.js +41 -0
  81. package/dist/src/components/data/ETimeline/ETimelineItem.vue.js +7 -0
  82. package/dist/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js +44 -0
  83. package/dist/src/components/feedback/EDialog/EDialog.vue.js +7 -0
  84. package/dist/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +237 -0
  85. package/dist/src/components/feedback/EDrawer/EDrawer.vue.js +7 -0
  86. package/dist/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +166 -0
  87. package/dist/src/components/feedback/EMessage/EMessage.js +135 -0
  88. package/dist/src/components/feedback/EMessage/EMessage.vue.js +7 -0
  89. package/dist/src/components/feedback/EMessage/EMessage.vue_vue_type_script_setup_true_lang.js +34 -0
  90. package/dist/src/components/feedback/EMessageBox/EMessageBox.js +153 -0
  91. package/dist/src/components/feedback/EMessageBox/EMessageBox.vue.js +7 -0
  92. package/dist/src/components/feedback/EMessageBox/EMessageBox.vue_vue_type_script_setup_true_lang.js +74 -0
  93. package/dist/src/components/feedback/ENotification/ENotification.js +164 -0
  94. package/dist/src/components/feedback/ENotification/ENotification.vue.js +7 -0
  95. package/dist/src/components/feedback/ENotification/ENotification.vue_vue_type_script_setup_true_lang.js +56 -0
  96. package/dist/src/components/feedback/EPopover.vue.js +7 -0
  97. package/dist/src/components/feedback/EPopover.vue_vue_type_script_setup_true_lang.js +111 -0
  98. package/dist/src/components/feedback/ETooltip.vue.js +7 -0
  99. package/dist/src/components/feedback/ETooltip.vue_vue_type_script_setup_true_lang.js +73 -0
  100. package/dist/src/components/form/ECheckbox.vue.js +7 -0
  101. package/dist/src/components/form/ECheckbox.vue_vue_type_script_setup_true_lang.js +36 -0
  102. package/dist/src/components/form/EColorPicker.vue.js +7 -0
  103. package/dist/src/components/form/EColorPicker.vue_vue_type_script_setup_true_lang.js +309 -0
  104. package/dist/src/components/form/EConditionGroup/EConditionGroup.vue.js +7 -0
  105. package/dist/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +120 -0
  106. package/dist/src/components/form/EFileSelector.vue.js +7 -0
  107. package/dist/src/components/form/EFileSelector.vue_vue_type_script_setup_true_lang.js +58 -0
  108. package/dist/src/components/form/EForm/EForm.vue.js +7 -0
  109. package/dist/src/components/form/EForm/EForm.vue_vue_type_script_setup_true_lang.js +21 -0
  110. package/dist/src/components/form/EForm/EFormItem.vue.js +7 -0
  111. package/dist/src/components/form/EForm/EFormItem.vue_vue_type_script_setup_true_lang.js +44 -0
  112. package/dist/src/components/form/EInput/EInput.vue.js +7 -0
  113. package/dist/src/components/form/EInput/EInput.vue_vue_type_script_setup_true_lang.js +150 -0
  114. package/dist/src/components/form/ERadio.vue.js +7 -0
  115. package/dist/src/components/form/ERadio.vue_vue_type_script_setup_true_lang.js +36 -0
  116. package/dist/src/components/form/ESelect/ESelect.vue.js +8 -0
  117. package/dist/src/components/form/ESelect/ESelect.vue_vue_type_script_setup_true_lang.js +85 -0
  118. package/dist/src/components/form/ESlider.vue.js +7 -0
  119. package/dist/src/components/form/ESlider.vue_vue_type_script_setup_true_lang.js +77 -0
  120. package/dist/src/components/form/ETimePicker.vue.js +7 -0
  121. package/dist/src/components/form/ETimePicker.vue_vue_type_script_setup_true_lang.js +98 -0
  122. package/dist/src/components/geometry/ECube.vue.js +7 -0
  123. package/dist/src/components/geometry/ECube.vue_vue_type_script_setup_true_lang.js +11 -0
  124. package/dist/src/components/hooks/useContainer.js +129 -0
  125. package/dist/src/components/hooks/useLiquidGlass.js +63 -0
  126. package/dist/src/components/hooks/usePosition.js +42 -0
  127. package/dist/src/components/hooks/useZIndex.js +15 -0
  128. package/dist/src/components/layout/EContainerWithScrollbar.vue.js +7 -0
  129. package/dist/src/components/layout/EContainerWithScrollbar.vue_vue_type_script_setup_true_lang.js +27 -0
  130. package/dist/src/components/layout/EDivider.vue.js +5 -0
  131. package/dist/src/components/layout/EDivider.vue_vue_type_script_setup_true_lang.js +38 -0
  132. package/dist/src/components/layout/EScrollX.vue.js +7 -0
  133. package/dist/src/components/layout/EScrollX.vue_vue_type_script_setup_true_lang.js +34 -0
  134. package/dist/src/components/layout/EScrollbar.vue.js +7 -0
  135. package/dist/src/components/layout/EScrollbar.vue_vue_type_script_setup_true_lang.js +67 -0
  136. package/dist/src/components/navigation/EDropdown.vue.js +7 -0
  137. package/dist/src/components/navigation/EDropdown.vue_vue_type_script_setup_true_lang.js +109 -0
  138. package/dist/src/components/navigation/ETabs/ETabPane.vue.js +7 -0
  139. package/dist/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +21 -0
  140. package/dist/src/components/navigation/ETabs/ETabs.vue.js +7 -0
  141. package/dist/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +104 -0
  142. package/dist/src/directives/EDrag.js +27 -0
  143. package/dist/src/directives/ESizeOb.js +23 -0
  144. package/dist/src/directives/ESlideIn.js +128 -0
  145. package/dist/src/utils/EAnimateCSSUtil.js +13 -0
  146. package/dist/src/utils/EClipboardUtil.js +19 -0
  147. package/dist/src/utils/EDomUtil.js +41 -0
  148. package/dist/src/utils/EEchartsUtil.js +23 -0
  149. package/dist/src/utils/EEventBus.js +16 -0
  150. package/dist/src/utils/EImageUtil.js +26 -0
  151. package/dist/src/utils/EJSONUtil.js +12 -0
  152. package/dist/src/utils/ELocalStorageUtil.js +15 -0
  153. package/dist/src/utils/EMediaQueryUtil.js +28 -0
  154. package/dist/src/utils/EStringUtil.js +11 -0
  155. package/dist/src/utils/EThreeUtil.js +40 -0
  156. package/dist/src/utils/ETimeUtil.js +22 -0
  157. package/dist/src/utils/EUUIDUtil.js +11 -0
  158. package/dist/utils/index.js +13 -13
  159. package/package.json +2 -6
@@ -0,0 +1,439 @@
1
+ import { Controls as e, MOUSE as t, MathUtils as n, Plane as r, Quaternion as i, Ray as a, Spherical as o, TOUCH as s, Vector2 as c, Vector3 as l } from "three";
2
+ //#region node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/controls/OrbitControls.js
3
+ var u = { type: "change" }, d = { type: "start" }, f = { type: "end" }, p = new a(), m = new r(), h = Math.cos(70 * n.DEG2RAD), g = new l(), _ = 2 * Math.PI, v = {
4
+ NONE: -1,
5
+ ROTATE: 0,
6
+ DOLLY: 1,
7
+ PAN: 2,
8
+ TOUCH_ROTATE: 3,
9
+ TOUCH_PAN: 4,
10
+ TOUCH_DOLLY_PAN: 5,
11
+ TOUCH_DOLLY_ROTATE: 6
12
+ }, y = 1e-6, b = class extends e {
13
+ constructor(e, n = null) {
14
+ super(e, n), this.state = v.NONE, this.target = new l(), this.cursor = new l(), this.minDistance = 0, this.maxDistance = Infinity, this.minZoom = 0, this.maxZoom = Infinity, this.minTargetRadius = 0, this.maxTargetRadius = Infinity, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -Infinity, this.maxAzimuthAngle = Infinity, this.enableDamping = !1, this.dampingFactor = .05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = {
15
+ LEFT: "ArrowLeft",
16
+ UP: "ArrowUp",
17
+ RIGHT: "ArrowRight",
18
+ BOTTOM: "ArrowDown"
19
+ }, this.mouseButtons = {
20
+ LEFT: t.ROTATE,
21
+ MIDDLE: t.DOLLY,
22
+ RIGHT: t.PAN
23
+ }, this.touches = {
24
+ ONE: s.ROTATE,
25
+ TWO: s.DOLLY_PAN
26
+ }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._cursorStyle = "auto", this._domElementKeyEvents = null, this._lastPosition = new l(), this._lastQuaternion = new i(), this._lastTargetPosition = new l(), this._quat = new i().setFromUnitVectors(e.up, new l(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new o(), this._sphericalDelta = new o(), this._scale = 1, this._panOffset = new l(), this._rotateStart = new c(), this._rotateEnd = new c(), this._rotateDelta = new c(), this._panStart = new c(), this._panEnd = new c(), this._panDelta = new c(), this._dollyStart = new c(), this._dollyEnd = new c(), this._dollyDelta = new c(), this._dollyDirection = new l(), this._mouse = new c(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = S.bind(this), this._onPointerDown = x.bind(this), this._onPointerUp = C.bind(this), this._onContextMenu = A.bind(this), this._onMouseWheel = E.bind(this), this._onKeyDown = D.bind(this), this._onTouchStart = O.bind(this), this._onTouchMove = k.bind(this), this._onMouseDown = w.bind(this), this._onMouseMove = T.bind(this), this._interceptControlDown = j.bind(this), this._interceptControlUp = M.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
27
+ }
28
+ set cursorStyle(e) {
29
+ this._cursorStyle = e, e === "grab" ? this.domElement.style.cursor = "grab" : this.domElement.style.cursor = "auto";
30
+ }
31
+ get cursorStyle() {
32
+ return this._cursorStyle;
33
+ }
34
+ connect(e) {
35
+ super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, {
36
+ passive: !0,
37
+ capture: !0
38
+ }), this.domElement.style.touchAction = "none";
39
+ }
40
+ disconnect() {
41
+ this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.domElement.removeEventListener("pointercancel", this._onPointerUp), this.domElement.removeEventListener("wheel", this._onMouseWheel), this.domElement.removeEventListener("contextmenu", this._onContextMenu), this.stopListenToKeyEvents(), this.domElement.getRootNode().removeEventListener("keydown", this._interceptControlDown, { capture: !0 }), this.domElement.style.touchAction = "";
42
+ }
43
+ dispose() {
44
+ this.disconnect();
45
+ }
46
+ getPolarAngle() {
47
+ return this._spherical.phi;
48
+ }
49
+ getAzimuthalAngle() {
50
+ return this._spherical.theta;
51
+ }
52
+ getDistance() {
53
+ return this.object.position.distanceTo(this.target);
54
+ }
55
+ listenToKeyEvents(e) {
56
+ e.addEventListener("keydown", this._onKeyDown), this._domElementKeyEvents = e;
57
+ }
58
+ stopListenToKeyEvents() {
59
+ this._domElementKeyEvents !== null && (this._domElementKeyEvents.removeEventListener("keydown", this._onKeyDown), this._domElementKeyEvents = null);
60
+ }
61
+ saveState() {
62
+ this.target0.copy(this.target), this.position0.copy(this.object.position), this.zoom0 = this.object.zoom;
63
+ }
64
+ reset() {
65
+ this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(u), this.update(), this.state = v.NONE;
66
+ }
67
+ pan(e, t) {
68
+ this._pan(e, t), this.update();
69
+ }
70
+ dollyIn(e) {
71
+ this._dollyIn(e), this.update();
72
+ }
73
+ dollyOut(e) {
74
+ this._dollyOut(e), this.update();
75
+ }
76
+ rotateLeft(e) {
77
+ this._rotateLeft(e), this.update();
78
+ }
79
+ rotateUp(e) {
80
+ this._rotateUp(e), this.update();
81
+ }
82
+ update(e = null) {
83
+ let t = this.object.position;
84
+ g.copy(t).sub(this.target), g.applyQuaternion(this._quat), this._spherical.setFromVector3(g), this.autoRotate && this.state === v.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
85
+ let n = this.minAzimuthAngle, r = this.maxAzimuthAngle;
86
+ isFinite(n) && isFinite(r) && (n < -Math.PI ? n += _ : n > Math.PI && (n -= _), r < -Math.PI ? r += _ : r > Math.PI && (r -= _), n <= r ? this._spherical.theta = Math.max(n, Math.min(r, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (n + r) / 2 ? Math.max(n, this._spherical.theta) : Math.min(r, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
87
+ let i = !1;
88
+ if (this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera) this._spherical.radius = this._clampDistance(this._spherical.radius);
89
+ else {
90
+ let e = this._spherical.radius;
91
+ this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), i = e != this._spherical.radius;
92
+ }
93
+ if (g.setFromSpherical(this._spherical), g.applyQuaternion(this._quatInverse), t.copy(this.target).add(g), this.object.lookAt(this.target), this.enableDamping === !0 ? (this._sphericalDelta.theta *= 1 - this.dampingFactor, this._sphericalDelta.phi *= 1 - this.dampingFactor, this._panOffset.multiplyScalar(1 - this.dampingFactor)) : (this._sphericalDelta.set(0, 0, 0), this._panOffset.set(0, 0, 0)), this.zoomToCursor && this._performCursorZoom) {
94
+ let e = null;
95
+ if (this.object.isPerspectiveCamera) {
96
+ let t = g.length();
97
+ e = this._clampDistance(t * this._scale);
98
+ let n = t - e;
99
+ this.object.position.addScaledVector(this._dollyDirection, n), this.object.updateMatrixWorld(), i = !!n;
100
+ } else if (this.object.isOrthographicCamera) {
101
+ let t = new l(this._mouse.x, this._mouse.y, 0);
102
+ t.unproject(this.object);
103
+ let n = this.object.zoom;
104
+ this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), i = n !== this.object.zoom;
105
+ let r = new l(this._mouse.x, this._mouse.y, 0);
106
+ r.unproject(this.object), this.object.position.sub(r).add(t), this.object.updateMatrixWorld(), e = g.length();
107
+ } else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
108
+ e !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(e).add(this.object.position) : (p.origin.copy(this.object.position), p.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(p.direction)) < h ? this.object.lookAt(this.target) : (m.setFromNormalAndCoplanarPoint(this.object.up, this.target), p.intersectPlane(m, this.target))));
109
+ } else if (this.object.isOrthographicCamera) {
110
+ let e = this.object.zoom;
111
+ this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), e !== this.object.zoom && (this.object.updateProjectionMatrix(), i = !0);
112
+ }
113
+ return this._scale = 1, this._performCursorZoom = !1, i || this._lastPosition.distanceToSquared(this.object.position) > y || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > y || this._lastTargetPosition.distanceToSquared(this.target) > y ? (this.dispatchEvent(u), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
114
+ }
115
+ _getAutoRotationAngle(e) {
116
+ return e === null ? _ / 60 / 60 * this.autoRotateSpeed : _ / 60 * this.autoRotateSpeed * e;
117
+ }
118
+ _getZoomScale(e) {
119
+ let t = Math.abs(e * .01);
120
+ return .95 ** (this.zoomSpeed * t);
121
+ }
122
+ _rotateLeft(e) {
123
+ this._sphericalDelta.theta -= e;
124
+ }
125
+ _rotateUp(e) {
126
+ this._sphericalDelta.phi -= e;
127
+ }
128
+ _panLeft(e, t) {
129
+ g.setFromMatrixColumn(t, 0), g.multiplyScalar(-e), this._panOffset.add(g);
130
+ }
131
+ _panUp(e, t) {
132
+ this.screenSpacePanning === !0 ? g.setFromMatrixColumn(t, 1) : (g.setFromMatrixColumn(t, 0), g.crossVectors(this.object.up, g)), g.multiplyScalar(e), this._panOffset.add(g);
133
+ }
134
+ _pan(e, t) {
135
+ let n = this.domElement;
136
+ if (this.object.isPerspectiveCamera) {
137
+ let r = this.object.position;
138
+ g.copy(r).sub(this.target);
139
+ let i = g.length();
140
+ i *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * e * i / n.clientHeight, this.object.matrix), this._panUp(2 * t * i / n.clientHeight, this.object.matrix);
141
+ } else this.object.isOrthographicCamera ? (this._panLeft(e * (this.object.right - this.object.left) / this.object.zoom / n.clientWidth, this.object.matrix), this._panUp(t * (this.object.top - this.object.bottom) / this.object.zoom / n.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
142
+ }
143
+ _dollyOut(e) {
144
+ this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale /= e : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), this.enableZoom = !1);
145
+ }
146
+ _dollyIn(e) {
147
+ this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale *= e : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), this.enableZoom = !1);
148
+ }
149
+ _updateZoomParameters(e, t) {
150
+ if (!this.zoomToCursor) return;
151
+ this._performCursorZoom = !0;
152
+ let n = this.domElement.getBoundingClientRect(), r = e - n.left, i = t - n.top, a = n.width, o = n.height;
153
+ this._mouse.x = r / a * 2 - 1, this._mouse.y = -(i / o) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
154
+ }
155
+ _clampDistance(e) {
156
+ return Math.max(this.minDistance, Math.min(this.maxDistance, e));
157
+ }
158
+ _handleMouseDownRotate(e) {
159
+ this._rotateStart.set(e.clientX, e.clientY);
160
+ }
161
+ _handleMouseDownDolly(e) {
162
+ this._updateZoomParameters(e.clientX, e.clientX), this._dollyStart.set(e.clientX, e.clientY);
163
+ }
164
+ _handleMouseDownPan(e) {
165
+ this._panStart.set(e.clientX, e.clientY);
166
+ }
167
+ _handleMouseMoveRotate(e) {
168
+ this._rotateEnd.set(e.clientX, e.clientY), this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
169
+ let t = this.domElement;
170
+ this._rotateLeft(_ * this._rotateDelta.x / t.clientHeight), this._rotateUp(_ * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd), this.update();
171
+ }
172
+ _handleMouseMoveDolly(e) {
173
+ this._dollyEnd.set(e.clientX, e.clientY), this._dollyDelta.subVectors(this._dollyEnd, this._dollyStart), this._dollyDelta.y > 0 ? this._dollyOut(this._getZoomScale(this._dollyDelta.y)) : this._dollyDelta.y < 0 && this._dollyIn(this._getZoomScale(this._dollyDelta.y)), this._dollyStart.copy(this._dollyEnd), this.update();
174
+ }
175
+ _handleMouseMovePan(e) {
176
+ this._panEnd.set(e.clientX, e.clientY), this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd), this.update();
177
+ }
178
+ _handleMouseWheel(e) {
179
+ this._updateZoomParameters(e.clientX, e.clientY), e.deltaY < 0 ? this._dollyIn(this._getZoomScale(e.deltaY)) : e.deltaY > 0 && this._dollyOut(this._getZoomScale(e.deltaY)), this.update();
180
+ }
181
+ _handleKeyDown(e) {
182
+ let t = !1;
183
+ switch (e.code) {
184
+ case this.keys.UP:
185
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(_ * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, this.keyPanSpeed), t = !0;
186
+ break;
187
+ case this.keys.BOTTOM:
188
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(-_ * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, -this.keyPanSpeed), t = !0;
189
+ break;
190
+ case this.keys.LEFT:
191
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(_ * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(this.keyPanSpeed, 0), t = !0;
192
+ break;
193
+ case this.keys.RIGHT: e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(-_ * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(-this.keyPanSpeed, 0), t = !0;
194
+ }
195
+ t && (e.preventDefault(), this.update());
196
+ }
197
+ _handleTouchStartRotate(e) {
198
+ if (this._pointers.length === 1) this._rotateStart.set(e.pageX, e.pageY);
199
+ else {
200
+ let t = this._getSecondPointerPosition(e), n = .5 * (e.pageX + t.x), r = .5 * (e.pageY + t.y);
201
+ this._rotateStart.set(n, r);
202
+ }
203
+ }
204
+ _handleTouchStartPan(e) {
205
+ if (this._pointers.length === 1) this._panStart.set(e.pageX, e.pageY);
206
+ else {
207
+ let t = this._getSecondPointerPosition(e), n = .5 * (e.pageX + t.x), r = .5 * (e.pageY + t.y);
208
+ this._panStart.set(n, r);
209
+ }
210
+ }
211
+ _handleTouchStartDolly(e) {
212
+ let t = this._getSecondPointerPosition(e), n = e.pageX - t.x, r = e.pageY - t.y, i = Math.sqrt(n * n + r * r);
213
+ this._dollyStart.set(0, i);
214
+ }
215
+ _handleTouchStartDollyPan(e) {
216
+ this.enableZoom && this._handleTouchStartDolly(e), this.enablePan && this._handleTouchStartPan(e);
217
+ }
218
+ _handleTouchStartDollyRotate(e) {
219
+ this.enableZoom && this._handleTouchStartDolly(e), this.enableRotate && this._handleTouchStartRotate(e);
220
+ }
221
+ _handleTouchMoveRotate(e) {
222
+ if (this._pointers.length == 1) this._rotateEnd.set(e.pageX, e.pageY);
223
+ else {
224
+ let t = this._getSecondPointerPosition(e), n = .5 * (e.pageX + t.x), r = .5 * (e.pageY + t.y);
225
+ this._rotateEnd.set(n, r);
226
+ }
227
+ this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
228
+ let t = this.domElement;
229
+ this._rotateLeft(_ * this._rotateDelta.x / t.clientHeight), this._rotateUp(_ * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd);
230
+ }
231
+ _handleTouchMovePan(e) {
232
+ if (this._pointers.length === 1) this._panEnd.set(e.pageX, e.pageY);
233
+ else {
234
+ let t = this._getSecondPointerPosition(e), n = .5 * (e.pageX + t.x), r = .5 * (e.pageY + t.y);
235
+ this._panEnd.set(n, r);
236
+ }
237
+ this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd);
238
+ }
239
+ _handleTouchMoveDolly(e) {
240
+ let t = this._getSecondPointerPosition(e), n = e.pageX - t.x, r = e.pageY - t.y, i = Math.sqrt(n * n + r * r);
241
+ this._dollyEnd.set(0, i), this._dollyDelta.set(0, (this._dollyEnd.y / this._dollyStart.y) ** +this.zoomSpeed), this._dollyOut(this._dollyDelta.y), this._dollyStart.copy(this._dollyEnd);
242
+ let a = (e.pageX + t.x) * .5, o = (e.pageY + t.y) * .5;
243
+ this._updateZoomParameters(a, o);
244
+ }
245
+ _handleTouchMoveDollyPan(e) {
246
+ this.enableZoom && this._handleTouchMoveDolly(e), this.enablePan && this._handleTouchMovePan(e);
247
+ }
248
+ _handleTouchMoveDollyRotate(e) {
249
+ this.enableZoom && this._handleTouchMoveDolly(e), this.enableRotate && this._handleTouchMoveRotate(e);
250
+ }
251
+ _addPointer(e) {
252
+ this._pointers.push(e.pointerId);
253
+ }
254
+ _removePointer(e) {
255
+ delete this._pointerPositions[e.pointerId];
256
+ for (let t = 0; t < this._pointers.length; t++) if (this._pointers[t] == e.pointerId) {
257
+ this._pointers.splice(t, 1);
258
+ return;
259
+ }
260
+ }
261
+ _isTrackingPointer(e) {
262
+ for (let t = 0; t < this._pointers.length; t++) if (this._pointers[t] == e.pointerId) return !0;
263
+ return !1;
264
+ }
265
+ _trackPointer(e) {
266
+ let t = this._pointerPositions[e.pointerId];
267
+ t === void 0 && (t = new c(), this._pointerPositions[e.pointerId] = t), t.set(e.pageX, e.pageY);
268
+ }
269
+ _getSecondPointerPosition(e) {
270
+ let t = e.pointerId === this._pointers[0] ? this._pointers[1] : this._pointers[0];
271
+ return this._pointerPositions[t];
272
+ }
273
+ _customWheelEvent(e) {
274
+ let t = e.deltaMode, n = {
275
+ clientX: e.clientX,
276
+ clientY: e.clientY,
277
+ deltaY: e.deltaY
278
+ };
279
+ switch (t) {
280
+ case 1:
281
+ n.deltaY *= 16;
282
+ break;
283
+ case 2: n.deltaY *= 100;
284
+ }
285
+ return e.ctrlKey && !this._controlActive && (n.deltaY *= 10), n;
286
+ }
287
+ };
288
+ function x(e) {
289
+ this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(e.pointerId), this.domElement.ownerDocument.addEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(e) && (this._addPointer(e), e.pointerType === "touch" ? this._onTouchStart(e) : this._onMouseDown(e), this._cursorStyle === "grab" && (this.domElement.style.cursor = "grabbing")));
290
+ }
291
+ function S(e) {
292
+ this.enabled !== !1 && (e.pointerType === "touch" ? this._onTouchMove(e) : this._onMouseMove(e));
293
+ }
294
+ function C(e) {
295
+ switch (this._removePointer(e), this._pointers.length) {
296
+ case 0:
297
+ this.domElement.releasePointerCapture(e.pointerId), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(f), this.state = v.NONE, this._cursorStyle === "grab" && (this.domElement.style.cursor = "grab");
298
+ break;
299
+ case 1:
300
+ let t = this._pointers[0], n = this._pointerPositions[t];
301
+ this._onTouchStart({
302
+ pointerId: t,
303
+ pageX: n.x,
304
+ pageY: n.y
305
+ });
306
+ }
307
+ }
308
+ function w(e) {
309
+ let n;
310
+ switch (e.button) {
311
+ case 0:
312
+ n = this.mouseButtons.LEFT;
313
+ break;
314
+ case 1:
315
+ n = this.mouseButtons.MIDDLE;
316
+ break;
317
+ case 2:
318
+ n = this.mouseButtons.RIGHT;
319
+ break;
320
+ default: n = -1;
321
+ }
322
+ switch (n) {
323
+ case t.DOLLY:
324
+ if (this.enableZoom === !1) return;
325
+ this._handleMouseDownDolly(e), this.state = v.DOLLY;
326
+ break;
327
+ case t.ROTATE:
328
+ if (e.ctrlKey || e.metaKey || e.shiftKey) {
329
+ if (this.enablePan === !1) return;
330
+ this._handleMouseDownPan(e), this.state = v.PAN;
331
+ } else {
332
+ if (this.enableRotate === !1) return;
333
+ this._handleMouseDownRotate(e), this.state = v.ROTATE;
334
+ }
335
+ break;
336
+ case t.PAN:
337
+ if (e.ctrlKey || e.metaKey || e.shiftKey) {
338
+ if (this.enableRotate === !1) return;
339
+ this._handleMouseDownRotate(e), this.state = v.ROTATE;
340
+ } else {
341
+ if (this.enablePan === !1) return;
342
+ this._handleMouseDownPan(e), this.state = v.PAN;
343
+ }
344
+ break;
345
+ default: this.state = v.NONE;
346
+ }
347
+ this.state !== v.NONE && this.dispatchEvent(d);
348
+ }
349
+ function T(e) {
350
+ switch (this.state) {
351
+ case v.ROTATE:
352
+ if (this.enableRotate === !1) return;
353
+ this._handleMouseMoveRotate(e);
354
+ break;
355
+ case v.DOLLY:
356
+ if (this.enableZoom === !1) return;
357
+ this._handleMouseMoveDolly(e);
358
+ break;
359
+ case v.PAN:
360
+ if (this.enablePan === !1) return;
361
+ this._handleMouseMovePan(e);
362
+ }
363
+ }
364
+ function E(e) {
365
+ this.enabled !== !1 && this.enableZoom !== !1 && this.state === v.NONE && (e.preventDefault(), this.dispatchEvent(d), this._handleMouseWheel(this._customWheelEvent(e)), this.dispatchEvent(f));
366
+ }
367
+ function D(e) {
368
+ this.enabled !== !1 && this._handleKeyDown(e);
369
+ }
370
+ function O(e) {
371
+ switch (this._trackPointer(e), this._pointers.length) {
372
+ case 1:
373
+ switch (this.touches.ONE) {
374
+ case s.ROTATE:
375
+ if (this.enableRotate === !1) return;
376
+ this._handleTouchStartRotate(e), this.state = v.TOUCH_ROTATE;
377
+ break;
378
+ case s.PAN:
379
+ if (this.enablePan === !1) return;
380
+ this._handleTouchStartPan(e), this.state = v.TOUCH_PAN;
381
+ break;
382
+ default: this.state = v.NONE;
383
+ }
384
+ break;
385
+ case 2:
386
+ switch (this.touches.TWO) {
387
+ case s.DOLLY_PAN:
388
+ if (this.enableZoom === !1 && this.enablePan === !1) return;
389
+ this._handleTouchStartDollyPan(e), this.state = v.TOUCH_DOLLY_PAN;
390
+ break;
391
+ case s.DOLLY_ROTATE:
392
+ if (this.enableZoom === !1 && this.enableRotate === !1) return;
393
+ this._handleTouchStartDollyRotate(e), this.state = v.TOUCH_DOLLY_ROTATE;
394
+ break;
395
+ default: this.state = v.NONE;
396
+ }
397
+ break;
398
+ default: this.state = v.NONE;
399
+ }
400
+ this.state !== v.NONE && this.dispatchEvent(d);
401
+ }
402
+ function k(e) {
403
+ switch (this._trackPointer(e), this.state) {
404
+ case v.TOUCH_ROTATE:
405
+ if (this.enableRotate === !1) return;
406
+ this._handleTouchMoveRotate(e), this.update();
407
+ break;
408
+ case v.TOUCH_PAN:
409
+ if (this.enablePan === !1) return;
410
+ this._handleTouchMovePan(e), this.update();
411
+ break;
412
+ case v.TOUCH_DOLLY_PAN:
413
+ if (this.enableZoom === !1 && this.enablePan === !1) return;
414
+ this._handleTouchMoveDollyPan(e), this.update();
415
+ break;
416
+ case v.TOUCH_DOLLY_ROTATE:
417
+ if (this.enableZoom === !1 && this.enableRotate === !1) return;
418
+ this._handleTouchMoveDollyRotate(e), this.update();
419
+ break;
420
+ default: this.state = v.NONE;
421
+ }
422
+ }
423
+ function A(e) {
424
+ this.enabled !== !1 && e.preventDefault();
425
+ }
426
+ function j(e) {
427
+ e.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, {
428
+ passive: !0,
429
+ capture: !0
430
+ }));
431
+ }
432
+ function M(e) {
433
+ e.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, {
434
+ passive: !0,
435
+ capture: !0
436
+ }));
437
+ }
438
+ //#endregion
439
+ export { b as OrbitControls };
@@ -0,0 +1,31 @@
1
+ import { calcBSplinePoint as e, calcNURBSDerivatives as t } from "./NURBSUtils.js";
2
+ import { Curve as n, Vector3 as r, Vector4 as i } from "three";
3
+ //#region node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/curves/NURBSCurve.js
4
+ var a = class extends n {
5
+ constructor(e, t, n, r, a) {
6
+ super();
7
+ let o = t ? t.length - 1 : 0, s = n ? n.length : 0;
8
+ this.degree = e, this.knots = t, this.controlPoints = [], this.startKnot = r || 0, this.endKnot = a || o;
9
+ for (let e = 0; e < s; ++e) {
10
+ let t = n[e];
11
+ this.controlPoints[e] = new i(t.x, t.y, t.z, t.w);
12
+ }
13
+ }
14
+ getPoint(t, n = new r()) {
15
+ let i = n, a = this.knots[this.startKnot] + t * (this.knots[this.endKnot] - this.knots[this.startKnot]), o = e(this.degree, this.knots, this.controlPoints, a);
16
+ return o.w !== 1 && o.divideScalar(o.w), i.set(o.x, o.y, o.z);
17
+ }
18
+ getTangent(e, n = new r()) {
19
+ let i = n, a = this.knots[0] + e * (this.knots[this.knots.length - 1] - this.knots[0]), o = t(this.degree, this.knots, this.controlPoints, a, 1);
20
+ return i.copy(o[1]).normalize(), i;
21
+ }
22
+ toJSON() {
23
+ let e = super.toJSON();
24
+ return e.degree = this.degree, e.knots = [...this.knots], e.controlPoints = this.controlPoints.map((e) => e.toArray()), e.startKnot = this.startKnot, e.endKnot = this.endKnot, e;
25
+ }
26
+ fromJSON(e) {
27
+ return super.fromJSON(e), this.degree = e.degree, this.knots = [...e.knots], this.controlPoints = e.controlPoints.map((e) => new i(e[0], e[1], e[2], e[3])), this.startKnot = e.startKnot, this.endKnot = e.endKnot, this;
28
+ }
29
+ };
30
+ //#endregion
31
+ export { a as NURBSCurve };
@@ -0,0 +1,115 @@
1
+ import { Vector3 as e, Vector4 as t } from "three";
2
+ //#region node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/curves/NURBSUtils.js
3
+ function n(e, t, n) {
4
+ let r = n.length - e - 1;
5
+ if (t >= n[r]) return r - 1;
6
+ if (t <= n[e]) return e;
7
+ let i = e, a = r, o = Math.floor((i + a) / 2);
8
+ for (; t < n[o] || t >= n[o + 1];) t < n[o] ? a = o : i = o, o = Math.floor((i + a) / 2);
9
+ return o;
10
+ }
11
+ function r(e, t, n, r) {
12
+ let i = [], a = [], o = [];
13
+ i[0] = 1;
14
+ for (let s = 1; s <= n; ++s) {
15
+ a[s] = t - r[e + 1 - s], o[s] = r[e + s] - t;
16
+ let n = 0;
17
+ for (let e = 0; e < s; ++e) {
18
+ let t = o[e + 1], r = a[s - e], c = i[e] / (t + r);
19
+ i[e] = n + t * c, n = r * c;
20
+ }
21
+ i[s] = n;
22
+ }
23
+ return i;
24
+ }
25
+ function i(e, i, a, o) {
26
+ let s = n(e, o, i), c = r(s, o, e, i), l = new t(0, 0, 0, 0);
27
+ for (let t = 0; t <= e; ++t) {
28
+ let n = a[s - e + t], r = c[t], i = n.w * r;
29
+ l.x += n.x * i, l.y += n.y * i, l.z += n.z * i, l.w += n.w * r;
30
+ }
31
+ return l;
32
+ }
33
+ function a(e, t, n, r, i) {
34
+ let a = [];
35
+ for (let e = 0; e <= n; ++e) a[e] = 0;
36
+ let o = [];
37
+ for (let e = 0; e <= r; ++e) o[e] = a.slice(0);
38
+ let s = [];
39
+ for (let e = 0; e <= n; ++e) s[e] = a.slice(0);
40
+ s[0][0] = 1;
41
+ let c = a.slice(0), l = a.slice(0);
42
+ for (let r = 1; r <= n; ++r) {
43
+ c[r] = t - i[e + 1 - r], l[r] = i[e + r] - t;
44
+ let n = 0;
45
+ for (let e = 0; e < r; ++e) {
46
+ let t = l[e + 1], i = c[r - e];
47
+ s[r][e] = t + i;
48
+ let a = s[e][r - 1] / s[r][e];
49
+ s[e][r] = n + t * a, n = i * a;
50
+ }
51
+ s[r][r] = n;
52
+ }
53
+ for (let e = 0; e <= n; ++e) o[0][e] = s[e][n];
54
+ for (let e = 0; e <= n; ++e) {
55
+ let t = 0, i = 1, c = [];
56
+ for (let e = 0; e <= n; ++e) c[e] = a.slice(0);
57
+ c[0][0] = 1;
58
+ for (let a = 1; a <= r; ++a) {
59
+ let r = 0, l = e - a, u = n - a;
60
+ e >= a && (c[i][0] = c[t][0] / s[u + 1][l], r = c[i][0] * s[l][u]);
61
+ let d = l >= -1 ? 1 : -l, f = e - 1 <= u ? a - 1 : n - e;
62
+ for (let e = d; e <= f; ++e) c[i][e] = (c[t][e] - c[t][e - 1]) / s[u + 1][l + e], r += c[i][e] * s[l + e][u];
63
+ e <= u && (c[i][a] = -c[t][a - 1] / s[u + 1][e], r += c[i][a] * s[e][u]), o[a][e] = r;
64
+ let p = t;
65
+ t = i, i = p;
66
+ }
67
+ }
68
+ let u = n;
69
+ for (let e = 1; e <= r; ++e) {
70
+ for (let t = 0; t <= n; ++t) o[e][t] *= u;
71
+ u *= n - e;
72
+ }
73
+ return o;
74
+ }
75
+ function o(e, r, i, o, s) {
76
+ let c = s < e ? s : e, l = [], u = n(e, o, r), d = a(u, o, e, c, r), f = [];
77
+ for (let e = 0; e < i.length; ++e) {
78
+ let t = i[e].clone(), n = t.w;
79
+ t.x *= n, t.y *= n, t.z *= n, f[e] = t;
80
+ }
81
+ for (let t = 0; t <= c; ++t) {
82
+ let n = f[u - e].clone().multiplyScalar(d[t][0]);
83
+ for (let r = 1; r <= e; ++r) n.add(f[u - e + r].clone().multiplyScalar(d[t][r]));
84
+ l[t] = n;
85
+ }
86
+ for (let e = c + 1; e <= s + 1; ++e) l[e] = new t(0, 0, 0);
87
+ return l;
88
+ }
89
+ function s(e, t) {
90
+ let n = 1;
91
+ for (let t = 2; t <= e; ++t) n *= t;
92
+ let r = 1;
93
+ for (let e = 2; e <= t; ++e) r *= e;
94
+ for (let n = 2; n <= e - t; ++n) r *= n;
95
+ return n / r;
96
+ }
97
+ function c(t) {
98
+ let n = t.length, r = [], i = [];
99
+ for (let a = 0; a < n; ++a) {
100
+ let n = t[a];
101
+ r[a] = new e(n.x, n.y, n.z), i[a] = n.w;
102
+ }
103
+ let a = [];
104
+ for (let e = 0; e < n; ++e) {
105
+ let t = r[e].clone();
106
+ for (let n = 1; n <= e; ++n) t.sub(a[e - n].clone().multiplyScalar(s(e, n) * i[n]));
107
+ a[e] = t.divideScalar(i[0]);
108
+ }
109
+ return a;
110
+ }
111
+ function l(e, t, n, r, i) {
112
+ return c(o(e, t, n, r, i));
113
+ }
114
+ //#endregion
115
+ export { o as calcBSplineDerivatives, i as calcBSplinePoint, a as calcBasisFunctionDerivatives, r as calcBasisFunctions, s as calcKoverI, l as calcNURBSDerivatives, c as calcRationalCurveDerivatives, n as findSpan };