@arcgis/core 4.34.0-next.25 → 4.34.0-next.27

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 (1653) hide show
  1. package/Color.js +1 -1
  2. package/README.md +5 -5
  3. package/UndoRedo.js +1 -1
  4. package/WebDocument2D.js +1 -1
  5. package/WebScene.js +1 -1
  6. package/analysis/LengthDimension.js +1 -1
  7. package/analysis/VolumeMeasurement/volumeMeasurementUtils.js +1 -1
  8. package/analysis/VolumeMeasurementAnalysis.js +1 -1
  9. package/analysis/dimensionUtils.js +1 -1
  10. package/analysis/featureReferenceUtils.js +1 -1
  11. package/applications/Components/imageryUtils.d.ts +5 -0
  12. package/applications/Components/imageryUtils.js +1 -1
  13. package/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
  14. package/arcade/ArcadeDate.js +1 -1
  15. package/arcade/ArcadeModuleResolver.js +1 -1
  16. package/arcade/Dictionary.js +1 -1
  17. package/arcade/Feature.js +1 -1
  18. package/arcade/Voxel.js +1 -1
  19. package/arcade/arcadeAsyncRuntime.js +1 -1
  20. package/arcade/arcadeCompiler.js +1 -1
  21. package/arcade/arcadeEnvironment.js +1 -1
  22. package/arcade/arcadeRuntime.js +1 -1
  23. package/arcade/containerUtils.js +1 -1
  24. package/arcade/enum.js +1 -1
  25. package/arcade/executionError.js +1 -1
  26. package/arcade/featureSetUtils.js +1 -1
  27. package/arcade/featureset/actions/Adapted.js +1 -1
  28. package/arcade/featureset/actions/AttributeFilter.js +1 -1
  29. package/arcade/featureset/actions/GroupBy.js +1 -1
  30. package/arcade/featureset/actions/OrderBy.js +1 -1
  31. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  32. package/arcade/featureset/actions/Top.js +1 -1
  33. package/arcade/featureset/sources/Empty.js +1 -1
  34. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  35. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  36. package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
  37. package/arcade/featureset/support/FeatureSet.js +1 -1
  38. package/arcade/featureset/support/StatsField.js +1 -1
  39. package/arcade/featureset/support/errorsupport.js +1 -1
  40. package/arcade/featureset/support/shared.js +1 -1
  41. package/arcade/featureset/support/sqlUtils.js +1 -1
  42. package/arcade/featureset/support/stats.js +1 -1
  43. package/arcade/functions/convertdirection.js +1 -1
  44. package/arcade/functions/date.js +1 -1
  45. package/arcade/functions/feature.js +1 -1
  46. package/arcade/functions/featuresetbase.js +1 -1
  47. package/arcade/functions/featuresetgeom.js +1 -1
  48. package/arcade/functions/featuresetstats.js +1 -1
  49. package/arcade/functions/featuresetstring.js +1 -1
  50. package/arcade/functions/geomasync.js +1 -1
  51. package/arcade/functions/geometry.js +1 -1
  52. package/arcade/functions/geomsync.js +1 -1
  53. package/arcade/functions/knowledgegraph.js +1 -1
  54. package/arcade/functions/stats.js +1 -1
  55. package/arcade/functions/string.js +1 -1
  56. package/arcade/geometry/constructors.js +1 -1
  57. package/arcade/geometry/functions.js +1 -1
  58. package/arcade/geometry/unitConversion.js +1 -1
  59. package/arcade/validation/arcadeValidator.js +1 -1
  60. package/arcade/validation/diagnosticMessages.js +1 -1
  61. package/arcade/validation/types.js +0 -1
  62. package/assets/esri/core/workers/RemoteClient.js +1 -1
  63. package/assets/esri/core/workers/chunks/006b5b465f6ec1463743.js +1 -0
  64. package/assets/esri/core/workers/chunks/03ee4d63aa8de44958ab.js +1 -0
  65. package/assets/esri/core/workers/chunks/{3b80b01551d124534a1b.js → 075431aacc19f4f50e61.js} +1 -1
  66. package/assets/esri/core/workers/chunks/083575552e530a6471c1.js +1 -0
  67. package/assets/esri/core/workers/chunks/{e7f5ff5318c144baa4e9.js → 09063e2b6f92f8b8d6df.js} +1 -1
  68. package/assets/esri/core/workers/chunks/0c6f498e25b68d33f89e.js +1 -0
  69. package/assets/esri/core/workers/chunks/11a7e7ff2b6d040b7257.js +1 -0
  70. package/assets/esri/core/workers/chunks/147c1537e39e0a9f57c0.js +1 -0
  71. package/assets/esri/core/workers/chunks/16fbf04c039d1ea34f3d.js +1 -0
  72. package/assets/esri/core/workers/chunks/1859a11df9f579b993d7.js +1 -0
  73. package/assets/esri/core/workers/chunks/1aff43dad2302677b4f4.js +1 -0
  74. package/assets/esri/core/workers/chunks/24ce3d21ddd15da614dd.js +1 -0
  75. package/assets/esri/core/workers/chunks/277941bec15525dbd3a0.js +1 -0
  76. package/assets/esri/core/workers/chunks/28ca93c78798caf2e3f9.js +1 -0
  77. package/assets/esri/core/workers/chunks/2a37e4e361a47fb4e7a8.js +1 -0
  78. package/assets/esri/core/workers/chunks/2cfe4370834b754d8a6c.js +1 -0
  79. package/assets/esri/core/workers/chunks/{36648facd56ee91afc7c.js → 2d354cb311fa41b22d2e.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{820cf4337b248a0cb63c.js → 2de5fcc52f45260b8f64.js} +1 -1
  81. package/assets/esri/core/workers/chunks/2f89b85af0f5b523824b.js +1 -0
  82. package/assets/esri/core/workers/chunks/3149a86cd25684dcb0b3.js +1 -0
  83. package/assets/esri/core/workers/chunks/33903a91c2a08b870623.js +1 -0
  84. package/assets/esri/core/workers/chunks/37f6562f5a3aeb5cf623.js +1 -0
  85. package/assets/esri/core/workers/chunks/381305de6f3ddb89f1ca.js +1 -0
  86. package/assets/esri/core/workers/chunks/386ab72a45102c2d47f2.js +1 -0
  87. package/assets/esri/core/workers/chunks/39756213796d0fe119e7.js +1 -0
  88. package/assets/esri/core/workers/chunks/3e731761df43a50d4884.js +1 -0
  89. package/assets/esri/core/workers/chunks/3fe7be535affae31de7e.js +1 -0
  90. package/assets/esri/core/workers/chunks/{4a720f2ed4eb96c3bd1c.js → 3fe84dceab7a9e6783d5.js} +1 -1
  91. package/assets/esri/core/workers/chunks/41071e672dcddec47492.js +1 -0
  92. package/assets/esri/core/workers/chunks/{109ef17dd4f9430bb686.js → 4171bfbaddf06c23cc5e.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{bf3fc71881aa559fc931.js → 421ab3c4db4235951e36.js} +1 -1
  94. package/assets/esri/core/workers/chunks/45121b7258333c8ebbdb.js +1 -0
  95. package/assets/esri/core/workers/chunks/46bf33ed96014e632e3f.js +1 -0
  96. package/assets/esri/core/workers/chunks/4721614c4d81d535505b.js +1 -0
  97. package/assets/esri/core/workers/chunks/{472c677a74d779ce62d7.js → 473190fe656a40cafd40.js} +1 -1
  98. package/assets/esri/core/workers/chunks/4778acd0cfaf0cebeec7.js +1 -0
  99. package/assets/esri/core/workers/chunks/4784af2b04fafacfcc1b.js +1 -0
  100. package/assets/esri/core/workers/chunks/4bc639cbb28eb75233be.js +1 -0
  101. package/assets/esri/core/workers/chunks/4c715d54f5734511adbd.js +1 -0
  102. package/assets/esri/core/workers/chunks/4cb6f77fe23962ef264b.js +1 -0
  103. package/assets/esri/core/workers/chunks/{5ef3256c32c4b622bd11.js → 4d884390288b1380ab2a.js} +1 -1
  104. package/assets/esri/core/workers/chunks/4f63b8236c734551c3f0.js +1 -0
  105. package/assets/esri/core/workers/chunks/4fa81a7137737fa29623.js +1 -0
  106. package/assets/esri/core/workers/chunks/51b97f67c8dbfb932170.js +1 -0
  107. package/assets/esri/core/workers/chunks/5227a05a244d6af746f0.js +1 -0
  108. package/assets/esri/core/workers/chunks/{97324f030738fc0d456b.js → 54a30a1ae25eff0c2bdc.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{6e9b4bfe2a1497c96100.js → 56742c5b310b3c989f4d.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{06cdbccc9f325dcc303d.js → 5934944d3532cc27c046.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{40fc7c43feaeef8b814d.js → 5ac49ddc11e89a755470.js} +1 -1
  112. package/assets/esri/core/workers/chunks/5ba2e074d42493f6eac9.js +1 -0
  113. package/assets/esri/core/workers/chunks/{856739d12ee9d7154683.js → 5f239972cb95afdfa77a.js} +1 -1
  114. package/assets/esri/core/workers/chunks/60d0fc02f37c6b328d31.js +1 -0
  115. package/assets/esri/core/workers/chunks/61e4aa939915e9cd1e8d.js +1 -0
  116. package/assets/esri/core/workers/chunks/630d55eea98469a361d4.js +1 -0
  117. package/assets/esri/core/workers/chunks/{395f589b0929e37ba674.js → 66f1c9a82c2c960bb86c.js} +1 -1
  118. package/assets/esri/core/workers/chunks/679018fd319a9bebeb88.js +1 -0
  119. package/assets/esri/core/workers/chunks/{d7d5f7fea2bf77f43754.js → 6878d504d776abf8089b.js} +1 -1
  120. package/assets/esri/core/workers/chunks/6963ded8428cc8d51d85.js +1 -0
  121. package/assets/esri/core/workers/chunks/6a0777cf1270fcab4574.js +1 -0
  122. package/assets/esri/core/workers/chunks/6b6ab092f578b20c8e56.js +1 -0
  123. package/assets/esri/core/workers/chunks/6c3ae96c6ef764fb9552.js +1 -0
  124. package/assets/esri/core/workers/chunks/6d786fac4bb5efcb7acc.js +1 -0
  125. package/assets/esri/core/workers/chunks/706d8e0561b810613308.js +1 -0
  126. package/assets/esri/core/workers/chunks/72a50a2845ab211868f2.js +1 -0
  127. package/assets/esri/core/workers/chunks/730554e5d6018d2e9e9e.js +1 -0
  128. package/assets/esri/core/workers/chunks/7b5bb94eb8705a84d45c.js +1 -0
  129. package/assets/esri/core/workers/chunks/7bd672e534cde0d5787d.js +1 -0
  130. package/assets/esri/core/workers/chunks/{66affa0ee7fda288df11.js → 7e746427375e83fc4351.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{cefb063f93c4310a3888.js → 80dc4c6c549d3711af5c.js} +1 -1
  132. package/assets/esri/core/workers/chunks/812cf236acb08bbfa54e.js +1 -0
  133. package/assets/esri/core/workers/chunks/81d82c8c8bd8d79c6420.js +1 -0
  134. package/assets/esri/core/workers/chunks/8664ed88a2c52751e590.js +1 -0
  135. package/assets/esri/core/workers/chunks/8684dcf89344aaeaf97a.js +1 -0
  136. package/assets/esri/core/workers/chunks/8772982f0760a7770290.js +1 -0
  137. package/assets/esri/core/workers/chunks/87df7cb4faf37d68bcbc.js +1 -0
  138. package/assets/esri/core/workers/chunks/8b33efbde3e96be88eb9.js +1 -0
  139. package/assets/esri/core/workers/chunks/8d914ea9b18b32fd62b8.js +1 -0
  140. package/assets/esri/core/workers/chunks/9046a792395da28fa8f7.js +1 -0
  141. package/assets/esri/core/workers/chunks/92a372a96245c083e8d6.js +1 -0
  142. package/assets/esri/core/workers/chunks/9322160387e5c3c968cd.js +346 -0
  143. package/assets/esri/core/workers/chunks/937c93e536ea932257eb.js +1 -0
  144. package/assets/esri/core/workers/chunks/93a068bb3b0a4b918821.js +1 -0
  145. package/assets/esri/core/workers/chunks/{a8a5cdd70db90273a3fc.js → 94a3474e3f45efa4a4fe.js} +1 -1
  146. package/assets/esri/core/workers/chunks/9723512bc9db4a301c72.js +1 -0
  147. package/assets/esri/core/workers/chunks/97a56b058f8472fec1b2.js +1 -0
  148. package/assets/esri/core/workers/chunks/{86abfce1f2ac93cc4d54.js → 987c816176c40ff62027.js} +1 -1
  149. package/assets/esri/core/workers/chunks/9a8669dd3a7a2996d3e4.js +1 -0
  150. package/assets/esri/core/workers/chunks/{30fae1f066dc3cd781f1.js → 9af47a4da3a0b84f1add.js} +1 -1
  151. package/assets/esri/core/workers/chunks/9b7d8f00655e9c1469de.js +1 -0
  152. package/assets/esri/core/workers/chunks/9c5745d9e9eeff98bb1d.js +1 -0
  153. package/assets/esri/core/workers/chunks/{1d27701832ea139fcc20.js → 9d18e772aef0b7027995.js} +1 -1
  154. package/assets/esri/core/workers/chunks/{7cfba5cec425221962e8.js → a150401f60342f9873f8.js} +1 -1
  155. package/assets/esri/core/workers/chunks/a24d1572c67f27ceced4.js +1 -0
  156. package/assets/esri/core/workers/chunks/a2bfb7b2f3f909dc5e59.js +1 -0
  157. package/assets/esri/core/workers/chunks/a3f0e977cc7001645cce.js +1 -0
  158. package/assets/esri/core/workers/chunks/a5310ff0bd5efb33cae6.js +1 -0
  159. package/assets/esri/core/workers/chunks/a9d83a442d8d7a376fc0.js +1 -0
  160. package/assets/esri/core/workers/chunks/aa585903d55773a85c84.js +1 -0
  161. package/assets/esri/core/workers/chunks/aa8df507839b17003872.js +1 -0
  162. package/assets/esri/core/workers/chunks/ac03c31de26bbbec056e.js +1 -0
  163. package/assets/esri/core/workers/chunks/ac7023eccf5fdbbcdc0d.js +1 -0
  164. package/assets/esri/core/workers/chunks/adf2572b971796522693.js +1 -0
  165. package/assets/esri/core/workers/chunks/ae75bfa90eb530d5954e.js +1 -0
  166. package/assets/esri/core/workers/chunks/afb7e346779adefa4b05.js +1 -0
  167. package/assets/esri/core/workers/chunks/b13dc7ac1f442059cff7.js +1 -0
  168. package/assets/esri/core/workers/chunks/b3f6a783a8ac879ff1e4.js +1 -0
  169. package/assets/esri/core/workers/chunks/b50841f898d4eb420b73.js +1 -0
  170. package/assets/esri/core/workers/chunks/b8853c9a65d642be0457.js +1 -0
  171. package/assets/esri/core/workers/chunks/b89aacec211c66e3a011.js +1 -0
  172. package/assets/esri/core/workers/chunks/{567385709e18ace93b1e.js → b9435bbb89339fb0efe7.js} +1 -1
  173. package/assets/esri/core/workers/chunks/bd6c6acf23db2a2e8ef8.js +1 -0
  174. package/assets/esri/core/workers/chunks/bdb7d6273c457b5193fc.js +1 -0
  175. package/assets/esri/core/workers/chunks/be1b83077f6c775ffd17.js +1 -0
  176. package/assets/esri/core/workers/chunks/{d2986ddd390227feac85.js → bfa8a2523b35ee698709.js} +1 -1
  177. package/assets/esri/core/workers/chunks/c01dfbcea25387c6a781.js +1 -0
  178. package/assets/esri/core/workers/chunks/{a7a5b89c2bb69f3af59c.js → c4c26753fb144838e9bf.js} +1 -1
  179. package/assets/esri/core/workers/chunks/{41d07f5a550f242d964e.js → c87bb42f825c39f9cce3.js} +1 -1
  180. package/assets/esri/core/workers/chunks/c97df44df42c6de8ffc5.js +1 -0
  181. package/assets/esri/core/workers/chunks/c9fe9792312f0161ef5a.js +1 -0
  182. package/assets/esri/core/workers/chunks/caeaa73cef54c69bfb8d.js +1 -0
  183. package/assets/esri/core/workers/chunks/cc097863f03902c75496.js +1 -0
  184. package/assets/esri/core/workers/chunks/ce0683921ccefc580018.js +1 -0
  185. package/assets/esri/core/workers/chunks/ce1a4368741f1ddc53fe.js +1 -0
  186. package/assets/esri/core/workers/chunks/cf5f18700facaa0c8170.js +1 -0
  187. package/assets/esri/core/workers/chunks/cf6a564fa3126add1664.js +1 -0
  188. package/assets/esri/core/workers/chunks/cf93b17f57cbc03f802e.js +1 -0
  189. package/assets/esri/core/workers/chunks/cffd73e94061823317ee.js +1 -0
  190. package/assets/esri/core/workers/chunks/d3b932ff2299c89c2582.js +1 -0
  191. package/assets/esri/core/workers/chunks/d52e8c2065f2767cd6f9.js +1 -0
  192. package/assets/esri/core/workers/chunks/{35aef6fd08b50c4d7dd3.js → d59a729c79e6ed434152.js} +1 -1
  193. package/assets/esri/core/workers/chunks/d88935ae5669d14c5b29.js +1 -0
  194. package/assets/esri/core/workers/chunks/{5a9b27f2b343cd5b0852.js → da82ed1d2012d0cd883b.js} +1 -1
  195. package/assets/esri/core/workers/chunks/e03930dd9ce55b903906.js +1 -0
  196. package/assets/esri/core/workers/chunks/e302a3a9a6cf1f48455d.js +1 -0
  197. package/assets/esri/core/workers/chunks/e506c9158bd0b5174f18.js +1009 -0
  198. package/assets/esri/core/workers/chunks/e5d06f87eb8b52d10dfc.js +1 -0
  199. package/assets/esri/core/workers/chunks/e5fef2b5b6da2377703c.js +1 -0
  200. package/assets/esri/core/workers/chunks/e6009ddd28cc5b8752b2.js +1 -0
  201. package/assets/esri/core/workers/chunks/e6872460241fee0a561a.js +1 -0
  202. package/assets/esri/core/workers/chunks/e6e4e2fb9568319c6207.js +1 -0
  203. package/assets/esri/core/workers/chunks/e799433770e4303fcd9c.js +1 -0
  204. package/assets/esri/core/workers/chunks/e7cbd1b5e4cb32851a5c.js +1 -0
  205. package/assets/esri/core/workers/chunks/ecd673eccf89643df07a.js +2 -0
  206. package/assets/esri/core/workers/chunks/{d1aeb9fe9eb573beefcc.js → edc4f230a5bdf928f9fd.js} +2 -2
  207. package/assets/esri/core/workers/chunks/edd9f70247daaef2f0b9.js +1 -0
  208. package/assets/esri/core/workers/chunks/ee0596d6d66225b04465.js +1 -0
  209. package/assets/esri/core/workers/chunks/f318f3289684f9112431.js +1 -0
  210. package/assets/esri/core/workers/chunks/f3c011455136b6c85803.js +1 -0
  211. package/assets/esri/core/workers/chunks/f3d784052b8357408394.js +1 -0
  212. package/assets/esri/core/workers/chunks/{5284d46aecd6fe0345b8.js → f5e9f29cc132208c91be.js} +1 -1
  213. package/assets/esri/core/workers/chunks/f95edcb0664039bbe73f.js +1 -0
  214. package/assets/esri/core/workers/chunks/fb84fa28978a1820a725.js +1 -0
  215. package/assets/esri/core/workers/chunks/{c11efbf098866c927607.js → ffc4703dcdc792ddaa9c.js} +1 -1
  216. package/assets/esri/libs/i3s/i3s.wasm +0 -0
  217. package/chunks/BlendLayers.glsl.js +1 -1
  218. package/chunks/BloomBlur.glsl.js +8 -8
  219. package/chunks/CheckerBoard.glsl.js +3 -3
  220. package/chunks/Clouds.glsl.js +15 -15
  221. package/chunks/CloudsComposition.glsl.js +2 -2
  222. package/chunks/ColorMaterial.glsl.js +4 -4
  223. package/chunks/ComponentShader.glsl.js +36 -36
  224. package/chunks/Compositing.glsl.js +4 -4
  225. package/chunks/DefaultMaterial.glsl.js +23 -23
  226. package/chunks/EdgeShader.glsl.js +9 -9
  227. package/chunks/FocusAreaColor.glsl.js +3 -3
  228. package/chunks/FocusAreaMask.glsl.js +2 -2
  229. package/chunks/HUDMaterial.glsl.js +44 -44
  230. package/chunks/HeatmapDensity.glsl.js +6 -6
  231. package/chunks/ImageMaterial.glsl.js +4 -4
  232. package/chunks/LaserlinePath.glsl.js +6 -6
  233. package/chunks/LineCallout.glsl.js +5 -5
  234. package/chunks/LineMarker.glsl.js +29 -29
  235. package/chunks/Magnifier.glsl.js +2 -2
  236. package/chunks/MeasurementArrow.glsl.js +6 -6
  237. package/chunks/NativeLine.glsl.js +7 -7
  238. package/chunks/NoiseTextureAtlas.glsl.js +34 -34
  239. package/chunks/OverlayCompositing.glsl.js +2 -2
  240. package/chunks/Path.glsl.js +16 -16
  241. package/chunks/Pattern.glsl.js +22 -22
  242. package/chunks/PointRenderer.glsl.js +4 -4
  243. package/chunks/Precipitation.glsl.js +7 -7
  244. package/chunks/RasterColorizer.glsl.js +11 -11
  245. package/chunks/RealisticTree.glsl.js +16 -16
  246. package/chunks/RibbonLine.glsl.js +36 -36
  247. package/chunks/ShadedColorMaterial.glsl.js +7 -7
  248. package/chunks/ShadowCastAccumulate.glsl.js +4 -4
  249. package/chunks/ShadowCastClear.glsl.js +1 -1
  250. package/chunks/ShadowCastVisualize.glsl.js +11 -11
  251. package/chunks/ShadowHighlight.glsl.js +3 -3
  252. package/chunks/SimpleAtmosphere.glsl.js +9 -9
  253. package/chunks/SlicePlaneMaterial.glsl.js +3 -3
  254. package/chunks/Stars.glsl.js +2 -2
  255. package/chunks/Terrain.glsl.js +32 -32
  256. package/chunks/WaterSurface.glsl.js +16 -16
  257. package/chunks/aiServices.js +1 -1
  258. package/chunks/arcade.js +1 -1
  259. package/chunks/array.js +1 -1
  260. package/chunks/boundedPlane.js +1 -1
  261. package/chunks/cameraUtilsPlanar.js +1 -1
  262. package/chunks/cameraUtilsSpherical.js +1 -1
  263. package/chunks/i3s.js +1 -1
  264. package/chunks/languageUtils.js +1 -1
  265. package/chunks/persistableUrlUtils.js +1 -1
  266. package/chunks/sphere.js +1 -1
  267. package/config.js +1 -1
  268. package/core/ByteSizeUnit.js +0 -1
  269. package/core/Clonable.js +1 -1
  270. package/core/Collection.js +1 -1
  271. package/core/Loadable.js +1 -1
  272. package/core/MemCache.js +1 -1
  273. package/core/MemCachePool.js +1 -1
  274. package/core/MultiOriginJSONSupport.js +1 -1
  275. package/core/ObservableChangesType.js +0 -1
  276. package/core/PooledArray.js +1 -1
  277. package/core/Promise.js +1 -1
  278. package/core/accessorSupport/DefaultsStore.js +1 -1
  279. package/core/accessorSupport/MultiOriginStore.js +1 -1
  280. package/core/accessorSupport/Properties.js +1 -1
  281. package/core/accessorSupport/Property.js +1 -1
  282. package/core/accessorSupport/PropertyOrigin.js +1 -1
  283. package/core/accessorSupport/Store.js +1 -1
  284. package/core/accessorSupport/decorators/persistable.js +1 -1
  285. package/core/accessorSupport/defaultsStoreUtils.js +1 -1
  286. package/core/accessorSupport/overrideDefaultsFrom.js +1 -1
  287. package/core/accessorSupport/testSupport.js +1 -1
  288. package/core/accessorSupport/watch.js +1 -1
  289. package/core/accessorSupport/write.js +1 -1
  290. package/core/collectionUtils.js +1 -1
  291. package/core/colorUtils.js +1 -1
  292. package/core/heapSort.js +5 -0
  293. package/core/mathUtils.js +1 -1
  294. package/core/pbf.js +1 -1
  295. package/core/sql/AggregateFunctions.js +1 -1
  296. package/core/sql/SqlInterval.js +1 -1
  297. package/core/sql/StandardizedFunctions.js +1 -1
  298. package/core/sql/WhereClause.js +1 -1
  299. package/core/sql/errorSupport.js +1 -1
  300. package/core/sql/sqlArithmeticUtils.js +1 -1
  301. package/core/sql/sqlCompareUtils.js +1 -1
  302. package/core/sql/sqlDateParsingUtils.js +1 -1
  303. package/core/support/OwningCollection.js +1 -1
  304. package/core/unitFormatUtils.js +1 -1
  305. package/editing/sharedTemplates/executor/builders/pointAtAllVerticesOfLine.js +1 -1
  306. package/editing/sharedTemplates/executor/builders/pointAtBeginningOfLine.js +1 -1
  307. package/editing/sharedTemplates/executor/builders/pointAtBeginningOfRadial.js +1 -1
  308. package/editing/sharedTemplates/executor/builders/pointAtEndOfLine.js +1 -1
  309. package/editing/sharedTemplates/executor/builders/pointAtInteriorVertices.js +1 -1
  310. package/editing/sharedTemplates/executor/builders/pointAtNotBeginningOfLine.js +1 -1
  311. package/editing/sharedTemplates/executor/builders/pointAtNotEndOfLine.js +1 -1
  312. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  313. package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
  314. package/geometry/projection/computeTranslationToOriginAndRotation.js +1 -1
  315. package/geometry/projection/localLinearScaleFactors.js +1 -1
  316. package/geometry/projection/projectBoundingSphere.js +1 -1
  317. package/geometry/projection/projectors.js +1 -1
  318. package/geometry/support/Axis.js +0 -1
  319. package/geometry/support/SupportedGCSWkids.js +0 -1
  320. package/geometry/support/TileClipper.js +1 -1
  321. package/geometry/support/boundedPlane.js +1 -1
  322. package/geometry/support/coordinateSystem.js +1 -1
  323. package/geometry/support/coordsUtils.js +1 -1
  324. package/geometry/support/frustum.js +1 -1
  325. package/geometry/support/heightModelInfoUtils.js +1 -1
  326. package/geometry/support/meshUtils/exporters/gltf/bufferview.js +1 -1
  327. package/geometry/support/meshUtils/exporters/gltf/glb.js +1 -1
  328. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  329. package/geometry/support/meshUtils/exporters/gltf/gltfexport.js +1 -1
  330. package/geometry/support/meshUtils/exporters/gltf/gltftypes.js +0 -1
  331. package/geometry/support/meshUtils/exporters/gltf/types.js +0 -1
  332. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  333. package/geometry/support/meshUtils/projection.js +1 -1
  334. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  335. package/geometry/support/plane.js +1 -1
  336. package/geometry/support/planetGCSUtils.js +1 -1
  337. package/geometry/support/polygonExtentClipping.js +1 -1
  338. package/geometry/support/polygonUtils.js +1 -1
  339. package/geometry/support/spatialReferenceUtils.js +1 -1
  340. package/geometry/support/sphere.js +1 -1
  341. package/geometry/support/triangulationUtils.js +1 -1
  342. package/interfaces.d.ts +116 -22
  343. package/kernel.js +1 -1
  344. package/layers/BuildingSceneLayer.js +1 -1
  345. package/layers/FeatureLayer.js +1 -1
  346. package/layers/GroupLayer.js +1 -1
  347. package/layers/ILyr3DWasmPerSceneView.js +1 -1
  348. package/layers/ImageryLayer.js +1 -1
  349. package/layers/ImageryTileLayer.js +1 -1
  350. package/layers/IntegratedMeshLayer.js +1 -1
  351. package/layers/KnowledgeGraphLayer.js +1 -1
  352. package/layers/LinkChartLayer.js +1 -1
  353. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  354. package/layers/MapImageLayer.js +1 -1
  355. package/layers/MediaLayer.js +1 -1
  356. package/layers/OrientedImageryLayer.js +1 -1
  357. package/layers/PointCloudLayer.js +1 -1
  358. package/layers/SceneLayer.js +1 -1
  359. package/layers/StreamLayer.js +1 -1
  360. package/layers/SubtypeGroupLayer.js +1 -1
  361. package/layers/VideoLayer.js +1 -1
  362. package/layers/VoxelWasmPerSceneView.js +1 -1
  363. package/layers/WCSLayer.js +1 -1
  364. package/layers/catalog/CatalogFootprintLayer.js +1 -1
  365. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  366. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  367. package/layers/graphics/sources/interfaces.js +0 -1
  368. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  369. package/layers/mixins/ArcGISImageService.js +1 -1
  370. package/layers/mixins/ArcGISMapService.js +1 -1
  371. package/layers/mixins/FeatureLayerBase.js +1 -1
  372. package/layers/mixins/SceneService.js +1 -1
  373. package/layers/mixins/SublayersOwner.js +1 -1
  374. package/layers/ogc/ogcFeatureUtils.js +1 -1
  375. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  376. package/layers/orientedImagery/core/cameraOrientationRegistry.js +1 -1
  377. package/layers/orientedImagery/core/utils.js +1 -1
  378. package/layers/orientedImagery/enums/CameraOrientationType.js +0 -1
  379. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  380. package/layers/orientedImagery/transformations/utils.js +1 -1
  381. package/layers/support/ImageElement.js +1 -1
  382. package/layers/support/RasterJobHandler.js +1 -1
  383. package/layers/support/RasterWorker.js +1 -1
  384. package/layers/support/Sublayer.js +1 -1
  385. package/layers/support/TileInfo.js +1 -1
  386. package/layers/support/TilemapCache.js +1 -1
  387. package/layers/support/domainUtils.js +1 -1
  388. package/layers/support/fieldUtils.js +1 -1
  389. package/layers/support/layerOriginUtils.js +1 -1
  390. package/layers/support/mediaUtils.js +1 -1
  391. package/layers/support/rasterDatasets/pixelReader.js +1 -1
  392. package/layers/support/rasterFunctions/ExtractBandFunction.js +1 -1
  393. package/layers/support/rasterFunctions/ExtractBandFunctionArguments.js +1 -1
  394. package/layers/support/rasterFunctions/MaskFunction.js +1 -1
  395. package/layers/support/rasterFunctions/MaskFunctionArguments.js +1 -1
  396. package/layers/support/rasterFunctions/pixelUtils.js +1 -1
  397. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  398. package/layers/support/rasterFunctions/stretchUtils.js +1 -1
  399. package/layers/support/streamLayerUtils.js +1 -1
  400. package/layers/support/sublayerUtils.js +1 -1
  401. package/layers/support/wmtsUtils.js +1 -1
  402. package/layers/voxel/VoxelTransferFunctionStyle.js +1 -1
  403. package/libs/basisu/TextureFormat.js +0 -1
  404. package/libs/i3s/I3SModule.js +1 -1
  405. package/libs/i3s/enums.js +0 -1
  406. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  407. package/libs/lyr3d/enums.js +0 -1
  408. package/libs/vxl/enums.js +0 -1
  409. package/networks/RulesTable.js +1 -1
  410. package/networks/UtilityNetwork.js +1 -1
  411. package/networks/support/UtilityNetworkLookupHelper.js +1 -1
  412. package/networks/support/typeUtils.js +1 -1
  413. package/networks/support/utils.js +1 -1
  414. package/package.json +3 -3
  415. package/renderers/support/DictionaryLoader.js +1 -1
  416. package/renderers/visualVariables/SizeVariable.js +1 -1
  417. package/renderers/visualVariables/support/sizeVariableUtils.js +1 -1
  418. package/renderers/visualVariables/support/visualVariableUtils.js +1 -1
  419. package/rest/knowledgeGraph/ProtoFeatureCollection.js +1 -1
  420. package/rest/knowledgeGraph/wasmInterface/KnowledgeWasmInterface.js +0 -1
  421. package/rest/knowledgeGraph/wasmInterface/WasmClientDataInterfaces.js +0 -1
  422. package/rest/knowledgeGraph/wasmInterface/WasmQueryWrapperInterfaces.js +1 -1
  423. package/rest/knowledgeGraph/wasmInterface/WasmSerializedLayerData.js +1 -1
  424. package/rest/knowledgeGraph/wasmInterface/wasmToClientDataFactories.js +1 -1
  425. package/rest/knowledgeGraph/wasmInterface/wasmToGeometryFactories.js +1 -1
  426. package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
  427. package/rest/print.js +1 -1
  428. package/rest/support/meshFeatureSet.js +1 -1
  429. package/smartMapping/renderers/color.js +1 -1
  430. package/smartMapping/renderers/dotDensity.js +1 -1
  431. package/smartMapping/renderers/heatmap.js +1 -1
  432. package/smartMapping/renderers/pieChart.js +1 -1
  433. package/smartMapping/renderers/size.js +1 -1
  434. package/smartMapping/renderers/support/referenceSizeUtils.js +1 -1
  435. package/smartMapping/renderers/support/spikeUtils.js +1 -1
  436. package/smartMapping/renderers/type.js +1 -1
  437. package/smartMapping/statistics/heatmapStatistics.js +1 -1
  438. package/smartMapping/statistics/histogram.js +1 -1
  439. package/smartMapping/statistics/summaryStatistics.js +1 -1
  440. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  441. package/smartMapping/statistics/uniqueValues.js +1 -1
  442. package/smartMapping/support/adapters/support/layerUtils.js +1 -1
  443. package/support/persistableUrlUtils.js +1 -1
  444. package/support/revision.js +1 -1
  445. package/symbols/WaterSymbol3DLayer.js +1 -1
  446. package/symbols/cim/CIMEffects.js +1 -1
  447. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  448. package/symbols/cim/CIMSymbolHelper.js +1 -1
  449. package/symbols/cim/CurveHelper.js +1 -1
  450. package/symbols/cim/GeometryWalker.js +1 -1
  451. package/symbols/cim/animationUtils.js +1 -1
  452. package/symbols/cim/cimAnalyzer.js +1 -1
  453. package/symbols/cim/defaultCIMValues.js +1 -1
  454. package/symbols/cim/effects/EffectArrow.js +1 -1
  455. package/symbols/cim/effects/EffectBuffer.js +1 -1
  456. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  457. package/symbols/cim/effects/EffectDashes.js +1 -1
  458. package/symbols/cim/effects/EffectDonut.js +1 -1
  459. package/symbols/cim/effects/EffectEnclosingPolygon.js +1 -1
  460. package/symbols/cim/effects/EffectOffset.js +1 -1
  461. package/symbols/cim/effects/EffectWave.js +1 -1
  462. package/symbols/cim/enums.js +0 -1
  463. package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
  464. package/symbols/cim/placements/PlacementAtExtremities.js +1 -1
  465. package/symbols/cim/placements/PlacementAtRatioPositions.js +1 -1
  466. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  467. package/symbols/cim/placements/PlacementOnLine.js +1 -1
  468. package/symbols/cim/placements/PlacementPolygonCenter.js +1 -1
  469. package/symbols/support/materialUtils.js +1 -1
  470. package/symbols/support/previewCIMSymbol.js +1 -1
  471. package/symbols/support/previewSymbol2D.js +1 -1
  472. package/symbols/support/previewSymbol3D.js +1 -1
  473. package/symbols/support/previewUtils.js +1 -1
  474. package/symbols/support/previewWebStyleSymbol.js +1 -1
  475. package/symbols/support/symbolUtils.js +1 -1
  476. package/undoredo/OperationStatus.js +0 -1
  477. package/undoredo/UndoRedoError.js +1 -1
  478. package/undoredo/UndoableOperation.js +1 -1
  479. package/views/2d/FrameTask.js +1 -1
  480. package/views/2d/LabelManager.js +1 -1
  481. package/views/2d/engine/AFeatureContainer.js +1 -1
  482. package/views/2d/engine/Bitmap.js +1 -1
  483. package/views/2d/engine/BitmapContainer.js +1 -1
  484. package/views/2d/engine/BitmapTileContainer.js +1 -1
  485. package/views/2d/engine/ParentChildStage.js +1 -1
  486. package/views/2d/engine/Stage.js +1 -1
  487. package/views/2d/engine/flow/BrushFlow.js +1 -1
  488. package/views/2d/engine/flow/FlowContainer.js +1 -1
  489. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  490. package/views/2d/engine/flow/styles/Particles.js +1 -1
  491. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  492. package/views/2d/engine/imagery/BrushVectorField.js +1 -1
  493. package/views/2d/engine/imagery/RasterBitmap.js +1 -1
  494. package/views/2d/engine/imagery/RasterTileContainer.js +1 -1
  495. package/views/2d/engine/imagery/RasterVFContainer.js +1 -1
  496. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  497. package/views/2d/engine/imagery/RasterVFTileContainer.js +1 -1
  498. package/views/2d/engine/imagery/enums.js +0 -1
  499. package/views/2d/engine/vectorTiles/Feature.js +1 -1
  500. package/views/2d/engine/vectorTiles/GlyphMosaic.js +1 -1
  501. package/views/2d/engine/vectorTiles/Placement.js +1 -1
  502. package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
  503. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  504. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  505. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  506. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  507. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  508. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  509. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  510. package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
  511. package/views/2d/engine/vectorTiles/WorkerTile.js +1 -1
  512. package/views/2d/engine/vectorTiles/WorkerTileHandler.js +1 -1
  513. package/views/2d/engine/vectorTiles/buckets/CircleBucket.js +1 -1
  514. package/views/2d/engine/vectorTiles/buckets/FillBucket.js +1 -1
  515. package/views/2d/engine/vectorTiles/buckets/LineBucket.js +1 -1
  516. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  517. package/views/2d/engine/vectorTiles/decluttering/CollisionJob.js +1 -1
  518. package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
  519. package/views/2d/engine/vectorTiles/decluttering/jobsUtil.js +1 -1
  520. package/views/2d/engine/vectorTiles/decluttering/util.js +1 -1
  521. package/views/2d/engine/vectorTiles/enums.js +0 -1
  522. package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
  523. package/views/2d/engine/vectorTiles/shaders/VTLCircleMaterial.js +1 -1
  524. package/views/2d/engine/vectorTiles/shaders/VTLFillMaterial.js +1 -1
  525. package/views/2d/engine/vectorTiles/shaders/VTLLineMaterial.js +1 -1
  526. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  527. package/views/2d/engine/vectorTiles/shaders/VTLMaterialManager.js +1 -1
  528. package/views/2d/engine/vectorTiles/shaders/VTLSymbolMaterial.js +1 -1
  529. package/views/2d/engine/vectorTiles/shaders/enums.js +0 -1
  530. package/views/2d/engine/vectorTiles/style/StyleDefinition.js +1 -1
  531. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  532. package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
  533. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  534. package/views/2d/engine/webgl/BitBlitRenderer.js +1 -1
  535. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  536. package/views/2d/engine/webgl/FeatureTile.js +1 -1
  537. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  538. package/views/2d/engine/webgl/Mesh2D.js +1 -1
  539. package/views/2d/engine/webgl/Overlay.js +1 -1
  540. package/views/2d/engine/webgl/OverlayContainer.js +1 -1
  541. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  542. package/views/2d/engine/webgl/Painter.js +1 -1
  543. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  544. package/views/2d/engine/webgl/TextureManager.js +1 -1
  545. package/views/2d/engine/webgl/TileContainer.js +1 -1
  546. package/views/2d/engine/webgl/TurboLine.js +1 -1
  547. package/views/2d/engine/webgl/Utils.js +1 -1
  548. package/views/2d/engine/webgl/VertexStream.js +1 -1
  549. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  550. package/views/2d/engine/webgl/WGLContainer.js +1 -1
  551. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
  552. package/views/2d/engine/webgl/alignmentUtils.js +1 -1
  553. package/views/2d/engine/webgl/animatedFormats/utils.js +1 -1
  554. package/views/2d/engine/webgl/animations/instructions.js +1 -1
  555. package/views/2d/engine/webgl/animations/store/AnimationStore.js +1 -1
  556. package/views/2d/engine/webgl/brushes/BrushClip.js +1 -1
  557. package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +1 -1
  558. package/views/2d/engine/webgl/brushes/WGLBrushTileDebugInfo.js +1 -1
  559. package/views/2d/engine/webgl/brushes/WGLBrushVTLBackground.js +1 -1
  560. package/views/2d/engine/webgl/brushes/WGLBrushVTLCircle.js +1 -1
  561. package/views/2d/engine/webgl/brushes/WGLBrushVTLFill.js +1 -1
  562. package/views/2d/engine/webgl/brushes/WGLBrushVTLLine.js +1 -1
  563. package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +1 -1
  564. package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
  565. package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
  566. package/views/2d/engine/webgl/definitions.js +1 -1
  567. package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
  568. package/views/2d/engine/webgl/effects/HighlightEffect.js +1 -1
  569. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  570. package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
  571. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +1 -1
  572. package/views/2d/engine/webgl/effects/highlight/HighlightSurfaces.js +1 -1
  573. package/views/2d/engine/webgl/effects/post-processing/Bloom.js +1 -1
  574. package/views/2d/engine/webgl/effects/post-processing/Blur.js +1 -1
  575. package/views/2d/engine/webgl/effects/post-processing/Colorize.js +1 -1
  576. package/views/2d/engine/webgl/effects/post-processing/DropShadow.js +1 -1
  577. package/views/2d/engine/webgl/effects/post-processing/Opacity.js +1 -1
  578. package/views/2d/engine/webgl/enums.js +0 -1
  579. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  580. package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
  581. package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
  582. package/views/2d/engine/webgl/painter/RenderPass.js +1 -1
  583. package/views/2d/engine/webgl/shaderGraph/techniques/FeatureTechnique.js +1 -1
  584. package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
  585. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueType.js +0 -1
  586. package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
  587. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +1 -1
  588. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  589. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
  590. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  591. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  592. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  593. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechniques.js +1 -1
  594. package/views/2d/engine/webgl/shaderGraph/techniques/animated/enums.js +0 -1
  595. package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
  596. package/views/2d/engine/webgl/shaderGraph/techniques/blend/BlendTechnique.js +1 -1
  597. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
  598. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
  599. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  600. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
  601. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  602. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
  603. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  604. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  605. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientSizeHelper.js +1 -1
  606. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
  607. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  608. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  609. package/views/2d/engine/webgl/shaderGraph/techniques/fill/meshWriterUtils.js +1 -1
  610. package/views/2d/engine/webgl/shaderGraph/techniques/grid/GridTechnique.js +1 -1
  611. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
  612. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  613. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  614. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
  615. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  616. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
  617. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
  618. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  619. package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
  620. package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
  621. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  622. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  623. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterRegistry.js +1 -1
  624. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  625. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
  626. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  627. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterProcessorTechnique.js +1 -1
  628. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/AspectTechnique.js +1 -1
  629. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BandArithmeticTechnique.js +1 -1
  630. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BaseRasterProcessorTechnique.js +1 -1
  631. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ColormapToRGBTechnique.js +1 -1
  632. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CompositeBandTechnique.js +1 -1
  633. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ComputeChangeTechnique.js +1 -1
  634. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ContrastBrightnessTechnique.js +1 -1
  635. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ConvolutionTechnique.js +1 -1
  636. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CurvatureTechnique.js +1 -1
  637. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ExtractBandTechnique.js +1 -1
  638. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/FocalStatisticsTechnique.js +1 -1
  639. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/GrayscaleTechnique.js +1 -1
  640. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/HillshadeTechnique.js +1 -1
  641. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/LocalTechnique.js +1 -1
  642. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/MaskTechnique.js +1 -1
  643. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/NDVITechnique.js +1 -1
  644. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/RemapTechnique.js +1 -1
  645. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ReprojectTechnique.js +1 -1
  646. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ShadedReliefTechnique.js +1 -1
  647. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SlopeTechnique.js +1 -1
  648. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/StretchTechnique.js +1 -1
  649. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
  650. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/VisualVariableRotation.js +1 -1
  651. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  652. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  653. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  654. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  655. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  656. package/views/2d/grid/GridView2D.js +1 -1
  657. package/views/2d/input/handlers/KeyZoom.js +1 -1
  658. package/views/2d/interactive/SnappingVisualizer2D.js +1 -1
  659. package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
  660. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  661. package/views/2d/interactive/editingTools/manipulations/DragManipulation.js +1 -1
  662. package/views/2d/interactive/editingTools/manipulations/Manipulation.js +1 -1
  663. package/views/2d/interactive/editingTools/manipulations/RotateManipulation.js +1 -1
  664. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  665. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  666. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  667. package/views/2d/layers/MediaLayerView2D.js +1 -1
  668. package/views/2d/layers/TileLayerView2D.js +1 -1
  669. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  670. package/views/2d/layers/features/FeatureContainer.js +1 -1
  671. package/views/2d/layers/features/RenderState.js +1 -1
  672. package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
  673. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  674. package/views/2d/layers/features/schema/processor/StorageSchema.js +1 -1
  675. package/views/2d/layers/features/schema/processor/VisualVariablesSchema.js +1 -1
  676. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  677. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  678. package/views/2d/layers/features/schema/processor/symbols/utils.js +1 -1
  679. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  680. package/views/2d/layers/graphics/AGraphicContainer.js +1 -1
  681. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  682. package/views/2d/layers/graphics/GraphicContainer.js +1 -1
  683. package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
  684. package/views/2d/layers/imagery/ImageryView2D.js +1 -1
  685. package/views/2d/layers/support/DebugOverlay.js +1 -1
  686. package/views/2d/layers/support/DisplayGL.js +1 -1
  687. package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
  688. package/views/2d/magnifier/MagnifierView2D.js +1 -1
  689. package/views/2d/tiling/FeatureTileSubscriptionManager.js +1 -1
  690. package/views/2d/tiling/enums.js +0 -1
  691. package/views/3d/FocusAreasView.js +1 -1
  692. package/views/3d/analysis/AnalysisViewManager3D.js +1 -1
  693. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  694. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  695. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  696. package/views/3d/analysis/Dimension/DimensionController.js +1 -1
  697. package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
  698. package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
  699. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  700. package/views/3d/analysis/Dimension/LengthDimensionVisualization.js +1 -1
  701. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  702. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  703. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  704. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  705. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  706. package/views/3d/analysis/DirectLineMeasurement/interfaces.js +0 -1
  707. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  708. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  709. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  710. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  711. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  712. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
  713. package/views/3d/analysis/Slice/ResizeManipulator.js +1 -1
  714. package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
  715. package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
  716. package/views/3d/analysis/Slice/SliceController.js +1 -1
  717. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  718. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  719. package/views/3d/analysis/Viewshed/ArrowManipulator.js +1 -1
  720. package/views/3d/analysis/Viewshed/FieldOfViewManipulation.js +1 -1
  721. package/views/3d/analysis/Viewshed/ScaleOrientManipulation.js +1 -1
  722. package/views/3d/analysis/Viewshed/ViewshedConfiguration.js +1 -1
  723. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  724. package/views/3d/analysis/Viewshed/ViewshedVisualization.js +1 -1
  725. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  726. package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementController.js +1 -1
  727. package/views/3d/analysis/interfaces.js +0 -1
  728. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  729. package/views/3d/camera/constraintUtils/ConstraintOptions.js +1 -1
  730. package/views/3d/camera/constraintUtils/ConstraintTypes.js +0 -1
  731. package/views/3d/camera/constraintUtils/InteractionType.js +0 -1
  732. package/views/3d/camera/constraintUtils/TiltMode.js +0 -1
  733. package/views/3d/camera/constraintUtils/altitude.js +1 -1
  734. package/views/3d/camera/constraintUtils/common.js +1 -1
  735. package/views/3d/camera/constraintUtils/distance.js +1 -1
  736. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  737. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  738. package/views/3d/camera/constraintUtils.js +1 -1
  739. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  740. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  741. package/views/3d/environment/Clouds.glsl.js +1 -1
  742. package/views/3d/environment/Clouds.js +1 -1
  743. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  744. package/views/3d/environment/CloudsComposition.js +1 -1
  745. package/views/3d/environment/CloudsCompositionTechnique.js +1 -1
  746. package/views/3d/environment/CloudsParameters.js +1 -1
  747. package/views/3d/environment/CloudsPresets.js +1 -1
  748. package/views/3d/environment/CloudsRenderer.js +1 -1
  749. package/views/3d/environment/CloudsTechnique.js +1 -1
  750. package/views/3d/environment/CloudsTechniqueConfiguration.js +1 -1
  751. package/views/3d/environment/EnvironmentManager.js +1 -1
  752. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  753. package/views/3d/environment/Fog.js +1 -1
  754. package/views/3d/environment/FogTechnique.js +1 -1
  755. package/views/3d/environment/LocalAtmosphere.js +1 -1
  756. package/views/3d/environment/MarsAtmosphere.js +1 -1
  757. package/views/3d/environment/NoiseTextureAtlas.glsl.js +1 -1
  758. package/views/3d/environment/NoiseTextureAtlas.js +1 -1
  759. package/views/3d/environment/NoiseTextureAtlasConfiguration.js +1 -1
  760. package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
  761. package/views/3d/environment/Precipitation.glsl.js +1 -1
  762. package/views/3d/environment/Precipitation.js +1 -1
  763. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  764. package/views/3d/environment/PrecipitationTechniqueConfiguration.js +1 -1
  765. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  766. package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
  767. package/views/3d/environment/SimpleAtmosphereTechniqueConfiguration.js +1 -1
  768. package/views/3d/glTF/DefaultLoadingContext.js +1 -1
  769. package/views/3d/glTF/LoaderResult.js +1 -1
  770. package/views/3d/glTF/internal/Resource.js +1 -1
  771. package/views/3d/glTF/internal/enums.js +0 -1
  772. package/views/3d/glTF/internal/fillDefaults.js +1 -1
  773. package/views/3d/glTF/internal/resourceUtils.js +1 -1
  774. package/views/3d/glTF/loader.js +1 -1
  775. package/views/3d/input/SceneInputManager.js +1 -1
  776. package/views/3d/input/handlers/DragRotate.js +1 -1
  777. package/views/3d/input/handlers/GamepadNavigation.js +1 -1
  778. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  779. package/views/3d/input/handlers/MouseWheelZoom.js +1 -1
  780. package/views/3d/input/handlers/TwoFingerTilt.js +1 -1
  781. package/views/3d/interactive/Manipulator3D.js +1 -1
  782. package/views/3d/interactive/RenderObject.js +1 -1
  783. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  784. package/views/3d/interactive/editingTools/GrabbingState.js +0 -1
  785. package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
  786. package/views/3d/interactive/editingTools/ManipulatorState.js +1 -1
  787. package/views/3d/interactive/editingTools/ManipulatorType.js +0 -1
  788. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  789. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  790. package/views/3d/interactive/editingTools/isSupportedObjectUtils.js +1 -1
  791. package/views/3d/interactive/editingTools/lineObjectVisualElementUtils.js +1 -1
  792. package/views/3d/interactive/editingTools/manipulations/MoveManipulation.js +1 -1
  793. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  794. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  795. package/views/3d/interactive/editingTools/manipulations/MoveXYObjectManipulation.js +1 -1
  796. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  797. package/views/3d/interactive/editingTools/media/ControlPointOperations.js +1 -1
  798. package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
  799. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  800. package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
  801. package/views/3d/interactive/editingTools/originGeometryVisualElementUtils.js +1 -1
  802. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  803. package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
  804. package/views/3d/interactive/editingTools/reshape/isSupportedObject.js +1 -1
  805. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
  806. package/views/3d/interactive/editingTools/settings.js +1 -1
  807. package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
  808. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  809. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  810. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  811. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
  812. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  813. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  814. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  815. package/views/3d/interactive/editingTools/transform/isSupportedGraphic.js +1 -1
  816. package/views/3d/interactive/manipulatorUtils.js +1 -1
  817. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  818. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  819. package/views/3d/interactive/visualElements/DrapedVisualElementResources.js +1 -1
  820. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  821. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  822. package/views/3d/interactive/visualElements/MarkerVisualElement.js +1 -1
  823. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  824. package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
  825. package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
  826. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  827. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  828. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  829. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  830. package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
  831. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  832. package/views/3d/interactive/visualElements/ViewshedShapeVisualElement.js +1 -1
  833. package/views/3d/interactive/visualElements/VisualElementResources.js +1 -1
  834. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  835. package/views/3d/layers/DrapedSubView3D.js +1 -1
  836. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  837. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  838. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  839. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  840. package/views/3d/layers/I3SMeshView3D.js +1 -1
  841. package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
  842. package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
  843. package/views/3d/layers/II3SMeshView3D.js +0 -1
  844. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  845. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  846. package/views/3d/layers/Lyr3DWorker.js +1 -1
  847. package/views/3d/layers/MediaLayerView3D.js +1 -1
  848. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  849. package/views/3d/layers/RouteLayerView3D.js +1 -1
  850. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  851. package/views/3d/layers/SceneLayerView3D.js +1 -1
  852. package/views/3d/layers/SceneLayerWorker.js +1 -1
  853. package/views/3d/layers/StreamLayerView3D.js +1 -1
  854. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  855. package/views/3d/layers/graphics/DeconflictAABR.js +1 -1
  856. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  857. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  858. package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
  859. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  860. package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
  861. package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
  862. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  863. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  864. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  865. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  866. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  867. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  868. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  869. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  870. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  871. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  872. package/views/3d/layers/graphics/Graphics3DObjectStateSet.js +1 -1
  873. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  874. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  875. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  876. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  877. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  878. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  879. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  880. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  881. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  882. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  883. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  884. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  885. package/views/3d/layers/graphics/LabelDeconflictor.js +1 -1
  886. package/views/3d/layers/graphics/Labeler.js +1 -1
  887. package/views/3d/layers/graphics/Loadable.js +1 -1
  888. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  889. package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
  890. package/views/3d/layers/graphics/enums.js +0 -1
  891. package/views/3d/layers/graphics/interfaces.js +0 -1
  892. package/views/3d/layers/graphics/lineUtils.js +1 -1
  893. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  894. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  895. package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
  896. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  897. package/views/3d/layers/graphics/pipeline/rendering/LodRenderer.js +1 -1
  898. package/views/3d/layers/graphics/pipeline/rendering/RenderCommandContext.js +1 -1
  899. package/views/3d/layers/graphics/pipeline/symbolization/IconSymbolLayerRenderer.js +1 -1
  900. package/views/3d/layers/graphics/pipeline/symbolization/ObjectSymbolLayerRenderer.js +1 -1
  901. package/views/3d/layers/graphics/pipeline/symbolization/primitiveObjectUtils.js +1 -1
  902. package/views/3d/layers/graphics/placementUtils.js +1 -1
  903. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  904. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  905. package/views/3d/layers/i3s/BuildingFilterUtil.js +1 -1
  906. package/views/3d/layers/i3s/Highlights.js +1 -1
  907. package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
  908. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  909. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  910. package/views/3d/layers/i3s/I3SCrossfadeHelper.js +1 -1
  911. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  912. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  913. package/views/3d/layers/i3s/I3SLodHandling.js +1 -1
  914. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  915. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  916. package/views/3d/layers/i3s/I3SNode.js +1 -1
  917. package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
  918. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  919. package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
  920. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  921. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  922. package/views/3d/layers/i3s/IDBCache.js +1 -1
  923. package/views/3d/layers/i3s/Intersector.js +1 -1
  924. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  925. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  926. package/views/3d/layers/i3s/SymbologyInfo.js +1 -1
  927. package/views/3d/layers/i3s/enums.js +1 -1
  928. package/views/3d/layers/i3s/featureEditing.js +1 -1
  929. package/views/3d/layers/interfaces.js +0 -1
  930. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  931. package/views/3d/layers/support/FeatureTile.js +1 -1
  932. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  933. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  934. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  935. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  936. package/views/3d/layers/support/I3SLayerView.js +0 -1
  937. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  938. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  939. package/views/3d/layers/support/edgeUtils.js +1 -1
  940. package/views/3d/layers/support/fetchTile.js +1 -1
  941. package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
  942. package/views/3d/layers/support/overlayImageUtils.js +1 -1
  943. package/views/3d/layers/support/patternUtils.js +1 -1
  944. package/views/3d/layers/support/symbolColorUtils.js +1 -1
  945. package/views/3d/layers/support/uvUtils.js +1 -1
  946. package/views/3d/state/Constraints.js +1 -1
  947. package/views/3d/state/ConstraintsManager.js +1 -1
  948. package/views/3d/state/Frustum.js +1 -1
  949. package/views/3d/state/GoToOperation.js +1 -1
  950. package/views/3d/state/NearFarHeuristic.js +1 -1
  951. package/views/3d/state/SurfaceCollisionConstraint.js +1 -1
  952. package/views/3d/state/ViewState.js +1 -1
  953. package/views/3d/state/ViewStateManager.js +1 -1
  954. package/views/3d/state/controllers/AnimationController.js +1 -1
  955. package/views/3d/state/controllers/CameraController.js +1 -1
  956. package/views/3d/state/controllers/FovController.js +1 -1
  957. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  958. package/views/3d/state/controllers/InteractiveController.js +1 -1
  959. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  960. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  961. package/views/3d/state/controllers/RotateController.js +1 -1
  962. package/views/3d/state/controllers/SurfaceCollisionCorrectionController.js +1 -1
  963. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  964. package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
  965. package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
  966. package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
  967. package/views/3d/state/controllers/momentum/MomentumController.js +1 -1
  968. package/views/3d/state/controllers/momentum/PanPlanarMomentumController.js +1 -1
  969. package/views/3d/state/controllers/momentum/PanSphericalMomentumController.js +1 -1
  970. package/views/3d/state/controllers/momentum/RotationMomentumController.js +1 -1
  971. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  972. package/views/3d/state/controllers/momentum/ZoomSphericalMomentumController.js +1 -1
  973. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  974. package/views/3d/state/utils/navigationUtils.js +1 -1
  975. package/views/3d/support/EventedSet.js +1 -1
  976. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  977. package/views/3d/support/MemoryController.js +1 -1
  978. package/views/3d/support/RenderCoordsHelper.js +1 -1
  979. package/views/3d/support/ResourceController.js +1 -1
  980. package/views/3d/support/SceneViewPerformanceInfo.js +1 -1
  981. package/views/3d/support/SharedSymbolResources.js +1 -1
  982. package/views/3d/support/StreamDataLoader.js +1 -1
  983. package/views/3d/support/StreamTextureCollection.js +1 -1
  984. package/views/3d/support/ViewSlice.js +1 -1
  985. package/views/3d/support/cameraUtils.js +1 -1
  986. package/views/3d/support/cameraUtilsPlanar.js +1 -1
  987. package/views/3d/support/cameraUtilsSpherical.js +1 -1
  988. package/views/3d/support/downloadSlots.js +5 -0
  989. package/views/3d/support/engineContent/line.js +1 -1
  990. package/views/3d/support/engineContent/marker.js +1 -1
  991. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  992. package/views/3d/support/enums.js +4 -0
  993. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  994. package/views/3d/support/flow/StreamlinesResources3D.js +1 -1
  995. package/views/3d/support/flow/geometryUtils.js +1 -1
  996. package/views/3d/support/hitTest.js +1 -1
  997. package/views/3d/support/orientedBoundingBox.js +1 -1
  998. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  999. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  1000. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  1001. package/views/3d/support/popupHitTest.js +1 -1
  1002. package/views/3d/support/renderInfoUtils/line.js +1 -1
  1003. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  1004. package/views/3d/support/sunUtils.js +1 -1
  1005. package/views/3d/support/viewpointUtils.js +1 -1
  1006. package/views/3d/terrain/BlendLayersTechniqueConfiguration.js +1 -1
  1007. package/views/3d/terrain/BlendModeTechniqueConfiguration.js +1 -1
  1008. package/views/3d/terrain/ExtentHelper.js +1 -1
  1009. package/views/3d/terrain/Intersector.js +1 -1
  1010. package/views/3d/terrain/LayerClass.js +1 -1
  1011. package/views/3d/terrain/NeighborIndex.js +0 -1
  1012. package/views/3d/terrain/OverlayContent.js +0 -1
  1013. package/views/3d/terrain/OverlayManager.js +1 -1
  1014. package/views/3d/terrain/OverlayRenderTargets.js +1 -1
  1015. package/views/3d/terrain/OverlayRenderer.js +1 -1
  1016. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  1017. package/views/3d/terrain/PatchRenderData.js +1 -1
  1018. package/views/3d/terrain/PlanarPatch.js +1 -1
  1019. package/views/3d/terrain/RasterColorizerTechniqueConfiguration.js +1 -1
  1020. package/views/3d/terrain/RasterTile.js +1 -1
  1021. package/views/3d/terrain/RenderOrder.js +0 -1
  1022. package/views/3d/terrain/SphericalPatch.js +1 -1
  1023. package/views/3d/terrain/TerrainAttributes.js +1 -1
  1024. package/views/3d/terrain/TerrainRenderer.js +1 -1
  1025. package/views/3d/terrain/TerrainSurface.js +1 -1
  1026. package/views/3d/terrain/TextureFader.js +1 -1
  1027. package/views/3d/terrain/Tile.js +1 -1
  1028. package/views/3d/terrain/TileAgent.js +1 -1
  1029. package/views/3d/terrain/TileBlendTechniqueConfiguration.js +1 -1
  1030. package/views/3d/terrain/TileCompositor.js +1 -1
  1031. package/views/3d/terrain/TileFrustumVisibility.js +0 -1
  1032. package/views/3d/terrain/TilePerLayerInfo.js +1 -1
  1033. package/views/3d/terrain/TileRenderer.js +1 -1
  1034. package/views/3d/terrain/TileUpdate.js +0 -1
  1035. package/views/3d/terrain/TilingSchemeLogic.js +1 -1
  1036. package/views/3d/terrain/TransparencyMode.js +0 -1
  1037. package/views/3d/terrain/interfaces.js +0 -1
  1038. package/views/3d/terrain/terrainUtils.js +1 -1
  1039. package/views/3d/terrain/tileUtils.js +1 -1
  1040. package/views/3d/webgl/ManagedColorAttachment.js +1 -1
  1041. package/views/3d/webgl/ManagedDepthAttachment.js +1 -1
  1042. package/views/3d/webgl/ManagedDepthTexture.js +1 -1
  1043. package/views/3d/webgl/ManagedFBO.js +1 -1
  1044. package/views/3d/webgl/ManagedFBOResource.js +1 -1
  1045. package/views/3d/webgl/RenderCamera.js +1 -1
  1046. package/views/3d/webgl/RenderNode.js +1 -1
  1047. package/views/3d/webgl-engine/Stage.js +1 -1
  1048. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  1049. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  1050. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  1051. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  1052. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  1053. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  1054. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  1055. package/views/3d/webgl-engine/collections/Component/Material/shader/DecodeSymbolColor.glsl.js +6 -6
  1056. package/views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardMode.js +0 -1
  1057. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  1058. package/views/3d/webgl-engine/collections/Component/UniformComponentParameters.js +1 -1
  1059. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  1060. package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
  1061. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  1062. package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
  1063. package/views/3d/webgl-engine/core/renderPasses/RenderPassIdentifier.js +0 -1
  1064. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  1065. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +3 -3
  1066. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js +3 -3
  1067. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  1068. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutputConfiguration.js +1 -1
  1069. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstanceColor.glsl.js +4 -4
  1070. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +10 -10
  1071. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
  1072. package/views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js +4 -4
  1073. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +6 -6
  1074. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +8 -8
  1075. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +5 -5
  1076. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +2 -2
  1077. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +3 -3
  1078. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -2
  1079. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +5 -5
  1080. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +3 -3
  1081. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +15 -15
  1082. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +14 -14
  1083. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDRenderStyle.js +0 -1
  1084. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js +1 -1
  1085. package/views/3d/webgl-engine/core/shaderLibrary/output/BlendOptions.js +1 -1
  1086. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +4 -4
  1087. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +2 -2
  1088. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +6 -6
  1089. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlightOverlay.js +2 -2
  1090. package/views/3d/webgl-engine/core/shaderLibrary/raster/RasterColorizer.glsl.js +1 -1
  1091. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeFragmentNormals.glsl.js +6 -6
  1092. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +7 -7
  1093. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +5 -5
  1094. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +15 -15
  1095. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +3 -3
  1096. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +5 -5
  1097. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js +11 -11
  1098. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +10 -10
  1099. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +2 -2
  1100. package/views/3d/webgl-engine/core/shaderLibrary/shading/TextureTransformUV.glsl.js +6 -6
  1101. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +8 -8
  1102. package/views/3d/webgl-engine/core/shaderLibrary/terrain/BaseOpacityMode.js +0 -1
  1103. package/views/3d/webgl-engine/core/shaderLibrary/terrain/BlendLayersOutput.js +0 -1
  1104. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +7 -7
  1105. package/views/3d/webgl-engine/core/shaderLibrary/terrain/PremultipliedAlphaSource.js +0 -1
  1106. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +8 -8
  1107. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBackground.glsl.js +6 -6
  1108. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBlendInput.js +0 -1
  1109. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +2 -2
  1110. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  1111. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +23 -23
  1112. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +10 -10
  1113. package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +3 -3
  1114. package/views/3d/webgl-engine/core/shaderLibrary/util/EllipsoidMode.js +1 -1
  1115. package/views/3d/webgl-engine/core/shaderLibrary/util/MixExternalColor.glsl.js +6 -6
  1116. package/views/3d/webgl-engine/core/shaderModules/BooleanBindUniform.js +1 -1
  1117. package/views/3d/webgl-engine/core/shaderModules/BooleanPassUniform.js +1 -1
  1118. package/views/3d/webgl-engine/core/shaderModules/Float2BindUniform.js +1 -1
  1119. package/views/3d/webgl-engine/core/shaderModules/Float2DrawUniform.js +1 -1
  1120. package/views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js +1 -1
  1121. package/views/3d/webgl-engine/core/shaderModules/Float3BindUniform.js +1 -1
  1122. package/views/3d/webgl-engine/core/shaderModules/Float3DrawUniform.js +1 -1
  1123. package/views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js +1 -1
  1124. package/views/3d/webgl-engine/core/shaderModules/Float4BindUniform.js +1 -1
  1125. package/views/3d/webgl-engine/core/shaderModules/Float4DrawUniform.js +1 -1
  1126. package/views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js +1 -1
  1127. package/views/3d/webgl-engine/core/shaderModules/Float4sPassUniform.js +1 -1
  1128. package/views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js +1 -1
  1129. package/views/3d/webgl-engine/core/shaderModules/FloatDrawUniform.js +1 -1
  1130. package/views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js +1 -1
  1131. package/views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js +1 -1
  1132. package/views/3d/webgl-engine/core/shaderModules/Integer2BindUniform.js +1 -1
  1133. package/views/3d/webgl-engine/core/shaderModules/Integer2PassUniform.js +1 -1
  1134. package/views/3d/webgl-engine/core/shaderModules/IntegerBindUniform.js +1 -1
  1135. package/views/3d/webgl-engine/core/shaderModules/IntegerDrawUniform.js +1 -1
  1136. package/views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js +1 -1
  1137. package/views/3d/webgl-engine/core/shaderModules/Matrix3DrawUniform.js +1 -1
  1138. package/views/3d/webgl-engine/core/shaderModules/Matrix3PassUniform.js +1 -1
  1139. package/views/3d/webgl-engine/core/shaderModules/Matrix4BindUniform.js +1 -1
  1140. package/views/3d/webgl-engine/core/shaderModules/Matrix4DrawUniform.js +1 -1
  1141. package/views/3d/webgl-engine/core/shaderModules/Matrix4PassUniform.js +1 -1
  1142. package/views/3d/webgl-engine/core/shaderModules/Matrix4sDrawUniform.js +1 -1
  1143. package/views/3d/webgl-engine/core/shaderModules/Matrix4sPassUniform.js +1 -1
  1144. package/views/3d/webgl-engine/core/shaderModules/Texture2DArrayBindUniform.js +1 -1
  1145. package/views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js +1 -1
  1146. package/views/3d/webgl-engine/core/shaderModules/Texture2DDrawUniform.js +1 -1
  1147. package/views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js +1 -1
  1148. package/views/3d/webgl-engine/core/shaderModules/Texture2DShadowBindUniform.js +1 -1
  1149. package/views/3d/webgl-engine/core/shaderModules/Texture2DUintBindUniform.js +1 -1
  1150. package/views/3d/webgl-engine/core/shaderModules/Texture2DUintPassUniform.js +1 -1
  1151. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  1152. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConstructionContext.js +1 -1
  1153. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  1154. package/views/3d/webgl-engine/effects/OpaqueEnvironment.js +1 -1
  1155. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  1156. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  1157. package/views/3d/webgl-engine/effects/ScreenSpaceGeometry.js +1 -1
  1158. package/views/3d/webgl-engine/effects/TransparentEnvironment.js +1 -1
  1159. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  1160. package/views/3d/webgl-engine/effects/bloom/BloomBlur.glsl.js +1 -1
  1161. package/views/3d/webgl-engine/effects/bloom/BloomBlurTechnique.js +1 -1
  1162. package/views/3d/webgl-engine/effects/bloom/BloomBlurTechniqueConfiguration.js +1 -1
  1163. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  1164. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +4 -4
  1165. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  1166. package/views/3d/webgl-engine/effects/focusArea/FocusAreaEffect.js +0 -1
  1167. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  1168. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  1169. package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
  1170. package/views/3d/webgl-engine/effects/geometry/ObjectAndLayerIDRenderNode.js +1 -1
  1171. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  1172. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  1173. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  1174. package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
  1175. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  1176. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  1177. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  1178. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
  1179. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  1180. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  1181. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  1182. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  1183. package/views/3d/webgl-engine/effects/stars/Stars.glsl.js +1 -1
  1184. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  1185. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  1186. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  1187. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  1188. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  1189. package/views/3d/webgl-engine/lib/DDSUtil.js +1 -1
  1190. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
  1191. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  1192. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  1193. package/views/3d/webgl-engine/lib/GLMaterial.js +1 -1
  1194. package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
  1195. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  1196. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  1197. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  1198. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  1199. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  1200. package/views/3d/webgl-engine/lib/HUDIntersectorResult.js +1 -1
  1201. package/views/3d/webgl-engine/lib/IntersectableGeometry.js +0 -1
  1202. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  1203. package/views/3d/webgl-engine/lib/IntersectorInterfaces.js +1 -1
  1204. package/views/3d/webgl-engine/lib/IntersectorResult.js +1 -1
  1205. package/views/3d/webgl-engine/lib/IntersectorType.js +0 -1
  1206. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  1207. package/views/3d/webgl-engine/lib/Material.js +1 -1
  1208. package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
  1209. package/views/3d/webgl-engine/lib/ModelDirtyTypes.js +0 -1
  1210. package/views/3d/webgl-engine/lib/OITPass.js +0 -1
  1211. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  1212. package/views/3d/webgl-engine/lib/Object3DStateID.js +1 -1
  1213. package/views/3d/webgl-engine/lib/Object3DStateSet.js +1 -1
  1214. package/views/3d/webgl-engine/lib/ObjectIntersectorResult.js +1 -1
  1215. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  1216. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  1217. package/views/3d/webgl-engine/lib/Path.js +1 -1
  1218. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  1219. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  1220. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  1221. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  1222. package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
  1223. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  1224. package/views/3d/webgl-engine/lib/RenderSlot.js +0 -1
  1225. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  1226. package/views/3d/webgl-engine/lib/RendererBase.js +1 -1
  1227. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  1228. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  1229. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  1230. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  1231. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  1232. package/views/3d/webgl-engine/lib/StencilUtils.js +1 -1
  1233. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  1234. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  1235. package/views/3d/webgl-engine/lib/TextTextureFactory.js +1 -1
  1236. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  1237. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
  1238. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  1239. package/views/3d/webgl-engine/lib/Update.js +0 -1
  1240. package/views/3d/webgl-engine/lib/UpdatePolicy.js +0 -1
  1241. package/views/3d/webgl-engine/lib/VertexAttribute.js +1 -1
  1242. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  1243. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  1244. package/views/3d/webgl-engine/lib/WebGLLayer.js +1 -1
  1245. package/views/3d/webgl-engine/lib/basicInterfaces.js +0 -1
  1246. package/views/3d/webgl-engine/lib/bufferVectorMath.js +5 -0
  1247. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  1248. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  1249. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  1250. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
  1251. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  1252. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  1253. package/views/3d/webgl-engine/lib/edgeRendering/edgeProcessing.js +1 -1
  1254. package/views/3d/webgl-engine/lib/edgeRendering/interfaces.js +0 -1
  1255. package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
  1256. package/views/3d/webgl-engine/lib/edgeRendering/util.js +1 -1
  1257. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  1258. package/views/3d/webgl-engine/lib/lodRendering/BackedBufferObject.js +1 -1
  1259. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  1260. package/views/3d/webgl-engine/lib/lodRendering/Intersector.js +1 -1
  1261. package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
  1262. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  1263. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  1264. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  1265. package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
  1266. package/views/3d/webgl-engine/lib/screenSizePerspectiveUtils.js +1 -1
  1267. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  1268. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  1269. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  1270. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  1271. package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
  1272. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  1273. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  1274. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  1275. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  1276. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  1277. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  1278. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  1279. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  1280. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  1281. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  1282. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  1283. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  1284. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  1285. package/views/3d/webgl-engine/materials/PatternStyle.js +0 -1
  1286. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  1287. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  1288. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  1289. package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
  1290. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  1291. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  1292. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  1293. package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
  1294. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  1295. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  1296. package/views/3d/webgl-engine/materials/renderers/VaoCache.js +1 -1
  1297. package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
  1298. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  1299. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  1300. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +4 -4
  1301. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  1302. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  1303. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  1304. package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
  1305. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  1306. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  1307. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  1308. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  1309. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  1310. package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
  1311. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  1312. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  1313. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  1314. package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +1 -1
  1315. package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +1 -1
  1316. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  1317. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  1318. package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
  1319. package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
  1320. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  1321. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  1322. package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
  1323. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  1324. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  1325. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  1326. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  1327. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  1328. package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
  1329. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  1330. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  1331. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  1332. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  1333. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +9 -9
  1334. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +1 -1
  1335. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  1336. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  1337. package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
  1338. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  1339. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  1340. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  1341. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  1342. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  1343. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  1344. package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +4 -4
  1345. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  1346. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  1347. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
  1348. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
  1349. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  1350. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +1 -1
  1351. package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +1 -1
  1352. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +1 -1
  1353. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  1354. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +1 -1
  1355. package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
  1356. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  1357. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  1358. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  1359. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  1360. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  1361. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  1362. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShader.glsl.js +1 -1
  1363. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +17 -17
  1364. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +4 -4
  1365. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +8 -8
  1366. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +7 -7
  1367. package/views/SceneView.js +1 -1
  1368. package/views/ToolViewManager.js +1 -1
  1369. package/views/VideoView.js +1 -1
  1370. package/views/ViewingMode.js +1 -1
  1371. package/views/draw/DrawAction.js +1 -1
  1372. package/views/draw/DrawOperation.js +1 -1
  1373. package/views/draw/SegmentDrawAction.js +1 -1
  1374. package/views/draw/support/Reshape.js +1 -1
  1375. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  1376. package/views/input/IViewEvents.js +0 -1
  1377. package/views/input/InputManager.js +1 -1
  1378. package/views/input/ViewEvents.js +1 -1
  1379. package/views/input/recognizers/Drag.js +1 -1
  1380. package/views/interactive/InteractiveToolBase.js +1 -1
  1381. package/views/interactive/ManipulatorCollection.js +1 -1
  1382. package/views/interactive/SegmentLabels.js +1 -1
  1383. package/views/interactive/ToolIntersector.js +1 -1
  1384. package/views/interactive/coordinateHelper.js +1 -1
  1385. package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
  1386. package/views/interactive/editGeometry/interfaces.js +0 -1
  1387. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  1388. package/views/interactive/editGeometry/operations/RotateVertex.js +1 -1
  1389. package/views/interactive/editGeometry/operations/ScaleVertex.js +1 -1
  1390. package/views/interactive/editGeometry/operations/UpdateVertices.js +1 -1
  1391. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  1392. package/views/interactive/editGeometry/unnormalizationHelper.js +1 -1
  1393. package/views/interactive/interactiveToolUtils.js +1 -1
  1394. package/views/interactive/interfaces.js +0 -1
  1395. package/views/interactive/sketch/SketchValueOptions.js +1 -1
  1396. package/views/interactive/sketch/constraintUtils.js +1 -1
  1397. package/views/interactive/sketch/constraints.js +1 -1
  1398. package/views/interactive/sketch/normalizedPoint.js +1 -1
  1399. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  1400. package/views/interactive/snapping/LineSnapper.js +1 -1
  1401. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  1402. package/views/interactive/snapping/SelfSnappingEngine.js +1 -1
  1403. package/views/interactive/snapping/SnappingDomain.js +0 -1
  1404. package/views/interactive/snapping/SnappingManager.js +1 -1
  1405. package/views/interactive/snapping/candidates/DrapedEdgeSnappingCandidate.js +1 -1
  1406. package/views/interactive/snapping/candidates/EdgeSnappingCandidate.js +1 -1
  1407. package/views/interactive/snapping/candidates/FeatureSnappingCandidate.js +1 -1
  1408. package/views/interactive/snapping/candidates/IntersectionSnappingCandidate.js +1 -1
  1409. package/views/interactive/snapping/candidates/LineSnappingCandidate.js +1 -1
  1410. package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
  1411. package/views/interactive/snapping/candidates/RightAngleSnappingCandidate.js +1 -1
  1412. package/views/interactive/snapping/candidates/RightAngleTriangleSnappingCandidate.js +1 -1
  1413. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  1414. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  1415. package/views/interactive/snapping/featureSources/featureServiceSource/PendingFeatureTile.js +1 -1
  1416. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  1417. package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
  1418. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  1419. package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
  1420. package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
  1421. package/views/interactive/snapping/snappingUtils.js +1 -1
  1422. package/views/interactive/tooltip/fields/fields.js +1 -1
  1423. package/views/layers/LayerView.js +1 -1
  1424. package/views/layers/support/editableLayerViews.js +1 -1
  1425. package/views/support/DefaultsFromMap.js +1 -1
  1426. package/views/support/LayerLayerViewInfo.js +1 -1
  1427. package/views/support/LayerViewManager.js +1 -1
  1428. package/views/support/PixelHighlightOptions.js +5 -0
  1429. package/views/support/RenderState.js +0 -1
  1430. package/views/support/Scheduler.js +1 -1
  1431. package/views/support/TextureCompressionWorker.js +1 -1
  1432. package/views/support/TextureCompressionWorkerHandle.js +1 -1
  1433. package/views/support/angularMeasurementUtils.js +1 -1
  1434. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  1435. package/views/support/geometry2dUtils.js +1 -1
  1436. package/views/support/geometry3dUtils.js +1 -1
  1437. package/views/support/imageReprojection.js +1 -1
  1438. package/views/support/spatialReferenceSupport.js +1 -1
  1439. package/views/ui/UI.js +1 -1
  1440. package/views/webgl/AppleAmdDriverHelper.js +1 -1
  1441. package/views/webgl/BindType.js +0 -1
  1442. package/views/webgl/BufferObject.js +1 -1
  1443. package/views/webgl/ContextState.js +1 -1
  1444. package/views/webgl/FBOAttachmentType.js +0 -1
  1445. package/views/webgl/FramebufferObject.js +1 -1
  1446. package/views/webgl/Program.js +1 -1
  1447. package/views/webgl/Renderbuffer.js +1 -1
  1448. package/views/webgl/RenderingContext.js +1 -1
  1449. package/views/webgl/ShaderBuilder.js +1 -1
  1450. package/views/webgl/ShaderTranspiler.js +1 -1
  1451. package/views/webgl/Texture.js +1 -1
  1452. package/views/webgl/TextureDescriptor.js +1 -1
  1453. package/views/webgl/Uniform.js +1 -1
  1454. package/views/webgl/UniformBufferObject.js +1 -1
  1455. package/views/webgl/Util.js +1 -1
  1456. package/views/webgl/ValidatedTextureDescriptor.js +1 -1
  1457. package/views/webgl/checkWebGLError.js +1 -1
  1458. package/views/webgl/enums.js +1 -1
  1459. package/views/webgl/heatmapTextureUtils.js +1 -1
  1460. package/views/webgl/rasterUtils.js +1 -1
  1461. package/views/webgl/renderState.js +1 -1
  1462. package/views/webgl/storageLayouts.js +1 -1
  1463. package/views/webgl/testAppleAmdDrawArrays.js +1 -1
  1464. package/views/webgl/testFloatBufferBlend.js +1 -1
  1465. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  1466. package/views/webgl/textureUtils.js +1 -1
  1467. package/webdoc/interfaces.js +0 -1
  1468. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  1469. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  1470. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  1471. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  1472. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  1473. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  1474. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  1475. package/widgets/BatchAttributeForm.js +1 -1
  1476. package/widgets/Daylight/DaylightViewModel.js +1 -1
  1477. package/widgets/Daylight/support/daylightUtils.js +1 -1
  1478. package/widgets/Directions/DirectionsViewModel.js +1 -1
  1479. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  1480. package/widgets/Editor/workflowUtils.js +1 -1
  1481. package/widgets/ElevationProfile/ElevationProfileInteraction.js +1 -1
  1482. package/widgets/ElevationProfile/ElevationProfileLineView.js +1 -1
  1483. package/widgets/ElevationProfile/ElevationProfileTool.js +1 -1
  1484. package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
  1485. package/widgets/ElevationProfile/support/ElevationProfileView2D.js +1 -1
  1486. package/widgets/ElevationProfile/support/ElevationProfileView3D.js +1 -1
  1487. package/widgets/ElevationProfile/support/InputRepresentation3D.js +1 -1
  1488. package/widgets/ElevationProfile/support/ProfileGenerationError.js +1 -1
  1489. package/widgets/ElevationProfile/support/constants.js +1 -1
  1490. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  1491. package/widgets/ElevationProfile/support/profileUtils.js +1 -1
  1492. package/widgets/ElevationProfile.js +1 -1
  1493. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  1494. package/widgets/FeatureForm/FieldInput.js +1 -1
  1495. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  1496. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  1497. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  1498. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  1499. package/widgets/OrientedImageryViewer.js +1 -1
  1500. package/widgets/Print/PrintViewModel.js +1 -1
  1501. package/widgets/Print/utils.js +1 -1
  1502. package/widgets/Print.js +1 -1
  1503. package/widgets/ScaleRangeSlider/scalePreviewUtils.js +1 -1
  1504. package/widgets/ShadowCast/DurationMode.js +0 -1
  1505. package/widgets/ShadowCast/DurationOptions.js +1 -1
  1506. package/widgets/ShadowCast/ShadowCastState.js +0 -1
  1507. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  1508. package/widgets/ShadowCast/ShadowTooltipViewModel.js +1 -1
  1509. package/widgets/ShadowCast/ShadowVisualizationType.js +1 -1
  1510. package/widgets/ShadowCast/components/DurationConfigurator.js +1 -1
  1511. package/widgets/ShadowCast.js +1 -1
  1512. package/widgets/Sketch/SketchViewModel.js +1 -1
  1513. package/widgets/Sketch/support/sketchUtils.js +1 -1
  1514. package/widgets/Sketch.js +1 -1
  1515. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  1516. package/widgets/Weather/WeatherViewModel.js +1 -1
  1517. package/widgets/Weather/enums.js +0 -1
  1518. package/widgets/Weather.js +1 -1
  1519. package/widgets/Widget.js +1 -1
  1520. package/widgets/support/AnalysisViewModel.js +1 -1
  1521. package/widgets/support/forms/formUtils.js +1 -1
  1522. package/widgets/support/uriUtils.js +1 -1
  1523. package/assets/esri/core/workers/chunks/026fbeb0ff5b9e6c74df.js +0 -1
  1524. package/assets/esri/core/workers/chunks/03bef3f4b6b09b1e864b.js +0 -1
  1525. package/assets/esri/core/workers/chunks/07613c89255bdab6b7c6.js +0 -1
  1526. package/assets/esri/core/workers/chunks/09618761df5c4fdd52a0.js +0 -1
  1527. package/assets/esri/core/workers/chunks/0ae00339991f5387203e.js +0 -1
  1528. package/assets/esri/core/workers/chunks/0b4b294f3ce74fde5620.js +0 -1
  1529. package/assets/esri/core/workers/chunks/0becc660e8ee6c5d02b5.js +0 -1
  1530. package/assets/esri/core/workers/chunks/0e96a3b7228f1ff8e6c5.js +0 -1
  1531. package/assets/esri/core/workers/chunks/12723e79b996969e304e.js +0 -1
  1532. package/assets/esri/core/workers/chunks/12a16f0fd77371d61c2a.js +0 -1
  1533. package/assets/esri/core/workers/chunks/15064c3b21b325d5c2f6.js +0 -1
  1534. package/assets/esri/core/workers/chunks/1597aca21334cab3b802.js +0 -1
  1535. package/assets/esri/core/workers/chunks/196564ad230bef6b59cf.js +0 -1
  1536. package/assets/esri/core/workers/chunks/19f8d551cbebc11db1eb.js +0 -1
  1537. package/assets/esri/core/workers/chunks/1ceee047e3fa617b0600.js +0 -1
  1538. package/assets/esri/core/workers/chunks/1cf0fae3f2e848a2a738.js +0 -1
  1539. package/assets/esri/core/workers/chunks/1f296f85becf1ca6714d.js +0 -1
  1540. package/assets/esri/core/workers/chunks/1f8d7bd44d53c30df383.js +0 -1
  1541. package/assets/esri/core/workers/chunks/1fabb5ec59da698c1618.js +0 -1
  1542. package/assets/esri/core/workers/chunks/20bcd2e6cf02e057ad7d.js +0 -1
  1543. package/assets/esri/core/workers/chunks/219b2911668db120452b.js +0 -1
  1544. package/assets/esri/core/workers/chunks/24fe862b607ec927e07f.js +0 -1
  1545. package/assets/esri/core/workers/chunks/29ae5723fa35aa73ff9b.js +0 -1
  1546. package/assets/esri/core/workers/chunks/2a6df3f0a166eb886554.js +0 -1
  1547. package/assets/esri/core/workers/chunks/2b4b073254fe8b6a081c.js +0 -1
  1548. package/assets/esri/core/workers/chunks/30293b88501b5d6162fc.js +0 -1
  1549. package/assets/esri/core/workers/chunks/31533f5e8b76b307f61c.js +0 -1
  1550. package/assets/esri/core/workers/chunks/347117e61e1c6edd074f.js +0 -1
  1551. package/assets/esri/core/workers/chunks/3616eb2607843524483f.js +0 -1
  1552. package/assets/esri/core/workers/chunks/3629d5e1a8e9bece0ed8.js +0 -1
  1553. package/assets/esri/core/workers/chunks/3793f282ddaccd3465f2.js +0 -1
  1554. package/assets/esri/core/workers/chunks/394477e88be0c6790f02.js +0 -1
  1555. package/assets/esri/core/workers/chunks/3be9ec0503a669bcfce6.js +0 -1
  1556. package/assets/esri/core/workers/chunks/3c9cf06ac6aa1db6c4f6.js +0 -1
  1557. package/assets/esri/core/workers/chunks/3d020f2e454c1e4babee.js +0 -1
  1558. package/assets/esri/core/workers/chunks/3ed7d19bbbad6c4a1cba.js +0 -1
  1559. package/assets/esri/core/workers/chunks/42cddc8f8c8d73e22ee2.js +0 -1
  1560. package/assets/esri/core/workers/chunks/437a4100a837ee16df7c.js +0 -1
  1561. package/assets/esri/core/workers/chunks/4405c765786c895365fb.js +0 -42
  1562. package/assets/esri/core/workers/chunks/453e536f566d80a9863b.js +0 -1
  1563. package/assets/esri/core/workers/chunks/4b68b6985430c42316b7.js +0 -1
  1564. package/assets/esri/core/workers/chunks/4ce671bc4d36387b55fa.js +0 -1
  1565. package/assets/esri/core/workers/chunks/4cea5170939c8d363ef7.js +0 -1
  1566. package/assets/esri/core/workers/chunks/4f14e78d0560050c1a81.js +0 -1
  1567. package/assets/esri/core/workers/chunks/4f691962b96e78cbe1a9.js +0 -1
  1568. package/assets/esri/core/workers/chunks/51cfa2f70ec222e1582b.js +0 -1
  1569. package/assets/esri/core/workers/chunks/5253cca467fe9bc0a210.js +0 -1
  1570. package/assets/esri/core/workers/chunks/55c903d93b15f4e723d4.js +0 -1
  1571. package/assets/esri/core/workers/chunks/585031826294d5130813.js +0 -1
  1572. package/assets/esri/core/workers/chunks/5b276962c46c57155166.js +0 -1
  1573. package/assets/esri/core/workers/chunks/5bfcb3d87380e7f85b08.js +0 -1
  1574. package/assets/esri/core/workers/chunks/60aeb7a5ccd8bc71be02.js +0 -1
  1575. package/assets/esri/core/workers/chunks/63966066a963e9a1fb14.js +0 -1
  1576. package/assets/esri/core/workers/chunks/63f50ff2ae94f684d56b.js +0 -1
  1577. package/assets/esri/core/workers/chunks/66757fc16316a5c50e1e.js +0 -1
  1578. package/assets/esri/core/workers/chunks/6a14af239b400b0976c5.js +0 -1
  1579. package/assets/esri/core/workers/chunks/6a1cf6b0ffdf6080b5c4.js +0 -1
  1580. package/assets/esri/core/workers/chunks/6b4e66eb0cb37f293cf8.js +0 -1
  1581. package/assets/esri/core/workers/chunks/6c33ecffbc783cb8f944.js +0 -1
  1582. package/assets/esri/core/workers/chunks/6ce4327f63e6eb92bba8.js +0 -1
  1583. package/assets/esri/core/workers/chunks/6deaa08e3a61a455e564.js +0 -1
  1584. package/assets/esri/core/workers/chunks/6efc3d120c9c2c09cb06.js +0 -1
  1585. package/assets/esri/core/workers/chunks/6f9f32b7de59b4d9cd97.js +0 -2
  1586. package/assets/esri/core/workers/chunks/7338ce95bceb2c7fab87.js +0 -1
  1587. package/assets/esri/core/workers/chunks/771012f129890f9a089c.js +0 -1
  1588. package/assets/esri/core/workers/chunks/780ff9314f26ae62f75f.js +0 -1
  1589. package/assets/esri/core/workers/chunks/7a08d6d8e5e430658f3a.js +0 -1
  1590. package/assets/esri/core/workers/chunks/7a5a1d01a89383faf4fd.js +0 -1
  1591. package/assets/esri/core/workers/chunks/7d0c4e1518a6a63a3f87.js +0 -1
  1592. package/assets/esri/core/workers/chunks/8000e2e80fff7752e761.js +0 -1
  1593. package/assets/esri/core/workers/chunks/875c6293767602763bc0.js +0 -1
  1594. package/assets/esri/core/workers/chunks/8894483b91bcda845b6f.js +0 -1
  1595. package/assets/esri/core/workers/chunks/92737419b66894799a34.js +0 -1
  1596. package/assets/esri/core/workers/chunks/9511e55e4fabb3235eac.js +0 -1
  1597. package/assets/esri/core/workers/chunks/9a78cb291c966f8ddda6.js +0 -1009
  1598. package/assets/esri/core/workers/chunks/9f8341caab3b1d02f387.js +0 -1
  1599. package/assets/esri/core/workers/chunks/a08d018d8c137fc4ca17.js +0 -1
  1600. package/assets/esri/core/workers/chunks/a0abe3e54c8a20cafeb3.js +0 -1
  1601. package/assets/esri/core/workers/chunks/a22e5b2874647fe0d31a.js +0 -1
  1602. package/assets/esri/core/workers/chunks/a55338add265d330124b.js +0 -1
  1603. package/assets/esri/core/workers/chunks/ac93b3f1ff15a95d926c.js +0 -1
  1604. package/assets/esri/core/workers/chunks/afe4fd3b1b3521712edd.js +0 -1
  1605. package/assets/esri/core/workers/chunks/b37f3c416cefc1a6ea2c.js +0 -1
  1606. package/assets/esri/core/workers/chunks/b4512d62b6cb26fc6b25.js +0 -1
  1607. package/assets/esri/core/workers/chunks/b6b8272a74a5c24a6b86.js +0 -1
  1608. package/assets/esri/core/workers/chunks/b9f66d735a7e63417b3d.js +0 -1
  1609. package/assets/esri/core/workers/chunks/bbc2a4976d044b990193.js +0 -1
  1610. package/assets/esri/core/workers/chunks/bbf2c31d217de1b8ba6e.js +0 -1
  1611. package/assets/esri/core/workers/chunks/befba7ceeb26a38732c1.js +0 -1
  1612. package/assets/esri/core/workers/chunks/c0517d02c99128fe603f.js +0 -1
  1613. package/assets/esri/core/workers/chunks/c19421707257fc93acb9.js +0 -1
  1614. package/assets/esri/core/workers/chunks/c1fb5290e0e259b74389.js +0 -1
  1615. package/assets/esri/core/workers/chunks/c25e28aab5bee30722cb.js +0 -1
  1616. package/assets/esri/core/workers/chunks/c2faddd504c2355ac46e.js +0 -1
  1617. package/assets/esri/core/workers/chunks/c361bf4d41a1843d4640.js +0 -1
  1618. package/assets/esri/core/workers/chunks/c51099eab5a99c88e5de.js +0 -1
  1619. package/assets/esri/core/workers/chunks/c56b05a8be498b6f3ee7.js +0 -1
  1620. package/assets/esri/core/workers/chunks/c82e78590c2fabc67609.js +0 -1
  1621. package/assets/esri/core/workers/chunks/c9e580867f7ac17be329.js +0 -1
  1622. package/assets/esri/core/workers/chunks/cafcb46d723d38b377a9.js +0 -1
  1623. package/assets/esri/core/workers/chunks/cb81d448ed6bad205346.js +0 -1
  1624. package/assets/esri/core/workers/chunks/ce291074b0cbebcaf27b.js +0 -1
  1625. package/assets/esri/core/workers/chunks/ce48207997af9605b0f7.js +0 -1
  1626. package/assets/esri/core/workers/chunks/d08a523b548e892e1222.js +0 -1
  1627. package/assets/esri/core/workers/chunks/d29ae64703a947bfb83b.js +0 -1
  1628. package/assets/esri/core/workers/chunks/d6241c7736d4a86f201f.js +0 -1
  1629. package/assets/esri/core/workers/chunks/d683a97620cd606fa019.js +0 -1
  1630. package/assets/esri/core/workers/chunks/d81260303a11d3fbe940.js +0 -1
  1631. package/assets/esri/core/workers/chunks/d9a23fb0c6c936d5e8ec.js +0 -1
  1632. package/assets/esri/core/workers/chunks/d9f311ac82ae8dabff8f.js +0 -1
  1633. package/assets/esri/core/workers/chunks/de1457b07f4e263f1524.js +0 -1
  1634. package/assets/esri/core/workers/chunks/e06096e532a8dbb31491.js +0 -1
  1635. package/assets/esri/core/workers/chunks/e547318638c8f496c1a0.js +0 -1
  1636. package/assets/esri/core/workers/chunks/e6a97f9b6f7be8076f85.js +0 -1
  1637. package/assets/esri/core/workers/chunks/e8e993fb8697b8f3e0c7.js +0 -346
  1638. package/assets/esri/core/workers/chunks/ef7fdd5306588c4b4ad2.js +0 -1
  1639. package/assets/esri/core/workers/chunks/f291ccf9da6aa7d7ae23.js +0 -1
  1640. package/assets/esri/core/workers/chunks/f328c933bc0367938d70.js +0 -1
  1641. package/assets/esri/core/workers/chunks/f61a8cc7e2b198e521ba.js +0 -1
  1642. package/assets/esri/core/workers/chunks/f9442a281cb91c64c7cd.js +0 -1
  1643. package/assets/esri/core/workers/chunks/fad577be78560ed6f4f8.js +0 -1
  1644. package/assets/esri/core/workers/chunks/fb785bc38323cce6e549.js +0 -1
  1645. package/assets/esri/core/workers/chunks/fbf3240b36718fa5dc76.js +0 -1
  1646. package/assets/esri/core/workers/chunks/fdd48334ff0ec2fa484b.js +0 -1
  1647. package/assets/esri/core/workers/chunks/fe73e74e3e4278aedcc3.js +0 -1
  1648. package/core/HeapSort.js +0 -5
  1649. package/geometry/support/meshUtils/exporters/gltf/index.js +0 -5
  1650. package/views/3d/support/index.js +0 -5
  1651. package/views/3d/webgl-engine/lib/BufferVectorMath.js +0 -5
  1652. /package/assets/esri/core/workers/chunks/{6f9f32b7de59b4d9cd97.js.LICENSE.txt → ecd673eccf89643df07a.js.LICENSE.txt} +0 -0
  1653. /package/assets/esri/core/workers/chunks/{d1aeb9fe9eb573beefcc.js.LICENSE.txt → edc4f230a5bdf928f9fd.js.LICENSE.txt} +0 -0
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{clamp as n,rad2deg as C,deg2rad as E,asinClamped as l}from"../../core/mathUtils.js";import{getMetersPerUnitForSR as e}from"../../core/unitUtils.js";import{isSphericalECEF as t,WGS84ECEFSpatialReferenceLike as S,SphericalPCPFMarsLike as r,SphericalPCPFMoonLike as u}from"../ellipsoidUtils.js";import{moon as R,mars as a,earth as P}from"../support/Ellipsoid.js";import{earthEllipsoidConstants as A}from"../support/geodesicConstants.js";import{equals as _,isWGS84 as s,isWebMercator as c,isPlateCarree as M,isMars as o,isMoon as i}from"../support/spatialReferenceUtils.js";import{SupportedGCSWkids as O}from"../support/SupportedGCSWkids.js";var N;!function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",n[n.WGS84=2]="WGS84",n[n.WEB_MERCATOR=3]="WEB_MERCATOR",n[n.WGS84_ECEF=4]="WGS84_ECEF",n[n.CGCS2000=5]="CGCS2000",n[n.SPHERICAL_MARS_PCPF=6]="SPHERICAL_MARS_PCPF",n[n.GCSMARS2000=7]="GCSMARS2000",n[n.SPHERICAL_MOON_PCPF=8]="SPHERICAL_MOON_PCPF",n[n.GCSMOON2000=9]="GCSMOON2000",n[n.LON_LAT=10]="LON_LAT",n[n.PLATE_CARREE=11]="PLATE_CARREE"}(N||(N={}));const L={[N.WGS84]:{[N.CGCS2000]:I,[N.GCSMARS2000]:null,[N.GCSMOON2000]:null,[N.LON_LAT]:I,[N.SPHERICAL_ECEF]:y,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:d,[N.PLATE_CARREE]:U,[N.WGS84]:I,[N.WGS84_ECEF]:Y},[N.CGCS2000]:{[N.CGCS2000]:I,[N.GCSMARS2000]:null,[N.GCSMOON2000]:null,[N.LON_LAT]:I,[N.SPHERICAL_ECEF]:y,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:d,[N.PLATE_CARREE]:U,[N.WGS84]:I,[N.WGS84_ECEF]:Y},[N.GCSMARS2000]:{[N.CGCS2000]:null,[N.GCSMARS2000]:I,[N.GCSMOON2000]:null,[N.LON_LAT]:I,[N.SPHERICAL_ECEF]:null,[N.SPHERICAL_MARS_PCPF]:x,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:null,[N.PLATE_CARREE]:null,[N.WGS84]:null,[N.WGS84_ECEF]:null},[N.GCSMOON2000]:{[N.CGCS2000]:null,[N.GCSMARS2000]:null,[N.GCSMOON2000]:I,[N.LON_LAT]:I,[N.SPHERICAL_ECEF]:null,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:k,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:null,[N.PLATE_CARREE]:null,[N.WGS84]:null,[N.WGS84_ECEF]:null},[N.WEB_MERCATOR]:{[N.CGCS2000]:T,[N.GCSMARS2000]:null,[N.GCSMOON2000]:null,[N.LON_LAT]:T,[N.SPHERICAL_ECEF]:p,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:I,[N.PLATE_CARREE]:K,[N.WGS84]:T,[N.WGS84_ECEF]:H},[N.WGS84_ECEF]:{[N.CGCS2000]:Z,[N.GCSMARS2000]:null,[N.GCSMOON2000]:null,[N.LON_LAT]:Z,[N.SPHERICAL_ECEF]:$,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:nn,[N.PLATE_CARREE]:w,[N.WGS84]:Z,[N.WGS84_ECEF]:I},[N.SPHERICAL_ECEF]:{[N.CGCS2000]:J,[N.GCSMARS2000]:null,[N.GCSMOON2000]:null,[N.LON_LAT]:J,[N.SPHERICAL_ECEF]:I,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:Q,[N.PLATE_CARREE]:B,[N.WGS84]:J,[N.WGS84_ECEF]:V},[N.SPHERICAL_MARS_PCPF]:{[N.CGCS2000]:null,[N.GCSMARS2000]:D,[N.GCSMOON2000]:null,[N.LON_LAT]:D,[N.SPHERICAL_ECEF]:null,[N.SPHERICAL_MARS_PCPF]:I,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:null,[N.PLATE_CARREE]:null,[N.WGS84]:null,[N.WGS84_ECEF]:null},[N.SPHERICAL_MOON_PCPF]:{[N.CGCS2000]:null,[N.GCSMARS2000]:null,[N.GCSMOON2000]:z,[N.LON_LAT]:z,[N.SPHERICAL_ECEF]:null,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:I,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:null,[N.PLATE_CARREE]:null,[N.WGS84]:null,[N.WGS84_ECEF]:null},[N.UNKNOWN]:{[N.CGCS2000]:null,[N.GCSMARS2000]:null,[N.GCSMOON2000]:null,[N.LON_LAT]:null,[N.SPHERICAL_ECEF]:null,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:I,[N.WEB_MERCATOR]:null,[N.PLATE_CARREE]:null,[N.WGS84]:null,[N.WGS84_ECEF]:null},[N.LON_LAT]:{[N.CGCS2000]:I,[N.GCSMARS2000]:I,[N.GCSMOON2000]:I,[N.LON_LAT]:I,[N.SPHERICAL_ECEF]:y,[N.SPHERICAL_MARS_PCPF]:x,[N.SPHERICAL_MOON_PCPF]:k,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:d,[N.PLATE_CARREE]:U,[N.WGS84]:I,[N.WGS84_ECEF]:Y},[N.PLATE_CARREE]:{[N.CGCS2000]:m,[N.GCSMARS2000]:null,[N.GCSMOON2000]:null,[N.LON_LAT]:m,[N.SPHERICAL_ECEF]:j,[N.SPHERICAL_MARS_PCPF]:null,[N.SPHERICAL_MOON_PCPF]:null,[N.UNKNOWN]:null,[N.WEB_MERCATOR]:q,[N.PLATE_CARREE]:I,[N.WGS84]:m,[N.WGS84_ECEF]:g}};function G(n,C){return F(n,C)?.projector}function F(n,C){if(null==n||null==C)return null;if(Cn.source.spatialReference===n&&Cn.dest.spatialReference===C)return Cn;const E=f(n,Cn.source),l=f(C,Cn.dest);return E===N.UNKNOWN&&l===N.UNKNOWN?_(n,C)?Cn.projector=I:Cn.projector=null:Cn.projector=L[E][l],Cn}function W(n,C){switch(G(n,C)){case I:return"copy3";case y:return"wgs84ToSphericalECEF";case d:return"wgs84ToWebMercator";case U:return"wgs84ToPlateCarree";case Y:return"wgs84ToWGS84ECEF";case T:return"webMercatorToWGS84";case p:return"webMercatorToSphericalECEF";case H:return"webMercatorToWGS84ECEF";case K:return"webMercatorToPlateCarree";case Z:return"wgs84ECEFToWGS84";case $:return"wgs84ECEFToSphericalECEF";case nn:return"wgs84ECEFToWebMercator";case J:return"sphericalECEFToWGS84";case Q:return"sphericalECEFToWebMercator";case D:return"sphericalMarsPCPFToMars2000";case z:return"sphericalMoonPCPFToMoon2000";case V:return"sphericalECEFToWGS84ECEF";case x:return"mars2000ToSphericalPCPF";case k:return"moon2000ToSphericalPCPF";default:return null}}function f(n,C){return n?C.spatialReference===n?C.spatialReferenceId:(C.spatialReference=n,"metersPerUnit"in C&&(C.metersPerUnit=e(n,1)),t(n)?C.spatialReferenceId=N.SPHERICAL_ECEF:s(n)?C.spatialReferenceId=N.WGS84:c(n)?C.spatialReferenceId=N.WEB_MERCATOR:M(n)?C.spatialReferenceId=N.PLATE_CARREE:n.wkt===S.wkt?C.spatialReferenceId=N.WGS84_ECEF:n.wkid===O.CGCS2000?C.spatialReferenceId=N.CGCS2000:n.wkt===r.wkt?C.spatialReferenceId=N.SPHERICAL_MARS_PCPF:n.wkt===u.wkt?C.spatialReferenceId=N.SPHERICAL_MOON_PCPF:o(n)?C.spatialReferenceId=N.GCSMARS2000:i(n)?C.spatialReferenceId=N.GCSMOON2000:C.spatialReferenceId=N.UNKNOWN):N.UNKNOWN}function I(n,C,E,l){n!==E&&(E[l++]=n[C++],E[l++]=n[C++],E[l]=n[C])}function T(n,C,E,l){E[l]=ln*(n[C]/tn),E[l+1]=ln*(en-2*Math.atan(Math.exp(-n[C+1]/tn))),E[l+2]=n[C+2]}function p(n,C,E,l){const e=n[C]/tn,t=en-2*Math.atan(Math.exp(-n[C+1]/tn)),S=tn+n[C+2],r=Math.cos(t)*S;E[l]=Math.cos(e)*r,E[l+1]=Math.sin(e)*r,E[l+2]=Math.sin(t)*S}function H(n,C,E,l){T(n,C,E,l),Y(E,l,E,l)}function h(C,E,l,e,t){const S=.4999999*Math.PI,r=n(En*C[E+1],-S,S),u=Math.sin(r);l[e++]=En*C[E]*t.radius,l[e++]=t.halfSemiMajorAxis*Math.log((1+u)/(1-u)),l[e]=C[E+2]}function d(n,C,E,l){h(n,C,E,l,P)}function U(n,C,E,l){E[l]=n[C]*Sn,E[l+1]=n[C+1]*Sn,E[l+2]=n[C+2]}function m(n,C,E,l){E[l]=n[C]*rn,E[l+1]=n[C+1]*rn,E[l+2]=n[C+2]}function K(n,C,E,l){T(n,C,E,l),U(E,l,E,l)}function w(n,C,E,l){Z(n,C,E,l),U(E,l,E,l)}function B(n,C,E,l){J(n,C,E,l),U(E,l,E,l)}function j(n,C,E,l){m(n,C,E,l),y(E,l,E,l)}function q(n,C,E,l){m(n,C,E,l),d(E,l,E,l)}function g(n,C,E,l){m(n,C,E,l),Y(E,l,E,l)}function b(n,C,E,l,e){const t=e+n[C+2],S=En*n[C+1],r=En*n[C],u=Math.cos(S)*t;E[l]=Math.cos(r)*u,E[l+1]=Math.sin(r)*u,E[l+2]=Math.sin(S)*t}function k(n,C,E,l){b(n,C,E,l,R.radius)}function x(n,C,E,l){b(n,C,E,l,a.radius)}function y(n,C,E,l){b(n,C,E,l,P.radius)}function v(n,C,E,e,t){const S=n[C],r=n[C+1],u=n[C+2],R=Math.sqrt(S*S+r*r+u*u),a=l(u/(0===R?1:R)),P=Math.atan2(r,S);E[e++]=ln*P,E[e++]=ln*a,E[e]=R-t}function z(n,C,E,l){v(n,C,E,l,R.radius)}function D(n,C,E,l){v(n,C,E,l,a.radius)}function J(n,C,E,l){v(n,C,E,l,P.radius)}function Q(n,C,E,l){J(n,C,E,l),d(E,l,E,l)}function V(n,C,E,l){J(n,C,E,l),Y(E,l,E,l)}function X(n,C,E,l,e){const t=En*n[C],S=En*n[C+1],r=n[C+2],u=Math.sin(S),R=Math.cos(S),a=e.radius/Math.sqrt(1-e.eccentricitySquared*u*u);E[l++]=(a+r)*R*Math.cos(t),E[l++]=(a+r)*R*Math.sin(t),E[l++]=(a*(1-e.eccentricitySquared)+r)*u}function Y(n,C,E,l){X(n,C,E,l,P)}function Z(n,C,E,l){const e=A,t=n[C],S=n[C+1],r=n[C+2];let u,R,a,_,s,c,M,o,i,O,N,L,G,F,W,f,I,T,p,H,h;u=Math.abs(r),R=t*t+S*S,a=Math.sqrt(R),_=R+r*r,s=Math.sqrt(_),H=Math.atan2(S,t),c=r*r/_,M=R/_,F=e.a2/s,W=e.a3-e.a4/s,M>.3?(o=u/s*(1+M*(e.a1+F+c*W)/s),p=Math.asin(o),O=o*o,i=Math.sqrt(1-O)):(i=a/s*(1-c*(e.a5-F-M*W)/s),p=Math.acos(i),O=1-i*i,o=Math.sqrt(O)),N=1-P.eccentricitySquared*O,L=P.radius/Math.sqrt(N),G=e.a6*L,F=a-L*i,W=u-G*o,I=i*F+o*W,f=i*W-o*F,T=f/(G/N+I),p+=T,h=I+f*T/2,r<0&&(p=-p),E[l++]=ln*H,E[l++]=ln*p,E[l]=h}function $(n,C,E,l){Z(n,C,E,l),y(E,l,E,l)}function nn(n,C,E,l){Z(n,C,E,l),d(E,l,E,l)}const Cn={source:{spatialReference:null,spatialReferenceId:N.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:N.UNKNOWN,metersPerUnit:1},projector:I},En=E(1),ln=C(1),en=.5*Math.PI,tn=P.radius,Sn=tn*Math.PI/180,rn=180/(tn*Math.PI);export{N as ProjectionID,I as copy3,G as getProjector,F as getProjectorClassification,W as getProjectorName,rn as invPlateCarreeScale,h as lonLatToWebMercatorComparable,L as projectionTable,v as sphericalPCPFtoLonLatElevation,d as wgs84ToWebMercator};
5
+ import{clamp as n,rad2deg as l,deg2rad as e,asinClamped as t}from"../../core/mathUtils.js";import{getMetersPerUnitForSR as r}from"../../core/unitUtils.js";import{isSphericalECEF as u,WGS84ECEFSpatialReferenceLike as a,SphericalPCPFMarsLike as c,SphericalPCPFMoonLike as s}from"../ellipsoidUtils.js";import{moon as o,mars as i,earth as f}from"../support/Ellipsoid.js";import{earthEllipsoidConstants as p}from"../support/geodesicConstants.js";import{equals as h,isWGS84 as M,isWebMercator as d,isPlateCarree as E,isMars as R,isMoon as m}from"../support/spatialReferenceUtils.js";const w={2:{5:F,7:null,9:null,10:F,1:H,6:null,8:null,0:null,3:W,11:b,2:F,4:X},5:{5:F,7:null,9:null,10:F,1:H,6:null,8:null,0:null,3:W,11:b,2:F,4:X},7:{5:null,7:F,9:null,10:F,1:null,6:D,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:F,10:F,1:null,6:null,8:B,0:null,3:null,11:null,2:null,4:null},3:{5:S,7:null,9:null,10:S,1:j,6:null,8:null,0:null,3:F,11:k,2:S,4:q},4:{5:Y,7:null,9:null,10:Y,1:Z,6:null,8:null,0:null,3:$,11:G,2:Y,4:F},1:{5:N,7:null,9:null,10:N,1:F,6:null,8:null,0:null,3:O,11:x,2:N,4:Q},6:{5:null,7:L,9:null,10:L,1:null,6:F,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:K,10:K,1:null,6:null,8:F,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:F,3:null,11:null,2:null,4:null},10:{5:F,7:F,9:F,10:F,1:H,6:D,8:B,0:null,3:W,11:b,2:F,4:X},11:{5:U,7:null,9:null,10:U,1:y,6:null,8:null,0:null,3:A,11:F,2:U,4:v}};function C(n,l){return I(n,l)?.projector}function I(n,l){if(null==n||null==l)return null;if(_.source.spatialReference===n&&_.dest.spatialReference===l)return _;const e=T(n,_.source),t=T(l,_.dest);return 0===e&&0===t?h(n,l)?_.projector=F:_.projector=null:_.projector=w[e][t],_}function P(n,l){switch(C(n,l)){case F:return"copy3";case H:return"wgs84ToSphericalECEF";case W:return"wgs84ToWebMercator";case b:return"wgs84ToPlateCarree";case X:return"wgs84ToWGS84ECEF";case S:return"webMercatorToWGS84";case j:return"webMercatorToSphericalECEF";case q:return"webMercatorToWGS84ECEF";case k:return"webMercatorToPlateCarree";case Y:return"wgs84ECEFToWGS84";case Z:return"wgs84ECEFToSphericalECEF";case $:return"wgs84ECEFToWebMercator";case N:return"sphericalECEFToWGS84";case O:return"sphericalECEFToWebMercator";case L:return"sphericalMarsPCPFToMars2000";case K:return"sphericalMoonPCPFToMoon2000";case Q:return"sphericalECEFToWGS84ECEF";case D:return"mars2000ToSphericalPCPF";case B:return"moon2000ToSphericalPCPF";default:return null}}function T(n,l){return n?l.spatialReference===n?l.spatialReferenceId:(l.spatialReference=n,"metersPerUnit"in l&&(l.metersPerUnit=r(n,1)),u(n)?l.spatialReferenceId=1:M(n)?l.spatialReferenceId=2:d(n)?l.spatialReferenceId=3:E(n)?l.spatialReferenceId=11:n.wkt===a.wkt?l.spatialReferenceId=4:4490===n.wkid?l.spatialReferenceId=5:n.wkt===c.wkt?l.spatialReferenceId=6:n.wkt===s.wkt?l.spatialReferenceId=8:R(n)?l.spatialReferenceId=7:m(n)?l.spatialReferenceId=9:l.spatialReferenceId=0):0}function F(n,l,e,t){n!==e&&(e[t++]=n[l++],e[t++]=n[l++],e[t]=n[l])}function S(n,l,e,t){e[t]=ln*(n[l]/tn),e[t+1]=ln*(en-2*Math.atan(Math.exp(-n[l+1]/tn))),e[t+2]=n[l+2]}function j(n,l,e,t){const r=n[l]/tn,u=en-2*Math.atan(Math.exp(-n[l+1]/tn)),a=tn+n[l+2],c=Math.cos(u)*a;e[t]=Math.cos(r)*c,e[t+1]=Math.sin(r)*c,e[t+2]=Math.sin(u)*a}function q(n,l,e,t){S(n,l,e,t),X(e,t,e,t)}function g(l,e,t,r,u){const a=.4999999*Math.PI,c=n(nn*l[e+1],-a,a),s=Math.sin(c);t[r++]=nn*l[e]*u.radius,t[r++]=u.halfSemiMajorAxis*Math.log((1+s)/(1-s)),t[r]=l[e+2]}function W(n,l,e,t){g(n,l,e,t,f)}function b(n,l,e,t){e[t]=n[l]*rn,e[t+1]=n[l+1]*rn,e[t+2]=n[l+2]}function U(n,l,e,t){e[t]=n[l]*un,e[t+1]=n[l+1]*un,e[t+2]=n[l+2]}function k(n,l,e,t){S(n,l,e,t),b(e,t,e,t)}function G(n,l,e,t){Y(n,l,e,t),b(e,t,e,t)}function x(n,l,e,t){N(n,l,e,t),b(e,t,e,t)}function y(n,l,e,t){U(n,l,e,t),H(e,t,e,t)}function A(n,l,e,t){U(n,l,e,t),W(e,t,e,t)}function v(n,l,e,t){U(n,l,e,t),X(e,t,e,t)}function z(n,l,e,t,r){const u=r+n[l+2],a=nn*n[l+1],c=nn*n[l],s=Math.cos(a)*u;e[t]=Math.cos(c)*s,e[t+1]=Math.sin(c)*s,e[t+2]=Math.sin(a)*u}function B(n,l,e,t){z(n,l,e,t,o.radius)}function D(n,l,e,t){z(n,l,e,t,i.radius)}function H(n,l,e,t){z(n,l,e,t,f.radius)}function J(n,l,e,r,u){const a=n[l],c=n[l+1],s=n[l+2],o=Math.sqrt(a*a+c*c+s*s),i=t(s/(0===o?1:o)),f=Math.atan2(c,a);e[r++]=ln*f,e[r++]=ln*i,e[r]=o-u}function K(n,l,e,t){J(n,l,e,t,o.radius)}function L(n,l,e,t){J(n,l,e,t,i.radius)}function N(n,l,e,t){J(n,l,e,t,f.radius)}function O(n,l,e,t){N(n,l,e,t),W(e,t,e,t)}function Q(n,l,e,t){N(n,l,e,t),X(e,t,e,t)}function V(n,l,e,t,r){const u=nn*n[l],a=nn*n[l+1],c=n[l+2],s=Math.sin(a),o=Math.cos(a),i=r.radius/Math.sqrt(1-r.eccentricitySquared*s*s);e[t++]=(i+c)*o*Math.cos(u),e[t++]=(i+c)*o*Math.sin(u),e[t++]=(i*(1-r.eccentricitySquared)+c)*s}function X(n,l,e,t){V(n,l,e,t,f)}function Y(n,l,e,t){const r=p,u=n[l],a=n[l+1],c=n[l+2];let s,o,i,h,M,d,E,R,m,w,C,I,P,T,F,S,j,q,g,W,b;s=Math.abs(c),o=u*u+a*a,i=Math.sqrt(o),h=o+c*c,M=Math.sqrt(h),W=Math.atan2(a,u),d=c*c/h,E=o/h,T=r.a2/M,F=r.a3-r.a4/M,E>.3?(R=s/M*(1+E*(r.a1+T+d*F)/M),g=Math.asin(R),w=R*R,m=Math.sqrt(1-w)):(m=i/M*(1-d*(r.a5-T-E*F)/M),g=Math.acos(m),w=1-m*m,R=Math.sqrt(w)),C=1-f.eccentricitySquared*w,I=f.radius/Math.sqrt(C),P=r.a6*I,T=i-I*m,F=s-P*R,j=m*T+R*F,S=m*F-R*T,q=S/(P/C+j),g+=q,b=j+S*q/2,c<0&&(g=-g),e[t++]=ln*W,e[t++]=ln*g,e[t]=b}function Z(n,l,e,t){Y(n,l,e,t),H(e,t,e,t)}function $(n,l,e,t){Y(n,l,e,t),W(e,t,e,t)}const _={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:F},nn=e(1),ln=l(1),en=.5*Math.PI,tn=f.radius,rn=tn*Math.PI/180,un=180/(tn*Math.PI);export{F as copy3,C as getProjector,I as getProjectorClassification,P as getProjectorName,un as invPlateCarreeScale,g as lonLatToWebMercatorComparable,w as projectionTable,J as sphericalPCPFtoLonLatElevation,W as wgs84ToWebMercator};
@@ -2,4 +2,3 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- var n;!function(n){n[n.X=0]="X",n[n.Y=1]="Y",n[n.Z=2]="Z"}(n||(n={}));export{n as Axis};
@@ -2,4 +2,3 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- var S;!function(S){S[S.CGCS2000=4490]="CGCS2000",S[S.GCSMARS2000=104971]="GCSMARS2000",S[S.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",S[S.GCSMOON2000=104903]="GCSMOON2000"}(S||(S={}));export{S as SupportedGCSWkids};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- const t=512;var i,s;!function(t){t[t.Unknown=0]="Unknown",t[t.Point=1]="Point",t[t.LineString=2]="LineString",t[t.Polygon=3]="Polygon"}(i||(i={}));class h{constructor(t,i){this.x=t,this.y=i}static fromArray(t){return new h(t[0],t[1])}clone(){return new h(this.x,this.y)}equals(t,i){return t===this.x&&i===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,i){return this.x=t,this.y=i,this}normalize(){const t=this.x,i=this.y,s=Math.sqrt(t*t+i*i);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,i){return this.x+=t,this.y+=i,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}assignSub(t,i){return this.x=t.x-i.x,this.y=t.y-i.y,this}rotate(t,i){const s=this.x,h=this.y;return this.x=s*t-h*i,this.y=s*i+h*t,this}rotateReverse(t,i){const s=this.x,h=this.y;return this.x=s*t+h*i,this.y=-s*i+h*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,i=this.y;return Math.sqrt(t*t+i*i)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,i){const s=i.x-t.x,h=i.y-t.y;return Math.sqrt(s*s+h*h)}static add(t,i){return new h(t.x+i.x,t.y+i.y)}static sub(t,i){return new h(t.x-i.x,t.y-i.y)}}class n{constructor(t,i,s){this.ratio=t,this.x=i,this.y=s}}class e{constructor(i,s,h,n=8,e=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=n,this._pixelMargin=e,this._tileSize=t*n,this._dz=i,this._yPos=s,this._xPos=h}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let i=this._pixelRatio*this._pixelMargin;i/=this._finalRatio;const s=t>>this._dz;i>s&&(i=s),this._margin=i,this._xmin=s*this._xPos-i,this._ymin=s*this._yPos-i,this._xmax=this._xmin+s+2*i,this._ymax=this._ymin+s+2*i}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,i){this._pushLine(),this._prevIsIn=this._isIn(t,i),this._moveTo(t,i,this._prevIsIn),this._prevPt=new h(t,i),this._firstPt=new h(t,i),this._dist=0}lineTo(t,i){const s=this._isIn(t,i),e=new h(t,i),_=h.distance(this._prevPt,e);let x,l,y,a,r,o,u,m;if(s)this._prevIsIn?this._lineTo(t,i,!0):(x=this._prevPt,l=e,y=this._intersect(l,x),this._start=this._dist+_*(1-this._r),this._lineTo(y.x,y.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,x=e,y=this._intersect(l,x),this._lineTo(y.x,y.y,!0),this._lineTo(x.x,x.y,!1);else{const t=this._prevPt,i=e;if(t.x<=this._xmin&&i.x<=this._xmin||t.x>=this._xmax&&i.x>=this._xmax||t.y<=this._ymin&&i.y<=this._ymin||t.y>=this._ymax&&i.y>=this._ymax)this._lineTo(i.x,i.y,!1);else{const s=[];if((t.x<this._xmin&&i.x>this._xmin||t.x>this._xmin&&i.x<this._xmin)&&(a=(this._xmin-t.x)/(i.x-t.x),m=t.y+a*(i.y-t.y),m<=this._ymin?o=!1:m>=this._ymax?o=!0:s.push(new n(a,this._xmin,m))),(t.x<this._xmax&&i.x>this._xmax||t.x>this._xmax&&i.x<this._xmax)&&(a=(this._xmax-t.x)/(i.x-t.x),m=t.y+a*(i.y-t.y),m<=this._ymin?o=!1:m>=this._ymax?o=!0:s.push(new n(a,this._xmax,m))),(t.y<this._ymin&&i.y>this._ymin||t.y>this._ymin&&i.y<this._ymin)&&(a=(this._ymin-t.y)/(i.y-t.y),u=t.x+a*(i.x-t.x),u<=this._xmin?r=!1:u>=this._xmax?r=!0:s.push(new n(a,u,this._ymin))),(t.y<this._ymax&&i.y>this._ymax||t.y>this._ymax&&i.y<this._ymax)&&(a=(this._ymax-t.y)/(i.y-t.y),u=t.x+a*(i.x-t.x),u<=this._xmin?r=!1:u>=this._xmax?r=!0:s.push(new n(a,u,this._ymax))),0===s.length)r?o?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):o?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+_*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+_*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(i.x,i.y,!1)}}this._dist+=_,this._prevIsIn=s,this._prevPt=e}close(){if(this._line.length>2){const t=this._firstPt,i=this._prevPt;t.x===i.x&&t.y===i.y||this.lineTo(t.x,t.y);const s=this._line;let h=s.length;for(;h>=4&&(s[0].x===s[1].x&&s[0].x===s[h-2].x||s[0].y===s[1].y&&s[0].y===s[h-2].y);)s.pop(),s[0].x=s[h-2].x,s[0].y=s[h-2].y,--h}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(this._type===i.Polygon&&t&&x.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(this._type!==i.LineString)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,s=t.length;if(0===s)return null;const h=[];for(let i=0;i<s;i++)h.push({line:t[i],start:this._starts[i]||0});return h}_isIn(t,i){return t>=this._xmin&&t<=this._xmax&&i>=this._ymin&&i<=this._ymax}_intersect(t,i){let s,n,e;if(i.x>=this._xmin&&i.x<=this._xmax)n=i.y<=this._ymin?this._ymin:this._ymax,e=(n-t.y)/(i.y-t.y),s=t.x+e*(i.x-t.x);else if(i.y>=this._ymin&&i.y<=this._ymax)s=i.x<=this._xmin?this._xmin:this._xmax,e=(s-t.x)/(i.x-t.x),n=t.y+e*(i.y-t.y);else{n=i.y<=this._ymin?this._ymin:this._ymax,s=i.x<=this._xmin?this._xmin:this._xmax;const h=(s-t.x)/(i.x-t.x),_=(n-t.y)/(i.y-t.y);h<_?(e=h,n=t.y+h*(i.y-t.y)):(e=_,s=t.x+_*(i.x-t.x))}return this._r=e,new h(s,n)}_pushLine(){this._line&&(this._type===i.Point?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):this._type===i.LineString?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):this._type===i.Polygon&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,s,n){this._type!==i.Polygon?n&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.push(new h(t,s))):(n||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),s<this._ymin&&(s=this._ymin),s>this._ymax&&(s=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.push(new h(t,s)),this._isH=!1,this._isV=!1)}_lineTo(t,s,n){let e,_;if(this._type!==i.Polygon)if(n){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(e=this._line[this._line.length-1],e.equals(t,s)))return;this._line.push(new h(t,s))}else this._line&&this._line.length>0&&this._pushLine();else if(n||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),s<this._ymin&&(s=this._ymin),s>this._ymax&&(s=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){e=this._line[this._line.length-1];const i=e.x===t,n=e.y===s;if(i&&n)return;this._isH&&i||this._isV&&n?(e.x=t,e.y=s,_=this._line[this._line.length-2],_.x===t&&_.y===s?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(_=this._line[this._line.length-2],this._isH=_.x===t,this._isV=_.y===s)):(this._isH=_.x===t,this._isV=_.y===s)):(this._line.push(new h(t,s)),this._isH=i,this._isV=n)}else this._line.push(new h(t,s))}}class _{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,i){this._line&&this._lines.push(this._line),this._line=[];const s=this._ratio;this._line.push(new h(t*s,i*s))}lineTo(t,i){const s=this._ratio;this._line.push(new h(t*s,i*s))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}!function(t){t[t.sideLeft=0]="sideLeft",t[t.sideRight=1]="sideRight",t[t.sideTop=2]="sideTop",t[t.sideBottom=3]="sideBottom"}(s||(s={}));class x{static simplify(t,i,h){if(!h)return;const n=-i,e=t+i,_=-i,l=t+i,y=[],a=[],r=h.length;for(let x=0;x<r;++x){const t=h[x];if(!t||t.length<2)continue;let i,r=t[0];const o=t.length;for(let h=1;h<o;++h)i=t[h],r.x===i.x&&(r.x<=n&&(r.y>i.y?(y.push(x),y.push(h),y.push(s.sideLeft),y.push(-1)):(a.push(x),a.push(h),a.push(s.sideLeft),a.push(-1))),r.x>=e&&(r.y<i.y?(y.push(x),y.push(h),y.push(s.sideRight),y.push(-1)):(a.push(x),a.push(h),a.push(s.sideRight),a.push(-1)))),r.y===i.y&&(r.y<=_&&(r.x<i.x?(y.push(x),y.push(h),y.push(s.sideTop),y.push(-1)):(a.push(x),a.push(h),a.push(s.sideTop),a.push(-1))),r.y>=l&&(r.x>i.x?(y.push(x),y.push(h),y.push(s.sideBottom),y.push(-1)):(a.push(x),a.push(h),a.push(s.sideBottom),a.push(-1)))),r=i}if(0===y.length||0===a.length)return;x.fillParent(h,a,y),x.fillParent(h,y,a);const o=[];x.calcDeltas(o,a,y),x.calcDeltas(o,y,a),x.addDeltas(o,h)}static fillParent(t,i,h){const n=h.length,e=i.length;for(let _=0;_<e;_+=4){const e=i[_],x=i[_+1],y=i[_+2],a=t[e][x-1],r=t[e][x];let o=8092,u=-1;for(let i=0;i<n;i+=4){if(h[i+2]!==y)continue;const n=h[i],e=h[i+1],_=t[n][e-1],x=t[n][e];switch(y){case s.sideLeft:case s.sideRight:if(l(a.y,_.y,x.y)&&l(r.y,_.y,x.y)){const t=Math.abs(x.y-_.y);t<o&&(o=t,u=i)}break;case s.sideTop:case s.sideBottom:if(l(a.x,_.x,x.x)&&l(r.x,_.x,x.x)){const t=Math.abs(x.x-_.x);t<o&&(o=t,u=i)}}}i[_+3]=u}}static calcDeltas(t,i,s){const h=i.length;for(let n=0;n<h;n+=4){const h=[],e=x.calcDelta(n,i,s,h);t.push(i[n]),t.push(i[n+1]),t.push(i[n+2]),t.push(e)}}static calcDelta(t,i,s,h){const n=i[t+3];if(-1===n)return 0;const e=h.length;return e>1&&h[e-2]===n?0:(h.push(n),x.calcDelta(n,s,i,h)+1)}static addDeltas(t,i){const h=t.length;let n=0;for(let s=0;s<h;s+=4){const i=t[s+3];i>n&&(n=i)}for(let e=0;e<h;e+=4){const h=i[t[e]],_=t[e+1],x=n-t[e+3];switch(t[e+2]){case s.sideLeft:h[_-1].x-=x,h[_].x-=x,1===_&&(h[h.length-1].x-=x),_===h.length-1&&(h[0].x-=x);break;case s.sideRight:h[_-1].x+=x,h[_].x+=x,1===_&&(h[h.length-1].x+=x),_===h.length-1&&(h[0].x+=x);break;case s.sideTop:h[_-1].y-=x,h[_].y-=x,1===_&&(h[h.length-1].y-=x),_===h.length-1&&(h[0].y-=x);break;case s.sideBottom:h[_-1].y+=x,h[_].y+=x,1===_&&(h[h.length-1].y+=x),_===h.length-1&&(h[0].y+=x)}}}}const l=(t,i,s)=>t>=i&&t<=s||t>=s&&t<=i;export{i as GeometryType,h as Point,_ as SimpleBuilder,e as TileClipper};
5
+ const t=512;class i{constructor(t,i){this.x=t,this.y=i}static fromArray(t){return new i(t[0],t[1])}clone(){return new i(this.x,this.y)}equals(t,i){return t===this.x&&i===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,i){return this.x=t,this.y=i,this}normalize(){const t=this.x,i=this.y,s=Math.sqrt(t*t+i*i);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,i){return this.x+=t,this.y+=i,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}assignSub(t,i){return this.x=t.x-i.x,this.y=t.y-i.y,this}rotate(t,i){const s=this.x,h=this.y;return this.x=s*t-h*i,this.y=s*i+h*t,this}rotateReverse(t,i){const s=this.x,h=this.y;return this.x=s*t+h*i,this.y=-s*i+h*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,i=this.y;return Math.sqrt(t*t+i*i)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,i){const s=i.x-t.x,h=i.y-t.y;return Math.sqrt(s*s+h*h)}static add(t,s){return new i(t.x+s.x,t.y+s.y)}static sub(t,s){return new i(t.x-s.x,t.y-s.y)}}class s{constructor(t,i,s){this.ratio=t,this.x=i,this.y=s}}class h{constructor(i,s,h,n=8,e=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=n,this._pixelMargin=e,this._tileSize=t*n,this._dz=i,this._yPos=s,this._xPos=h}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let i=this._pixelRatio*this._pixelMargin;i/=this._finalRatio;const s=t>>this._dz;i>s&&(i=s),this._margin=i,this._xmin=s*this._xPos-i,this._ymin=s*this._yPos-i,this._xmax=this._xmin+s+2*i,this._ymax=this._ymin+s+2*i}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,s){this._pushLine(),this._prevIsIn=this._isIn(t,s),this._moveTo(t,s,this._prevIsIn),this._prevPt=new i(t,s),this._firstPt=new i(t,s),this._dist=0}lineTo(t,h){const n=this._isIn(t,h),e=new i(t,h),_=i.distance(this._prevPt,e);let x,l,a,y,r,o,u,m;if(n)this._prevIsIn?this._lineTo(t,h,!0):(x=this._prevPt,l=e,a=this._intersect(l,x),this._start=this._dist+_*(1-this._r),this._lineTo(a.x,a.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,x=e,a=this._intersect(l,x),this._lineTo(a.x,a.y,!0),this._lineTo(x.x,x.y,!1);else{const t=this._prevPt,i=e;if(t.x<=this._xmin&&i.x<=this._xmin||t.x>=this._xmax&&i.x>=this._xmax||t.y<=this._ymin&&i.y<=this._ymin||t.y>=this._ymax&&i.y>=this._ymax)this._lineTo(i.x,i.y,!1);else{const h=[];if((t.x<this._xmin&&i.x>this._xmin||t.x>this._xmin&&i.x<this._xmin)&&(y=(this._xmin-t.x)/(i.x-t.x),m=t.y+y*(i.y-t.y),m<=this._ymin?o=!1:m>=this._ymax?o=!0:h.push(new s(y,this._xmin,m))),(t.x<this._xmax&&i.x>this._xmax||t.x>this._xmax&&i.x<this._xmax)&&(y=(this._xmax-t.x)/(i.x-t.x),m=t.y+y*(i.y-t.y),m<=this._ymin?o=!1:m>=this._ymax?o=!0:h.push(new s(y,this._xmax,m))),(t.y<this._ymin&&i.y>this._ymin||t.y>this._ymin&&i.y<this._ymin)&&(y=(this._ymin-t.y)/(i.y-t.y),u=t.x+y*(i.x-t.x),u<=this._xmin?r=!1:u>=this._xmax?r=!0:h.push(new s(y,u,this._ymin))),(t.y<this._ymax&&i.y>this._ymax||t.y>this._ymax&&i.y<this._ymax)&&(y=(this._ymax-t.y)/(i.y-t.y),u=t.x+y*(i.x-t.x),u<=this._xmin?r=!1:u>=this._xmax?r=!0:h.push(new s(y,u,this._ymax))),0===h.length)r?o?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):o?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(h.length>1&&h[0].ratio>h[1].ratio)this._start=this._dist+_*h[1].ratio,this._lineTo(h[1].x,h[1].y,!0),this._lineTo(h[0].x,h[0].y,!0);else{this._start=this._dist+_*h[0].ratio;for(let t=0;t<h.length;t++)this._lineTo(h[t].x,h[t].y,!0)}this._lineTo(i.x,i.y,!1)}}this._dist+=_,this._prevIsIn=n,this._prevPt=e}close(){if(this._line.length>2){const t=this._firstPt,i=this._prevPt;t.x===i.x&&t.y===i.y||this.lineTo(t.x,t.y);const s=this._line;let h=s.length;for(;h>=4&&(s[0].x===s[1].x&&s[0].x===s[h-2].x||s[0].y===s[1].y&&s[0].y===s[h-2].y);)s.pop(),s[0].x=s[h-2].x,s[0].y=s[h-2].y,--h}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&e.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,i=t.length;if(0===i)return null;const s=[];for(let h=0;h<i;h++)s.push({line:t[h],start:this._starts[h]||0});return s}_isIn(t,i){return t>=this._xmin&&t<=this._xmax&&i>=this._ymin&&i<=this._ymax}_intersect(t,s){let h,n,e;if(s.x>=this._xmin&&s.x<=this._xmax)n=s.y<=this._ymin?this._ymin:this._ymax,e=(n-t.y)/(s.y-t.y),h=t.x+e*(s.x-t.x);else if(s.y>=this._ymin&&s.y<=this._ymax)h=s.x<=this._xmin?this._xmin:this._xmax,e=(h-t.x)/(s.x-t.x),n=t.y+e*(s.y-t.y);else{n=s.y<=this._ymin?this._ymin:this._ymax,h=s.x<=this._xmin?this._xmin:this._xmax;const i=(h-t.x)/(s.x-t.x),_=(n-t.y)/(s.y-t.y);i<_?(e=i,n=t.y+i*(s.y-t.y)):(e=_,h=t.x+_*(s.x-t.x))}return this._r=e,new i(h,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,s,h){3!==this._type?h&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,s))):(h||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),s<this._ymin&&(s=this._ymin),s>this._ymax&&(s=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,s)),this._isH=!1,this._isV=!1)}_lineTo(t,s,h){let n,e;if(3!==this._type)if(h){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,s)))return;this._line.push(new i(t,s))}else this._line&&this._line.length>0&&this._pushLine();else if(h||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),s<this._ymin&&(s=this._ymin),s>this._ymax&&(s=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const h=n.x===t,_=n.y===s;if(h&&_)return;this._isH&&h||this._isV&&_?(n.x=t,n.y=s,e=this._line[this._line.length-2],e.x===t&&e.y===s?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(e=this._line[this._line.length-2],this._isH=e.x===t,this._isV=e.y===s)):(this._isH=e.x===t,this._isV=e.y===s)):(this._line.push(new i(t,s)),this._isH=h,this._isV=_)}else this._line.push(new i(t,s))}}class n{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,s){this._line&&this._lines.push(this._line),this._line=[];const h=this._ratio;this._line.push(new i(t*h,s*h))}lineTo(t,s){const h=this._ratio;this._line.push(new i(t*h,s*h))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class e{static simplify(t,i,s){if(!s)return;const h=-i,n=t+i,_=-i,x=t+i,l=[],a=[],y=s.length;for(let e=0;e<y;++e){const t=s[e];if(!t||t.length<2)continue;let i,y=t[0];const r=t.length;for(let s=1;s<r;++s)i=t[s],y.x===i.x&&(y.x<=h&&(y.y>i.y?(l.push(e),l.push(s),l.push(0),l.push(-1)):(a.push(e),a.push(s),a.push(0),a.push(-1))),y.x>=n&&(y.y<i.y?(l.push(e),l.push(s),l.push(1),l.push(-1)):(a.push(e),a.push(s),a.push(1),a.push(-1)))),y.y===i.y&&(y.y<=_&&(y.x<i.x?(l.push(e),l.push(s),l.push(2),l.push(-1)):(a.push(e),a.push(s),a.push(2),a.push(-1))),y.y>=x&&(y.x>i.x?(l.push(e),l.push(s),l.push(3),l.push(-1)):(a.push(e),a.push(s),a.push(3),a.push(-1)))),y=i}if(0===l.length||0===a.length)return;e.fillParent(s,a,l),e.fillParent(s,l,a);const r=[];e.calcDeltas(r,a,l),e.calcDeltas(r,l,a),e.addDeltas(r,s)}static fillParent(t,i,s){const h=s.length,n=i.length;for(let e=0;e<n;e+=4){const n=i[e],x=i[e+1],l=i[e+2],a=t[n][x-1],y=t[n][x];let r=8092,o=-1;for(let i=0;i<h;i+=4){if(s[i+2]!==l)continue;const h=s[i],n=s[i+1],e=t[h][n-1],x=t[h][n];switch(l){case 0:case 1:if(_(a.y,e.y,x.y)&&_(y.y,e.y,x.y)){const t=Math.abs(x.y-e.y);t<r&&(r=t,o=i)}break;case 2:case 3:if(_(a.x,e.x,x.x)&&_(y.x,e.x,x.x)){const t=Math.abs(x.x-e.x);t<r&&(r=t,o=i)}}}i[e+3]=o}}static calcDeltas(t,i,s){const h=i.length;for(let n=0;n<h;n+=4){const h=[],_=e.calcDelta(n,i,s,h);t.push(i[n]),t.push(i[n+1]),t.push(i[n+2]),t.push(_)}}static calcDelta(t,i,s,h){const n=i[t+3];if(-1===n)return 0;const _=h.length;return _>1&&h[_-2]===n?0:(h.push(n),e.calcDelta(n,s,i,h)+1)}static addDeltas(t,i){const s=t.length;let h=0;for(let n=0;n<s;n+=4){const i=t[n+3];i>h&&(h=i)}for(let n=0;n<s;n+=4){const s=i[t[n]],e=t[n+1],_=h-t[n+3];switch(t[n+2]){case 0:s[e-1].x-=_,s[e].x-=_,1===e&&(s[s.length-1].x-=_),e===s.length-1&&(s[0].x-=_);break;case 1:s[e-1].x+=_,s[e].x+=_,1===e&&(s[s.length-1].x+=_),e===s.length-1&&(s[0].x+=_);break;case 2:s[e-1].y-=_,s[e].y-=_,1===e&&(s[s.length-1].y-=_),e===s.length-1&&(s[0].y-=_);break;case 3:s[e-1].y+=_,s[e].y+=_,1===e&&(s[s.length-1].y+=_),e===s.length-1&&(s[0].y+=_)}}}}const _=(t,i,s)=>t>=i&&t<=s||t>=s&&t<=i;export{i as Point,n as SimpleBuilder,h as TileClipper};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import"../../core/has.js";import"../../core/Logger.js";import"../../core/mathUtils.js";import"../../core/ObjectStack.js";import"../../core/libs/gl-matrix-2/math/mat4.js";import"../../core/libs/gl-matrix-2/factories/mat4f64.js";import"../../chunks/vec32.js";import"../../core/libs/gl-matrix-2/factories/vec3f64.js";import"./aaBoundingRect.js";import"./Axis.js";import"./lineSegment.js";import"./plane.js";import"./ray.js";import"./vector.js";import"./vectorStacks.js";export{B as BoundedPlaneClass,C as altitudeAt,A as axisAt,c as cameraFrustumCoverage,q as closestPoint,p as closestPointOnSilhouette,a as copy,k as copyWithoutVerify,d as create,j as distance,y as distance2,z as distanceToSilhouette,l as elevate,g as equals,e as extrusionContainsPoint,h as fromAABoundingRect,f as fromValues,m as getExtent,i as intersectRay,o as intersectRayClosestSilhouette,n as normal,v as projectPoint,x as projectPointLocal,r as rotate,D as setAltitudeAt,s as setExtent,t as transform,E as up,u as updateUnboundedPlane,w as wrap}from"../../chunks/boundedPlane.js";
5
+ import"../../core/has.js";import"../../core/Logger.js";import"../../core/mathUtils.js";import"../../core/ObjectStack.js";import"../../core/libs/gl-matrix-2/math/mat4.js";import"../../core/libs/gl-matrix-2/factories/mat4f64.js";import"../../chunks/vec32.js";import"../../core/libs/gl-matrix-2/factories/vec3f64.js";import"./aaBoundingRect.js";import"./lineSegment.js";import"./plane.js";import"./ray.js";import"./vector.js";import"./vectorStacks.js";export{B as BoundedPlaneClass,C as altitudeAt,A as axisAt,d as cameraFrustumCoverage,q as closestPoint,p as closestPointOnSilhouette,c as copy,k as copyWithoutVerify,a as create,j as distance,y as distance2,z as distanceToSilhouette,l as elevate,g as equals,e as extrusionContainsPoint,h as fromAABoundingRect,f as fromValues,m as getExtent,i as intersectRay,o as intersectRayClosestSilhouette,n as normal,v as projectPoint,x as projectPointLocal,r as rotate,D as setAltitudeAt,s as setExtent,t as transform,E as up,u as updateUnboundedPlane,w as wrap}from"../../chunks/boundedPlane.js";
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{copy as t}from"../../core/libs/gl-matrix-2/math/mat4.js";import{i as e,c as n,n as o,h as r,e as i}from"../../chunks/vec32.js";import{create as u}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getReferenceEllipsoid as a}from"../ellipsoidUtils.js";import s 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 m,s as v}from"../../chunks/sphere.js";function h(t){const{value:e,operations:n}=t;return{operations:n,value:n.create(e)}}function j(t,e,n){return t.operations.setExtent(t.value,e,n.value),n}function d(t,e){return t.operations.getExtent(t.value,e),e}function x(t){return{operations:t,value:t.create()}}function A(t,e,n=x(t)){return n.operations=t,t.copy(e,n.value),n}function b(t){return A(v,m(0,0,0,a(t).radius))}const g=2**50;function P(){return A(p,f([0,0,0],[g,0,0],[0,g,0]))}function R(t,e,n){return t.operations.axisAt(t.value,e,l.Z,n)}function S(t,e,n,o){return t.operations.axisAt(t.value,e,n,o)}function k(t,e,n){return t.operations.intersectRay(t.value,e,n)}function y(t,e,n){return t.operations.closestPoint(t.value,e,n)}function E(t,e,n){return t.operations.intersectRayClosestSilhouette(t.value,e,n)}function C(t,e,n){return t.operations.closestPointOnSilhouette(t.value,e,n)}function U(t,e){return t.operations.distanceToSilhouette(t.value,e)}function G(t,e){return t.operations.altitudeAt(t.value,e)}function O(t,e,n,o){return t.operations.setAltitudeAt(t.value,e,n,o)}function T(n,o,r,i){return o!==i&&t(i,o),e(q,i[12],i[13],i[14]),O(n,q,r,q),i[12]=q[0],i[13]=q[1],i[14]=q[2],i}function Z(t,e,n){return t.operations.elevate(t.value,e,n.value)}const q=u();function w(t,e,n,o,r){return r[0]=i(t,e),r[1]=i(t,n),r[2]=i(t,o),r}function z(t,e,i,u,a){n(i,t),n(D,e),o(D,D),r(u,D,i),r(a,u,i)}function B(t,e){return t?c(e):e.isGeographic?s.PlateCarree:e}const D=u();export{G as altitudeAt,S as axisAt,y as closestPoint,C as closestPointOnSilhouette,z as coordinateSystemFromOneAxisAndNormalVector,h as create,x as createFromOperations,b as createGlobal,P as createLocal,U as distanceToSilhouette,Z as elevate,A as fromValues,d as getExtent,k as intersectRay,E as intersectRayClosestSilhouette,R as normalAt,B as renderSRFromViewSR,O as setAltitudeAt,T as setAltitudeOfTransformation,j as setExtent,w as vectorCoordinates};
5
+ import{copy as t}from"../../core/libs/gl-matrix-2/math/mat4.js";import{i as e,c as n,n as o,h as r,e as i}from"../../chunks/vec32.js";import{create as u}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getReferenceEllipsoid as a}from"../ellipsoidUtils.js";import s from"../SpatialReference.js";import{getSphericalPCPF as c}from"../spatialReferenceEllipsoidUtils.js";import{f as l,b as f}from"../../chunks/boundedPlane.js";import{f as p,s as v}from"../../chunks/sphere.js";function m(t){const{value:e,operations:n}=t;return{operations:n,value:n.create(e)}}function h(t,e,n){return t.operations.setExtent(t.value,e,n.value),n}function d(t,e){return t.operations.getExtent(t.value,e),e}function j(t){return{operations:t,value:t.create()}}function x(t,e,n=j(t)){return n.operations=t,t.copy(e,n.value),n}function A(t){return x(v,p(0,0,0,a(t).radius))}const b=2**50;function g(){return x(f,l([0,0,0],[b,0,0],[0,b,0]))}function P(t,e,n){return t.operations.axisAt(t.value,e,2,n)}function R(t,e,n,o){return t.operations.axisAt(t.value,e,n,o)}function S(t,e,n){return t.operations.intersectRay(t.value,e,n)}function k(t,e,n){return t.operations.closestPoint(t.value,e,n)}function y(t,e,n){return t.operations.intersectRayClosestSilhouette(t.value,e,n)}function E(t,e,n){return t.operations.closestPointOnSilhouette(t.value,e,n)}function C(t,e){return t.operations.distanceToSilhouette(t.value,e)}function U(t,e){return t.operations.altitudeAt(t.value,e)}function G(t,e,n,o){return t.operations.setAltitudeAt(t.value,e,n,o)}function O(n,o,r,i){return o!==i&&t(i,o),e(q,i[12],i[13],i[14]),G(n,q,r,q),i[12]=q[0],i[13]=q[1],i[14]=q[2],i}function T(t,e,n){return t.operations.elevate(t.value,e,n.value)}const q=u();function w(t,e,n,o,r){return r[0]=i(t,e),r[1]=i(t,n),r[2]=i(t,o),r}function z(t,e,i,u,a){n(i,t),n(D,e),o(D,D),r(u,D,i),r(a,u,i)}function B(t,e){return t?c(e):e.isGeographic?s.PlateCarree:e}const D=u();export{U as altitudeAt,R as axisAt,k as closestPoint,E as closestPointOnSilhouette,z as coordinateSystemFromOneAxisAndNormalVector,m as create,j as createFromOperations,A as createGlobal,g as createLocal,C as distanceToSilhouette,T as elevate,x as fromValues,d as getExtent,S as intersectRay,y as intersectRayClosestSilhouette,P as normalAt,B as renderSRFromViewSR,G as setAltitudeAt,O as setAltitudeOfTransformation,h as setExtent,w as vectorCoordinates};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{equals as n}from"../../core/arrayUtils.js";import{Axis as t}from"./Axis.js";import{getInfo as r}from"./spatialReferenceUtils.js";function e(n){if(!n)return null;if(Array.isArray(n))return n;const t=n.hasZ,r=n.hasM;if("point"===n.type)return r&&t?[n.x,n.y,n.z,n.m]:t?[n.x,n.y,n.z]:r?[n.x,n.y,n.m]:[n.x,n.y];if("polygon"===n.type)return n.rings.slice();if("polyline"===n.type)return n.paths.slice();if("multipoint"===n.type)return n.points.slice();if("extent"===n.type){const t=n.clone().normalize();if(!t)return null;let r=!1,e=!1;return t.forEach(n=>{n.hasZ&&(r=!0),n.hasM&&(e=!0)}),t.map(n=>{const t=[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]];if(r&&n.hasZ){const r=.5*(n.zmax-n.zmin);for(let n=0;n<t.length;n++)t[n].push(r)}if(e&&n.hasM){const r=.5*(n.mmax-n.mmin);for(let n=0;n<t.length;n++)t[n].push(r)}return t})}return null}function i(n,t){const r=t[0]-n[0],e=t[1]-n[1];if(n.length>2&&t.length>2){const i=n[2]-t[2];return Math.sqrt(r*r+e*e+i*i)}return Math.sqrt(r*r+e*e)}function o(n,t,r){const e=n[0]+r*(t[0]-n[0]),i=n[1]+r*(t[1]-n[1]);return n.length>2&&t.length>2?[e,i,n[2]+r*(t[2]-n[2])]:[e,i]}function s(n,t,r,e){return f(n,t,r[e],r[e+1])}function f(n,t,r,e){const[i,o]=t,[s,f]=r,[u,l]=e,c=u-s,h=l-f,p=c*c+h*h,a=(i-s)*c+(o-f)*h,y=Math.min(1,Math.max(0,a/p));return n[0]=s+c*y,n[1]=f+h*y,n}function u(n,t,r){let e,i,o,s,f=!1,u=1/0;for(r.reset();r.nextPath();)if(r.nextPoint())for(e=r.x,i=r.y;r.nextPoint();)o=r.x,s=r.y,i>t!=s>t&&n<(o-e)*(t-i)/(s-i)+e&&(f=!f),u=Math.min(u,l(n,t,e,i,o,s)),e=o,i=s;return 0===u?0:(f?1:-1)*Math.sqrt(u)}function l(n,t,r,e,i,o){let s=r,f=e,u=i-s,l=o-f;if(0!==u||0!==l){const r=((n-s)*u+(t-f)*l)/(u*u+l*l);r>1?(s=i,f=o):r>0&&(s+=u*r,f+=l*r)}return u=n-s,l=t-f,u*u+l*l}function c(n,t){return o(n,t,.5)}function h(n){const t=n.length;let r=0;for(let e=0;e<t-1;++e)r+=i(n[e],n[e+1]);return r}function p(n,t){if(t<=0)return n[0];const r=n.length;let e=0;for(let s=0;s<r-1;++s){const r=i(n[s],n[s+1]);if(t-e<r){const i=(t-e)/r;return o(n[s],n[s+1],i)}e+=r}return n[r-1]}function a(n,r=t.X,e=t.Y){let i=0;const o=n.length;let s=n[0];for(let t=1;t<o;t++){const o=n[t];i+=(o[r]-s[r])*(o[e]+s[e]),s=o}if(y(n)){const t=n[0];i+=(t[r]-s[r])*(t[e]+s[e])}return i>=0}function y(t){const r=t.length;return r>0&&!n(t[0],t[r-1])}function m(n){"rings"in n&&(g(n),x(n))}function g(n){if("rings"in n)for(const t of n.rings)y(t)&&t.push(t[0].slice())}function x(n){if(!("rings"in n))return!1;if(0===n.rings.length||a(n.rings[0]))return!1;for(const t of n.rings)t.reverse();return!0}function M(n){if("polygon"!==n.type&&"polyline"!==n.type)return n;return z("polygon"===n.type?n.rings:n.paths,n.spatialReference),n}function z(n,t){const e=r(t);if(!e)return;const i=e.valid[0],o=e.valid[1],s=o-i;for(const r of n){let n=1/0,t=-1/0;for(const s of r){const r=v(s[0],i,o);n=Math.min(n,r),t=Math.max(t,r),s[0]=r}const e=t-n;s-e<e&&r.forEach(n=>{n[0]<0&&(n[0]+=s)})}}function v(n,t,r){const e=r-t;return n<t?r-(t-n)%e:n>r?t+(n-t)%e:n}function j(n,t){if(n===t)return!0;if(n.type!==t.type)return!1;if("point"===n.type||"mesh"===n.type||"extent"===n.type)return!0;if("multipoint"===n.type)return n.points.length===t.points.length;const[r,e]="polyline"===n.type?[n.paths,t.paths]:[n.rings,t.rings];return r.length===e.length&&r.every((n,t)=>n.length===e[t].length)}export{g as closeRings,m as closeRingsAndFixWinding,u as distanceFromPointToPolygon,l as distanceToSegmentSquared,e as geometryToCoordinates,i as getLength,c as getMidpoint,h as getPathLength,p as getPointOnPath,j as hasCompatibleTopology,a as isClockwise,s as projectPointOnLine,f as projectPointOnLineSeg,M as unnormalizeGeometryOnDatelineCrossing,z as unnormalizeVerticesOnDatelineCrossing,v as unnormalizedCoordinate};
5
+ import{equals as n}from"../../core/arrayUtils.js";import{getInfo as t}from"./spatialReferenceUtils.js";function r(n){if(!n)return null;if(Array.isArray(n))return n;const t=n.hasZ,r=n.hasM;if("point"===n.type)return r&&t?[n.x,n.y,n.z,n.m]:t?[n.x,n.y,n.z]:r?[n.x,n.y,n.m]:[n.x,n.y];if("polygon"===n.type)return n.rings.slice();if("polyline"===n.type)return n.paths.slice();if("multipoint"===n.type)return n.points.slice();if("extent"===n.type){const t=n.clone().normalize();if(!t)return null;let r=!1,e=!1;return t.forEach(n=>{n.hasZ&&(r=!0),n.hasM&&(e=!0)}),t.map(n=>{const t=[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]];if(r&&n.hasZ){const r=.5*(n.zmax-n.zmin);for(let n=0;n<t.length;n++)t[n].push(r)}if(e&&n.hasM){const r=.5*(n.mmax-n.mmin);for(let n=0;n<t.length;n++)t[n].push(r)}return t})}return null}function e(n,t){const r=t[0]-n[0],e=t[1]-n[1];if(n.length>2&&t.length>2){const i=n[2]-t[2];return Math.sqrt(r*r+e*e+i*i)}return Math.sqrt(r*r+e*e)}function i(n,t,r){const e=n[0]+r*(t[0]-n[0]),i=n[1]+r*(t[1]-n[1]);return n.length>2&&t.length>2?[e,i,n[2]+r*(t[2]-n[2])]:[e,i]}function o(n,t,r,e){return s(n,t,r[e],r[e+1])}function s(n,t,r,e){const[i,o]=t,[s,f]=r,[u,l]=e,c=u-s,h=l-f,a=c*c+h*h,p=(i-s)*c+(o-f)*h,y=Math.min(1,Math.max(0,p/a));return n[0]=s+c*y,n[1]=f+h*y,n}function f(n,t,r){let e,i,o,s,f=!1,l=1/0;for(r.reset();r.nextPath();)if(r.nextPoint())for(e=r.x,i=r.y;r.nextPoint();)o=r.x,s=r.y,i>t!=s>t&&n<(o-e)*(t-i)/(s-i)+e&&(f=!f),l=Math.min(l,u(n,t,e,i,o,s)),e=o,i=s;return 0===l?0:(f?1:-1)*Math.sqrt(l)}function u(n,t,r,e,i,o){let s=r,f=e,u=i-s,l=o-f;if(0!==u||0!==l){const r=((n-s)*u+(t-f)*l)/(u*u+l*l);r>1?(s=i,f=o):r>0&&(s+=u*r,f+=l*r)}return u=n-s,l=t-f,u*u+l*l}function l(n,t){return i(n,t,.5)}function c(n){const t=n.length;let r=0;for(let i=0;i<t-1;++i)r+=e(n[i],n[i+1]);return r}function h(n,t){if(t<=0)return n[0];const r=n.length;let o=0;for(let s=0;s<r-1;++s){const r=e(n[s],n[s+1]);if(t-o<r){const e=(t-o)/r;return i(n[s],n[s+1],e)}o+=r}return n[r-1]}function a(n,t=0,r=1){let e=0;const i=n.length;let o=n[0];for(let s=1;s<i;s++){const i=n[s];e+=(i[t]-o[t])*(i[r]+o[r]),o=i}if(p(n)){const i=n[0];e+=(i[t]-o[t])*(i[r]+o[r])}return e>=0}function p(t){const r=t.length;return r>0&&!n(t[0],t[r-1])}function y(n){"rings"in n&&(m(n),g(n))}function m(n){if("rings"in n)for(const t of n.rings)p(t)&&t.push(t[0].slice())}function g(n){if(!("rings"in n))return!1;if(0===n.rings.length||a(n.rings[0]))return!1;for(const t of n.rings)t.reverse();return!0}function x(n){if("polygon"!==n.type&&"polyline"!==n.type)return n;return M("polygon"===n.type?n.rings:n.paths,n.spatialReference),n}function M(n,r){const e=t(r);if(!e)return;const i=e.valid[0],o=e.valid[1],s=o-i;for(const t of n){let n=1/0,r=-1/0;for(const s of t){const t=z(s[0],i,o);n=Math.min(n,t),r=Math.max(r,t),s[0]=t}const e=r-n;s-e<e&&t.forEach(n=>{n[0]<0&&(n[0]+=s)})}}function z(n,t,r){const e=r-t;return n<t?r-(t-n)%e:n>r?t+(n-t)%e:n}function v(n,t){if(n===t)return!0;if(n.type!==t.type)return!1;if("point"===n.type||"mesh"===n.type||"extent"===n.type)return!0;if("multipoint"===n.type)return n.points.length===t.points.length;const[r,e]="polyline"===n.type?[n.paths,t.paths]:[n.rings,t.rings];return r.length===e.length&&r.every((n,t)=>n.length===e[t].length)}export{m as closeRings,y as closeRingsAndFixWinding,f as distanceFromPointToPolygon,u as distanceToSegmentSquared,r as geometryToCoordinates,e as getLength,l as getMidpoint,c as getPathLength,h as getPointOnPath,v as hasCompatibleTopology,a as isClockwise,o as projectPointOnLine,s as projectPointOnLineSeg,x as unnormalizeGeometryOnDatelineCrossing,M as unnormalizeVerticesOnDatelineCrossing,z as unnormalizedCoordinate};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{ObjectStack as T}from"../../core/ObjectStack.js";import{multiply as _,invert as O}from"../../core/libs/gl-matrix-2/math/mat4.js";import{i as R}from"../../chunks/vec32.js";import{create as t}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{t as r}from"../../chunks/vec42.js";import{fromValues as A}from"../../core/libs/gl-matrix-2/factories/vec4f64.js";import{fromRay as E,fromLineSegmentAndDirection as F,create as o}from"./clipRay.js";import{create as n,fromPoints as e,signedDistance as c,clip as f,copy as i,clipInfinite as B}from"./plane.js";import{sm4d as M,sv4d as G}from"./vectorStacks.js";function H(T){return T?[n(T[0]),n(T[1]),n(T[2]),n(T[3]),n(T[4]),n(T[5])]:[n(),n(),n(),n(),n(),n()]}function I(){return[t(),t(),t(),t(),t(),t(),t(),t()]}function N(T,_){for(let O=0;O<b;O++)i(T[O],_[O]);return T}function L(T,t,A,E=y){const F=_(M.get(),t,T);O(F,F);for(let _=0;_<h;++_){const T=r(G.get(),k[_],F);R(E[_],T[0]/T[3],T[1]/T[3],T[2]/T[3])}P(A,E)}function P(T,_){e(_[g.FAR_BOTTOM_LEFT],_[g.NEAR_BOTTOM_LEFT],_[g.NEAR_TOP_LEFT],T[j.LEFT]),e(_[g.NEAR_BOTTOM_RIGHT],_[g.FAR_BOTTOM_RIGHT],_[g.FAR_TOP_RIGHT],T[j.RIGHT]),e(_[g.FAR_BOTTOM_LEFT],_[g.FAR_BOTTOM_RIGHT],_[g.NEAR_BOTTOM_RIGHT],T[j.BOTTOM]),e(_[g.NEAR_TOP_LEFT],_[g.NEAR_TOP_RIGHT],_[g.FAR_TOP_RIGHT],T[j.TOP]),e(_[g.NEAR_BOTTOM_LEFT],_[g.NEAR_BOTTOM_RIGHT],_[g.NEAR_TOP_RIGHT],T[j.NEAR]),e(_[g.FAR_BOTTOM_RIGHT],_[g.FAR_BOTTOM_LEFT],_[g.FAR_TOP_LEFT],T[j.FAR])}function s(T,_){for(let O=0;O<b;O++){const R=T[O];if(R[0]*_[0]+R[1]*_[1]+R[2]*_[2]+R[3]>=_[3])return!1}return!0}function u(T,_){return p(T,E(_,x.get()))}function m(T,_){for(let O=0;O<b;O++){const R=T[O];if(!B(R,_))return!1}return!0}function a(T,_,O){return p(T,F(_,O,x.get()))}function l(T,_){for(let O=0;O<b;O++){if(c(T[O],_)>0)return!1}return!0}function p(T,_){for(let O=0;O<b;O++)if(!f(T[O],_))return!1;return!0}var j,g;!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"}(j||(j={})),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"}(g||(g={}));const v={bottom:[g.FAR_BOTTOM_RIGHT,g.NEAR_BOTTOM_RIGHT,g.NEAR_BOTTOM_LEFT,g.FAR_BOTTOM_LEFT],near:[g.NEAR_BOTTOM_LEFT,g.NEAR_BOTTOM_RIGHT,g.NEAR_TOP_RIGHT,g.NEAR_TOP_LEFT],far:[g.FAR_BOTTOM_RIGHT,g.FAR_BOTTOM_LEFT,g.FAR_TOP_LEFT,g.FAR_TOP_RIGHT],right:[g.NEAR_BOTTOM_RIGHT,g.FAR_BOTTOM_RIGHT,g.FAR_TOP_RIGHT,g.NEAR_TOP_RIGHT],left:[g.FAR_BOTTOM_LEFT,g.NEAR_BOTTOM_LEFT,g.NEAR_TOP_LEFT,g.FAR_TOP_LEFT],top:[g.FAR_TOP_LEFT,g.NEAR_TOP_LEFT,g.NEAR_TOP_RIGHT,g.FAR_TOP_RIGHT]},b=6,h=8,k=[A(-1,-1,-1,1),A(1,-1,-1,1),A(1,1,-1,1),A(-1,1,-1,1),A(-1,-1,1,1),A(1,-1,1,1),A(1,1,1,1),A(-1,1,1,1)],x=new T(o),y=I();export{j as PlaneIndex,g as PointIndex,P as computePlanes,N as copy,H as create,I as createPoints,L as fromMatrix,m as intersectClipRay,a as intersectsLineSegment,l as intersectsPoint,u as intersectsRay,s as intersectsSphere,b as numPlanes,h as numPoints,v as planePointIndices};
5
+ import{ObjectStack as t}from"../../core/ObjectStack.js";import{multiply as r,invert as o}from"../../core/libs/gl-matrix-2/math/mat4.js";import{i as e}from"../../chunks/vec32.js";import{create as n}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{t as c}from"../../chunks/vec42.js";import{fromValues as f}from"../../core/libs/gl-matrix-2/factories/vec4f64.js";import{fromRay as i,fromLineSegmentAndDirection as s,create as u}from"./clipRay.js";import{create as m,fromPoints as a,signedDistance as l,clip as p,copy as j,clipInfinite as g}from"./plane.js";import{sm4d as b,sv4d as v}from"./vectorStacks.js";function h(t){return t?[m(t[0]),m(t[1]),m(t[2]),m(t[3]),m(t[4]),m(t[5])]:[m(),m(),m(),m(),m(),m()]}function k(){return[n(),n(),n(),n(),n(),n(),n(),n()]}function x(t,r){for(let o=0;o<B;o++)j(t[o],r[o]);return t}function y(t,n,f,i=F){const s=r(b.get(),n,t);o(s,s);for(let r=0;r<C;++r){const t=c(v.get(),D[r],s);e(i[r],t[0]/t[3],t[1]/t[3],t[2]/t[3])}S(f,i)}function S(t,r){a(r[4],r[0],r[3],t[0]),a(r[1],r[5],r[6],t[1]),a(r[4],r[5],r[1],t[2]),a(r[3],r[2],r[6],t[3]),a(r[0],r[1],r[2],t[4]),a(r[5],r[4],r[7],t[5])}function w(t,r){for(let o=0;o<B;o++){const e=t[o];if(e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]>=r[3])return!1}return!0}function O(t,r){return z(t,i(r,E.get()))}function R(t,r){for(let o=0;o<B;o++){const e=t[o];if(!g(e,r))return!1}return!0}function d(t,r,o){return z(t,s(r,o,E.get()))}function q(t,r){for(let o=0;o<B;o++){if(l(t[o],r)>0)return!1}return!0}function z(t,r){for(let o=0;o<B;o++)if(!p(t[o],r))return!1;return!0}const A={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},B=6,C=8,D=[f(-1,-1,-1,1),f(1,-1,-1,1),f(1,1,-1,1),f(-1,1,-1,1),f(-1,-1,1,1),f(1,-1,1,1),f(1,1,1,1),f(-1,1,1,1)],E=new t(u),F=k();export{S as computePlanes,x as copy,h as create,k as createPoints,y as fromMatrix,R as intersectClipRay,d as intersectsLineSegment,q as intersectsPoint,O as intersectsRay,w as intersectsSphere,B as numPlanes,C as numPoints,A 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.34/esri/copyright.txt for details.
4
4
  */
5
- import"../../core/has.js";import e from"../../core/Error.js";import t from"../HeightModelInfo.js";import{parse as n}from"../../layers/support/arcgisLayerUrl.js";function i(n,i){if(!n)return null;if(!s(n))return new e("webscene:unsupported-height-model-info","The vertical coordinate system of the scene is not supported",{heightModelInfo:n});const a=n.heightUnit,r=t.deriveUnitFromSR(n,i).heightUnit;return a!==r?new e("webscene:incompatible-height-unit",`The vertical units of the scene (${a}) must match the horizontal units of the scene (${r})`,{verticalUnit:a,horizontalUnit:r}):null}function a(n,i,a){const s=l(n),h=i,u=r(s,h,a);if(s){const i=t.deriveUnitFromSR(s,n.spatialReference).heightUnit;if(!a&&i!==s.heightUnit){const t=new e("layerview:unmatched-height-unit",`The vertical units of the layer must match the horizontal units (${i})`,{horizontalUnit:i});return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:s,error:t})}}if(!c(n)||u===o.Unsupported)return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:s});switch(u){case o.Units:{const t=s?.heightUnit||"unknown",n=h?.heightUnit||"unknown",i=new e("layerview:incompatible-height-unit",`The vertical units of the layer (${t}) must match the vertical units of the scene (${n})`,{layerUnit:t,sceneUnit:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:s,sceneHeightModelInfo:h,error:i})}case o.HeightModel:{const t=s?.heightModel||"unknown",n=h?.heightModel||"unknown",i=new e("layerview:incompatible-height-model",`The height model of the layer (${t}) must match the height model of the scene (${n})`,{layerHeightModel:t,sceneHeightModel:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:s,sceneHeightModelInfo:h,error:i})}case o.CRS:{const t=s?.vertCRS||"unknown",n=h?.vertCRS||"unknown",i=new e("layerview:incompatible-vertical-datum",`The vertical datum of the layer (${t}) must match the vertical datum of the scene (${n})`,{layerDatum:t,sceneDatum:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:s,sceneHeightModelInfo:h,error:i})}}return null}function r(e,t,n){if(!s(e)||!s(t))return o.Unsupported;if(null==e||null==t)return o.Ok;if(!n&&e.heightUnit!==t.heightUnit)return o.Units;if(e.heightModel!==t.heightModel)return o.HeightModel;switch(e.heightModel){case"gravity-related-height":return o.Ok;case"ellipsoidal":return e.vertCRS===t.vertCRS?o.Ok:o.CRS;default:return o.Unsupported}}var o;function s(e){return null==e||null!=e.heightModel&&null!=e.heightUnit}function c(e){return"heightModelInfo"in e&&null!=e.heightModelInfo||null!=e.spatialReference||!d(e)}function l(e){if("integrated-mesh-3dtiles"===e.type)return null;const i=e.url?n(e.url):void 0,a=e.spatialReference?.vcsWkid;return!(null==a&&null!=i&&"ImageServer"===i.serverType)&&h(e)&&e.heightModelInfo?e.heightModelInfo:d(e)?t.deriveUnitFromSR(p,e.spatialReference):null}function h(e){return"heightModelInfo"in e}function u(e){if("unknown"===e.type||!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"subtype-group":case"ogc-feature":case"oriented-imagery":case"wfs":case"knowledge-graph-sublayer":return!0;default:return!1}}function d(e){return u(e)?!!(e.capabilities&&e.capabilities.data&&e.capabilities.data.supportsZ):f(e)}function g(e){return null!=e.layers||f(e)||u(e)||h(e)}function f(e){switch(e.type){case"building-scene":case"elevation":case"integrated-mesh":case"integrated-mesh-3dtiles":case"point-cloud":case"scene":case"voxel":return!0;case"base-dynamic":case"base-elevation":case"base-tile":case"bing-maps":case"catalog":case"catalog-footprint":case"catalog-dynamic-group":case"csv":case"dimension":case"geojson":case"feature":case"subtype-group":case"geo-rss":case"graphics":case"group":case"imagery":case"imagery-tile":case"kml":case"knowledge-graph":case"link-chart":case"knowledge-graph-sublayer":case"line-of-sight":case"map-image":case"map-notes":case"media":case"ogc-feature":case"open-street-map":case"oriented-imagery":case"parquet":case"route":case"stream":case"tile":case"unknown":case"unsupported":case"vector-tile":case"video":case"viewshed":case"wcs":case"web-tile":case"wfs":case"wms":case"wmts":case null:return!1}return!1}!function(e){e[e.Ok=0]="Ok",e[e.Units=1]="Units",e[e.HeightModel=2]="HeightModel",e[e.CRS=3]="CRS",e[e.Unsupported=4]="Unsupported"}(o||(o={}));const p=new t({heightModel:"gravity-related-height"});export{l as deriveHeightModelInfoFromLayer,a as rejectLayerError,g as supportsHeightModelInfo,i as validateWebSceneError};
5
+ import"../../core/has.js";import e from"../../core/Error.js";import t from"../HeightModelInfo.js";import{parse as n}from"../../layers/support/arcgisLayerUrl.js";function i(n,i){if(!n)return null;if(!o(n))return new e("webscene:unsupported-height-model-info","The vertical coordinate system of the scene is not supported",{heightModelInfo:n});const a=n.heightUnit,r=t.deriveUnitFromSR(n,i).heightUnit;return a!==r?new e("webscene:incompatible-height-unit",`The vertical units of the scene (${a}) must match the horizontal units of the scene (${r})`,{verticalUnit:a,horizontalUnit:r}):null}function a(n,i,a){const o=c(n),l=i,h=r(o,l,a);if(o){const i=t.deriveUnitFromSR(o,n.spatialReference).heightUnit;if(!a&&i!==o.heightUnit){const t=new e("layerview:unmatched-height-unit",`The vertical units of the layer must match the horizontal units (${i})`,{horizontalUnit:i});return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:o,error:t})}}if(!s(n)||4===h)return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:o});switch(h){case 1:{const t=o?.heightUnit||"unknown",n=l?.heightUnit||"unknown",i=new e("layerview:incompatible-height-unit",`The vertical units of the layer (${t}) must match the vertical units of the scene (${n})`,{layerUnit:t,sceneUnit:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}case 2:{const t=o?.heightModel||"unknown",n=l?.heightModel||"unknown",i=new e("layerview:incompatible-height-model",`The height model of the layer (${t}) must match the height model of the scene (${n})`,{layerHeightModel:t,sceneHeightModel:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}case 3:{const t=o?.vertCRS||"unknown",n=l?.vertCRS||"unknown",i=new e("layerview:incompatible-vertical-datum",`The vertical datum of the layer (${t}) must match the vertical datum of the scene (${n})`,{layerDatum:t,sceneDatum:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}}return null}function r(e,t,n){if(!o(e)||!o(t))return 4;if(null==e||null==t)return 0;if(!n&&e.heightUnit!==t.heightUnit)return 1;if(e.heightModel!==t.heightModel)return 2;switch(e.heightModel){case"gravity-related-height":return 0;case"ellipsoidal":return e.vertCRS===t.vertCRS?0:3;default:return 4}}function o(e){return null==e||null!=e.heightModel&&null!=e.heightUnit}function s(e){return"heightModelInfo"in e&&null!=e.heightModelInfo||null!=e.spatialReference||!u(e)}function c(e){if("integrated-mesh-3dtiles"===e.type)return null;const i=e.url?n(e.url):void 0,a=e.spatialReference?.vcsWkid;return!(null==a&&null!=i&&"ImageServer"===i.serverType)&&l(e)&&e.heightModelInfo?e.heightModelInfo:u(e)?t.deriveUnitFromSR(f,e.spatialReference):null}function l(e){return"heightModelInfo"in e}function h(e){if("unknown"===e.type||!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"subtype-group":case"ogc-feature":case"oriented-imagery":case"wfs":case"knowledge-graph-sublayer":return!0;default:return!1}}function u(e){return h(e)?!!(e.capabilities&&e.capabilities.data&&e.capabilities.data.supportsZ):d(e)}function g(e){return null!=e.layers||d(e)||h(e)||l(e)}function d(e){switch(e.type){case"building-scene":case"elevation":case"integrated-mesh":case"integrated-mesh-3dtiles":case"point-cloud":case"scene":case"voxel":return!0;case"base-dynamic":case"base-elevation":case"base-tile":case"bing-maps":case"catalog":case"catalog-footprint":case"catalog-dynamic-group":case"csv":case"dimension":case"geojson":case"feature":case"subtype-group":case"geo-rss":case"graphics":case"group":case"imagery":case"imagery-tile":case"kml":case"knowledge-graph":case"link-chart":case"knowledge-graph-sublayer":case"line-of-sight":case"map-image":case"map-notes":case"media":case"ogc-feature":case"open-street-map":case"oriented-imagery":case"parquet":case"route":case"stream":case"tile":case"unknown":case"unsupported":case"vector-tile":case"video":case"viewshed":case"wcs":case"web-tile":case"wfs":case"wms":case"wmts":case null:return!1}return!1}const f=new t({heightModel:"gravity-related-height"});export{c as deriveHeightModelInfoFromLayer,a as rejectLayerError,g as supportsHeightModelInfo,i as validateWebSceneError};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{TargetBuffer as e,AttributeType as t}from"./types.js";import{DataType as s}from"../../../../../views/webgl/enums.js";class i{constructor(t,s,i,r,n){this._buffer=t,this._componentType=i,this._dataType=r,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,s.bufferViews||(s.bufferViews=[]),this.index=s.bufferViews.length,this._bufferView={buffer:t.index,byteLength:-1,target:n};const a=this._getElementSize();a>=4&&n!==e.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=a),s.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,i=this._accessorMin[s];this._accessorMin[s]="number"!=typeof i?e:Math.min(i,e);const r=this._accessorMax[s];this._accessorMax[s]="number"!=typeof r?e:Math.max(r,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){function e(e,t){return t*Math.ceil(e/t)}return e(this.dataSize,4)}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case s.BYTE:return new Int8Array(e,t);case s.FLOAT:return new Float32Array(e,t);case s.SHORT:return new Int16Array(e,t);case s.UNSIGNED_BYTE:return new Uint8Array(e,t);case s.UNSIGNED_INT:return new Uint32Array(e,t);case s.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then(e=>{const t=new Uint8Array(e);for(let s=0;s<t.length;++s)this._data.push(t[s]);delete this._asyncWritePromise}),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,i=(this._data.length-this._accessorIndex)/t;if(i%1)throw new Error("An accessor was ended with missing component values");for(let s=0;s<this._accessorMin.length;++s)"number"!=typeof this._accessorMin[s]&&(this._accessorMin[s]=0),"number"!=typeof this._accessorMax[s]&&(this._accessorMax[s]=0);const r={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:i,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case s.UNSIGNED_BYTE:case s.UNSIGNED_SHORT:r.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,r}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise(e=>this._finalizedPromiseResolve=e)}async finalize(){const e=this._bufferView,t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),await Promise.allSettled(t),this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case s.BYTE:case s.UNSIGNED_BYTE:return 1;case s.SHORT:case s.UNSIGNED_SHORT:return 2;case s.UNSIGNED_INT:case s.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case t.SCALAR:return 1;case t.VEC2:return 2;case t.VEC3:return 3;case t.VEC4:case t.MAT2:return 4;case t.MAT3:return 9;case t.MAT4:return 16}}}export{i as BufferView};
5
+ import{DataType as e}from"../../../../../views/webgl/enums.js";class t{constructor(e,t,s,i,r){this._buffer=e,this._componentType=s,this._dataType=i,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:r};const n=this._getElementSize();n>=4&&34963!==r&&(this._bufferView.byteStride=n),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,i=this._accessorMin[s];this._accessorMin[s]="number"!=typeof i?e:Math.min(i,e);const r=this._accessorMax[s];this._accessorMax[s]="number"!=typeof r?e:Math.max(r,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){function e(e,t){return t*Math.ceil(e/t)}return e(this.dataSize,4)}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(t,s){switch(this._componentType){case e.BYTE:return new Int8Array(t,s);case e.FLOAT:return new Float32Array(t,s);case e.SHORT:return new Int16Array(t,s);case e.UNSIGNED_BYTE:return new Uint8Array(t,s);case e.UNSIGNED_INT:return new Uint32Array(t,s);case e.UNSIGNED_SHORT:return new Uint16Array(t,s)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then(e=>{const t=new Uint8Array(e);for(let s=0;s<t.length;++s)this._data.push(t[s]);delete this._asyncWritePromise}),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const t=this._getElementSize(),s=this._numComponentsForDataType,i=(this._data.length-this._accessorIndex)/s;if(i%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const r={byteOffset:t*(this._accessorIndex/s),componentType:this._componentType,count:i,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case e.UNSIGNED_BYTE:case e.UNSIGNED_SHORT:r.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,r}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise(e=>this._finalizedPromiseResolve=e)}async finalize(){const e=this._bufferView,t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),await Promise.allSettled(t),this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case e.BYTE:case e.UNSIGNED_BYTE:return 1;case e.SHORT:case e.UNSIGNED_SHORT:return 2;case e.UNSIGNED_INT:case e.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case"SCALAR":return 1;case"VEC2":return 2;case"VEC3":return 3;case"VEC4":case"MAT2":return 4;case"MAT3":return 9;case"MAT4":return 16}}}export{t as BufferView};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- var t;!function(t){t[t.JSON=1313821514]="JSON",t[t.BIN=5130562]="BIN"}(t||(t={}));class e{static{this.HEADER_SIZE=12}static{this.CHUNK_HEADER_SIZE=8}static{this.MAGIC=1179937895}static{this.VERSION=2}constructor(i,s){if(!i)throw new Error("GLB requires a JSON gltf chunk");this._length=e.HEADER_SIZE,this._length+=e.CHUNK_HEADER_SIZE;const r=n(i);if(this._length+=h(r.byteLength,4),s&&(this._length+=e.CHUNK_HEADER_SIZE,this._length+=s.byteLength,s.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const _=this._writeChunk(r,12,t.JSON,32);s&&this._writeChunk(s,_,t.BIN)}_writeHeader(){this._outView.setUint32(0,e.MAGIC,!0),this._outView.setUint32(4,e.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(t,e,n,s=0){const r=h(t.byteLength,4);for(this._outView.setUint32(e,r,!0),this._outView.setUint32(e+=4,n,!0),i(this._outView.buffer,t,e+=4,0,t.byteLength),e+=t.byteLength;e%4;)s&&this._outView.setUint8(e,s),e++;return e}}function i(t,e,i,n,h){new Uint8Array(t,i,h).set(new Uint8Array(e,n,h),0)}function n(t){return(new TextEncoder).encode(t).buffer}function h(t,e){return e*Math.ceil(t/e)}export{e as GLB};
5
+ class t{static{this.HEADER_SIZE=12}static{this.CHUNK_HEADER_SIZE=8}static{this.MAGIC=1179937895}static{this.VERSION=2}constructor(e,h){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=t.HEADER_SIZE,this._length+=t.CHUNK_HEADER_SIZE;const s=i(e);if(this._length+=n(s.byteLength,4),h&&(this._length+=t.CHUNK_HEADER_SIZE,this._length+=h.byteLength,h.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const r=this._writeChunk(s,12,1313821514,32);h&&this._writeChunk(h,r,5130562)}_writeHeader(){this._outView.setUint32(0,t.MAGIC,!0),this._outView.setUint32(4,t.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(t,i,h,s=0){const r=n(t.byteLength,4);for(this._outView.setUint32(i,r,!0),this._outView.setUint32(i+=4,h,!0),e(this._outView.buffer,t,i+=4,0,t.byteLength),i+=t.byteLength;i%4;)s&&this._outView.setUint8(i,s),i++;return i}}function e(t,e,i,n,h){new Uint8Array(t,i,h).set(new Uint8Array(e,n,h),0)}function i(t){return(new TextEncoder).encode(t).buffer}function n(t,e){return e*Math.ceil(t/e)}export{t as GLB};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{colorGamma as e}from"../../../../../colorUtils.js";import t from"../../../../../core/Logger.js";import{getOrCreateMapValue as s}from"../../../../../core/MapUtils.js";import{deg2rad as r}from"../../../../../core/mathUtils.js";import{exactEquals as i}from"../../../../../core/libs/gl-matrix-2/math/quat.js";import{clone as o,IDENTITY as a}from"../../../../../core/libs/gl-matrix-2/factories/quatf64.js";import{q as n}from"../../../../../chunks/vec32.js";import{ZEROS as l,clone as c,ONES as u}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import h from"../../../MeshMaterialMetallicRoughness.js";import{convertVertexSpace as f}from"../../vertexSpaceConversion.js";import{Buffer as m}from"./buffer.js";import{smoothNormals as p}from"./geometry.js";import{BufferOutputType as d,ImageOutputType as g,AttributeType as x,TargetBuffer as _,AlphaMode as T}from"./types.js";import{imageToArrayBuffer as R,imageToDataURI as A}from"./imageutils.js";import{isEncodedMeshTexture as b}from"../../../../../views/3d/glTF/internal/resourceUtils.js";import{DataType as M,TextureWrapMode as E}from"../../../../../views/webgl/enums.js";const O=()=>t.getLogger("esri.geometry.support.meshUtils.exporters.gltf.gltf");class w{constructor(e,t){this.options=t,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:{output:t.output,binChunkBuffer:null,promises:[]}},this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.output.buffer===d.GLB||t.output.image===g.GLB;s&&(t.binChunkBuffer=new m(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=[]),t.nodes.push(...this._addNodes(e))}),this.gltf.scenes.push(t)}_addNodes(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;n(s,l)||(t.translation=c(s));const r=e.rotation;i(r,a)||(t.rotation=o(r));const h=e.scale;n(h,u)||(t.scale=c(h));const f=this.gltf.nodes.length;if(this.gltf.nodes.push(t),e.mesh&&e.mesh.vertexAttributes.position){const s=this._createMeshes(e.mesh),r=[f];if(1===s.length)this._addMesh(t,s[0]);else for(const e of s){const t={};this._addMesh(t,e),r.push(this.gltf.nodes.length),this.gltf.nodes.push(t)}return r}return e.forEachNode(e=>{t.children||(t.children=[]),t.children.push(...this._addNodes(e))}),[f]}_addMesh(e,t){this.gltf.meshes??=[];const s=this.gltf.meshes.length;this.gltf.meshes.push(t),e.mesh=s}_createMeshes(e){const t=this.gltf.extras,s=t.output.buffer===d.GLB;let r;r=s?t.binChunkBuffer:new m(this.gltf);const i=this.options.origin,o=e.vertexSpace.clone();o.origin=[i.x,i.y,i.z??0];const a=f({vertexAttributes:e.vertexAttributes,vertexSpace:e.vertexSpace,transform:this.options?.ignoreLocalTransform?null:e.transform,spatialReference:e.spatialReference},o,{targetUnit:this.options.unitConversionDisabled?void 0:"meters"});if(!a)return[];p(e,a),v(a);const{position:n,normal:l,tangent:c}=a,{uv:u,color:h}=e.vertexAttributes,g=r.addBufferView(M.FLOAT,x.VEC3,_.ARRAY_BUFFER);let T,R,A,b;l&&(T=r.addBufferView(M.FLOAT,x.VEC3,_.ARRAY_BUFFER)),u&&(R=r.addBufferView(M.FLOAT,x.VEC2,_.ARRAY_BUFFER)),c&&(A=r.addBufferView(M.FLOAT,x.VEC4,_.ARRAY_BUFFER)),h&&(b=r.addBufferView(M.FLOAT,x.VEC4,_.ARRAY_BUFFER)),g.startAccessor("POSITION"),T&&T.startAccessor("NORMAL"),R&&R.startAccessor("TEXCOORD_0"),A&&A.startAccessor("TANGENT"),b&&b.startAccessor("COLOR_0");const E=a.position.length/3;for(let f=0;f<E;++f)g.push(n[3*f]),g.push(n[3*f+1]),g.push(n[3*f+2]),T&&null!=l&&(T.push(l[3*f]),T.push(l[3*f+1]),T.push(l[3*f+2])),R&&null!=u&&(R.push(u[2*f]),R.push(u[2*f+1])),A&&null!=c&&(A.push(c[4*f]),A.push(c[4*f+1]),A.push(c[4*f+2]),A.push(c[4*f+3])),b&&null!=h&&(b.push(I(h[4*f]/255)),b.push(I(h[4*f+1]/255)),b.push(I(h[4*f+2]/255)),b.push(h[4*f+3]/255));const O=g.endAccessor(),w=this._addAccessor(g.index,O);let C,N,L,S,B;if(T){const e=T.endAccessor();C=this._addAccessor(T.index,e)}if(R){const e=R.endAccessor();N=this._addAccessor(R.index,e)}if(A){const e=A.endAccessor();L=this._addAccessor(A.index,e)}if(b){const e=b.endAccessor();S=this._addAccessor(b.index,e)}const F=[];return e.components&&e.components.length>0&&e.components[0].faces?(B=r.addBufferView(M.UNSIGNED_INT,x.SCALAR,_.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(B,e.components,F,w,C,N,L,S)):this._addMeshVertexNonIndexed(e.components,F,w,C,N,L,S),g.finalize(),T&&T.finalize(),R&&R.finalize(),A&&A.finalize(),B&&B.finalize(),b&&b.finalize(),s||r.finalize(),F}_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=T.MASK;break;case"auto":case"blend":s.alphaMode=T.BLEND}s.alphaCutoff=e.alphaCutoff,e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const r=e=>{const t=e.toRgba();return t[0]=I(t[0]/255),t[1]=I(t[1]/255),t[2]=I(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=r(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 h){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=r(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,O().warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const i=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),i}_createTextureInfo(e,t){const s={index:this._addTexture(e)};return t?(s.extensions||(s.extensions={}),s.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:r(t.rotation)},s):s}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,s(this._textureMap,e,()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},r=t.length;return t.push(s),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.output.image){case g.GLB:{const e=r.binChunkBuffer.addBufferView(M.UNSIGNED_BYTE,x.SCALAR);if(b(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const i=R(t,this.options.signal).then(({data:e,type:t})=>(s.mimeType=t,e));r.promises.push(e.writeAsync(i).then(()=>{e.finalize()}))}s.bufferView=e.index;break}case g.DataURI:if(b(t)){O().warnOnce("Image export for basis compressed textures not available.");break}s.uri=A(t);break;default:if(b(t)){O().warnOnce("Image export for basis compressed textures not available.");break}r.promises.push(R(t,this.options.signal).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=E.REPEAT,s=E.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=E.CLAMP_TO_EDGE,s=E.CLAMP_TO_EDGE;break;case"mirror":t=E.MIRRORED_REPEAT,s=E.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=E.CLAMP_TO_EDGE;break;case"mirror":s=E.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=E.CLAMP_TO_EDGE;break;case"mirror":t=E.MIRRORED_REPEAT}}const r={wrapS:t,wrapT:s};for(let o=0;o<this.gltf.samplers.length;++o)if(JSON.stringify(r)===JSON.stringify(this.gltf.samplers[o]))return o;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,o,a,n){const l=new Map;for(const c of t){if(e.startAccessor("INDICES"),c.faces)for(let s=0;s<c.faces.length;++s)e.push(c.faces[s]);const t=e.endAccessor(),u={attributes:{POSITION:r},indices:this._addAccessor(e.index,t),material:this._addMaterial(c.material)};i&&"flat"!==c.shading&&(u.attributes.NORMAL=i),o&&(u.attributes.TEXCOORD_0=o),a&&"flat"!==c.shading&&(u.attributes.TANGENT=a),n&&(u.attributes.COLOR_0=n);const h=l.get(c.name);if(h)h.primitives.push(u);else{const e={name:c.name,primitives:[u]};l.set(c.name,e),s.push(e)}}}_addMeshVertexNonIndexed(e,t,s,r,i,o,a){const n={primitives:[]};t.push(n);const l={attributes:{POSITION:s}};r&&(l.attributes.NORMAL=r),i&&(l.attributes.TEXCOORD_0=i),o&&(l.attributes.TANGENT=o),a&&(l.attributes.COLOR_0=a),e&&(l.material=this._addMaterial(e[0].material)),n.primitives.push(l)}}function v({position:e,normal:t,tangent:s}){C(e,3),C(t,3),C(s,4)}function C(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}}function I(t){return t**e}export{w as GLTF};
5
+ import{colorGamma as e}from"../../../../../colorUtils.js";import t from"../../../../../core/Logger.js";import{getOrCreateMapValue as s}from"../../../../../core/MapUtils.js";import{deg2rad as r}from"../../../../../core/mathUtils.js";import{exactEquals as i}from"../../../../../core/libs/gl-matrix-2/math/quat.js";import{clone as o,IDENTITY as a}from"../../../../../core/libs/gl-matrix-2/factories/quatf64.js";import{q as n}from"../../../../../chunks/vec32.js";import{ZEROS as l,clone as c,ONES as u}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import h from"../../../MeshMaterialMetallicRoughness.js";import{convertVertexSpace as f}from"../../vertexSpaceConversion.js";import{Buffer as m}from"./buffer.js";import{smoothNormals as p}from"./geometry.js";import{imageToArrayBuffer as d,imageToDataURI as g}from"./imageutils.js";import{isEncodedMeshTexture as x}from"../../../../../views/3d/glTF/internal/resourceUtils.js";import{DataType as T}from"../../../../../views/webgl/enums.js";const b=()=>t.getLogger("esri.geometry.support.meshUtils.exporters.gltf.gltf");class _{constructor(e,t){this.options=t,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:{output:t.output,binChunkBuffer:null,promises:[]}},this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=2===t.output.buffer||2===t.output.image;s&&(t.binChunkBuffer=new m(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=[]),t.nodes.push(...this._addNodes(e))}),this.gltf.scenes.push(t)}_addNodes(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;n(s,l)||(t.translation=c(s));const r=e.rotation;i(r,a)||(t.rotation=o(r));const h=e.scale;n(h,u)||(t.scale=c(h));const f=this.gltf.nodes.length;if(this.gltf.nodes.push(t),e.mesh&&e.mesh.vertexAttributes.position){const s=this._createMeshes(e.mesh),r=[f];if(1===s.length)this._addMesh(t,s[0]);else for(const e of s){const t={};this._addMesh(t,e),r.push(this.gltf.nodes.length),this.gltf.nodes.push(t)}return r}return e.forEachNode(e=>{t.children||(t.children=[]),t.children.push(...this._addNodes(e))}),[f]}_addMesh(e,t){this.gltf.meshes??=[];const s=this.gltf.meshes.length;this.gltf.meshes.push(t),e.mesh=s}_createMeshes(e){const t=this.gltf.extras,s=2===t.output.buffer;let r;r=s?t.binChunkBuffer:new m(this.gltf);const i=this.options.origin,o=e.vertexSpace.clone();o.origin=[i.x,i.y,i.z??0];const a=f({vertexAttributes:e.vertexAttributes,vertexSpace:e.vertexSpace,transform:this.options?.ignoreLocalTransform?null:e.transform,spatialReference:e.spatialReference},o,{targetUnit:this.options.unitConversionDisabled?void 0:"meters"});if(!a)return[];p(e,a),M(a);const{position:n,normal:l,tangent:c}=a,{uv:u,color:h}=e.vertexAttributes,d=r.addBufferView(T.FLOAT,"VEC3",34962);let g,x,b,_;l&&(g=r.addBufferView(T.FLOAT,"VEC3",34962)),u&&(x=r.addBufferView(T.FLOAT,"VEC2",34962)),c&&(b=r.addBufferView(T.FLOAT,"VEC4",34962)),h&&(_=r.addBufferView(T.FLOAT,"VEC4",34962)),d.startAccessor("POSITION"),g&&g.startAccessor("NORMAL"),x&&x.startAccessor("TEXCOORD_0"),b&&b.startAccessor("TANGENT"),_&&_.startAccessor("COLOR_0");const A=a.position.length/3;for(let f=0;f<A;++f)d.push(n[3*f]),d.push(n[3*f+1]),d.push(n[3*f+2]),g&&null!=l&&(g.push(l[3*f]),g.push(l[3*f+1]),g.push(l[3*f+2])),x&&null!=u&&(x.push(u[2*f]),x.push(u[2*f+1])),b&&null!=c&&(b.push(c[4*f]),b.push(c[4*f+1]),b.push(c[4*f+2]),b.push(c[4*f+3])),_&&null!=h&&(_.push(w(h[4*f]/255)),_.push(w(h[4*f+1]/255)),_.push(w(h[4*f+2]/255)),_.push(h[4*f+3]/255));const O=d.endAccessor(),v=this._addAccessor(d.index,O);let R,N,C,S,I;if(g){const e=g.endAccessor();R=this._addAccessor(g.index,e)}if(x){const e=x.endAccessor();N=this._addAccessor(x.index,e)}if(b){const e=b.endAccessor();C=this._addAccessor(b.index,e)}if(_){const e=_.endAccessor();S=this._addAccessor(_.index,e)}const y=[];return e.components&&e.components.length>0&&e.components[0].faces?(I=r.addBufferView(T.UNSIGNED_INT,"SCALAR",34963),this._addMeshVertexIndexed(I,e.components,y,v,R,N,C,S)):this._addMeshVertexNonIndexed(e.components,y,v,R,N,C,S),d.finalize(),g&&g.finalize(),x&&x.finalize(),b&&b.finalize(),I&&I.finalize(),_&&_.finalize(),s||r.finalize(),y}_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="MASK";break;case"auto":case"blend":s.alphaMode="BLEND"}s.alphaCutoff=e.alphaCutoff,e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const r=e=>{const t=e.toRgba();return t[0]=w(t[0]/255),t[1]=w(t[1]/255),t[2]=w(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=r(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 h){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=r(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,b().warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const i=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),i}_createTextureInfo(e,t){const s={index:this._addTexture(e)};return t?(s.extensions||(s.extensions={}),s.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:r(t.rotation)},s):s}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,s(this._textureMap,e,()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},r=t.length;return t.push(s),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.output.image){case 2:{const e=r.binChunkBuffer.addBufferView(T.UNSIGNED_BYTE,"SCALAR");if(x(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const i=d(t,this.options.signal).then(({data:e,type:t})=>(s.mimeType=t,e));r.promises.push(e.writeAsync(i).then(()=>{e.finalize()}))}s.bufferView=e.index;break}case 1:if(x(t)){b().warnOnce("Image export for basis compressed textures not available.");break}s.uri=g(t);break;default:if(x(t)){b().warnOnce("Image export for basis compressed textures not available.");break}r.promises.push(d(t,this.options.signal).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=10497,s=10497;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=33071,s=33071;break;case"mirror":t=33648,s=33648}else{switch(e.wrap.vertical){case"clamp":s=33071;break;case"mirror":s=33648}switch(e.wrap.horizontal){case"clamp":t=33071;break;case"mirror":t=33648}}const r={wrapS:t,wrapT:s};for(let o=0;o<this.gltf.samplers.length;++o)if(JSON.stringify(r)===JSON.stringify(this.gltf.samplers[o]))return o;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,o,a,n){const l=new Map;for(const c of t){if(e.startAccessor("INDICES"),c.faces)for(let s=0;s<c.faces.length;++s)e.push(c.faces[s]);const t=e.endAccessor(),u={attributes:{POSITION:r},indices:this._addAccessor(e.index,t),material:this._addMaterial(c.material)};i&&"flat"!==c.shading&&(u.attributes.NORMAL=i),o&&(u.attributes.TEXCOORD_0=o),a&&"flat"!==c.shading&&(u.attributes.TANGENT=a),n&&(u.attributes.COLOR_0=n);const h=l.get(c.name);if(h)h.primitives.push(u);else{const e={name:c.name,primitives:[u]};l.set(c.name,e),s.push(e)}}}_addMeshVertexNonIndexed(e,t,s,r,i,o,a){const n={primitives:[]};t.push(n);const l={attributes:{POSITION:s}};r&&(l.attributes.NORMAL=r),i&&(l.attributes.TEXCOORD_0=i),o&&(l.attributes.TANGENT=o),a&&(l.attributes.COLOR_0=a),e&&(l.material=this._addMaterial(e[0].material)),n.primitives.push(l)}}function M({position:e,normal:t,tangent:s}){A(e,3),A(t,3),A(s,4)}function A(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}}function w(t){return t**e}export{_ 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.34/esri/copyright.txt for details.
4
4
  */
5
- import{exportGLB as o}from"./index.js";import{Asset as n}from"./asset.js";import{Scene as e}from"./scene.js";import{Node as r}from"./node.js";async function i(i,t){const s=new n,m=new e;return s.addScene(m),m.addNode(new r(i)),await o(s,{origin:i.origin,...t})}export{i as toBinaryGLTF};
5
+ import{throwIfAborted as t}from"../../../../../core/promiseUtils.js";import{Asset as e}from"./asset.js";import{GLB as r}from"./glb.js";import{GLTF as o}from"./gltf.js";import{isArrayBufferPNG as n,encodeBase64DataUri as i}from"./imageutils.js";import{Node as s}from"./node.js";import{Scene as a}from"./scene.js";const f="model.gltf",u="model.glb";async function c(e,s){const a=new o(e,s).gltf,c=a.extras.promises;let m=1,l=1,p=null;await Promise.allSettled(c),t(s.signal);const g=s.jsonSpacing??4,d=new Map,w=JSON.stringify(a,(t,e)=>{if("extras"!==t){if(e instanceof ArrayBuffer){if(n(e))switch(s.output?.image){case 1:case 2:break;default:{const t=`img${l}.png`;return l++,d.set(t,e),t}}switch(s.output?.buffer){case 1:return i(e);case 2:if(p)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(p=e);default:{const t=`data${m}.bin`;return m++,d.set(t,e),t}}}return e}},g);return 2===s.output?.buffer||2===s.output?.image?d.set(u,new r(w,p).buffer):d.set(f,w),d}async function m(t,e){const r=(await c(t,{output:{buffer:2,image:2},jsonSpacing:0,...e})).get(u);if(!(r&&r instanceof ArrayBuffer))throw new Error("failed to export to glb");return r}async function l(t,r){const o=new e,n=new a;return o.addScene(n),n.addNode(new s(t)),await m(o,{origin:t.origin,...r})}export{c as exportGLTF,u as modelNameGlb,f as modelNameGltf,l as toBinaryGLTF};
@@ -2,4 +2,3 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- export{AlphaMode,AttributeType,BufferOutputType,ColorMode,ImageOutputType,MeshMode,TargetBuffer}from"./types.js";
@@ -2,4 +2,3 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- var E,A,R,L,o,I,N;!function(E){E[E.External=0]="External",E[E.DataURI=1]="DataURI",E[E.GLB=2]="GLB"}(E||(E={})),function(E){E[E.External=0]="External",E[E.DataURI=1]="DataURI",E[E.GLB=2]="GLB"}(A||(A={})),function(E){E[E.ARRAY_BUFFER=34962]="ARRAY_BUFFER",E[E.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(R||(R={})),function(E){E.SCALAR="SCALAR",E.VEC2="VEC2",E.VEC3="VEC3",E.VEC4="VEC4",E.MAT2="MAT2",E.MAT3="MAT3",E.MAT4="MAT4"}(L||(L={})),function(E){E[E.POINTS=0]="POINTS",E[E.LINES=1]="LINES",E[E.LINE_LOOP=2]="LINE_LOOP",E[E.LINE_STRIP=3]="LINE_STRIP",E[E.TRIANGLES=4]="TRIANGLES",E[E.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",E[E.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(o||(o={})),function(E){E.OPAQUE="OPAQUE",E.MASK="MASK",E.BLEND="BLEND"}(I||(I={})),function(E){E[E.NoColor=0]="NoColor",E[E.FaceColor=1]="FaceColor",E[E.VertexColor=2]="VertexColor"}(N||(N={}));export{I as AlphaMode,L as AttributeType,E as BufferOutputType,N as ColorMode,A as ImageOutputType,o as MeshMode,R as TargetBuffer};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../Color.js";import{colorGamma as t}from"../../../colorUtils.js";import r from"../../../request.js";import o from"../../../core/Error.js";import{getOrCreateMapValue as n}from"../../../core/MapUtils.js";import{rad2deg as s,hasScaling as i}from"../../../core/mathUtils.js";import{normalFromMat4 as a,fromMat4 as l}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as c}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{fromValues as u}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as f}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import m from"../MeshComponent.js";import p from"../MeshMaterialMetallicRoughness.js";import d from"../MeshTexture.js";import x from"../MeshTextureTransform.js";import{MeshVertexAttributes as g}from"../MeshVertexAttributes.js";import{selectVertexSpace as T}from"../meshVertexSpaceUtils.js";import{BufferViewVec4f as h,BufferViewVec4u8 as v,BufferViewVec4u16 as w,BufferViewVec3u8 as j,BufferViewVec3f as b,BufferViewVec3u16 as y,BufferViewVec2f as C,BufferViewVec3f64 as M}from"../buffer/BufferView.js";import{d as A,c as R,e as E,l as B}from"../../../chunks/vec3.js";import{a as F,n as $,l as S}from"../../../chunks/vec4.js";import{createBuffer as U}from"../buffer/utils.js";import{convertVertexSpace as I}from"./vertexSpaceConversion.js";import{DocType as k}from"../../../views/3d/support/index.js";import{DefaultLoadingContext as D}from"../../../views/3d/glTF/DefaultLoadingContext.js";import{loadGLTF as V}from"../../../views/3d/glTF/loader.js";import{convertPrimitiveToTriangles as P}from"../../../views/3d/glTF/internal/indexUtils.js";import{isEncodedMeshTexture as _}from"../../../views/3d/glTF/internal/resourceUtils.js";import{TextureWrapMode as G}from"../../../views/webgl/enums.js";import{f as L}from"../../../chunks/vec33.js";import{f as N}from"../../../chunks/vec43.js";import{n as O,f as q}from"../../../chunks/vec2.js";async function z(e,t,r){const n=new D(Y(r)),s=(await V(n,t,r,!0)).model,i=s.lods.shift(),a=new Map,l=new Map;s.textures.forEach((e,t)=>a.set(t,J(e))),s.materials.forEach((e,t)=>l.set(t,W(e,a)));const c=H(i);for(const o of c.parts)X(c,o,l);const{position:u,normal:f,tangent:m,color:p,texCoord0:d}=c.vertexAttributes,x=T(e,r),h=e.spatialReference.isGeographic?T(e):x,v=I({vertexAttributes:{position:u.typedBuffer,normal:f?.typedBuffer,tangent:m?.typedBuffer},vertexSpace:h,spatialReference:e.spatialReference},x,{allowBufferReuse:!0,sourceUnit:r?.unitConversionDisabled?void 0:"meters"});if(!v)throw new o("load-gltf-mesh:vertex-space-projection",`Failed to load mesh from glTF because we could not convert the vertex space from ${h.type} to ${x.type}`);return{transform:null,vertexSpace:x,components:c.components,spatialReference:e.spatialReference,vertexAttributes:new g({...v,color:p?.typedBuffer,uv:d?.typedBuffer})}}function Y(e){const t=e?.resolveFile;return t?{busy:!1,request:async(e,o,n)=>{const s=t?.(e)??e,i=o===k.IMAGE?"image":o===k.BINARY||o===k.IMAGE_AND_TYPE?"array-buffer":"json";return(await r(s,{responseType:i,signal:n?.signal,timeout:0})).data}}:null}function K(e,t){if(null==e)return"-";const r=e.typedBuffer;return`${n(t,r.buffer,()=>t.size)}/${r.byteOffset}/${r.byteLength}`}function Q(e){return null!=e?e.toString():"-"}function H(e){let t=0;const has={color:!1,tangent:!1,normal:!1,texCoord0:!1},r=new Map,o=new Map,s=[];for(const i of e.parts){const{position:e,normal:a,color:l,tangent:c,texCoord0:u}=i.attributes,f=`\n ${K(e,r)}/\n ${K(a,r)}/\n ${K(l,r)}/\n ${K(c,r)}/\n ${K(u,r)}/\n ${Q(i.transform)}\n `;let m=!1;const p=n(o,f,()=>(m=!0,{start:t,length:e.count}));m&&(t+=e.count),a&&(has.normal=!0),l&&(has.color=!0),c&&(has.tangent=!0),u&&(has.texCoord0=!0),s.push({gltf:i,writeVertices:m,region:p})}return{vertexAttributes:{position:U(M,t),normal:has.normal?U(b,t):null,tangent:has.tangent?U(h,t):null,color:has.color?U(v,t):null,texCoord0:has.texCoord0?U(C,t):null},parts:s,components:[]}}function J(e){return new d({data:(_(e.data),e.data),wrap:te(e.parameters.wrap)})}function W(t,r){const o=new e(ne(t.color,t.opacity)),n=t.emissiveFactor?new e(se(t.emissiveFactor)):null,i=e=>e?new x({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:s(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new p({color:o,colorTexture:r.get(t.colorTexture),normalTexture:r.get(t.normalTexture),emissiveColor:n,emissiveTexture:r.get(t.emissiveTexture),occlusionTexture:r.get(t.occlusionTexture),alphaMode:ee(t.alphaMode),alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,metallic:t.metallicFactor,roughness:t.roughnessFactor,metallicRoughnessTexture:r.get(t.metallicRoughnessTexture),colorTextureTransform:i(t.colorTextureTransform),normalTextureTransform:i(t.normalTextureTransform),occlusionTextureTransform:i(t.occlusionTextureTransform),emissiveTextureTransform:i(t.emissiveTextureTransform),metallicRoughnessTextureTransform:i(t.metallicRoughnessTextureTransform)})}function X(e,t,r){t.writeVertices&&Z(e,t);const{indices:o,attributes:n,primitiveType:s,material:i}=t.gltf;let a=P(o||n.position.count,s);const l=t.region.start;if(l){const e=new Uint32Array(a);for(let t=0;t<a.length;t++)e[t]+=l;a=e}e.components.push(new m({name:t.gltf.name,faces:a,material:r.get(i),shading:n.normal?"source":"flat",trustSourceNormals:!0}))}function Z(e,t){const{position:r,normal:o,tangent:n,color:s,texCoord0:u}=e.vertexAttributes,f=t.region.start,{attributes:m,transform:p}=t.gltf,d=m.position.count;if(A(r.slice(f,d),m.position,p),null!=m.normal&&null!=o){const e=a(c(),p),t=o.slice(f,d);R(t,m.normal,e),i(e)&&E(t,t)}else null!=o&&L(o,0,0,1,{dstIndex:f,count:d});if(null!=m.tangent&&null!=n){const e=l(c(),p),t=n.slice(f,d);F(t,m.tangent,e),i(e)&&$(t,t)}else null!=n&&N(n,0,0,1,1,{dstIndex:f,count:d});if(null!=m.texCoord0&&null!=u?O(u.slice(f,d),m.texCoord0):null!=u&&q(u,0,0,{dstIndex:f,count:d}),null!=m.color&&null!=s){const e=m.color,t=s.slice(f,d);if(4===e.elementCount)e instanceof h?S(t,e,1,255):(e instanceof v||e instanceof w)&&S(t,e,1/255,255);else{N(t,255,255,255,255);const r=j.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof b?B(r,e,1,255):(e instanceof j||e instanceof y)&&B(r,e,1/255,255)}}else null!=s&&N(s.slice(f,d),255,255,255,255)}function ee(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function te(e){return{horizontal:re(e.s),vertical:re(e.t)}}function re(e){switch(e){case G.CLAMP_TO_EDGE:return"clamp";case G.MIRRORED_REPEAT:return"mirror";case G.REPEAT:return"repeat"}}function oe(e){return e**(1/t)*255}function ne(e,t){return f(oe(e[0]),oe(e[1]),oe(e[2]),t)}function se(e){return u(oe(e[0]),oe(e[1]),oe(e[2]))}export{z as loadGLTFMesh};
5
+ import e from"../../../Color.js";import{colorGamma as t}from"../../../colorUtils.js";import r from"../../../request.js";import o from"../../../core/Error.js";import{getOrCreateMapValue as n}from"../../../core/MapUtils.js";import{rad2deg as s,hasScaling as i}from"../../../core/mathUtils.js";import{normalFromMat4 as a,fromMat4 as l}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as c}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{fromValues as u}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as f}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import m from"../MeshComponent.js";import p from"../MeshMaterialMetallicRoughness.js";import d from"../MeshTexture.js";import x from"../MeshTextureTransform.js";import{MeshVertexAttributes as g}from"../MeshVertexAttributes.js";import{selectVertexSpace as h}from"../meshVertexSpaceUtils.js";import{BufferViewVec4f as T,BufferViewVec4u8 as v,BufferViewVec4u16 as j,BufferViewVec3u8 as w,BufferViewVec3f as b,BufferViewVec3u16 as y,BufferViewVec2f as C,BufferViewVec3f64 as M}from"../buffer/BufferView.js";import{d as B,c as F,e as R,l as $}from"../../../chunks/vec3.js";import{a as A,n as S,l as U}from"../../../chunks/vec4.js";import{createBuffer as k}from"../buffer/utils.js";import{convertVertexSpace as V}from"./vertexSpaceConversion.js";import{DefaultLoadingContext as E}from"../../../views/3d/glTF/DefaultLoadingContext.js";import{loadGLTF as q}from"../../../views/3d/glTF/loader.js";import{convertPrimitiveToTriangles as D}from"../../../views/3d/glTF/internal/indexUtils.js";import{isEncodedMeshTexture as I}from"../../../views/3d/glTF/internal/resourceUtils.js";import{f as L}from"../../../chunks/vec33.js";import{f as z}from"../../../chunks/vec43.js";import{n as N,f as O}from"../../../chunks/vec2.js";async function G(e,t,r){const n=new E(K(r)),s=(await q(n,t,r,!0)).model,i=s.lods.shift(),a=new Map,l=new Map;s.textures.forEach((e,t)=>a.set(t,J(e))),s.materials.forEach((e,t)=>l.set(t,W(e,a)));const c=H(i);for(const o of c.parts)X(c,o,l);const{position:u,normal:f,tangent:m,color:p,texCoord0:d}=c.vertexAttributes,x=h(e,r),T=e.spatialReference.isGeographic?h(e):x,v=V({vertexAttributes:{position:u.typedBuffer,normal:f?.typedBuffer,tangent:m?.typedBuffer},vertexSpace:T,spatialReference:e.spatialReference},x,{allowBufferReuse:!0,sourceUnit:r?.unitConversionDisabled?void 0:"meters"});if(!v)throw new o("load-gltf-mesh:vertex-space-projection",`Failed to load mesh from glTF because we could not convert the vertex space from ${T.type} to ${x.type}`);return{transform:null,vertexSpace:x,components:c.components,spatialReference:e.spatialReference,vertexAttributes:new g({...v,color:p?.typedBuffer,uv:d?.typedBuffer})}}function K(e){const t=e?.resolveFile;return t?{busy:!1,request:async(e,o,n)=>{const s=t?.(e)??e,i=2===o?"image":1===o||3===o?"array-buffer":"json";return(await r(s,{responseType:i,signal:n?.signal,timeout:0})).data}}:null}function P(e,t){if(null==e)return"-";const r=e.typedBuffer;return`${n(t,r.buffer,()=>t.size)}/${r.byteOffset}/${r.byteLength}`}function Q(e){return null!=e?e.toString():"-"}function H(e){let t=0;const has={color:!1,tangent:!1,normal:!1,texCoord0:!1},r=new Map,o=new Map,s=[];for(const i of e.parts){const{position:e,normal:a,color:l,tangent:c,texCoord0:u}=i.attributes,f=`\n ${P(e,r)}/\n ${P(a,r)}/\n ${P(l,r)}/\n ${P(c,r)}/\n ${P(u,r)}/\n ${Q(i.transform)}\n `;let m=!1;const p=n(o,f,()=>(m=!0,{start:t,length:e.count}));m&&(t+=e.count),a&&(has.normal=!0),l&&(has.color=!0),c&&(has.tangent=!0),u&&(has.texCoord0=!0),s.push({gltf:i,writeVertices:m,region:p})}return{vertexAttributes:{position:k(M,t),normal:has.normal?k(b,t):null,tangent:has.tangent?k(T,t):null,color:has.color?k(v,t):null,texCoord0:has.texCoord0?k(C,t):null},parts:s,components:[]}}function J(e){return new d({data:(I(e.data),e.data),wrap:_(e.parameters.wrap)})}function W(t,r){const o=new e(re(t.color,t.opacity)),n=t.emissiveFactor?new e(oe(t.emissiveFactor)):null,i=e=>e?new x({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:s(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new p({color:o,colorTexture:r.get(t.colorTexture),normalTexture:r.get(t.normalTexture),emissiveColor:n,emissiveTexture:r.get(t.emissiveTexture),occlusionTexture:r.get(t.occlusionTexture),alphaMode:Z(t.alphaMode),alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,metallic:t.metallicFactor,roughness:t.roughnessFactor,metallicRoughnessTexture:r.get(t.metallicRoughnessTexture),colorTextureTransform:i(t.colorTextureTransform),normalTextureTransform:i(t.normalTextureTransform),occlusionTextureTransform:i(t.occlusionTextureTransform),emissiveTextureTransform:i(t.emissiveTextureTransform),metallicRoughnessTextureTransform:i(t.metallicRoughnessTextureTransform)})}function X(e,t,r){t.writeVertices&&Y(e,t);const{indices:o,attributes:n,primitiveType:s,material:i}=t.gltf;let a=D(o||n.position.count,s);const l=t.region.start;if(l){const e=new Uint32Array(a);for(let t=0;t<a.length;t++)e[t]+=l;a=e}e.components.push(new m({name:t.gltf.name,faces:a,material:r.get(i),shading:n.normal?"source":"flat",trustSourceNormals:!0}))}function Y(e,t){const{position:r,normal:o,tangent:n,color:s,texCoord0:u}=e.vertexAttributes,f=t.region.start,{attributes:m,transform:p}=t.gltf,d=m.position.count;if(B(r.slice(f,d),m.position,p),null!=m.normal&&null!=o){const e=a(c(),p),t=o.slice(f,d);F(t,m.normal,e),i(e)&&R(t,t)}else null!=o&&L(o,0,0,1,{dstIndex:f,count:d});if(null!=m.tangent&&null!=n){const e=l(c(),p),t=n.slice(f,d);A(t,m.tangent,e),i(e)&&S(t,t)}else null!=n&&z(n,0,0,1,1,{dstIndex:f,count:d});if(null!=m.texCoord0&&null!=u?N(u.slice(f,d),m.texCoord0):null!=u&&O(u,0,0,{dstIndex:f,count:d}),null!=m.color&&null!=s){const e=m.color,t=s.slice(f,d);if(4===e.elementCount)e instanceof T?U(t,e,1,255):(e instanceof v||e instanceof j)&&U(t,e,1/255,255);else{z(t,255,255,255,255);const r=w.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof b?$(r,e,1,255):(e instanceof w||e instanceof y)&&$(r,e,1/255,255)}}else null!=s&&z(s.slice(f,d),255,255,255,255)}function Z(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function _(e){return{horizontal:ee(e.s),vertical:ee(e.t)}}function ee(e){switch(e){case 33071:return"clamp";case 33648:return"mirror";case 10497:return"repeat"}}function te(e){return e**(1/t)*255}function re(e,t){return f(te(e[0]),te(e[1]),te(e[2]),t)}function oe(e){return u(te(e[0]),te(e[1]),te(e[2]))}export{G 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.34/esri/copyright.txt for details.
4
4
  */
5
- import{hasScaling as r,deg2rad as t}from"../../../core/mathUtils.js";import{normalFromMat4 as o,fromMat4 as e}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as n}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{invert as i}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as f}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{o as c,n as a}from"../../../chunks/vec32.js";import{create as s}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{computeTranslationToOriginAndRotation as m}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as u}from"../../projection/projectBuffer.js";import{earth as l}from"../Ellipsoid.js";import{isCGCS2000 as p,isMars as T,isMoon as y}from"../spatialReferenceUtils.js";import{y2lat as A}from"../webMercatorUtils.js";import{BufferViewVec3f as d,BufferViewVec3f64 as P}from"../buffer/BufferView.js";import{b as N,n as j}from"../../../chunks/vec3.js";import{t as M}from"../../../chunks/vec4.js";const O="Projection may be possible after calling projection.load().";function F(r,t,o,e){r.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${o.wkid}).${e?" ":""}${e}`)}function E(r,t,o,e,n,i){return B(x.TO_PCPF,d.fromTypedArray(r),V.NORMAL,P.fromTypedArray(t),o,P.fromTypedArray(e),n,d.fromTypedArray(i))?i:null}function R(r,t,o,e,n,i){return B(x.FROM_PCPF,d.fromTypedArray(r),V.NORMAL,P.fromTypedArray(t),o,P.fromTypedArray(e),n,d.fromTypedArray(i))?i:null}function g(r,t,o,e){return u(r,t,0,o,e,0)?o:null}function h(r,t,o,e){return u(r,t,0,o,e,0)?o:null}function _(t,e,n){return o(q,n),N(e,t,q),r(q)&&j(e,e),e}function C(t,o,n){return e(q,n),M(o,t,q),r(q)&&j(o,o,4),o}function b(r,o,e,n){const i=o===V.NORMAL;return k(r,o,e,(r,o)=>{const e=Math.cos(t(r));o[0]=i?e:1/e,o[1]=1},n)}function L(r,t,o,e){const n=t===V.NORMAL;return k(r,t,o,(r,t)=>{const o=Math.cosh(-r/l.radius);t[0]=1,t[1]=n?o:1/o},e)}function k(r,t,o,e,n){const i=t===V.NORMAL?3:4,f=[0,0];for(let c=0,a=1;c<r.length;c+=i,a+=3){e(o[a],f);const t=r[c]*f[0],s=r[c+1]*f[1],m=r[c+2],u=1/Math.sqrt(t*t+s*s+m*m);n[c]=t*u,n[c+1]=s*u,n[c+2]=m*u,4===i&&(n[c+3]=r[c+3])}return n}function w(r,t,o,e,n,i){if(!B(x.TO_PCPF,d.fromTypedArray(r,4*Float32Array.BYTES_PER_ELEMENT),V.TANGENT,P.fromTypedArray(t),o,P.fromTypedArray(e),n,d.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let f=3;f<r.length;f+=4)i[f]=r[f];return i}function G(r,t,o,e,n,i){if(!B(x.FROM_PCPF,d.fromTypedArray(r,16),V.TANGENT,P.fromTypedArray(t),o,P.fromTypedArray(e),n,d.fromTypedArray(i,16)))return null;for(let f=3;f<r.length;f+=4)i[f]=r[f];return i}var V,x;function v(r,t,n,f,c){switch(m(f,n,Y,f),r===x.FROM_PCPF&&i(Y,Y),t){case V.NORMAL:return o(c,Y);case V.TANGENT:return e(c,Y)}}function B(r,t,o,e,n,i,f,s){if(!t)return;const m=e.count;if($(n))for(let a=0;a<m;a++)i.getVec(a,S),t.getVec(a,U),c(U,U,v(r,o,S,f,q)),s.setVec(a,U);else for(let u=0;u<m;u++){i.getVec(u,S),t.getVec(u,U);const n=A(e.get(u,1));let m=Math.cos(n);o===V.TANGENT!=(r===x.TO_PCPF)&&(m=1/m),v(r,o,S,f,q),r===x.TO_PCPF?(q[0]*=m,q[1]*=m,q[2]*=m,q[3]*=m,q[4]*=m,q[5]*=m):(q[0]*=m,q[3]*=m,q[6]*=m,q[1]*=m,q[4]*=m,q[7]*=m),c(U,U,q),a(U,U),s.setVec(u,U)}return s}function $(r){return r.isWGS84||p(r)||T(r)||y(r)}!function(r){r[r.NORMAL=0]="NORMAL",r[r.TANGENT=1]="TANGENT"}(V||(V={})),function(r){r[r.TO_PCPF=0]="TO_PCPF",r[r.FROM_PCPF=1]="FROM_PCPF"}(x||(x={}));const S=s(),U=s(),Y=f(),q=n();export{V as VectorType,O as loadProjectErrorMessage,F as logProjectionError,h as projectFromPCPF,R as projectNormalFromPCPF,E as projectNormalToPCPF,G as projectTangentFromPCPF,w as projectTangentToPCPF,g as projectToPCPF,_ as transformNormal,C as transformTangent,b as transformVectorENUPlateCarree,L as transformVectorWMPlateCarree};
5
+ import{hasScaling as r,deg2rad as t}from"../../../core/mathUtils.js";import{normalFromMat4 as o,fromMat4 as e}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as n}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{invert as i}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as f}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{o as c,n as s}from"../../../chunks/vec32.js";import{create as a}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{computeTranslationToOriginAndRotation as m}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as u}from"../../projection/projectBuffer.js";import{earth as l}from"../Ellipsoid.js";import{isCGCS2000 as p,isMars as y,isMoon as d}from"../spatialReferenceUtils.js";import{y2lat as T}from"../webMercatorUtils.js";import{BufferViewVec3f as j,BufferViewVec3f64 as A}from"../buffer/BufferView.js";import{b as g,n as h}from"../../../chunks/vec3.js";import{t as E}from"../../../chunks/vec4.js";const b="Projection may be possible after calling projection.load().";function k(r,t,o,e){r.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${o.wkid}).${e?" ":""}${e}`)}function w(r,t,o,e,n,i){return U(0,j.fromTypedArray(r),0,A.fromTypedArray(t),o,A.fromTypedArray(e),n,j.fromTypedArray(i))?i:null}function M(r,t,o,e,n,i){return U(1,j.fromTypedArray(r),0,A.fromTypedArray(t),o,A.fromTypedArray(e),n,j.fromTypedArray(i))?i:null}function V(r,t,o,e){return u(r,t,0,o,e,0)?o:null}function x(r,t,o,e){return u(r,t,0,o,e,0)?o:null}function v(t,e,n){return o(G,n),g(e,t,G),r(G)&&h(e,e),e}function B(t,o,n){return e(G,n),E(o,t,G),r(G)&&h(o,o,4),o}function R(r,o,e,n){const i=0===o;return _(r,o,e,(r,o)=>{const e=Math.cos(t(r));o[0]=i?e:1/e,o[1]=1},n)}function $(r,t,o,e){const n=0===t;return _(r,t,o,(r,t)=>{const o=Math.cosh(-r/l.radius);t[0]=1,t[1]=n?o:1/o},e)}function _(r,t,o,e,n){const i=0===t?3:4,f=[0,0];for(let c=0,s=1;c<r.length;c+=i,s+=3){e(o[s],f);const t=r[c]*f[0],a=r[c+1]*f[1],m=r[c+2],u=1/Math.sqrt(t*t+a*a+m*m);n[c]=t*u,n[c+1]=a*u,n[c+2]=m*u,4===i&&(n[c+3]=r[c+3])}return n}function F(r,t,o,e,n,i){if(!U(0,j.fromTypedArray(r,4*Float32Array.BYTES_PER_ELEMENT),1,A.fromTypedArray(t),o,A.fromTypedArray(e),n,j.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let f=3;f<r.length;f+=4)i[f]=r[f];return i}function P(r,t,o,e,n,i){if(!U(1,j.fromTypedArray(r,16),1,A.fromTypedArray(t),o,A.fromTypedArray(e),n,j.fromTypedArray(i,16)))return null;for(let f=3;f<r.length;f+=4)i[f]=r[f];return i}function S(r,t,n,f,c){switch(m(f,n,q,f),1===r&&i(q,q),t){case 0:return o(c,q);case 1:return e(c,q)}}function U(r,t,o,e,n,i,f,a){if(!t)return;const m=e.count;if(L(n))for(let s=0;s<m;s++)i.getVec(s,N),t.getVec(s,Y),c(Y,Y,S(r,o,N,f,G)),a.setVec(s,Y);else for(let u=0;u<m;u++){i.getVec(u,N),t.getVec(u,Y);const n=T(e.get(u,1));let m=Math.cos(n);1===o!=(0===r)&&(m=1/m),S(r,o,N,f,G),0===r?(G[0]*=m,G[1]*=m,G[2]*=m,G[3]*=m,G[4]*=m,G[5]*=m):(G[0]*=m,G[3]*=m,G[6]*=m,G[1]*=m,G[4]*=m,G[7]*=m),c(Y,Y,G),s(Y,Y),a.setVec(u,Y)}return a}function L(r){return r.isWGS84||p(r)||y(r)||d(r)}const N=a(),Y=a(),q=f(),G=n();export{b as loadProjectErrorMessage,k as logProjectionError,x as projectFromPCPF,M as projectNormalFromPCPF,w as projectNormalToPCPF,P as projectTangentFromPCPF,F as projectTangentToPCPF,V as projectToPCPF,v as transformNormal,B as transformTangent,R as transformVectorENUPlateCarree,$ as transformVectorWMPlateCarree};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import t from"../../../core/Logger.js";import{floatEqualUlp as n}from"../../../core/mathUtils.js";import{getMetersPerCartesianUnitForSR as r,convertUnit as e}from"../../../core/unitUtils.js";import{normalFromMat4 as o}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as i}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{exactEquals as l,scale as a,invert as s,copy as c,multiply as u}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as f,IDENTITY as m}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{u as p,d as g,t as A}from"../../../chunks/vec32.js";import{create as R}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{WGS84ECEFSpatialReference as x,getSphericalPCPF as E}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as T}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectPointToVector as v}from"../../projection/projectPointToVector.js";import{isRelativeVertexSpace as h,vertexSpaceEquals as j}from"../meshVertexSpaceUtils.js";import{isEarth as S}from"../spatialReferenceUtils.js";import{a as w,t as y,b as U}from"../../../chunks/vec3.js";import{logProjectionError as F,projectToPCPF as O,projectNormalToPCPF as _,projectTangentToPCPF as b,transformNormal as C,transformTangent as d,projectFromPCPF as G,projectNormalFromPCPF as N,projectTangentFromPCPF as D}from"./projection.js";const M=()=>t.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function k(t,n,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=t;if(!v(n,o,e))return!1;const{origin:i}=r;return g(t,o,i),!0}const o=E(e),i=t;if(!v(n,i,o))return!1;const{origin:l}=r,a=lt;if(!T(e,l,a,o))return!1;const c=s(lt,a);return null!=c&&(A(t,i,c),!0)}function B(t,n,r){const{vertexSpace:e,transform:o,vertexAttributes:i}=t,a=h(e)?o:null,s=X(t.spatialReference,r,at.SOURCE_AND_TARGET);if(j(e,n)&&(!a||l(a.localMatrix,m))&&Y(s)){const{position:t,normal:n,tangent:e}=i,o=r?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?e:e?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?H(t,t.vertexSpace,n.origin,r):P(t,t.vertexSpace,n.origin,r);case"georeferenced":return"local"===n.type?q(t,t.vertexSpace,n.origin,r):L(t,t.vertexSpace,n.origin,r)}}function L({vertexAttributes:t,transform:n,spatialReference:r},{origin:e},o,i){const l=X(r,i,at.SOURCE_AND_TARGET),a=e||!Y(l)?c(rt,n?.localMatrix??m):null;a&&W(a,r,i,at.SOURCE_AND_TARGET);const{position:s,normal:u,tangent:f}=a?I(t,a):t,g=i?.allowBufferReuse,A=g?s:new Float64Array(s.length);let R=s;if(e&&(R=w(A,R,e)),o){const t=p(it,o);R=w(A,R,t)}return{position:R!==t.position||g?R:R.slice(),normal:u!==t.normal||g?u:u?.slice(),tangent:f!==t.tangent||g?f:f?.slice()}}function V(t,n){return n?.useEllipsoid&&S(t)?x:E(t)}function P({spatialReference:t,vertexAttributes:n,transform:r},{origin:e},o,i){const l=V(t,i);if(!T(t,e,rt,l))return F(M(),t,l),null;r&&u(rt,rt,r.localMatrix),W(rt,t,i,at.SOURCE);const a=new Float64Array(n.position.length),s=J(n.position,rt,t,a,l);if(!s)return null;const c=K(s,t,a,l,n.normal,rt);if(n.normal&&!c)return null;const f=Q(s,t,a,l,n.tangent,rt);if(n.tangent&&!f)return null;if(o){const t=p(it,o);w(s,s,t)}return{position:s,normal:c,tangent:f}}function q({vertexAttributes:t,spatialReference:n,transform:r},{origin:e},i,l){const c=V(n,l);if(!T(n,i,rt,c))return F(M(),n,c),null;const u=1/X(n,l,at.TARGET);a(rt,rt,[u,u,u]);const f=s(et,rt),{position:m,normal:p,tangent:g}=z(t,e,r),A=new Float64Array(m.length),R=Z(m,n,f,A,c);if(!R)return null;const x=o(ot,f),E=$(p,m,n,A,c,x,p!==t.normal?p:void 0);if(!E&&p)return null;const v=tt(g,m,n,A,c,x,g!==t.tangent?g:void 0);return!v&&g?null:{position:R,normal:E,tangent:v}}function z(t,n,r){if(!n)return t;if(!r){const{position:r,normal:e,tangent:o}=t;return{position:w(new Float64Array(r.length),r,n),tangent:o,normal:e}}const e=I(t,r.localMatrix);return w(e.position,e.position,n),e}function H({vertexAttributes:t,spatialReference:n,transform:r},{origin:e},o,i){const l=V(n,i);if(!T(n,e,rt,l))return F(M(),n,l),null;if(r&&u(rt,rt,r.localMatrix),!T(n,o,et,l))return F(M(),l,n),null;s(et,et);const a=u(rt,et,rt);return W(a,n,i,at.SOURCE_AND_TARGET),I(t,a)}function I(t,n){const r=new Float64Array(t.position.length);y(r,t.position,n);const e=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return e&&t.normal&&C(t.normal,e,n),o&&t.tangent&&d(t.tangent,o,n),{position:r,normal:e,tangent:o}}function J(t,n,r,e,o){y(e,t,n);const i=new Float64Array(t.length);return G(e,o,i,r)?i:(F(M(),o,r),null)}function K(t,n,r,e,o,i){if(null==o)return null;const l=new Float32Array(o.length);return C(o,l,i),N(l,t,n,r,e,l)?l:(F(M(),e,n),null)}function Q(t,n,r,e,o,i){if(null==o)return null;const l=new Float32Array(o.length);return d(o,l,i),D(l,t,n,r,e,l)?l:(F(M(),e,n),null)}function W(t,n,r,e){const o=X(n,r,e);Y(o)||a(t,t,[o,o,o])}function X(t,n,r){const e=!!(r&at.SOURCE),o=!!(r&at.TARGET),i=n?.sourceUnit,l=n?.targetUnit;if(!i&&!l)return 1;let a=nt(i,t);e||!i||Y(a)||(M().warn("source unit conversion not supported"),a=1);let s=1/nt(l,t);return o||!l||Y(s)||(M().warn("target unit conversion not supported"),s=1),a*s}function Y(t){return n(t,1)}function Z(t,n,r,e,o){const i=O(t,n,e,o);if(!i)return F(M(),n,o),null;const l=new Float64Array(i.length);return y(l,i,r),l}function $(t,n,r,e,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return _(t,n,r,e,o,a)?(U(a,a,i),a):(F(M(),r,o),null)}function tt(t,n,r,e,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return b(t,n,r,e,o,a)?(U(a,a,i,4),a):(F(M(),r,o),null)}function nt(t,n){if(null==t)return 1;const o=r(n);return 1/e(o,"meters",t)}const rt=f(),et=f(),ot=i(),it=R(),lt=f();var at;!function(t){t[t.NONE=0]="NONE",t[t.SOURCE=1]="SOURCE",t[t.TARGET=2]="TARGET",t[t.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"}(at||(at={}));export{B as convertVertexSpace,nt as getUnitToSpatialReferenceScaleConversion,k as projectPointToVertexSpace};
5
+ import t from"../../../core/Logger.js";import{floatEqualUlp as n}from"../../../core/mathUtils.js";import{getMetersPerCartesianUnitForSR as r,convertUnit as e}from"../../../core/unitUtils.js";import{normalFromMat4 as o}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as i}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{exactEquals as l,scale as a,invert as s,copy as c,multiply as u}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as f,IDENTITY as m}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{u as p,d as g,t as x}from"../../../chunks/vec32.js";import{create as h}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{WGS84ECEFSpatialReference as v,getSphericalPCPF as j}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as A}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectPointToVector as w}from"../../projection/projectPointToVector.js";import{isRelativeVertexSpace as y,vertexSpaceEquals as F}from"../meshVertexSpaceUtils.js";import{isEarth as b}from"../spatialReferenceUtils.js";import{a as R,t as d,b as S}from"../../../chunks/vec3.js";import{logProjectionError as U,projectToPCPF as M,projectNormalToPCPF as T,projectTangentToPCPF as k,transformNormal as B,transformTangent as E,projectFromPCPF as L,projectNormalFromPCPF as V,projectTangentFromPCPF as C}from"./projection.js";const O=()=>t.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function P(t,n,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=t;if(!w(n,o,e))return!1;const{origin:i}=r;return g(t,o,i),!0}const o=j(e),i=t;if(!w(n,i,o))return!1;const{origin:l}=r,a=lt;if(!A(e,l,a,o))return!1;const c=s(lt,a);return null!=c&&(x(t,i,c),!0)}function q(t,n,r){const{vertexSpace:e,transform:o,vertexAttributes:i}=t,a=y(e)?o:null,s=Y(t.spatialReference,r,3);if(F(e,n)&&(!a||l(a.localMatrix,m))&&Z(s)){const{position:t,normal:n,tangent:e}=i,o=r?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?e:e?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?J(t,t.vertexSpace,n.origin,r):G(t,t.vertexSpace,n.origin,r);case"georeferenced":return"local"===n.type?H(t,t.vertexSpace,n.origin,r):z(t,t.vertexSpace,n.origin,r)}}function z({vertexAttributes:t,transform:n,spatialReference:r},{origin:e},o,i){const l=Y(r,i,3),a=e||!Z(l)?c(rt,n?.localMatrix??m):null;a&&X(a,r,i,3);const{position:s,normal:u,tangent:f}=a?K(t,a):t,g=i?.allowBufferReuse,x=g?s:new Float64Array(s.length);let h=s;if(e&&(h=R(x,h,e)),o){const t=p(it,o);h=R(x,h,t)}return{position:h!==t.position||g?h:h.slice(),normal:u!==t.normal||g?u:u?.slice(),tangent:f!==t.tangent||g?f:f?.slice()}}function D(t,n){return n?.useEllipsoid&&b(t)?v:j(t)}function G({spatialReference:t,vertexAttributes:n,transform:r},{origin:e},o,i){const l=D(t,i);if(!A(t,e,rt,l))return U(O(),t,l),null;r&&u(rt,rt,r.localMatrix),X(rt,t,i,1);const a=new Float64Array(n.position.length),s=N(n.position,rt,t,a,l);if(!s)return null;const c=Q(s,t,a,l,n.normal,rt);if(n.normal&&!c)return null;const f=W(s,t,a,l,n.tangent,rt);if(n.tangent&&!f)return null;if(o){const t=p(it,o);R(s,s,t)}return{position:s,normal:c,tangent:f}}function H({vertexAttributes:t,spatialReference:n,transform:r},{origin:e},i,l){const c=D(n,l);if(!A(n,i,rt,c))return U(O(),n,c),null;const u=1/Y(n,l,2);a(rt,rt,[u,u,u]);const f=s(et,rt),{position:m,normal:p,tangent:g}=I(t,e,r),x=new Float64Array(m.length),h=$(m,n,f,x,c);if(!h)return null;const v=o(ot,f),j=_(p,m,n,x,c,v,p!==t.normal?p:void 0);if(!j&&p)return null;const w=tt(g,m,n,x,c,v,g!==t.tangent?g:void 0);return!w&&g?null:{position:h,normal:j,tangent:w}}function I(t,n,r){if(!n)return t;if(!r){const{position:r,normal:e,tangent:o}=t;return{position:R(new Float64Array(r.length),r,n),tangent:o,normal:e}}const e=K(t,r.localMatrix);return R(e.position,e.position,n),e}function J({vertexAttributes:t,spatialReference:n,transform:r},{origin:e},o,i){const l=D(n,i);if(!A(n,e,rt,l))return U(O(),n,l),null;if(r&&u(rt,rt,r.localMatrix),!A(n,o,et,l))return U(O(),l,n),null;s(et,et);const a=u(rt,et,rt);return X(a,n,i,3),K(t,a)}function K(t,n){const r=new Float64Array(t.position.length);d(r,t.position,n);const e=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return e&&t.normal&&B(t.normal,e,n),o&&t.tangent&&E(t.tangent,o,n),{position:r,normal:e,tangent:o}}function N(t,n,r,e,o){d(e,t,n);const i=new Float64Array(t.length);return L(e,o,i,r)?i:(U(O(),o,r),null)}function Q(t,n,r,e,o,i){if(null==o)return null;const l=new Float32Array(o.length);return B(o,l,i),V(l,t,n,r,e,l)?l:(U(O(),e,n),null)}function W(t,n,r,e,o,i){if(null==o)return null;const l=new Float32Array(o.length);return E(o,l,i),C(l,t,n,r,e,l)?l:(U(O(),e,n),null)}function X(t,n,r,e){const o=Y(n,r,e);Z(o)||a(t,t,[o,o,o])}function Y(t,n,r){const e=!!(1&r),o=!!(2&r),i=n?.sourceUnit,l=n?.targetUnit;if(!i&&!l)return 1;let a=nt(i,t);e||!i||Z(a)||(O().warn("source unit conversion not supported"),a=1);let s=1/nt(l,t);return o||!l||Z(s)||(O().warn("target unit conversion not supported"),s=1),a*s}function Z(t){return n(t,1)}function $(t,n,r,e,o){const i=M(t,n,e,o);if(!i)return U(O(),n,o),null;const l=new Float64Array(i.length);return d(l,i,r),l}function _(t,n,r,e,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return T(t,n,r,e,o,a)?(S(a,a,i),a):(U(O(),r,o),null)}function tt(t,n,r,e,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return k(t,n,r,e,o,a)?(S(a,a,i,4),a):(U(O(),r,o),null)}function nt(t,n){if(null==t)return 1;const o=r(n);return 1/e(o,"meters",t)}const rt=f(),et=f(),ot=i(),it=h(),lt=f();export{q as convertVertexSpace,nt as getUnitToSpatialReferenceScaleConversion,P as projectPointToVertexSpace};