@arcgis/core 4.28.0-next.20230821 → 4.28.0-next.20230823

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 (668) hide show
  1. package/Basemap.js +1 -1
  2. package/WebScene.js +1 -1
  3. package/arcade/functions/geomasync.js +1 -1
  4. package/arcade/portalUtils.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/0746319459dbcd3ab6f7.js +1 -0
  7. package/assets/esri/core/workers/chunks/{587437526ea77f764986.js → 0759d4ab9695096d2bbd.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{d0c4367a197b193e95d4.js → 10c014a6d8767ae8a666.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{5ffabd1a90c5b08109aa.js → 196937631ac20795e0ae.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{e05b54a0b834b4e4268e.js → 1c2b69dfcd0db58150e2.js} +1 -1
  11. package/assets/esri/core/workers/chunks/1c2f7c95825fdac790be.js +1 -0
  12. package/assets/esri/core/workers/chunks/1f9c80815f90fd0886d7.js +1 -0
  13. package/assets/esri/core/workers/chunks/217910f88fe2c03e6bdd.js +1 -0
  14. package/assets/esri/core/workers/chunks/238966b2fc6cc3dfcc05.js +1 -0
  15. package/assets/esri/core/workers/chunks/2c9f709d64954b3c1650.js +1 -0
  16. package/assets/esri/core/workers/chunks/35faede04d4539aab6e8.js +1 -0
  17. package/assets/esri/core/workers/chunks/3e3edcbacf8eaf275b97.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b78dc6cbe14e5817b4d9.js → 4968018bc693c053fdd2.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{c35b850fbfcb28133235.js → 49a1ba3e7ea204adeddb.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{12b8fe0374fa9ab4ca09.js → 49cf3ae224f56f45f65b.js} +1 -1
  21. package/assets/esri/core/workers/chunks/5330040eeacc9c03fbdb.js +1 -0
  22. package/assets/esri/core/workers/chunks/54aaa21144431b29b6ed.js +1 -0
  23. package/assets/esri/core/workers/chunks/{6c40f16e6d10321295d8.js → 5b13d28cf5efc312a21c.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{d6c96a20e9640b433719.js → 67c6618339d323460d45.js} +57 -57
  25. package/assets/esri/core/workers/chunks/{dd86f43505b636eb41c0.js → 7714c16f9c8860efd461.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{752d389c7bdcbe7004dc.js → 83e0af5522a672c2c73b.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{873111ddf4813cdd4903.js → 872d0d4bf364be43a92e.js} +1 -1
  28. package/assets/esri/core/workers/chunks/8a784ddd5607f1ddbb5b.js +1 -0
  29. package/assets/esri/core/workers/chunks/{0cad2b991d0d0fd07846.js → 8c9c4162617f31e3f5f2.js} +1 -1
  30. package/assets/esri/core/workers/chunks/8db3ee2931be5cca3f5e.js +1 -0
  31. package/assets/esri/core/workers/chunks/{fd3920159ab9748402a2.js → 92350664e2719a9e860e.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{ff755962fd1c771f5be5.js → a3b461174984a1cb92b3.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{dd4c6d000222798a0317.js → a47aff9c97c5ce52d0dc.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{028534e3d4e13c9ea687.js → a645f08a7678f2ca037c.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{d9fe6cfbc9ad2920ca9c.js → aca45e54ec925002df9a.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{40ff0e7c948615b8bfc0.js → b07d32a60307d04391fc.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{fdc703330bf194a48e0e.js → b086e798f43dacb0175f.js} +1 -1
  38. package/assets/esri/core/workers/chunks/bd0b9647880cbbec95e2.js +1 -0
  39. package/assets/esri/core/workers/chunks/{ab420bacdd63ee8fbd8b.js → bf9b5e2803a5444bd944.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{c58ca2685eb7e559f428.js → c0a2a737a3085690afc5.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{e04e8af4224fff8c3ec3.js → c34615c0b7ad83d1ad24.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{05ab09713d599687afa3.js → d105ee2e394e2c48303c.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{ef03b78659c72de93076.js → d183144fa504064d23d3.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{4f5207abb034375927c7.js → d8495c6dcd4d9bec8dd6.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{1a485d63330f5e7fe4e3.js → dba61fa8cbb57dde54b2.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{8a306e3aa210861b8c17.js → deb0bd575c63d9dbcde5.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{d0a2f9ca338b60f2ba2a.js → e302fe771d92ccf945a3.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{cb0a5bc6deaa98026bb5.js → ed0dea88b2865fc6e06b.js} +1 -1
  49. package/assets/esri/core/workers/chunks/ed733eea5d065131b159.js +1 -0
  50. package/assets/esri/core/workers/chunks/{1c51c52fb2233153d7ae.js → f3ec53ee9567bb7e4d2f.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{4922a0fed7cbc6895882.js → f701a5afa1b730c51a49.js} +1 -1
  52. package/assets/esri/t9n/common.json +1 -1
  53. package/assets/esri/t9n/common_ar.json +1 -1
  54. package/assets/esri/t9n/common_bg.json +1 -1
  55. package/assets/esri/t9n/common_ca.json +1 -1
  56. package/assets/esri/t9n/common_cs.json +1 -1
  57. package/assets/esri/t9n/common_da.json +1 -1
  58. package/assets/esri/t9n/common_de.json +1 -1
  59. package/assets/esri/t9n/common_el.json +1 -1
  60. package/assets/esri/t9n/common_en.json +1 -1
  61. package/assets/esri/t9n/common_es.json +1 -1
  62. package/assets/esri/t9n/common_et.json +1 -1
  63. package/assets/esri/t9n/common_fi.json +1 -1
  64. package/assets/esri/t9n/common_fr.json +1 -1
  65. package/assets/esri/t9n/common_he.json +1 -1
  66. package/assets/esri/t9n/common_hr.json +1 -1
  67. package/assets/esri/t9n/common_hu.json +1 -1
  68. package/assets/esri/t9n/common_id.json +1 -1
  69. package/assets/esri/t9n/common_it.json +1 -1
  70. package/assets/esri/t9n/common_ja.json +1 -1
  71. package/assets/esri/t9n/common_ko.json +1 -1
  72. package/assets/esri/t9n/common_lt.json +1 -1
  73. package/assets/esri/t9n/common_lv.json +1 -1
  74. package/assets/esri/t9n/common_nb.json +1 -1
  75. package/assets/esri/t9n/common_nl.json +1 -1
  76. package/assets/esri/t9n/common_pl.json +1 -1
  77. package/assets/esri/t9n/common_pt-BR.json +1 -1
  78. package/assets/esri/t9n/common_pt-PT.json +1 -1
  79. package/assets/esri/t9n/common_ro.json +1 -1
  80. package/assets/esri/t9n/common_ru.json +1 -1
  81. package/assets/esri/t9n/common_sk.json +1 -1
  82. package/assets/esri/t9n/common_sl.json +1 -1
  83. package/assets/esri/t9n/common_sr.json +1 -1
  84. package/assets/esri/t9n/common_sv.json +1 -1
  85. package/assets/esri/t9n/common_th.json +1 -1
  86. package/assets/esri/t9n/common_tr.json +1 -1
  87. package/assets/esri/t9n/common_uk.json +1 -1
  88. package/assets/esri/t9n/common_vi.json +1 -1
  89. package/assets/esri/t9n/common_zh-CN.json +1 -1
  90. package/assets/esri/t9n/common_zh-TW.json +1 -1
  91. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +10 -17
  92. package/assets/esri/themes/dark/main.css +1 -1
  93. package/assets/esri/themes/light/main.css +1 -1
  94. package/assets/esri/themes/light/view.css +1 -1
  95. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ar.json +1 -0
  96. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_bg.json +1 -0
  97. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_bs.json +1 -0
  98. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ca.json +1 -0
  99. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_cs.json +1 -0
  100. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_da.json +1 -0
  101. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_de.json +1 -0
  102. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_el.json +1 -0
  103. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_es.json +1 -0
  104. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_et.json +1 -0
  105. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_fi.json +1 -0
  106. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_fr.json +1 -0
  107. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_he.json +1 -0
  108. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_hr.json +1 -0
  109. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_hu.json +1 -0
  110. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_id.json +1 -0
  111. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_it.json +1 -0
  112. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ja.json +1 -0
  113. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ko.json +1 -0
  114. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_lt.json +1 -0
  115. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_lv.json +1 -0
  116. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_nb.json +1 -0
  117. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_nl.json +1 -0
  118. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pl.json +1 -0
  119. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pt-BR.json +1 -0
  120. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pt-PT.json +1 -0
  121. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ro.json +1 -0
  122. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ru.json +1 -0
  123. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sk.json +1 -0
  124. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sl.json +1 -0
  125. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sr.json +1 -0
  126. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sv.json +1 -0
  127. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_th.json +1 -0
  128. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_tr.json +1 -0
  129. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_uk.json +1 -0
  130. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_vi.json +1 -0
  131. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-CN.json +1 -0
  132. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-HK.json +1 -0
  133. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-TW.json +1 -0
  134. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  135. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  136. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  137. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  138. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  139. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  140. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  141. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  142. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  143. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  144. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  145. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  146. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  147. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  148. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  149. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  150. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  151. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  152. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  153. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  154. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  155. package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
  156. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  157. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  158. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  159. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  160. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  161. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  162. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  163. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  164. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  165. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  166. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  167. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  168. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  169. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  170. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  171. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  172. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  173. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ar.json +1 -1
  174. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bg.json +1 -1
  175. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bs.json +1 -1
  176. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ca.json +1 -1
  177. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_cs.json +1 -1
  178. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_da.json +1 -1
  179. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_de.json +1 -1
  180. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_el.json +1 -1
  181. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_es.json +1 -1
  182. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_et.json +1 -1
  183. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fi.json +1 -1
  184. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fr.json +1 -1
  185. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_he.json +1 -1
  186. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hr.json +1 -1
  187. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hu.json +1 -1
  188. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_id.json +1 -1
  189. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_it.json +1 -1
  190. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ja.json +1 -1
  191. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ko.json +1 -1
  192. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lt.json +1 -1
  193. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lv.json +1 -1
  194. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nb.json +1 -1
  195. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nl.json +1 -1
  196. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pl.json +1 -1
  197. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-BR.json +1 -1
  198. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-PT.json +1 -1
  199. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ro.json +1 -1
  200. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ru.json +1 -1
  201. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sk.json +1 -1
  202. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sl.json +1 -1
  203. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sr.json +1 -1
  204. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sv.json +1 -1
  205. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_th.json +1 -1
  206. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_tr.json +1 -1
  207. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_uk.json +1 -1
  208. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_vi.json +1 -1
  209. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-CN.json +1 -1
  210. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-HK.json +1 -1
  211. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-TW.json +1 -1
  212. package/chunks/ChapmanAtmosphere.glsl.js +1 -1
  213. package/chunks/Clouds.glsl.js +1 -1
  214. package/chunks/CloudsComposition.glsl.js +2 -2
  215. package/chunks/ComponentShader.glsl.js +36 -36
  216. package/chunks/Fog.glsl.js +1 -1
  217. package/chunks/LaserlinePath.glsl.js +1 -1
  218. package/chunks/Laserlines.glsl.js +1 -1
  219. package/chunks/LineSeries.js +1 -1
  220. package/chunks/NativeLine.glsl.js +8 -20
  221. package/chunks/PointRenderer.glsl.js +1 -1
  222. package/chunks/Precipitation.glsl.js +2 -2
  223. package/chunks/SSAOBlur.glsl.js +1 -1
  224. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  225. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  226. package/chunks/ShadowHighlight.glsl.js +1 -1
  227. package/chunks/Stars.glsl.js +1 -1
  228. package/chunks/Terrain.glsl.js +35 -35
  229. package/chunks/TextureOnly.glsl.js +1 -1
  230. package/chunks/Theme.js +1 -1
  231. package/chunks/boundedPlane.js +1 -1
  232. package/chunks/cameraUtilsPlanar.js +1 -1
  233. package/chunks/cameraUtilsSpherical.js +1 -1
  234. package/chunks/chartUtilsAm5.js +1 -1
  235. package/chunks/mat3.js +1 -1
  236. package/chunks/mat3f64.js +1 -1
  237. package/chunks/mat4.js +1 -1
  238. package/chunks/mat4f64.js +1 -1
  239. package/chunks/quat.js +1 -1
  240. package/chunks/quat2.js +1 -1
  241. package/chunks/quatf64.js +1 -1
  242. package/chunks/sphere.js +1 -1
  243. package/chunks/terrainUtilsPlanar.js +1 -1
  244. package/chunks/vec3.js +1 -1
  245. package/chunks/vec3f64.js +1 -1
  246. package/chunks/vec4.js +1 -1
  247. package/chunks/vec4f64.js +1 -1
  248. package/core/VectorStack.js +1 -1
  249. package/core/accessorSupport/decorators/persistable.js +1 -1
  250. package/core/accessorSupport/testSupport.js +1 -1
  251. package/core/colorUtils.js +1 -1
  252. package/core/libs/gl-matrix-2/factories/mat3f64.js +1 -1
  253. package/core/libs/gl-matrix-2/factories/mat4f64.js +1 -1
  254. package/core/libs/gl-matrix-2/factories/quatf64.js +1 -1
  255. package/core/libs/gl-matrix-2/factories/vec3f64.js +1 -1
  256. package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
  257. package/core/libs/gl-matrix-2/math/mat3.js +1 -1
  258. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  259. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  260. package/core/libs/gl-matrix-2/math/vec4.js +1 -1
  261. package/core/mathUtils.js +1 -1
  262. package/core/perspectiveUtils.js +1 -1
  263. package/form/elements/inputs/DatePickerInput.d.ts +4 -0
  264. package/form/elements/inputs/DatePickerInput.js +5 -0
  265. package/form/elements/inputs/DateTimeOffsetPickerInput.d.ts +4 -0
  266. package/form/elements/inputs/DateTimeOffsetPickerInput.js +5 -0
  267. package/form/elements/inputs/TimePickerInput.d.ts +4 -0
  268. package/form/elements/inputs/TimePickerInput.js +5 -0
  269. package/form/elements/support/inputs.js +1 -1
  270. package/geometry/projection/computeTranslationToOriginAndRotation.js +1 -1
  271. package/geometry/projection/projectDirection.js +1 -1
  272. package/geometry/support/MeshTransform.js +1 -1
  273. package/geometry/support/axisAngle.js +1 -1
  274. package/geometry/support/axisAngleDegrees.js +1 -1
  275. package/geometry/support/clipRay.js +1 -1
  276. package/geometry/support/coordinateSystem.js +1 -1
  277. package/geometry/support/frustum.js +1 -1
  278. package/geometry/support/lineSegment.js +1 -1
  279. package/geometry/support/meshUtils/centerAt.js +1 -1
  280. package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
  281. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  282. package/geometry/support/meshUtils/exporters/gltf/node.js +1 -1
  283. package/geometry/support/meshUtils/georeference.js +1 -1
  284. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  285. package/geometry/support/meshUtils/merge.js +1 -1
  286. package/geometry/support/meshUtils/offset.js +1 -1
  287. package/geometry/support/meshUtils/primitives.js +1 -1
  288. package/geometry/support/meshUtils/projection.js +1 -1
  289. package/geometry/support/meshUtils/rotate.js +1 -1
  290. package/geometry/support/meshUtils/scale.js +1 -1
  291. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  292. package/geometry/support/plane.js +1 -1
  293. package/geometry/support/ray.js +1 -1
  294. package/geometry/support/triangle.js +1 -1
  295. package/geometry/support/vector.js +1 -1
  296. package/interfaces.d.ts +405 -7
  297. package/layers/VoxelWasmPerSceneView.js +1 -1
  298. package/layers/mixins/SceneService.js +1 -1
  299. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  300. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  301. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  302. package/layers/orientedImagery/transformations/utils.js +1 -1
  303. package/layers/support/ControlPointsGeoreference.js +1 -1
  304. package/layers/support/ImageElement.js +1 -1
  305. package/layers/support/SceneFilter.js +1 -1
  306. package/layers/support/layerUtils.js +1 -1
  307. package/layers/video/VideoCameraSensorModel.js +1 -1
  308. package/layers/voxel/VoxelVolume.js +1 -1
  309. package/layers/voxel/voxelPlaneUtils.js +1 -1
  310. package/package.json +1 -1
  311. package/portal/support/resourceExtension.js +1 -1
  312. package/portal/support/resourceUtils.js +1 -1
  313. package/portal/support/utils.js +5 -0
  314. package/smartMapping/popup/support/utils.js +1 -1
  315. package/smartMapping/raster/renderers/classBreaks.js +1 -1
  316. package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
  317. package/smartMapping/raster/support/adapters/ImageryTileLayerAdapter.js +1 -1
  318. package/smartMapping/raster/support/adapters/RasterLayerAdapter.js +1 -1
  319. package/support/revision.js +1 -1
  320. package/symbols/cim/CIMImageColorSubstitutionHelper.js +1 -1
  321. package/symbols/support/previewSymbol3D.js +1 -1
  322. package/views/2d/ViewState.js +1 -1
  323. package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
  324. package/views/2d/engine/imagery/RasterVFTile.js +1 -1
  325. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  326. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  327. package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
  328. package/views/2d/engine/webgl/Overlay.js +1 -1
  329. package/views/2d/engine/webgl/OverlayContainer.js +1 -1
  330. package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
  331. package/views/2d/engine/webgl/WGLTile.js +1 -1
  332. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
  333. package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +1 -1
  334. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  335. package/views/2d/interactive/editingTools/manipulations/RotateManipulation.js +1 -1
  336. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  337. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  338. package/views/2d/layers/support/DebugOverlay.js +1 -1
  339. package/views/2d/navigation/actions/Pan.js +1 -1
  340. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  341. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  342. package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
  343. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  344. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  345. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  346. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  347. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  348. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  349. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  350. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  351. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  352. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
  353. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  354. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  355. package/views/3d/analysis/images/Factory.js +5 -0
  356. package/views/3d/analysis/support/measurementUtils.js +1 -1
  357. package/views/3d/analysis/support/viewUtils.js +1 -1
  358. package/views/3d/animation/pointToPoint/Animation.js +1 -1
  359. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  360. package/views/3d/camera/constraintUtils/altitude.js +1 -1
  361. package/views/3d/camera/constraintUtils/common.js +1 -1
  362. package/views/3d/camera/constraintUtils/distance.js +1 -1
  363. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  364. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  365. package/views/3d/camera/intersectionUtils.js +1 -1
  366. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  367. package/views/3d/environment/CloudsGenerator.js +1 -1
  368. package/views/3d/environment/CloudsParameters.js +1 -1
  369. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  370. package/views/3d/environment/Fog.js +1 -1
  371. package/views/3d/environment/LocalAtmosphere.js +1 -1
  372. package/views/3d/environment/MarsAtmosphere.js +1 -1
  373. package/views/3d/environment/SceneViewEnvironment.js +1 -1
  374. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  375. package/views/3d/environment/Stars.js +1 -1
  376. package/views/3d/environment/StarsTechnique.js +1 -1
  377. package/views/3d/externalRenderers.js +1 -1
  378. package/views/3d/glTF/internal/Resource.js +1 -1
  379. package/views/3d/interactive/Manipulator3D.js +1 -1
  380. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  381. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  382. package/views/3d/interactive/editingTools/lineGraphicVisualElementUtils.js +1 -1
  383. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  384. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  385. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  386. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  387. package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
  388. package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
  389. package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
  390. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  391. package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
  392. package/views/3d/interactive/manipulatorUtils.js +1 -1
  393. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  394. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  395. package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
  396. package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
  397. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  398. package/views/3d/interactive/visualElements/MarkerVisualElement.js +1 -1
  399. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  400. package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
  401. package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
  402. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  403. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  404. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  405. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  406. package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
  407. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  408. package/views/3d/interactive/visualElements/VisualElementResources.js +1 -1
  409. package/views/3d/interactive/visualElements/support/Segment.js +1 -1
  410. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  411. package/views/3d/layers/I3SMeshView3D.js +1 -1
  412. package/views/3d/layers/MediaLayerView3D.js +1 -1
  413. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  414. package/views/3d/layers/PointCloudWorker.js +1 -1
  415. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  416. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  417. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  418. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  419. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  420. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  421. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  422. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  423. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  424. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  425. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  426. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  427. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  428. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  429. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  430. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  431. package/views/3d/layers/graphics/LabelParameters.js +1 -1
  432. package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
  433. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  434. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  435. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  436. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  437. package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
  438. package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
  439. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  440. package/views/3d/layers/i3s/I3SProjectionUtil.js +1 -1
  441. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  442. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  443. package/views/3d/layers/i3s/LoDUtil.js +1 -1
  444. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  445. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  446. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  447. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  448. package/views/3d/layers/support/I3STreeDebugger.js +1 -1
  449. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  450. package/views/3d/layers/support/edgeUtils.js +1 -1
  451. package/views/3d/layers/support/patternUtils.js +1 -1
  452. package/views/3d/layers/support/uvUtils.js +1 -1
  453. package/views/3d/state/Frustum.js +1 -1
  454. package/views/3d/state/NearFarHeuristic.js +1 -1
  455. package/views/3d/state/ViewStateManager.js +1 -1
  456. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  457. package/views/3d/state/controllers/RotateController.js +1 -1
  458. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  459. package/views/3d/state/controllers/global/ZoomController.js +1 -1
  460. package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
  461. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  462. package/views/3d/state/controllers/local/ZoomController.js +1 -1
  463. package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
  464. package/views/3d/state/controllers/momentum/PanPlanarMomentumController.js +1 -1
  465. package/views/3d/state/controllers/momentum/PanSphericalMomentumController.js +1 -1
  466. package/views/3d/state/controllers/momentum/RotationMomentumController.js +1 -1
  467. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  468. package/views/3d/state/controllers/momentum/ZoomSphericalMomentumController.js +1 -1
  469. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  470. package/views/3d/state/utils/navigationUtils.js +1 -1
  471. package/views/3d/state/utils/viewUtils.js +1 -1
  472. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  473. package/views/3d/support/LaserLineRenderer.js +1 -1
  474. package/views/3d/support/LaserlinePathData.js +1 -1
  475. package/views/3d/support/RenderCoordsHelper.js +1 -1
  476. package/views/3d/support/StreamTextureCollection.js +1 -1
  477. package/views/3d/support/TextureCollection.js +1 -1
  478. package/views/3d/support/cameraUtils.js +1 -1
  479. package/views/3d/support/cameraUtilsInternal.js +1 -1
  480. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  481. package/views/3d/support/geometryUtils/ray.js +1 -1
  482. package/views/3d/support/intersectionUtils.js +1 -1
  483. package/views/3d/support/mathUtils.js +1 -1
  484. package/views/3d/support/orientedBoundingBox.js +1 -1
  485. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  486. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  487. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  488. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  489. package/views/3d/support/sunUtils.js +1 -1
  490. package/views/3d/support/viewpointUtils.js +1 -1
  491. package/views/3d/terrain/Overlay.js +1 -1
  492. package/views/3d/terrain/OverlayContent.js +5 -0
  493. package/views/3d/terrain/OverlayManager.js +1 -1
  494. package/views/3d/terrain/OverlayRenderTarget.js +1 -1
  495. package/views/3d/terrain/OverlayRenderer.js +1 -1
  496. package/views/3d/terrain/PatchGeometry.js +1 -1
  497. package/views/3d/terrain/PatchRenderData.js +1 -1
  498. package/views/3d/terrain/SphericalPatch.js +1 -1
  499. package/views/3d/terrain/TerrainRenderer.js +1 -1
  500. package/views/3d/terrain/TerrainSurface.js +1 -1
  501. package/views/3d/terrain/TextureReference.js +1 -1
  502. package/views/3d/terrain/Tile.js +1 -1
  503. package/views/3d/terrain/TileCompositor.js +1 -1
  504. package/views/3d/terrain/TileOverlayData.js +1 -1
  505. package/views/3d/terrain/TileRenderInfo.js +1 -1
  506. package/views/3d/terrain/interfaces.js +1 -1
  507. package/views/3d/terrain/support/MultiSizeFramebuffer.js +1 -1
  508. package/views/3d/webgl-engine/Stage.js +1 -1
  509. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  510. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  511. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  512. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  513. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  514. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
  515. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +1 -1
  516. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +1 -1
  517. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +1 -1
  518. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +1 -1
  519. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +32 -53
  520. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +6 -6
  521. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
  522. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +9 -9
  523. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  524. package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
  525. package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
  526. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  527. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  528. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  529. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  530. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  531. package/views/3d/webgl-engine/lib/CascadeCamera.js +1 -1
  532. package/views/3d/webgl-engine/lib/ContentObject.js +1 -1
  533. package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
  534. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  535. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  536. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  537. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  538. package/views/3d/webgl-engine/lib/ITexture.js +5 -0
  539. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  540. package/views/3d/webgl-engine/lib/IntersectorTarget.js +1 -1
  541. package/views/3d/webgl-engine/lib/LocalOriginManager.js +1 -1
  542. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  543. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  544. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  545. package/views/3d/webgl-engine/lib/Path.js +1 -1
  546. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  547. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  548. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  549. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  550. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  551. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  552. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  553. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  554. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  555. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  556. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  557. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  558. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  559. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderParameters.js +1 -1
  560. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  561. package/views/3d/webgl-engine/lib/edgeRendering/edgeBufferWriters.js +1 -1
  562. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  563. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  564. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  565. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  566. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  567. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  568. package/views/3d/webgl-engine/lib/octreeUtils.js +1 -1
  569. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  570. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  571. package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
  572. package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
  573. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  574. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  575. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  576. package/views/3d/webgl-engine/materials/LineDrawParameters.js +1 -1
  577. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  578. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  579. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  580. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  581. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  582. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  583. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  584. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  585. package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
  586. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  587. package/views/3d/webgl-engine/parts/Model.js +1 -1
  588. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  589. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  590. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  591. package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +1 -1
  592. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  593. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  594. package/views/GroundView.js +1 -1
  595. package/views/SceneView.js +1 -1
  596. package/views/draw/DrawManipulator.js +1 -1
  597. package/views/draw/support/createUtils.js +1 -1
  598. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  599. package/views/interactive/GraphicManipulator.js +1 -1
  600. package/views/interactive/ManipulatorCollection.js +1 -1
  601. package/views/interactive/ToolViewManagerManipulatorState.js +1 -1
  602. package/views/interactive/coordinateHelper.js +1 -1
  603. package/views/interactive/dragEventPipeline.js +1 -1
  604. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  605. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  606. package/views/interactive/sketch/constraints.js +1 -1
  607. package/views/interactive/sketch/normalizedPoint.js +1 -1
  608. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  609. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  610. package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
  611. package/views/interactive/snapping/candidates/RightAngleTriangleSnappingCandidate.js +1 -1
  612. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  613. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  614. package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
  615. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  616. package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
  617. package/views/interactive/snapping/hints/PointSnappingHint.js +1 -1
  618. package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
  619. package/views/interactive/support/viewUtils.js +1 -1
  620. package/views/interactive/tooltip/constraintUtils.js +1 -1
  621. package/views/navigation/PanPlanarMomentumEstimator.js +1 -1
  622. package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
  623. package/views/navigation/gamepadAndKeyboardUtils.js +1 -1
  624. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  625. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  626. package/views/support/geometry3dUtils.js +1 -1
  627. package/views/support/layerViewUtils.js +1 -1
  628. package/webdoc/support/saveUtils.js +1 -1
  629. package/webscene/Slide.js +1 -1
  630. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  631. package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
  632. package/widgets/Editor/EditorViewModel.js +1 -1
  633. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  634. package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
  635. package/widgets/Editor/UpdateWorkflow.js +1 -1
  636. package/widgets/Editor/workflowUtils.js +1 -1
  637. package/widgets/Editor.js +1 -1
  638. package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
  639. package/widgets/ElevationProfile/support/constants.js +1 -1
  640. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  641. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  642. package/widgets/OrientedImageryViewer.js +1 -1
  643. package/widgets/Sketch.js +1 -1
  644. package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +4 -0
  645. package/widgets/smartMapping/BinaryColorSizeSlider.d.ts +4 -0
  646. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  647. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  648. package/widgets/support/templateUtils.js +5 -0
  649. package/assets/esri/core/workers/chunks/19857e5420cdf23c5f2e.js +0 -1
  650. package/assets/esri/core/workers/chunks/26289742b9280f0b5247.js +0 -1
  651. package/assets/esri/core/workers/chunks/46f6b77e586d78aeb75c.js +0 -1
  652. package/assets/esri/core/workers/chunks/4e39252f40bc57be9d12.js +0 -1
  653. package/assets/esri/core/workers/chunks/54513578f735d274a20e.js +0 -1
  654. package/assets/esri/core/workers/chunks/8dab0acdbbd5c282645a.js +0 -1
  655. package/assets/esri/core/workers/chunks/8e4b01a0cb8c8926f2b6.js +0 -1
  656. package/assets/esri/core/workers/chunks/a3a1d4f32e518e97d071.js +0 -1
  657. package/assets/esri/core/workers/chunks/b2d4a56197dcabdbae35.js +0 -1
  658. package/assets/esri/core/workers/chunks/be0565d923afba7ca300.js +0 -1
  659. package/assets/esri/core/workers/chunks/c99fa4189a114370b004.js +0 -1
  660. package/assets/esri/core/workers/chunks/daa79c14150c12d8bc3d.js +0 -1
  661. package/assets/esri/core/workers/chunks/ebd006fcd568a7731115.js +0 -1
  662. package/assets/esri/core/workers/chunks/f67388c4b7103fda6633.js +0 -1
  663. package/views/3d/analysis/Slice/images/Factory.js +0 -5
  664. /package/assets/esri/views/3d/analysis/{Slice/images → images}/heading-rotate.ts.svg +0 -0
  665. /package/assets/esri/views/3d/analysis/{Slice/images → images}/tilt-rotate.ts.svg +0 -0
  666. /package/views/3d/analysis/{Slice/images → images}/generateTextures.js +0 -0
  667. /package/views/3d/analysis/{Slice/images → images}/heading-rotate-svg.js +0 -0
  668. /package/views/3d/analysis/{Slice/images → images}/tilt-rotate-svg.js +0 -0
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
+ */
5
+ import{_ as t}from"../../../chunks/tslib.es6.js";import{property as e}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/accessorSupport/ensureType.js";import"../../../core/arrayUtils.js";import"../../../core/has.js";import{reader as r}from"../../../core/accessorSupport/decorators/reader.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{writer as i}from"../../../core/accessorSupport/decorators/writer.js";import n from"./Input.js";var s;function p(t){return null!=t?t:null}function m(t){return null!=t?t:null}let u=s=class extends n{constructor(t){super(t),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(t,e){return p(e.max)}writeMax(t,e){e.max=m(t)}readMin(t,e){return p(e.min)}writeMin(t,e){e.min=m(t)}readTimeResolution(t,e){return p(e.timeResolution)}writeTimeResolution(t,e){e.timeResolution=m(t)}clone(){return new s({max:this.max,min:this.min,timeResolution:this.timeResolution})}};t([e({type:String,json:{type:String,write:!0}})],u.prototype,"max",void 0),t([r("max")],u.prototype,"readMax",null),t([i("max")],u.prototype,"writeMax",null),t([e({type:String,json:{type:String,write:!0}})],u.prototype,"min",void 0),t([r("min")],u.prototype,"readMin",null),t([i("min")],u.prototype,"writeMin",null),t([e({type:String,json:{type:String,write:!0}})],u.prototype,"timeResolution",void 0),t([r("timeResolution")],u.prototype,"readTimeResolution",null),t([i("timeResolution")],u.prototype,"writeTimeResolution",null),t([e({type:["time-picker"],json:{read:!1,write:!0}})],u.prototype,"type",void 0),u=s=t([o("esri.form.elements.inputs.TimePickerInput")],u);const l=u;export{l as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import t from"../inputs/BarcodeScannerInput.js";import o from"../inputs/ComboBoxInput.js";import p from"../inputs/DateTimePickerInput.js";import r from"../inputs/Input.js";import i from"../inputs/RadioButtonsInput.js";import n from"../inputs/SwitchInput.js";import s from"../inputs/TextAreaInput.js";import e from"../inputs/TextBoxInput.js";const m={base:r,key:"type",typeMap:{"barcode-scanner":t,"combo-box":o,"datetime-picker":p,"radio-buttons":i,switch:n,"text-area":s,"text-box":e}};export{m as types};
5
+ import t from"../inputs/BarcodeScannerInput.js";import p from"../inputs/ComboBoxInput.js";import i from"../inputs/DatePickerInput.js";import o from"../inputs/DateTimeOffsetPickerInput.js";import r from"../inputs/DateTimePickerInput.js";import e from"../inputs/Input.js";import m from"../inputs/RadioButtonsInput.js";import s from"../inputs/SwitchInput.js";import n from"../inputs/TextAreaInput.js";import u from"../inputs/TextBoxInput.js";import a from"../inputs/TimePickerInput.js";const c={base:e,key:"type",typeMap:{"barcode-scanner":t,"combo-box":p,"date-picker":i,"datetime-picker":r,"datetimeoffset-picker":o,"radio-buttons":m,switch:s,"text-area":n,"text-box":u,"time-picker":a}};export{c as types};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{deg2rad as r}from"../../core/mathUtils.js";import{f as t,i as o}from"../../chunks/mat4.js";import{c as n}from"../../chunks/vec3f64.js";import{computeENUToSphericalPCPFLocalRotation as s,computeSphericalPCPFToENULocalRotation as E}from"./localRotationUtils.js";import{classifySpatialReference as i,sourceClassificationCache as l,destClassificationCache as u,ProjectionID as A,projectionTable as C}from"./projectors.js";import{equals as R}from"../support/spatialReferenceUtils.js";function f(r,n,f,m){if(null==r||null==m)return!1;const p=i(r,l),P=i(m,u);if(p===P&&!L(P)&&(p!==A.UNKNOWN||R(r,m)))return t(f,n),!0;if(L(P)){const r=C[p][A.LON_LAT],t=C[A.LON_LAT][P];return null!=r&&null!=t&&(r(n,0,c,0),t(c,0,e,0),s(_*c[0],_*c[1],f),f[12]=e[0],f[13]=e[1],f[14]=e[2],!0)}if((P===A.WEB_MERCATOR||P===A.PLATE_CARREE)&&(p===A.WGS84||p===A.CGCS2000&&P===A.PLATE_CARREE||p===A.SPHERICAL_ECEF||p===A.WEB_MERCATOR)){const r=C[p][A.LON_LAT],t=C[A.LON_LAT][P];return null!=r&&null!=t&&(r(n,0,c,0),t(c,0,e,0),p===A.SPHERICAL_ECEF?E(_*c[0],_*c[1],f):o(f),f[12]=e[0],f[13]=e[1],f[14]=e[2],!0)}return!1}function L(r){return r===A.SPHERICAL_ECEF||r===A.SPHERICAL_MARS_PCPF||r===A.SPHERICAL_MOON_PCPF}const _=r(1),c=n(),e=n();export{f as computeTranslationToOriginAndRotation};
5
+ import{deg2rad as r}from"../../core/mathUtils.js";import{d as t,g as o}from"../../chunks/mat4.js";import{c as n}from"../../chunks/vec3f64.js";import{computeENUToSphericalPCPFLocalRotation as s,computeSphericalPCPFToENULocalRotation as E}from"./localRotationUtils.js";import{classifySpatialReference as l,sourceClassificationCache as i,destClassificationCache as u,ProjectionID as A,projectionTable as C}from"./projectors.js";import{equals as R}from"../support/spatialReferenceUtils.js";function L(r,n,L,m){if(null==r||null==m)return!1;const p=l(r,i),P=l(m,u);if(p===P&&!_(P)&&(p!==A.UNKNOWN||R(r,m)))return t(L,n),!0;if(_(P)){const r=C[p][A.LON_LAT],t=C[A.LON_LAT][P];return null!=r&&null!=t&&(r(n,0,e,0),t(e,0,f,0),s(c*e[0],c*e[1],L),L[12]=f[0],L[13]=f[1],L[14]=f[2],!0)}if((P===A.WEB_MERCATOR||P===A.PLATE_CARREE)&&(p===A.WGS84||p===A.CGCS2000&&P===A.PLATE_CARREE||p===A.SPHERICAL_ECEF||p===A.WEB_MERCATOR)){const r=C[p][A.LON_LAT],t=C[A.LON_LAT][P];return null!=r&&null!=t&&(r(n,0,e,0),t(e,0,f,0),p===A.SPHERICAL_ECEF?E(c*e[0],c*e[1],L):o(L),L[12]=f[0],L[13]=f[1],L[14]=f[2],!0)}return!1}function _(r){return r===A.SPHERICAL_ECEF||r===A.SPHERICAL_MARS_PCPF||r===A.SPHERICAL_MOON_PCPF}const c=r(1),e=n(),f=n();export{L as computeTranslationToOriginAndRotation};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{i as o,e as s,g as c,n as r}from"../../chunks/vec3.js";import{c as t}from"../../chunks/vec3f64.js";import{projectVectorToVector as e}from"./projectVectorToVector.js";function m(t,m,f,i,p){o(n,t),s(a,t,m),e(n,f,n,p),e(a,f,a,p),c(i,a,n),r(i,i)}const n=t(),a=t();export{m as projectDirection};
5
+ import{c as o,g as c,f as s,n as r}from"../../chunks/vec3.js";import{c as t}from"../../chunks/vec3f64.js";import{projectVectorToVector as e}from"./projectVectorToVector.js";function f(t,f,a,p,i){o(m,t),c(n,t,f),e(m,a,m,i),e(n,a,n,i),s(p,n,m),r(p,p)}const m=t(),n=t();export{f as projectDirection};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../chunks/tslib.es6.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import"../../core/has.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import{g as a,a as e,h as i}from"../../chunks/mat4.js";import{c as n}from"../../chunks/mat4f64.js";import{s as l}from"../../chunks/quat.js";import{b as p}from"../../chunks/quatf64.js";import{m as c}from"../../chunks/vec3.js";import{c as u,g as m,f as h,a as j}from"../../chunks/vec3f64.js";import{UP as x,fromAxisAndAngle as f,axis as y,angle as g,angleRad as A}from"./axisAngleDegrees.js";var b;let v=b=class extends o{constructor(t){super(t),this.translation=u(),this.rotationAxis=m(x),this.rotationAngle=0,this.scale=h(1,1,1)}get rotation(){return f(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=j(y(t)),this.rotationAngle=g(t)}get localMatrix(){const t=n();return l(M,y(this.rotation),A(this.rotation)),a(t,M,this.translation,this.scale),t}get localMatrixInverse(){return e(n(),this.localMatrix)}applyLocal(t,o){return c(o,t,this.localMatrix)}applyLocalInverse(t,o){return c(o,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&i(this.localMatrix,t.localMatrix)}clone(){const t={translation:j(this.translation),rotationAxis:j(this.rotationAxis),rotationAngle:this.rotationAngle,scale:j(this.scale)};return new b(t)}};t([r({type:[Number],nonNullable:!0,json:{write:!0}})],v.prototype,"translation",void 0),t([r({type:[Number],nonNullable:!0,json:{write:!0}})],v.prototype,"rotationAxis",void 0),t([r({type:Number,nonNullable:!0,json:{write:!0}})],v.prototype,"rotationAngle",void 0),t([r({type:[Number],nonNullable:!0,json:{write:!0}})],v.prototype,"scale",void 0),t([r()],v.prototype,"rotation",null),t([r()],v.prototype,"localMatrix",null),t([r()],v.prototype,"localMatrixInverse",null),v=b=t([s("esri.geometry.support.MeshTransform")],v);const M=p(),N=v;export{N as default};
5
+ import{_ as t}from"../../chunks/tslib.es6.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import"../../core/has.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import{f as a,i as e,e as i}from"../../chunks/mat4.js";import{a as n}from"../../chunks/mat4f64.js";import{s as l}from"../../chunks/quat.js";import{a as p}from"../../chunks/quatf64.js";import{e as c}from"../../chunks/vec3.js";import{c as u,e as m,f as h,g as f}from"../../chunks/vec3f64.js";import{UP as j,fromAxisAndAngle as x,axis as y,angle as g,angleRad as A}from"./axisAngleDegrees.js";var v;let b=v=class extends o{constructor(t){super(t),this.translation=u(),this.rotationAxis=m(j),this.rotationAngle=0,this.scale=h(1,1,1)}get rotation(){return x(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=f(y(t)),this.rotationAngle=g(t)}get localMatrix(){const t=n();return l(M,y(this.rotation),A(this.rotation)),a(t,M,this.translation,this.scale),t}get localMatrixInverse(){return e(n(),this.localMatrix)}applyLocal(t,o){return c(o,t,this.localMatrix)}applyLocalInverse(t,o){return c(o,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&i(this.localMatrix,t.localMatrix)}clone(){const t={translation:f(this.translation),rotationAxis:f(this.rotationAxis),rotationAngle:this.rotationAngle,scale:f(this.scale)};return new v(t)}};t([r({type:[Number],nonNullable:!0,json:{write:!0}})],b.prototype,"translation",void 0),t([r({type:[Number],nonNullable:!0,json:{write:!0}})],b.prototype,"rotationAxis",void 0),t([r({type:Number,nonNullable:!0,json:{write:!0}})],b.prototype,"rotationAngle",void 0),t([r({type:[Number],nonNullable:!0,json:{write:!0}})],b.prototype,"scale",void 0),t([r()],b.prototype,"rotation",null),t([r()],b.prototype,"localMatrix",null),t([r()],b.prototype,"localMatrixInverse",null),b=v=t([s("esri.geometry.support.MeshTransform")],b);const M=p(),N=b;export{N as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{s as n,m as t,g as r}from"../../chunks/quat.js";import{b as u}from"../../chunks/quatf64.js";import{i as o,c,n as s}from"../../chunks/vec3.js";import{angle as e}from"./vector.js";import{sv4d as f}from"./vectorStacks.js";function i(n=l){return[n[0],n[1],n[2],n[3]]}function a(n,t,r,u){return j(n,t,r,u,f.get())}function m(n,t){return j(n[0],n[1],n[2],t,f.get())}function p(n,t=i()){return j(n[0],n[1],n[2],n[3],t)}function j(n,t,r,u,o=i()){return o[0]=n,o[1]=t,o[2]=r,o[3]=u,o}function g(n,t){const r=i();return o(v(r),n),r[3]=t,r}function k(n,t,r){return c(v(r),n,t),s(v(r),v(r)),r[3]=e(n,t),r}function h(u,o,c){return n(x,v(u),q(u)),n(S,v(o),q(o)),t(x,S,x),b(c,r(v(c),x))}function v(n){return n}function q(n){return n[3]}function b(n,t){return n[3]=t,n}const l=[0,0,1,0],x=u(),S=u();export{l as UP,q as angle,v as axis,h as compose,p as copy,i as create,g as fromAxisAndAngle,k as fromPoints,j as fromValues,b as setAngle,a as wrap,m as wrapAxisAngle};
5
+ import{s as n,m as t,g as r}from"../../chunks/quat.js";import{a as u}from"../../chunks/quatf64.js";import{c as o,b as c,n as s}from"../../chunks/vec3.js";import{angle as e}from"./vector.js";import{sv4d as f}from"./vectorStacks.js";function i(n=l){return[n[0],n[1],n[2],n[3]]}function a(n,t,r,u){return j(n,t,r,u,f.get())}function m(n,t){return j(n[0],n[1],n[2],t,f.get())}function p(n,t=i()){return j(n[0],n[1],n[2],n[3],t)}function j(n,t,r,u,o=i()){return o[0]=n,o[1]=t,o[2]=r,o[3]=u,o}function g(n,t){const r=i();return o(v(r),n),r[3]=t,r}function k(n,t,r){return c(v(r),n,t),s(v(r),v(r)),r[3]=e(n,t),r}function h(u,o,c){return n(x,v(u),q(u)),n(S,v(o),q(o)),t(x,S,x),b(c,r(v(c),x))}function v(n){return n}function q(n){return n[3]}function b(n,t){return n[3]=t,n}const l=[0,0,1,0],x=u(),S=u();export{l as UP,q as angle,v as axis,h as compose,p as copy,i as create,g as fromAxisAndAngle,k as fromPoints,j as fromValues,b as setAngle,a as wrap,m as wrapAxisAngle};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{rad2deg as n,deg2rad as r}from"../../core/mathUtils.js";import{s as t,m as u,g as o}from"../../chunks/quat.js";import{b as s}from"../../chunks/quatf64.js";import{i as c,c as f,n as i,D as e}from"../../chunks/vec3.js";import{d as a,e as m,U as p}from"../../chunks/vec3f64.js";function h(n=y){return[n[0],n[1],n[2],n[3]]}function j(n,r,t,u){return v(n,r,t,u,B)}function k(n,r){return v(n[0],n[1],n[2],r,B)}function q(n,r=h()){return v(n[0],n[1],n[2],n[3],r)}function v(n,r,t,u,o=h()){return o[0]=n,o[1]=r,o[2]=t,o[3]=u,o}function U(n,r,t=h()){return c(l(t),n),t[3]=r,t}function b(n,r,t=h()){return f(t,n,r),i(t,t),t[3]=-e(n,r),t}function d(r,s,c=h()){return t(z,l(r),D(r)),t(A,l(s),D(s)),u(z,A,z),w(c,n(o(l(c),z)))}function g(n,r,t,u=h()){return U(a,n,C),U(m,r,E),U(p,t,F),d(C,E,C),d(C,F,u),u}function l(n){return n}function x(n){return n[3]}function D(n){return r(n[3])}function w(n,r){return n[3]=r,n}const y=[0,0,1,0],z=s(),A=s(),B=h(),C=h(),E=h(),F=h();export{y as UP,x as angle,D as angleRad,l as axis,d as compose,g as composeAxes,q as copy,h as create,U as fromAxisAndAngle,b as fromPoints,v as fromValues,w as setAngle,j as wrap,k as wrapAxisAngle};
5
+ import{rad2deg as n,deg2rad as r}from"../../core/mathUtils.js";import{s as t,m as u,g as o}from"../../chunks/quat.js";import{a as s}from"../../chunks/quatf64.js";import{c,b as f,n as i,d as e}from"../../chunks/vec3.js";import{U as a,b as m,d as p}from"../../chunks/vec3f64.js";function h(n=z){return[n[0],n[1],n[2],n[3]]}function j(n,r,t,u){return d(n,r,t,u,C)}function k(n,r){return d(n[0],n[1],n[2],r,C)}function b(n,r=h()){return d(n[0],n[1],n[2],n[3],r)}function d(n,r,t,u,o=h()){return o[0]=n,o[1]=r,o[2]=t,o[3]=u,o}function q(n,r,t=h()){return c(l(t),n),t[3]=r,t}function v(n,r,t=h()){return f(t,n,r),i(t,t),t[3]=-e(n,r),t}function U(r,s,c=h()){return t(A,l(r),w(r)),t(B,l(s),w(s)),u(A,B,A),y(c,n(o(l(c),A)))}function g(n,r,t,u=h()){return q(a,n,D),q(m,r,E),q(p,t,F),U(D,E,D),U(D,F,u),u}function l(n){return n}function x(n){return n[3]}function w(n){return r(n[3])}function y(n,r){return n[3]=r,n}const z=[0,0,1,0],A=s(),B=s(),C=h(),D=h(),E=h(),F=h();export{z as UP,x as angle,w as angleRad,l as axis,U as compose,g as composeAxes,b as copy,h as create,q as fromAxisAndAngle,v as fromPoints,d as fromValues,y as setAngle,j as wrap,k as wrapAxisAngle};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{ObjectStack as r}from"../../core/ObjectStack.js";import{l as c,e as n,b as t}from"../../chunks/vec3.js";import{create as o,copy as e,fromValues as u}from"./ray.js";function a(r){return r?{ray:o(r.ray),c0:r.c0,c1:r.c1}:{ray:o(),c0:0,c1:Number.MAX_VALUE}}function i(r,c,n){const t=A.get();return t.ray=r,t.c0=c,t.c1=n,t}function s(r,c=a()){return f(r.ray,r.c0,r.c1,c)}function f(r,c,n,t=a()){return e(r,t.ray),t.c0=c,t.c1=n,t}function y(r,c=a()){return e(r,c.ray),c.c0=0,c.c1=Number.MAX_VALUE,c}function m(r,n,t=a()){const o=c(r.vector);return u(r.origin,n,t.ray),t.c0=0,t.c1=o,t}function p(r,c){return j(r,r.c0,c)}function b(r,c){return j(r,r.c1,c)}function j(r,c,o){return n(o,r.ray.origin,t(o,r.ray.direction,c))}const A=new r((()=>a()));export{s as copy,a as create,m as fromLineSegmentAndDirection,y as fromRay,f as fromValues,j as getAt,b as getEnd,p as getStart,i as wrap};
5
+ import{ObjectStack as r}from"../../core/ObjectStack.js";import{l as c,g as n,i as t}from"../../chunks/vec3.js";import{create as o,copy as e,fromValues as u}from"./ray.js";function a(r){return r?{ray:o(r.ray),c0:r.c0,c1:r.c1}:{ray:o(),c0:0,c1:Number.MAX_VALUE}}function i(r,c,n){const t=A.get();return t.ray=r,t.c0=c,t.c1=n,t}function s(r,c=a()){return f(r.ray,r.c0,r.c1,c)}function f(r,c,n,t=a()){return e(r,t.ray),t.c0=c,t.c1=n,t}function y(r,c=a()){return e(r,c.ray),c.c0=0,c.c1=Number.MAX_VALUE,c}function m(r,n,t=a()){const o=c(r.vector);return u(r.origin,n,t.ray),t.c0=0,t.c1=o,t}function p(r,c){return j(r,r.c0,c)}function g(r,c){return j(r,r.c1,c)}function j(r,c,o){return n(o,r.ray.origin,t(o,r.ray.direction,c))}const A=new r((()=>a()));export{s as copy,a as create,m as fromLineSegmentAndDirection,y as fromRay,f as fromValues,j as getAt,g as getEnd,p as getStart,i as wrap};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{c as t}from"../../chunks/mat4.js";import{s as n,d as e,i as o,n as r,c as u}from"../../chunks/vec3.js";import{c as i}from"../../chunks/vec3f64.js";import{getReferenceEllipsoid as s}from"../ellipsoidUtils.js";import a from"../SpatialReference.js";import{getSphericalPCPF as c}from"../spatialReferenceEllipsoidUtils.js";import{Axis as l}from"./Axis.js";import{f,b as p}from"../../chunks/boundedPlane.js";import{f as v,s as m}from"../../chunks/sphere.js";function h(t){const{value:n,operations:e}=t;return{operations:e,value:e.create(n)}}function d(t,n,e){return t.operations.setExtent(t.value,n,e.value),e}function j(t){return{operations:t,value:t.create()}}function A(t,n,e=j(t)){return e.operations=t,t.copy(n,e.value),e}function k(t){return A(m,v(0,0,0,s(t).radius))}const x=2**50;function R(){return A(p,f([0,0,0],[x,0,0],[0,x,0]))}function y(t,n){return z.operations=t,z.value=n,z}function P(t,n,e){return t.operations.axisAt(t.value,n,l.Z,e)}function S(t,n,e,o){return t.operations.axisAt(t.value,n,e,o)}function b(t,n,e){return t.operations.intersectRay(t.value,n,e)}function C(t,n){return t.operations.intersectRay(t.value,n,null)}function E(t,n,e){return t.operations.closestPoint(t.value,n,e)}function U(t,n,e){return t.operations.intersectRayClosestSilhouette(t.value,n,e)}function g(t,n,e){return t.operations.closestPointOnSilhouette(t.value,n,e)}function G(t,n){return t.operations.distanceToSilhouette(t.value,n)}function O(t,n){return t.operations.altitudeAt(t.value,n)}function T(t,n,e,o){return t.operations.setAltitudeAt(t.value,n,e,o)}function Z(e,o,r,u){return o!==u&&t(u,o),n(w,u[12],u[13],u[14]),T(e,w,r,w),u[12]=w[0],u[13]=w[1],u[14]=w[2],u}function q(t,n,e){return t.operations.elevate(t.value,n,e.value)}const w=i(),z={operations:null,value:null};function B(t,n,o,r,u){return u[0]=e(t,n),u[1]=e(t,o),u[2]=e(t,r),u}function D(t,n,e,i,s){o(e,t),o(H,n),r(H,H),u(i,H,e),u(s,i,e)}function F(t,n){return t?c(n):n.isGeographic?a.PlateCarree:n}const H=i();export{O as altitudeAt,S as axisAt,E as closestPoint,g as closestPointOnSilhouette,D as coordinateSystemFromOneAxisAndNormalVector,h as create,j as createFromOperations,k as createGlobal,R as createLocal,G as distanceToSilhouette,q as elevate,A as fromValues,b as intersectRay,U as intersectRayClosestSilhouette,C as intersectsRay,P as normalAt,F as renderSRFromViewSR,T as setAltitudeAt,Z as setAltitudeOfTransformation,d as setExtent,B as vectorCoordinates,y as wrap};
5
+ import{h as t}from"../../chunks/mat4.js";import{s as n,j as e,c as o,n as r,b as u}from"../../chunks/vec3.js";import{c as i}from"../../chunks/vec3f64.js";import{getReferenceEllipsoid as s}from"../ellipsoidUtils.js";import a from"../SpatialReference.js";import{getSphericalPCPF as c}from"../spatialReferenceEllipsoidUtils.js";import{Axis as l}from"./Axis.js";import{f,b as p}from"../../chunks/boundedPlane.js";import{f as v,s as m}from"../../chunks/sphere.js";function h(t){const{value:n,operations:e}=t;return{operations:e,value:e.create(n)}}function j(t,n,e){return t.operations.setExtent(t.value,n,e.value),e}function d(t){return{operations:t,value:t.create()}}function A(t,n,e=d(t)){return e.operations=t,t.copy(n,e.value),e}function k(t){return A(m,v(0,0,0,s(t).radius))}const x=2**50;function R(){return A(p,f([0,0,0],[x,0,0],[0,x,0]))}function y(t,n){return z.operations=t,z.value=n,z}function P(t,n,e){return t.operations.axisAt(t.value,n,l.Z,e)}function S(t,n,e,o){return t.operations.axisAt(t.value,n,e,o)}function b(t,n,e){return t.operations.intersectRay(t.value,n,e)}function C(t,n){return t.operations.intersectRay(t.value,n,null)}function E(t,n,e){return t.operations.closestPoint(t.value,n,e)}function U(t,n,e){return t.operations.intersectRayClosestSilhouette(t.value,n,e)}function g(t,n,e){return t.operations.closestPointOnSilhouette(t.value,n,e)}function G(t,n){return t.operations.distanceToSilhouette(t.value,n)}function O(t,n){return t.operations.altitudeAt(t.value,n)}function T(t,n,e,o){return t.operations.setAltitudeAt(t.value,n,e,o)}function Z(e,o,r,u){return o!==u&&t(u,o),n(w,u[12],u[13],u[14]),T(e,w,r,w),u[12]=w[0],u[13]=w[1],u[14]=w[2],u}function q(t,n,e){return t.operations.elevate(t.value,n,e.value)}const w=i(),z={operations:null,value:null};function B(t,n,o,r,u){return u[0]=e(t,n),u[1]=e(t,o),u[2]=e(t,r),u}function D(t,n,e,i,s){o(e,t),o(H,n),r(H,H),u(i,H,e),u(s,i,e)}function F(t,n){return t?c(n):n.isGeographic?a.PlateCarree:n}const H=i();export{O as altitudeAt,S as axisAt,E as closestPoint,g as closestPointOnSilhouette,D as coordinateSystemFromOneAxisAndNormalVector,h as create,d as createFromOperations,k as createGlobal,R as createLocal,G as distanceToSilhouette,q as elevate,A as fromValues,b as intersectRay,U as intersectRayClosestSilhouette,C as intersectsRay,P as normalAt,F as renderSRFromViewSR,T as setAltitudeAt,Z as setAltitudeOfTransformation,j as setExtent,B as vectorCoordinates,y as wrap};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{ObjectStack as T}from"../../core/ObjectStack.js";import{m as _,a as O}from"../../chunks/mat4.js";import{s as R}from"../../chunks/vec3.js";import{c as A}from"../../chunks/vec3f64.js";import{t}from"../../chunks/vec4.js";import{f as E}from"../../chunks/vec4f64.js";import{create as F,fromRay as r,fromLineSegmentAndDirection as n}from"./clipRay.js";import{create as o,copy as e,fromPoints as c,clipInfinite as f,signedDistance as B,clip as M}from"./plane.js";import{sm4d as G,sv4d as H}from"./vectorStacks.js";function I(T){return T?[o(T[0]),o(T[1]),o(T[2]),o(T[3]),o(T[4]),o(T[5])]:[o(),o(),o(),o(),o(),o()]}function N(){return[A(),A(),A(),A(),A(),A(),A(),A()]}function L(T,_){for(let O=0;O<v;O++)e(T[O],_[O])}function s(T,A,E,F=S){const r=_(G.get(),A,T);O(r,r);for(let _=0;_<g;++_){const T=t(H.get(),b[_],r);R(F[_],T[0]/T[3],T[1]/T[3],T[2]/T[3])}u(E,F)}function u(T,_){c(_[k.FAR_BOTTOM_LEFT],_[k.NEAR_BOTTOM_LEFT],_[k.NEAR_TOP_LEFT],T[l.LEFT]),c(_[k.NEAR_BOTTOM_RIGHT],_[k.FAR_BOTTOM_RIGHT],_[k.FAR_TOP_RIGHT],T[l.RIGHT]),c(_[k.FAR_BOTTOM_LEFT],_[k.FAR_BOTTOM_RIGHT],_[k.NEAR_BOTTOM_RIGHT],T[l.BOTTOM]),c(_[k.NEAR_TOP_LEFT],_[k.NEAR_TOP_RIGHT],_[k.FAR_TOP_RIGHT],T[l.TOP]),c(_[k.NEAR_BOTTOM_LEFT],_[k.NEAR_BOTTOM_RIGHT],_[k.NEAR_TOP_RIGHT],T[l.NEAR]),c(_[k.FAR_BOTTOM_RIGHT],_[k.FAR_BOTTOM_LEFT],_[k.FAR_TOP_LEFT],T[l.FAR])}function P(T,_){for(let O=0;O<v;O++){const R=T[O];if(R[0]*_[0]+R[1]*_[1]+R[2]*_[2]+R[3]>=_[3])return!1}return!0}function i(T,_){return j(T,r(_,y.get()))}function m(T,_){for(let O=0;O<v;O++){const R=T[O];if(!f(R,_))return!1}return!0}function a(T,_,O){return j(T,n(_,O,y.get()))}function p(T,_){for(let O=0;O<v;O++){if(B(T[O],_)>0)return!1}return!0}function j(T,_){for(let O=0;O<v;O++)if(!M(T[O],_))return!1;return!0}var l,k;!function(T){T[T.LEFT=0]="LEFT",T[T.RIGHT=1]="RIGHT",T[T.BOTTOM=2]="BOTTOM",T[T.TOP=3]="TOP",T[T.NEAR=4]="NEAR",T[T.FAR=5]="FAR"}(l||(l={})),function(T){T[T.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",T[T.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",T[T.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",T[T.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",T[T.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",T[T.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",T[T.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",T[T.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(k||(k={}));const h={bottom:[k.FAR_BOTTOM_RIGHT,k.NEAR_BOTTOM_RIGHT,k.NEAR_BOTTOM_LEFT,k.FAR_BOTTOM_LEFT],near:[k.NEAR_BOTTOM_LEFT,k.NEAR_BOTTOM_RIGHT,k.NEAR_TOP_RIGHT,k.NEAR_TOP_LEFT],far:[k.FAR_BOTTOM_RIGHT,k.FAR_BOTTOM_LEFT,k.FAR_TOP_LEFT,k.FAR_TOP_RIGHT],right:[k.NEAR_BOTTOM_RIGHT,k.FAR_BOTTOM_RIGHT,k.FAR_TOP_RIGHT,k.NEAR_TOP_RIGHT],left:[k.FAR_BOTTOM_LEFT,k.NEAR_BOTTOM_LEFT,k.NEAR_TOP_LEFT,k.FAR_TOP_LEFT],top:[k.FAR_TOP_LEFT,k.NEAR_TOP_LEFT,k.NEAR_TOP_RIGHT,k.FAR_TOP_RIGHT]},v=6,g=8,b=[E(-1,-1,-1,1),E(1,-1,-1,1),E(1,1,-1,1),E(-1,1,-1,1),E(-1,-1,1,1),E(1,-1,1,1),E(1,1,1,1),E(-1,1,1,1)],y=new T(F),S=N();export{v as NumPlanes,g as NumPoints,l as PlaneIndex,k as PointIndex,u as computePlanes,L as copy,I as create,N as createPoints,s as fromMatrix,m as intersectClipRay,a as intersectsLineSegment,p as intersectsPoint,i as intersectsRay,P as intersectsSphere,h as planePointIndices};
5
+ import{ObjectStack as T}from"../../core/ObjectStack.js";import{m as _,i as O}from"../../chunks/mat4.js";import{s as R}from"../../chunks/vec3.js";import{c as A}from"../../chunks/vec3f64.js";import{t}from"../../chunks/vec4.js";import{a as E}from"../../chunks/vec4f64.js";import{create as F,fromRay as r,fromLineSegmentAndDirection as n}from"./clipRay.js";import{create as o,copy as e,fromPoints as c,clipInfinite as f,signedDistance as B,clip as M}from"./plane.js";import{sm4d as G,sv4d as H}from"./vectorStacks.js";function I(T){return T?[o(T[0]),o(T[1]),o(T[2]),o(T[3]),o(T[4]),o(T[5])]:[o(),o(),o(),o(),o(),o()]}function N(){return[A(),A(),A(),A(),A(),A(),A(),A()]}function L(T,_){for(let O=0;O<v;O++)e(T[O],_[O])}function s(T,A,E,F=S){const r=_(G.get(),A,T);O(r,r);for(let _=0;_<g;++_){const T=t(H.get(),b[_],r);R(F[_],T[0]/T[3],T[1]/T[3],T[2]/T[3])}u(E,F)}function u(T,_){c(_[k.FAR_BOTTOM_LEFT],_[k.NEAR_BOTTOM_LEFT],_[k.NEAR_TOP_LEFT],T[l.LEFT]),c(_[k.NEAR_BOTTOM_RIGHT],_[k.FAR_BOTTOM_RIGHT],_[k.FAR_TOP_RIGHT],T[l.RIGHT]),c(_[k.FAR_BOTTOM_LEFT],_[k.FAR_BOTTOM_RIGHT],_[k.NEAR_BOTTOM_RIGHT],T[l.BOTTOM]),c(_[k.NEAR_TOP_LEFT],_[k.NEAR_TOP_RIGHT],_[k.FAR_TOP_RIGHT],T[l.TOP]),c(_[k.NEAR_BOTTOM_LEFT],_[k.NEAR_BOTTOM_RIGHT],_[k.NEAR_TOP_RIGHT],T[l.NEAR]),c(_[k.FAR_BOTTOM_RIGHT],_[k.FAR_BOTTOM_LEFT],_[k.FAR_TOP_LEFT],T[l.FAR])}function P(T,_){for(let O=0;O<v;O++){const R=T[O];if(R[0]*_[0]+R[1]*_[1]+R[2]*_[2]+R[3]>=_[3])return!1}return!0}function i(T,_){return j(T,r(_,y.get()))}function m(T,_){for(let O=0;O<v;O++){const R=T[O];if(!f(R,_))return!1}return!0}function a(T,_,O){return j(T,n(_,O,y.get()))}function p(T,_){for(let O=0;O<v;O++){if(B(T[O],_)>0)return!1}return!0}function j(T,_){for(let O=0;O<v;O++)if(!M(T[O],_))return!1;return!0}var l,k;!function(T){T[T.LEFT=0]="LEFT",T[T.RIGHT=1]="RIGHT",T[T.BOTTOM=2]="BOTTOM",T[T.TOP=3]="TOP",T[T.NEAR=4]="NEAR",T[T.FAR=5]="FAR"}(l||(l={})),function(T){T[T.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",T[T.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",T[T.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",T[T.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",T[T.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",T[T.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",T[T.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",T[T.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(k||(k={}));const h={bottom:[k.FAR_BOTTOM_RIGHT,k.NEAR_BOTTOM_RIGHT,k.NEAR_BOTTOM_LEFT,k.FAR_BOTTOM_LEFT],near:[k.NEAR_BOTTOM_LEFT,k.NEAR_BOTTOM_RIGHT,k.NEAR_TOP_RIGHT,k.NEAR_TOP_LEFT],far:[k.FAR_BOTTOM_RIGHT,k.FAR_BOTTOM_LEFT,k.FAR_TOP_LEFT,k.FAR_TOP_RIGHT],right:[k.NEAR_BOTTOM_RIGHT,k.FAR_BOTTOM_RIGHT,k.FAR_TOP_RIGHT,k.NEAR_TOP_RIGHT],left:[k.FAR_BOTTOM_LEFT,k.NEAR_BOTTOM_LEFT,k.NEAR_TOP_LEFT,k.FAR_TOP_LEFT],top:[k.FAR_TOP_LEFT,k.NEAR_TOP_LEFT,k.NEAR_TOP_RIGHT,k.FAR_TOP_RIGHT]},v=6,g=8,b=[E(-1,-1,-1,1),E(1,-1,-1,1),E(1,1,-1,1),E(-1,1,-1,1),E(-1,-1,1,1),E(1,-1,1,1),E(1,1,1,1),E(-1,1,1,1)],y=new T(F),S=N();export{v as NumPlanes,g as NumPoints,l as PlaneIndex,k as PointIndex,u as computePlanes,L as copy,I as create,N as createPoints,s as fromMatrix,m as intersectClipRay,a as intersectsLineSegment,p as intersectsPoint,i as intersectsRay,P as intersectsSphere,h as planePointIndices};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{clamp as t}from"../../core/mathUtils.js";import{ObjectStack as r}from"../../core/ObjectStack.js";import{i as n,g as o,d as i,b as e,e as c,p as s,a as u}from"../../chunks/vec3.js";import{a,c as g}from"../../chunks/vec3f64.js";import{sv3d as f}from"./vectorStacks.js";function v(t){return t?{origin:a(t.origin),vector:a(t.vector)}:{origin:g(),vector:g()}}function p(t,r){const n=x.get();return n.origin=t,n.vector=r,n}function h(t,r=v()){return m(t.origin,t.vector,r)}function m(t,r,o=v()){return n(o.origin,t),n(o.vector,r),o}function b(t,r,i=v()){return n(i.origin,t),o(i.vector,r,t),i}function M(r,n){const c=o(f.get(),n,r.origin),s=i(r.vector,c),u=i(r.vector,r.vector),a=t(s/u,0,1),g=o(f.get(),e(f.get(),r.vector,a),c);return i(g,g)}function d(t,r){return Math.sqrt(M(t,r))}function j(t,r,n){return A(t,r,0,1,n)}function l(t,r,n){return c(n,t.origin,e(n,t.vector,r))}function A(r,n,u,a,g){const{vector:v,origin:p}=r,h=o(f.get(),n,p),m=i(v,h)/s(v);return e(g,v,t(m,u,a)),c(g,g,r.origin)}function B(t,r){if(q(t,p(r.origin,r.direction),!1,w)){const{tA:r,pB:n,distance2:o}=w;if(r>=0&&r<=1)return o;if(r<0)return u(t.origin,n);if(r>1)return u(c(f.get(),t.origin,t.vector),n)}return null}function k(t,r,o){return!!q(t,r,!0,w)&&(n(o,w.pA),!0)}function S(t,r){return q(t,r,!0,w)?w.distance2:null}function q(r,n,o,i){const e=1e-6,s=r.origin,a=c(f.get(),s,r.vector),g=n.origin,v=c(f.get(),g,n.vector),p=f.get(),h=f.get();if(p[0]=s[0]-g[0],p[1]=s[1]-g[1],p[2]=s[2]-g[2],h[0]=v[0]-g[0],h[1]=v[1]-g[1],h[2]=v[2]-g[2],Math.abs(h[0])<e&&Math.abs(h[1])<e&&Math.abs(h[2])<e)return!1;const m=f.get();if(m[0]=a[0]-s[0],m[1]=a[1]-s[1],m[2]=a[2]-s[2],Math.abs(m[0])<e&&Math.abs(m[1])<e&&Math.abs(m[2])<e)return!1;const b=p[0]*h[0]+p[1]*h[1]+p[2]*h[2],M=h[0]*m[0]+h[1]*m[1]+h[2]*m[2],d=p[0]*m[0]+p[1]*m[1]+p[2]*m[2],j=h[0]*h[0]+h[1]*h[1]+h[2]*h[2],l=(m[0]*m[0]+m[1]*m[1]+m[2]*m[2])*j-M*M;if(Math.abs(l)<e)return!1;let A=(b*M-d*j)/l,B=(b+M*A)/j;o&&(A=t(A,0,1),B=t(B,0,1));const k=f.get(),S=f.get();return k[0]=s[0]+A*m[0],k[1]=s[1]+A*m[1],k[2]=s[2]+A*m[2],S[0]=g[0]+B*h[0],S[1]=g[1]+B*h[1],S[2]=g[2]+B*h[2],i.tA=A,i.tB=B,i.pA=k,i.pB=S,i.distance2=u(k,S),!0}const w={tA:0,tB:0,pA:g(),pB:g(),distance2:0},x=new r((()=>v()));export{S as closestLineSegmentDistance2,k as closestLineSegmentPoint,B as closestRayDistance2,h as copy,v as create,d as distance,M as distance2,b as fromPoints,m as fromValues,l as pointAt,j as projectPoint,A as projectPointClamp,p as wrap};
5
+ import{clamp as t}from"../../core/mathUtils.js";import{ObjectStack as r}from"../../core/ObjectStack.js";import{c as n,f as o,j as i,i as e,g as c,o as s,a as u}from"../../chunks/vec3.js";import{g as a,c as g}from"../../chunks/vec3f64.js";import{sv3d as f}from"./vectorStacks.js";function v(t){return t?{origin:a(t.origin),vector:a(t.vector)}:{origin:g(),vector:g()}}function p(t,r){const n=x.get();return n.origin=t,n.vector=r,n}function h(t,r=v()){return m(t.origin,t.vector,r)}function m(t,r,o=v()){return n(o.origin,t),n(o.vector,r),o}function b(t,r,i=v()){return n(i.origin,t),o(i.vector,r,t),i}function M(r,n){const c=o(f.get(),n,r.origin),s=i(r.vector,c),u=i(r.vector,r.vector),a=t(s/u,0,1),g=o(f.get(),e(f.get(),r.vector,a),c);return i(g,g)}function j(t,r){return Math.sqrt(M(t,r))}function l(t,r,n){return d(t,r,0,1,n)}function A(t,r,n){return c(n,t.origin,e(n,t.vector,r))}function d(r,n,u,a,g){const{vector:v,origin:p}=r,h=o(f.get(),n,p),m=i(v,h)/s(v);return e(g,v,t(m,u,a)),c(g,g,r.origin)}function B(t,r){if(q(t,p(r.origin,r.direction),!1,w)){const{tA:r,pB:n,distance2:o}=w;if(r>=0&&r<=1)return o;if(r<0)return u(t.origin,n);if(r>1)return u(c(f.get(),t.origin,t.vector),n)}return null}function k(t,r,o){return!!q(t,r,!0,w)&&(n(o,w.pA),!0)}function S(t,r){return q(t,r,!0,w)?w.distance2:null}function q(r,n,o,i){const e=1e-6,s=r.origin,a=c(f.get(),s,r.vector),g=n.origin,v=c(f.get(),g,n.vector),p=f.get(),h=f.get();if(p[0]=s[0]-g[0],p[1]=s[1]-g[1],p[2]=s[2]-g[2],h[0]=v[0]-g[0],h[1]=v[1]-g[1],h[2]=v[2]-g[2],Math.abs(h[0])<e&&Math.abs(h[1])<e&&Math.abs(h[2])<e)return!1;const m=f.get();if(m[0]=a[0]-s[0],m[1]=a[1]-s[1],m[2]=a[2]-s[2],Math.abs(m[0])<e&&Math.abs(m[1])<e&&Math.abs(m[2])<e)return!1;const b=p[0]*h[0]+p[1]*h[1]+p[2]*h[2],M=h[0]*m[0]+h[1]*m[1]+h[2]*m[2],j=p[0]*m[0]+p[1]*m[1]+p[2]*m[2],l=h[0]*h[0]+h[1]*h[1]+h[2]*h[2],A=(m[0]*m[0]+m[1]*m[1]+m[2]*m[2])*l-M*M;if(Math.abs(A)<e)return!1;let d=(b*M-j*l)/A,B=(b+M*d)/l;o&&(d=t(d,0,1),B=t(B,0,1));const k=f.get(),S=f.get();return k[0]=s[0]+d*m[0],k[1]=s[1]+d*m[1],k[2]=s[2]+d*m[2],S[0]=g[0]+B*h[0],S[1]=g[1]+B*h[1],S[2]=g[2]+B*h[2],i.tA=d,i.tB=B,i.pA=k,i.pB=S,i.distance2=u(k,S),!0}const w={tA:0,tB:0,pA:g(),pB:g(),distance2:0},x=new r((()=>v()));export{S as closestLineSegmentDistance2,k as closestLineSegmentPoint,B as closestRayDistance2,h as copy,v as create,j as distance,M as distance2,b as fromPoints,m as fromValues,A as pointAt,l as projectPoint,d as projectPointClamp,p as wrap};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../core/Logger.js";import{g as t,e as i}from"../../../chunks/vec3.js";import{c as r}from"../../../chunks/vec3f64.js";import{projectPointToVector as o}from"../../projection/projectPointToVector.js";import{validateGeographicFlag as n,isGeographicMesh as s}from"./geographicUtils.js";import{ungeoreference as a,georeference as c}from"./georeference.js";const p="esri.geometry.support.meshUtils.centerAt";function l(e,t,i){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const{vertexSpace:r}=e,o=i?.origin??e.origin;if(r.isRelative)n(r,p,i),f(e,t,o);else{s(e.spatialReference,i)?g(e,t,o):d(e,t,o)}}function f(n,s,a){const{vertexSpace:c}=n;if(!c.isRelative)return;const l=u,f=j;if(!o(s,f,n.spatialReference))return void e.getLogger(p).error(`Failed to project centerAt location (wkid:${s.spatialReference.wkid}) to mesh spatial reference (wkid:${n.spatialReference.wkid}). Projection may be possible after calling projection.load().`);if(!o(a,l,n.spatialReference)){const t=n.origin;l[0]=t.x,l[1]=t.y,l[2]=t.z,e.getLogger(p).error(`Failed to project specified origin (wkid:${a.spatialReference.wkid}) to mesh spatial reference (wkid:${n.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}const g=t(k,f,l),d=c.origin;c.origin=i(r(),d,g)}function g(e,t,i){const r=a(e.vertexAttributes,i,{geographic:!0}),{position:o,normal:n,tangent:s}=c(r,t,{geographic:!0});e.vertexAttributes.position=o,e.vertexAttributes.normal=n,e.vertexAttributes.tangent=s,e.vertexAttributesChanged()}function d(t,i,r){const n=u,s=j;if(o(i,s,t.spatialReference)){if(!o(r,n,t.spatialReference)){const i=t.origin;n[0]=i.x,n[1]=i.y,n[2]=i.z,e.getLogger(p).error(`Failed to project specified origin (wkid:${r.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}m(t.vertexAttributes.position,s,n),t.vertexAttributesChanged()}else e.getLogger(p).error(`Failed to project centerAt location (wkid:${i.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}function m(e,t,i){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-i[o]}const j=r(),u=r(),k=r();export{l as centerAt};
5
+ import e from"../../../core/Logger.js";import{f as t,g as i}from"../../../chunks/vec3.js";import{c as r}from"../../../chunks/vec3f64.js";import{projectPointToVector as o}from"../../projection/projectPointToVector.js";import{validateGeographicFlag as n,isGeographicMesh as s}from"./geographicUtils.js";import{ungeoreference as a,georeference as c}from"./georeference.js";const p="esri.geometry.support.meshUtils.centerAt";function l(e,t,i){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const{vertexSpace:r}=e,o=i?.origin??e.origin;if(r.isRelative)n(r,p,i),f(e,t,o);else{s(e.spatialReference,i)?g(e,t,o):d(e,t,o)}}function f(n,s,a){const{vertexSpace:c}=n;if(!c.isRelative)return;const l=u,f=j;if(!o(s,f,n.spatialReference))return void e.getLogger(p).error(`Failed to project centerAt location (wkid:${s.spatialReference.wkid}) to mesh spatial reference (wkid:${n.spatialReference.wkid}). Projection may be possible after calling projection.load().`);if(!o(a,l,n.spatialReference)){const t=n.origin;l[0]=t.x,l[1]=t.y,l[2]=t.z,e.getLogger(p).error(`Failed to project specified origin (wkid:${a.spatialReference.wkid}) to mesh spatial reference (wkid:${n.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}const g=t(k,f,l),d=c.origin;c.origin=i(r(),d,g)}function g(e,t,i){const r=a(e.vertexAttributes,i,{geographic:!0}),{position:o,normal:n,tangent:s}=c(r,t,{geographic:!0});e.vertexAttributes.position=o,e.vertexAttributes.normal=n,e.vertexAttributes.tangent=s,e.vertexAttributesChanged()}function d(t,i,r){const n=u,s=j;if(o(i,s,t.spatialReference)){if(!o(r,n,t.spatialReference)){const i=t.origin;n[0]=i.x,n[1]=i.y,n[2]=i.z,e.getLogger(p).error(`Failed to project specified origin (wkid:${r.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}m(t.vertexAttributes.position,s,n),t.vertexAttributesChanged()}else e.getLogger(p).error(`Failed to project centerAt location (wkid:${i.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}function m(e,t,i){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-i[o]}const j=r(),u=r(),k=r();export{l as centerAt};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{s as n,g as t,c as e,n as o}from"../../../../../chunks/vec3.js";import{c as s}from"../../../../../chunks/vec3f64.js";import i from"../../../../Point.js";function r(n,t){if(n.components)for(const e of n.components)e.faces&&"smooth"===e.shading&&a(e,t)}function a(s,i){null==i.normal&&(i.normal=new Float32Array(i.position.length));const r=s.faces,{position:a,normal:c}=i,h=r.length/3;for(let o=0;o<h;++o){const s=3*r[3*o],i=3*r[3*o+1],p=3*r[3*o+2],h=n(f,a[s],a[s+1],a[s+2]),g=n(l,a[i],a[i+1],a[i+2]),u=n(m,a[p],a[p+1],a[p+2]),x=t(g,g,h),v=t(u,u,h),R=e(x,x,v);c[s]+=R[0],c[s+1]+=R[1],c[s+2]+=R[2],c[i]+=R[0],c[i+1]+=R[1],c[i+2]+=R[2],c[p]+=R[0],c[p+1]+=R[1],c[p+2]+=R[2]}for(let t=0;t<c.length;t+=3)n(p,c[t],c[t+1],c[t+2]),o(p,p),c[t]=p[0],c[t+1]=p[1],c[t+2]=p[2]}function c(n){const{vertexSpace:t}=n;if(t.isRelative)return t.getOriginPoint(n.spatialReference);const{extent:e}=n,o=e.xmax-e.width/2,s=e.ymax-e.height/2,r=e.zmin;return new i({x:o,y:s,z:r,spatialReference:e.spatialReference})}const f=s(),l=s(),m=s(),p=s();export{c as computeOrigin,r as smoothNormals};
5
+ import{s as n,f as t,b as e,n as o}from"../../../../../chunks/vec3.js";import{c as s}from"../../../../../chunks/vec3f64.js";import i from"../../../../Point.js";function r(n,t){if(n.components)for(const e of n.components)e.faces&&"smooth"===e.shading&&a(e,t)}function a(s,i){null==i.normal&&(i.normal=new Float32Array(i.position.length));const r=s.faces,{position:a,normal:c}=i,h=r.length/3;for(let o=0;o<h;++o){const s=3*r[3*o],i=3*r[3*o+1],p=3*r[3*o+2],h=n(f,a[s],a[s+1],a[s+2]),u=n(l,a[i],a[i+1],a[i+2]),g=n(m,a[p],a[p+1],a[p+2]),x=t(u,u,h),v=t(g,g,h),R=e(x,x,v);c[s]+=R[0],c[s+1]+=R[1],c[s+2]+=R[2],c[i]+=R[0],c[i+1]+=R[1],c[i+2]+=R[2],c[p]+=R[0],c[p+1]+=R[1],c[p+2]+=R[2]}for(let t=0;t<c.length;t+=3)n(p,c[t],c[t+1],c[t+2]),o(p,p),c[t]=p[0],c[t+1]=p[1],c[t+2]=p[2]}function c(n){const{vertexSpace:t}=n;if(t.isRelative)return t.getOriginPoint(n.spatialReference);const{extent:e}=n,o=e.xmax-e.width/2,s=e.ymax-e.height/2,r=e.zmin;return new i({x:o,y:s,z:r,spatialReference:e.spatialReference})}const f=s(),l=s(),m=s(),p=s();export{c as computeOrigin,r as smoothNormals};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../../../core/Logger.js";import{getOrCreateMapValue as t}from"../../../../../core/MapUtils.js";import{deg2rad as s}from"../../../../../core/mathUtils.js";import{j as r}from"../../../../../chunks/quat.js";import{I as i,a}from"../../../../../chunks/quatf64.js";import{k as o}from"../../../../../chunks/vec3.js";import{Z as n,a as l,O as c}from"../../../../../chunks/vec3f64.js";import h from"../../../MeshGeoreferencedRelativeVertexSpace.js";import u from"../../../MeshGeoreferencedVertexSpace.js";import f from"../../../MeshMaterialMetallicRoughness.js";import{ungeoreferenceByTransform as m}from"../../georeference.js";import{Buffer as p}from"./buffer.js";import{computeOrigin as d,smoothNormals as g}from"./geometry.js";import{BufferOutputType as _,ImageOutputType as x,AttributeType as T,TargetBuffer as R,AlphaMode as A}from"./types.js";import{imageToArrayBuffer as b,imageToDataURI as E}from"./imageutils.js";import{isEncodedMeshTexture as M}from"../../../../../views/3d/glTF/internal/resourceUtils.js";import{DataType as O,TextureWrapMode as w}from"../../../../../views/webgl/enums.js";const I=e.getLogger("gltf");class N{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===_.GLB||t.options.imageOutputType===x.GLB;s&&(t.binChunkBuffer=new p(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;o(s,n)||(t.translation=l(s));const h=e.rotation;r(h,i)||(t.rotation=a(h));const u=e.scale;o(u,c)||(t.scale=l(u)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const f=this.gltf.nodes.length;return this.gltf.nodes.push(t),f}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras,r=s.options.bufferOutputType===_.GLB;let i;i=r?s.binChunkBuffer:new p(this.gltf),this.params.origin||(this.params.origin=d(e));const{ignoreLocalTransform:a}=this.params,o=a?null:e.transform,{vertexSpace:n}=e,c=a?n.isRelative?new h({origin:l(n.origin)}):new u:n,f=m(e.vertexAttributes,c,o,this.params.origin,{geographic:this.params.geographic,unit:"meters"});g(e,f),this._flipYZAxis(f);const x=i.addBufferView(O.FLOAT,T.VEC3,R.ARRAY_BUFFER);let A,b,E,M;f.normal&&(A=i.addBufferView(O.FLOAT,T.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(b=i.addBufferView(O.FLOAT,T.VEC2,R.ARRAY_BUFFER)),f.tangent&&(E=i.addBufferView(O.FLOAT,T.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(M=i.addBufferView(O.UNSIGNED_BYTE,T.VEC4,R.ARRAY_BUFFER)),x.startAccessor("POSITION"),A&&A.startAccessor("NORMAL"),b&&b.startAccessor("TEXCOORD_0"),E&&E.startAccessor("TANGENT"),M&&M.startAccessor("COLOR_0");const w=f.position.length/3,{position:I,normal:N,tangent:B}=f,{color:C,uv:v}=e.vertexAttributes;for(let l=0;l<w;++l)x.push(I[3*l]),x.push(I[3*l+1]),x.push(I[3*l+2]),A&&null!=N&&(A.push(N[3*l]),A.push(N[3*l+1]),A.push(N[3*l+2])),b&&null!=v&&(b.push(v[2*l]),b.push(v[2*l+1])),E&&null!=B&&(E.push(B[4*l]),E.push(B[4*l+1]),E.push(B[4*l+2]),E.push(B[4*l+3])),M&&null!=C&&(M.push(C[4*l]),M.push(C[4*l+1]),M.push(C[4*l+2]),M.push(C[4*l+3]));const S=x.endAccessor(),L=this._addAccessor(x.index,S);let F,y,k,V,j;if(A){const e=A.endAccessor();F=this._addAccessor(A.index,e)}if(b){const e=b.endAccessor();y=this._addAccessor(b.index,e)}if(E){const e=E.endAccessor();k=this._addAccessor(E.index,e)}if(M){const e=M.endAccessor();V=this._addAccessor(M.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(j=i.addBufferView(O.UNSIGNED_INT,T.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(j,e.components,t,L,F,y,k,V)):this._addMeshVertexNonIndexed(e.components,t,L,F,y,k,V),x.finalize(),A&&A.finalize(),b&&b.finalize(),E&&E.finalize(),j&&j.finalize(),M&&M.finalize(),r||i.finalize();const D=this.gltf.meshes.length;return this.gltf.meshes.push(t),D}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(null!=e)for(let s=1,r=2;s<e.length;s+=t,r+=t){const t=e[s],i=e[r];e[s]=i,e[r]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=A.MASK;break;case"auto":case"blend":s.alphaMode=A.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const r=e=>e**2.1,i=e=>{const t=e.toRgba();return t[0]=r(t[0]/255),t[1]=r(t[1]/255),t[2]=r(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),null!=e.colorTexture&&(s.pbrMetallicRoughness.baseColorTexture=this._createTextureInfo(e.colorTexture,e.colorTextureTransform)),null!=e.normalTexture&&(s.normalTexture=this._createTextureInfo(e.normalTexture,e.normalTextureTransform)),e instanceof f){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}null!=e.occlusionTexture&&(s.occlusionTexture=this._createTextureInfo(e.occlusionTexture,e.occlusionTextureTransform)),null!=e.metallicRoughnessTexture&&(s.pbrMetallicRoughness.metallicRoughnessTexture=this._createTextureInfo(e.metallicRoughnessTexture,e.metallicRoughnessTextureTransform)),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,I.warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const a=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),a}_createTextureInfo(e,t){const r={index:this._addTexture(e)};return t?(r.extensions||(r.extensions={}),r.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:s(t.rotation)},r):r}_addTexture(e){const s=this.gltf.textures??[];return this.gltf.textures=s,t(this._textureMap,e,(()=>{const t={sampler:this._addSampler(e),source:this._addImage(e)},r=s.length;return s.push(t),r}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const r=this.gltf.extras;switch(r.options.imageOutputType){case x.GLB:{const e=r.binChunkBuffer.addBufferView(O.UNSIGNED_BYTE,T.SCALAR);if(M(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const r=b(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(r).then((()=>{e.finalize()}))}s.bufferView=e.index;break}case x.DataURI:if(M(t)){I.warnOnce("Image export for basis compressed textures not available.");break}s.uri=E(t);break;default:if(M(t)){I.warnOnce("Image export for basis compressed textures not available.");break}r.promises.push(b(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const r=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,r),r}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=w.REPEAT,s=w.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=w.CLAMP_TO_EDGE,s=w.CLAMP_TO_EDGE;break;case"mirror":t=w.MIRRORED_REPEAT,s=w.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=w.CLAMP_TO_EDGE;break;case"mirror":s=w.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=w.CLAMP_TO_EDGE;break;case"mirror":t=w.MIRRORED_REPEAT}}const r={wrapS:t,wrapT:s};for(let a=0;a<this.gltf.samplers.length;++a)if(JSON.stringify(r)===JSON.stringify(this.gltf.samplers[a]))return a;const i=this.gltf.samplers.length;return this.gltf.samplers.push(r),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const r=this.gltf.accessors.length;return this.gltf.accessors.push(s),r}_addMeshVertexIndexed(e,t,s,r,i,a,o,n){for(const l of t){e.startAccessor("INDICES");for(let s=0;s<l.faces.length;++s)e.push(l.faces[s]);const t=e.endAccessor(),c={attributes:{POSITION:r},indices:this._addAccessor(e.index,t),material:this._addMaterial(l.material)};i&&"flat"!==l.shading&&(c.attributes.NORMAL=i),a&&(c.attributes.TEXCOORD_0=a),o&&"flat"!==l.shading&&(c.attributes.TANGENT=o),n&&(c.attributes.COLOR_0=n),s.primitives.push(c)}}_addMeshVertexNonIndexed(e,t,s,r,i,a,o){const n={attributes:{POSITION:s}};r&&(n.attributes.NORMAL=r),i&&(n.attributes.TEXCOORD_0=i),a&&(n.attributes.TANGENT=a),o&&(n.attributes.COLOR_0=o),e&&(n.material=this._addMaterial(e[0].material)),t.primitives.push(n)}}export{N as GLTF};
5
+ import e from"../../../../../core/Logger.js";import{getOrCreateMapValue as t}from"../../../../../core/MapUtils.js";import{deg2rad as s}from"../../../../../core/mathUtils.js";import{j as r}from"../../../../../chunks/quat.js";import{I as i,b as a}from"../../../../../chunks/quatf64.js";import{h as o}from"../../../../../chunks/vec3.js";import{Z as n,g as l,O as c}from"../../../../../chunks/vec3f64.js";import h from"../../../MeshGeoreferencedRelativeVertexSpace.js";import u from"../../../MeshGeoreferencedVertexSpace.js";import f from"../../../MeshMaterialMetallicRoughness.js";import{ungeoreferenceByTransform as m}from"../../georeference.js";import{Buffer as p}from"./buffer.js";import{computeOrigin as d,smoothNormals as g}from"./geometry.js";import{BufferOutputType as _,ImageOutputType as x,AttributeType as T,TargetBuffer as R,AlphaMode as A}from"./types.js";import{imageToArrayBuffer as b,imageToDataURI as E}from"./imageutils.js";import{isEncodedMeshTexture as M}from"../../../../../views/3d/glTF/internal/resourceUtils.js";import{DataType as O,TextureWrapMode as w}from"../../../../../views/webgl/enums.js";const I=e.getLogger("gltf");class N{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===_.GLB||t.options.imageOutputType===x.GLB;s&&(t.binChunkBuffer=new p(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;o(s,n)||(t.translation=l(s));const h=e.rotation;r(h,i)||(t.rotation=a(h));const u=e.scale;o(u,c)||(t.scale=l(u)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const f=this.gltf.nodes.length;return this.gltf.nodes.push(t),f}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras,r=s.options.bufferOutputType===_.GLB;let i;i=r?s.binChunkBuffer:new p(this.gltf),this.params.origin||(this.params.origin=d(e));const{ignoreLocalTransform:a}=this.params,o=a?null:e.transform,{vertexSpace:n}=e,c=a?n.isRelative?new h({origin:l(n.origin)}):new u:n,f=m(e.vertexAttributes,c,o,this.params.origin,{geographic:this.params.geographic,unit:"meters"});g(e,f),this._flipYZAxis(f);const x=i.addBufferView(O.FLOAT,T.VEC3,R.ARRAY_BUFFER);let A,b,E,M;f.normal&&(A=i.addBufferView(O.FLOAT,T.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(b=i.addBufferView(O.FLOAT,T.VEC2,R.ARRAY_BUFFER)),f.tangent&&(E=i.addBufferView(O.FLOAT,T.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(M=i.addBufferView(O.UNSIGNED_BYTE,T.VEC4,R.ARRAY_BUFFER)),x.startAccessor("POSITION"),A&&A.startAccessor("NORMAL"),b&&b.startAccessor("TEXCOORD_0"),E&&E.startAccessor("TANGENT"),M&&M.startAccessor("COLOR_0");const w=f.position.length/3,{position:I,normal:N,tangent:B}=f,{color:C,uv:v}=e.vertexAttributes;for(let l=0;l<w;++l)x.push(I[3*l]),x.push(I[3*l+1]),x.push(I[3*l+2]),A&&null!=N&&(A.push(N[3*l]),A.push(N[3*l+1]),A.push(N[3*l+2])),b&&null!=v&&(b.push(v[2*l]),b.push(v[2*l+1])),E&&null!=B&&(E.push(B[4*l]),E.push(B[4*l+1]),E.push(B[4*l+2]),E.push(B[4*l+3])),M&&null!=C&&(M.push(C[4*l]),M.push(C[4*l+1]),M.push(C[4*l+2]),M.push(C[4*l+3]));const S=x.endAccessor(),L=this._addAccessor(x.index,S);let F,y,V,k,j;if(A){const e=A.endAccessor();F=this._addAccessor(A.index,e)}if(b){const e=b.endAccessor();y=this._addAccessor(b.index,e)}if(E){const e=E.endAccessor();V=this._addAccessor(E.index,e)}if(M){const e=M.endAccessor();k=this._addAccessor(M.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(j=i.addBufferView(O.UNSIGNED_INT,T.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(j,e.components,t,L,F,y,V,k)):this._addMeshVertexNonIndexed(e.components,t,L,F,y,V,k),x.finalize(),A&&A.finalize(),b&&b.finalize(),E&&E.finalize(),j&&j.finalize(),M&&M.finalize(),r||i.finalize();const D=this.gltf.meshes.length;return this.gltf.meshes.push(t),D}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(null!=e)for(let s=1,r=2;s<e.length;s+=t,r+=t){const t=e[s],i=e[r];e[s]=i,e[r]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=A.MASK;break;case"auto":case"blend":s.alphaMode=A.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const r=e=>e**2.1,i=e=>{const t=e.toRgba();return t[0]=r(t[0]/255),t[1]=r(t[1]/255),t[2]=r(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),null!=e.colorTexture&&(s.pbrMetallicRoughness.baseColorTexture=this._createTextureInfo(e.colorTexture,e.colorTextureTransform)),null!=e.normalTexture&&(s.normalTexture=this._createTextureInfo(e.normalTexture,e.normalTextureTransform)),e instanceof f){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}null!=e.occlusionTexture&&(s.occlusionTexture=this._createTextureInfo(e.occlusionTexture,e.occlusionTextureTransform)),null!=e.metallicRoughnessTexture&&(s.pbrMetallicRoughness.metallicRoughnessTexture=this._createTextureInfo(e.metallicRoughnessTexture,e.metallicRoughnessTextureTransform)),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,I.warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const a=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),a}_createTextureInfo(e,t){const r={index:this._addTexture(e)};return t?(r.extensions||(r.extensions={}),r.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:s(t.rotation)},r):r}_addTexture(e){const s=this.gltf.textures??[];return this.gltf.textures=s,t(this._textureMap,e,(()=>{const t={sampler:this._addSampler(e),source:this._addImage(e)},r=s.length;return s.push(t),r}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const r=this.gltf.extras;switch(r.options.imageOutputType){case x.GLB:{const e=r.binChunkBuffer.addBufferView(O.UNSIGNED_BYTE,T.SCALAR);if(M(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const r=b(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(r).then((()=>{e.finalize()}))}s.bufferView=e.index;break}case x.DataURI:if(M(t)){I.warnOnce("Image export for basis compressed textures not available.");break}s.uri=E(t);break;default:if(M(t)){I.warnOnce("Image export for basis compressed textures not available.");break}r.promises.push(b(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const r=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,r),r}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=w.REPEAT,s=w.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=w.CLAMP_TO_EDGE,s=w.CLAMP_TO_EDGE;break;case"mirror":t=w.MIRRORED_REPEAT,s=w.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=w.CLAMP_TO_EDGE;break;case"mirror":s=w.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=w.CLAMP_TO_EDGE;break;case"mirror":t=w.MIRRORED_REPEAT}}const r={wrapS:t,wrapT:s};for(let a=0;a<this.gltf.samplers.length;++a)if(JSON.stringify(r)===JSON.stringify(this.gltf.samplers[a]))return a;const i=this.gltf.samplers.length;return this.gltf.samplers.push(r),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const r=this.gltf.accessors.length;return this.gltf.accessors.push(s),r}_addMeshVertexIndexed(e,t,s,r,i,a,o,n){for(const l of t){e.startAccessor("INDICES");for(let s=0;s<l.faces.length;++s)e.push(l.faces[s]);const t=e.endAccessor(),c={attributes:{POSITION:r},indices:this._addAccessor(e.index,t),material:this._addMaterial(l.material)};i&&"flat"!==l.shading&&(c.attributes.NORMAL=i),a&&(c.attributes.TEXCOORD_0=a),o&&"flat"!==l.shading&&(c.attributes.TANGENT=o),n&&(c.attributes.COLOR_0=n),s.primitives.push(c)}}_addMeshVertexNonIndexed(e,t,s,r,i,a,o){const n={attributes:{POSITION:s}};r&&(n.attributes.NORMAL=r),i&&(n.attributes.TEXCOORD_0=i),a&&(n.attributes.TANGENT=a),o&&(n.attributes.COLOR_0=o),e&&(n.material=this._addMaterial(e[0].material)),t.primitives.push(n)}}export{N as GLTF};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{k as s}from"../../../../../chunks/quat.js";import{b as t}from"../../../../../chunks/quatf64.js";import{c as o,a,O as r}from"../../../../../chunks/vec3f64.js";class i{constructor(s){this.mesh=s,this.name="",this.translation=o(),this.rotation=t(),this.scale=a(r),this._nodes=[]}addNode(s){if(this._nodes.includes(s))throw new Error("Node already added");this._nodes.push(s)}forEachNode(s){this._nodes.forEach(s)}set rotationAngles(t){s(this.rotation,t[0],t[1],t[2])}}export{i as Node};
5
+ import{k as s}from"../../../../../chunks/quat.js";import{a as t}from"../../../../../chunks/quatf64.js";import{c as o,g as a,O as r}from"../../../../../chunks/vec3f64.js";class i{constructor(s){this.mesh=s,this.name="",this.translation=o(),this.rotation=t(),this.scale=a(r),this._nodes=[]}addNode(s){if(this._nodes.includes(s))throw new Error("Node already added");this._nodes.push(s)}forEachNode(s){this._nodes.forEach(s)}set rotationAngles(t){s(this.rotation,t[0],t[1],t[2])}}export{i as Node};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{getMetersPerCartesianUnitForSR as n,convertUnit as t}from"../../../core/unitUtils.js";import{c as e}from"../../../chunks/mat3f64.js";import{j as r,m as o,a as i,k as a}from"../../../chunks/mat4.js";import{I as s,c as l}from"../../../chunks/mat4f64.js";import{k as c}from"../../../chunks/vec3.js";import{Z as u,f}from"../../../chunks/vec3f64.js";import{d as p}from"../../../chunks/mat3.js";import{canProjectWithoutEngine as m}from"../../projection.js";import{getSphericalPCPF as g}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as h}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as j}from"../../projection/projectBuffer.js";import{newDoubleArray as R,copyInto as y}from"../DoubleArray.js";import w from"../MeshGeoreferencedRelativeVertexSpace.js";import A from"../MeshGeoreferencedVertexSpace.js";import x from"../MeshLocalVertexSpace.js";import v from"../MeshTransform.js";import{t as F,a as k}from"../../../chunks/vec32.js";import{isGeographicMesh as S}from"./geographicUtils.js";import{transformNormal as d,transformTangent as M,projectFromPCPF as z,projectNormalFromPCPF as G,projectTangentFromPCPF as T,projectToPCPF as b,projectNormalToPCPF as O,projectTangentToPCPF as P}from"./projection.js";function U(n,t,e){return S(t.spatialReference,e)?L(n,t,e):I(n,t,e)}function V(n,t,e,r){const{position:o,normal:i,tangent:a}=n;if(!t.isRelative)return{position:o,normal:i,tangent:a};const l=e?.localMatrix??s;return U({position:F(new Float64Array(o.length),o,l),normal:null!=i?d(i,new Float32Array(i.length),l):null,tangent:null!=a?M(a,new Float32Array(a.length),l):null},t.getOriginPoint(r),{geographic:!t.isGeoreferenced})}function q(n,t,e){if(e?.useTransform){const{position:r,normal:o,tangent:i}=n,{x:a,y:s,z:l}=t,c=f(a,s,l??0);return{vertexAttributes:{position:r,normal:o,tangent:i},vertexSpace:e.geographic??1?new x({origin:c}):new w({origin:c}),transform:new v}}return{vertexAttributes:U(n,t,e),vertexSpace:new A,transform:null}}function B(n,t,e){return S(t.spatialReference,e)?K(n,t,e):J(n,t,e)}function D(n,t,e,r,o){if(!t.isRelative)return B(n,r,o);const{spatialReference:i}=r,a=V(n,t,e,i);return r.equals(t.getOriginPoint(i))?J(a,r,o):B(a,r,o)}function E({positions:n,transform:t,vertexSpace:e,inSpatialReference:i,outSpatialReference:a,outPositions:l,local:f}){const p=e.isRelative?e.origin:u,w=e.isRelative?t?.localMatrix??s:s;if(e.isGeoreferenced){const t=l??R(n.length);if(r(w,s)?y(t,n):F(t,n,w),!c(p,u)){const[n,e,r]=p;for(let o=0;o<t.length;o+=3)t[o]+=n,t[o+1]+=e,t[o+2]+=r}return j(t,i,0,t,a,0,t.length/3),t}const A=g(i),x=!f&&m(i,A)?A:i;h(i,p,$,x),o($,$,w);const v=l??R(n.length);return F(v,n,$),j(v,x,0,v,a,0,v.length/3),v}function I(n,t,e){const r=new Float64Array(n.position.length),o=n.position,i=t.x,a=t.y,s=t.z??0,l=Y(e?e.unit:null,t.spatialReference);for(let c=0;c<o.length;c+=3)r[c]=o[c]*l+i,r[c+1]=o[c+1]*l+a,r[c+2]=o[c+2]*l+s;return{position:r,normal:n.normal,tangent:n.tangent}}function L(n,t,e){const r=t.spatialReference,o=N(t,e,$),i=new Float64Array(n.position.length),a=Z(n.position,o,r,i),s=p(nn,o);return{position:a,normal:C(a,i,n.normal,s,r),tangent:H(a,i,n.tangent,s,r)}}function Z(n,t,e,r){F(r,n,t);const o=new Float64Array(n.length);return z(r,o,e)}function C(n,t,e,r,o){if(null==e)return null;const i=new Float32Array(e.length);return k(i,e,r),G(i,n,t,o,i),i}function H(n,t,e,r,o){if(null==e)return null;const i=new Float32Array(e.length);k(i,e,r,4);for(let a=3;a<i.length;a+=4)i[a]=e[a];return T(i,n,t,o,i),i}function J(n,t,e){const r=new Float64Array(n.position.length),o=n.position,i=t.x,a=t.y,s=t.z??0,l=Y(e?e.unit:null,t.spatialReference);for(let c=0;c<o.length;c+=3)r[c]=(o[c]-i)/l,r[c+1]=(o[c+1]-a)/l,r[c+2]=(o[c+2]-s)/l;return{position:r,normal:n.normal,tangent:n.tangent}}function K(n,t,e){const r=t.spatialReference;N(t,e,$);const o=i(_,$),a=new Float64Array(n.position.length),s=Q(n.position,r,o,a),l=p(nn,o);return{position:s,normal:W(n.normal,n.position,a,r,l),tangent:X(n.tangent,n.position,a,r,l)}}function N(n,t,e){h(n.spatialReference,[n.x,n.y,n.z??0],e,g(n.spatialReference));const r=Y(t?t.unit:null,n.spatialReference);return a(e,e,[r,r,r]),e}function Q(n,t,e,r){const o=b(n,t,r),i=new Float64Array(o.length);return F(i,o,e),i}function W(n,t,e,r,o){if(null==n)return null;const i=O(n,t,e,r,new Float32Array(n.length));return k(i,i,o),i}function X(n,t,e,r,o){if(null==n)return null;const i=P(n,t,e,r,new Float32Array(n.length));return k(i,i,o,4),i}function Y(e,r){if(null==e)return 1;const o=n(r);return 1/t(o,"meters",e)}const $=l(),_=l(),nn=e();export{U as georeference,V as georeferenceApplyTransform,q as georeferenceByTransform,E as project,B as ungeoreference,D as ungeoreferenceByTransform};
5
+ import{getMetersPerCartesianUnitForSR as n,convertUnit as t}from"../../../core/unitUtils.js";import{a as e}from"../../../chunks/mat3f64.js";import{a as r,m as o,i,b as a}from"../../../chunks/mat4.js";import{I as s,a as l}from"../../../chunks/mat4f64.js";import{h as c}from"../../../chunks/vec3.js";import{Z as u,f}from"../../../chunks/vec3f64.js";import{n as p}from"../../../chunks/mat3.js";import{canProjectWithoutEngine as m}from"../../projection.js";import{getSphericalPCPF as g}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as h}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as j}from"../../projection/projectBuffer.js";import{newDoubleArray as R,copyInto as y}from"../DoubleArray.js";import w from"../MeshGeoreferencedRelativeVertexSpace.js";import A from"../MeshGeoreferencedVertexSpace.js";import x from"../MeshLocalVertexSpace.js";import v from"../MeshTransform.js";import{t as F,a as S}from"../../../chunks/vec32.js";import{isGeographicMesh as k}from"./geographicUtils.js";import{transformNormal as d,transformTangent as M,projectFromPCPF as b,projectNormalFromPCPF as z,projectTangentFromPCPF as G,projectToPCPF as T,projectNormalToPCPF as O,projectTangentToPCPF as P}from"./projection.js";function U(n,t,e){return k(t.spatialReference,e)?L(n,t,e):I(n,t,e)}function V(n,t,e,r){const{position:o,normal:i,tangent:a}=n;if(!t.isRelative)return{position:o,normal:i,tangent:a};const l=e?.localMatrix??s;return U({position:F(new Float64Array(o.length),o,l),normal:null!=i?d(i,new Float32Array(i.length),l):null,tangent:null!=a?M(a,new Float32Array(a.length),l):null},t.getOriginPoint(r),{geographic:!t.isGeoreferenced})}function q(n,t,e){if(e?.useTransform){const{position:r,normal:o,tangent:i}=n,{x:a,y:s,z:l}=t,c=f(a,s,l??0);return{vertexAttributes:{position:r,normal:o,tangent:i},vertexSpace:e.geographic??1?new x({origin:c}):new w({origin:c}),transform:new v}}return{vertexAttributes:U(n,t,e),vertexSpace:new A,transform:null}}function B(n,t,e){return k(t.spatialReference,e)?K(n,t,e):J(n,t,e)}function D(n,t,e,r,o){if(!t.isRelative)return B(n,r,o);const{spatialReference:i}=r,a=V(n,t,e,i);return r.equals(t.getOriginPoint(i))?J(a,r,o):B(a,r,o)}function E({positions:n,transform:t,vertexSpace:e,inSpatialReference:i,outSpatialReference:a,outPositions:l,local:f}){const p=e.isRelative?e.origin:u,w=e.isRelative?t?.localMatrix??s:s;if(e.isGeoreferenced){const t=l??R(n.length);if(r(w,s)?y(t,n):F(t,n,w),!c(p,u)){const[n,e,r]=p;for(let o=0;o<t.length;o+=3)t[o]+=n,t[o+1]+=e,t[o+2]+=r}return j(t,i,0,t,a,0,t.length/3),t}const A=g(i),x=!f&&m(i,A)?A:i;h(i,p,$,x),o($,$,w);const v=l??R(n.length);return F(v,n,$),j(v,x,0,v,a,0,v.length/3),v}function I(n,t,e){const r=new Float64Array(n.position.length),o=n.position,i=t.x,a=t.y,s=t.z??0,l=Y(e?e.unit:null,t.spatialReference);for(let c=0;c<o.length;c+=3)r[c]=o[c]*l+i,r[c+1]=o[c+1]*l+a,r[c+2]=o[c+2]*l+s;return{position:r,normal:n.normal,tangent:n.tangent}}function L(n,t,e){const r=t.spatialReference,o=N(t,e,$),i=new Float64Array(n.position.length),a=Z(n.position,o,r,i),s=p(nn,o);return{position:a,normal:C(a,i,n.normal,s,r),tangent:H(a,i,n.tangent,s,r)}}function Z(n,t,e,r){F(r,n,t);const o=new Float64Array(n.length);return b(r,o,e)}function C(n,t,e,r,o){if(null==e)return null;const i=new Float32Array(e.length);return S(i,e,r),z(i,n,t,o,i),i}function H(n,t,e,r,o){if(null==e)return null;const i=new Float32Array(e.length);S(i,e,r,4);for(let a=3;a<i.length;a+=4)i[a]=e[a];return G(i,n,t,o,i),i}function J(n,t,e){const r=new Float64Array(n.position.length),o=n.position,i=t.x,a=t.y,s=t.z??0,l=Y(e?e.unit:null,t.spatialReference);for(let c=0;c<o.length;c+=3)r[c]=(o[c]-i)/l,r[c+1]=(o[c+1]-a)/l,r[c+2]=(o[c+2]-s)/l;return{position:r,normal:n.normal,tangent:n.tangent}}function K(n,t,e){const r=t.spatialReference;N(t,e,$);const o=i(_,$),a=new Float64Array(n.position.length),s=Q(n.position,r,o,a),l=p(nn,o);return{position:s,normal:W(n.normal,n.position,a,r,l),tangent:X(n.tangent,n.position,a,r,l)}}function N(n,t,e){h(n.spatialReference,[n.x,n.y,n.z??0],e,g(n.spatialReference));const r=Y(t?t.unit:null,n.spatialReference);return a(e,e,[r,r,r]),e}function Q(n,t,e,r){const o=T(n,t,r),i=new Float64Array(o.length);return F(i,o,e),i}function W(n,t,e,r,o){if(null==n)return null;const i=O(n,t,e,r,new Float32Array(n.length));return S(i,i,o),i}function X(n,t,e,r,o){if(null==n)return null;const i=P(n,t,e,r,new Float32Array(n.length));return S(i,i,o,4),i}function Y(e,r){if(null==e)return 1;const o=n(r);return 1/t(o,"meters",e)}const $=l(),_=l(),nn=e();export{U as georeference,V as georeferenceApplyTransform,q as georeferenceByTransform,E as project,B as ungeoreference,D as ungeoreferenceByTransform};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../Color.js";import t from"../../../request.js";import{getOrCreateMapValue as r}from"../../../core/MapUtils.js";import{hasScaling as o,rad2deg as n}from"../../../core/mathUtils.js";import{d as s}from"../../../chunks/mat3.js";import{c as a}from"../../../chunks/mat3f64.js";import{f as l}from"../../../chunks/vec3f64.js";import{f as i}from"../../../chunks/vec4f64.js";import u from"../MeshComponent.js";import c from"../MeshMaterialMetallicRoughness.js";import f from"../MeshTexture.js";import m from"../MeshTextureTransform.js";import{MeshVertexAttributes as p}from"../MeshVertexAttributes.js";import{BufferViewVec4f as d,BufferViewVec4u8 as g,BufferViewVec4u16 as x,BufferViewVec3u8 as T,BufferViewVec3f as h,BufferViewVec3u16 as v,BufferViewVec3f64 as w,BufferViewVec2f as j}from"../buffer/BufferView.js";import{c as b,b as y,d as M,e as C}from"../../../chunks/vec32.js";import{a as A,n as R,b as E}from"../../../chunks/vec42.js";import{createBuffer as k}from"../buffer/utils.js";import{georeferenceByTransform as B}from"./georeference.js";import{DefaultLoadingContext as F}from"../../../views/3d/glTF/DefaultLoadingContext.js";import{loadGLTF as $}from"../../../views/3d/glTF/loader.js";import{convertPrimitiveToTriangles as S}from"../../../views/3d/glTF/internal/indexUtils.js";import{isEncodedMeshTexture as O}from"../../../views/3d/glTF/internal/resourceUtils.js";import{COLOR_GAMMA as U}from"../../../views/3d/webgl-engine/materials/DefaultMaterial_COLOR_GAMMA.js";import{TextureWrapMode as D}from"../../../views/webgl/enums.js";import{f as L,a as _}from"../../../chunks/vec33.js";import{f as q,a as I}from"../../../chunks/vec43.js";import{a as P,f as V}from"../../../chunks/vec22.js";async function N(e,t,r){const o={...r,useTransform:r?.useTransform??!0},n=new F(z(o)),s=(await $(n,t,o,!0)).model,a=s.lods.shift(),l=new Map,i=new Map;s.textures.forEach(((e,t)=>l.set(t,H(e)))),s.materials.forEach(((e,t)=>i.set(t,J(e,l))));const u=Q(a);for(const p of u.parts)W(u,p,i);const{position:c,normal:f,tangent:m,color:d,texCoord0:g}=u.vertexAttributes,x={position:c.typedBuffer,normal:null!=f?f.typedBuffer:null,tangent:null!=m?m.typedBuffer:null,uv:null!=g?g.typedBuffer:null,color:null!=d?d.typedBuffer:null},T=B(x,e,o);return{transform:T.transform,vertexSpace:T.vertexSpace,components:u.components,spatialReference:e.spatialReference,vertexAttributes:new p({position:T.vertexAttributes.position,normal:T.vertexAttributes.normal,tangent:T.vertexAttributes.tangent,color:x.color,uv:x.uv})}}function z(e){const r=e?.resolveFile,o=e?.requestFile;return r||o?{busy:!1,request:async(e,n,s)=>{const a=r?.(e)??e;if(o){const e=await o(a,n,s?.signal);if(void 0!==e)return e}const l="image"===n?"image":"binary"===n?"array-buffer":"json";return(await t(a,{responseType:l,signal:null!=s?s.signal:null})).data}}:null}function G(e,t){if(null==e)return"-";const o=e.typedBuffer;return`${r(t,o.buffer,(()=>t.size))}/${o.byteOffset}/${o.byteLength}`}function K(e){return null!=e?e.toString():"-"}function Q(e){let t=0;const has={color:!1,tangent:!1,normal:!1,texCoord0:!1},o=new Map,n=new Map,s=[];for(const a of e.parts){const{attributes:{position:e,normal:l,color:i,tangent:u,texCoord0:c}}=a,f=`\n ${G(e,o)}/\n ${G(l,o)}/\n ${G(i,o)}/\n ${G(u,o)}/\n ${G(c,o)}/\n ${K(a.transform)}\n `;let m=!1;const p=r(n,f,(()=>(m=!0,{start:t,length:e.count})));m&&(t+=e.count),l&&(has.normal=!0),i&&(has.color=!0),u&&(has.tangent=!0),c&&(has.texCoord0=!0),s.push({gltf:a,writeVertices:m,region:p})}return{vertexAttributes:{position:k(w,t),normal:has.normal?k(h,t):null,tangent:has.tangent?k(d,t):null,color:has.color?k(g,t):null,texCoord0:has.texCoord0?k(j,t):null},parts:s,components:[]}}function H(e){return new f({data:(O(e.data),e.data),wrap:Z(e.parameters.wrap)})}function J(t,r){const o=new e(re(t.color,t.opacity)),s=t.emissiveFactor?new e(oe(t.emissiveFactor)):null,a=e=>e?new m({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:n(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new c({color:o,colorTexture:r.get(t.textureColor),normalTexture:r.get(t.textureNormal),emissiveColor:s,emissiveTexture:r.get(t.textureEmissive),occlusionTexture:r.get(t.textureOcclusion),alphaMode:Y(t.alphaMode),alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,metallic:t.metallicFactor,roughness:t.roughnessFactor,metallicRoughnessTexture:r.get(t.textureMetallicRoughness),colorTextureTransform:a(t.colorTextureTransform),normalTextureTransform:a(t.normalTextureTransform),occlusionTextureTransform:a(t.occlusionTextureTransform),emissiveTextureTransform:a(t.emissiveTextureTransform),metallicRoughnessTextureTransform:a(t.metallicRoughnessTextureTransform)})}function W(e,t,r){t.writeVertices&&X(e,t);const{indices:o,attributes:n,primitiveType:s,material:a}=t.gltf;let l=S(o||n.position.count,s);const i=t.region.start;if(i){const e=new Uint32Array(l);for(let t=0;t<l.length;t++)e[t]+=i;l=e}e.components.push(new u({faces:l,material:r.get(a),shading:n.normal?"source":"flat",trustSourceNormals:!0}))}function X(e,t){const{position:r,normal:n,tangent:l,color:i,texCoord0:u}=e.vertexAttributes,c=t.region.start,{attributes:f,transform:m}=t.gltf,p=f.position.count;if(b(r.slice(c,p),f.position,m),null!=f.normal&&null!=n){const e=s(a(),m),t=n.slice(c,p);y(t,f.normal,e),o(e)&&M(t,t)}else null!=n&&L(n,0,0,1,{dstIndex:c,count:p});if(null!=f.tangent&&null!=l){const e=s(a(),m),t=l.slice(c,p);A(t,f.tangent,e),o(e)&&R(t,t)}else null!=l&&q(l,0,0,1,1,{dstIndex:c,count:p});if(null!=f.texCoord0&&null!=u?P(u.slice(c,p),f.texCoord0):null!=u&&V(u,0,0,{dstIndex:c,count:p}),null!=f.color&&null!=i){const e=f.color,t=i.slice(c,p);if(4===e.elementCount)e instanceof d?E(t,e,255):e instanceof g?I(t,e):e instanceof x&&E(t,e,1/256);else{q(t,255,255,255,255);const r=T.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof h?C(r,e,255):e instanceof T?_(r,e):e instanceof v&&C(r,e,1/256)}}else null!=i&&q(i.slice(c,p),255,255,255,255)}function Y(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function Z(e){return{horizontal:ee(e.s),vertical:ee(e.t)}}function ee(e){switch(e){case D.CLAMP_TO_EDGE:return"clamp";case D.MIRRORED_REPEAT:return"mirror";case D.REPEAT:return"repeat"}}function te(e){return e**(1/U)*255}function re(e,t){return i(te(e[0]),te(e[1]),te(e[2]),t)}function oe(e){return l(te(e[0]),te(e[1]),te(e[2]))}export{N as loadGLTFMesh};
5
+ import e from"../../../Color.js";import t from"../../../request.js";import{getOrCreateMapValue as r}from"../../../core/MapUtils.js";import{hasScaling as o,rad2deg as n}from"../../../core/mathUtils.js";import{n as s}from"../../../chunks/mat3.js";import{a}from"../../../chunks/mat3f64.js";import{f as l}from"../../../chunks/vec3f64.js";import{a as i}from"../../../chunks/vec4f64.js";import u from"../MeshComponent.js";import c from"../MeshMaterialMetallicRoughness.js";import f from"../MeshTexture.js";import m from"../MeshTextureTransform.js";import{MeshVertexAttributes as p}from"../MeshVertexAttributes.js";import{BufferViewVec4f as d,BufferViewVec4u8 as g,BufferViewVec4u16 as x,BufferViewVec3u8 as T,BufferViewVec3f as h,BufferViewVec3u16 as v,BufferViewVec3f64 as w,BufferViewVec2f as j}from"../buffer/BufferView.js";import{c as b,b as y,d as M,e as C}from"../../../chunks/vec32.js";import{a as A,n as R,b as E}from"../../../chunks/vec42.js";import{createBuffer as k}from"../buffer/utils.js";import{georeferenceByTransform as B}from"./georeference.js";import{DefaultLoadingContext as F}from"../../../views/3d/glTF/DefaultLoadingContext.js";import{loadGLTF as $}from"../../../views/3d/glTF/loader.js";import{convertPrimitiveToTriangles as S}from"../../../views/3d/glTF/internal/indexUtils.js";import{isEncodedMeshTexture as O}from"../../../views/3d/glTF/internal/resourceUtils.js";import{COLOR_GAMMA as U}from"../../../views/3d/webgl-engine/materials/DefaultMaterial_COLOR_GAMMA.js";import{TextureWrapMode as D}from"../../../views/webgl/enums.js";import{f as L,a as _}from"../../../chunks/vec33.js";import{f as q,a as I}from"../../../chunks/vec43.js";import{a as P,f as V}from"../../../chunks/vec22.js";async function N(e,t,r){const o={...r,useTransform:r?.useTransform??!0},n=new F(z(o)),s=(await $(n,t,o,!0)).model,a=s.lods.shift(),l=new Map,i=new Map;s.textures.forEach(((e,t)=>l.set(t,H(e)))),s.materials.forEach(((e,t)=>i.set(t,J(e,l))));const u=Q(a);for(const p of u.parts)W(u,p,i);const{position:c,normal:f,tangent:m,color:d,texCoord0:g}=u.vertexAttributes,x={position:c.typedBuffer,normal:null!=f?f.typedBuffer:null,tangent:null!=m?m.typedBuffer:null,uv:null!=g?g.typedBuffer:null,color:null!=d?d.typedBuffer:null},T=B(x,e,o);return{transform:T.transform,vertexSpace:T.vertexSpace,components:u.components,spatialReference:e.spatialReference,vertexAttributes:new p({position:T.vertexAttributes.position,normal:T.vertexAttributes.normal,tangent:T.vertexAttributes.tangent,color:x.color,uv:x.uv})}}function z(e){const r=e?.resolveFile,o=e?.requestFile;return r||o?{busy:!1,request:async(e,n,s)=>{const a=r?.(e)??e;if(o){const e=await o(a,n,s?.signal);if(void 0!==e)return e}const l="image"===n?"image":"binary"===n?"array-buffer":"json";return(await t(a,{responseType:l,signal:null!=s?s.signal:null})).data}}:null}function G(e,t){if(null==e)return"-";const o=e.typedBuffer;return`${r(t,o.buffer,(()=>t.size))}/${o.byteOffset}/${o.byteLength}`}function K(e){return null!=e?e.toString():"-"}function Q(e){let t=0;const has={color:!1,tangent:!1,normal:!1,texCoord0:!1},o=new Map,n=new Map,s=[];for(const a of e.parts){const{attributes:{position:e,normal:l,color:i,tangent:u,texCoord0:c}}=a,f=`\n ${G(e,o)}/\n ${G(l,o)}/\n ${G(i,o)}/\n ${G(u,o)}/\n ${G(c,o)}/\n ${K(a.transform)}\n `;let m=!1;const p=r(n,f,(()=>(m=!0,{start:t,length:e.count})));m&&(t+=e.count),l&&(has.normal=!0),i&&(has.color=!0),u&&(has.tangent=!0),c&&(has.texCoord0=!0),s.push({gltf:a,writeVertices:m,region:p})}return{vertexAttributes:{position:k(w,t),normal:has.normal?k(h,t):null,tangent:has.tangent?k(d,t):null,color:has.color?k(g,t):null,texCoord0:has.texCoord0?k(j,t):null},parts:s,components:[]}}function H(e){return new f({data:(O(e.data),e.data),wrap:Z(e.parameters.wrap)})}function J(t,r){const o=new e(re(t.color,t.opacity)),s=t.emissiveFactor?new e(oe(t.emissiveFactor)):null,a=e=>e?new m({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:n(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new c({color:o,colorTexture:r.get(t.textureColor),normalTexture:r.get(t.textureNormal),emissiveColor:s,emissiveTexture:r.get(t.textureEmissive),occlusionTexture:r.get(t.textureOcclusion),alphaMode:Y(t.alphaMode),alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,metallic:t.metallicFactor,roughness:t.roughnessFactor,metallicRoughnessTexture:r.get(t.textureMetallicRoughness),colorTextureTransform:a(t.colorTextureTransform),normalTextureTransform:a(t.normalTextureTransform),occlusionTextureTransform:a(t.occlusionTextureTransform),emissiveTextureTransform:a(t.emissiveTextureTransform),metallicRoughnessTextureTransform:a(t.metallicRoughnessTextureTransform)})}function W(e,t,r){t.writeVertices&&X(e,t);const{indices:o,attributes:n,primitiveType:s,material:a}=t.gltf;let l=S(o||n.position.count,s);const i=t.region.start;if(i){const e=new Uint32Array(l);for(let t=0;t<l.length;t++)e[t]+=i;l=e}e.components.push(new u({faces:l,material:r.get(a),shading:n.normal?"source":"flat",trustSourceNormals:!0}))}function X(e,t){const{position:r,normal:n,tangent:l,color:i,texCoord0:u}=e.vertexAttributes,c=t.region.start,{attributes:f,transform:m}=t.gltf,p=f.position.count;if(b(r.slice(c,p),f.position,m),null!=f.normal&&null!=n){const e=s(a(),m),t=n.slice(c,p);y(t,f.normal,e),o(e)&&M(t,t)}else null!=n&&L(n,0,0,1,{dstIndex:c,count:p});if(null!=f.tangent&&null!=l){const e=s(a(),m),t=l.slice(c,p);A(t,f.tangent,e),o(e)&&R(t,t)}else null!=l&&q(l,0,0,1,1,{dstIndex:c,count:p});if(null!=f.texCoord0&&null!=u?P(u.slice(c,p),f.texCoord0):null!=u&&V(u,0,0,{dstIndex:c,count:p}),null!=f.color&&null!=i){const e=f.color,t=i.slice(c,p);if(4===e.elementCount)e instanceof d?E(t,e,255):e instanceof g?I(t,e):e instanceof x&&E(t,e,1/256);else{q(t,255,255,255,255);const r=T.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof h?C(r,e,255):e instanceof T?_(r,e):e instanceof v&&C(r,e,1/256)}}else null!=i&&q(i.slice(c,p),255,255,255,255)}function Y(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function Z(e){return{horizontal:ee(e.s),vertical:ee(e.t)}}function ee(e){switch(e){case D.CLAMP_TO_EDGE:return"clamp";case D.MIRRORED_REPEAT:return"mirror";case D.REPEAT:return"repeat"}}function te(e){return e**(1/U)*255}function re(e,t){return i(te(e[0]),te(e[1]),te(e[2]),t)}function oe(e){return l(te(e[0]),te(e[1]),te(e[2]))}export{N as loadGLTFMesh};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../core/Logger.js";import{G as t,e as n,b as r}from"../../../chunks/vec3.js";import{c as o}from"../../../chunks/vec3f64.js";import i from"../MeshComponent.js";import s from"../MeshTransform.js";import{MeshVertexAttributes as l}from"../MeshVertexAttributes.js";import{georeferenceApplyTransform as a,ungeoreference as c}from"./georeference.js";const f=e.getLogger("esri.geometry.support.triangleMeshMerge");function u(e,t){if(0===e.length)return f.error("merge()","Must specify one more geometries to merge"),null;const n=e[0].spatialReference;for(const c of e){if(!c.spatialReference.equals(n))return f.error("merge()","Geometries must all be in the same spatial reference"),null;if(!c.loaded)return f.error("merge()","Geometries must all be loaded before merging"),null}const r=p(e);if(null==r)return null;const o=w(e),i=[],s={position:0,uv:0,normal:0,tangent:0,color:0},l=new Map,a=new Map;for(const c of e){const e=m(c,r);if(t&&t.reuseMaterials&&c.components)for(const t of c.components)t.material&&l.set(t.material,t.material);h(c,s,l,a,i),b("position",e,o,s,0),b("normal",e,o,s,0),b("tangent",e,o,s,0),b("uv",c.vertexAttributes,o,s,0),b("color",c.vertexAttributes,o,s,255)}return{vertexAttributes:o,components:i,vertexSpace:r.vertexSpace,transform:r.transform,spatialReference:n}}function p(e){let i=null,l=null,a=!0,c=!0,u=null;const p=o();let m=0;for(const r of e){const{vertexSpace:e,transform:o}=r;if(null==l&&(l=e,l.isRelative&&(u=l.origin)),l.type!==e.type)return f.error("merge()",`Inconsistent mesh vertex space for provided geometries. One was ${l.type} while another is ${e.type}. Unable to merge geometries.`),null;if(null==i||null!=o&&o.equals(i)||(a=!1),null!=o&&null==i&&(i=o),e.isRelative){const{origin:r}=e;u&&!t(r,u)&&(c=!1),m++,n(p,p,e.origin)}}if(null==l)throw new Error;const g=l.clone();if(!g.isRelative)return{transform:null,vertexSpace:g,rebake:!1};if(c&&a)return{transform:i?.clone(),vertexSpace:g,rebake:!1};const v=r(p,p,1/m);return g.origin=v,{transform:new s,vertexSpace:g,rebake:!0}}function m(e,t){if(!t.rebake)return e.vertexAttributes;const n=e.vertexSpace,r=t.vertexSpace;if(n.type!==r.type)throw new Error;const o=a(e.vertexAttributes,n,e.transform,e.spatialReference);return c(o,r.getOriginPoint(e.spatialReference),{geographic:!r.isGeoreferenced})}function g(e,t){return t.normal>0&&!e.vertexAttributes.normal}function v(e,t,n){g(e,t)&&"source"===n.shading&&(n.shading="flat")}function h(e,t,n,r,o){if(e.components)for(const i of e.components){const s=i.cloneWithDeduplication(n,r),l=t.position/3;if(s.faces)for(let e=0;e<s.faces.length;e++)s.faces[e]+=l;else{s.faces=new Uint32Array(e.vertexAttributes.position.length/3);for(let e=0;e<s.faces.length;e++)s.faces[e]=e+l}v(e,t,s),o.push(s)}else if(e.vertexAttributes&&e.vertexAttributes.position){const n=e.vertexAttributes.position.length/3,r=new Uint32Array(n),s=t.position/3;for(let e=0;e<n;e++)r[e]=e+s;const l=new i({faces:r});v(e,t,l),o.push(l)}}function b(e,t,n,r,o){if(!t)return;const i=t.position;if(!i)return;const s=t[e],l=n[e];if(null==s){let t=r[e];const n=y[e];if(null!=l){for(let e=0;e<i.length;e+=3)for(let r=0;r<n;r++)l[t++]=o;r[e]=t}}else null!=l&&null!=s&&(x(s,0,l,r[e],s.length),r[e]+=s.length)}function x(e,t,n,r,o){for(let i=0;i<o;i++)n[r++]=e[t++];return n}function A(e){let t=!1,n=!1,r=!1,o=!1;for(const i of e){const e=i.vertexAttributes;if(e&&e.position&&(e.uv&&(t=!0),e.normal&&(n=!0),e.tangent&&(o=!0),e.color&&(r=!0),n&&t&&r&&o))break}return{normal:n,uv:t,color:r,tangent:o}}function w(e){let t=0,n=0,r=0,o=0,i=0;const s=A(e);for(const l of e){const e=l.vertexAttributes;e&&e.position&&(t+=e.position.length,s.uv&&(n+=e.position.length/y.position*y.uv),s.normal&&(r+=e.position.length/y.position*y.normal),s.color&&(o+=e.position.length/y.position*y.color),s.tangent&&(i+=e.position.length/y.position*y.tangent))}return new l({position:new Float64Array(t),uv:n?new Float32Array(n):null,normal:r?new Float32Array(r):null,tangent:i?new Float32Array(i):null,color:o?new Uint8Array(o):null})}const y={position:3,normal:3,tangent:4,uv:2,color:4};export{u as merge};
5
+ import e from"../../../core/Logger.js";import{G as t,g as n,i as r}from"../../../chunks/vec3.js";import{c as o}from"../../../chunks/vec3f64.js";import i from"../MeshComponent.js";import s from"../MeshTransform.js";import{MeshVertexAttributes as l}from"../MeshVertexAttributes.js";import{georeferenceApplyTransform as a,ungeoreference as c}from"./georeference.js";const f=e.getLogger("esri.geometry.support.triangleMeshMerge");function u(e,t){if(0===e.length)return f.error("merge()","Must specify one more geometries to merge"),null;const n=e[0].spatialReference;for(const c of e){if(!c.spatialReference.equals(n))return f.error("merge()","Geometries must all be in the same spatial reference"),null;if(!c.loaded)return f.error("merge()","Geometries must all be loaded before merging"),null}const r=p(e);if(null==r)return null;const o=w(e),i=[],s={position:0,uv:0,normal:0,tangent:0,color:0},l=new Map,a=new Map;for(const c of e){const e=m(c,r);if(t&&t.reuseMaterials&&c.components)for(const t of c.components)t.material&&l.set(t.material,t.material);h(c,s,l,a,i),x("position",e,o,s,0),x("normal",e,o,s,0),x("tangent",e,o,s,0),x("uv",c.vertexAttributes,o,s,0),x("color",c.vertexAttributes,o,s,255)}return{vertexAttributes:o,components:i,vertexSpace:r.vertexSpace,transform:r.transform,spatialReference:n}}function p(e){let i=null,l=null,a=!0,c=!0,u=null;const p=o();let m=0;for(const r of e){const{vertexSpace:e,transform:o}=r;if(null==l&&(l=e,l.isRelative&&(u=l.origin)),l.type!==e.type)return f.error("merge()",`Inconsistent mesh vertex space for provided geometries. One was ${l.type} while another is ${e.type}. Unable to merge geometries.`),null;if(null==i||null!=o&&o.equals(i)||(a=!1),null!=o&&null==i&&(i=o),e.isRelative){const{origin:r}=e;u&&!t(r,u)&&(c=!1),m++,n(p,p,e.origin)}}if(null==l)throw new Error;const g=l.clone();if(!g.isRelative)return{transform:null,vertexSpace:g,rebake:!1};if(c&&a)return{transform:i?.clone(),vertexSpace:g,rebake:!1};const v=r(p,p,1/m);return g.origin=v,{transform:new s,vertexSpace:g,rebake:!0}}function m(e,t){if(!t.rebake)return e.vertexAttributes;const n=e.vertexSpace,r=t.vertexSpace;if(n.type!==r.type)throw new Error;const o=a(e.vertexAttributes,n,e.transform,e.spatialReference);return c(o,r.getOriginPoint(e.spatialReference),{geographic:!r.isGeoreferenced})}function g(e,t){return t.normal>0&&!e.vertexAttributes.normal}function v(e,t,n){g(e,t)&&"source"===n.shading&&(n.shading="flat")}function h(e,t,n,r,o){if(e.components)for(const i of e.components){const s=i.cloneWithDeduplication(n,r),l=t.position/3;if(s.faces)for(let e=0;e<s.faces.length;e++)s.faces[e]+=l;else{s.faces=new Uint32Array(e.vertexAttributes.position.length/3);for(let e=0;e<s.faces.length;e++)s.faces[e]=e+l}v(e,t,s),o.push(s)}else if(e.vertexAttributes&&e.vertexAttributes.position){const n=e.vertexAttributes.position.length/3,r=new Uint32Array(n),s=t.position/3;for(let e=0;e<n;e++)r[e]=e+s;const l=new i({faces:r});v(e,t,l),o.push(l)}}function x(e,t,n,r,o){if(!t)return;const i=t.position;if(!i)return;const s=t[e],l=n[e];if(null==s){let t=r[e];const n=y[e];if(null!=l){for(let e=0;e<i.length;e+=3)for(let r=0;r<n;r++)l[t++]=o;r[e]=t}}else null!=l&&null!=s&&(b(s,0,l,r[e],s.length),r[e]+=s.length)}function b(e,t,n,r,o){for(let i=0;i<o;i++)n[r++]=e[t++];return n}function A(e){let t=!1,n=!1,r=!1,o=!1;for(const i of e){const e=i.vertexAttributes;if(e&&e.position&&(e.uv&&(t=!0),e.normal&&(n=!0),e.tangent&&(o=!0),e.color&&(r=!0),n&&t&&r&&o))break}return{normal:n,uv:t,color:r,tangent:o}}function w(e){let t=0,n=0,r=0,o=0,i=0;const s=A(e);for(const l of e){const e=l.vertexAttributes;e&&e.position&&(t+=e.position.length,s.uv&&(n+=e.position.length/y.position*y.uv),s.normal&&(r+=e.position.length/y.position*y.normal),s.color&&(o+=e.position.length/y.position*y.color),s.tangent&&(i+=e.position.length/y.position*y.tangent))}return new l({position:new Float64Array(t),uv:n?new Float32Array(n):null,normal:r?new Float32Array(r):null,tangent:i?new Float32Array(i):null,color:o?new Uint8Array(o):null})}const y={position:3,normal:3,tangent:4,uv:2,color:4};export{u as merge};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{f as t}from"../../../chunks/mat3.js";import{c as e}from"../../../chunks/mat3f64.js";import{c as n}from"../../../chunks/mat4f64.js";import{e as r,t as o}from"../../../chunks/vec3.js";import{c as i}from"../../../chunks/vec3f64.js";import{getSphericalPCPF as s}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as l}from"../../projection/computeTranslationToOriginAndRotation.js";import{validateGeographicFlag as u,isGeographicMesh as a}from"./geographicUtils.js";import{projectToPCPF as c,projectNormalToPCPF as f,projectTangentToPCPF as m,projectFromPCPF as p,projectNormalFromPCPF as g,projectTangentFromPCPF as h}from"./projection.js";const v="esri.geometry.support.meshUtils.offset";function x(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const{vertexSpace:r}=t;if(r.isRelative)u(r,v,n),A(r,e);else{a(t.spatialReference,n)?j(t,e):b(t,e)}}function A(t,e){const n=t.origin;t.origin=r(i(),n,e)}function j(e,n){const r=e.spatialReference,i=e.vertexAttributes.position,u=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,v=new Float64Array(i.length),x=null!=u?new Float32Array(u.length):null,A=null!=a?new Float32Array(a.length):null,j=e.extent.center,b=y;l(r,[j.x,j.y,j.z],R,s(r)),t(d,R),o(b,n,d),c(i,r,v),null!=u&&null!=x&&f(u,i,v,r,x),null!=a&&null!=A&&m(a,i,v,r,A),k(v,b),p(v,i,r),null!=u&&null!=x&&g(x,i,v,r,u),null!=a&&null!=A&&h(A,i,v,r,a),e.vertexAttributesChanged()}function b(t,e){k(t.vertexAttributes.position,e),t.vertexAttributesChanged()}function k(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const y=i(),R=n(),d=e();export{x as offset};
5
+ import{f as t}from"../../../chunks/mat3.js";import{a as e}from"../../../chunks/mat3f64.js";import{a as n}from"../../../chunks/mat4f64.js";import{g as r,t as o}from"../../../chunks/vec3.js";import{c as i}from"../../../chunks/vec3f64.js";import{getSphericalPCPF as s}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as l}from"../../projection/computeTranslationToOriginAndRotation.js";import{validateGeographicFlag as a,isGeographicMesh as u}from"./geographicUtils.js";import{projectToPCPF as f,projectNormalToPCPF as c,projectTangentToPCPF as m,projectFromPCPF as p,projectNormalFromPCPF as g,projectTangentFromPCPF as h}from"./projection.js";const v="esri.geometry.support.meshUtils.offset";function x(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const{vertexSpace:r}=t;if(r.isRelative)a(r,v,n),A(r,e);else{u(t.spatialReference,n)?j(t,e):b(t,e)}}function A(t,e){const n=t.origin;t.origin=r(i(),n,e)}function j(e,n){const r=e.spatialReference,i=e.vertexAttributes.position,a=e.vertexAttributes.normal,u=e.vertexAttributes.tangent,v=new Float64Array(i.length),x=null!=a?new Float32Array(a.length):null,A=null!=u?new Float32Array(u.length):null,j=e.extent.center,b=y;l(r,[j.x,j.y,j.z],R,s(r)),t(d,R),o(b,n,d),f(i,r,v),null!=a&&null!=x&&c(a,i,v,r,x),null!=u&&null!=A&&m(u,i,v,r,A),k(v,b),p(v,i,r),null!=a&&null!=x&&g(x,i,v,r,a),null!=u&&null!=A&&h(A,i,v,r,u),e.vertexAttributesChanged()}function b(t,e){k(t.vertexAttributes.position,e),t.vertexAttributesChanged()}function k(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const y=i(),R=n(),d=e();export{x as offset};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{c as t}from"../../../chunks/mat3f64.js";import{t as e,n}from"../../../chunks/vec3.js";import{c as r}from"../../../chunks/vec3f64.js";import o from"../MeshComponent.js";import{MeshVertexAttributes as s}from"../MeshVertexAttributes.js";import{georeferenceByTransform as a}from"./georeference.js";function i(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=y,r=4*t.length,o=new Float64Array(3*r),s=new Float32Array(3*r),a=new Float32Array(2*r),i=new Uint32Array(2*t.length*3);let l=0,c=0,f=0,u=0;for(let h=0;h<t.length;h++){const r=t[h],p=l/3;for(const t of e)i[u++]=p+t;const w=r.corners;for(let t=0;t<4;t++){const e=w[t];let i=0;a[f++]=.25*n[t][0]+r.uvOrigin[0],a[f++]=r.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==r.axis[t]?(o[l++]=.5*r.axis[t],s[c++]=r.axis[t]):(o[l++]=.5*e[i++],s[c++]=0)}}return{position:o,normal:s,uv:a,faces:i}}function l(t,e){const n=t.components[0],r=n.faces,s=d[e],a=6*s,i=new Array(6),l=new Array(r.length-6);let c=0,f=0;for(let o=0;o<r.length;o++)o>=a&&o<a+6?i[c++]=r[o]:l[f++]=r[o];if(null!=t.vertexAttributes.uv){const e=new Float32Array(t.vertexAttributes.uv),n=4*s*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new o({faces:i,material:n.material}),new o({faces:l})],t}function c(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),s=new Float32Array(3*r),a=new Float32Array(2*r),i=new Uint32Array(3*((e-1)*n*2));let l=0,c=0,f=0,u=0;for(let h=0;h<=e;h++){const t=h/e*Math.PI+.5*Math.PI,r=Math.cos(t),p=Math.sin(t);M[2]=p;const w=0===h||h===e,m=w?n-1:n;for(let v=0;v<=m;v++){const t=v/m*2*Math.PI;M[0]=-Math.sin(t)*r,M[1]=Math.cos(t)*r;for(let e=0;e<3;e++)o[l]=.5*M[e],s[l]=M[e],++l;a[c++]=(v+(w?.5:0))/n,a[c++]=h/e,0!==h&&v!==n&&(h!==e&&(i[f++]=u,i[f++]=u+1,i[f++]=u-n),1!==h&&(i[f++]=u,i[f++]=u-n,i[f++]=u-n-1)),u++}}return{position:o,normal:s,uv:a,faces:i}}function f(t=0){const e=5,n=Math.round(16*2**t),r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),s=new Float32Array(3*r),a=new Float32Array(2*r),i=new Uint32Array(3*(4*n));let l=0,c=0,f=0,u=0,h=0;for(let p=0;p<=e;p++){const t=0===p||p===e,r=p<=1||p>=e-1,w=2===p||4===p,m=t?n-1:n;for(let v=0;v<=m;v++){const g=v/m*2*Math.PI,A=t?0:.5;M[0]=A*Math.sin(g),M[1]=A*-Math.cos(g),M[2]=p<=2?.5:-.5;for(let t=0;t<3;t++)o[l++]=M[t],s[c++]=r?2===t?p<=1?1:-1:0:2===t?0:M[t]/A;a[f++]=(v+(t?.5:0))/n,a[f++]=p<=1?1*p/3:p<=3?1*(p-2)/3+1/3:1*(p-4)/3+2/3,w||0===p||v===n||(p!==e&&(i[u++]=h,i[u++]=h+1,i[u++]=h-n),1!==p&&(i[u++]=h,i[u++]=h-n,i[u++]=h-n-1)),h++}}return{position:o,normal:s,uv:a,faces:i}}function u(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}function h(t){const e=v.facingAxisOrderSwap[t],n=v.position,r=v.normal,o=new Float64Array(n.length),s=new Float32Array(r.length);let a=0;for(let i=0;i<4;i++){const t=a;for(let i=0;i<3;i++){const l=e[i],c=Math.abs(l)-1,f=l>=0?1:-1;o[a]=n[t+c]*f,s[a]=r[t+c]*f,a++}}return{position:o,normal:s,uv:new Float32Array(v.uv),faces:new Uint32Array(v.faces),isPlane:!0}}const p=1,w=2,m=3,v={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[m,p,w],west:[-m,-p,w],north:[-p,m,w],south:[p,-m,w],up:[p,w,m],down:[p,-w,-m]}};function g(t,e,n){t.isPlane||A(t),x(t,n?.size);const{vertexAttributes:r,vertexSpace:i,transform:l}=a(t,e,n);return{vertexAttributes:new s({...r,uv:t.uv}),vertexSpace:i,transform:l,components:[new o({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}function A(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5}function x(t,r){if(null==r)return;const o="number"==typeof r?[r,r,r]:[null!=r.width?r.width:1,null!=r.depth?r.depth:1,null!=r.height?r.height:1];F[0]=o[0],F[4]=o[1],F[8]=o[2];for(let n=0;n<t.position.length;n+=3){for(let e=0;e<3;e++)M[e]=t.position[n+e];e(M,M,F);for(let e=0;e<3;e++)t.position[n+e]=M[e]}if(o[0]!==o[1]||o[1]!==o[2]){F[0]=1/o[0],F[4]=1/o[1],F[8]=1/o[2];for(let r=0;r<t.normal.length;r+=3){for(let e=0;e<3;e++)M[e]=t.normal[r+e];e(M,M,F),n(M,M);for(let e=0;e<3;e++)t.normal[r+e]=M[e]}}}const y={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},d={south:0,east:1,north:2,west:3,up:4,down:5},M=r(),F=t();export{d as boxFaceOrder,u as convertPlaneSizeParameter,g as convertUnitGeometry,i as createUnitSizeBox,f as createUnitSizeCylinder,h as createUnitSizePlane,c as createUnitSizeSphere,l as extractSingleFaceOfBox};
5
+ import{a as t}from"../../../chunks/mat3f64.js";import{t as e,n}from"../../../chunks/vec3.js";import{c as r}from"../../../chunks/vec3f64.js";import o from"../MeshComponent.js";import{MeshVertexAttributes as s}from"../MeshVertexAttributes.js";import{georeferenceByTransform as a}from"./georeference.js";function i(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=y,r=4*t.length,o=new Float64Array(3*r),s=new Float32Array(3*r),a=new Float32Array(2*r),i=new Uint32Array(2*t.length*3);let l=0,c=0,f=0,u=0;for(let h=0;h<t.length;h++){const r=t[h],p=l/3;for(const t of e)i[u++]=p+t;const w=r.corners;for(let t=0;t<4;t++){const e=w[t];let i=0;a[f++]=.25*n[t][0]+r.uvOrigin[0],a[f++]=r.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==r.axis[t]?(o[l++]=.5*r.axis[t],s[c++]=r.axis[t]):(o[l++]=.5*e[i++],s[c++]=0)}}return{position:o,normal:s,uv:a,faces:i}}function l(t,e){const n=t.components[0],r=n.faces,s=d[e],a=6*s,i=new Array(6),l=new Array(r.length-6);let c=0,f=0;for(let o=0;o<r.length;o++)o>=a&&o<a+6?i[c++]=r[o]:l[f++]=r[o];if(null!=t.vertexAttributes.uv){const e=new Float32Array(t.vertexAttributes.uv),n=4*s*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new o({faces:i,material:n.material}),new o({faces:l})],t}function c(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),s=new Float32Array(3*r),a=new Float32Array(2*r),i=new Uint32Array(3*((e-1)*n*2));let l=0,c=0,f=0,u=0;for(let h=0;h<=e;h++){const t=h/e*Math.PI+.5*Math.PI,r=Math.cos(t),p=Math.sin(t);M[2]=p;const w=0===h||h===e,m=w?n-1:n;for(let v=0;v<=m;v++){const t=v/m*2*Math.PI;M[0]=-Math.sin(t)*r,M[1]=Math.cos(t)*r;for(let e=0;e<3;e++)o[l]=.5*M[e],s[l]=M[e],++l;a[c++]=(v+(w?.5:0))/n,a[c++]=h/e,0!==h&&v!==n&&(h!==e&&(i[f++]=u,i[f++]=u+1,i[f++]=u-n),1!==h&&(i[f++]=u,i[f++]=u-n,i[f++]=u-n-1)),u++}}return{position:o,normal:s,uv:a,faces:i}}function f(t=0){const e=5,n=Math.round(16*2**t),r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),s=new Float32Array(3*r),a=new Float32Array(2*r),i=new Uint32Array(3*(4*n));let l=0,c=0,f=0,u=0,h=0;for(let p=0;p<=e;p++){const t=0===p||p===e,r=p<=1||p>=e-1,w=2===p||4===p,m=t?n-1:n;for(let v=0;v<=m;v++){const g=v/m*2*Math.PI,A=t?0:.5;M[0]=A*Math.sin(g),M[1]=A*-Math.cos(g),M[2]=p<=2?.5:-.5;for(let t=0;t<3;t++)o[l++]=M[t],s[c++]=r?2===t?p<=1?1:-1:0:2===t?0:M[t]/A;a[f++]=(v+(t?.5:0))/n,a[f++]=p<=1?1*p/3:p<=3?1*(p-2)/3+1/3:1*(p-4)/3+2/3,w||0===p||v===n||(p!==e&&(i[u++]=h,i[u++]=h+1,i[u++]=h-n),1!==p&&(i[u++]=h,i[u++]=h-n,i[u++]=h-n-1)),h++}}return{position:o,normal:s,uv:a,faces:i}}function u(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}function h(t){const e=v.facingAxisOrderSwap[t],n=v.position,r=v.normal,o=new Float64Array(n.length),s=new Float32Array(r.length);let a=0;for(let i=0;i<4;i++){const t=a;for(let i=0;i<3;i++){const l=e[i],c=Math.abs(l)-1,f=l>=0?1:-1;o[a]=n[t+c]*f,s[a]=r[t+c]*f,a++}}return{position:o,normal:s,uv:new Float32Array(v.uv),faces:new Uint32Array(v.faces),isPlane:!0}}const p=1,w=2,m=3,v={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[m,p,w],west:[-m,-p,w],north:[-p,m,w],south:[p,-m,w],up:[p,w,m],down:[p,-w,-m]}};function g(t,e,n){t.isPlane||A(t),x(t,n?.size);const{vertexAttributes:r,vertexSpace:i,transform:l}=a(t,e,n);return{vertexAttributes:new s({...r,uv:t.uv}),vertexSpace:i,transform:l,components:[new o({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}function A(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5}function x(t,r){if(null==r)return;const o="number"==typeof r?[r,r,r]:[null!=r.width?r.width:1,null!=r.depth?r.depth:1,null!=r.height?r.height:1];F[0]=o[0],F[4]=o[1],F[8]=o[2];for(let n=0;n<t.position.length;n+=3){for(let e=0;e<3;e++)M[e]=t.position[n+e];e(M,M,F);for(let e=0;e<3;e++)t.position[n+e]=M[e]}if(o[0]!==o[1]||o[1]!==o[2]){F[0]=1/o[0],F[4]=1/o[1],F[8]=1/o[2];for(let r=0;r<t.normal.length;r+=3){for(let e=0;e<3;e++)M[e]=t.normal[r+e];e(M,M,F),n(M,M);for(let e=0;e<3;e++)t.normal[r+e]=M[e]}}}const y={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},d={south:0,east:1,north:2,west:3,up:4,down:5},M=r(),F=t();export{d as boxFaceOrder,u as convertPlaneSizeParameter,g as convertUnitGeometry,i as createUnitSizeBox,f as createUnitSizeCylinder,h as createUnitSizePlane,c as createUnitSizeSphere,l as extractSingleFaceOfBox};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import r from"../../../core/Logger.js";import{d as e,i as o,f as t,t as n}from"../../../chunks/mat3.js";import{c as f}from"../../../chunks/mat3f64.js";import{c as a}from"../../../chunks/mat4f64.js";import{t as c,n as i}from"../../../chunks/vec3.js";import{c as s}from"../../../chunks/vec3f64.js";import{getSphericalPCPF as m}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as p}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as u}from"../../projection/projectBuffer.js";import{isCGCS2000 as y,isMars as P,isMoon as l}from"../spatialReferenceUtils.js";import{y2lat as T}from"../webMercatorUtils.js";import{BufferViewVec3f as F,BufferViewVec3f64 as d}from"../buffer/BufferView.js";import{a as A,n as C}from"../../../chunks/vec32.js";const g=r.getLogger("esri.geometry.support.meshUtils.normalProjection");function j(r,e,o,t,n){return k(t)?(V(U.TO_PCPF,F.fromTypedArray(r),d.fromTypedArray(e),d.fromTypedArray(o),t,F.fromTypedArray(n)),n):(g.error("Cannot convert spatial reference to PCPF"),n)}function _(r,e,o,t,n){return k(t)?(V(U.FROM_PCPF,F.fromTypedArray(r),d.fromTypedArray(e),d.fromTypedArray(o),t,F.fromTypedArray(n)),n):(g.error("Cannot convert to spatial reference from PCPF"),n)}function h(r,e,o){return u(r,e,0,o,m(e),0,r.length/3),o}function O(r,e,o){return u(r,m(o),0,e,o,0,r.length/3),e}function E(r,t,n){return e(N,n),A(t,r,N),o(N)||C(t,t),t}function M(r,t,n){if(e(N,n),A(t,r,N,4),o(N)||C(t,t,4),r!==t)for(let e=3;e<r.length;e+=4)t[e]=r[e];return t}function R(r,e,o,t,n){if(!k(t))return g.error("Cannot convert spatial reference to PCPF"),n;V(U.TO_PCPF,F.fromTypedArray(r,4*Float32Array.BYTES_PER_ELEMENT),d.fromTypedArray(e),d.fromTypedArray(o),t,F.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT));for(let f=3;f<r.length;f+=4)n[f]=r[f];return n}function v(r,e,o,t,n){if(!k(t))return g.error("Cannot convert to spatial reference from PCPF"),n;V(U.FROM_PCPF,F.fromTypedArray(r,16),d.fromTypedArray(e),d.fromTypedArray(o),t,F.fromTypedArray(n,16));for(let f=3;f<r.length;f+=4)n[f]=r[f];return n}function V(r,e,o,f,a,s){if(!e)return;const u=o.count,y=m(a);if(B(a))for(let i=0;i<u;i++)f.getVec(i,b),e.getVec(i,S),p(y,b,w,y),t(N,w),r===U.FROM_PCPF&&n(N,N),c(S,S,N),s.setVec(i,S);else for(let m=0;m<u;m++){f.getVec(m,b),e.getVec(m,S),p(y,b,w,y),t(N,w);const a=T(o.get(m,1));let u=Math.cos(a);r===U.TO_PCPF&&(u=1/u),N[0]*=u,N[1]*=u,N[2]*=u,N[3]*=u,N[4]*=u,N[5]*=u,r===U.FROM_PCPF&&n(N,N),c(S,S,N),i(S,S),s.setVec(m,S)}return s}function k(r){return B(r)||L(r)}function B(r){return r.isWGS84||y(r)||P(r)||l(r)}function L(r){return r.isWebMercator}var U;!function(r){r[r.TO_PCPF=0]="TO_PCPF",r[r.FROM_PCPF=1]="FROM_PCPF"}(U||(U={}));const b=s(),S=s(),w=a(),N=f();export{O as projectFromPCPF,_ as projectNormalFromPCPF,j as projectNormalToPCPF,v as projectTangentFromPCPF,R as projectTangentToPCPF,h as projectToPCPF,E as transformNormal,M as transformTangent};
5
+ import r from"../../../core/Logger.js";import{n as e,i as o,f as t,t as n}from"../../../chunks/mat3.js";import{a as f}from"../../../chunks/mat3f64.js";import{a}from"../../../chunks/mat4f64.js";import{t as i,n as s}from"../../../chunks/vec3.js";import{c}from"../../../chunks/vec3f64.js";import{getSphericalPCPF as m}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as p}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as u}from"../../projection/projectBuffer.js";import{isCGCS2000 as y,isMars as P,isMoon as l}from"../spatialReferenceUtils.js";import{y2lat as T}from"../webMercatorUtils.js";import{BufferViewVec3f as F,BufferViewVec3f64 as A}from"../buffer/BufferView.js";import{a as C,n as d}from"../../../chunks/vec32.js";const g=r.getLogger("esri.geometry.support.meshUtils.normalProjection");function j(r,e,o,t,n){return k(t)?(V(U.TO_PCPF,F.fromTypedArray(r),A.fromTypedArray(e),A.fromTypedArray(o),t,F.fromTypedArray(n)),n):(g.error("Cannot convert spatial reference to PCPF"),n)}function _(r,e,o,t,n){return k(t)?(V(U.FROM_PCPF,F.fromTypedArray(r),A.fromTypedArray(e),A.fromTypedArray(o),t,F.fromTypedArray(n)),n):(g.error("Cannot convert to spatial reference from PCPF"),n)}function h(r,e,o){return u(r,e,0,o,m(e),0,r.length/3),o}function O(r,e,o){return u(r,m(o),0,e,o,0,r.length/3),e}function E(r,t,n){return e(N,n),C(t,r,N),o(N)||d(t,t),t}function M(r,t,n){if(e(N,n),C(t,r,N,4),o(N)||d(t,t,4),r!==t)for(let e=3;e<r.length;e+=4)t[e]=r[e];return t}function R(r,e,o,t,n){if(!k(t))return g.error("Cannot convert spatial reference to PCPF"),n;V(U.TO_PCPF,F.fromTypedArray(r,4*Float32Array.BYTES_PER_ELEMENT),A.fromTypedArray(e),A.fromTypedArray(o),t,F.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT));for(let f=3;f<r.length;f+=4)n[f]=r[f];return n}function v(r,e,o,t,n){if(!k(t))return g.error("Cannot convert to spatial reference from PCPF"),n;V(U.FROM_PCPF,F.fromTypedArray(r,16),A.fromTypedArray(e),A.fromTypedArray(o),t,F.fromTypedArray(n,16));for(let f=3;f<r.length;f+=4)n[f]=r[f];return n}function V(r,e,o,f,a,c){if(!e)return;const u=o.count,y=m(a);if(B(a))for(let s=0;s<u;s++)f.getVec(s,b),e.getVec(s,S),p(y,b,w,y),t(N,w),r===U.FROM_PCPF&&n(N,N),i(S,S,N),c.setVec(s,S);else for(let m=0;m<u;m++){f.getVec(m,b),e.getVec(m,S),p(y,b,w,y),t(N,w);const a=T(o.get(m,1));let u=Math.cos(a);r===U.TO_PCPF&&(u=1/u),N[0]*=u,N[1]*=u,N[2]*=u,N[3]*=u,N[4]*=u,N[5]*=u,r===U.FROM_PCPF&&n(N,N),i(S,S,N),s(S,S),c.setVec(m,S)}return c}function k(r){return B(r)||L(r)}function B(r){return r.isWGS84||y(r)||P(r)||l(r)}function L(r){return r.isWebMercator}var U;!function(r){r[r.TO_PCPF=0]="TO_PCPF",r[r.FROM_PCPF=1]="FROM_PCPF"}(U||(U={}));const b=c(),S=c(),w=a(),N=f();export{O as projectFromPCPF,_ as projectNormalFromPCPF,j as projectNormalToPCPF,v as projectTangentFromPCPF,R as projectTangentToPCPF,h as projectToPCPF,E as transformNormal,M as transformTangent};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import t from"../../../core/Logger.js";import{f as e}from"../../../chunks/mat3.js";import{c as r}from"../../../chunks/mat3f64.js";import{d as o}from"../../../chunks/mat4.js";import{c as n}from"../../../chunks/mat4f64.js";import{s as i,g as s,e as a,t as l,m as c}from"../../../chunks/vec3.js";import{c as m,Z as p}from"../../../chunks/vec3f64.js";import{getSphericalPCPF as f}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as u}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectPointToVector as g}from"../../projection/projectPointToVector.js";import{create as j,compose as h,axis as v,angleRad as x}from"../axisAngleDegrees.js";import A from"../MeshTransform.js";import{validateGeographicFlag as b,isGeographicMesh as d}from"./geographicUtils.js";import{projectToPCPF as k,projectNormalToPCPF as y,projectTangentToPCPF as w,projectFromPCPF as R,projectNormalFromPCPF as F,projectTangentFromPCPF as L}from"./projection.js";const T="esri.geometry.support.meshUtils.rotate";function U(t,e,r){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const{spatialReference:o,vertexSpace:n}=t;if(n.isRelative){b(n,T,r);const o=r?.origin??t.origin;t.transform??=new A,z(t.transform,n,e,o)}else{const n=r?.origin??t.origin;d(o,r)?C(t,e,n):I(t,e,n)}}function z(t,e,r,o){const n=e.origin,l=i($,o.x,o.y,o.z??0),c=s($,l,n);t.applyLocalInverse(c,D),t.rotation=h(t.rotation,r,j()),t.applyLocalInverse(c,c),s(c,c,D),t.translation=a(m(),t.translation,c)}function C(t,r,o){const n=t.spatialReference,i=f(n),s=S;g(o,s,i)||g(t.origin,s,i);const a=t.vertexAttributes.position,c=t.vertexAttributes.normal,m=t.vertexAttributes.tangent,p=new Float64Array(a.length),j=null!=c?new Float32Array(c.length):null,h=null!=m?new Float32Array(m.length):null;u(i,s,M,i),e(O,M);const x=E;l(v(E),v(r),O),x[3]=r[3],k(a,n,p),null!=c&&null!=j&&y(c,a,p,n,j),null!=m&&null!=h&&w(m,a,p,n,h),P(p,x,3,s),R(p,a,n),null!=c&&null!=j&&(P(j,x,3),F(j,a,p,n,c)),null!=m&&null!=h&&(P(h,x,4),L(h,a,p,n,m)),t.vertexAttributesChanged()}function I(e,r,o){const n=S;if(!g(o,n,e.spatialReference)){const r=e.origin;n[0]=r.x,n[1]=r.y,n[2]=r.z,t.getLogger(T).error(`Failed to project specified origin (wkid:${o.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}P(e.vertexAttributes.position,r,3,n),P(e.vertexAttributes.normal,r,3),P(e.vertexAttributes.tangent,r,4),e.vertexAttributesChanged()}function P(t,e,r,n=p){if(null!=t){o(M,x(e),v(e));for(let e=0;e<t.length;e+=r){for(let r=0;r<3;r++)$[r]=t[e+r]-n[r];c($,$,M);for(let r=0;r<3;r++)t[e+r]=$[r]+n[r]}}}const $=m(),D=m(),E=j(),M=n(),O=r(),S=m();export{U as rotate};
5
+ import t from"../../../core/Logger.js";import{f as e}from"../../../chunks/mat3.js";import{a as r}from"../../../chunks/mat3f64.js";import{c as o}from"../../../chunks/mat4.js";import{a as n}from"../../../chunks/mat4f64.js";import{s as i,f as s,g as a,t as l,e as c}from"../../../chunks/vec3.js";import{c as f,Z as p}from"../../../chunks/vec3f64.js";import{getSphericalPCPF as m}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as u}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectPointToVector as g}from"../../projection/projectPointToVector.js";import{create as j,compose as h,axis as v,angleRad as x}from"../axisAngleDegrees.js";import A from"../MeshTransform.js";import{validateGeographicFlag as b,isGeographicMesh as d}from"./geographicUtils.js";import{projectToPCPF as k,projectNormalToPCPF as y,projectTangentToPCPF as w,projectFromPCPF as R,projectNormalFromPCPF as F,projectTangentFromPCPF as L}from"./projection.js";const T="esri.geometry.support.meshUtils.rotate";function U(t,e,r){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const{spatialReference:o,vertexSpace:n}=t;if(n.isRelative){b(n,T,r);const o=r?.origin??t.origin;t.transform??=new A,z(t.transform,n,e,o)}else{const n=r?.origin??t.origin;d(o,r)?C(t,e,n):I(t,e,n)}}function z(t,e,r,o){const n=e.origin,l=i($,o.x,o.y,o.z??0),c=s($,l,n);t.applyLocalInverse(c,D),t.rotation=h(t.rotation,r,j()),t.applyLocalInverse(c,c),s(c,c,D),t.translation=a(f(),t.translation,c)}function C(t,r,o){const n=t.spatialReference,i=m(n),s=S;g(o,s,i)||g(t.origin,s,i);const a=t.vertexAttributes.position,c=t.vertexAttributes.normal,f=t.vertexAttributes.tangent,p=new Float64Array(a.length),j=null!=c?new Float32Array(c.length):null,h=null!=f?new Float32Array(f.length):null;u(i,s,M,i),e(O,M);const x=E;l(v(E),v(r),O),x[3]=r[3],k(a,n,p),null!=c&&null!=j&&y(c,a,p,n,j),null!=f&&null!=h&&w(f,a,p,n,h),P(p,x,3,s),R(p,a,n),null!=c&&null!=j&&(P(j,x,3),F(j,a,p,n,c)),null!=f&&null!=h&&(P(h,x,4),L(h,a,p,n,f)),t.vertexAttributesChanged()}function I(e,r,o){const n=S;if(!g(o,n,e.spatialReference)){const r=e.origin;n[0]=r.x,n[1]=r.y,n[2]=r.z,t.getLogger(T).error(`Failed to project specified origin (wkid:${o.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}P(e.vertexAttributes.position,r,3,n),P(e.vertexAttributes.normal,r,3),P(e.vertexAttributes.tangent,r,4),e.vertexAttributesChanged()}function P(t,e,r,n=p){if(null!=t){o(M,x(e),v(e));for(let e=0;e<t.length;e+=r){for(let r=0;r<3;r++)$[r]=t[e+r]-n[r];c($,$,M);for(let r=0;r<3;r++)t[e+r]=$[r]+n[r]}}}const $=f(),D=f(),E=j(),M=n(),O=r(),S=f();export{U as rotate};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../core/Logger.js";import{s as t,g as r,b as o,e as n}from"../../../chunks/vec3.js";import{c as i,Z as s}from"../../../chunks/vec3f64.js";import{getSphericalPCPF as l}from"../../spatialReferenceEllipsoidUtils.js";import{projectPointToVector as a}from"../../projection/projectPointToVector.js";import c from"../MeshTransform.js";import{validateGeographicFlag as p,isGeographicMesh as f}from"./geographicUtils.js";import{projectToPCPF as u,projectNormalToPCPF as g,projectTangentToPCPF as m,projectFromPCPF as j,projectNormalFromPCPF as v,projectTangentFromPCPF as h}from"./projection.js";const x="esri.geometry.support.meshUtils.scale";function b(e,t,r){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const{spatialReference:o,vertexSpace:n}=e;if(n.isRelative){p(n,x,r);const o=r?.origin??e.origin;e.transform??=new c,A(e.transform,n,t,o)}else{const n=f(o,r),i=r?.origin??e.origin;n?d(e,t,i):y(e,t,i)}}function A(e,s,l,a){const c=s.origin,p=t(R,a.x,a.y,a.z),f=r(R,p,c);e.applyLocalInverse(f,k);const u=o(i(),e.scale,l);e.scale=u,e.applyLocalInverse(f,f),r(f,f,k),e.translation=n(i(),e.translation,f)}function d(e,t,r){const o=e.spatialReference,n=l(o),i=F;a(r,i,n)||a(e.origin,i,n);const s=e.vertexAttributes.position,c=e.vertexAttributes.normal,p=e.vertexAttributes.tangent,f=new Float64Array(s.length),x=null!=c?new Float32Array(c.length):null,b=null!=p?new Float32Array(p.length):null;u(s,o,f),null!=c&&null!=x&&g(c,s,f,o,x),null!=p&&null!=b&&m(p,s,f,o,b),w(f,t,i),j(f,s,o),null!=c&&null!=x&&v(x,s,f,o,c),null!=p&&null!=b&&h(b,s,f,o,p),e.vertexAttributesChanged()}function y(t,r,o){const n=F;if(!a(o,n,t.spatialReference)){const r=t.origin;n[0]=r.x,n[1]=r.y,n[2]=r.z,e.getLogger(x).error(`Failed to project specified origin (wkid:${o.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}w(t.vertexAttributes.position,r,n),t.vertexAttributesChanged()}function w(e,t,r=s){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)R[t]=e[n+t]-r[t];o(R,R,t);for(let t=0;t<3;t++)e[n+t]=R[t]+r[t]}}const R=i(),k=i(),F=i();export{b as scale};
5
+ import e from"../../../core/Logger.js";import{s as t,f as r,i as o,g as n}from"../../../chunks/vec3.js";import{c as i,Z as s}from"../../../chunks/vec3f64.js";import{getSphericalPCPF as l}from"../../spatialReferenceEllipsoidUtils.js";import{projectPointToVector as a}from"../../projection/projectPointToVector.js";import c from"../MeshTransform.js";import{validateGeographicFlag as p,isGeographicMesh as f}from"./geographicUtils.js";import{projectToPCPF as u,projectNormalToPCPF as g,projectTangentToPCPF as m,projectFromPCPF as j,projectNormalFromPCPF as v,projectTangentFromPCPF as h}from"./projection.js";const x="esri.geometry.support.meshUtils.scale";function A(e,t,r){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const{spatialReference:o,vertexSpace:n}=e;if(n.isRelative){p(n,x,r);const o=r?.origin??e.origin;e.transform??=new c,b(e.transform,n,t,o)}else{const n=f(o,r),i=r?.origin??e.origin;n?d(e,t,i):y(e,t,i)}}function b(e,s,l,a){const c=s.origin,p=t(R,a.x,a.y,a.z),f=r(R,p,c);e.applyLocalInverse(f,k);const u=o(i(),e.scale,l);e.scale=u,e.applyLocalInverse(f,f),r(f,f,k),e.translation=n(i(),e.translation,f)}function d(e,t,r){const o=e.spatialReference,n=l(o),i=F;a(r,i,n)||a(e.origin,i,n);const s=e.vertexAttributes.position,c=e.vertexAttributes.normal,p=e.vertexAttributes.tangent,f=new Float64Array(s.length),x=null!=c?new Float32Array(c.length):null,A=null!=p?new Float32Array(p.length):null;u(s,o,f),null!=c&&null!=x&&g(c,s,f,o,x),null!=p&&null!=A&&m(p,s,f,o,A),w(f,t,i),j(f,s,o),null!=c&&null!=x&&v(x,s,f,o,c),null!=p&&null!=A&&h(A,s,f,o,p),e.vertexAttributesChanged()}function y(t,r,o){const n=F;if(!a(o,n,t.spatialReference)){const r=t.origin;n[0]=r.x,n[1]=r.y,n[2]=r.z,e.getLogger(x).error(`Failed to project specified origin (wkid:${o.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}w(t.vertexAttributes.position,r,n),t.vertexAttributesChanged()}function w(e,t,r=s){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)R[t]=e[n+t]-r[t];o(R,R,t);for(let t=0;t<3;t++)e[n+t]=R[t]+r[t]}}const R=i(),k=i(),F=i();export{A as scale};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{f as e}from"../../chunks/mat4.js";import{c as t}from"../../chunks/mat4f64.js";import r from"./MeshGeoreferencedRelativeVertexSpace.js";import{t as o}from"../../chunks/vec32.js";function n(t){const{vertexSpace:n}=t;if(n.isRelative)return t.clone();const{anchor:i}=t,c=i.clone(),a=e(s,[-c.x,-c.y,-c.z]),m=new r({origin:[c.x,c.y,c.z]}),p=t.cloneWithVertexSpace(m),{position:f}=p.vertexAttributes;return p.vertexAttributes.position=o(new Float64Array(f.length),f,a),p.vertexAttributesChanged(),p}const s=t();export{n as toRelativeVertexSpace};
5
+ import{d as e}from"../../chunks/mat4.js";import{a as t}from"../../chunks/mat4f64.js";import r from"./MeshGeoreferencedRelativeVertexSpace.js";import{t as o}from"../../chunks/vec32.js";function n(t){const{vertexSpace:n}=t;if(n.isRelative)return t.clone();const{anchor:i}=t,c=i.clone(),a=e(s,[-c.x,-c.y,-c.z]),m=new r({origin:[c.x,c.y,c.z]}),p=t.cloneWithVertexSpace(m),{position:u}=p.vertexAttributes;return p.vertexAttributes.position=o(new Float64Array(u.length),u,a),p.vertexAttributesChanged(),p}const s=t();export{n as toRelativeVertexSpace};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{clamp as n}from"../../core/mathUtils.js";import{i as t,k as r,g as o,n as c,d as e,s as u,c as i,b as f,e as s}from"../../chunks/vec3.js";import{c as a}from"../../chunks/vec3f64.js";import{g as I}from"../../chunks/sphere.js";import{projectPointSignedLength as N}from"./vector.js";import{sv4d as M,sv3d as g}from"./vectorStacks.js";import{tangentFrame as m}from"../../views/3d/support/mathUtils.js";function h(n=Y){return[n[0],n[1],n[2],n[3]]}function E(n=Y[0],t=Y[1],r=Y[2],o=Y[3]){return l(n,t,r,o,M.get())}function p(n,t){return l(t[0],t[1],t[2],t[3],n)}function l(n,t,r,o,c=h()){return c[0]=n,c[1]=t,c[2]=r,c[3]=o,c}function A(n,r,o){return t(o,n),o[3]=r,o}function F(n,t,r){const o=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],c=Math.abs(o-1)>1e-5&&o>1e-12?1/Math.sqrt(o):1;return r[0]=t[0]*c,r[1]=t[1]*c,r[2]=t[2]*c,r[3]=-(r[0]*n[0]+r[1]*n[1]+r[2]*n[2]),r}function T(n,t,r,o=h()){const c=r[0]-t[0],e=r[1]-t[1],u=r[2]-t[2],i=n[0]-t[0],f=n[1]-t[1],s=n[2]-t[2],a=e*s-u*f,I=u*i-c*s,N=c*f-e*i,M=a*a+I*I+N*N,g=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return o[0]=a*g,o[1]=I*g,o[2]=N*g,o[3]=-(o[0]*n[0]+o[1]*n[1]+o[2]*n[2]),o}function _(n,t,u,i=0,f=Math.floor(u*(1/3)),s=Math.floor(u*(2/3))){if(u<3)return!1;t(b,i);let a=f,I=!1;for(;a<u-1&&!I;)t(d,a),a++,I=!r(b,d);if(!I)return!1;for(a=Math.max(a,s),I=!1;a<u&&!I;)t(k,a),a++,o(X,b,d),c(X,X),o(y,d,k),c(y,y),I=!r(b,k)&&!r(d,k)&&Math.abs(e(X,y))<j;return I?(T(b,d,k,n),!0):(0!==i||1!==f||2!==s)&&_(n,t,u,0,1,2)}function v(n,t,r=!0){const o=t.length/3;return _(n,((n,r)=>u(n,t[3*r+0],t[3*r+1],t[3*r+2])),r?o-1:o)}const j=.99619469809,b=a(),d=a(),k=a(),X=a(),y=a();function C(n,t,r){return t!==n&&p(n,t),n[3]=-e(W(n),r),n}function L(n,t){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t}function P(n,t,r,o){return i(k,t,n),F(r,k,o)}function O(n,t,r,c){return V(n,t,o(g.get(),r,t),$,c)}function q(n,t,r){return null!=t&&V(n,t.origin,t.direction,nn,r)}function x(n,t,r){return V(n,t.origin,t.vector,Z.NONE,r)}function U(n,t,r){return V(n,t.origin,t.vector,Z.CLAMP,r)}function w(n,t){return R(n,I(t))-t[3]>=0}function S(n,t){return R(n,I(t))+t[3]<0}function z(n,t){return R(n,t)>=0}function B(n,t){return R(n,t)<0}function D(n,t){const r=e(W(n),t.ray.direction),o=-R(n,t.ray.origin);if(o<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return o>0;if((o<0||r<0)&&!(o<0&&r<0))return!0;const c=o/r;return r>0?c<t.c1&&(t.c1=c):c>t.c0&&(t.c0=c),t.c0<=t.c1}function G(n,t){const r=e(W(n),t.ray.direction),o=-R(n,t.ray.origin);if(r>-1e-6&&r<1e-6)return o>0;const c=o/r;return r>0?c<t.c1&&(t.c1=c):c>t.c0&&(t.c0=c),t.c0<=t.c1}function H(n,t,r){const c=f(g.get(),W(n),-n[3]),e=K(n,o(g.get(),t,c),g.get());return s(r,e,c),r}function J(n,t,r,c){const e=W(n),i=g.get(),f=g.get();m(e,i,f);const s=o(g.get(),r,t),a=N(i,s),I=N(f,s),M=N(e,s);return u(c,a,I,M)}function K(n,t,r){const c=f(g.get(),W(n),e(W(n),t));return o(r,t,c),r}function Q(n,t){return Math.abs(R(n,t))}function R(n,t){return e(W(n),t)+n[3]}function V(t,r,o,c,u){const i=e(W(t),o);if(0===i)return!1;let a=-(e(W(t),r)+t[3])/i;return c&Z.CLAMP&&(a=n(a,0,1)),!(!(c&Z.INFINITE_MIN)&&a<0||!(c&Z.INFINITE_MAX)&&a>1)&&(s(u,r,f(u,o,a)),!0)}function W(n){return n}const Y=[0,0,1,0];var Z;!function(n){n[n.NONE=0]="NONE",n[n.CLAMP=1]="CLAMP",n[n.INFINITE_MIN=4]="INFINITE_MIN",n[n.INFINITE_MAX=8]="INFINITE_MAX"}(Z||(Z={}));const $=Z.INFINITE_MIN|Z.INFINITE_MAX,nn=Z.INFINITE_MAX;export{Y as UP,D as clip,G as clipInfinite,p as copy,h as create,Q as distance,v as fromArray,_ as fromManyPoints,A as fromNormalAndOffset,T as fromPoints,F as fromPositionAndNormal,l as fromValues,P as fromVectorsAndPoint,O as intersectLine,x as intersectLineSegment,U as intersectLineSegmentClamp,q as intersectRay,z as isPointInside,B as isPointOutside,w as isSphereFullyInside,S as isSphereFullyOutside,L as negate,W as normal,H as projectPoint,J as projectPointLocal,K as projectVector,C as setOffsetFromPoint,R as signedDistance,E as wrap};
5
+ import{clamp as n}from"../../core/mathUtils.js";import{c as t,h as r,f as o,n as c,j as u,s as e,b as i,i as f,g as s}from"../../chunks/vec3.js";import{c as a}from"../../chunks/vec3f64.js";import{g as I}from"../../chunks/sphere.js";import{projectPointSignedLength as N}from"./vector.js";import{sv4d as M,sv3d as g}from"./vectorStacks.js";import{tangentFrame as h}from"../../views/3d/support/mathUtils.js";function m(n=Y){return[n[0],n[1],n[2],n[3]]}function E(n=Y[0],t=Y[1],r=Y[2],o=Y[3]){return l(n,t,r,o,M.get())}function p(n,t){return l(t[0],t[1],t[2],t[3],n)}function l(n,t,r,o,c=m()){return c[0]=n,c[1]=t,c[2]=r,c[3]=o,c}function A(n,r,o){return t(o,n),o[3]=r,o}function F(n,t,r){const o=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],c=Math.abs(o-1)>1e-5&&o>1e-12?1/Math.sqrt(o):1;return r[0]=t[0]*c,r[1]=t[1]*c,r[2]=t[2]*c,r[3]=-(r[0]*n[0]+r[1]*n[1]+r[2]*n[2]),r}function T(n,t,r,o=m()){const c=r[0]-t[0],u=r[1]-t[1],e=r[2]-t[2],i=n[0]-t[0],f=n[1]-t[1],s=n[2]-t[2],a=u*s-e*f,I=e*i-c*s,N=c*f-u*i,M=a*a+I*I+N*N,g=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return o[0]=a*g,o[1]=I*g,o[2]=N*g,o[3]=-(o[0]*n[0]+o[1]*n[1]+o[2]*n[2]),o}function _(n,t,e,i=0,f=Math.floor(e*(1/3)),s=Math.floor(e*(2/3))){if(e<3)return!1;t(b,i);let a=f,I=!1;for(;a<e-1&&!I;)t(X,a),a++,I=!r(b,X);if(!I)return!1;for(a=Math.max(a,s),I=!1;a<e&&!I;)t(d,a),a++,o(k,b,X),c(k,k),o(y,X,d),c(y,y),I=!r(b,d)&&!r(X,d)&&Math.abs(u(k,y))<v;return I?(T(b,X,d,n),!0):(0!==i||1!==f||2!==s)&&_(n,t,e,0,1,2)}function j(n,t,r=!0){const o=t.length/3;return _(n,((n,r)=>e(n,t[3*r+0],t[3*r+1],t[3*r+2])),r?o-1:o)}const v=.99619469809,b=a(),X=a(),d=a(),k=a(),y=a();function C(n,t,r){return t!==n&&p(n,t),n[3]=-u(W(n),r),n}function L(n,t){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t}function P(n,t,r,o){return i(d,t,n),F(r,d,o)}function O(n,t,r,c){return V(n,t,o(g.get(),r,t),$,c)}function q(n,t,r){return null!=t&&V(n,t.origin,t.direction,nn,r)}function x(n,t,r){return V(n,t.origin,t.vector,Z.NONE,r)}function U(n,t,r){return V(n,t.origin,t.vector,Z.CLAMP,r)}function w(n,t){return R(n,I(t))-t[3]>=0}function S(n,t){return R(n,I(t))+t[3]<0}function z(n,t){return R(n,t)>=0}function B(n,t){return R(n,t)<0}function D(n,t){const r=u(W(n),t.ray.direction),o=-R(n,t.ray.origin);if(o<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return o>0;if((o<0||r<0)&&!(o<0&&r<0))return!0;const c=o/r;return r>0?c<t.c1&&(t.c1=c):c>t.c0&&(t.c0=c),t.c0<=t.c1}function G(n,t){const r=u(W(n),t.ray.direction),o=-R(n,t.ray.origin);if(r>-1e-6&&r<1e-6)return o>0;const c=o/r;return r>0?c<t.c1&&(t.c1=c):c>t.c0&&(t.c0=c),t.c0<=t.c1}function H(n,t,r){const c=f(g.get(),W(n),-n[3]),u=K(n,o(g.get(),t,c),g.get());return s(r,u,c),r}function J(n,t,r,c){const u=W(n),i=g.get(),f=g.get();h(u,i,f);const s=o(g.get(),r,t),a=N(i,s),I=N(f,s),M=N(u,s);return e(c,a,I,M)}function K(n,t,r){const c=f(g.get(),W(n),u(W(n),t));return o(r,t,c),r}function Q(n,t){return Math.abs(R(n,t))}function R(n,t){return u(W(n),t)+n[3]}function V(t,r,o,c,e){const i=u(W(t),o);if(0===i)return!1;let a=-(u(W(t),r)+t[3])/i;return c&Z.CLAMP&&(a=n(a,0,1)),!(!(c&Z.INFINITE_MIN)&&a<0||!(c&Z.INFINITE_MAX)&&a>1)&&(s(e,r,f(e,o,a)),!0)}function W(n){return n}const Y=[0,0,1,0];var Z;!function(n){n[n.NONE=0]="NONE",n[n.CLAMP=1]="CLAMP",n[n.INFINITE_MIN=4]="INFINITE_MIN",n[n.INFINITE_MAX=8]="INFINITE_MAX"}(Z||(Z={}));const $=Z.INFINITE_MIN|Z.INFINITE_MAX,nn=Z.INFINITE_MAX;export{Y as UP,D as clip,G as clipInfinite,p as copy,m as create,Q as distance,j as fromArray,_ as fromManyPoints,A as fromNormalAndOffset,T as fromPoints,F as fromPositionAndNormal,l as fromValues,P as fromVectorsAndPoint,O as intersectLine,x as intersectLineSegment,U as intersectLineSegmentClamp,q as intersectRay,z as isPointInside,B as isPointOutside,w as isSphereFullyInside,S as isSphereFullyOutside,L as negate,W as normal,H as projectPoint,J as projectPointLocal,K as projectVector,C as setOffsetFromPoint,R as signedDistance,E as wrap};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{equals as i}from"../../core/arrayUtils.js";import{ObjectStack as n}from"../../core/ObjectStack.js";import{i as r,g as t,c as o,n as c,d as e,e as s,b as u}from"../../chunks/vec3.js";import{a,c as f}from"../../chunks/vec3f64.js";import{sv3d as g}from"./vectorStacks.js";function d(i){return i?m(a(i.origin),a(i.direction)):m(f(),f())}function m(i,n){return{origin:i,direction:n}}function j(n,r){return i(n.origin,r.origin)&&i(n.direction,r.direction)}function p(i,n){const r=S.get();return r.origin=i,r.direction=n,r}function k(i,n=d()){return v(i.origin,i.direction,n)}function h(i,n,o=d()){return r(o.origin,i),t(o.direction,n,i),o}function v(i,n,t=d()){return r(t.origin,i),r(t.direction,n),t}function b(i,n){const r=o(g.get(),c(g.get(),i.direction),t(g.get(),n,i.origin));return e(r,r)}function l(i,n){return Math.sqrt(b(i,n))}function q(i,n,r){const o=e(i.direction,t(r,n,i.origin));return s(r,i.origin,u(r,i.direction,o)),r}const S=new n((()=>d()));export{q as closestPoint,k as copy,d as create,l as distance,b as distance2,j as equals,h as fromPoints,v as fromValues,p as wrap};
5
+ import{equals as i}from"../../core/arrayUtils.js";import{ObjectStack as n}from"../../core/ObjectStack.js";import{c as r,f as t,b as o,n as c,j as e,g as s,i as u}from"../../chunks/vec3.js";import{g as f,c as g}from"../../chunks/vec3f64.js";import{sv3d as a}from"./vectorStacks.js";function d(i){return i?m(f(i.origin),f(i.direction)):m(g(),g())}function m(i,n){return{origin:i,direction:n}}function j(n,r){return i(n.origin,r.origin)&&i(n.direction,r.direction)}function p(i,n){const r=S.get();return r.origin=i,r.direction=n,r}function k(i,n=d()){return v(i.origin,i.direction,n)}function h(i,n,o=d()){return r(o.origin,i),t(o.direction,n,i),o}function v(i,n,t=d()){return r(t.origin,i),r(t.direction,n),t}function b(i,n){const r=o(a.get(),c(a.get(),i.direction),t(a.get(),n,i.origin));return e(r,r)}function l(i,n){return Math.sqrt(b(i,n))}function q(i,n,r){const o=e(i.direction,t(r,n,i.origin));return s(r,i.origin,u(r,i.direction,o)),r}const S=new n((()=>d()));export{q as closestPoint,k as copy,d as create,l as distance,b as distance2,j as equals,h as fromPoints,v as fromValues,p as wrap};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{ObjectStack as t}from"../../core/ObjectStack.js";import{i as n,g as e,c as r,d as o,b as p,e as c,l as s}from"../../chunks/vec3.js";import{a as i,c as u}from"../../chunks/vec3f64.js";import{create as a,distance2 as f,fromValues as g}from"./lineSegment.js";import{sv3d as m}from"./vectorStacks.js";function j(t){return t?{p0:i(t.p0),p1:i(t.p1),p2:i(t.p2)}:{p0:u(),p1:u(),p2:u()}}function h(t,n,e){const r=x.get();return r.p0=t,r.p1=n,r.p2=e,r}function k(t,n=j()){return b(t.p0,t.p1,t.p2,n)}function b(t,e,r,o=j()){return n(o.p0,t),n(o.p1,e),n(o.p2,r),o}function d(t,n){const p=t.p0,c=t.p1,s=t.p2,i=e(m.get(),c,p),u=e(m.get(),s,c),a=e(m.get(),p,s),j=e(m.get(),n,p),h=e(m.get(),n,c),k=e(m.get(),n,s),b=r(i,i,a),d=o(r(m.get(),i,b),j),l=o(r(m.get(),u,b),h),v=o(r(m.get(),a,b),k);if(d>0&&l>0&&v>0){const t=o(b,j);return t*t/o(b,b)}const S=f(g(p,i,M.get()),n),w=f(g(c,u,M.get()),n),x=f(g(s,a,M.get()),n);return Math.min(S,w,x)}function l(t,n,e){const r=1e-5,{direction:o,origin:s}=n,{p0:i,p1:u,p2:a}=t,f=u[0]-i[0],g=u[1]-i[1],m=u[2]-i[2],j=a[0]-i[0],h=a[1]-i[1],k=a[2]-i[2],b=o[1]*k-h*o[2],d=o[2]*j-k*o[0],l=o[0]*h-j*o[1],v=f*b+g*d+m*l;if(v>-r&&v<r)return!1;const S=1/v,w=s[0]-i[0],M=s[1]-i[1],x=s[2]-i[2],O=S*(w*b+M*d+x*l);if(O<0||O>1)return!1;const V=M*m-g*x,q=x*f-m*w,y=w*g-f*M,z=S*(o[0]*V+o[1]*q+o[2]*y);if(z<0||O+z>1)return!1;if(e){p(e,o,S*(j*V+h*q+k*y)),c(e,s,e)}return!0}function v(t,n,e){const r=n[0]-t[0],o=n[1]-t[1],p=e[0]-t[0],c=e[1]-t[1];return.5*Math.abs(r*c-o*p)}function S(t){return v(t.p0,t.p1,t.p2)}function w(t,n,o){return e(O,n,t),e(V,o,t),s(r(O,O,V))/2}const M=new t(a),x=new t((()=>j())),O=u(),V=u();export{S as area2d,v as areaPoints2d,w as areaPoints3d,k as copy,j as create,d as distance2,b as fromValues,l as intersectRay,h as wrap};
5
+ import{ObjectStack as t}from"../../core/ObjectStack.js";import{c as n,f as e,b as r,j as o,i as p,g as c,l as s}from"../../chunks/vec3.js";import{g as i,c as u}from"../../chunks/vec3f64.js";import{create as f,distance2 as a,fromValues as g}from"./lineSegment.js";import{sv3d as m}from"./vectorStacks.js";function j(t){return t?{p0:i(t.p0),p1:i(t.p1),p2:i(t.p2)}:{p0:u(),p1:u(),p2:u()}}function h(t,n,e){const r=x.get();return r.p0=t,r.p1=n,r.p2=e,r}function k(t,n=j()){return b(t.p0,t.p1,t.p2,n)}function b(t,e,r,o=j()){return n(o.p0,t),n(o.p1,e),n(o.p2,r),o}function l(t,n){const p=t.p0,c=t.p1,s=t.p2,i=e(m.get(),c,p),u=e(m.get(),s,c),f=e(m.get(),p,s),j=e(m.get(),n,p),h=e(m.get(),n,c),k=e(m.get(),n,s),b=r(i,i,f),l=o(r(m.get(),i,b),j),v=o(r(m.get(),u,b),h),S=o(r(m.get(),f,b),k);if(l>0&&v>0&&S>0){const t=o(b,j);return t*t/o(b,b)}const d=a(g(p,i,M.get()),n),w=a(g(c,u,M.get()),n),x=a(g(s,f,M.get()),n);return Math.min(d,w,x)}function v(t,n,e){const r=1e-5,{direction:o,origin:s}=n,{p0:i,p1:u,p2:f}=t,a=u[0]-i[0],g=u[1]-i[1],m=u[2]-i[2],j=f[0]-i[0],h=f[1]-i[1],k=f[2]-i[2],b=o[1]*k-h*o[2],l=o[2]*j-k*o[0],v=o[0]*h-j*o[1],S=a*b+g*l+m*v;if(S>-r&&S<r)return!1;const d=1/S,w=s[0]-i[0],M=s[1]-i[1],x=s[2]-i[2],O=d*(w*b+M*l+x*v);if(O<0||O>1)return!1;const V=M*m-g*x,q=x*a-m*w,y=w*g-a*M,z=d*(o[0]*V+o[1]*q+o[2]*y);if(z<0||O+z>1)return!1;if(e){p(e,o,d*(j*V+h*q+k*y)),c(e,s,e)}return!0}function S(t,n,e){const r=n[0]-t[0],o=n[1]-t[1],p=e[0]-t[0],c=e[1]-t[1];return.5*Math.abs(r*c-o*p)}function d(t){return S(t.p0,t.p1,t.p2)}function w(t,n,o){return e(O,n,t),e(V,o,t),s(r(O,O,V))/2}const M=new t(f),x=new t((()=>j())),O=u(),V=u();export{d as area2d,S as areaPoints2d,w as areaPoints3d,k as copy,j as create,l as distance2,b as fromValues,v as intersectRay,h as wrap};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{acosClamped as n}from"../../core/mathUtils.js";import{d as t,b as o,l as r,n as s,c}from"../../chunks/vec3.js";import{c as u}from"../../chunks/vec3f64.js";function a(n,r,s){const c=t(n,r)/t(n,n);return o(s,n,c)}function e(n,o){return t(n,o)/r(n)}function f(o,s){const c=t(o,s)/(r(o)*r(s));return-n(c)}function i(o,r,u){s(m,o),s(h,r);const a=t(m,h),e=n(a),f=c(m,m,h);return t(f,u)<0?2*Math.PI-e:e}const m=u(),h=u();export{f as angle,i as angleAroundAxis,a as projectPoint,e as projectPointSignedLength};
5
+ import{acosClamped as n}from"../../core/mathUtils.js";import{j as t,i as o,l as r,n as s,b as c}from"../../chunks/vec3.js";import{c as u}from"../../chunks/vec3f64.js";function i(n,r,s){const c=t(n,r)/t(n,n);return o(s,n,c)}function a(n,o){return t(n,o)/r(n)}function e(o,s){const c=t(o,s)/(r(o)*r(s));return-n(c)}function f(o,r,u){s(m,o),s(h,r);const i=t(m,h),a=n(i),e=c(m,m,h);return t(e,u)<0?2*Math.PI-a:a}const m=u(),h=u();export{e as angle,f as angleAroundAxis,i as projectPoint,a as projectPointSignedLength};