@arcgis/core 5.2.0-next.5 → 5.2.0-next.6

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 (849) hide show
  1. package/analysis/SliceAnalysis.d.ts +1 -1
  2. package/applications/Components/analysisUtils.d.ts +24 -0
  3. package/applications/Components/analysisUtils.js +1 -1
  4. package/arcade/Dictionary.js +1 -1
  5. package/arcade/Feature.js +1 -1
  6. package/arcade/Pixel.js +1 -1
  7. package/arcade/Voxel.js +1 -1
  8. package/arcade/arcade.js +1 -1
  9. package/arcade/arcadeAsyncRuntime.js +1 -1
  10. package/arcade/arcadeCompiler.js +1 -1
  11. package/arcade/arcadeRuntime.js +1 -1
  12. package/arcade/containerUtils.js +1 -1
  13. package/arcade/debug.js +1 -1
  14. package/arcade/deepClone.js +1 -1
  15. package/arcade/featureSetUtils.js +1 -1
  16. package/arcade/featureset/actions/GroupBy.js +1 -1
  17. package/arcade/featureset/actions/OrderBy.js +1 -1
  18. package/arcade/functions/convertdirection.js +1 -1
  19. package/arcade/functions/date.js +1 -1
  20. package/arcade/functions/feature.js +1 -1
  21. package/arcade/functions/featuresetbase.js +1 -1
  22. package/arcade/functions/featuresetgeom.js +1 -1
  23. package/arcade/functions/featuresetstats.js +1 -1
  24. package/arcade/functions/featuresetstring.js +1 -1
  25. package/arcade/functions/fieldStats.js +1 -1
  26. package/arcade/functions/geomasync.js +1 -1
  27. package/arcade/functions/geometry.js +1 -1
  28. package/arcade/functions/geomsync.js +1 -1
  29. package/arcade/functions/knowledgegraph.js +1 -1
  30. package/arcade/functions/maths.js +1 -1
  31. package/arcade/functions/stats.js +1 -1
  32. package/arcade/functions/string.js +1 -1
  33. package/arcade/functions/track.js +1 -1
  34. package/arcade/geometry/constructors.js +1 -1
  35. package/arcade/geometry/functions.js +1 -1
  36. package/arcade/geometry/operators.js +1 -1
  37. package/arcade/languageUtils.js +1 -1
  38. package/assets/components/assets/icon/orientedImageryFullSuperimpose16.json +1 -0
  39. package/assets/components/assets/icon/orientedImageryFullSuperimpose24.json +1 -0
  40. package/assets/components/assets/icon/orientedImageryFullSuperimpose32.json +1 -0
  41. package/assets/components/assets/icon/orientedImageryHalfSuperimpose16.json +1 -0
  42. package/assets/components/assets/icon/orientedImageryHalfSuperimpose24.json +1 -0
  43. package/assets/components/assets/icon/orientedImageryHalfSuperimpose32.json +1 -0
  44. package/assets/components/assets/icon/orientedImagerySceneOnly16.json +1 -0
  45. package/assets/components/assets/icon/orientedImagerySceneOnly24.json +1 -0
  46. package/assets/components/assets/icon/orientedImagerySceneOnly32.json +1 -0
  47. package/assets/components/assets/icon/parquetFeatureLayer16.json +1 -0
  48. package/assets/components/assets/icon/parquetFeatureLayer24.json +1 -0
  49. package/assets/components/assets/icon/parquetFeatureLayer32.json +1 -0
  50. package/assets/esri/core/workers/RemoteClient.js +1 -1
  51. package/assets/esri/core/workers/chunks/013708f40f811158d42c.js +1 -0
  52. package/assets/esri/core/workers/chunks/{544174c33628846284a1.js → 07a242ea908aa8e2ba28.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{7e0daf0864005cdd63c5.js → 0a780a883abfcdf0b900.js} +1 -1
  54. package/assets/esri/core/workers/chunks/0d9d33f29124d464a4cb.js +1 -0
  55. package/assets/esri/core/workers/chunks/{325bfac7cfa28a6d568f.js → 0e774f14ba274832f390.js} +1 -1
  56. package/assets/esri/core/workers/chunks/119d352dd586f2bb61ec.js +1 -0
  57. package/assets/esri/core/workers/chunks/{8cbaaea72f4ca2f023be.js → 129fdd1636e67997337c.js} +1 -1
  58. package/assets/esri/core/workers/chunks/130784a27661de6b52a5.js +1 -0
  59. package/assets/esri/core/workers/chunks/{942e527b9b92999886c7.js → 145364aa20b4435294c2.js} +1 -1
  60. package/assets/esri/core/workers/chunks/14c6419568d8a7a15cd6.js +1 -0
  61. package/assets/esri/core/workers/chunks/153dc2a0b08a0e44a881.js +1 -0
  62. package/assets/esri/core/workers/chunks/{9a3344f1dd22c425b8cc.js → 1595dc499a06b23b6a96.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{6c97b5bc408f051606d2.js → 166a0df6e37627e18976.js} +1 -1
  64. package/assets/esri/core/workers/chunks/168be2eac0fa3c67ae27.js +1 -0
  65. package/assets/esri/core/workers/chunks/{cf3036711bbe6095eaed.js → 16b90d8f628a412ba4ba.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{aea8e0577fb48d5c9577.js → 181e948d076a9a7aae8a.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{176e676879666f784599.js → 18e7784f13a57a75585a.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{d66f68a811c90739951a.js → 1c029b03ed836f393a50.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{e6e15e9e890b864fb395.js → 1c1515e020e32e177b54.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{0aaee272520c6e5bb617.js → 1c64e10f966e26af6fed.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{b5d0898406c7d6e6a717.js → 1dacc0b64bd27ce2de3a.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{a0b6eef4890cc61609dc.js → 1ddbf5f507ac153234be.js} +1 -1
  73. package/assets/esri/core/workers/chunks/1eeb1edca0ad5db6917c.js +1 -0
  74. package/assets/esri/core/workers/chunks/1f55d60d3adc31283296.js +1 -0
  75. package/assets/esri/core/workers/chunks/{425c04b26a6ec6d04b08.js → 201007cf1a91e2b126fc.js} +1 -1
  76. package/assets/esri/core/workers/chunks/20d0adc678f11981059c.js +1 -0
  77. package/assets/esri/core/workers/chunks/20e2d11f6de438ee883e.js +1 -0
  78. package/assets/esri/core/workers/chunks/{696967c8c6f53b94f851.js → 227eff8aa4a6f5f03bc2.js} +1 -1
  79. package/assets/esri/core/workers/chunks/24646a1176ce34039155.js +1 -0
  80. package/assets/esri/core/workers/chunks/24647e7424798dccdaf5.js +1 -0
  81. package/assets/esri/core/workers/chunks/{7601408e242dca1d25bd.js → 249616ea2d90d40a8299.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{55d168c13491fcdfb284.js → 24eaf1349ffe10e616e6.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{9250615c78f8570a9cda.js → 29615df388a0df022d8c.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{a320c69bc7528ff0d0cf.js → 2c8584ec1c3c9fd5aba2.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{6ca81e34854ce7ec6f6e.js → 2ce845c990bb4d701362.js} +1 -1
  86. package/assets/esri/core/workers/chunks/2d374cc8c54a722a7afe.js +1 -0
  87. package/assets/esri/core/workers/chunks/{0bd2b035c6ee89c725f9.js → 31442f25d550ead58fc4.js} +1 -1
  88. package/assets/esri/core/workers/chunks/319ff04282dc8ae38b56.js +2 -0
  89. package/assets/esri/core/workers/chunks/{8b8b63be961eb73250a0.js → 32323b0e0fcecd8f640e.js} +1 -1
  90. package/assets/esri/core/workers/chunks/33b4f5dfe1a16b59b010.js +1 -0
  91. package/assets/esri/core/workers/chunks/3402fb9c596b582311c7.js +1 -0
  92. package/assets/esri/core/workers/chunks/359d3acb3953e64e5a78.js +1 -0
  93. package/assets/esri/core/workers/chunks/388e71e8f2ec41bfa5a9.js +1 -0
  94. package/assets/esri/core/workers/chunks/{dd58bc675b85b4d90afa.js → 39974d1e5d3820ef1680.js} +1 -1
  95. package/assets/esri/core/workers/chunks/3a6678ee9990d7e83e15.js +1 -0
  96. package/assets/esri/core/workers/chunks/3aacaa1be5efeac23a37.js +1 -0
  97. package/assets/esri/core/workers/chunks/{2562d8905bd05ef6fd07.js → 3b3986276e70297d573b.js} +1 -1
  98. package/assets/esri/core/workers/chunks/{d19600336cb6023d3e34.js → 3b765a8cac9e92f644f2.js} +1 -1
  99. package/assets/esri/core/workers/chunks/{b7a0a5b895ddd2d3d038.js → 3df5394b17e9659ecb8f.js} +1 -1
  100. package/assets/esri/core/workers/chunks/3e012cd3ca4451f89f59.js +1 -0
  101. package/assets/esri/core/workers/chunks/3e3134e4bc34d4e07179.js +30 -0
  102. package/assets/esri/core/workers/chunks/{c06ae3a6ecc4a4fc67b2.js → 40910c69307e2d2d3f28.js} +1 -1
  103. package/assets/esri/core/workers/chunks/428561df7ba6f02e2d80.js +1 -0
  104. package/assets/esri/core/workers/chunks/{0881929a4a457f94f317.js → 4301cb9670fa7c907460.js} +1 -1
  105. package/assets/esri/core/workers/chunks/{299b4eecd0288348c971.js → 45323491f9005629c602.js} +1 -1
  106. package/assets/esri/core/workers/chunks/46d0a25d33b5b328cfce.js +1 -0
  107. package/assets/esri/core/workers/chunks/46d3ddf62fa7a76dd57d.js +1 -0
  108. package/assets/esri/core/workers/chunks/{51816d79c6be15e4bfcf.js → 46fbd519cc1a37923bfc.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{d9d716bfd0aab30b6caf.js → 47656ec12401e53f4bd3.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{c0d7e4afbad0b20e2502.js → 47dd2bfecc5c4b5f10f0.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{f7698c855800e0af3038.js → 4845df00f6ebcce6ea3e.js} +1 -1
  112. package/assets/esri/core/workers/chunks/49f6c9e9980b8c624fd7.js +1 -0
  113. package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +1 -0
  114. package/assets/esri/core/workers/chunks/{8b5ee6be52e892fbd325.js → 4a9dd9f8aa98882218f3.js} +1 -1
  115. package/assets/esri/core/workers/chunks/4c54cb80c4dc9bbbd395.js +1 -0
  116. package/assets/esri/core/workers/chunks/{7c292f7b181f3b93352b.js → 4ef53455c8bc6efee80e.js} +1 -1
  117. package/assets/esri/core/workers/chunks/50dc9893e13396f5e35d.js +2 -0
  118. package/assets/esri/core/workers/chunks/{169c9eb6cd000e067c4b.js → 51ee6102f5f4840a5b47.js} +1 -1
  119. package/assets/esri/core/workers/chunks/{a0296e6d6c37b861c5fb.js → 5359ff9492383c5bd9b1.js} +1 -1
  120. package/assets/esri/core/workers/chunks/{728ad5bbbcbf88d6249f.js → 537c5dd4cd0a067199d1.js} +1 -1
  121. package/assets/esri/core/workers/chunks/54d7f07e3348ddb6d9a2.js +1 -0
  122. package/assets/esri/core/workers/chunks/{48440a071a37590846ff.js → 54dad475dc806a38c287.js} +1 -1
  123. package/assets/esri/core/workers/chunks/5500dc39e11a0057ae16.js +1 -0
  124. package/assets/esri/core/workers/chunks/{2b2a09ce14d00b4b1187.js → 58155f24f8ed6aca7a21.js} +1 -1
  125. package/assets/esri/core/workers/chunks/{224a9f39876aa426a9bc.js → 5838f46d341d2fde42ee.js} +1 -1
  126. package/assets/esri/core/workers/chunks/{47d49777a3b3cd8e18bd.js → 58994b6bfcda5f2ada80.js} +1 -1
  127. package/assets/esri/core/workers/chunks/592a599f514de373dead.js +1 -0
  128. package/assets/esri/core/workers/chunks/{1ff61d8a8ea060e78b83.js → 5aba23584e0b230c75f5.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{566c36032b456ec5b5d7.js → 5abe34bb0110694f7b42.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{7dc2c21d61ba66a3f461.js → 5b238f9c345f10c5c2fa.js} +1 -1
  131. package/assets/esri/core/workers/chunks/5f9bacee6fbf9ac1bca0.js +1 -0
  132. package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +1 -0
  133. package/assets/esri/core/workers/chunks/62206d5d497b95fc4caf.js +1 -0
  134. package/assets/esri/core/workers/chunks/{69a1cbf0af059548f96a.js → 64daa2a714e59d22bbd4.js} +1 -1
  135. package/assets/esri/core/workers/chunks/65520a443e3811255bea.js +1 -0
  136. package/assets/esri/core/workers/chunks/6637f19b82555738a1d5.js +1 -0
  137. package/assets/esri/core/workers/chunks/{7c86099ed17f420b0489.js → 67ebde34377f98d17cda.js} +1 -1
  138. package/assets/esri/core/workers/chunks/6af77529c977d034d287.js +1 -0
  139. package/assets/esri/core/workers/chunks/{cdef9c3f80588ae45a04.js → 6c9933f948efd7923aa1.js} +1 -1
  140. package/assets/esri/core/workers/chunks/{fe2325efd0d8ad8369ed.js → 6cab67fc7044ee9b863b.js} +1 -1
  141. package/assets/esri/core/workers/chunks/{f239a8ecad8b692d5eaa.js → 6db274f6767102a39021.js} +1 -1
  142. package/assets/esri/core/workers/chunks/{aea384f4d88121da8f54.js → 6f0341cfa4c68e6e60b3.js} +1 -1
  143. package/assets/esri/core/workers/chunks/737de87bfb9b5f5a9c6c.js +1 -0
  144. package/assets/esri/core/workers/chunks/{558606a1af22e4a0d536.js → 73c355b895fd6a34fcb8.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{85bba0db8a7a5fc1be44.js → 7601278ebced0c0c31cf.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{b09ae8eb5e97fb27382f.js → 76589434d573111a8fb4.js} +1 -1
  147. package/assets/esri/core/workers/chunks/{1f3a676e7a4eae5ad566.js → 767ea5b455b3823afd09.js} +1 -1
  148. package/assets/esri/core/workers/chunks/79f2d4b3af5776ec2045.js +1 -0
  149. package/assets/esri/core/workers/chunks/{c8dedc010fcc2382af24.js → 7b564226def99fcf79d8.js} +1 -1
  150. package/assets/esri/core/workers/chunks/7cadb872b9ca96eedca5.js +1 -0
  151. package/assets/esri/core/workers/chunks/7ed3d6c72f23c628df3b.js +1 -0
  152. package/assets/esri/core/workers/chunks/{ed939fd5d3827a3f70e0.js → 81e3bd1a0634ddc2b833.js} +1 -1
  153. package/assets/esri/core/workers/chunks/8244b74e9c3a30d8d2f6.js +2 -0
  154. package/assets/esri/core/workers/chunks/{062aadf426fe97a76bbb.js → 8351012ceb466f01b8fd.js} +1 -1
  155. package/assets/esri/core/workers/chunks/8407c91cce31e087b41b.js +1 -0
  156. package/assets/esri/core/workers/chunks/{24acf3dd541347c2b297.js → 882ee7ed8a3a0215f9b9.js} +1 -1
  157. package/assets/esri/core/workers/chunks/{98b4408e12684e37b395.js → 8a48a6760c33ed50b650.js} +1 -1
  158. package/assets/esri/core/workers/chunks/8bdca6f06c8b5fedd917.js +1 -0
  159. package/assets/esri/core/workers/chunks/8c5a41ae68775bac3446.js +1 -0
  160. package/assets/esri/core/workers/chunks/8e1865392681d390ab2e.js +1 -0
  161. package/assets/esri/core/workers/chunks/{7a823bb1b72764897dd5.js → 8f94c90fdb0333da2d0f.js} +1 -1
  162. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +1 -0
  163. package/assets/esri/core/workers/chunks/94fac056e14caed09682.js +1 -0
  164. package/assets/esri/core/workers/chunks/{f931d560f3f14598f454.js → 9dcfaca1f4fa8c8026ac.js} +1 -1
  165. package/assets/esri/core/workers/chunks/{5570d47533efab56c732.js → 9f4681713f03365a2a53.js} +1 -1
  166. package/assets/esri/core/workers/chunks/a0fa60a24e58f7a47e41.js +1 -0
  167. package/assets/esri/core/workers/chunks/{b32a13972cb3de652339.js → a320998f18922a35899f.js} +1 -1
  168. package/assets/esri/core/workers/chunks/{aa55923ca939a0d4606c.js → a3a28c4887f802e8d96d.js} +1 -1
  169. package/assets/esri/core/workers/chunks/a806ac351ef5da04c250.js +1 -0
  170. package/assets/esri/core/workers/chunks/{8795c4895df229cb471c.js → ab94c9f62462d7a98f6a.js} +1 -1
  171. package/assets/esri/core/workers/chunks/{2a8f198f6c272f92bad5.js → abdb05754c50776c3edd.js} +1 -1
  172. package/assets/esri/core/workers/chunks/{988e91cc6cf88c34c2de.js → ace1899a8e5162b4018d.js} +1 -1
  173. package/assets/esri/core/workers/chunks/ad488985824fbb830ed6.js +1 -0
  174. package/assets/esri/core/workers/chunks/af8ef6701631ed5e5b80.js +1 -0
  175. package/assets/esri/core/workers/chunks/{a95398214e530f896a2d.js → af96cbc4fb7bef726635.js} +1 -1
  176. package/assets/esri/core/workers/chunks/b08a1255dacf6cfcf139.js +640 -0
  177. package/assets/esri/core/workers/chunks/b098469e0010a6b44df9.js +1 -0
  178. package/assets/esri/core/workers/chunks/{170f8dc97614e9609443.js → b0ac4b0b7aec70cfe6eb.js} +1 -1
  179. package/assets/esri/core/workers/chunks/{4e97c01698ef36cc5e0e.js → b1f1271434af302938e8.js} +1 -1
  180. package/assets/esri/core/workers/chunks/{2f925a424b60b4a5e8e5.js → b803e7b0d489bb628d72.js} +1 -1
  181. package/assets/esri/core/workers/chunks/bb24972603fb35dd8dcf.js +1 -0
  182. package/assets/esri/core/workers/chunks/bca6abc185dedec0f41b.js +1 -0
  183. package/assets/esri/core/workers/chunks/{79b64a52ff57c40c7800.js → bf706a5d065a357de51b.js} +1 -1
  184. package/assets/esri/core/workers/chunks/bfbd1ca28ed2f263e58f.js +1 -0
  185. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +1 -0
  186. package/assets/esri/core/workers/chunks/c216cd5d6b5d4fe4bab3.js +2 -0
  187. package/assets/esri/core/workers/chunks/{d21bf107698fef03125e.js → c27cb2a83a1d2e004501.js} +1 -1
  188. package/assets/esri/core/workers/chunks/c44be4aaba829e6d149d.js +1 -0
  189. package/assets/esri/core/workers/chunks/c83fea0d0ebd0d8e43fd.js +1 -0
  190. package/assets/esri/core/workers/chunks/ca4245414d8ecd217f9d.js +1 -0
  191. package/assets/esri/core/workers/chunks/ca7d4d76a6bf5a3046cd.js +1 -0
  192. package/assets/esri/core/workers/chunks/cb8c4d8334fab9bd9a04.js +1 -0
  193. package/assets/esri/core/workers/chunks/{7a3b05e25de2ff150f38.js → cc479daacd2cf715baa8.js} +1 -1
  194. package/assets/esri/core/workers/chunks/{c1ffb879e0283fb2815f.js → cc62e5095e328bed3e01.js} +1 -1
  195. package/assets/esri/core/workers/chunks/{8d4881c879c86b353e08.js → cda99b543a0e1979346c.js} +1 -1
  196. package/assets/esri/core/workers/chunks/{a53a3e5548fef65a2710.js → cf826787ab8d4b27ad80.js} +1 -1
  197. package/assets/esri/core/workers/chunks/{d6d87bfa9e6d233385a9.js → d1ac98f48bb6d43d97c8.js} +2 -2
  198. package/assets/esri/core/workers/chunks/{1252da05832e576d4def.js → d1ccc5f2d8892328ab01.js} +2 -2
  199. package/assets/esri/core/workers/chunks/d1d135a54233092ad637.js +1 -0
  200. package/assets/esri/core/workers/chunks/d35c475f004367e333eb.js +1 -0
  201. package/assets/esri/core/workers/chunks/{b44f1d08784f2e50c853.js → d3af51a6d9014ff46170.js} +1 -1
  202. package/assets/esri/core/workers/chunks/d561dc933d8fe1672d85.js +1 -0
  203. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +1 -0
  204. package/assets/esri/core/workers/chunks/{bbaf8baa3ca6195467e4.js → d64613209a9eb1eafb11.js} +1 -1
  205. package/assets/esri/core/workers/chunks/{cb26966cc205bd338c76.js → d81291dac1932350eccd.js} +1 -1
  206. package/assets/esri/core/workers/chunks/dddb57ff637643ccfc87.js +1 -0
  207. package/assets/esri/core/workers/chunks/{0ded5c114cbb7574f2f4.js → dfeddb7b17fa9eaae64c.js} +1 -1
  208. package/assets/esri/core/workers/chunks/e178cd0e9178d6716410.js +1 -0
  209. package/assets/esri/core/workers/chunks/{7f54d3835c0ce573a942.js → e25bcfdd8f20f8a08b19.js} +1 -1
  210. package/assets/esri/core/workers/chunks/{e0bd550b10dd402c48f1.js → e38836bfcc7a15a2fd1f.js} +1 -1
  211. package/assets/esri/core/workers/chunks/e3b713a590cce6245ee2.js +1 -0
  212. package/assets/esri/core/workers/chunks/{a40003dfe3c081d1a1d2.js → e638391801ad83fe4a68.js} +1 -1
  213. package/assets/esri/core/workers/chunks/{0b76534b60014d74ecb9.js → e7712467db46e1385cf4.js} +1 -1
  214. package/assets/esri/core/workers/chunks/e785f76c1a75cb1d1e1f.js +1 -0
  215. package/assets/esri/core/workers/chunks/{76a9b64fd573775bf6cd.js → e82488b9b3bb0c1dedb4.js} +1 -1
  216. package/assets/esri/core/workers/chunks/{15fa8b5b472131aaa68e.js → e92698f50089484c4901.js} +1 -1
  217. package/assets/esri/core/workers/chunks/e9dcc3e9dbafe9bbed84.js +1 -0
  218. package/assets/esri/core/workers/chunks/ed2cb60e4f17f46fb78d.js +1 -0
  219. package/assets/esri/core/workers/chunks/edcde00495727d506c46.js +1 -0
  220. package/assets/esri/core/workers/chunks/{86a767c2b0b1e37ff493.js → eedee0af459e6b8a6116.js} +1 -1
  221. package/assets/esri/core/workers/chunks/{009250a7bded12099dd1.js → f1fb2f12371f4c562079.js} +1 -1
  222. package/assets/esri/core/workers/chunks/{466c250537415f12eb59.js → f31a8e76f1dde23c0900.js} +1 -1
  223. package/assets/esri/core/workers/chunks/f3dfe1bd1146a6927407.js +1 -0
  224. package/assets/esri/core/workers/chunks/{6b5d2df9123dfe7e00b3.js → f563dd6cace047108b3c.js} +1 -1
  225. package/assets/esri/core/workers/chunks/{6a53c8db554be55c5885.js → f5a2c28dc26c065ea355.js} +31 -21
  226. package/assets/esri/core/workers/chunks/f60292d97bcdbf19165b.js +1 -0
  227. package/assets/esri/core/workers/chunks/f79bd469b25099a31274.js +1 -0
  228. package/assets/esri/core/workers/chunks/f9e22cf59e2e2782d70f.js +1 -0
  229. package/assets/esri/core/workers/chunks/fce7995c26953bfd8d3d.js +1 -0
  230. package/assets/esri/core/workers/chunks/{e227ae2c1a63e30e62d9.js → ff48334528d2554db4fe.js} +1 -1
  231. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +18 -14
  232. package/assets/esri/themes/base/widgets/_Grid.scss +3 -3
  233. package/assets/esri/themes/dark/main.css +1 -1
  234. package/assets/esri/themes/light/main.css +1 -1
  235. package/assets/esri/themes/light/view.css +1 -1
  236. package/chunks/AtmosphereCompositing.glsl.js +1 -1
  237. package/chunks/Bufferer-Dw9Qi4T1.js +1 -1
  238. package/chunks/Centroid-DZi-eb9F.js +1 -1
  239. package/chunks/Clouds.glsl.js +1 -1
  240. package/chunks/Compositing.glsl.js +1 -1
  241. package/chunks/CutFillComposition.glsl.js +1 -1
  242. package/chunks/CutFillDepth.glsl.js +1 -1
  243. package/chunks/CutFillMask.glsl.js +1 -1
  244. package/chunks/CutFillReduction.glsl.js +1 -1
  245. package/chunks/CutFillTargetDepth.glsl.js +1 -1
  246. package/chunks/Distance2DCalculator-CXhBP-8I.js +1 -1
  247. package/chunks/Envelope.js +1 -1
  248. package/chunks/Envelope2D.js +1 -1
  249. package/chunks/FlatGeometry.js +1 -1
  250. package/chunks/FocusAreaColor.glsl.js +1 -1
  251. package/chunks/FocusAreaMask.glsl.js +1 -1
  252. package/chunks/Fog.glsl.js +1 -1
  253. package/chunks/GaussianSplat.glsl.js +1 -1
  254. package/chunks/GaussianSplatShadow.glsl.js +1 -1
  255. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  256. package/chunks/GeodeticUtils.js +1 -1
  257. package/chunks/Geometry.js +1 -1
  258. package/chunks/GeometryCleaner-BEJM7I4l.js +1 -1
  259. package/chunks/GlobalIllumination.glsl.js +20 -19
  260. package/chunks/GlobalIlluminationBlur.glsl.js +15 -12
  261. package/chunks/GlobalIlluminationUpscale.glsl.js +4 -3
  262. package/chunks/GlowBlur.glsl.js +1 -1
  263. package/chunks/GlowComposition.glsl.js +1 -1
  264. package/chunks/HazeCompositing.glsl.js +1 -1
  265. package/chunks/HighlightBlur.glsl.js +1 -1
  266. package/chunks/HighlightDownsample.glsl.js +1 -1
  267. package/chunks/Magnifier.glsl.js +1 -1
  268. package/chunks/MultiPathImpl.js +1 -1
  269. package/chunks/NoiseTextureAtlas.glsl.js +1 -1
  270. package/chunks/OITBlend.glsl.js +2 -2
  271. package/chunks/OITBlendEmission.glsl.js +1 -1
  272. package/chunks/OITDimOpaque.glsl.js +1 -1
  273. package/chunks/OperatorClip.js +1 -1
  274. package/chunks/OperatorCrosses.js +1 -1
  275. package/chunks/OperatorCut.js +1 -1
  276. package/chunks/OperatorDensify.js +1 -1
  277. package/chunks/OperatorGeneralize.js +1 -1
  278. package/chunks/OperatorGeodesicBuffer.js +1 -1
  279. package/chunks/OperatorGeodeticArea.js +1 -1
  280. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  281. package/chunks/OperatorGeodeticDistance.js +1 -1
  282. package/chunks/OperatorGeodeticLength.js +1 -1
  283. package/chunks/OperatorIntegrate.js +1 -1
  284. package/chunks/OperatorIntersects.js +1 -1
  285. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  286. package/chunks/OperatorOverlaps.js +1 -1
  287. package/chunks/OperatorProject.js +1 -1
  288. package/chunks/OperatorProximity.js +1 -1
  289. package/chunks/OperatorProximityGeodesic.js +1 -1
  290. package/chunks/OperatorShapePreservingDensify.js +1 -1
  291. package/chunks/OperatorShapePreservingLength.js +1 -1
  292. package/chunks/OperatorShapePreservingProject.js +1 -1
  293. package/chunks/OperatorSimplifyOGC.js +1 -1
  294. package/chunks/OperatorTouches.js +1 -1
  295. package/chunks/OperatorWithin.js +1 -1
  296. package/chunks/OverlayCompositing.glsl.js +1 -1
  297. package/chunks/Point2D.js +1 -1
  298. package/chunks/PointRenderer.glsl.js +1 -1
  299. package/chunks/ProjectionTransformation.js +1 -1
  300. package/chunks/RasterColorizer.glsl.js +1 -1
  301. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  302. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  303. package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
  304. package/chunks/SimpleAtmosphere.glsl.js +1 -1
  305. package/chunks/SpatialReference.js +1 -1
  306. package/chunks/Terrain.glsl.js +1 -1
  307. package/chunks/Texture.glsl.js +1 -1
  308. package/chunks/Transformation2D.js +1 -1
  309. package/chunks/Viewshed.glsl.js +1 -1
  310. package/chunks/aiServices.js +1 -1
  311. package/chunks/arcade.js +1 -1
  312. package/chunks/array.js +1 -1
  313. package/chunks/boundedPlane.js +1 -1
  314. package/chunks/bundle.js +1 -1
  315. package/chunks/bundle2.js +1 -1
  316. package/chunks/constants.js +1 -1
  317. package/chunks/containsOperator.js +1 -1
  318. package/chunks/disjointOperator.js +1 -1
  319. package/chunks/distanceOperator.js +1 -1
  320. package/chunks/equalsOperator.js +1 -1
  321. package/chunks/languageUtils.js +1 -1
  322. package/chunks/pe.js +1 -1
  323. package/chunks/persistableUrlUtils.js +1 -1
  324. package/chunks/relateOperator.js +1 -1
  325. package/chunks/symmetricDifferenceOperator.js +1 -1
  326. package/chunks/unionOperator.js +1 -1
  327. package/chunks/vec2.js +1 -1
  328. package/chunks/vec3.js +1 -1
  329. package/chunks/vec4.js +1 -1
  330. package/config.js +1 -1
  331. package/core/accessorSupport/decorators/persistable.js +1 -1
  332. package/core/mapCollectionUtils.js +1 -1
  333. package/core/quantityFormatUtils.js +1 -1
  334. package/core/unitFormatUtils.js +1 -1
  335. package/editing/sharedTemplates/templateDefinitions/FeatureTemplateDefinition.js +1 -1
  336. package/editing/sharedTemplates/templateDefinitions/GroupTemplateDefinition.js +1 -1
  337. package/editing/sharedTemplates/templateDefinitions/PresetTemplateDefinition.js +1 -1
  338. package/effects/FocusArea.js +1 -1
  339. package/geometry/Circle.js +1 -1
  340. package/geometry/coordinateFormatter.js +1 -1
  341. package/geometry/geodesicUtils.js +1 -1
  342. package/geometry/operators/extendOperator.js +1 -1
  343. package/geometry/operators/gx/geodeticUtils.js +1 -1
  344. package/geometry/operators/gx/operatorAffineTransform.js +1 -1
  345. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  346. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  347. package/geometry/operators/gx/operatorBoundary.js +1 -1
  348. package/geometry/operators/gx/operatorBuffer.js +1 -1
  349. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  350. package/geometry/operators/gx/operatorDifference.js +1 -1
  351. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  352. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  353. package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
  354. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  355. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  356. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  357. package/geometry/operators/gx/operatorIntersection.js +1 -1
  358. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  359. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  360. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  361. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  362. package/geometry/operators/gx/operatorOffset.js +1 -1
  363. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  364. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  365. package/geometry/operators/gx/operatorProject.js +1 -1
  366. package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
  367. package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
  368. package/geometry/operators/gx/operatorSimplify.js +1 -1
  369. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  370. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  371. package/geometry/operators/gx/operatorUnion.js +1 -1
  372. package/geometry/operators/isNearOperator.js +1 -1
  373. package/geometry/operators/json/containsOperator.js +1 -1
  374. package/geometry/operators/json/disjointOperator.js +1 -1
  375. package/geometry/operators/locateBetweenOperator.js +1 -1
  376. package/geometry/operators/offsetOperator.js +1 -1
  377. package/geometry/operators/reshapeOperator.js +1 -1
  378. package/geometry/operators/support/apiConverter.js +1 -1
  379. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  380. package/geometry/operators/support/initNoPeFactory.js +1 -1
  381. package/geometry/operators/support/jsonConverter.js +1 -1
  382. package/geometry/operators/support/projectionTransformation.js +1 -1
  383. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  384. package/geometry/operators/unionOperator.js +1 -1
  385. package/geometry/pe.js +1 -1
  386. package/geometry/support/MeshTexture.js +1 -1
  387. package/geometry/support/boundedPlane.js +1 -1
  388. package/geometry/support/buffer/math/vec3.js +1 -1
  389. package/geometry/support/buffer/math/vec4.js +1 -1
  390. package/geometry/support/buffer/utils/vec2.js +1 -1
  391. package/geometry/support/coordinateSystem.js +1 -1
  392. package/geometry/support/frustum.js +1 -1
  393. package/geometry/support/meshUtils/extent.js +1 -1
  394. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  395. package/geometry/support/meshUtils/projection.js +1 -1
  396. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  397. package/geometry/support/spatialReferenceUtils.js +1 -1
  398. package/kernel.js +1 -1
  399. package/layers/FeatureLayer.d.ts +1 -1
  400. package/layers/FeatureLayer.js +1 -1
  401. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  402. package/layers/IntegratedMeshLayer.js +1 -1
  403. package/layers/KnowledgeGraphLayer.js +1 -1
  404. package/layers/MediaLayer.d.ts +1 -1
  405. package/layers/SceneLayer.d.ts +2 -2
  406. package/layers/UnsupportedLayer.d.ts +10 -2
  407. package/layers/VectorTileLayer.d.ts +2 -2
  408. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  409. package/layers/mixins/ArcGISImageService.js +1 -1
  410. package/layers/mixins/BlendLayer.d.ts +1 -1
  411. package/layers/orientedImagery/transformations/utils.js +1 -1
  412. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  413. package/layers/save/featureLayerUtils.js +1 -1
  414. package/layers/support/FeatureFilter.d.ts +1 -1
  415. package/layers/support/FeatureReductionSelection.d.ts +1 -1
  416. package/layers/support/ImageElement.js +1 -1
  417. package/layers/support/ParquetFilesData.js +1 -1
  418. package/layers/support/RasterJobHandler.js +1 -1
  419. package/layers/support/RasterWorker.js +1 -1
  420. package/layers/support/SceneFilter.js +1 -1
  421. package/layers/support/arcgisLayers.js +1 -1
  422. package/layers/support/fetchService.js +1 -1
  423. package/layers/support/layerUtils.js +1 -1
  424. package/layers/support/layersLoader.js +1 -1
  425. package/libs/parquet/loadParquetModule.js +1 -1
  426. package/libs/text/loadTextModule.js +1 -1
  427. package/linkChart/LinkChartProperties.js +1 -1
  428. package/package.json +3 -3
  429. package/portal/PortalItem.js +1 -1
  430. package/renderers/FlowRenderer.d.ts +2 -2
  431. package/renderers/UniqueValueRenderer.js +1 -1
  432. package/rest/support/IdentifyParameters.js +1 -1
  433. package/rest/support/IdentifyResult.js +1 -1
  434. package/smartMapping/raster/renderers/flow.d.ts +2 -2
  435. package/smartMapping/renderers/type.js +1 -1
  436. package/smartMapping/renderers/univariateColorSize.js +1 -1
  437. package/smartMapping/symbology/flow.d.ts +2 -2
  438. package/smartMapping/symbology/types.d.ts +2 -2
  439. package/support/arcadeUtils.js +1 -1
  440. package/support/persistableUrlUtils.js +1 -1
  441. package/support/revision.js +1 -1
  442. package/symbols/Symbol3D.js +1 -1
  443. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  444. package/symbols/cim/CIMSymbolHelper.js +1 -1
  445. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  446. package/symbols/support/Symbol3DVerticalOffset.d.ts +2 -2
  447. package/symbols/support/previewSymbol2D.js +1 -1
  448. package/symbols/support/urlUtils.js +1 -1
  449. package/symbols/support/webStyleSymbolUtils.js +1 -1
  450. package/views/2d/ViewStateManager.js +1 -1
  451. package/views/2d/engine/vectorTiles/shaders/VTLBackgroundMaterial.js +1 -1
  452. package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
  453. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +1 -1
  454. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  455. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  456. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
  457. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  458. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  459. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  460. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  461. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  462. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  463. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlitShader.js +1 -1
  464. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +1 -1
  465. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlurShader.js +1 -1
  466. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ClipShader.js +1 -1
  467. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ColorizeShader.js +1 -1
  468. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  469. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  470. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +1 -1
  471. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  472. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
  473. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  474. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js +1 -1
  475. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  476. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
  477. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  478. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
  479. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
  480. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  481. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  482. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
  483. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternOutlineFillShader.js +1 -1
  484. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PostProcessingShader.js +1 -1
  485. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  486. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
  487. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
  488. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js +1 -1
  489. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowImageryShader.js +1 -1
  490. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowParticlesShader.js +1 -1
  491. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowStreamlinesShader.js +1 -1
  492. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowUtils.js +1 -1
  493. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  494. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MultiRasterMixin.js +1 -1
  495. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  496. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vvUtils.js +1 -1
  497. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  498. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  499. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  500. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  501. package/views/2d/layers/BaseLayerView2D.d.ts +19 -3
  502. package/views/2d/layers/BaseLayerViewGL2D.d.ts +19 -3
  503. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  504. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  505. package/views/2d/layers/features/Processor.js +1 -1
  506. package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
  507. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  508. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  509. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  510. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  511. package/views/2d/navigation/ZoomBox.js +1 -1
  512. package/views/2d/navigation/actions/Pan.js +1 -1
  513. package/views/2d/navigation/actions/Pinch.js +1 -1
  514. package/views/2d/navigation/actions/Rotate.js +1 -1
  515. package/views/3d/analysis/AnalysisView3D.js +1 -1
  516. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  517. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  518. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  519. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  520. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  521. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  522. package/views/3d/analysis/LineOfSightAnalysisResult.js +1 -1
  523. package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
  524. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  525. package/views/3d/analysis/Slice/SliceController.js +1 -1
  526. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  527. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  528. package/views/3d/analysis/Viewshed/ViewshedDrawToolRenderer.js +1 -1
  529. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  530. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  531. package/views/3d/analysis/Viewshed/ViewshedPlacementOperation.js +1 -1
  532. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
  533. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  534. package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
  535. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  536. package/views/3d/analysis/Viewshed/ViewshedTool2.js +1 -1
  537. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  538. package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
  539. package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
  540. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  541. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  542. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  543. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.d.ts +1 -1
  544. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.js +1 -1
  545. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  546. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  547. package/views/3d/focusAreaUtils.js +1 -1
  548. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  549. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  550. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  551. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  552. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  553. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  554. package/views/3d/layers/DrapedSubView3D.js +1 -1
  555. package/views/3d/layers/FlowSubView3D.js +1 -1
  556. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  557. package/views/3d/layers/I3SMeshView3D.js +1 -1
  558. package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
  559. package/views/3d/layers/ImagerySubView3D.js +1 -1
  560. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  561. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  562. package/views/3d/layers/PointCloudWorker.js +1 -1
  563. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  564. package/views/3d/layers/SceneLayerWorker.js +1 -1
  565. package/views/3d/layers/SubView3D.js +1 -1
  566. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  567. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  568. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  569. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  570. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  571. package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
  572. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  573. package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
  574. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  575. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  576. package/views/3d/layers/i3s/LoDUtil.js +1 -1
  577. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  578. package/views/3d/layers/i3s/meshUtils.js +1 -1
  579. package/views/3d/layers/support/FeatureTile.js +1 -1
  580. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  581. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  582. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  583. package/views/3d/layers/support/I3STreeDebugger.js +1 -1
  584. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  585. package/views/3d/layers/support/MediaLayerInteractionReshapeOptions.js +1 -1
  586. package/views/3d/layers/support/edgeUtils.js +1 -1
  587. package/views/3d/state/ScreenSizePerspective.js +1 -1
  588. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  589. package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
  590. package/views/3d/state/utils/navigationUtils.js +1 -1
  591. package/views/3d/support/ViewSlice.js +1 -1
  592. package/views/3d/support/dito.js +1 -1
  593. package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
  594. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  595. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  596. package/views/3d/support/orientedBoundingBox.js +1 -1
  597. package/views/3d/support/sunUtils.js +1 -1
  598. package/views/3d/terrain/OverlayRenderer.js +1 -1
  599. package/views/3d/terrain/RasterColorizer.glsl.js +1 -1
  600. package/views/3d/terrain/RasterTile.js +1 -1
  601. package/views/3d/terrain/TerrainRenderer.js +1 -1
  602. package/views/3d/webgl/RenderCamera.js +1 -1
  603. package/views/3d/webgl/RenderNode.js +1 -1
  604. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  605. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  606. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
  607. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  608. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  609. package/views/3d/webgl-engine/effects/atmosphere/SimpleAtmosphere.glsl.js +1 -1
  610. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  611. package/views/3d/webgl-engine/effects/clouds/Clouds.glsl.js +1 -1
  612. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  613. package/views/3d/webgl-engine/effects/clouds/CloudsTechnique.js +1 -1
  614. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.glsl.js +1 -1
  615. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
  616. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlasTechnique.js +1 -1
  617. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColor.glsl.js +1 -1
  618. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  619. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  620. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.glsl.js +1 -1
  621. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  622. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  623. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  624. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  625. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  626. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  627. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  628. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
  629. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlurTechnique.js +1 -1
  630. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +7 -0
  631. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechnique.js +1 -1
  632. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  633. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscale.glsl.js +1 -1
  634. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscaleTechnique.js +1 -1
  635. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  636. package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
  637. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +1 -1
  638. package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
  639. package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +1 -1
  640. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  641. package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
  642. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  643. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  644. package/views/3d/webgl-engine/effects/highlight/HighlightBlur.glsl.js +1 -1
  645. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  646. package/views/3d/webgl-engine/effects/highlight/HighlightDownsample.glsl.js +1 -1
  647. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  648. package/views/3d/webgl-engine/effects/magnifier/Magnifier.glsl.js +1 -1
  649. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  650. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  651. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
  652. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  653. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  654. package/views/3d/webgl-engine/effects/transparency/OITDimOpaque.glsl.js +1 -1
  655. package/views/3d/webgl-engine/effects/transparency/OITDimOpaqueTechnique.js +1 -1
  656. package/views/3d/webgl-engine/lib/Compositor.js +1 -1
  657. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  658. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  659. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  660. package/views/3d/webgl-engine/lib/GaussianSplatShadowRenderNode.js +1 -1
  661. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  662. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  663. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  664. package/views/3d/webgl-engine/lib/Texture.glsl.js +1 -1
  665. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  666. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  667. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  668. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  669. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  670. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  671. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  672. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  673. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  674. package/views/3d/webgl-engine/shaders/CutFillComposition.glsl.js +1 -1
  675. package/views/3d/webgl-engine/shaders/CutFillCompositionTechnique.js +1 -1
  676. package/views/3d/webgl-engine/shaders/CutFillDepth.glsl.js +1 -1
  677. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +1 -1
  678. package/views/3d/webgl-engine/shaders/CutFillDepthTechniqueConfiguration.js +1 -1
  679. package/views/3d/webgl-engine/shaders/CutFillMask.glsl.js +1 -1
  680. package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
  681. package/views/3d/webgl-engine/shaders/CutFillReduction.glsl.js +1 -1
  682. package/views/3d/webgl-engine/shaders/CutFillReductionTechnique.js +1 -1
  683. package/views/3d/webgl-engine/shaders/CutFillReductionTechniqueConfiguration.js +1 -1
  684. package/views/3d/webgl-engine/shaders/CutFillTargetDepth.glsl.js +1 -1
  685. package/views/3d/webgl-engine/shaders/CutFillTargetDepthTechnique.js +1 -1
  686. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  687. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +1 -1
  688. package/views/3d/webgl-engine/shaders/GaussianSplatShadow.glsl.js +1 -1
  689. package/views/3d/webgl-engine/shaders/GaussianSplatShadowTechnique.js +1 -1
  690. package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
  691. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +1 -1
  692. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  693. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  694. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  695. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
  696. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  697. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +1 -1
  698. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  699. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  700. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  701. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  702. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  703. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  704. package/views/SceneView.d.ts +1 -1
  705. package/views/Theme.js +1 -1
  706. package/views/View.js +1 -1
  707. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  708. package/views/analysis/ElevationProfile/ElevationProfileError.d.ts +1 -1
  709. package/views/analysis/LengthDimensionResult.js +1 -1
  710. package/views/draw/drawSurfaces.js +1 -1
  711. package/views/interactive/Tooltip.js +1 -1
  712. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  713. package/views/interactive/sketch/SketchLabelOptions.js +1 -1
  714. package/views/interactive/sketch/SketchTooltipOptions.d.ts +1 -1
  715. package/views/interactive/sketch/constraints.js +1 -1
  716. package/views/interactive/sketch/normalizedPoint.js +1 -1
  717. package/views/interactive/snapping/SnappingOptions.d.ts +3 -3
  718. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  719. package/views/interactive/support/utils.js +1 -1
  720. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  721. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  722. package/views/interactive/tooltip/fields/fields.js +1 -1
  723. package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
  724. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  725. package/views/layers/BuildingComponentSublayerView.js +1 -1
  726. package/views/layers/FeatureLikeLayerView.d.ts +1 -1
  727. package/views/layers/FeatureLikeLayerView.js +1 -1
  728. package/views/layers/GroupLayerView.js +1 -1
  729. package/views/layers/SceneLayerView.js +1 -1
  730. package/views/overlay/CrosshairOverlayItem.js +1 -1
  731. package/views/overlay/LineOverlayItem.js +1 -1
  732. package/views/support/angularMeasurementUtils.js +1 -1
  733. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  734. package/views/support/flow/dataUtils.js +1 -1
  735. package/views/support/geometry2dUtils.js +1 -1
  736. package/views/support/geometry3dUtils.js +1 -1
  737. package/views/webgl/RenderingContext.js +1 -1
  738. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +30 -2
  739. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  740. package/widgets/BatchAttributeForm/css.js +1 -1
  741. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +0 -5
  742. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  743. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  744. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +1 -1
  745. package/widgets/BatchAttributeForm/types.d.ts +68 -1
  746. package/widgets/BatchAttributeForm.js +1 -1
  747. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  748. package/widgets/BuildingExplorer/BuildingLevelPicker/constants.js +1 -1
  749. package/widgets/Daylight.d.ts +1 -1
  750. package/widgets/Directions/DirectionsViewModel.js +1 -1
  751. package/widgets/Editor/components/Settings.js +1 -1
  752. package/widgets/Editor.d.ts +8 -8
  753. package/widgets/ElevationProfile.d.ts +1 -1
  754. package/widgets/FeatureTable/ActionColumn.d.ts +1 -1
  755. package/widgets/FeatureTable/FieldColumn.d.ts +14 -1
  756. package/widgets/Histogram/HistogramViewModel.js +1 -1
  757. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  758. package/widgets/Sketch/SketchViewModel.d.ts +38 -38
  759. package/widgets/Sketch.d.ts +39 -39
  760. package/widgets/Sketch.js +1 -1
  761. package/widgets/Slice.d.ts +1 -1
  762. package/widgets/UtilityNetworkTrace.d.ts +1 -1
  763. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
  764. package/widgets/support/ContingentValuesManager.js +1 -1
  765. package/assets/esri/core/workers/chunks/069459519477bb3dc91b.js +0 -1
  766. package/assets/esri/core/workers/chunks/0b445c1cf281f158c1f1.js +0 -1
  767. package/assets/esri/core/workers/chunks/0e9804ece1fd2d59751b.js +0 -1
  768. package/assets/esri/core/workers/chunks/115664cb7d7b22a315bb.js +0 -1
  769. package/assets/esri/core/workers/chunks/123a67e84ed68b96ac59.js +0 -1
  770. package/assets/esri/core/workers/chunks/163ce1be8bfe20e77f97.js +0 -1
  771. package/assets/esri/core/workers/chunks/18201119828664373165.js +0 -1
  772. package/assets/esri/core/workers/chunks/18ebf1d3ed05c8057f7d.js +0 -1
  773. package/assets/esri/core/workers/chunks/19f07c8d0f32ec889861.js +0 -1
  774. package/assets/esri/core/workers/chunks/1bd8a7f92a428eedb22e.js +0 -1
  775. package/assets/esri/core/workers/chunks/1f537c05c2f643acb5e7.js +0 -1
  776. package/assets/esri/core/workers/chunks/241aeff6afd074ce105b.js +0 -1
  777. package/assets/esri/core/workers/chunks/2855357a2c1f2ab03fb7.js +0 -1
  778. package/assets/esri/core/workers/chunks/2e8db0f05df2e38a14e1.js +0 -2
  779. package/assets/esri/core/workers/chunks/30e191d36aa95823c018.js +0 -1
  780. package/assets/esri/core/workers/chunks/315bf08dff4757ffbed3.js +0 -1
  781. package/assets/esri/core/workers/chunks/31c01885ee6d70a2bde2.js +0 -1
  782. package/assets/esri/core/workers/chunks/3292b3883f203637b5a7.js +0 -1
  783. package/assets/esri/core/workers/chunks/32f24a66f684de3c243d.js +0 -1
  784. package/assets/esri/core/workers/chunks/35527a01d61cabbfd33e.js +0 -1
  785. package/assets/esri/core/workers/chunks/3aebbed6d4fd1b993a35.js +0 -1
  786. package/assets/esri/core/workers/chunks/3f1d533efe4300d19e6a.js +0 -1
  787. package/assets/esri/core/workers/chunks/413d2fa54508e6f42c74.js +0 -1
  788. package/assets/esri/core/workers/chunks/4325fa92dafca465ae26.js +0 -1
  789. package/assets/esri/core/workers/chunks/4364a3e706294bb6ae41.js +0 -1
  790. package/assets/esri/core/workers/chunks/438f35d41c6851736818.js +0 -30
  791. package/assets/esri/core/workers/chunks/453c9e8d438d061e1736.js +0 -1
  792. package/assets/esri/core/workers/chunks/479e34b0abc10499bd3a.js +0 -1
  793. package/assets/esri/core/workers/chunks/49675e77a351abda2728.js +0 -1
  794. package/assets/esri/core/workers/chunks/4cdf80e2e60501dd4756.js +0 -1
  795. package/assets/esri/core/workers/chunks/51edfe21d4c6ee22c83d.js +0 -1
  796. package/assets/esri/core/workers/chunks/5524a71d1abc9568ce26.js +0 -1
  797. package/assets/esri/core/workers/chunks/557e39e5156b313597f9.js +0 -1
  798. package/assets/esri/core/workers/chunks/55b765c72d13b3b911f9.js +0 -1
  799. package/assets/esri/core/workers/chunks/5dc86a3a40d16b576bb5.js +0 -1
  800. package/assets/esri/core/workers/chunks/6182d39e2095d4460b88.js +0 -1
  801. package/assets/esri/core/workers/chunks/621d71d26bd20e296138.js +0 -1
  802. package/assets/esri/core/workers/chunks/67dffb896b6ef4b2038b.js +0 -1
  803. package/assets/esri/core/workers/chunks/694f9571e2723d3d4b02.js +0 -1
  804. package/assets/esri/core/workers/chunks/69ad5930ff6040c6c561.js +0 -1
  805. package/assets/esri/core/workers/chunks/6af88bb722bbb37db198.js +0 -2
  806. package/assets/esri/core/workers/chunks/70d8f5bdb452cee41536.js +0 -2
  807. package/assets/esri/core/workers/chunks/728151d24334027af635.js +0 -1
  808. package/assets/esri/core/workers/chunks/78af4b7a379c40f497a7.js +0 -1
  809. package/assets/esri/core/workers/chunks/7f1fcddc8dd42a1b67d9.js +0 -1
  810. package/assets/esri/core/workers/chunks/86443e47ad99e555753a.js +0 -1
  811. package/assets/esri/core/workers/chunks/86f2de7dda7992ae706c.js +0 -1
  812. package/assets/esri/core/workers/chunks/895114ccd2603830960f.js +0 -1
  813. package/assets/esri/core/workers/chunks/927c8ca7fd385b28a1b7.js +0 -640
  814. package/assets/esri/core/workers/chunks/95d82c619dcbec2e1050.js +0 -1
  815. package/assets/esri/core/workers/chunks/979bab62cad788180770.js +0 -1
  816. package/assets/esri/core/workers/chunks/9d70247d820085a2c190.js +0 -1
  817. package/assets/esri/core/workers/chunks/a0aaf14c8f9a007d88ac.js +0 -1
  818. package/assets/esri/core/workers/chunks/a0fce639319d59becd01.js +0 -2
  819. package/assets/esri/core/workers/chunks/aa03f770178693167aa0.js +0 -1
  820. package/assets/esri/core/workers/chunks/aea439d4c2308f88b295.js +0 -1
  821. package/assets/esri/core/workers/chunks/af45110f07e4b5162bae.js +0 -1
  822. package/assets/esri/core/workers/chunks/b0c647af49c9d563b852.js +0 -1
  823. package/assets/esri/core/workers/chunks/b640651c7d86cfe654bf.js +0 -1
  824. package/assets/esri/core/workers/chunks/b78fb24b47d9f31f18c6.js +0 -1
  825. package/assets/esri/core/workers/chunks/b8dda9e55caba0e2b4c2.js +0 -1
  826. package/assets/esri/core/workers/chunks/ba693317ed3939587f30.js +0 -1
  827. package/assets/esri/core/workers/chunks/c13c532fe38ddc5d7ca6.js +0 -1
  828. package/assets/esri/core/workers/chunks/c4872cf3b71d00f450e1.js +0 -1
  829. package/assets/esri/core/workers/chunks/c5b7ff8650235c464dbf.js +0 -1
  830. package/assets/esri/core/workers/chunks/caf80facb0322be054ab.js +0 -1
  831. package/assets/esri/core/workers/chunks/cc48354c54358777e996.js +0 -1
  832. package/assets/esri/core/workers/chunks/d5423df247be82fa085a.js +0 -1
  833. package/assets/esri/core/workers/chunks/d598d08dbf2796742e8c.js +0 -1
  834. package/assets/esri/core/workers/chunks/da4f7d7099ba88f31f45.js +0 -1
  835. package/assets/esri/core/workers/chunks/dbb1ac41fd5da4fd849b.js +0 -1
  836. package/assets/esri/core/workers/chunks/dc259eed58fde3f5cb5c.js +0 -1
  837. package/assets/esri/core/workers/chunks/e0036fa0324a96a88248.js +0 -1
  838. package/assets/esri/core/workers/chunks/e29d182460564c2a52ad.js +0 -1
  839. package/assets/esri/core/workers/chunks/eda083e9d12e45da0a7b.js +0 -1
  840. package/assets/esri/core/workers/chunks/f0b5c140a5ba174572b6.js +0 -1
  841. package/assets/esri/core/workers/chunks/f286680e363eefdf27df.js +0 -1
  842. package/assets/esri/core/workers/chunks/fa3138dd8139008b430d.js +0 -1
  843. package/assets/esri/core/workers/chunks/fb0afb41a3d87d59f574.js +0 -1
  844. package/assets/esri/core/workers/chunks/fc9fbc8e4e459edf4e37.js +0 -1
  845. /package/assets/esri/core/workers/chunks/{6af88bb722bbb37db198.js.LICENSE.txt → 319ff04282dc8ae38b56.js.LICENSE.txt} +0 -0
  846. /package/assets/esri/core/workers/chunks/{70d8f5bdb452cee41536.js.LICENSE.txt → 50dc9893e13396f5e35d.js.LICENSE.txt} +0 -0
  847. /package/assets/esri/core/workers/chunks/{2e8db0f05df2e38a14e1.js.LICENSE.txt → 8244b74e9c3a30d8d2f6.js.LICENSE.txt} +0 -0
  848. /package/assets/esri/core/workers/chunks/{a0fce639319d59becd01.js.LICENSE.txt → c216cd5d6b5d4fe4bab3.js.LICENSE.txt} +0 -0
  849. /package/assets/esri/core/workers/chunks/{1252da05832e576d4def.js.LICENSE.txt → d1ccc5f2d8892328ab01.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{bidiText as e}from"../../core/BidiText.js";import{clone as t}from"../../core/lang.js";import r from"../../core/Logger.js";import o from"../../core/RandomLCG.js";import{px2pt as a}from"../../core/screenUtils.js";import{create as s,expandPointInPlace as i}from"../../geometry/support/aaBoundingRect.js";import{getBoundsXY as n}from"../../geometry/support/boundsUtils.js";import{isCurvedGeometry as l}from"../../geometry/support/curves/curveUtils.js";import{densifyCurvedGeometry as c}from"../../geometry/support/curves/densifyCurvedGeometry.js";import m from"../Font.js";import{loadGeometryOperatorsForEffect as f,loadGeometryOperatorsForPlacement as y}from"./CIMEffects.js";import{Placement as h}from"./CIMPlacements.js";import{EnvDrawHelper as u,CanvasDrawHelper as p,lineGapType2LineHeight as S,Transformation as M}from"./CIMSymbolDrawHelper.js";import{defaultCIMValues as d}from"./defaultCIMValues.js";import{getEffectsInflateSize as g,getNumericValue as b,fromCIMFontStyle as x,fromCIMFontDecoration as C}from"./utils.js";import{defaultPolylineSymbol2D as I}from"../support/defaults.js";import{cInfinity as k}from"../../views/2d/engine/vectorTiles/GeometryUtils.js";import{magicLabelLineHeight as w,glyphSize as P,randomInsidePolygonTextureSize as L}from"../../views/2d/engine/webgl/definitions.js";import{shapeGlyphs as z}from"../../views/2d/engine/webgl/mesh/templates/shapingUtils.js";import{roundPtToWholePixel as F,getLineWidth as D}from"../../views/2d/layers/graphics/graphicsUtils.js";const T=Math.PI,v=T/2,A=Math.PI/180,G=96/72,j=1.4142135623730951,E=2,R=4,B=()=>r.getLogger("esri.symbols.cim.CIMSymbolHelper");function X(e){let t;switch(e.type){case"cim":return e.data;case"web-style":return e;case"simple-marker":{const r=_.fromSimpleMarker(e);if(!r)throw new Error("InternalError: Cannot convert symbol to CIM");t=r;break}case"picture-marker":t=_.fromPictureMarker(e);break;case"simple-line":t=_.fromSimpleLineSymbol(e);break;case"simple-fill":t=_.fromSimpleFillSymbol(e);break;case"picture-fill":t=_.fromPictureFillSymbol(e);break;case"text":t=_.fromTextSymbol(e)}return{type:"CIMSymbolReference",symbol:t}}function V(e,t,r){switch(t.type){case"CIMSymbolReference":return V(e,t.symbol,r);case"CIMPointSymbol":null==r&&(r={x:0,y:0}),e.drawSymbol(t,r);break;case"CIMLineSymbol":null==r&&(r={paths:[[[0,0],[10,0]]]}),e.drawSymbol(t,r);break;case"CIMPolygonSymbol":null==r&&(r={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),e.drawSymbol(t,r);break;case"CIMTextSymbol":{const r={x:0,y:0};e.drawSymbol(t,r);break}case"CIMVectorMarker":{const r=new h;e.drawMarker(t,r);break}}return e.envelope()}function N(e){if(!e)return 0;switch(e.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAtExtremities":case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementAtRatioPositions":case"CIMMarkerPlacementOnLine":case"CIMMarkerPlacementOnVertices":return Math.abs(e.offset??0);default:return 0}}class Y{static getSymbolInflateSize(e,t,r,o,a){return e||(e=[0,0,0,0]),t?this._getInflateSize(e,t,r,o,a):e}static safeSize(e){const t=Math.max(Math.abs(e[0]),Math.abs(e[2])),r=Math.max(Math.abs(e[1]),Math.abs(e[3]));return Math.sqrt(t*t+r*r)}static _vectorMarkerBounds(e,t,r,o){let a=!0;const i=s();if(t?.markerGraphics)for(const s of t.markerGraphics){const t=[0,0,0,0];s.geometry&&(n(i,s.geometry),t[0]=0,t[1]=0,t[2]=0,t[3]=0,this.getSymbolInflateSize(t,s.symbol,r,0,o),i[0]+=t[0],i[1]+=t[1],i[2]+=t[2],i[3]+=t[3],a?(e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],a=!1):(e[0]=Math.min(e[0],i[0]),e[1]=Math.min(e[1],i[1]),e[2]=Math.max(e[2],i[2]),e[3]=Math.max(e[3],i[3])))}return e}static _getInflateSize(e,t,r,o,a){if(ee(t)){const s=this._getLayersInflateSize(e,t.symbolLayers,r,o,a),i=g(t.effects);return i>0&&(s[0]-=i,s[1]-=i,s[2]+=i,s[3]+=i),s}return this._getTextInflatedSize(e,t,a)}static _getLayersInflateSize(e,t,r,o,a){let n=!0;if(!t)return e;for(const l of t){if(!l)continue;let t=[0,0,0,0];switch(l.type){case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const e=l;let r=e.width;null!=r&&("Square"===e.capStyle||"Miter"===e.joinStyle?r/=j:r/=2,t[0]=-r,t[1]=-r,t[2]=r,t[3]=r);break}case"CIMCharacterMarker":case"CIMVectorMarker":case"CIMPictureMarker":{const e=l;if("CIMVectorMarker"===l.type){const e=l;if(t=this._vectorMarkerBounds(t,e,r,a),e.frame){const r=(e.frame.xmin+e.frame.xmax)/2,o=(e.frame.ymin+e.frame.ymax)/2;if(t[0]-=r,t[1]-=o,t[2]-=r,t[3]-=o,null!=e.size){const r=e.size/(e.frame.ymax-e.frame.ymin);t[0]*=r,t[1]*=r,t[2]*=r,t[3]*=r}}}else if("CIMPictureMarker"===l.type){const o=l,a=r.getResource(o.url);let s=1;if(null!=a&&a.height&&(s=a.width/a.height),null!=e.size){const r=e.size/2,a=e.size*s*(o.scaleX??1)/2;t=[-a,-r,a,r]}}else if(null!=e.size){const r=e.size/2;t=[-r,-r,r,r]}if(e.anchorPoint){let r,o;"Absolute"===e.anchorPointUnits?(r=e.anchorPoint.x,o=e.anchorPoint.y):(r=e.anchorPoint.x*(t[2]-t[0]),o=e.anchorPoint.y*(t[3]-t[1]));const a=1.25*Math.sqrt(r*r+o*o);t[0]-=a,t[1]-=a,t[2]+=a,t[3]+=a}let n=b(e.rotation);if(e.rotateClockwise&&(n=-n),o&&(n-=o),n){const e=A*n,r=Math.cos(e),o=Math.sin(e),a=s([k,k,-k,-k]);i(a,[t[0]*r-t[1]*o,t[0]*o+t[1]*r]),i(a,[t[0]*r-t[3]*o,t[0]*o+t[3]*r]),i(a,[t[2]*r-t[1]*o,t[2]*o+t[1]*r]),i(a,[t[2]*r-t[3]*o,t[2]*o+t[3]*r]),t=a}let c=b(e.offsetX),m=b(e.offsetY);if(o){const e=A*o,t=Math.cos(e),r=Math.sin(e),a=c*r+m*t;c=c*t-m*r,m=a}t[0]+=c,t[1]+=m,t[2]+=c,t[3]+=m;const f=N(e.markerPlacement);f>0&&(t[0]-=f,t[1]-=f,t[2]+=f,t[3]+=f);break}}const c=g(l.effects);c>0&&(t[0]-=c,t[1]-=c,t[2]+=c,t[3]+=c),n?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],n=!1):(e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[2]),e[3]=Math.max(e[3],t[3]))}return e}static _getTextInflatedSize(e,t,r){const o=F(t.height??d.CIMTextSymbol.height);if(e[0]=-o/2,e[1]=-o/2,e[2]=o/2,e[3]=o/2,!r)return e;const a=r.get(t);if(!a)return e;if(!a.glyphMosaicItems.glyphs.length)return e;const{lineGapType:s,lineGap:i}=t,n=s?S(s,i??0,o):0,l=t.horizontalAlignment??d.CIMTextSymbol.horizontalalignment,c=t.verticalAlignment??d.CIMTextSymbol.verticalalignment,m="CIMBackgroundCallout"===t.callout?.type,f=z(a.glyphMosaicItems,{scale:o/P,angle:b(t.angle),xOffset:b(t.offsetX),yOffset:b(t.offsetY),horizontalAlignment:l,verticalAlignment:c,maxLineWidth:D(t.lineWidth),lineHeight:w*Math.max(.25,Math.min(n||1,4)),decoration:t.font.decoration||"none",useCIMAngleBehavior:!0,hasBackground:m}).boundsT,y=Math.sqrt(f.width*f.width+f.height*f.height);return e[0]-=f.x+y,e[1]-=f.y-y,e[2]+=f.x+y,e[3]+=-f.y+y,e}}class _{static getEnvelope(e,t,r,o){if(!e)return null;const a=new u(r,o);if(Array.isArray(e)){let r;for(const o of e)r?r.union(V(a,o,t)):r=V(a,o,t);return r}return V(a,e,t)}static getTextureInfo(e,t,r,o,a){const s=o??this.getEnvelope(e,null,t);if(!s)return[0,0,0,0,1];const i=Math.max(s.width,s.height)*G;let n=null!=a?Math.max(a/i,1):1;n*=G,s.x*=n,s.y*=n,s.width*=n,s.height*=n,s.width=Math.max(Math.ceil(s.x+s.width)-Math.floor(s.x),1)-1,s.height=Math.max(Math.ceil(s.y+s.height)-Math.floor(s.y),1)-1;let l=s.x+.5*s.width,c=s.y+.5*s.height;return l+=s.x-Math.floor(s.x),c+=s.y-Math.floor(s.y),o||(s.width+=r,s.height+=r,l+=r/2,c+=r/2),[s.width,s.height,l,c,n]}static getTextureAnchor(e,t,r){const[o,a,s,i,n]=this.getTextureInfo(e,t,E,null,r);return[-s/o,-i/a,a/n*G]}static rasterize(e,t,r,o,a=!0,s){const[i,n,l,c,m]=this.getTextureInfo(t,o,E,r,s);e.width=i,e.height=n;const f=e.getContext("2d",{willReadFrequently:!0}),y=M.createScale(m,-m);y.translate(.5*i-l,.5*n+c);const u=new p(f,o,y);switch(t.type){case"CIMPointSymbol":{const e={type:"point",x:0,y:0};u.drawSymbol(t,e);break}case"CIMVectorMarker":{const e=new h;u.drawMarker(t,e);break}}const S=f.getImageData(0,0,e.width,e.height),d=new Uint8Array(S.data);if(a){let e;for(let t=0;t<d.length;t+=4)e=d[t+3]/255,d[t]=d[t]*e,d[t+1]=d[t+1]*e,d[t+2]=d[t+2]*e}return[d,e.width,e.height,-l/i,-c/n]}static fromTextSymbol(e){const{text:t}=e;return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:_.createCIMTextSymbolfromTextSymbol(e),textString:t}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(e){const{height:t,outline:r,width:o,xoffset:a,xscale:s,yoffset:i,yscale:n}=e,l=[],c={type:"CIMPolygonSymbol",symbolLayers:l};if(r){const e=oe(r);e&&l.push(e)}let m=e.url;"esriPFS"===e.type&&e.imageData&&(m=e.imageData);const f="angle"in e?e.angle??0:0,y=(o??0)*(s||1),h=(t??0)*(n||1);return l.push({type:"CIMPictureFill",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:m,height:h,width:y,offsetX:b(a),offsetY:b(i),rotation:b(-f),colorSubstitutions:null}),c}static fromSimpleFillSymbol(e){const{color:r,style:o,outline:s}=e,i=[],n={type:"CIMPolygonSymbol",symbolLayers:i};if(s){const e=oe(s);e&&i.push(e)}if(o&&"solid"!==o&&"none"!==o&&"esriSFSSolid"!==o&&"esriSFSNull"!==o){const e={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:W(r),capStyle:"Butt",joinStyle:"Miter",width:.75}]};let s=0;const n=a(re(o)?8:10);switch(o){case"vertical":case"esriSFSVertical":s=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":s=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":s=45;break;case"cross":case"esriSFSCross":s=0}i.push({type:"CIMHatchFill",lineSymbol:e,offsetX:0,offsetY:0,rotation:s,separation:n}),"cross"===o||"esriSFSCross"===o?i.push({type:"CIMHatchFill",lineSymbol:t(e),offsetX:0,offsetY:0,rotation:90,separation:n}):"diagonal-cross"!==o&&"esriSFSDiagonalCross"!==o||i.push({type:"CIMHatchFill",lineSymbol:t(e),offsetX:0,offsetY:0,rotation:45,separation:n})}else!o||"solid"!==o&&"esriSFSSolid"!==o||i.push({type:"CIMSolidFill",enable:!0,color:W(r)});return n}static fromSimpleLineSymbol(e){const{cap:t,color:r,join:o,marker:a,miterLimit:s,style:i,width:n}=e;let l=null;"solid"!==i&&"none"!==i&&"esriSLSSolid"!==i&&"esriSLSNull"!==i&&(l=[{type:"CIMGeometricEffectDashes",dashTemplate:Z(i,t),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);const c=[];if(a){let e;switch(a.placement){case"begin-end":e="Both";break;case"begin":e="JustBegin";break;case"end":e="JustEnd";break;default:e="None"}const t=_.fromSimpleMarker(a,n,r).symbolLayers[0];t.markerPlacement={type:"CIMMarkerPlacementAtExtremities",placePerPart:!1,angleToLine:!0,keepUpright:!1,offset:0,extremityPlacement:e,offsetAlongLine:0},c.push(t)}return c.push({type:"CIMSolidStroke",color:"none"!==i&&"esriSLSNull"!==i?W(r):[0,0,0,0],capStyle:q(t),joinStyle:H(o),miterLimit:s,width:n,effects:l}),{type:"CIMLineSymbol",symbolLayers:c}}static fromPictureMarker(e){const{angle:t,height:r,width:o,xoffset:a,yoffset:s}=e;let i=e.url;return"esriPMS"===e.type&&e.imageData&&(i=e.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:i,size:r,width:o,offsetX:b(a),offsetY:b(s),rotation:b(-t)}]}}static createCIMTextSymbolfromTextSymbol(t){const{angle:r,color:o,font:a,haloColor:s,haloSize:i,horizontalAlignment:n,kerning:l,lineWidth:c,text:m,verticalAlignment:f,xoffset:y,yoffset:h,backgroundColor:u,borderLineColor:p,borderLineSize:S}=t;let M,d,g,x,C,I;a&&(M=a.family,d=a.style,g=a.weight,x=a.size,C=a.decoration);let k=!1;if(m){k=e(m)[1]}return(u||S)&&(I={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:W(u)},{type:"CIMSolidStroke",enable:!0,color:W(p),width:S??0}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMTextSymbol",angle:r,blockProgression:2,depth3D:1,extrapolateBaselines:!0,fontEffects:0,fontEncoding:1,fontFamilyName:M||"Arial",fontStyleName:J(d,g),fontType:0,haloSize:i,height:x,hinting:1,horizontalAlignment:O(n??"center"),kerning:l,letterWidth:100,ligatures:!0,lineGapType:"Multiple",lineWidth:c,offsetX:b(y),offsetY:b(h),strikethrough:"line-through"===C,underline:"underline"===C,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:W(o)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:W(s)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:k?1:0,verticalAlignment:$(f??"baseline"),verticalGlyphOrientation:0,wordSpacing:100,billboardMode3D:2,callout:I}}static createPictureMarkerRasterizationParam(e){const{angle:t,height:r,width:o,xoffset:a,yoffset:s}=e,i=e.url??e.source?.url??e.source?.imageData;return i?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureMarker",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:i,size:r,width:o,offsetX:b(a),offsetY:b(s),rotation:b(-t)}}:null}static createPictureFillRasterizationParam(e){const{width:t,height:r,xoffset:o,yoffset:a,url:s}=e;return s?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureFill",enable:!0,scaleX:1,textureFilter:"Picture",tintColor:null,url:s,width:t,height:r,offsetX:b(o),offsetY:b(a),rotation:0}}:null}static fromSimpleMarker(e,t,r){const{style:o}=e,a=e.color??r;if("path"===o||"esriSMSPath"===o){const t=[];if("outline"in e&&e.outline){const r=e.outline;t.push({type:"CIMSolidStroke",enable:!0,width:r.width,color:W(r.color),path:e.path})}t.push({type:"CIMSolidFill",enable:!0,color:W(a),path:e.path});const[r,o]=te("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:-b(e.angle),size:b(e.size||6),offsetX:b(e.xoffset),offsetY:b(e.yoffset),scaleSymbolsProportionally:!1,frame:r,markerGraphics:[{type:"CIMMarkerGraphic",geometry:o,symbol:{type:"CIMPolygonSymbol",symbolLayers:t}}]}]}}const s=[];let i,n,l=e.size;if("outline"in e&&e.outline&&"none"!==e.outline.style&&"esriSLSNull"!==e.outline.style){const t=e.outline,r="solid"!==t.style&&"esriSLSSolid"!==t.style;[i,n]=r?te(o,e.size):te(o);const a=t.width??I.width;if(r){const t=a/e.size,r=(i.xmax-i.xmin)*t/2,o=(i.ymax-i.ymin)*t/2;i.xmin-=r,i.xmax+=r,i.ymin-=o,i.ymax+=o,l&&(l+=a)}const c="cross"!==e.style&&"x"!==e.style||"dot"===e?.outline.style||"short-dot"===e?.outline.style?"HalfGap":"FullPattern",m=r?[{type:"CIMGeometricEffectAddControlPoints"},{type:"CIMGeometricEffectDashes",dashTemplate:Z(t.style,null).map(e=>t.width&&t.width>0?e*t.width:e),lineDashEnding:c,controlPointEnding:"FullPattern"}]:void 0;s.push({type:"CIMSolidStroke",capStyle:r?"Round":"Butt",enable:!0,width:a,color:W(t.color),effects:m})}else!t||"line-marker"!==e.type||"cross"!==e.style&&"x"!==e.style?[i,n]=te(o):([i,n]=te(o),s.push({type:"CIMSolidStroke",enable:!0,width:t,color:W(a)}));s.push({type:"CIMSolidFill",enable:!0,color:W(a)});const c={type:"CIMPolygonSymbol",symbolLayers:s};return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:b(-e.angle),size:b(l||6*t),offsetX:b(e.xoffset),offsetY:b(e.yoffset),scaleSymbolsProportionally:!1,frame:i,markerGraphics:[{type:"CIMMarkerGraphic",geometry:n,symbol:c}]}]}}static fromCIMHatchFill(e,r){const o=r*(e.separation??d.CIMHatchFill.separation),a=o/2,s=t(e.lineSymbol);s.symbolLayers?.forEach(e=>{switch(e.type){case"CIMSolidStroke":null!=e.width&&(e.width*=r),e.effects?.forEach(e=>{if("CIMGeometricEffectDashes"===e.type){const t=e.dashTemplate;e.dashTemplate=t?.map(e=>e*r)}});break;case"CIMVectorMarker":{null!=e.size&&(e.size*=r);const t=e.markerPlacement;null!=t&&"placementTemplate"in t&&(t.placementTemplate=t.placementTemplate.map(e=>e*r));break}}});let i=this._getLineSymbolPeriod(s)||R;for(;i<R;)i*=2;const n=i/2;return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-n,xmax:n,ymin:-a,ymax:a},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-n,0],[n,0]]]},symbol:s}],size:o}}static async normalizeSymbolAndFetchResources(e,t,r=null){if(!e)return;const o=[];if("effects"in e&&e.effects)for(const s of e.effects)o.push(f(s));async function a(e){if("CIMTextSymbol"!==e.type)return;const{fontFamilyName:r,fontStyleName:o}=e;if("calcitewebcoreicons"===r?.toLowerCase())return;const{style:a,weight:s}=x(o),i=C(e),n=new m({family:r,style:a,weight:s,decoration:i});try{await t.loadFont(n)}catch{B().error(`Unsupported font ${r} in CIM symbol`)}}o.push(a(e)),U(e,e=>{if(e.effects)for(const t of e.effects)o.push(f(t));if("CIMVectorMarker"===e.type){for(const t of e.markerGraphics)l(t.geometry)&&(t.geometry=c(t.geometry,{maxDeviation:.01}));e.markerPlacement&&o.push(y(e.markerPlacement))}"url"in e&&e.url&&o.push(t.fetchResource(e.url,{signal:r})),"symbol"in e&&o.push(a(e.symbol))}),await Promise.all(o)}static _getLineSymbolPeriod(e){if(e){const t=this._getEffectsRepeat(e.effects);if(t)return t;if(e.symbolLayers)for(const r of e.symbolLayers)if(r){const e=this._getEffectsRepeat(r.effects);if(e)return e;switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const e=this._getPlacementRepeat(r.markerPlacement);if(e)return e}}}}return 0}static _getEffectsRepeat(e){if(e)for(const t of e)if(t)switch(t.type){case"CIMGeometricEffectDashes":{const e=t.dashTemplate;if(e&&e.length){let t=0;for(const r of e)t+=r;return 1&e.length&&(t*=2),t}break}case"CIMGeometricEffectWave":return t.period;default:B().error(`unsupported geometric effect type ${t.type}`)}return 0}static _getPlacementRepeat(e){if(e)switch(e.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const t=e.placementTemplate;if(t&&t.length){let e=0;for(const r of t)e+=+r;return 1&t.length&&(e*=2),e}break}}return 0}static fromCIMInsidePolygon(e){const t=e.markerPlacement,r={...e};r.markerPlacement=null,r.anchorPoint=null;const s=Math.abs(t.stepX),i=Math.abs(t.stepY),n=(t.randomness??100)/100;let l,c,m,f;if("Random"===t.gridType){const e=a(L),r=Math.max(Math.floor(e/s),1),y=Math.max(Math.floor(e/i),1);l=r*s/2,c=y*i/2,m=2*c;const h=new o(t.seed),u=n*s/1.5,p=n*i/1.5;f=[];for(let t=0;t<r;t++)for(let e=0;e<y;e++){const r=t*s-l+u*(.5-h.getFloat()),o=e*i-c+p*(.5-h.getFloat());f.push({x:r,y:o}),0===t&&f.push({x:r+2*l,y:o}),0===e&&f.push({x:r,y:o+2*c})}}else!0===t.shiftOddRows?(l=s/2,c=i,m=2*i,f=[{x:-l,y:0},{x:l,y:0},{x:0,y:c},{x:0,y:-c}]):(l=s/2,c=i/2,m=i,f=[{x:-s,y:0},{x:0,y:-i},{x:-s,y:-i},{x:0,y:0},{x:s,y:0},{x:0,y:i},{x:s,y:i},{x:-s,y:i},{x:s,y:-i}]);return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-l,xmax:l,ymin:-c,ymax:c},markerGraphics:f.map(e=>({type:"CIMMarkerGraphic",geometry:e,symbol:{type:"CIMPointSymbol",symbolLayers:[r]}})),size:m}}}function U(e,t){if(e)switch(e.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const r=e.symbolLayers;if(!r)return;for(const e of r)if(t(e),"CIMVectorMarker"===e.type){const r=e.markerGraphics;if(!r)continue;for(const e of r)if(e){const r=e.symbol;r&&U(r,t)}}break}}}const q=e=>{if(!e)return"Butt";switch(e){case"butt":return"Butt";case"square":return"Square";case"round":return"Round"}},H=e=>{if(!e)return"Miter";switch(e){case"miter":return"Miter";case"round":return"Round";case"bevel":return"Bevel"}},O=e=>{if(null==e)return"Center";switch(e){case"left":return"Left";case"right":return"Right";case"center":return"Center";case"justify":return"Justify"}},$=e=>{if(null==e)return"Center";switch(e){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},W=e=>{if(!e)return[0,0,0,0];const{r:t,g:r,b:o,a}=e;return[t,r,o,255*a]},J=(e,t)=>{const r=K(t),o=Q(e);return r&&o?`${r}-${o}`:`${r}${o}`},K=e=>{if(!e)return"";switch(e.toLowerCase()){case"bold":case"bolder":return"bold"}return""},Q=e=>{if(!e)return"";switch(e.toLowerCase()){case"italic":case"oblique":return"italic"}return""},Z=(e,t)=>{const r=.001,o="butt"===t;switch(e){case"dash":case"esriSLSDash":return o?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return o?[4,3,1,3]:[3,4,r,4];case"dot":case"esriSLSDot":return o?[1,3]:[r,4];case"long-dash":case"esriSLSLongDash":return o?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return o?[8,3,1,3]:[7,4,r,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return o?[8,3,1,3,1,3]:[7,4,r,4,r,4];case"short-dash":case"esriSLSShortDash":return o?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return o?[4,1,1,1]:[3,2,r,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return o?[4,1,1,1,1,1]:[3,2,r,2,r,2];case"short-dot":case"esriSLSShortDot":return o?[1,1]:[r,2];case"solid":case"esriSLSSolid":case"none":return B().error("Unexpected: style does not require rasterization"),[0,0];default:return B().error(`Tried to rasterize SLS, but found an unexpected style: ${e}!`),[0,0]}};function ee(e){return void 0!==e.symbolLayers}const te=(e,t=100)=>{const r=t/2;let o,a;const s=e;if("circle"===s||"esriSMSCircle"===s){const e=.25;let t=Math.acos(1-e/r),s=Math.ceil(T/t/4);0===s&&(s=1),t=v/s,s*=4;const i=[];i.push([r,0]);for(let o=1;o<s;o++)i.push([r*Math.cos(o*t),-r*Math.sin(o*t)]);i.push([r,0]),o={rings:[i]},a={xmin:-r,ymin:-r,xmax:r,ymax:r}}else if("cross"===s||"esriSMSCross"===s){const e=0;o={paths:[[[e,r],[e,-r]],[[r,e],[-r,e]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r}}else if("diamond"===s||"esriSMSDiamond"===s)o={rings:[[[-r,0],[0,r],[r,0],[0,-r],[-r,0]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("square"===s||"esriSMSSquare"===s)o={rings:[[[-r,-r],[-r,r],[r,r],[r,-r],[-r,-r]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("x"===s||"esriSMSX"===s)o={paths:[[[r,r],[-r,-r]],[[r,-r],[-r,r]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("triangle"===s||"esriSMSTriangle"===s){const e=t*.5773502691896257,r=-e,s=2/3*t,i=s-t;o={rings:[[[r,i],[0,s],[e,i],[r,i]]]},a={xmin:r,ymin:i,xmax:e,ymax:s}}else"arrow"===s&&(o={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r});return[a,o]},re=e=>"vertical"===e||"horizontal"===e||"cross"===e||"esriSFSCross"===e||"esriSFSVertical"===e||"esriSFSHorizontal"===e;function oe(e){if(!e)return null;let t=null;const{cap:r,color:o,join:a,miterLimit:s,style:i,width:n}=e;return"solid"!==i&&"none"!==i&&"esriSLSSolid"!==i&&"esriSLSNull"!==i&&(t=[{type:"CIMGeometricEffectDashes",dashTemplate:Z(i,r),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),{type:"CIMSolidStroke",color:"esriSLSNull"!==i&&"none"!==i?W(o):[0,0,0,0],capStyle:q(r),joinStyle:H(a),miterLimit:s,width:n,effects:t}}export{_ as CIMSymbolHelper,Y as CIMSymbolInflatedSizeHelper,q as capTypeToEnum,U as forEachSymbolLayer,Z as slsDashToTemplateArray,X as symbolToCIM};
2
+ import{bidiText as e}from"../../core/BidiText.js";import{clone as t}from"../../core/lang.js";import r from"../../core/Logger.js";import o from"../../core/RandomLCG.js";import{px2pt as a}from"../../core/screenUtils.js";import{create as s,expandPointInPlace as i}from"../../geometry/support/aaBoundingRect.js";import{getBoundsXY as n}from"../../geometry/support/boundsUtils.js";import{isCurvedGeometry as l}from"../../geometry/support/curves/curveUtils.js";import{densifyCurvedGeometry as c}from"../../geometry/support/curves/densifyCurvedGeometry.js";import m from"../Font.js";import{loadGeometryOperatorsForEffect as f,loadGeometryOperatorsForPlacement as y}from"./CIMEffects.js";import{Placement as h}from"./CIMPlacements.js";import{EnvDrawHelper as u,CanvasDrawHelper as p,Transformation as S,lineGapType2LineHeight as M}from"./CIMSymbolDrawHelper.js";import{defaultCIMValues as d}from"./defaultCIMValues.js";import{getNumericValue as g,fromCIMFontStyle as b,fromCIMFontDecoration as x,getEffectsInflateSize as C}from"./utils.js";import{defaultPolylineSymbol2D as I}from"../support/defaults.js";import{cInfinity as k}from"../../views/2d/engine/vectorTiles/GeometryUtils.js";import{randomInsidePolygonTextureSize as w,magicLabelLineHeight as P,glyphSize as L}from"../../views/2d/engine/webgl/definitions.js";import{shapeGlyphs as z}from"../../views/2d/engine/webgl/mesh/templates/shapingUtils.js";import{roundPtToWholePixel as F,getLineWidth as D}from"../../views/2d/layers/graphics/graphicsUtils.js";const T=Math.PI,v=T/2,A=Math.PI/180,G=96/72,j=1.4142135623730951,E=2,R=4,B=()=>r.getLogger("esri.symbols.cim.CIMSymbolHelper");function X(e){let t;switch(e.type){case"cim":return e.data;case"web-style":return e;case"simple-marker":{const r=_.fromSimpleMarker(e);if(!r)throw new Error("InternalError: Cannot convert symbol to CIM");t=r;break}case"picture-marker":t=_.fromPictureMarker(e);break;case"simple-line":t=_.fromSimpleLineSymbol(e);break;case"simple-fill":t=_.fromSimpleFillSymbol(e);break;case"picture-fill":t=_.fromPictureFillSymbol(e);break;case"text":t=_.fromTextSymbol(e)}return{type:"CIMSymbolReference",symbol:t}}function V(e,t,r){switch(t.type){case"CIMSymbolReference":return V(e,t.symbol,r);case"CIMPointSymbol":null==r&&(r={x:0,y:0}),e.drawSymbol(t,r);break;case"CIMLineSymbol":null==r&&(r={paths:[[[0,0],[10,0]]]}),e.drawSymbol(t,r);break;case"CIMPolygonSymbol":null==r&&(r={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),e.drawSymbol(t,r);break;case"CIMTextSymbol":{const r={x:0,y:0};e.drawSymbol(t,r);break}case"CIMVectorMarker":{const r=new h;e.drawMarker(t,r);break}}return e.envelope()}function N(e){if(!e)return 0;switch(e.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAtExtremities":case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementAtRatioPositions":case"CIMMarkerPlacementOnLine":case"CIMMarkerPlacementOnVertices":return Math.abs(e.offset??0);default:return 0}}class Y{static getSymbolInflateSize(e,t,r,o,a){return e||(e=[0,0,0,0]),t?this._getInflateSize(e,t,r,o,a):e}static safeSize(e){const t=Math.max(Math.abs(e[0]),Math.abs(e[2])),r=Math.max(Math.abs(e[1]),Math.abs(e[3]));return Math.sqrt(t*t+r*r)}static _vectorMarkerBounds(e,t,r,o){let a=!0;const i=s();if(t?.markerGraphics)for(const s of t.markerGraphics){const t=[0,0,0,0];s.geometry&&(n(i,s.geometry),t[0]=0,t[1]=0,t[2]=0,t[3]=0,this.getSymbolInflateSize(t,s.symbol,r,0,o),i[0]+=t[0],i[1]+=t[1],i[2]+=t[2],i[3]+=t[3],a?(e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],a=!1):(e[0]=Math.min(e[0],i[0]),e[1]=Math.min(e[1],i[1]),e[2]=Math.max(e[2],i[2]),e[3]=Math.max(e[3],i[3])))}return e}static _getInflateSize(e,t,r,o,a){if(ee(t)){const s=this._getLayersInflateSize(e,t.symbolLayers,r,o,a),i=C(t.effects);return i>0&&(s[0]-=i,s[1]-=i,s[2]+=i,s[3]+=i),s}return this._getTextInflatedSize(e,t,a)}static _getLayersInflateSize(e,t,r,o,a){let n=!0;if(!t)return e;for(const l of t){if(!l)continue;let t=[0,0,0,0];switch(l.type){case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const e=l;let r=e.width;null!=r&&("Square"===e.capStyle||"Miter"===e.joinStyle?r/=j:r/=2,t[0]=-r,t[1]=-r,t[2]=r,t[3]=r);break}case"CIMCharacterMarker":case"CIMVectorMarker":case"CIMPictureMarker":{const e=l;if("CIMVectorMarker"===l.type){const e=l;if(t=this._vectorMarkerBounds(t,e,r,a),e.frame){const r=(e.frame.xmin+e.frame.xmax)/2,o=(e.frame.ymin+e.frame.ymax)/2;if(t[0]-=r,t[1]-=o,t[2]-=r,t[3]-=o,null!=e.size){const r=e.size/(e.frame.ymax-e.frame.ymin);t[0]*=r,t[1]*=r,t[2]*=r,t[3]*=r}}}else if("CIMPictureMarker"===l.type){const o=l,a=r.getResource(o.url);let s=1;if(null!=a&&a.height&&(s=a.width/a.height),null!=e.size){const r=e.size/2,a=e.size*s*(o.scaleX??1)/2;t=[-a,-r,a,r]}}else if(null!=e.size){const r=e.size/2;t=[-r,-r,r,r]}if(e.anchorPoint){let r,o;"Absolute"===e.anchorPointUnits?(r=e.anchorPoint.x,o=e.anchorPoint.y):(r=e.anchorPoint.x*(t[2]-t[0]),o=e.anchorPoint.y*(t[3]-t[1]));const a=1.25*Math.sqrt(r*r+o*o);t[0]-=a,t[1]-=a,t[2]+=a,t[3]+=a}let n=g(e.rotation);if(e.rotateClockwise&&(n=-n),o&&(n-=o),n){const e=A*n,r=Math.cos(e),o=Math.sin(e),a=s([k,k,-k,-k]);i(a,[t[0]*r-t[1]*o,t[0]*o+t[1]*r]),i(a,[t[0]*r-t[3]*o,t[0]*o+t[3]*r]),i(a,[t[2]*r-t[1]*o,t[2]*o+t[1]*r]),i(a,[t[2]*r-t[3]*o,t[2]*o+t[3]*r]),t=a}let c=g(e.offsetX),m=g(e.offsetY);if(o){const e=A*o,t=Math.cos(e),r=Math.sin(e),a=c*r+m*t;c=c*t-m*r,m=a}t[0]+=c,t[1]+=m,t[2]+=c,t[3]+=m;const f=N(e.markerPlacement);f>0&&(t[0]-=f,t[1]-=f,t[2]+=f,t[3]+=f);break}}const c=C(l.effects);c>0&&(t[0]-=c,t[1]-=c,t[2]+=c,t[3]+=c),n?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],n=!1):(e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[2]),e[3]=Math.max(e[3],t[3]))}return e}static _getTextInflatedSize(e,t,r){const o=F(t.height??d.CIMTextSymbol.height);if(e[0]=-o/2,e[1]=-o/2,e[2]=o/2,e[3]=o/2,!r)return e;const a=r.get(t);if(!a)return e;if(!a.glyphMosaicItems.glyphs.length)return e;const{lineGapType:s,lineGap:i}=t,n=s?M(s,i??0,o):0,l=t.horizontalAlignment??d.CIMTextSymbol.horizontalalignment,c=t.verticalAlignment??d.CIMTextSymbol.verticalalignment,m="CIMBackgroundCallout"===t.callout?.type,f=z(a.glyphMosaicItems,{scale:o/L,angle:g(t.angle),xOffset:g(t.offsetX),yOffset:g(t.offsetY),horizontalAlignment:l,verticalAlignment:c,maxLineWidth:D(t.lineWidth),lineHeight:P*Math.max(.25,Math.min(n||1,4)),decoration:t.font.decoration||"none",useCIMAngleBehavior:!0,hasBackground:m}).boundsT,y=Math.sqrt(f.width*f.width+f.height*f.height);return e[0]-=f.x+y,e[1]-=f.y-y,e[2]+=f.x+y,e[3]+=-f.y+y,e}}class _{static getEnvelope(e,t,r,o){if(!e)return null;const a=new u(r,o);if(Array.isArray(e)){let r;for(const o of e)r?r.union(V(a,o,t)):r=V(a,o,t);return r}return V(a,e,t)}static getTextureInfo(e,t,r,o,a){const s=o??this.getEnvelope(e,null,t);if(!s)return[0,0,0,0,1];const i=Math.max(s.width,s.height)*G;let n=null!=a?Math.max(a/i,1):1;n*=G,s.x*=n,s.y*=n,s.width*=n,s.height*=n,s.width=Math.max(Math.ceil(s.x+s.width)-Math.floor(s.x),1)-1,s.height=Math.max(Math.ceil(s.y+s.height)-Math.floor(s.y),1)-1;let l=s.x+.5*s.width,c=s.y+.5*s.height;return l+=s.x-Math.floor(s.x),c+=s.y-Math.floor(s.y),o||(s.width+=r,s.height+=r,l+=r/2,c+=r/2),[s.width,s.height,l,c,n]}static getTextureAnchor(e,t,r){const[o,a,s,i,n]=this.getTextureInfo(e,t,E,null,r);return[-s/o,-i/a,a/n*G]}static rasterize(e,t,r,o,a=!0,s){const[i,n,l,c,m]=this.getTextureInfo(t,o,E,r,s);e.width=i,e.height=n;const f=e.getContext("2d",{willReadFrequently:!0}),y=S.createScale(m,-m);y.translate(.5*i-l,.5*n+c);const u=new p(f,o,y);switch(t.type){case"CIMPointSymbol":{const e={type:"point",x:0,y:0};u.drawSymbol(t,e);break}case"CIMVectorMarker":{const e=new h;u.drawMarker(t,e);break}}const M=f.getImageData(0,0,e.width,e.height),d=new Uint8Array(M.data);if(a){let e;for(let t=0;t<d.length;t+=4)e=d[t+3]/255,d[t]=d[t]*e,d[t+1]=d[t+1]*e,d[t+2]=d[t+2]*e}return[d,e.width,e.height,-l/i,-c/n]}static fromTextSymbol(e){const{text:t}=e;return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:_.createCIMTextSymbolfromTextSymbol(e),textString:t}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(e){const{height:t,outline:r,width:o,xoffset:a,xscale:s,yoffset:i,yscale:n}=e,l=[],c={type:"CIMPolygonSymbol",symbolLayers:l};if(r){const e=oe(r);e&&l.push(e)}let m=e.url;"esriPFS"===e.type&&e.imageData&&(m=e.imageData);const f="angle"in e?e.angle??0:0,y=(o??0)*(s||1),h=(t??0)*(n||1);return l.push({type:"CIMPictureFill",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:m,height:h,width:y,offsetX:g(a),offsetY:g(i),rotation:g(-f),colorSubstitutions:null}),c}static fromSimpleFillSymbol(e){const{color:r,style:o,outline:s}=e,i=[],n={type:"CIMPolygonSymbol",symbolLayers:i};if(s){const e=oe(s);e&&i.push(e)}if(o&&"solid"!==o&&"none"!==o&&"esriSFSSolid"!==o&&"esriSFSNull"!==o){const e={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:W(r),capStyle:"Butt",joinStyle:"Miter",width:.75}]};let s=0;const n=a(re(o)?8:10);switch(o){case"vertical":case"esriSFSVertical":s=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":s=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":s=45;break;case"cross":case"esriSFSCross":s=0}i.push({type:"CIMHatchFill",lineSymbol:e,offsetX:0,offsetY:0,rotation:s,separation:n}),"cross"===o||"esriSFSCross"===o?i.push({type:"CIMHatchFill",lineSymbol:t(e),offsetX:0,offsetY:0,rotation:90,separation:n}):"diagonal-cross"!==o&&"esriSFSDiagonalCross"!==o||i.push({type:"CIMHatchFill",lineSymbol:t(e),offsetX:0,offsetY:0,rotation:45,separation:n})}else!o||"solid"!==o&&"esriSFSSolid"!==o||i.push({type:"CIMSolidFill",enable:!0,color:W(r)});return n}static fromSimpleLineSymbol(e){const{cap:t,color:r,join:o,marker:a,miterLimit:s,style:i,width:n}=e;let l=null;"solid"!==i&&"none"!==i&&"esriSLSSolid"!==i&&"esriSLSNull"!==i&&(l=[{type:"CIMGeometricEffectDashes",dashTemplate:Z(i,t),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);const c=[];if(a){let e;switch(a.placement){case"begin-end":e="Both";break;case"begin":e="JustBegin";break;case"end":e="JustEnd";break;default:e="None"}const t=_.fromSimpleMarker(a,n,r).symbolLayers[0];t.markerPlacement={type:"CIMMarkerPlacementAtExtremities",placePerPart:!1,angleToLine:!0,keepUpright:!1,offset:0,extremityPlacement:e,offsetAlongLine:0},c.push(t)}return c.push({type:"CIMSolidStroke",color:"none"!==i&&"esriSLSNull"!==i?W(r):[0,0,0,0],capStyle:q(t),joinStyle:H(o),miterLimit:s,width:n,effects:l}),{type:"CIMLineSymbol",symbolLayers:c}}static fromPictureMarker(e){const{angle:t,height:r,width:o,xoffset:a,yoffset:s}=e;let i=e.url;return"esriPMS"===e.type&&e.imageData&&(i=e.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:i,size:r,width:o,offsetX:g(a),offsetY:g(s),rotation:g(-t)}]}}static createCIMTextSymbolfromTextSymbol(t){const{angle:r,color:o,font:a,haloColor:s,haloSize:i,horizontalAlignment:n,kerning:l,lineWidth:c,text:m,verticalAlignment:f,xoffset:y,yoffset:h,backgroundColor:u,borderLineColor:p,borderLineSize:S}=t;let M,d,b,x,C,I;a&&(M=a.family,d=a.style,b=a.weight,x=a.size,C=a.decoration);let k=!1;if(m){k=e(m)[1]}return(u||S)&&(I={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:W(u)},{type:"CIMSolidStroke",enable:!0,color:W(p),width:S??0}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMTextSymbol",angle:r,blockProgression:2,depth3D:1,extrapolateBaselines:!0,fontEffects:0,fontEncoding:1,fontFamilyName:M||"Arial",fontStyleName:J(d,b),fontType:0,haloSize:i,height:x,hinting:1,horizontalAlignment:O(n??"center"),kerning:l,letterWidth:100,ligatures:!0,lineGapType:"Multiple",lineWidth:c,offsetX:g(y),offsetY:g(h),strikethrough:"line-through"===C,underline:"underline"===C,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:W(o)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:W(s)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:k?1:0,verticalAlignment:$(f??"baseline"),verticalGlyphOrientation:0,wordSpacing:100,billboardMode3D:2,callout:I}}static createPictureMarkerRasterizationParam(e){const{angle:t,height:r,width:o,xoffset:a,yoffset:s}=e,i=e.url??e.source?.url??e.source?.imageData;return i?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureMarker",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:i,size:r,width:o,offsetX:g(a),offsetY:g(s),rotation:g(-t)}}:null}static createPictureFillRasterizationParam(e){const{width:t,height:r,xoffset:o,yoffset:a,url:s}=e;return s?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureFill",enable:!0,scaleX:1,textureFilter:"Picture",tintColor:null,url:s,width:t,height:r,offsetX:g(o),offsetY:g(a),rotation:0}}:null}static fromSimpleMarker(e,t,r){const{style:o}=e,a=e.color??r;if("path"===o||"esriSMSPath"===o){const t=[];if("outline"in e&&e.outline){const r=e.outline;t.push({type:"CIMSolidStroke",enable:!0,width:r.width,color:W(r.color),path:e.path})}t.push({type:"CIMSolidFill",enable:!0,color:W(a),path:e.path});const[r,o]=te("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:-g(e.angle),size:g(e.size||6),offsetX:g(e.xoffset),offsetY:g(e.yoffset),scaleSymbolsProportionally:!1,frame:r,markerGraphics:[{type:"CIMMarkerGraphic",geometry:o,symbol:{type:"CIMPolygonSymbol",symbolLayers:t}}]}]}}const s=[];let i,n,l=e.size;if("outline"in e&&e.outline&&"none"!==e.outline.style&&"esriSLSNull"!==e.outline.style){const t=e.outline,r="solid"!==t.style&&"esriSLSSolid"!==t.style;[i,n]=r?te(o,e.size):te(o);const a=t.width??I.width;if(r){const t=a/e.size,r=(i.xmax-i.xmin)*t/2,o=(i.ymax-i.ymin)*t/2;i.xmin-=r,i.xmax+=r,i.ymin-=o,i.ymax+=o,l&&(l+=a)}const c="cross"!==e.style&&"x"!==e.style||"dot"===e?.outline.style||"short-dot"===e?.outline.style?"HalfGap":"FullPattern",m=r?[{type:"CIMGeometricEffectAddControlPoints"},{type:"CIMGeometricEffectDashes",dashTemplate:Z(t.style,null).map(e=>t.width&&t.width>0?e*t.width:e),lineDashEnding:c,controlPointEnding:"FullPattern"}]:void 0;s.push({type:"CIMSolidStroke",capStyle:r?"Round":"Butt",enable:!0,width:a,color:W(t.color),effects:m})}else!t||"line-marker"!==e.type||"cross"!==e.style&&"x"!==e.style?[i,n]=te(o):([i,n]=te(o),s.push({type:"CIMSolidStroke",enable:!0,width:t,color:W(a)}));s.push({type:"CIMSolidFill",enable:!0,color:W(a)});const c={type:"CIMPolygonSymbol",symbolLayers:s};return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:g(-e.angle),size:g(l||6*t),offsetX:g(e.xoffset),offsetY:g(e.yoffset),scaleSymbolsProportionally:!1,frame:i,markerGraphics:[{type:"CIMMarkerGraphic",geometry:n,symbol:c}]}]}}static fromCIMHatchFill(e,r){const o=r*(e.separation??d.CIMHatchFill.separation),a=o/2,s=t(e.lineSymbol);s.symbolLayers?.forEach(e=>{switch(e.type){case"CIMSolidStroke":null!=e.width&&(e.width*=r),e.effects?.forEach(e=>{if("CIMGeometricEffectDashes"===e.type){const t=e.dashTemplate;e.dashTemplate=t?.map(e=>e*r)}});break;case"CIMVectorMarker":{null!=e.size&&(e.size*=r);const t=e.markerPlacement;null!=t&&"placementTemplate"in t&&(t.placementTemplate=t.placementTemplate.map(e=>e*r));break}}});let i=this._getLineSymbolPeriod(s)||R;for(;i<R;)i*=2;const n=i/2;return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-n,xmax:n,ymin:-a,ymax:a},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-n,0],[n,0]]]},symbol:s}],size:o}}static async normalizeSymbolAndFetchResources(e,t,r=null){if(!e)return;const o=[];if("effects"in e&&e.effects)for(const s of e.effects)o.push(f(s));async function a(e){if("CIMTextSymbol"!==e.type)return;const{fontFamilyName:r,fontStyleName:o}=e;if("calcitewebcoreicons"===r?.toLowerCase())return;const{style:a,weight:s}=b(o),i=x(e),n=new m({family:r,style:a,weight:s,decoration:i});try{await t.loadFont(n)}catch{B().error(`Unsupported font ${r} in CIM symbol`)}}o.push(a(e)),U(e,e=>{if(e.effects)for(const t of e.effects)o.push(f(t));if("CIMVectorMarker"===e.type){for(const t of e.markerGraphics)l(t.geometry)&&(t.geometry=c(t.geometry,{maxDeviation:.01}));e.markerPlacement&&o.push(y(e.markerPlacement))}"url"in e&&e.url&&o.push(t.fetchResource(e.url,{signal:r})),"symbol"in e&&o.push(a(e.symbol))}),await Promise.all(o)}static _getLineSymbolPeriod(e){if(e){const t=this._getEffectsRepeat(e.effects);if(t)return t;if(e.symbolLayers)for(const r of e.symbolLayers)if(r){const e=this._getEffectsRepeat(r.effects);if(e)return e;switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const e=this._getPlacementRepeat(r.markerPlacement);if(e)return e}}}}return 0}static _getEffectsRepeat(e){if(e)for(const t of e)if(t)switch(t.type){case"CIMGeometricEffectDashes":{const e=t.dashTemplate;if(e&&e.length){let t=0;for(const r of e)t+=r;return 1&e.length&&(t*=2),t}break}case"CIMGeometricEffectWave":return t.period;default:B().error(`unsupported geometric effect type ${t.type}`)}return 0}static _getPlacementRepeat(e){if(e)switch(e.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const t=e.placementTemplate;if(t&&t.length){let e=0;for(const r of t)e+=+r;return 1&t.length&&(e*=2),e}break}}return 0}static fromCIMInsidePolygon(e){const t=e.markerPlacement,r={...e};r.markerPlacement=null,r.anchorPoint=null;const s=Math.abs(t.stepX),i=Math.abs(t.stepY),n=(t.randomness??100)/100;let l,c,m,f;if("Random"===t.gridType){const e=a(w),r=Math.max(Math.floor(e/s),1),y=Math.max(Math.floor(e/i),1);l=r*s/2,c=y*i/2,m=2*c;const h=new o(t.seed),u=n*s/1.5,p=n*i/1.5;f=[];for(let t=0;t<r;t++)for(let e=0;e<y;e++){const r=t*s-l+u*(.5-h.getFloat()),o=e*i-c+p*(.5-h.getFloat());f.push({x:r,y:o}),0===t&&f.push({x:r+2*l,y:o}),0===e&&f.push({x:r,y:o+2*c})}}else!0===t.shiftOddRows?(l=s/2,c=i,m=2*i,f=[{x:-l,y:0},{x:l,y:0},{x:0,y:c},{x:0,y:-c}]):(l=s/2,c=i/2,m=i,f=[{x:-s,y:0},{x:0,y:-i},{x:-s,y:-i},{x:0,y:0},{x:s,y:0},{x:0,y:i},{x:s,y:i},{x:-s,y:i},{x:s,y:-i}]);return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-l,xmax:l,ymin:-c,ymax:c},markerGraphics:f.map(e=>({type:"CIMMarkerGraphic",geometry:e,symbol:{type:"CIMPointSymbol",symbolLayers:[r]}})),size:m}}}function U(e,t){if(e)switch(e.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const r=e.symbolLayers;if(!r)return;for(const e of r)if(t(e),"CIMVectorMarker"===e.type){const r=e.markerGraphics;if(!r)continue;for(const e of r)if(e){const r=e.symbol;r&&U(r,t)}}break}}}const q=e=>{if(!e)return"Butt";switch(e){case"butt":return"Butt";case"square":return"Square";case"round":return"Round"}},H=e=>{if(!e)return"Miter";switch(e){case"miter":return"Miter";case"round":return"Round";case"bevel":return"Bevel"}},O=e=>{if(null==e)return"Center";switch(e){case"left":return"Left";case"right":return"Right";case"center":return"Center";case"justify":return"Justify"}},$=e=>{if(null==e)return"Center";switch(e){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},W=e=>{if(!e)return[0,0,0,0];const{r:t,g:r,b:o,a}=e;return[t,r,o,255*a]},J=(e,t)=>{const r=K(t),o=Q(e);return r&&o?`${r}-${o}`:`${r}${o}`},K=e=>{if(!e)return"";switch(e.toLowerCase()){case"bold":case"bolder":return"bold"}return""},Q=e=>{if(!e)return"";switch(e.toLowerCase()){case"italic":case"oblique":return"italic"}return""},Z=(e,t)=>{const r=.001,o="butt"===t;switch(e){case"dash":case"esriSLSDash":return o?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return o?[4,3,1,3]:[3,4,r,4];case"dot":case"esriSLSDot":return o?[1,3]:[r,4];case"long-dash":case"esriSLSLongDash":return o?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return o?[8,3,1,3]:[7,4,r,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return o?[8,3,1,3,1,3]:[7,4,r,4,r,4];case"short-dash":case"esriSLSShortDash":return o?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return o?[4,1,1,1]:[3,2,r,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return o?[4,1,1,1,1,1]:[3,2,r,2,r,2];case"short-dot":case"esriSLSShortDot":return o?[1,1]:[r,2];case"solid":case"esriSLSSolid":case"none":return B().error("Unexpected: style does not require rasterization"),[0,0];default:return B().error(`Tried to rasterize SLS, but found an unexpected style: ${e}!`),[0,0]}};function ee(e){return void 0!==e.symbolLayers}const te=(e,t=100)=>{const r=t/2;let o,a;const s=e;if("circle"===s||"esriSMSCircle"===s){const e=.25;let t=Math.acos(1-e/r),s=Math.ceil(T/t/4);0===s&&(s=1),t=v/s,s*=4;const i=[];i.push([r,0]);for(let o=1;o<s;o++)i.push([r*Math.cos(o*t),-r*Math.sin(o*t)]);i.push([r,0]),o={rings:[i]},a={xmin:-r,ymin:-r,xmax:r,ymax:r}}else if("cross"===s||"esriSMSCross"===s){const e=0;o={paths:[[[e,r],[e,-r]],[[r,e],[-r,e]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r}}else if("diamond"===s||"esriSMSDiamond"===s)o={rings:[[[-r,0],[0,r],[r,0],[0,-r],[-r,0]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("square"===s||"esriSMSSquare"===s)o={rings:[[[-r,-r],[-r,r],[r,r],[r,-r],[-r,-r]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("x"===s||"esriSMSX"===s)o={paths:[[[r,r],[-r,-r]],[[r,-r],[-r,r]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("triangle"===s||"esriSMSTriangle"===s){const e=t*.5773502691896257,r=-e,s=2/3*t,i=s-t;o={rings:[[[r,i],[0,s],[e,i],[r,i]]]},a={xmin:r,ymin:i,xmax:e,ymax:s}}else"arrow"===s&&(o={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},a={xmin:-r,ymin:-r,xmax:r,ymax:r});return[a,o]},re=e=>"vertical"===e||"horizontal"===e||"cross"===e||"esriSFSCross"===e||"esriSFSVertical"===e||"esriSFSHorizontal"===e;function oe(e){if(!e)return null;let t=null;const{cap:r,color:o,join:a,miterLimit:s,style:i,width:n}=e;return"solid"!==i&&"none"!==i&&"esriSLSSolid"!==i&&"esriSLSNull"!==i&&(t=[{type:"CIMGeometricEffectDashes",dashTemplate:Z(i,r),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),{type:"CIMSolidStroke",color:"esriSLSNull"!==i&&"none"!==i?W(o):[0,0,0,0],capStyle:q(r),joinStyle:H(a),miterLimit:s,width:n,effects:t}}export{_ as CIMSymbolHelper,Y as CIMSymbolInflatedSizeHelper,q as capTypeToEnum,U as forEachSymbolLayer,Z as slsDashToTemplateArray,X as symbolToCIM};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as r}from"tslib";import{strict as e}from"../../core/jsonMap.js";import{JSONSupport as t}from"../../core/JSONSupport.js";import{isDataProtocol as o,isAbsolute as s,normalize as i}from"../../core/urlUtils.js";import{property as p,subclass as a}from"../../core/accessorSupport/decorators.js";import{a as c,c as f}from"../../chunks/persistableUrlUtils.js";import{reader as m}from"../../core/accessorSupport/decorators/reader.js";import{writer as n}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as u}from"../../core/accessorSupport/decorators/enumeration.js";var l;const h=e()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let d=l=class extends t{constructor(r){super(r)}readHref(r,e,t){return r?c(r,t):e.dataURI}writeHref(r,e,t,p){r&&(o(r)?e.dataURI=r:(e.href=f(r,p),s(e.href)&&(e.href=i(e.href))))}clone(){return new l({href:this.href,primitive:this.primitive})}equals(r){return r.primitive===this.primitive&&r.href===this.href}};r([p({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],d.prototype,"href",void 0),r([m("href")],d.prototype,"readHref",null),r([n("href",{href:{type:String},dataURI:{type:String}})],d.prototype,"writeHref",null),r([u(h)],d.prototype,"primitive",void 0),d=l=r([a("esri.symbols.support.IconSymbol3DLayerResource")],d);const j=d;export{j as default};
2
+ import{__decorate as r}from"tslib";import{strict as e}from"../../core/jsonMap.js";import{JSONSupport as t}from"../../core/JSONSupport.js";import{isDataProtocol as o,isAbsolute as s,normalize as i}from"../../core/urlUtils.js";import{property as p,subclass as a}from"../../core/accessorSupport/decorators.js";import{f as c,t as f}from"../../chunks/persistableUrlUtils.js";import{reader as m}from"../../core/accessorSupport/decorators/reader.js";import{writer as n}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as u}from"../../core/accessorSupport/decorators/enumeration.js";var l;const h=e()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let d=l=class extends t{constructor(r){super(r)}readHref(r,e,t){return r?c(r,t):e.dataURI}writeHref(r,e,t,p){r&&(o(r)?e.dataURI=r:(e.href=f(r,p),s(e.href)&&(e.href=i(e.href))))}clone(){return new l({href:this.href,primitive:this.primitive})}equals(r){return r.primitive===this.primitive&&r.href===this.href}};r([p({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],d.prototype,"href",void 0),r([m("href")],d.prototype,"readHref",null),r([n("href",{href:{type:String},dataURI:{type:String}})],d.prototype,"writeHref",null),r([u(h)],d.prototype,"primitive",void 0),d=l=r([a("esri.symbols.support.IconSymbol3DLayerResource")],d);const j=d;export{j as default};
@@ -25,7 +25,7 @@ export default class Symbol3DVerticalOffset extends JSONSupport {
25
25
  *
26
26
  * In the following animation the green symbols have `maxWorldLength = 50` and orange symbols don't have `maxWorldLength` set:
27
27
  *
28
- * ![maxWorldLength](https://developers.arcgis.com/javascript/latest/assets/references/core/symbols/symbols3D-line-callout-maxWorldLength.webm)
28
+ * <video src="https://developers.arcgis.com/javascript/latest/assets/references/core/symbols/symbols3D-line-callout-maxWorldLength.webm" aria-label="maxWorldLength" autoplay muted playsinline loop></video>
29
29
  */
30
30
  accessor maxWorldLength: number | null | undefined;
31
31
  /**
@@ -33,7 +33,7 @@ export default class Symbol3DVerticalOffset extends JSONSupport {
33
33
  *
34
34
  * In the following animation the green symbol on the left has `minWorldLength = 20` and for the orange symbol on the right `minWorldLength` has not been set:
35
35
  *
36
- * ![minWorldLength-on](https://developers.arcgis.com/javascript/latest/assets/references/core/symbols/symbols3D-line-callout-minWorldLength.webm)
36
+ * <video src="https://developers.arcgis.com/javascript/latest/assets/references/core/symbols/symbols3D-line-callout-minWorldLength.webm" aria-label="minWorldLength-on" autoplay muted playsinline loop></video>
37
37
  *
38
38
  * @default 0
39
39
  */
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import t from"../../Color.js";import{getColorLuminance as e}from"../../core/colorUtils.js";import o from"../../core/Error.js";import{loadFont as i}from"../../core/fontUtils.js";import{pt2px as n}from"../../core/screenUtils.js";import{quantizePolygon as a,quantizePolyline as l}from"../../geometry/support/quantizationUtils.js";import{isCurvedGeometry as s}from"../../geometry/support/curves/curveUtils.js";import{densifyForPreview as r}from"./densifyForPreview.js";import{getFill as h,getStroke as c,getDashArray as m,getPatternUrlWithColor as p}from"./gfxUtils.js";import{shapes as u,adjustColorBrightness as d}from"./previewUtils.js";import{renderSymbol as f}from"./renderUtils.js";import{backgroundPadding as g}from"./textUtils.js";const y="picture-fill",w="picture-marker",x="simple-fill",b="simple-line",v="simple-marker",M="text",k="Aa",z=22,L=120,S=80,j=50,C=225,B=document.createElement("canvas");function P(t,e,o){const{extent:i}=t;if(!i)return"";const n=i.width||1,h=i.height||1;if("polygon"===t.type){const l=t.clone();s(l)&&(l.rings=r(l,e,o,i).rings),a({originPosition:"upperLeft",scale:[n/e,h/o],translate:[i.xmin,i.ymax]},l,l);let c="";for(let t=0;t<l.rings.length;t++){const e=l.rings[t];for(let t=0;t<e.length;t++){const o=e[t][0],i=e[t][1],n=0===t?"M":"l",a=t===e.length-1?" Z":"";c+=`${""!==c?" ":""}${n}${o.toString()} ${i.toString()}${a}`}}return c}if("polyline"===t.type){const a=t.clone();s(a)&&(a.paths=r(a,e,o,i).paths),l({originPosition:"upperLeft",scale:[n/e,h/o],translate:[i.xmin,i.ymax]},a,a);let c="";for(let t=0;t<a.paths.length;t++){const e=a.paths[t];for(let t=0;t<e.length;t++){const o=e[t][0],i=e[t][1];c+=`${""!==c?" ":""}${0===t?"M":"l"}${o.toString()} ${i.toString()}`}}return c}return""}function $(t,e){const o=B.getContext("2d"),i=[];e&&(e.weight&&i.push(e.weight),e.size&&i.push(e.size+"px"),e.family&&i.push(e.family)),o.font=i.join(" ");const{width:n,actualBoundingBoxLeft:a,actualBoundingBoxRight:l,actualBoundingBoxAscent:s,actualBoundingBoxDescent:r}=o.measureText(t);return{width:Math.ceil(Math.max(n,a+l)),height:Math.ceil(s+r),x:Math.floor(a),y:Math.floor((s-r)/2)}}function E(t){const e=t?.size;return{width:null!=e&&"object"==typeof e&&"width"in e?n(e.width):null,height:null!=e&&"object"==typeof e&&"height"in e?n(e.height):null}}async function U(t,e){const o=e.fill,i=t.color;if("pattern"===o?.type&&i&&t.type!==y){const t=await p(o.src,i.toCss(!0));o.src=t,e.fill=o}}async function F(t,e,o,n){if(!("font"in t)||!t.font||"text"!==e.shape.type)return;try{await i(t.font)}catch{}const{width:a,height:l}=E(n);if(!/[\uE600-\uE6FF]/.test(e.shape.text)){const{width:i,height:s,x:r,y:h}=$(e.shape.text,{weight:e.font?.weight,size:e.font?.size,family:e.font?.family});o[0]=a??i,o[1]=l??s,e.shape.x=r,e.shape.y=h;let c="angle"in t?t.angle:null;if(null!=n?.rotation&&(c=(c??0)+n.rotation),c){const t=c*(Math.PI/180),e=Math.abs(Math.sin(t)),i=Math.abs(Math.cos(t));o[1]=o[0]*e+o[1]*i}}}function A(t,e,o,i,a){if(null!=t.haloColor&&null!=t.haloSize){a.masking??=o.map(()=>[]);const l=n(t.haloSize);i[0]+=l,i[1]+=l,o.unshift([{...e,fill:null,stroke:{color:t.haloColor,width:2*l,join:"round",cap:"round"}}]),a.masking.unshift([{shape:{type:"rect",x:0,y:0,width:i[0]+2*g,height:i[1]+2*g},fill:[255,255,255],stroke:null},{...e,fill:[0,0,0,0],stroke:null}])}null==t.backgroundColor&&null==t.borderLineColor||(i[0]+=2*g,i[1]+=2*g,o.unshift([{shape:{type:"rect",x:0,y:0,width:i[0],height:i[1]},fill:t.backgroundColor,stroke:{color:t.borderLineColor,width:n(t.borderLineSize)}}]),a.masking?.unshift([]))}function Z(t,e){return t>e?"dark":"light"}function D(t,e){const o="number"==typeof e?.size?e?.size:null,i=null!=o?n(o):null,a=null!=e?.maxSize?n(e.maxSize):null;let l="angle"in t?t.angle:null;null!=e?.rotation&&(l=(l??0)+e.rotation);const s=h(t);let r=c(t);"dark"!==T(t,245)||e?.ignoreWhiteSymbols||(r={width:.75,...r,color:"#bdc3c7"});let p=null;const d={shape:null,fill:s,stroke:r,offset:[0,0]};r?.width&&(r.width=Math.min(r.width,S));const f=r?.width||0;let g=null!=e?.size&&(null==e?.scale||e?.scale),C=0,B=0,U=!1;switch(t.type){case v:{const o=t.style,{width:s,height:r}=E(e);let h=s===r&&null!=s?s:null!=i?i:Math.min(n(t.size),a||L);if(!0===e?.useMarkerSymbolSize&&null!==s&&null!==r){const e=Math.min(n(t.size),a||L);h=e>s&&e>r?Math.min(s,r):e}switch(C=h,B=h,o){case"circle":d.shape={type:"circle",cx:0,cy:0,r:.5*h},g||(C+=f,B+=f);break;case"cross":d.shape={type:"path",path:[{command:"M",values:[0,.5*B]},{command:"L",values:[C,.5*B]},{command:"M",values:[.5*C,0]},{command:"L",values:[.5*C,B]}]};break;case"diamond":d.shape={type:"path",path:[{command:"M",values:[0,.5*B]},{command:"L",values:[.5*C,0]},{command:"L",values:[C,.5*B]},{command:"L",values:[.5*C,B]},{command:"Z",values:[]}]},g||(C+=f,B+=f);break;case"square":d.shape={type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[C,0]},{command:"L",values:[C,B]},{command:"L",values:[0,B]},{command:"Z",values:[]}]},g||(C+=f,B+=f),l&&(U=!0);break;case"triangle":d.shape={type:"path",path:[{command:"M",values:[.5*C,0]},{command:"L",values:[C,B]},{command:"L",values:[0,B]},{command:"Z",values:[]}]},g||(C+=f,B+=f),l&&(U=!0);break;case"x":d.shape={type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[C,B]},{command:"M",values:[C,0]},{command:"L",values:[0,B]}]},l&&(U=!0);break;case"path":d.shape={type:"path",path:t.path||""},g||(C+=f,B+=f),l&&(U=!0),g=!0}break}case b:{const{width:t,height:o}=E(e),n=m(r).reduce((t,e)=>t+e,0),a=n&&Math.ceil(j/n),l=o??i??f,s=t??(n*a||j);if(g=!0,"polyline"===e?.geometry?.type&&e?.geometry?.extent){C=s,B=o??C;const t=1e3,i=.15*t;p=[C,B],B=p[0]>p[1]?t*p[1]/p[0]:t,C=p[0]>p[1]?t:t*p[0]/p[1],r?.width&&(r.width=r.width*t/(p[1]>p[0]?p[1]:p[0]),r.width>i&&(r.width=i)),d.shape={type:"path",path:P(e.geometry,C,B)}}else C=null!=e?.maxSize?Math.min(s,e.maxSize):s,B=l,r&&(r.width=l),d.shape={type:"path",path:[{command:"M",values:[l/2,B/2]},{command:"L",values:[C-l/2,B/2]}]};break}case y:case x:{const t="object"==typeof e?.symbolConfig&&!!e?.symbolConfig?.isSquareFill,{width:o,height:n}=E(e);C=!t&&o!==n||null==o?null!=i?i:z:o,B=!t&&o!==n||null==n?C:n,g||(C+=f,B+=f),g=!0,e?.geometry?.extent&&"polygon"===e?.geometry?.type?(p=[C,B],B=p[0]>p[1]?1e3*p[1]/p[0]:1e3,C=p[0]>p[1]?1e3:1e3*p[0]/p[1],d.shape={type:"path",path:P(e.geometry,C,B)}):d.shape=t?{type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[C,0]},{command:"L",values:[C,B]},{command:"L",values:[0,B]},{command:"L",values:[0,0]},{command:"Z",values:[]}]}:u.fill[0];break}case w:{const o=Math.min(n(t.width),a||L),s=Math.min(n(t.height),a||L),{width:r,height:h}=E(e),c=r===h&&null!=r?r:null!=i?i:Math.max(o,s),m=t.width/t.height;C=m<=1?Math.ceil(c*m):c,B=m<=1?c:Math.ceil(c/m),d.shape={type:"image",x:-Math.round(C/2),y:-Math.round(B/2),width:C,height:B,src:t.url||""},l&&(U=!0);break}case M:{const o=t,l=e?.overrideText||o.text||k,s=o.font,{width:r,height:h}=E(e),c=null!=h?h:null!=i?i:Math.min(n(s.size),a||L),{width:m,height:p}=$(l,{weight:s.weight,size:c,family:s.family}),u=/[\uE600-\uE6FF]/.test(l);C=r??(u?c:m),B=u?c:p;let f=.5*(u?c:p);u&&(f+=5),d.shape={type:"text",text:l,x:o.xoffset||0,y:o.yoffset||f,align:"middle",alignBaseline:o.verticalAlignment,decoration:s&&s.decoration,rotated:o.rotated,kerning:o.kerning},d.font=s&&{size:c,style:s.style,decoration:s.decoration,weight:s.weight,family:s.family};break}}return{shapeDescriptor:d,size:[C,B],outputSize:p,renderOptions:{node:e?.node,scale:g,opacity:e?.opacity,rotations:[l],useRotationSize:U,cssEffectFilter:e?.cssEffectFilter,ariaLabel:e?.ariaLabel,clipBloomEffect:e?.clipBloomEffect}}}async function q(t,e){const{shapeDescriptor:i,size:n,renderOptions:a,outputSize:l}=D(t,e);if(!i.shape)throw new o("symbolPreview: renderPreviewHTML2D","symbol not supported.");await U(t,i),await F(t,i,n,e);const s=[[i]];if("object"==typeof e?.symbolConfig&&e?.symbolConfig?.applyColorModulation){const t=.6*n[0];s.unshift([{...i,offset:[-t,0],fill:d(i.fill,-.3)}]),s.push([{...i,offset:[t,0],fill:d(i.fill,.3)}]),n[0]+=2*t,a.scale=!1}"text"===t.type&&A(t,i,s,n,a);const r=f(s,n,a);if(l&&r){const t="img"===r.nodeName.toLowerCase()?r:r.firstChild;"svg"===t.nodeName.toLowerCase()&&t.setAttribute("viewBox",`0 0 ${n[0].toString()} ${n[1].toString()}`),t.setAttribute("width",l[0].toString()),t.setAttribute("height",l[1].toString()),l.length>2&&(t.style.setProperty("padding-left",l[2]?.toString()+"px"),t.style.setProperty("padding-right",l[2]?.toString()+"px"),t.style.setProperty("padding-top",l[3]?.toString()+"px"),t.style.setProperty("padding-bottom",l[3]?.toString()+"px"),t.style.setProperty("box-sizing","border-box"))}return r}function T(o,i=C){const n=h(o),a=c(o),l=!n||"type"in n?null:new t(n),s=a?.color?new t(a?.color):null,r=l?Z(e(l),i):null,m=s?Z(e(s),i):null;return m?r?r===m?r:i>=C?"light":"dark":m:r}export{T as getContrastingBackgroundTheme,D as getRenderSymbolParameters,q as previewSymbol2D};
2
+ import t from"../../Color.js";import{getColorLuminance as e}from"../../core/colorUtils.js";import o from"../../core/Error.js";import{loadFont as i}from"../../core/fontUtils.js";import{pt2px as n}from"../../core/screenUtils.js";import{quantizePolygon as a,quantizePolyline as l}from"../../geometry/support/quantizationUtils.js";import{isCurvedGeometry as s}from"../../geometry/support/curves/curveUtils.js";import{densifyForPreview as r}from"./densifyForPreview.js";import{getFill as h,getStroke as c,getDashArray as m,getPatternUrlWithColor as p}from"./gfxUtils.js";import{adjustColorBrightness as u,shapes as d}from"./previewUtils.js";import{renderSymbol as f}from"./renderUtils.js";import{backgroundPadding as g}from"./textUtils.js";const y="picture-fill",w="picture-marker",x="simple-fill",b="simple-line",v="simple-marker",M="text",k="Aa",z=22,L=120,S=80,j=50,C=225,B=document.createElement("canvas");function P(t,e,o){const{extent:i}=t;if(!i)return"";const n=i.width||1,h=i.height||1;if("polygon"===t.type){const l=t.clone();s(l)&&(l.rings=r(l,e,o,i).rings),a({originPosition:"upperLeft",scale:[n/e,h/o],translate:[i.xmin,i.ymax]},l,l);let c="";for(let t=0;t<l.rings.length;t++){const e=l.rings[t];for(let t=0;t<e.length;t++){const o=e[t][0],i=e[t][1],n=0===t?"M":"l",a=t===e.length-1?" Z":"";c+=`${""!==c?" ":""}${n}${o.toString()} ${i.toString()}${a}`}}return c}if("polyline"===t.type){const a=t.clone();s(a)&&(a.paths=r(a,e,o,i).paths),l({originPosition:"upperLeft",scale:[n/e,h/o],translate:[i.xmin,i.ymax]},a,a);let c="";for(let t=0;t<a.paths.length;t++){const e=a.paths[t];for(let t=0;t<e.length;t++){const o=e[t][0],i=e[t][1];c+=`${""!==c?" ":""}${0===t?"M":"l"}${o.toString()} ${i.toString()}`}}return c}return""}function $(t,e){const o=B.getContext("2d"),i=[];e&&(e.weight&&i.push(e.weight),e.size&&i.push(e.size+"px"),e.family&&i.push(e.family)),o.font=i.join(" ");const{width:n,actualBoundingBoxLeft:a,actualBoundingBoxRight:l,actualBoundingBoxAscent:s,actualBoundingBoxDescent:r}=o.measureText(t);return{width:Math.ceil(Math.max(n,a+l)),height:Math.ceil(s+r),x:Math.floor(a),y:Math.floor((s-r)/2)}}function E(t){const e=t?.size;return{width:null!=e&&"object"==typeof e&&"width"in e?n(e.width):null,height:null!=e&&"object"==typeof e&&"height"in e?n(e.height):null}}async function U(t,e){const o=e.fill,i=t.color;if("pattern"===o?.type&&i&&t.type!==y){const t=await p(o.src,i.toCss(!0));o.src=t,e.fill=o}}async function F(t,e,o,n){if(!("font"in t)||!t.font||"text"!==e.shape.type)return;try{await i(t.font)}catch{}const{width:a,height:l}=E(n);if(!/[\uE600-\uE6FF]/.test(e.shape.text)){const{width:i,height:s,x:r,y:h}=$(e.shape.text,{weight:e.font?.weight,size:e.font?.size,family:e.font?.family});o[0]=a??i,o[1]=l??s,e.shape.x=r,e.shape.y=h;let c="angle"in t?t.angle:null;if(null!=n?.rotation&&(c=(c??0)+n.rotation),c){const t=c*(Math.PI/180),e=Math.abs(Math.sin(t)),i=Math.abs(Math.cos(t));o[1]=o[0]*e+o[1]*i}}}function A(t,e,o,i,a){if(null!=t.haloColor&&null!=t.haloSize){a.masking??=o.map(()=>[]);const l=n(t.haloSize);i[0]+=l,i[1]+=l,o.unshift([{...e,fill:null,stroke:{color:t.haloColor,width:2*l,join:"round",cap:"round"}}]),a.masking.unshift([{shape:{type:"rect",x:0,y:0,width:i[0]+2*g,height:i[1]+2*g},fill:[255,255,255],stroke:null},{...e,fill:[0,0,0,0],stroke:null}])}null==t.backgroundColor&&null==t.borderLineColor||(i[0]+=2*g,i[1]+=2*g,o.unshift([{shape:{type:"rect",x:0,y:0,width:i[0],height:i[1]},fill:t.backgroundColor,stroke:{color:t.borderLineColor,width:n(t.borderLineSize)}}]),a.masking?.unshift([]))}function Z(t,e){return t>e?"dark":"light"}function D(t,e){const o="number"==typeof e?.size?e?.size:null,i=null!=o?n(o):null,a=null!=e?.maxSize?n(e.maxSize):null;let l="angle"in t?t.angle:null;null!=e?.rotation&&(l=(l??0)+e.rotation);const s=h(t);let r=c(t);"dark"!==T(t,245)||e?.ignoreWhiteSymbols||(r={width:.75,...r,color:"#bdc3c7"});let p=null;const u={shape:null,fill:s,stroke:r,offset:[0,0]};r?.width&&(r.width=Math.min(r.width,S));const f=r?.width||0;let g=null!=e?.size&&(null==e?.scale||e?.scale),C=0,B=0,U=!1;switch(t.type){case v:{const o=t.style,{width:s,height:r}=E(e);let h=s===r&&null!=s?s:null!=i?i:Math.min(n(t.size),a||L);if(!0===e?.useMarkerSymbolSize&&null!==s&&null!==r){const e=Math.min(n(t.size),a||L);h=e>s&&e>r?Math.min(s,r):e}switch(C=h,B=h,o){case"circle":u.shape={type:"circle",cx:0,cy:0,r:.5*h},g||(C+=f,B+=f);break;case"cross":u.shape={type:"path",path:[{command:"M",values:[0,.5*B]},{command:"L",values:[C,.5*B]},{command:"M",values:[.5*C,0]},{command:"L",values:[.5*C,B]}]};break;case"diamond":u.shape={type:"path",path:[{command:"M",values:[0,.5*B]},{command:"L",values:[.5*C,0]},{command:"L",values:[C,.5*B]},{command:"L",values:[.5*C,B]},{command:"Z",values:[]}]},g||(C+=f,B+=f);break;case"square":u.shape={type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[C,0]},{command:"L",values:[C,B]},{command:"L",values:[0,B]},{command:"Z",values:[]}]},g||(C+=f,B+=f),l&&(U=!0);break;case"triangle":u.shape={type:"path",path:[{command:"M",values:[.5*C,0]},{command:"L",values:[C,B]},{command:"L",values:[0,B]},{command:"Z",values:[]}]},g||(C+=f,B+=f),l&&(U=!0);break;case"x":u.shape={type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[C,B]},{command:"M",values:[C,0]},{command:"L",values:[0,B]}]},l&&(U=!0);break;case"path":u.shape={type:"path",path:t.path||""},g||(C+=f,B+=f),l&&(U=!0),g=!0}break}case b:{const{width:t,height:o}=E(e),n=m(r).reduce((t,e)=>t+e,0),a=n&&Math.ceil(j/n),l=o??i??f,s=t??(n*a||j);if(g=!0,"polyline"===e?.geometry?.type&&e?.geometry?.extent){C=s,B=o??C;const t=1e3,i=.15*t;p=[C,B],B=p[0]>p[1]?t*p[1]/p[0]:t,C=p[0]>p[1]?t:t*p[0]/p[1],r?.width&&(r.width=r.width*t/(p[1]>p[0]?p[1]:p[0]),r.width>i&&(r.width=i)),u.shape={type:"path",path:P(e.geometry,C,B)}}else C=null!=e?.maxSize?Math.min(s,e.maxSize):s,B=l,r&&(r.width=l),u.shape={type:"path",path:[{command:"M",values:[l/2,B/2]},{command:"L",values:[C-l/2,B/2]}]};break}case y:case x:{const t="object"==typeof e?.symbolConfig&&!!e?.symbolConfig?.isSquareFill,{width:o,height:n}=E(e);C=!t&&o!==n||null==o?null!=i?i:z:o,B=!t&&o!==n||null==n?C:n,g||(C+=f,B+=f),g=!0,e?.geometry?.extent&&"polygon"===e?.geometry?.type?(p=[C,B],B=p[0]>p[1]?1e3*p[1]/p[0]:1e3,C=p[0]>p[1]?1e3:1e3*p[0]/p[1],u.shape={type:"path",path:P(e.geometry,C,B)}):u.shape=t?{type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[C,0]},{command:"L",values:[C,B]},{command:"L",values:[0,B]},{command:"L",values:[0,0]},{command:"Z",values:[]}]}:d.fill[0];break}case w:{const o=Math.min(n(t.width),a||L),s=Math.min(n(t.height),a||L),{width:r,height:h}=E(e),c=r===h&&null!=r?r:null!=i?i:Math.max(o,s),m=t.width/t.height;C=m<=1?Math.ceil(c*m):c,B=m<=1?c:Math.ceil(c/m),u.shape={type:"image",x:-Math.round(C/2),y:-Math.round(B/2),width:C,height:B,src:t.url||""},l&&(U=!0);break}case M:{const o=t,l=e?.overrideText||o.text||k,s=o.font,{width:r,height:h}=E(e),c=null!=h?h:null!=i?i:Math.min(n(s.size),a||L),{width:m,height:p}=$(l,{weight:s.weight,size:c,family:s.family}),d=/[\uE600-\uE6FF]/.test(l);C=r??(d?c:m),B=d?c:p;let f=.5*(d?c:p);d&&(f+=5),u.shape={type:"text",text:l,x:o.xoffset||0,y:o.yoffset||f,align:"middle",alignBaseline:o.verticalAlignment,decoration:s&&s.decoration,rotated:o.rotated,kerning:o.kerning},u.font=s&&{size:c,style:s.style,decoration:s.decoration,weight:s.weight,family:s.family};break}}return{shapeDescriptor:u,size:[C,B],outputSize:p,renderOptions:{node:e?.node,scale:g,opacity:e?.opacity,rotations:[l],useRotationSize:U,cssEffectFilter:e?.cssEffectFilter,ariaLabel:e?.ariaLabel,clipBloomEffect:e?.clipBloomEffect}}}async function q(t,e){const{shapeDescriptor:i,size:n,renderOptions:a,outputSize:l}=D(t,e);if(!i.shape)throw new o("symbolPreview: renderPreviewHTML2D","symbol not supported.");await U(t,i),await F(t,i,n,e);const s=[[i]];if("object"==typeof e?.symbolConfig&&e?.symbolConfig?.applyColorModulation){const t=.6*n[0];s.unshift([{...i,offset:[-t,0],fill:u(i.fill,-.3)}]),s.push([{...i,offset:[t,0],fill:u(i.fill,.3)}]),n[0]+=2*t,a.scale=!1}"text"===t.type&&A(t,i,s,n,a);const r=f(s,n,a);if(l&&r){const t="img"===r.nodeName.toLowerCase()?r:r.firstChild;"svg"===t.nodeName.toLowerCase()&&t.setAttribute("viewBox",`0 0 ${n[0].toString()} ${n[1].toString()}`),t.setAttribute("width",l[0].toString()),t.setAttribute("height",l[1].toString()),l.length>2&&(t.style.setProperty("padding-left",l[2]?.toString()+"px"),t.style.setProperty("padding-right",l[2]?.toString()+"px"),t.style.setProperty("padding-top",l[3]?.toString()+"px"),t.style.setProperty("padding-bottom",l[3]?.toString()+"px"),t.style.setProperty("box-sizing","border-box"))}return r}function T(o,i=C){const n=h(o),a=c(o),l=!n||"type"in n?null:new t(n),s=a?.color?new t(a?.color):null,r=l?Z(e(l),i):null,m=s?Z(e(s),i):null;return m?r?r===m?r:i>=C?"light":"dark":m:r}export{T as getContrastingBackgroundTheme,D as getRenderSymbolParameters,q as previewSymbol2D};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{makeData as e,isDataProtocol as a,dataComponents as r,isAbsolute as t,join as n}from"../../core/urlUtils.js";import{w as i,a as u}from"../../chunks/persistableUrlUtils.js";function l(a,r,t){return r.imageData?e({mediaType:r.contentType||"image/png",isBase64:!0,data:r.imageData}):o(r.url,t)}function o(e,a){if(!t(e)){const r=p(a);if(r)return n(r,"images",e)}return u(e,a)}function s(e,t,n,u){if(a(e)){const a=r(e);if(!a)return;t.contentType=a.mediaType,t.imageData=a.data,n&&n.imageData===t.imageData&&n.url&&i(n.url,t,"url",u)}else i(e,t,"url",u)}const m={json:{read:{source:["imageData","url"],reader:l},write:{writer(e,a,r,t){s(e,a,this.source,t)}}}},c={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,a,r){const t={};return a.imageData&&(t.imageData=a.imageData),a.contentType&&(t.contentType=a.contentType),a.url&&(t.url=o(a.url,r)),t}}}};function p(e){if(!e)return null;const{origin:a,layer:r}=e;if("service"!==a&&"portal-item"!==a)return null;const t=r?.type;return"feature"===t||"stream"===t?r.parsedUrl?.path:"map-image"===t||"tile"===t?e.url?.path:null}export{o as read,l as readImageDataOrUrl,c as sourcePropertyDefinition,m as urlPropertyDefinition,s as writeImageDataAndUrl};
2
+ import{makeData as e,isDataProtocol as r,dataComponents as t,isAbsolute as a,join as n}from"../../core/urlUtils.js";import{w as i,f as u}from"../../chunks/persistableUrlUtils.js";function l(r,t,a){return t.imageData?e({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):o(t.url,a)}function o(e,r){if(!a(e)){const t=p(r);if(t)return n(t,"images",e)}return u(e,r)}function s(e,a,n,u){if(r(e)){const r=t(e);if(!r)return;a.contentType=r.mediaType,a.imageData=r.data,n&&n.imageData===a.imageData&&n.url&&i(n.url,a,"url",u)}else i(e,a,"url",u)}const m={json:{read:{source:["imageData","url"],reader:l},write:{writer(e,r,t,a){s(e,r,this.source,a)}}}},c={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,r,t){const a={};return r.imageData&&(a.imageData=r.imageData),r.contentType&&(a.contentType=r.contentType),r.url&&(a.url=o(r.url,t)),a}}}};function p(e){if(!e)return null;const{origin:r,layer:t}=e;if("service"!==r&&"portal-item"!==r)return null;const a=t?.type;return"feature"===a||"stream"===a?t.parsedUrl?.path:"map-image"===a||"tile"===a?e.url?.path:null}export{o as read,l as readImageDataOrUrl,c as sourcePropertyDefinition,m as urlPropertyDefinition,s as writeImageDataAndUrl};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{isDevEnvironment as t,adjustStaticAGOUrl as e}from"../../core/devEnvironmentUtils.js";import r from"../../core/Error.js";import{urlToObject as o,removeFile as l}from"../../core/urlUtils.js";import n from"../../portal/Portal.js";import{a as s}from"../../chunks/persistableUrlUtils.js";import{fromJSON as m}from"./jsonUtils.js";import a from"./StyleOrigin.js";import{fetchStyle as i,Style2DUrlTemplate as u,requestJSON as c,makeCIMSymbolRef as p,symbolUrlFromStyleItem as y}from"./styleUtils.js";import{Thumbnail as f}from"./Thumbnail.js";import{isSymbol3D as b}from"./typeUtils.js";import{defaultAcceptedFormats as d}from"./webStyleAcceptedFormats.js";function h(t,e,o){const l=t.name;return null==l?Promise.reject(new r("symbolstyleutils:style-symbol-reference-name-missing","Missing name in style symbol reference")):"Esri2DPointSymbolsStyle"===t.styleName?U(l,e,o):i(t,e,o).then(t=>j(t,l,e,y,o))}function g(t,e){return e.items.find(e=>e.name===t)}async function j(i,u,y,h,j){const U=null!=y?.portal?y.portal:n.getDefault(),w={portal:U,url:o(i.baseUrl)},N=g(u,i.data);if(!N)throw new r("symbolstyleutils:symbol-name-not-found",`The symbol name '${u}' could not be found`,{symbolName:u});const S=j?.acceptedFormats??d,D=h(N,S);if(!D)throw new r("symbolstyleutils:symbol-reference-no-accepted-format",`The symbol name '${u}' does not have an accepted format (one of ${S})`,{symbolName:u});const{url:$,format:v}=D;let E=s($,w),O=N.thumbnail?.href??null;const P=N.thumbnail?.imageData;t()&&(E=e(E)??"",O=e(O));const T={portal:U,url:o(l(E)),origin:"portal-item"};return c(E,j).then(t=>{const e="cim"===v?p(t.data):t.data,r=m(e,T);if(r&&b(r)){if(O){const t=s(O,w);r.thumbnail=new f({url:t})}else P&&(r.thumbnail=new f({url:`data:image/png;base64,${P}`}));i.styleUrl?r.styleOrigin=new a({portal:y.portal,styleUrl:i.styleUrl,name:u}):i.styleName&&(r.styleOrigin=new a({portal:y.portal,styleName:i.styleName,name:u}))}return r})}function U(t,e,r){const s=u.replaceAll(/\{SymbolName\}/gi,t),a=null!=e.portal?e.portal:n.getDefault();return c(s,r).then(t=>{const e=p(t.data);return m(e,{portal:a,url:o(l(s)),origin:"portal-item"})})}export{j as fetchSymbolFromStyle,g as getStyleItemFromStyle,h as resolveWebStyleSymbol};
2
+ import{isDevEnvironment as t,adjustStaticAGOUrl as e}from"../../core/devEnvironmentUtils.js";import r from"../../core/Error.js";import{urlToObject as o,removeFile as l}from"../../core/urlUtils.js";import n from"../../portal/Portal.js";import{f as s}from"../../chunks/persistableUrlUtils.js";import{fromJSON as m}from"./jsonUtils.js";import a from"./StyleOrigin.js";import{fetchStyle as i,Style2DUrlTemplate as u,requestJSON as c,makeCIMSymbolRef as p,symbolUrlFromStyleItem as f}from"./styleUtils.js";import{Thumbnail as y}from"./Thumbnail.js";import{isSymbol3D as b}from"./typeUtils.js";import{defaultAcceptedFormats as d}from"./webStyleAcceptedFormats.js";function h(t,e,o){const l=t.name;return null==l?Promise.reject(new r("symbolstyleutils:style-symbol-reference-name-missing","Missing name in style symbol reference")):"Esri2DPointSymbolsStyle"===t.styleName?U(l,e,o):i(t,e,o).then(t=>j(t,l,e,f,o))}function g(t,e){return e.items.find(e=>e.name===t)}async function j(i,u,f,h,j){const U=null!=f?.portal?f.portal:n.getDefault(),w={portal:U,url:o(i.baseUrl)},N=g(u,i.data);if(!N)throw new r("symbolstyleutils:symbol-name-not-found",`The symbol name '${u}' could not be found`,{symbolName:u});const S=j?.acceptedFormats??d,D=h(N,S);if(!D)throw new r("symbolstyleutils:symbol-reference-no-accepted-format",`The symbol name '${u}' does not have an accepted format (one of ${S})`,{symbolName:u});const{url:$,format:v}=D;let E=s($,w),O=N.thumbnail?.href??null;const P=N.thumbnail?.imageData;t()&&(E=e(E)??"",O=e(O));const T={portal:U,url:o(l(E)),origin:"portal-item"};return c(E,j).then(t=>{const e="cim"===v?p(t.data):t.data,r=m(e,T);if(r&&b(r)){if(O){const t=s(O,w);r.thumbnail=new y({url:t})}else P&&(r.thumbnail=new y({url:`data:image/png;base64,${P}`}));i.styleUrl?r.styleOrigin=new a({portal:f.portal,styleUrl:i.styleUrl,name:u}):i.styleName&&(r.styleOrigin=new a({portal:f.portal,styleName:i.styleName,name:u}))}return r})}function U(t,e,r){const s=u.replaceAll(/\{SymbolName\}/gi,t),a=null!=e.portal?e.portal:n.getDefault();return c(s,r).then(t=>{const e=p(t.data);return m(e,{portal:a,url:o(l(s)),origin:"portal-item"})})}export{j as fetchSymbolFromStyle,g as getStyleItemFromStyle,h as resolveWebStyleSymbol};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import e from"../../Viewpoint.js";import i from"../../core/Accessor.js";import s from"../../core/Error.js";import has from"../../core/has.js";import r from"../../core/Logger.js";import{watch as o,sync as n}from"../../core/reactiveUtils.js";import{createScreenPoint as a}from"../../core/screenUtils.js";import c from"../../core/Warning.js";import{property as p,subclass as h}from"../../core/accessorSupport/decorators.js";import l from"../../geometry/Extent.js";import{q as d}from"../../chunks/pe.js";import v from"../../geometry/Point.js";import{project as g}from"../../geometry/projectionUtils.js";import{equals as u}from"../../geometry/support/spatialReferenceUtils.js";import w from"./PaddedViewState.js";import{centerAt as m,setExtent as f,rotateTo as y,scaleTo as _,copy as j,extentToScale as x,angleBetween as S,resize as R}from"./viewpointUtils.js";let z=class extends i{constructor(t){super(t),this.constraints=null,this.ready=!1,this.resizeAlign="center",this.addHandles([o(()=>this.constraints?.version,t=>{this.constraints&&t&&this.ready&&(this.state.viewpoint=this.constraints.fit(this.state.paddedViewState.viewpoint))},n)])}get center(){if(!this.ready)return this._get("center");const{center:t,spatialReference:e}=this.state.paddedViewState;return this.state.commitProperty("id"),new v({x:t[0],y:t[1],spatialReference:e})}set center(t){if(null==t)return;if(!this.ready)return void this._set("center",t);let e;try{e=this._project(t,this.state.spatialReference)}catch(o){return void r.getLogger(this).error(new s("mapview:invalid-center","could not project the value in the view's spatial reference",{input:t,error:o}))}const i=this.viewpoint;m(i,i,e),this.viewpoint=i}get extent(){return this.ready?(this.state.commitProperty("id"),this.state.paddedViewState.extent.clone()):this._get("extent")}set extent(t){if(null==t)return;let e=t;if(!e.width||!e.height)return void r.getLogger(this).error(new s("mapview:invalid-extent","invalid extent size"));if(!this.ready)return this._set("extent",e),this._set("center",void 0),this._set("viewpoint",void 0),this._set("scale",void 0),void this._set("zoom",void 0);try{e=this._project(e,this.state.spatialReference)}catch(o){return void r.getLogger(this).error(new s("mapview:invalid-extent","could not project the value in the view's spatial reference",{error:o}))}const i=this.viewpoint;f(i,i,e,this.state.size,{constraints:this.constraints}),this.viewpoint=i}get padding(){return this.ready?this.state.padding:this._get("padding")}set padding(t){this.ready?(this.state.padding=t,this._set("padding",this.state.padding)):this._set("padding",t)}get resolution(){return this.ready?(this.state.commitProperty("id"),this.state.resolution):0}get rotation(){return this.ready?(this.state.commitProperty("id"),this.state.rotation):this._get("rotation")}set rotation(t){if(isNaN(t))return;if(!this.ready)return void this._set("rotation",t);const e=this.viewpoint;y(e,e,t),this.viewpoint=e}get scale(){return this.ready?(this.state.commitProperty("id"),this.state.scale):this._get("scale")}set scale(t){if(!t||isNaN(t))return;if(!this.ready){this._set("scale",t),this._set("zoom",void 0);const e=this._get("extent");return void(e&&(this._set("extent",void 0),this._set("center",e.center)))}const e=this.viewpoint;_(e,e,t),this.viewpoint=e}get viewpoint(){if(!this.ready)return this._get("viewpoint");return this.state.paddedViewState.viewpoint.clone()}set viewpoint(t){if(null==t)return;if(!this.ready)return this._set("viewpoint",t),this._set("extent",void 0),this._set("center",void 0),this._set("zoom",void 0),void this._set("scale",void 0);let i,o;try{i=this._project(t,this.state.spatialReference),!t.scale||isNaN(t.scale)?o=new s("mapview:invalid-viewpoint",`invalid scale value of ${t.scale}`):null==t.targetGeometry&&(o=new s("mapview:invalid-viewpoint","geometry not defined"))}catch(a){o=new s("mapview:invalid-viewpoint","could not project the value in the view's spatial reference",{error:a})}if(o)return void r.getLogger(this).error(o);this._scaleBeforeChangingSpatialReference=null;const n=new e({targetGeometry:new v,scale:0,rotation:0});j(n,i),this.constraints?.constrain(n,this.state.paddedViewState.viewpoint),this.state.viewpoint=n,this._set("viewpoint",n)}get visibleArea(){return this.ready?this.state.visibleArea:null}get zoom(){return this.ready?this.constraints?.scaleToZoom(this.scale)??-1:this._get("zoom")}set zoom(t){if(!(t>=0))return;if(!this.ready){this._set("zoom",t),this._set("scale",void 0);const e=this._get("extent");return void(e&&(this._set("extent",void 0),this._set("center",e.center)))}const e=this.constraints?.zoomToScale(t)??0;if(!e)return void this._set("zoom",-1);const i=this.viewpoint;_(i,i,e),this.viewpoint=i,this._set("zoom",this.constraints?.scaleToZoom(this.scale)??-1)}getUserStartupOptions(t){if(!t[0]&&!t[1])return{center:void 0,rotation:void 0,scale:void 0};const{padding:e,constraints:i}=this,s=this._get("center"),r=this._get("extent"),o=this._get("scale"),n=this._get("rotation"),a=this._get("viewpoint"),c=this._get("zoom"),p=null!=c&&null!=i&&i.zoomToScale(c)||void 0;let h,l,d;const v=a?.rotation,g=a?.targetGeometry;"extent"===g?.type?h=g:"point"===g?.type&&(l=g,d=a?.scale);const u=r??h;return{center:s??l??u?.center,rotation:n??v,scale:(o??p??d??(u&&x(u,[t[0]-e.left-e.right,t[1]-e.top-e.bottom])))||void 0}}startup(t,e,i,s){const o=t.targetGeometry;try{this._project(t,i)}catch(n){r.getLogger(this).warn(new c("mapview:startup-projection-error","projection of initial viewpoint to the view's spatial reference, defaulting to the initial viewpoint.",{center:o.toJSON(),spatialReference:i,error:n})),t.targetGeometry=s||new v({x:0,y:0,spatialReference:i})}this.constraints?.fit(t),this._set("state",new w({padding:this.padding,size:e,viewpoint:t})),this._set("ready",!0)}teardown(){this._set("ready",!1);const{center:[t,e],spatialReference:i,rotation:s,scale:r}=this.state.paddedViewState,o=new v({x:t,y:e,spatialReference:i});this._set("viewpoint",null),this._set("extent",null),this._set("center",o),this._set("zoom",-1),this._set("rotation",s),this._set("scale",r),this._set("state",null)}changeSpatialReference(t){const i=this.state.paddedViewState.clone();if(null==this._scaleBeforeChangingSpatialReference)this._scaleBeforeChangingSpatialReference=i.scale;else{const t=i.viewpoint.clone();t.scale=this._scaleBeforeChangingSpatialReference,i.viewpoint=t}const s=i.clone(),[o,n]=i.center;let a=null;try{a=this._project(new v({x:o,y:n,spatialReference:i.spatialReference}),t)}catch(h){d()||r.getLogger(this).warn(new c("mapview:spatial-reference-change","could not project the view's center to the new spatial reference",{center:a?.toJSON(),spatialReference:t,error:h}))}a||(a=new v({x:0,y:0,spatialReference:t}));const p=m(new e({targetGeometry:new v,scale:0,rotation:0}),i.viewpoint,a);s.viewpoint=p;try{const e=20,r=[i.size[0]/2,i.size[1]/2],o=[r[0]+e,r[1]],n=i.toMap([0,0],o),{x:a,y:c}=this._project(new v({x:n[0],y:n[1],spatialReference:i.spatialReference}),t);n[0]=a,n[1]=c,s.toScreen(n,n);const h=S(r,n,o),l=Math.hypot(n[0]-r[0],n[1]-r[1])/e;!Number.isFinite(l)||Math.abs(l)>4?(p.rotation=0,p.targetGeometry=new v({x:0,y:0,spatialReference:t})):(p.scale*=l,p.scale>has("mapview-srswitch-adjust-rotation-scale-threshold")?p.rotation=0:p.rotation+=Number.isFinite(h)?h:0)}catch{}this._get("constraints")?.constrain(p,void 0),this._get("state").viewpoint=p}resize(t,e){if(!this.ready)return;const i=this.state;let s=this.state.paddedViewState.viewpoint;const r=this.state.paddedViewState.size.slice();i.size=[t,e],R(s,s,r,this.state.paddedViewState.size,this.resizeAlign),s=this.constraints?.constrain(s,void 0)??s,this.state.viewpoint=s}toMap(t){if(!this.ready)return null;const e=[0,0],[i,s]=this.state.toMap(e,[t.x,t.y]),r=this.state.spatialReference;return new v({x:i,y:s,spatialReference:r})}toScreen(t,e){if(!this.ready)return null;const i=this._project(t,this.state.spatialReference),s=[i.x,i.y];return!1===e?.pickClosestTarget||this.state.paddedViewState.wrapMapCoordinate(s,s),this.state.toScreen(s,s),a(s[0],s[1])}_project(t,e){const i=t?.targetGeometry||t;if(!e)return t;if(!i)return null;if(e.imageCoordinateSystem||i.spatialReference?.imageCoordinateSystem)return t;if(u(e,i.spatialReference))return t;const r=g(i,e);if(!r)throw new s("mapview:projection-not-possible","projecting input geometry to target spatial reference returned a null value",{geometry:i,spatialReference:e});return V(t)?(t.targetGeometry=r,t):r}};function V(t){return"esri.Viewpoint"===t?.declaredClass}t([p({type:v})],z.prototype,"center",null),t([p()],z.prototype,"constraints",void 0),t([p({type:l})],z.prototype,"extent",null),t([p({value:{top:0,right:0,bottom:0,left:0},cast:t=>({top:0,right:0,bottom:0,left:0,...t})})],z.prototype,"padding",null),t([p()],z.prototype,"ready",void 0),t([p()],z.prototype,"resizeAlign",void 0),t([p({readOnly:!0})],z.prototype,"resolution",null),t([p({type:Number})],z.prototype,"rotation",null),t([p({type:Number})],z.prototype,"scale",null),t([p({readOnly:!0})],z.prototype,"state",void 0),t([p({type:e})],z.prototype,"viewpoint",null),t([p({readOnly:!0})],z.prototype,"visibleArea",null),t([p()],z.prototype,"zoom",null),z=t([h("esri.views.2d.ViewStateManager")],z);export{z as ViewStateManager};
2
+ import{__decorate as t}from"tslib";import e from"../../Viewpoint.js";import i from"../../core/Accessor.js";import s from"../../core/Error.js";import has from"../../core/has.js";import r from"../../core/Logger.js";import{watch as o,sync as n}from"../../core/reactiveUtils.js";import{createScreenPoint as a}from"../../core/screenUtils.js";import c from"../../core/Warning.js";import{property as p,subclass as h}from"../../core/accessorSupport/decorators.js";import l from"../../geometry/Extent.js";import{i as d}from"../../chunks/pe.js";import v from"../../geometry/Point.js";import{project as g}from"../../geometry/projectionUtils.js";import{equals as u}from"../../geometry/support/spatialReferenceUtils.js";import w from"./PaddedViewState.js";import{centerAt as m,setExtent as f,rotateTo as y,scaleTo as _,copy as j,extentToScale as x,angleBetween as S,resize as R}from"./viewpointUtils.js";let z=class extends i{constructor(t){super(t),this.constraints=null,this.ready=!1,this.resizeAlign="center",this.addHandles([o(()=>this.constraints?.version,t=>{this.constraints&&t&&this.ready&&(this.state.viewpoint=this.constraints.fit(this.state.paddedViewState.viewpoint))},n)])}get center(){if(!this.ready)return this._get("center");const{center:t,spatialReference:e}=this.state.paddedViewState;return this.state.commitProperty("id"),new v({x:t[0],y:t[1],spatialReference:e})}set center(t){if(null==t)return;if(!this.ready)return void this._set("center",t);let e;try{e=this._project(t,this.state.spatialReference)}catch(o){return void r.getLogger(this).error(new s("mapview:invalid-center","could not project the value in the view's spatial reference",{input:t,error:o}))}const i=this.viewpoint;m(i,i,e),this.viewpoint=i}get extent(){return this.ready?(this.state.commitProperty("id"),this.state.paddedViewState.extent.clone()):this._get("extent")}set extent(t){if(null==t)return;let e=t;if(!e.width||!e.height)return void r.getLogger(this).error(new s("mapview:invalid-extent","invalid extent size"));if(!this.ready)return this._set("extent",e),this._set("center",void 0),this._set("viewpoint",void 0),this._set("scale",void 0),void this._set("zoom",void 0);try{e=this._project(e,this.state.spatialReference)}catch(o){return void r.getLogger(this).error(new s("mapview:invalid-extent","could not project the value in the view's spatial reference",{error:o}))}const i=this.viewpoint;f(i,i,e,this.state.size,{constraints:this.constraints}),this.viewpoint=i}get padding(){return this.ready?this.state.padding:this._get("padding")}set padding(t){this.ready?(this.state.padding=t,this._set("padding",this.state.padding)):this._set("padding",t)}get resolution(){return this.ready?(this.state.commitProperty("id"),this.state.resolution):0}get rotation(){return this.ready?(this.state.commitProperty("id"),this.state.rotation):this._get("rotation")}set rotation(t){if(isNaN(t))return;if(!this.ready)return void this._set("rotation",t);const e=this.viewpoint;y(e,e,t),this.viewpoint=e}get scale(){return this.ready?(this.state.commitProperty("id"),this.state.scale):this._get("scale")}set scale(t){if(!t||isNaN(t))return;if(!this.ready){this._set("scale",t),this._set("zoom",void 0);const e=this._get("extent");return void(e&&(this._set("extent",void 0),this._set("center",e.center)))}const e=this.viewpoint;_(e,e,t),this.viewpoint=e}get viewpoint(){if(!this.ready)return this._get("viewpoint");return this.state.paddedViewState.viewpoint.clone()}set viewpoint(t){if(null==t)return;if(!this.ready)return this._set("viewpoint",t),this._set("extent",void 0),this._set("center",void 0),this._set("zoom",void 0),void this._set("scale",void 0);let i,o;try{i=this._project(t,this.state.spatialReference),!t.scale||isNaN(t.scale)?o=new s("mapview:invalid-viewpoint",`invalid scale value of ${t.scale}`):null==t.targetGeometry&&(o=new s("mapview:invalid-viewpoint","geometry not defined"))}catch(a){o=new s("mapview:invalid-viewpoint","could not project the value in the view's spatial reference",{error:a})}if(o)return void r.getLogger(this).error(o);this._scaleBeforeChangingSpatialReference=null;const n=new e({targetGeometry:new v,scale:0,rotation:0});j(n,i),this.constraints?.constrain(n,this.state.paddedViewState.viewpoint),this.state.viewpoint=n,this._set("viewpoint",n)}get visibleArea(){return this.ready?this.state.visibleArea:null}get zoom(){return this.ready?this.constraints?.scaleToZoom(this.scale)??-1:this._get("zoom")}set zoom(t){if(!(t>=0))return;if(!this.ready){this._set("zoom",t),this._set("scale",void 0);const e=this._get("extent");return void(e&&(this._set("extent",void 0),this._set("center",e.center)))}const e=this.constraints?.zoomToScale(t)??0;if(!e)return void this._set("zoom",-1);const i=this.viewpoint;_(i,i,e),this.viewpoint=i,this._set("zoom",this.constraints?.scaleToZoom(this.scale)??-1)}getUserStartupOptions(t){if(!t[0]&&!t[1])return{center:void 0,rotation:void 0,scale:void 0};const{padding:e,constraints:i}=this,s=this._get("center"),r=this._get("extent"),o=this._get("scale"),n=this._get("rotation"),a=this._get("viewpoint"),c=this._get("zoom"),p=null!=c&&null!=i&&i.zoomToScale(c)||void 0;let h,l,d;const v=a?.rotation,g=a?.targetGeometry;"extent"===g?.type?h=g:"point"===g?.type&&(l=g,d=a?.scale);const u=r??h;return{center:s??l??u?.center,rotation:n??v,scale:(o??p??d??(u&&x(u,[t[0]-e.left-e.right,t[1]-e.top-e.bottom])))||void 0}}startup(t,e,i,s){const o=t.targetGeometry;try{this._project(t,i)}catch(n){r.getLogger(this).warn(new c("mapview:startup-projection-error","projection of initial viewpoint to the view's spatial reference, defaulting to the initial viewpoint.",{center:o.toJSON(),spatialReference:i,error:n})),t.targetGeometry=s||new v({x:0,y:0,spatialReference:i})}this.constraints?.fit(t),this._set("state",new w({padding:this.padding,size:e,viewpoint:t})),this._set("ready",!0)}teardown(){this._set("ready",!1);const{center:[t,e],spatialReference:i,rotation:s,scale:r}=this.state.paddedViewState,o=new v({x:t,y:e,spatialReference:i});this._set("viewpoint",null),this._set("extent",null),this._set("center",o),this._set("zoom",-1),this._set("rotation",s),this._set("scale",r),this._set("state",null)}changeSpatialReference(t){const i=this.state.paddedViewState.clone();if(null==this._scaleBeforeChangingSpatialReference)this._scaleBeforeChangingSpatialReference=i.scale;else{const t=i.viewpoint.clone();t.scale=this._scaleBeforeChangingSpatialReference,i.viewpoint=t}const s=i.clone(),[o,n]=i.center;let a=null;try{a=this._project(new v({x:o,y:n,spatialReference:i.spatialReference}),t)}catch(h){d()||r.getLogger(this).warn(new c("mapview:spatial-reference-change","could not project the view's center to the new spatial reference",{center:a?.toJSON(),spatialReference:t,error:h}))}a||(a=new v({x:0,y:0,spatialReference:t}));const p=m(new e({targetGeometry:new v,scale:0,rotation:0}),i.viewpoint,a);s.viewpoint=p;try{const e=20,r=[i.size[0]/2,i.size[1]/2],o=[r[0]+e,r[1]],n=i.toMap([0,0],o),{x:a,y:c}=this._project(new v({x:n[0],y:n[1],spatialReference:i.spatialReference}),t);n[0]=a,n[1]=c,s.toScreen(n,n);const h=S(r,n,o),l=Math.hypot(n[0]-r[0],n[1]-r[1])/e;!Number.isFinite(l)||Math.abs(l)>4?(p.rotation=0,p.targetGeometry=new v({x:0,y:0,spatialReference:t})):(p.scale*=l,p.scale>has("mapview-srswitch-adjust-rotation-scale-threshold")?p.rotation=0:p.rotation+=Number.isFinite(h)?h:0)}catch{}this._get("constraints")?.constrain(p,void 0),this._get("state").viewpoint=p}resize(t,e){if(!this.ready)return;const i=this.state;let s=this.state.paddedViewState.viewpoint;const r=this.state.paddedViewState.size.slice();i.size=[t,e],R(s,s,r,this.state.paddedViewState.size,this.resizeAlign),s=this.constraints?.constrain(s,void 0)??s,this.state.viewpoint=s}toMap(t){if(!this.ready)return null;const e=[0,0],[i,s]=this.state.toMap(e,[t.x,t.y]),r=this.state.spatialReference;return new v({x:i,y:s,spatialReference:r})}toScreen(t,e){if(!this.ready)return null;const i=this._project(t,this.state.spatialReference),s=[i.x,i.y];return!1===e?.pickClosestTarget||this.state.paddedViewState.wrapMapCoordinate(s,s),this.state.toScreen(s,s),a(s[0],s[1])}_project(t,e){const i=t?.targetGeometry||t;if(!e)return t;if(!i)return null;if(e.imageCoordinateSystem||i.spatialReference?.imageCoordinateSystem)return t;if(u(e,i.spatialReference))return t;const r=g(i,e);if(!r)throw new s("mapview:projection-not-possible","projecting input geometry to target spatial reference returned a null value",{geometry:i,spatialReference:e});return V(t)?(t.targetGeometry=r,t):r}};function V(t){return"esri.Viewpoint"===t?.declaredClass}t([p({type:v})],z.prototype,"center",null),t([p()],z.prototype,"constraints",void 0),t([p({type:l})],z.prototype,"extent",null),t([p({value:{top:0,right:0,bottom:0,left:0},cast:t=>({top:0,right:0,bottom:0,left:0,...t})})],z.prototype,"padding",null),t([p()],z.prototype,"ready",void 0),t([p()],z.prototype,"resizeAlign",void 0),t([p({readOnly:!0})],z.prototype,"resolution",null),t([p({type:Number})],z.prototype,"rotation",null),t([p({type:Number})],z.prototype,"scale",null),t([p({readOnly:!0})],z.prototype,"state",void 0),t([p({type:e})],z.prototype,"viewpoint",null),t([p({readOnly:!0})],z.prototype,"visibleArea",null),t([p()],z.prototype,"zoom",null),z=t([h("esri.views.2d.ViewStateManager")],z);export{z as ViewStateManager};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{VTLMaterial as t}from"./VTLMaterial.js";import{DataType as r}from"../../../../webgl/enums.js";import{VertexElementDescriptor as o}from"../../../../webgl/VertexElementDescriptor.js";class e extends t{static{this.ATTRIBUTES=["background-color","background-pattern"]}static{this.GEOMETRY_LAYOUT=[new o("position",2,r.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"background-color":{name:"background-color",type:0,attribueIdx:[0,1],isLayout:!1},"background-pattern":{name:"background-pattern",type:0,attribueIdx:[1,2],isLayout:!1,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=e.GEOMETRY_LAYOUT,this.properties=e.ATTRIBUTES,this.propertyInfos=e.ATTRIBUTES_INFO}}export{e as VTLBackgroundMaterial};
2
+ import{VTLMaterial as t}from"./VTLMaterial.js";import{DataType as s}from"../../../../webgl/enums.js";import{VertexElementDescriptor as e}from"../../../../webgl/VertexElementDescriptor.js";class r extends t{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new e("position",2,s.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=r.GEOMETRY_LAYOUT,this.properties=r.ATTRIBUTES,this.propertyInfos=r.ATTRIBUTES_INFO}}export{r as VTLBackgroundMaterial};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{ShaderPrimitiveNode as e,cloneShaderNode as n,ShaderConditionNode as r,ShaderPropertyAccessNode as i,ShaderFunctionNode as c,ShaderArrayWriteNode as s,ShaderBlockNode as u,ShaderPropertyAccess2DNode as o,ShaderArrayReadNode as h,ShaderScopeNode as l}from"./ShaderGraphNode.js";var a,f,p,d,y,w,m,v,b,g,x,I,E;function $(t){switch(t.type){case"uint":return C;case"uvec2":return X;case"uvec3":return Y;case"uvec4":return _;default:throw new Error("Found unexpected type")}}function z(t){switch(t.type){case"float":return A;case"vec2":return G;case"vec3":return H;case"vec4":return V;default:throw new Error("Found unexpected type")}}function T(t){switch(t.type){case"int":return C;case"ivec2":return X;case"ivec3":return Y;case"ivec4":return _;default:throw new Error("Found unexpected type")}}function N(t){switch(t.type){case"float":return W;case"vec2":return Z;case"vec3":return tt;case"vec4":return et;default:throw new Error("Found unexpected type")}}function D(t){switch(t.type){case"bool":case"float":case"int":case"uint":return J;case"bvec2":case"vec2":case"ivec2":case"uvec2":return K;case"bvec3":case"vec3":case"ivec3":case"uvec3":return L;case"bvec4":case"vec4":case"ivec4":case"uvec4":return Q;default:throw new Error("Unable to handle type")}}function F(t){switch(t.type){case"bool":case"bvec2":case"bvec3":case"bvec4":return J;case"float":case"vec2":case"vec3":case"vec4":return C;case"int":case"ivec2":case"ivec3":case"ivec4":return W;case"uint":case"uvec2":case"uvec3":case"uvec4":return A;default:throw new Error("Unable to handle type")}}function k(t){switch(t.type){case"float":case"int":case"uint":case"bool":case"sampler2D":return 1;case"vec2":case"ivec2":case"uvec2":case"bvec2":return 2;case"vec3":case"ivec3":case"uvec3":case"bvec3":return 3;case"vec4":case"ivec4":case"uvec4":case"bvec4":case"mat2":return 4;case"mat3":return 9;case"mat4":return 16;case"array":case"array-2d":return t.size*k(t.elementType)}}function M(t){const e=[["float","vec2","vec3","vec4"],["int","ivec2","ivec3","ivec4"],["uint","uvec2","uvec3","uvec4"],["bool","bvec2","bvec3","bvec4"]];for(const n of e)if(n.includes(t))return n.map(t=>ct[t]);throw new Error("Unable to find type family")}function S(t){return new Proxy(t,{get(e,n){if("constructor"===n)return new Proxy(e.constructor,{construct:(t,e,n)=>S(new t(...e))});if(n in e)return e[n];if("string"==typeof n){const e=M(t.type);return dt(t,n,e[n.length-1])}}})}function R(t){return new Proxy(t,{construct:(t,e,n)=>S(new t(...e))})}function j(t,e){if(!Number.isSafeInteger(t)||t<0||t>=e)throw new B}class B extends Error{}class q extends e{static{this.type="array"}constructor(t,e,n=null){super(),this.elementType=t,this.size=e,this.writeNode=n,this.type="array"}get children(){return this.writeNode?[this.writeNode]:[this.elementType]}clone(){const t=this.writeNode?n(this.writeNode):null,e=new q(n(this.elementType),this.size,t);return super.cloneInto(e),e}set(t,e){return"number"==typeof t&&j(t,this.size),new q(n(this.elementType),this.size,new s(this,t,e))}get(t,e){"number"==typeof t&&j(t,this.size);const n=null!=e?new W(e):null;if(null!=n){const e=F(this.elementType.constructor);return yt(this,new W(t),n,e)}return wt(this,t,this.elementType.constructor)}last(){return this.get(this.size-1)}first(){return this.get(0)}findIndex(t,e,n){return $t(this,t,e,n)}glslFindIndex(t,e,n){return zt(this,t,e,n)}static ofType(t,e){const n=t;return class extends q{static{this.elementType=t}static{this.size=e}constructor(){super(new n,e)}}}}class U extends e{static{this.type="array-2d"}constructor(t,e,n,r=!1){super(),this.elementType=t,this.xSize=e,this.ySize=n,this.isRowMajor=r,this.type="array-2d",this.children=Array(e*n).fill(t)}clone(){const t=new U(n(this.elementType),this.xSize,this.ySize,this.isRowMajor);return t.children=this.children.map(n),super.cloneInto(t),t}get size(){return this.xSize*this.ySize}get(t,e){return this.isRowMajor?this._getRowMajor(t,e):this._getColumnMajor(t,e)}_getColumnMajor(t,e){const n=new W(t);return dt(this,new W(e).add(n.multiply(this.xSize)),this.elementType.constructor)}_getRowMajor(t,e){const n=new W(t),r=new W(e);return dt(this,n.add(r.multiply(this.ySize)),this.elementType.constructor)}static ofType(t,e,n,r=!1){return new Proxy(q,{construct:(i,c)=>new U(new t,e,n,r)})}}class P extends e{constructor(){super(...arguments),this.type="sampler2D",this.children=[]}static{this.type="sampler2D"}clone(){const t=new P;return t.children=this.children.map(n),super.cloneInto(t),t}}class C extends e{static{this.type="float"}constructor(t){super(),this.type="float",this.children=[t]}clone(){const t=new C(n(this.children[0]));return super.cloneInto(t),t}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}}let X=class extends e{static{a=this}static{this.type="vec2"}constructor(t,e){super(),this.type="vec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new a(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};X=a=t([R],X);let Y=class extends e{static{f=this}static{this.type="vec3"}constructor(t,e,n){super(),this.type="vec3",this.children=[t,e,n].filter(t=>null!=t)}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){return dt(this,"[2]",C)}get 3(){throw new B}clone(){const t=new f(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};Y=f=t([R],Y);let _=class extends e{static{p=this}static{this.type="vec4"}constructor(t,e,n,r){super(),this.type="vec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new p(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){return dt(this,"[2]",C)}get 3(){return dt(this,"[3]",C)}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};_=p=t([R],_);let A=class extends e{static{d=this}static{this.type="uint"}constructor(t){super(),this.type="uint",this.children=[t]}clone(){const t=new d(n(this.children[0]));return super.cloneInto(t),t}multiply(t){return Ft(this,O(t,d))}add(t){return Mt(this,O(t,d))}subtract(t){return St(this,O(t,d))}divide(t){return kt(this,O(t,d))}};A=d=t([R],A);let G=class extends e{static{y=this}static{this.type="uvec2"}constructor(t,e){super(),this.type="uvec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new y(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};G=y=t([R],G);let H=class extends e{static{w=this}static{this.type="uvec3"}constructor(t,e,n){super(),this.type="uvec3",this.children=[t,e,n].filter(t=>null!=t)}clone(){const t=new w(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",A)}get 1(){return dt(this,"[1]",A)}get 2(){return dt(this,"[2]",A)}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};H=w=t([R],H);let V=class extends e{static{m=this}static{this.type="uvec4"}constructor(t,e,n,r){super(),this.type="uvec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new m(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",A)}get 1(){return dt(this,"[1]",A)}get 2(){return dt(this,"[2]",A)}get 3(){return dt(this,"[3]",A)}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};V=m=t([R],V);class J extends e{static{this.type="bool"}constructor(t){super(),this.type="bool",this.children=[t]}and(t){return Ot(this,t)}or(t){return Vt(this,t)}xor(t){return Kt(this,t)}clone(){const t=new J(n(this.children[0]));return super.cloneInto(t),t}}let K=class extends e{static{v=this}static{this.type="bvec2"}constructor(t,e){super(),this.type="bvec2",this.children=[t,e].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new v(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}};K=v=t([R],K);let L=class extends e{static{b=this}static{this.type="bvec3"}constructor(t,e,n){super(),this.type="bvec3",this.children=[t,e,n].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new b(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}};function O(t,e){if("number"==typeof t){return new e(t)}return t}L=b=t([R],L);let Q=class extends e{static{g=this}static{this.type="bvec4"}constructor(t,e,n,r){super(),this.type="bvec4",this.children=[t,e,n,r].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new g(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}};Q=g=t([R],Q);class W extends e{static{this.type="int"}constructor(t){super(),this.type="int",this.children=[t]}multiply(t){return Ft(this,O(t,W))}add(t){return Mt(this,O(t,W))}subtract(t){return St(this,O(t,W))}divide(t){return kt(this,O(t,W))}clone(){const t=new W(n(this.children[0]));return super.cloneInto(t),t}}let Z=class extends e{static{x=this}static{this.type="ivec2"}constructor(t,e){super(),this.type="ivec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new x(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};Z=x=t([R],Z);let tt=class extends e{static{I=this}static{this.type="ivec3"}constructor(t,e,n){super(),this.type="ivec3",this.children=[t,e,n].filter(t=>null!=t)}clone(){const t=new I(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){return dt(this,"[2]",W)}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};tt=I=t([R],tt);let et=class extends e{static{E=this}static{this.type="ivec4"}constructor(t,e,n,r){super(),this.type="ivec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new E(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){return dt(this,"[2]",W)}get 3(){return dt(this,"[3]",W)}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};et=E=t([R],et);class nt extends e{static{this.type="mat2"}constructor(t,e,n,r){super(),this.type="mat2",this.children=[t,e,n,r]}clone(){const t=new nt(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get(t,e){return yt(this,new W(t),new W(e),C)}multiply(t){return Ft(this,t)}}class rt extends e{static{this.type="mat3"}static identity(){return new rt(1,0,0,0,1,0,0,0,1)}static fromRotation(t){const e=un(t),n=he(t);return new rt(n,e,0,xt(e),n,0,0,0,1)}constructor(t,e,n,r,i,c,s,u,o){super(),this.type="mat3",this.children=[t,e,n,r,i,c,s,u,o]}add(t){return Mt(this,t)}multiply(t){return Ft(this,t)}get(t,e){return yt(this,new W(t),new W(e),C)}clone(){const t=new rt(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]),n(this.children[4]),n(this.children[5]),n(this.children[6]),n(this.children[7]),n(this.children[8]));return super.cloneInto(t),t}}class it extends e{static{this.type="mat4"}static identity(){return new it(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}constructor(t,e,n,r,i,c,s,u,o,h,l,a,f,p,d,y){super(),this.type="mat4",this.children=[t,e,n,r,i,c,s,u,o,h,l,a,f,p,d,y]}static fromColumns(t,e,n,r){return new it(t.x,t.y,t.z,t.w,e.x,e.y,e.z,e.w,n.x,n.y,n.z,n.w,r.x,r.y,r.z,r.w)}multiply(t){return Ft(this,t)}get(t,e){return yt(this,new W(t),new W(e),C)}clone(){const t=new it(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]),n(this.children[4]),n(this.children[5]),n(this.children[6]),n(this.children[7]),n(this.children[8]),n(this.children[9]),n(this.children[10]),n(this.children[11]),n(this.children[12]),n(this.children[13]),n(this.children[14]),n(this.children[15]));return super.cloneInto(t),t}}const ct={float:C,vec2:X,vec3:Y,vec4:_,int:W,ivec2:Z,ivec3:tt,ivec4:et,uint:A,uvec2:G,uvec3:H,uvec4:V,bool:J,bvec2:K,bvec3:L,bvec4:Q},st=(...t)=>new W(...t),ut=(...t)=>new C(...t),ot=(...t)=>new X(...t),ht=(...t)=>new Y(...t),lt=(...t)=>new _(...t),at=(...t)=>new nt(...t),ft=(...t)=>new rt(...t),pt=(...t)=>new it(...t);function dt(t,e,n){const r=new n(new i(e,t,n));return r.isImplicit=!0,r}function yt(t,e,n,r){const i=new r(new o(e,n,t,r));return i.isImplicit=!0,i}function wt(t,e,n){const r=new n(new h(t,e,n));return r.isImplicit=!0,r}function mt(t,e,n,r=null){if(r){const i=new r,s=new r(new c(t,[e,n],!0,!1,i));return s.isImplicit=!0,s}if("float"===e.type||"int"===e.type){const r=new n.constructor(new c(t,[e,n],!0,!1,n.constructor));return r.isImplicit=!0,r}if(("mat2"===e.type||"mat3"===e.type||"mat4"===e.type)&&"float"!==n.type){const r=new n.constructor(new c(t,[e,n],!0,!1,n.constructor));return r.isImplicit=!0,r}const i=new e.constructor(new c(t,[e,n],!0,!1,e.constructor));return i.isImplicit=!0,i}function vt(t,e,n=e.constructor){const r=new n(new c(t,[e],!1,!1,n));return r.isImplicit=!0,r}function bt(t,e,n,r=e.constructor){const i=new r(new c(t,[e,n],!1,!1,r));return i.isImplicit=!0,i}function gt(t,e,n,r,i=e.constructor){const s=new i(new c(t,[e,n,r],!1,!1,i));return s.isImplicit=!0,s}function xt(t){return Ft(t,ut(-1))}function It(t,e,n,r){return new e(new u(t,e,n,r))}function Et(t,e){const n="function"==typeof t?t():t,r=new n.constructor(new l(n).setDebugName(e));return r.isImplicit=!0,r}function $t(t,e,n=0,r=t.size){const i=new W(n).setMutable().setDebugName("FindIndexIterator"),c=e(t.get(i)).setDebugName("FindIndexPredicate"),s=It({iter:i},W,c,({out:t,iter:e,subgraph:n})=>`\n${t} = -1;\n\nfor (; ${e} < ${r}; ${e}++) {\n\n${n.body}\n\n if (${n.varName}) {\n ${t} = ${e};\n break;\n }\n\n}\n`).setDebugName("FindIndexBlock");return s}function zt(t,e,n=0,r=t.size){const i=It({array:t},W,null,({out:t,array:i})=>`\n${t} = -1;\nfor (int i = ${n}; i < ${r}; i++) {\n bool condition;\n ${e({array:i,i:"i",out:"condition"})}\n if (condition) {\n ${t} = i;\n break;\n }\n}\n`).setDebugName("GlslFindIndexBlock");return i}function Tt(t,e,n){const i="function"==typeof e?e():e,c="function"==typeof n?n():n,s=new i.constructor(new r(t,i,c));return s.isImplicit=!0,s}function Nt(...t){const e=t.map(([t,e])=>"function"==typeof e?[t,e()]:[t,e]),n=e[0][1].constructor,r=e.findIndex(t=>!0===t[0]);if(-1===r)throw new Error("A cond must have a fallthrough case with `true`/; ");const i=e.slice(0,r),c=e[r][1],s=new n(i.reduceRight((t,e)=>Tt(e[0],e[1],t),c));return s.isImplicit=!0,s}function Dt(t,e){const n=new e.constructor(new r(t,e,null));return n.isImplicit=!0,n}function Ft(t,e){return mt("*",t,e)}function kt(t,e){return mt("/",t,e)}function Mt(t,e){return mt("+",t,e)}function St(t,e){return mt("-",t,e)}function Rt(t,e){return mt("%",t,e)}function jt(t,e){return mt("<<",t,e)}function Bt(t,e){return mt(">>",t,e)}function qt(t,e){return mt("&",t,e)}function Ut(t,e){return mt("|",t,e)}function Pt(t,e){return mt("^",t,e)}function Ct(t){return vt("~",t)}function Xt(t,e){return mt("==",t,e,J)}function Yt(t,e){return mt("!=",t,e,J)}function _t(t,e){return mt("<",t,e,J)}function At(t,e){return mt("<=",t,e,J)}function Gt(t,e){return mt(">",t,e,J)}function Ht(t,e){return mt(">=",t,e,J)}function Vt(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Jt(t,e),t[0])}function Jt(t,e){return mt("||",t,e,J)}function Kt(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Lt(t,e),t[0])}function Lt(t,e){return mt("^^",t,e,J)}function Ot(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Qt(t,e),t[0])}function Qt(t,e){return mt("&&",t,e,J)}function Wt(t){return vt("abs",t)}function Zt(t){return vt("acos",t)}function te(t){return vt("acosh",t)}function ee(t){return vt("all",t,J)}function ne(t){return vt("any",t,J)}function re(t){return vt("asin",t)}function ie(t){return vt("asinh",t)}function ce(t,e){return null==e?vt("atan",t):bt("atan",t,e,t.constructor)}function se(t){return vt("atanh",t)}function ue(t){return vt("ceil",t)}function oe(t,e,n){return gt("clamp",t,e,n,t.constructor)}function he(t){return vt("cos",t)}function le(t){return vt("cosh",t)}function ae(t,e){return bt("cross",t,e,t.constructor)}function fe(t){return vt("dFdX",t)}function pe(t){return vt("dFdY",t)}function de(t){return vt("degrees",t)}function ye(t){return vt("determinant",t,C)}function we(t,e){return bt("distance",t,e,C)}function me(t,e){return bt("dot",t,e,C)}function ve(t,e){return bt("equal",t,e,D(t))}function be(t,e){return bt("greaterThan",t,e,D(t))}function ge(t,e){return bt("greaterThanEqual",t,e,D(t))}function xe(t){return vt("exp",t)}function Ie(t){return vt("exp2",t)}function Ee(t,e,n){return gt("faceforward",t,e,n)}function $e(t){return vt("floatBitsToInt",t,N(t))}function ze(t){return vt("floatBitsToUint",t,z(t))}function Te(t){return vt("floor",t)}function Ne(t){return vt("fract",t)}function De(t){return vt("fwidth",t)}function Fe(t){return vt("intBitsToFloat",t,T(t))}function ke(t){return vt("uintBitsToFloat",t,$(t))}function Me(t){return vt("inverse",t,C)}function Se(t){return vt("inversesqrt",t)}function Re(t){return vt("isinf",t,D(t))}function je(t){return vt("isnan",t,D(t))}function Be(t){return vt("length",t,C)}function qe(t,e){return bt("lessThan",t,e,D(t))}function Ue(t,e){return bt("lessThanEqual",t,e,D(t))}function Pe(t){return vt("log",t)}function Ce(t){return vt("log2",t)}function Xe(t,e){return bt("matrixCompMult",t,e)}function Ye(t,e){return bt("max",t,e)}function _e(t,e){return bt("min",t,e)}function Ae(t,e,n){return gt("mix",t,e,n)}function Ge(t,e){return bt("mod",t,e)}function He(t,e){throw new Error("modf not implemented")}function Ve(t){return vt("normalize",t)}function Je(t){return"bool"===t.type?vt("!",t):vt("not",t)}function Ke(t,e){return bt("notEqual",t,e,D(t))}function Le(t,e){throw new Error("Impl type?")}function Oe(t){return vt("packHalf2x16",t,A)}function Qe(t){return vt("packUnorm2x16",t,A)}function We(t){return vt("packSnorm2x16",t,A)}function Ze(t,e){return bt("pow",t,e)}function tn(t){return vt("radians",t)}function en(t,e){return bt("reflect",t,e)}function nn(t,e,n){return gt("refract",t,e,n)}function rn(t){return vt("round",t)}function cn(t){return vt("roundEven",t)}function sn(t){return vt("sign",t)}function un(t){return vt("sin",t)}function on(t){return vt("sinh",t)}function hn(t,e,n){return gt("smoothstep",t,e,n)}function ln(t){return vt("sqrt",t)}function an(t,e){return bt("step",t,e,e.constructor)}function fn(t){return vt("tan",t)}function pn(t){return vt("tanh",t)}function dn(t,e,n){return gt("texelFetch",t,e,n,_)}function yn(t,e,n,r){throw new Error("Impl type")}function wn(t,e,n){throw new Error("Impl type")}function mn(t,e){return bt("texture",t,e,_)}function vn(t,e,n,r){throw new Error("Impl type")}function bn(t,e,n,r,i){throw new Error("Impl type")}function gn(t,e,n){throw new Error("Impl type")}function xn(t,e,n,r){throw new Error("Impl type")}function In(t,e,n,r){throw new Error("Impl type")}function En(t,e,n){throw new Error("Impl type")}function $n(t,e,n,r){throw new Error("Impl type")}function zn(t,e,n,r,i){throw new Error("Impl type")}function Tn(t,e,n){throw new Error("Impl type")}function Nn(t,e,n,r){throw new Error("Impl type")}function Dn(t,e,n,r){throw new Error("Impl type")}function Fn(t,e){throw new Error("Impl type")}function kn(t){return vt("transpose",t)}function Mn(t){return vt("trunc",t)}function Sn(t){return vt("unpackHalf2x16",t,X)}function Rn(t){return vt("unpackUnorm2x16",t,X)}function jn(t){return vt("unpackSnorm2x16",t,X)}function Bn(t,e){const n=Ze(new C(2),new C(e));return[new _(Ge(t.x,n),Te(t.x.divide(n)),Ge(t.y,n),Te(t.y.divide(n))),new _(Ge(t.z,n),Te(t.z.divide(n)),Ge(t.w,n),Te(t.w.divide(n)))]}function qn(t,e){const{initialValue:n,xRange:r,yRange:i,callback:c}=e,[s,u]=r,[o,h]=i,l=new W(0).setMutable().setDebugName("iterX"),a=new W(0).setMutable().setDebugName("iterY"),f=n.setMutable().setDebugName("accumulator"),p=c(f,t.get(l,a),l,a).setDebugName("callback"),d=It({iterX:l,iterY:a,accumulator:f},n.constructor,p,({out:t,iterX:e,iterY:n,accumulator:r,subgraph:i})=>`\nfor (${n} = ${o}; ${n} < ${h}; ${n}++) {\n for (${e} = ${s}; ${e} < ${u}; ${e}++) {\n\n ${i.body}\n\n ${r} = ${i.varName};\n }\n}\n${t} = ${r};\n`).setDebugName("reduce2DBody");return d}export{K as BVec2,L as BVec3,Q as BVec4,J as Bool,q as FixedArray,U as FixedArray2D,C as Float,Z as IVec2,tt as IVec3,et as IVec4,W as Int,nt as Mat2,rt as Mat3,it as Mat4,P as Sampler2D,A as UInt,G as UVec2,H as UVec3,V as UVec4,X as Vec2,Y as Vec3,_ as Vec4,Jt as _or,Lt as _xor,Wt as abs,Zt as acos,te as acosh,Mt as add,ee as all,Ot as and,ne as any,re as asin,ie as asinh,ce as atan,se as atanh,qt as bitAnd,Ct as bitNot,Ut as bitOr,Bt as bitRShift,jt as bitShift,Pt as bitXor,It as block,ue as ceil,oe as clamp,Nt as cond,he as cos,le as cosh,ae as cross,fe as dFdx,pe as dFdy,wt as defineArrayRead,dt as definePropertyAccess,yt as definePropertyAccess2D,de as degrees,ye as determinant,we as distance,kt as divide,me as dot,Xt as equal,ve as equalComponent,xe as exp,Ie as exp2,Ee as faceforward,$t as findIndex,ut as float,$e as floatBitsToInt,ze as floatBitsToUint,Te as floor,Ne as fract,De as fwidth,k as getTypeElementLengthForType,zt as glslFindIndex,Gt as greaterThan,be as greaterThanComponent,Ht as greaterThanEqual,ge as greaterThanEqualComponent,Tt as ifElse,st as int,Fe as intBitsToFloat,Rt as intMod,Me as inverse,Se as inversesqrt,Re as isinf,je as isnan,Be as length,_t as lessThan,qe as lessThanComponent,At as lessThanEqual,Ue as lessThanEqualComponent,Pe as log,Ce as log2,at as mat2,ft as mat3,pt as mat4,Xe as matrixCompMult,Ye as max,_e as min,Ae as mix,Ge as mod,He as modf,Ft as multiply,Et as namedScope,xt as negate,Ve as normalize,Je as not,Yt as notEqual,Ke as notEqualComponent,Vt as or,Le as outerProduct,Oe as packHalf2x16,We as packSnorm2x16,Qe as packUnorm2x16,Ze as pow,tn as radians,qn as reduce2D,en as reflect,nn as refract,rn as round,cn as roundEven,sn as sign,un as sin,on as sinh,hn as smoothstep,ln as sqrt,an as step,St as subtract,fn as tan,pn as tanh,dn as texelFetch,yn as texelFetchOffset,wn as texture,mn as texture2D,vn as textureGrad,bn as textureGradOffset,gn as textureLod,xn as textureLodOffset,In as textureOffset,En as textureProj,$n as textureProjGrad,zn as textureProjGradOffset,Tn as textureProjLod,Nn as textureProjLodOffset,Dn as textureProjOffset,Fn as textureSize,N as transformFloatToInt,z as transformFloatToUInt,T as transformIntToFloat,D as transformTypeToBooleanType,$ as transformUIntToFloat,kn as transpose,Mn as trunc,ke as uintBitsToFloat,Sn as unpackHalf2x16,jn as unpackSnorm2x16,Rn as unpackUnorm2x16,Bn as unpackVec4,ot as vec2,ht as vec3,lt as vec4,Dt as when,Kt as xor};
2
+ import{__decorate as t}from"tslib";import{ShaderPrimitiveNode as e,cloneShaderNode as n,ShaderPropertyAccessNode as r,ShaderPropertyAccess2DNode as i,ShaderFunctionNode as c,ShaderConditionNode as s,ShaderArrayWriteNode as u,ShaderArrayReadNode as o,ShaderBlockNode as h,ShaderScopeNode as l}from"./ShaderGraphNode.js";var a,f,p,d,y,w,m,v,b,g,x,I,E;function $(t){switch(t.type){case"uint":return C;case"uvec2":return X;case"uvec3":return Y;case"uvec4":return _;default:throw new Error("Found unexpected type")}}function z(t){switch(t.type){case"float":return A;case"vec2":return G;case"vec3":return H;case"vec4":return V;default:throw new Error("Found unexpected type")}}function T(t){switch(t.type){case"int":return C;case"ivec2":return X;case"ivec3":return Y;case"ivec4":return _;default:throw new Error("Found unexpected type")}}function N(t){switch(t.type){case"float":return W;case"vec2":return Z;case"vec3":return tt;case"vec4":return et;default:throw new Error("Found unexpected type")}}function D(t){switch(t.type){case"bool":case"float":case"int":case"uint":return J;case"bvec2":case"vec2":case"ivec2":case"uvec2":return K;case"bvec3":case"vec3":case"ivec3":case"uvec3":return L;case"bvec4":case"vec4":case"ivec4":case"uvec4":return Q;default:throw new Error("Unable to handle type")}}function F(t){switch(t.type){case"bool":case"bvec2":case"bvec3":case"bvec4":return J;case"float":case"vec2":case"vec3":case"vec4":return C;case"int":case"ivec2":case"ivec3":case"ivec4":return W;case"uint":case"uvec2":case"uvec3":case"uvec4":return A;default:throw new Error("Unable to handle type")}}function k(t){switch(t.type){case"float":case"int":case"uint":case"bool":case"sampler2D":return 1;case"vec2":case"ivec2":case"uvec2":case"bvec2":return 2;case"vec3":case"ivec3":case"uvec3":case"bvec3":return 3;case"vec4":case"ivec4":case"uvec4":case"bvec4":case"mat2":return 4;case"mat3":return 9;case"mat4":return 16;case"array":case"array-2d":return t.size*k(t.elementType)}}function M(t){const e=[["float","vec2","vec3","vec4"],["int","ivec2","ivec3","ivec4"],["uint","uvec2","uvec3","uvec4"],["bool","bvec2","bvec3","bvec4"]];for(const n of e)if(n.includes(t))return n.map(t=>ct[t]);throw new Error("Unable to find type family")}function S(t){return new Proxy(t,{get(e,n){if("constructor"===n)return new Proxy(e.constructor,{construct:(t,e,n)=>S(new t(...e))});if(n in e)return e[n];if("string"==typeof n){const e=M(t.type);return dt(t,n,e[n.length-1])}}})}function R(t){return new Proxy(t,{construct:(t,e,n)=>S(new t(...e))})}function j(t,e){if(!Number.isSafeInteger(t)||t<0||t>=e)throw new B}class B extends Error{}class q extends e{static{this.type="array"}constructor(t,e,n=null){super(),this.elementType=t,this.size=e,this.writeNode=n,this.type="array"}get children(){return this.writeNode?[this.writeNode]:[this.elementType]}clone(){const t=this.writeNode?n(this.writeNode):null,e=new q(n(this.elementType),this.size,t);return super.cloneInto(e),e}set(t,e){return"number"==typeof t&&j(t,this.size),new q(n(this.elementType),this.size,new u(this,t,e))}get(t,e){"number"==typeof t&&j(t,this.size);const n=null!=e?new W(e):null;if(null!=n){const e=F(this.elementType.constructor);return yt(this,new W(t),n,e)}return wt(this,t,this.elementType.constructor)}last(){return this.get(this.size-1)}first(){return this.get(0)}findIndex(t,e,n){return $t(this,t,e,n)}glslFindIndex(t,e,n){return zt(this,t,e,n)}static ofType(t,e){const n=t;return class extends q{static{this.elementType=t}static{this.size=e}constructor(){super(new n,e)}}}}class U extends e{static{this.type="array-2d"}constructor(t,e,n,r=!1){super(),this.elementType=t,this.xSize=e,this.ySize=n,this.isRowMajor=r,this.type="array-2d",this.children=Array(e*n).fill(t)}clone(){const t=new U(n(this.elementType),this.xSize,this.ySize,this.isRowMajor);return t.children=this.children.map(n),super.cloneInto(t),t}get size(){return this.xSize*this.ySize}get(t,e){return this.isRowMajor?this._getRowMajor(t,e):this._getColumnMajor(t,e)}_getColumnMajor(t,e){const n=new W(t);return dt(this,new W(e).add(n.multiply(this.xSize)),this.elementType.constructor)}_getRowMajor(t,e){const n=new W(t),r=new W(e);return dt(this,n.add(r.multiply(this.ySize)),this.elementType.constructor)}static ofType(t,e,n,r=!1){return new Proxy(q,{construct:(i,c)=>new U(new t,e,n,r)})}}class P extends e{constructor(){super(...arguments),this.type="sampler2D",this.children=[]}static{this.type="sampler2D"}clone(){const t=new P;return t.children=this.children.map(n),super.cloneInto(t),t}}class C extends e{static{this.type="float"}constructor(t){super(),this.type="float",this.children=[t]}clone(){const t=new C(n(this.children[0]));return super.cloneInto(t),t}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}}let X=class extends e{static{a=this}static{this.type="vec2"}constructor(t,e){super(),this.type="vec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new a(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};X=a=t([R],X);let Y=class extends e{static{f=this}static{this.type="vec3"}constructor(t,e,n){super(),this.type="vec3",this.children=[t,e,n].filter(t=>null!=t)}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){return dt(this,"[2]",C)}get 3(){throw new B}clone(){const t=new f(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};Y=f=t([R],Y);let _=class extends e{static{p=this}static{this.type="vec4"}constructor(t,e,n,r){super(),this.type="vec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new p(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){return dt(this,"[2]",C)}get 3(){return dt(this,"[3]",C)}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};_=p=t([R],_);let A=class extends e{static{d=this}static{this.type="uint"}constructor(t){super(),this.type="uint",this.children=[t]}clone(){const t=new d(n(this.children[0]));return super.cloneInto(t),t}multiply(t){return Ft(this,O(t,d))}add(t){return Mt(this,O(t,d))}subtract(t){return St(this,O(t,d))}divide(t){return kt(this,O(t,d))}};A=d=t([R],A);let G=class extends e{static{y=this}static{this.type="uvec2"}constructor(t,e){super(),this.type="uvec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new y(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};G=y=t([R],G);let H=class extends e{static{w=this}static{this.type="uvec3"}constructor(t,e,n){super(),this.type="uvec3",this.children=[t,e,n].filter(t=>null!=t)}clone(){const t=new w(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",A)}get 1(){return dt(this,"[1]",A)}get 2(){return dt(this,"[2]",A)}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};H=w=t([R],H);let V=class extends e{static{m=this}static{this.type="uvec4"}constructor(t,e,n,r){super(),this.type="uvec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new m(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",A)}get 1(){return dt(this,"[1]",A)}get 2(){return dt(this,"[2]",A)}get 3(){return dt(this,"[3]",A)}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};V=m=t([R],V);class J extends e{static{this.type="bool"}constructor(t){super(),this.type="bool",this.children=[t]}and(t){return Ot(this,t)}or(t){return Vt(this,t)}xor(t){return Kt(this,t)}clone(){const t=new J(n(this.children[0]));return super.cloneInto(t),t}}let K=class extends e{static{v=this}static{this.type="bvec2"}constructor(t,e){super(),this.type="bvec2",this.children=[t,e].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new v(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}};K=v=t([R],K);let L=class extends e{static{b=this}static{this.type="bvec3"}constructor(t,e,n){super(),this.type="bvec3",this.children=[t,e,n].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new b(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}};function O(t,e){if("number"==typeof t){return new e(t)}return t}L=b=t([R],L);let Q=class extends e{static{g=this}static{this.type="bvec4"}constructor(t,e,n,r){super(),this.type="bvec4",this.children=[t,e,n,r].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new g(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}};Q=g=t([R],Q);class W extends e{static{this.type="int"}constructor(t){super(),this.type="int",this.children=[t]}multiply(t){return Ft(this,O(t,W))}add(t){return Mt(this,O(t,W))}subtract(t){return St(this,O(t,W))}divide(t){return kt(this,O(t,W))}clone(){const t=new W(n(this.children[0]));return super.cloneInto(t),t}}let Z=class extends e{static{x=this}static{this.type="ivec2"}constructor(t,e){super(),this.type="ivec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new x(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};Z=x=t([R],Z);let tt=class extends e{static{I=this}static{this.type="ivec3"}constructor(t,e,n){super(),this.type="ivec3",this.children=[t,e,n].filter(t=>null!=t)}clone(){const t=new I(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){return dt(this,"[2]",W)}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};tt=I=t([R],tt);let et=class extends e{static{E=this}static{this.type="ivec4"}constructor(t,e,n,r){super(),this.type="ivec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new E(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){return dt(this,"[2]",W)}get 3(){return dt(this,"[3]",W)}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};et=E=t([R],et);class nt extends e{static{this.type="mat2"}constructor(t,e,n,r){super(),this.type="mat2",this.children=[t,e,n,r]}clone(){const t=new nt(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get(t,e){return yt(this,new W(t),new W(e),C)}multiply(t){return Ft(this,t)}}class rt extends e{static{this.type="mat3"}static identity(){return new rt(1,0,0,0,1,0,0,0,1)}static fromRotation(t){const e=un(t),n=he(t);return new rt(n,e,0,xt(e),n,0,0,0,1)}constructor(t,e,n,r,i,c,s,u,o){super(),this.type="mat3",this.children=[t,e,n,r,i,c,s,u,o]}add(t){return Mt(this,t)}multiply(t){return Ft(this,t)}get(t,e){return yt(this,new W(t),new W(e),C)}clone(){const t=new rt(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]),n(this.children[4]),n(this.children[5]),n(this.children[6]),n(this.children[7]),n(this.children[8]));return super.cloneInto(t),t}}class it extends e{static{this.type="mat4"}static identity(){return new it(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}constructor(t,e,n,r,i,c,s,u,o,h,l,a,f,p,d,y){super(),this.type="mat4",this.children=[t,e,n,r,i,c,s,u,o,h,l,a,f,p,d,y]}static fromColumns(t,e,n,r){return new it(t.x,t.y,t.z,t.w,e.x,e.y,e.z,e.w,n.x,n.y,n.z,n.w,r.x,r.y,r.z,r.w)}multiply(t){return Ft(this,t)}get(t,e){return yt(this,new W(t),new W(e),C)}clone(){const t=new it(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]),n(this.children[4]),n(this.children[5]),n(this.children[6]),n(this.children[7]),n(this.children[8]),n(this.children[9]),n(this.children[10]),n(this.children[11]),n(this.children[12]),n(this.children[13]),n(this.children[14]),n(this.children[15]));return super.cloneInto(t),t}}const ct={float:C,vec2:X,vec3:Y,vec4:_,int:W,ivec2:Z,ivec3:tt,ivec4:et,uint:A,uvec2:G,uvec3:H,uvec4:V,bool:J,bvec2:K,bvec3:L,bvec4:Q},st=(...t)=>new W(...t),ut=(...t)=>new C(...t),ot=(...t)=>new X(...t),ht=(...t)=>new Y(...t),lt=(...t)=>new _(...t),at=(...t)=>new nt(...t),ft=(...t)=>new rt(...t),pt=(...t)=>new it(...t);function dt(t,e,n){const i=new n(new r(e,t,n));return i.isImplicit=!0,i}function yt(t,e,n,r){const c=new r(new i(e,n,t,r));return c.isImplicit=!0,c}function wt(t,e,n){const r=new n(new o(t,e,n));return r.isImplicit=!0,r}function mt(t,e,n,r=null){if(r){const i=new r,s=new r(new c(t,[e,n],!0,!1,i));return s.isImplicit=!0,s}if("float"===e.type||"int"===e.type){const r=new n.constructor(new c(t,[e,n],!0,!1,n.constructor));return r.isImplicit=!0,r}if(("mat2"===e.type||"mat3"===e.type||"mat4"===e.type)&&"float"!==n.type){const r=new n.constructor(new c(t,[e,n],!0,!1,n.constructor));return r.isImplicit=!0,r}const i=new e.constructor(new c(t,[e,n],!0,!1,e.constructor));return i.isImplicit=!0,i}function vt(t,e,n=e.constructor){const r=new n(new c(t,[e],!1,!1,n));return r.isImplicit=!0,r}function bt(t,e,n,r=e.constructor){const i=new r(new c(t,[e,n],!1,!1,r));return i.isImplicit=!0,i}function gt(t,e,n,r,i=e.constructor){const s=new i(new c(t,[e,n,r],!1,!1,i));return s.isImplicit=!0,s}function xt(t){return Ft(t,ut(-1))}function It(t,e,n,r){return new e(new h(t,e,n,r))}function Et(t,e){const n="function"==typeof t?t():t,r=new n.constructor(new l(n).setDebugName(e));return r.isImplicit=!0,r}function $t(t,e,n=0,r=t.size){const i=new W(n).setMutable().setDebugName("FindIndexIterator"),c=e(t.get(i)).setDebugName("FindIndexPredicate"),s=It({iter:i},W,c,({out:t,iter:e,subgraph:n})=>`\n${t} = -1;\n\nfor (; ${e} < ${r}; ${e}++) {\n\n${n.body}\n\n if (${n.varName}) {\n ${t} = ${e};\n break;\n }\n\n}\n`).setDebugName("FindIndexBlock");return s}function zt(t,e,n=0,r=t.size){const i=It({array:t},W,null,({out:t,array:i})=>`\n${t} = -1;\nfor (int i = ${n}; i < ${r}; i++) {\n bool condition;\n ${e({array:i,i:"i",out:"condition"})}\n if (condition) {\n ${t} = i;\n break;\n }\n}\n`).setDebugName("GlslFindIndexBlock");return i}function Tt(t,e,n){const r="function"==typeof e?e():e,i="function"==typeof n?n():n,c=new r.constructor(new s(t,r,i));return c.isImplicit=!0,c}function Nt(...t){const e=t.map(([t,e])=>"function"==typeof e?[t,e()]:[t,e]),n=e[0][1].constructor,r=e.findIndex(t=>!0===t[0]);if(-1===r)throw new Error("A cond must have a fallthrough case with `true`/; ");const i=e.slice(0,r),c=e[r][1],s=new n(i.reduceRight((t,e)=>Tt(e[0],e[1],t),c));return s.isImplicit=!0,s}function Dt(t,e){const n=new e.constructor(new s(t,e,null));return n.isImplicit=!0,n}function Ft(t,e){return mt("*",t,e)}function kt(t,e){return mt("/",t,e)}function Mt(t,e){return mt("+",t,e)}function St(t,e){return mt("-",t,e)}function Rt(t,e){return mt("%",t,e)}function jt(t,e){return mt("<<",t,e)}function Bt(t,e){return mt(">>",t,e)}function qt(t,e){return mt("&",t,e)}function Ut(t,e){return mt("|",t,e)}function Pt(t,e){return mt("^",t,e)}function Ct(t){return vt("~",t)}function Xt(t,e){return mt("==",t,e,J)}function Yt(t,e){return mt("!=",t,e,J)}function _t(t,e){return mt("<",t,e,J)}function At(t,e){return mt("<=",t,e,J)}function Gt(t,e){return mt(">",t,e,J)}function Ht(t,e){return mt(">=",t,e,J)}function Vt(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Jt(t,e),t[0])}function Jt(t,e){return mt("||",t,e,J)}function Kt(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Lt(t,e),t[0])}function Lt(t,e){return mt("^^",t,e,J)}function Ot(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Qt(t,e),t[0])}function Qt(t,e){return mt("&&",t,e,J)}function Wt(t){return vt("abs",t)}function Zt(t){return vt("acos",t)}function te(t){return vt("acosh",t)}function ee(t){return vt("all",t,J)}function ne(t){return vt("any",t,J)}function re(t){return vt("asin",t)}function ie(t){return vt("asinh",t)}function ce(t,e){return null==e?vt("atan",t):bt("atan",t,e,t.constructor)}function se(t){return vt("atanh",t)}function ue(t){return vt("ceil",t)}function oe(t,e,n){return gt("clamp",t,e,n,t.constructor)}function he(t){return vt("cos",t)}function le(t){return vt("cosh",t)}function ae(t,e){return bt("cross",t,e,t.constructor)}function fe(t){return vt("dFdX",t)}function pe(t){return vt("dFdY",t)}function de(t){return vt("degrees",t)}function ye(t){return vt("determinant",t,C)}function we(t,e){return bt("distance",t,e,C)}function me(t,e){return bt("dot",t,e,C)}function ve(t,e){return bt("equal",t,e,D(t))}function be(t,e){return bt("greaterThan",t,e,D(t))}function ge(t,e){return bt("greaterThanEqual",t,e,D(t))}function xe(t){return vt("exp",t)}function Ie(t){return vt("exp2",t)}function Ee(t,e,n){return gt("faceforward",t,e,n)}function $e(t){return vt("floatBitsToInt",t,N(t))}function ze(t){return vt("floatBitsToUint",t,z(t))}function Te(t){return vt("floor",t)}function Ne(t){return vt("fract",t)}function De(t){return vt("fwidth",t)}function Fe(t){return vt("intBitsToFloat",t,T(t))}function ke(t){return vt("uintBitsToFloat",t,$(t))}function Me(t){return vt("inverse",t,C)}function Se(t){return vt("inversesqrt",t)}function Re(t){return vt("isinf",t,D(t))}function je(t){return vt("isnan",t,D(t))}function Be(t){return vt("length",t,C)}function qe(t,e){return bt("lessThan",t,e,D(t))}function Ue(t,e){return bt("lessThanEqual",t,e,D(t))}function Pe(t){return vt("log",t)}function Ce(t){return vt("log2",t)}function Xe(t,e){return bt("matrixCompMult",t,e)}function Ye(t,e){return bt("max",t,e)}function _e(t,e){return bt("min",t,e)}function Ae(t,e,n){return gt("mix",t,e,n)}function Ge(t,e){return bt("mod",t,e)}function He(t,e){throw new Error("modf not implemented")}function Ve(t){return vt("normalize",t)}function Je(t){return"bool"===t.type?vt("!",t):vt("not",t)}function Ke(t,e){return bt("notEqual",t,e,D(t))}function Le(t,e){throw new Error("Impl type?")}function Oe(t){return vt("packHalf2x16",t,A)}function Qe(t){return vt("packUnorm2x16",t,A)}function We(t){return vt("packSnorm2x16",t,A)}function Ze(t,e){return bt("pow",t,e)}function tn(t){return vt("radians",t)}function en(t,e){return bt("reflect",t,e)}function nn(t,e,n){return gt("refract",t,e,n)}function rn(t){return vt("round",t)}function cn(t){return vt("roundEven",t)}function sn(t){return vt("sign",t)}function un(t){return vt("sin",t)}function on(t){return vt("sinh",t)}function hn(t,e,n){return gt("smoothstep",t,e,n)}function ln(t){return vt("sqrt",t)}function an(t,e){return bt("step",t,e,e.constructor)}function fn(t){return vt("tan",t)}function pn(t){return vt("tanh",t)}function dn(t,e,n){return gt("texelFetch",t,e,n,_)}function yn(t,e,n,r){throw new Error("Impl type")}function wn(t,e,n){throw new Error("Impl type")}function mn(t,e){return bt("texture",t,e,_)}function vn(t,e,n,r){throw new Error("Impl type")}function bn(t,e,n,r,i){throw new Error("Impl type")}function gn(t,e,n){throw new Error("Impl type")}function xn(t,e,n,r){throw new Error("Impl type")}function In(t,e,n,r){throw new Error("Impl type")}function En(t,e,n){throw new Error("Impl type")}function $n(t,e,n,r){throw new Error("Impl type")}function zn(t,e,n,r,i){throw new Error("Impl type")}function Tn(t,e,n){throw new Error("Impl type")}function Nn(t,e,n,r){throw new Error("Impl type")}function Dn(t,e,n,r){throw new Error("Impl type")}function Fn(t,e){throw new Error("Impl type")}function kn(t){return vt("transpose",t)}function Mn(t){return vt("trunc",t)}function Sn(t){return vt("unpackHalf2x16",t,X)}function Rn(t){return vt("unpackUnorm2x16",t,X)}function jn(t){return vt("unpackSnorm2x16",t,X)}function Bn(t,e){const n=Ze(new C(2),new C(e));return[new _(Ge(t.x,n),Te(t.x.divide(n)),Ge(t.y,n),Te(t.y.divide(n))),new _(Ge(t.z,n),Te(t.z.divide(n)),Ge(t.w,n),Te(t.w.divide(n)))]}function qn(t,e){const{initialValue:n,xRange:r,yRange:i,callback:c}=e,[s,u]=r,[o,h]=i,l=new W(0).setMutable().setDebugName("iterX"),a=new W(0).setMutable().setDebugName("iterY"),f=n.setMutable().setDebugName("accumulator"),p=c(f,t.get(l,a),l,a).setDebugName("callback"),d=It({iterX:l,iterY:a,accumulator:f},n.constructor,p,({out:t,iterX:e,iterY:n,accumulator:r,subgraph:i})=>`\nfor (${n} = ${o}; ${n} < ${h}; ${n}++) {\n for (${e} = ${s}; ${e} < ${u}; ${e}++) {\n\n ${i.body}\n\n ${r} = ${i.varName};\n }\n}\n${t} = ${r};\n`).setDebugName("reduce2DBody");return d}export{K as BVec2,L as BVec3,Q as BVec4,J as Bool,q as FixedArray,U as FixedArray2D,C as Float,Z as IVec2,tt as IVec3,et as IVec4,W as Int,nt as Mat2,rt as Mat3,it as Mat4,P as Sampler2D,A as UInt,G as UVec2,H as UVec3,V as UVec4,X as Vec2,Y as Vec3,_ as Vec4,Jt as _or,Lt as _xor,Wt as abs,Zt as acos,te as acosh,Mt as add,ee as all,Ot as and,ne as any,re as asin,ie as asinh,ce as atan,se as atanh,qt as bitAnd,Ct as bitNot,Ut as bitOr,Bt as bitRShift,jt as bitShift,Pt as bitXor,It as block,ue as ceil,oe as clamp,Nt as cond,he as cos,le as cosh,ae as cross,fe as dFdx,pe as dFdy,wt as defineArrayRead,dt as definePropertyAccess,yt as definePropertyAccess2D,de as degrees,ye as determinant,we as distance,kt as divide,me as dot,Xt as equal,ve as equalComponent,xe as exp,Ie as exp2,Ee as faceforward,$t as findIndex,ut as float,$e as floatBitsToInt,ze as floatBitsToUint,Te as floor,Ne as fract,De as fwidth,k as getTypeElementLengthForType,zt as glslFindIndex,Gt as greaterThan,be as greaterThanComponent,Ht as greaterThanEqual,ge as greaterThanEqualComponent,Tt as ifElse,st as int,Fe as intBitsToFloat,Rt as intMod,Me as inverse,Se as inversesqrt,Re as isinf,je as isnan,Be as length,_t as lessThan,qe as lessThanComponent,At as lessThanEqual,Ue as lessThanEqualComponent,Pe as log,Ce as log2,at as mat2,ft as mat3,pt as mat4,Xe as matrixCompMult,Ye as max,_e as min,Ae as mix,Ge as mod,He as modf,Ft as multiply,Et as namedScope,xt as negate,Ve as normalize,Je as not,Yt as notEqual,Ke as notEqualComponent,Vt as or,Le as outerProduct,Oe as packHalf2x16,We as packSnorm2x16,Qe as packUnorm2x16,Ze as pow,tn as radians,qn as reduce2D,en as reflect,nn as refract,rn as round,cn as roundEven,sn as sign,un as sin,on as sinh,hn as smoothstep,ln as sqrt,an as step,St as subtract,fn as tan,pn as tanh,dn as texelFetch,yn as texelFetchOffset,wn as texture,mn as texture2D,vn as textureGrad,bn as textureGradOffset,gn as textureLod,xn as textureLodOffset,In as textureOffset,En as textureProj,$n as textureProjGrad,zn as textureProjGradOffset,Tn as textureProjLod,Nn as textureProjLodOffset,Dn as textureProjOffset,Fn as textureSize,N as transformFloatToInt,z as transformFloatToUInt,T as transformIntToFloat,D as transformTypeToBooleanType,$ as transformUIntToFloat,kn as transpose,Mn as trunc,ke as uintBitsToFloat,Sn as unpackHalf2x16,jn as unpackSnorm2x16,Rn as unpackUnorm2x16,Bn as unpackVec4,ot as vec2,ht as vec3,lt as vec4,Dt as when,Kt as xor};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{location as e,ComputeVertexInput as o}from"../../GraphShaderModule.js";import{mod as s,Float as i,mix as r,Vec4 as l,ifElse as a,or as n,Bool as c,Vec2 as m}from"../../graph/glsl.js";import{AAnimatedShader as p,getValue as d,AAnimatedVertexInput as u,AAnimatedFragmentInput as b}from"./AAnimatedShader.js";import{MarkerConstants as h}from"../markers/markerConstants.js";import{getBitBool as x}from"../shaders/utils.js";import{getVisualVariableColor as y,getVisualVariableOpacity as P}from"../shaders/vvUtils.js";class v extends u{}t([e(9,l)],v.prototype,"tlbr",void 0),t([e(10,i)],v.prototype,"angle",void 0);class S extends o{}t([e(13,m)],S.prototype,"nextPos1",void 0),t([e(14,m)],S.prototype,"nextPos2",void 0);class g extends b{}class f extends p{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}_fragmentPoly(t){const e=s(t.uv,new i(1)),o=r(t.tlbr.xy,t.tlbr.zw,e);return this._getColor(o,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth})}_vertexPoly(t){const{position:e,animationPointer:o,evalParams:s,isOutline:m,unscaledDistanceToPx:p,vvScale:u,strokeWidth:b,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,clip:w}=this._vertexPreamble(t,new i(0),t.lineLength||new i(0)),k=this._toNdc(e);let j=d(o,1,s);j=new l(j.rgb.multiply(j.a),j.a);let z=a(x(t.bitset,h.bitset.colorLocked),j,d(o,2,s));z=new l(z.rgb.multiply(z.a),z.a);let D=d(o,3,s);D=new l(D.rgb.multiply(D.a),D.a);const T=d(o,4,s).a,_=d(o,5,s).a,C=y(this,t.id,j,n(x(t.bitset,h.bitset.colorLocked),new c(m))),F=r(C,z,D),A=P(this,t.id),L=r(A,T,_),W=F.multiply(L),O=this.clip(t.id,t.zoomRange).add(w.multiply(2)),G=p.multiply(u);return{unscaledDistanceToPx:p,vvScale:u,strokeWidth:b,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,ndc:k,color:W,z:O,isOutline:m,evalParams:s,distanceToPx:G}}}export{f as AAnimatedPolyShader,g as PolyFragmentInput,S as PolyHittestVertexInput,v as PolyVertexInput};
2
+ import{__decorate as t}from"tslib";import{location as e,ComputeVertexInput as o}from"../../GraphShaderModule.js";import{Vec4 as s,Float as i,Vec2 as r,mod as l,mix as a,ifElse as n,or as c,Bool as m}from"../../graph/glsl.js";import{AAnimatedVertexInput as p,AAnimatedFragmentInput as d,AAnimatedShader as u,getValue as b}from"./AAnimatedShader.js";import{MarkerConstants as h}from"../markers/markerConstants.js";import{getBitBool as x}from"../shaders/utils.js";import{getVisualVariableColor as y,getVisualVariableOpacity as P}from"../shaders/vvUtils.js";class v extends p{}t([e(9,s)],v.prototype,"tlbr",void 0),t([e(10,i)],v.prototype,"angle",void 0);class S extends o{}t([e(13,r)],S.prototype,"nextPos1",void 0),t([e(14,r)],S.prototype,"nextPos2",void 0);class g extends d{}class f extends u{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}_fragmentPoly(t){const e=l(t.uv,new i(1)),o=a(t.tlbr.xy,t.tlbr.zw,e);return this._getColor(o,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth})}_vertexPoly(t){const{position:e,animationPointer:o,evalParams:r,isOutline:l,unscaledDistanceToPx:p,vvScale:d,strokeWidth:u,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,clip:w}=this._vertexPreamble(t,new i(0),t.lineLength||new i(0)),k=this._toNdc(e);let j=b(o,1,r);j=new s(j.rgb.multiply(j.a),j.a);let z=n(x(t.bitset,h.bitset.colorLocked),j,b(o,2,r));z=new s(z.rgb.multiply(z.a),z.a);let D=b(o,3,r);D=new s(D.rgb.multiply(D.a),D.a);const T=b(o,4,r).a,_=b(o,5,r).a,C=y(this,t.id,j,c(x(t.bitset,h.bitset.colorLocked),new m(l))),F=a(C,z,D),A=P(this,t.id),L=a(A,T,_),W=F.multiply(L),O=this.clip(t.id,t.zoomRange).add(w.multiply(2)),G=p.multiply(d);return{unscaledDistanceToPx:p,vvScale:d,strokeWidth:u,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,ndc:k,color:W,z:O,isOutline:l,evalParams:r,distanceToPx:G}}}export{f as AAnimatedPolyShader,g as PolyFragmentInput,S as PolyHittestVertexInput,v as PolyVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as i}from"tslib";import{animationDebugFlags as t}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{generateVirtualMachineSource as e}from"../../../animations/instructions.js";import{location as o,uniform as a,texture as r,option as s}from"../../GraphShaderModule.js";import{Vec2 as l,texture2D as n,block as m,Float as p,step as u,negate as d,cond as c,equal as y,Mat2 as f,cos as v,sin as b,Mat3 as S,Vec3 as h,lessThanEqual as w,ifElse as g,clamp as x,abs as V,Vec4 as z,Sampler2D as T}from"../../graph/glsl.js";import{AnimationUniformInfo as P}from"./AnimationUniformInfo.js";import{MarkerConstants as j}from"../markers/markerConstants.js";import{AFeatureShader as _,FeatureVertexInput as O,FeatureFragmentInput as I}from"../shaders/AFeatureShader.js";import{c256ToRad as C,softEdgeRatio as M}from"../shaders/constants.js";import{LocalTileOffset as D}from"../shaders/LocalTileOffset.js";import{MosaicInfo as A}from"../shaders/MosaicInfo.js";import{getBit as F,rgba2float as L}from"../shaders/utils.js";import{VisualVariableColor as R}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as k}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as U}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as E}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as B}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as G}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as N}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as W,getVisualVariableAngle as q}from"../shaders/vvUtils.js";class H extends O{}i([o(3,l)],H.prototype,"offset",void 0),i([o(4,z)],H.prototype,"sizing",void 0),i([o(5,z)],H.prototype,"value1Position2Value2",void 0),i([o(6,z)],H.prototype,"animationPointerAndBaseSizeAndReferenceSize",void 0),i([o(7,l)],H.prototype,"zoomRange",void 0),i([o(8,p)],H.prototype,"lineLength",void 0);class J extends I{}class K extends _{_vertexPreamble(i,t,e){const{id:o,offset:a,animationPointerAndBaseSizeAndReferenceSize:r,sizing:s}=i,l=r.xy,n=r.z,m=r.w,S=s.xy,h=this._getEvalParams(i,S,e);let w,g;if(i.value1Position2Value2){const t=Q(l,6,h).a,e=i.pos,o=i.value1Position2Value2.yz,a=i.value1Position2Value2.x,r=i.value1Position2Value2.w,s=t.subtract(a).divide(r.subtract(a));g=e.add(o.subtract(e).multiply(s)),w=u(new p(1),s).add(u(new p(0),d(s)))}else g=i.pos,w=new p(0);const x=s.z,V=F(i.bitset,j.bitset.isStroke),z=s.w,T=F(i.bitset,j.bitset.scaleSymbolsProportionally),P=Q(l,0,h),_=c([y(F(i.bitset,j.bitset.isMapAligned),new p(1)),this.view.rotation.divide(180).multiply(Math.PI)],[!0,new p(0)]),O=new f(v(_),b(_.multiply(-1)),b(_),v(_)).multiply(P.xy),I=P.z.subtract(_).subtract(t.multiply(C)),M=P.w,D=F(i.bitset,j.bitset.isSDF),A=W(this,o,new p(m)).divide(new p(m));return{baseSize:n,animationPointer:l,strokeWidth:x,isOutline:V,unscaledDistanceToPx:z,scaleSymbolsProportionally:T,isSDF:D,position:this._getScreenPosition({id:o,pos:g,offset:a,referenceSize:m,translation:O,rotation:I,scale:M,vvScale:A}),evalParams:h,vvScale:A,scale:M,clip:w}}_getScreenPosition(i){const{pos:t,translation:e,rotation:o,scale:a,offset:r,id:s,vvScale:l}=i,n=q(this,s).multiply(Math.PI/180),m=e.x.multiply(4/3),u=e.y.multiply(-1).multiply(4/3),c=b(n),y=v(n),f=y.multiply(m).add(d(c).multiply(u)),w=c.multiply(m).add(y.multiply(u)),g=b(o.subtract(n)),x=v(o.subtract(n)),V=new p(0),z=new p(1),{pixelRatio:T}=this.animationInfo,P=new S(z,V,V,V,z,V,f.multiply(T),w.multiply(T),z),j=new S(x,g.multiply(-1),V,g,x,V,0,0,z),_=a.multiply(l).multiply(T).multiply(4/3),O=j.multiply(_),I=this.animationInfo.toScreen.multiply(new h(t,1)),C=P.multiply(I).xy,M=O.multiply(new h(r,0)).xy;return C.add(M)}_clip(i,e){let o=super.clip(i,e);const a=w(this._getLocalTimeOrigin(i),new p(0));return t.forceGlobalTimeOrigin||(o=o.add(c([a,()=>new p(2)],[!0,()=>new p(0)]))),o}_getLocalTimeOrigin(i){return this.getLocalTimeOrigin(i)}_toNdc(i){return this.animationInfo.toNdc.multiply(new h(i,1)).xy}_getEvalParams(i,t,e){const{globalTime:o,animationTextureSize:a}=this.animationInfo;return{globalTime:o,localTimeOrigin:this._getLocalTimeOrigin(i.id),animationTextureSize:a,animationTexture:this.animationTexture,pixelDimensions:t,lineLength:e}}_getColor(i,t){return g(y(t.isSDF,new p(1)),this._getSDFColor(i,t),this._getSpriteColor(i,t))}_getSpriteColor(i,t){return n(this.mosaicTexture,i).multiply(t.color)}_getSDFColor(i,t){const e=n(this.mosaicTexture,i),o=new p(.5).subtract(L(e)).multiply(t.distanceToPx).multiply(M),a=x(new p(.5).subtract(o),new p(0),new p(1)),r=t.color.multiply(a),s=t.outlineSize.multiply(.5),l=V(o).subtract(s),m=x(new p(.5).subtract(l),new p(0),new p(1)),u=t.outlineColor.multiply(m);return new p(1).subtract(u.a).multiply(r).add(u)}}function Q(i,t,o){const a=i.add(new l(t,0)),r=n(o.animationTexture,a.add(.5).divide(o.animationTextureSize)).xy;return i=i.add(r),m({animationPointer:i,...o},z,null,i=>{const{out:t}=i;if(!t)throw new Error("out is null");return e({...i,out:t})})}i([a(A)],K.prototype,"mosaicInfo",void 0),i([a(P)],K.prototype,"animationInfo",void 0),i([a(D)],K.prototype,"localTileOffset",void 0),i([r(T)],K.prototype,"mosaicTexture",void 0),i([s(R)],K.prototype,"visualVariableColor",void 0),i([s(k)],K.prototype,"visualVariableOpacity",void 0),i([s(E)],K.prototype,"visualVariableSizeMinMaxValue",void 0),i([s(B)],K.prototype,"visualVariableSizeScaleStops",void 0),i([s(G)],K.prototype,"visualVariableSizeStops",void 0),i([s(N)],K.prototype,"visualVariableSizeUnitValue",void 0),i([s(U)],K.prototype,"visualVariableRotation",void 0),i([r(T)],K.prototype,"animationTexture",void 0);export{J as AAnimatedFragmentInput,K as AAnimatedShader,H as AAnimatedVertexInput,Q as getValue};
2
+ import{__decorate as i}from"tslib";import{animationDebugFlags as t}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{generateVirtualMachineSource as e}from"../../../animations/instructions.js";import{location as o,uniform as a,texture as r,option as s}from"../../GraphShaderModule.js";import{Vec2 as l,Vec4 as n,Float as m,Sampler2D as p,step as u,negate as d,cond as c,equal as y,Mat2 as f,cos as v,sin as b,Mat3 as S,Vec3 as h,lessThanEqual as w,ifElse as g,texture2D as x,clamp as V,abs as z,block as T}from"../../graph/glsl.js";import{AnimationUniformInfo as P}from"./AnimationUniformInfo.js";import{MarkerConstants as j}from"../markers/markerConstants.js";import{FeatureVertexInput as _,AFeatureShader as O,FeatureFragmentInput as I}from"../shaders/AFeatureShader.js";import{c256ToRad as C,softEdgeRatio as M}from"../shaders/constants.js";import{LocalTileOffset as D}from"../shaders/LocalTileOffset.js";import{MosaicInfo as A}from"../shaders/MosaicInfo.js";import{getBit as F,rgba2float as L}from"../shaders/utils.js";import{VisualVariableColor as R}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as k}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as U}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as E}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as B}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as G}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as N}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as W,getVisualVariableAngle as q}from"../shaders/vvUtils.js";class H extends _{}i([o(3,l)],H.prototype,"offset",void 0),i([o(4,n)],H.prototype,"sizing",void 0),i([o(5,n)],H.prototype,"value1Position2Value2",void 0),i([o(6,n)],H.prototype,"animationPointerAndBaseSizeAndReferenceSize",void 0),i([o(7,l)],H.prototype,"zoomRange",void 0),i([o(8,m)],H.prototype,"lineLength",void 0);class J extends I{}class K extends O{_vertexPreamble(i,t,e){const{id:o,offset:a,animationPointerAndBaseSizeAndReferenceSize:r,sizing:s}=i,l=r.xy,n=r.z,p=r.w,S=s.xy,h=this._getEvalParams(i,S,e);let w,g;if(i.value1Position2Value2){const t=Q(l,6,h).a,e=i.pos,o=i.value1Position2Value2.yz,a=i.value1Position2Value2.x,r=i.value1Position2Value2.w,s=t.subtract(a).divide(r.subtract(a));g=e.add(o.subtract(e).multiply(s)),w=u(new m(1),s).add(u(new m(0),d(s)))}else g=i.pos,w=new m(0);const x=s.z,V=F(i.bitset,j.bitset.isStroke),z=s.w,T=F(i.bitset,j.bitset.scaleSymbolsProportionally),P=Q(l,0,h),_=c([y(F(i.bitset,j.bitset.isMapAligned),new m(1)),this.view.rotation.divide(180).multiply(Math.PI)],[!0,new m(0)]),O=new f(v(_),b(_.multiply(-1)),b(_),v(_)).multiply(P.xy),I=P.z.subtract(_).subtract(t.multiply(C)),M=P.w,D=F(i.bitset,j.bitset.isSDF),A=W(this,o,new m(p)).divide(new m(p));return{baseSize:n,animationPointer:l,strokeWidth:x,isOutline:V,unscaledDistanceToPx:z,scaleSymbolsProportionally:T,isSDF:D,position:this._getScreenPosition({id:o,pos:g,offset:a,referenceSize:p,translation:O,rotation:I,scale:M,vvScale:A}),evalParams:h,vvScale:A,scale:M,clip:w}}_getScreenPosition(i){const{pos:t,translation:e,rotation:o,scale:a,offset:r,id:s,vvScale:l}=i,n=q(this,s).multiply(Math.PI/180),p=e.x.multiply(4/3),u=e.y.multiply(-1).multiply(4/3),c=b(n),y=v(n),f=y.multiply(p).add(d(c).multiply(u)),w=c.multiply(p).add(y.multiply(u)),g=b(o.subtract(n)),x=v(o.subtract(n)),V=new m(0),z=new m(1),{pixelRatio:T}=this.animationInfo,P=new S(z,V,V,V,z,V,f.multiply(T),w.multiply(T),z),j=new S(x,g.multiply(-1),V,g,x,V,0,0,z),_=a.multiply(l).multiply(T).multiply(4/3),O=j.multiply(_),I=this.animationInfo.toScreen.multiply(new h(t,1)),C=P.multiply(I).xy,M=O.multiply(new h(r,0)).xy;return C.add(M)}_clip(i,e){let o=super.clip(i,e);const a=w(this._getLocalTimeOrigin(i),new m(0));return t.forceGlobalTimeOrigin||(o=o.add(c([a,()=>new m(2)],[!0,()=>new m(0)]))),o}_getLocalTimeOrigin(i){return this.getLocalTimeOrigin(i)}_toNdc(i){return this.animationInfo.toNdc.multiply(new h(i,1)).xy}_getEvalParams(i,t,e){const{globalTime:o,animationTextureSize:a}=this.animationInfo;return{globalTime:o,localTimeOrigin:this._getLocalTimeOrigin(i.id),animationTextureSize:a,animationTexture:this.animationTexture,pixelDimensions:t,lineLength:e}}_getColor(i,t){return g(y(t.isSDF,new m(1)),this._getSDFColor(i,t),this._getSpriteColor(i,t))}_getSpriteColor(i,t){return x(this.mosaicTexture,i).multiply(t.color)}_getSDFColor(i,t){const e=x(this.mosaicTexture,i),o=new m(.5).subtract(L(e)).multiply(t.distanceToPx).multiply(M),a=V(new m(.5).subtract(o),new m(0),new m(1)),r=t.color.multiply(a),s=t.outlineSize.multiply(.5),l=z(o).subtract(s),n=V(new m(.5).subtract(l),new m(0),new m(1)),p=t.outlineColor.multiply(n);return new m(1).subtract(p.a).multiply(r).add(p)}}function Q(i,t,o){const a=i.add(new l(t,0)),r=x(o.animationTexture,a.add(.5).divide(o.animationTextureSize)).xy;return i=i.add(r),T({animationPointer:i,...o},n,null,i=>{const{out:t}=i;if(!t)throw new Error("out is null");return e({...i,out:t})})}i([a(A)],K.prototype,"mosaicInfo",void 0),i([a(P)],K.prototype,"animationInfo",void 0),i([a(D)],K.prototype,"localTileOffset",void 0),i([r(p)],K.prototype,"mosaicTexture",void 0),i([s(R)],K.prototype,"visualVariableColor",void 0),i([s(k)],K.prototype,"visualVariableOpacity",void 0),i([s(E)],K.prototype,"visualVariableSizeMinMaxValue",void 0),i([s(B)],K.prototype,"visualVariableSizeScaleStops",void 0),i([s(G)],K.prototype,"visualVariableSizeStops",void 0),i([s(N)],K.prototype,"visualVariableSizeUnitValue",void 0),i([s(U)],K.prototype,"visualVariableRotation",void 0),i([r(p)],K.prototype,"animationTexture",void 0);export{J as AAnimatedFragmentInput,K as AAnimatedShader,H as AAnimatedVertexInput,Q as getValue};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{input as s}from"../../GraphShaderModule.js";import{Float as i,sin as r,cos as o,Vec3 as l,Vec4 as n,mix as a,ifElse as m,greaterThan as u}from"../../graph/glsl.js";import{AAnimatedPolyShader as p,PolyVertexInput as h,PolyHittestVertexInput as c,PolyFragmentInput as d}from"./AAnimatedPolyShader.js";import{getPatternMatrix as y}from"../shaders/ComplexFillShader.js";import{c256ToRad as f,noHit as g,trueHit as x}from"../shaders/constants.js";import{isRectHittest as b,hittestFill as w,hittestScreenRect as P}from"../shaders/hittestUtils.js";class v extends p{constructor(){super(...arguments),this.type="AnimatedFillShader"}vertex(t,e){const{distanceToPx:s,ndc:m,z:u,color:p,isOutline:h,strokeWidth:c,isSDF:d,scale:g,scaleSymbolsProportionally:x}=this._vertexPoly(t),b=this.view.requiredZoomFactor,w=t.sizing.xy,P=w.multiply(b),v=t.angle?t.angle.multiply(f):new i(0),S=r(v),j=o(v),F=y(t.id,P,S,j,t.bitset),O=this.localTileOffset.getPatternOffsetAtTileOrigin(w,S,j),T=b.multiply(t.offset.subtract(O)).divide(P),q=new l(t.pos,1),A=F.multiply(q).xy.subtract(T),R=t.tlbr.divide(this.mosaicInfo.size.xyxy);return{glPosition:new n(m,u,1),tlbr:R,uv:A,color:p.multiply(new i(1).subtract(h)),outlineColor:p.multiply(h),distanceToPx:s,strokeWidth:c.multiply(a(new i(1),g,x)),isOutline:h,isSDF:d,...this.maybeRunHittest(t,e,{})}}fragment(t){const e=this._fragmentPoly(t);return this.getFragmentOutput(e,t)}hittest(t,e,s){const{pos0:r,pos1:o,pos2:l}=this.computeHittestTriangle(t,e,null),n=b(this.hittestRequest);return m(n,()=>{const{tlbr:t}=this.hittestRequest;return P(r,o,l,t)},()=>{const s=w(this,t,e);return m(u(s,this.hittestRequest.distance),new i(g),new i(x))})}}t([e(0,s(h)),e(1,s(c))],v.prototype,"vertex",null),t([e(0,s(d))],v.prototype,"fragment",null);export{v as AnimatedFillShader};
2
+ import{__decorate as t,__param as e}from"tslib";import{input as s}from"../../GraphShaderModule.js";import{Float as i,sin as r,cos as o,Vec3 as l,Vec4 as n,mix as a,ifElse as m,greaterThan as u}from"../../graph/glsl.js";import{PolyVertexInput as p,PolyHittestVertexInput as h,PolyFragmentInput as c,AAnimatedPolyShader as d}from"./AAnimatedPolyShader.js";import{getPatternMatrix as y}from"../shaders/ComplexFillShader.js";import{c256ToRad as f,noHit as g,trueHit as x}from"../shaders/constants.js";import{isRectHittest as b,hittestFill as w,hittestScreenRect as P}from"../shaders/hittestUtils.js";class v extends d{constructor(){super(...arguments),this.type="AnimatedFillShader"}vertex(t,e){const{distanceToPx:s,ndc:m,z:u,color:p,isOutline:h,strokeWidth:c,isSDF:d,scale:g,scaleSymbolsProportionally:x}=this._vertexPoly(t),b=this.view.requiredZoomFactor,w=t.sizing.xy,P=w.multiply(b),v=t.angle?t.angle.multiply(f):new i(0),S=r(v),j=o(v),F=y(t.id,P,S,j,t.bitset),O=this.localTileOffset.getPatternOffsetAtTileOrigin(w,S,j),T=b.multiply(t.offset.subtract(O)).divide(P),q=new l(t.pos,1),A=F.multiply(q).xy.subtract(T),R=t.tlbr.divide(this.mosaicInfo.size.xyxy);return{glPosition:new n(m,u,1),tlbr:R,uv:A,color:p.multiply(new i(1).subtract(h)),outlineColor:p.multiply(h),distanceToPx:s,strokeWidth:c.multiply(a(new i(1),g,x)),isOutline:h,isSDF:d,...this.maybeRunHittest(t,e,{})}}fragment(t){const e=this._fragmentPoly(t);return this.getFragmentOutput(e,t)}hittest(t,e,s){const{pos0:r,pos1:o,pos2:l}=this.computeHittestTriangle(t,e,null),n=b(this.hittestRequest);return m(n,()=>{const{tlbr:t}=this.hittestRequest;return P(r,o,l,t)},()=>{const s=w(this,t,e);return m(u(s,this.hittestRequest.distance),new i(g),new i(x))})}}t([e(0,s(p)),e(1,s(h))],v.prototype,"vertex",null),t([e(0,s(c))],v.prototype,"fragment",null);export{v as AnimatedFillShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as i}from"tslib";import{location as e,uniform as s,input as o}from"../../GraphShaderModule.js";import{dot as l,Vec2 as r,Float as a,max as n,Vec4 as d,mix as m,length as p,clamp as u,step as c,min as h,ifElse as y,greaterThan as f}from"../../graph/glsl.js";import{AAnimatedPolyShader as v,PolyHittestVertexInput as b,PolyVertexInput as g,PolyFragmentInput as x}from"./AAnimatedPolyShader.js";import{getValue as S}from"./AAnimatedShader.js";import{noHit as w,trueHit as P}from"../shaders/constants.js";import{isRectHittest as j,distPointSegment as z,hittestScreenRect as A}from"../shaders/hittestUtils.js";import{getLineAntialiasing as D,getLineThinFactor as R,AntialiasingControls as C}from"../shaders/LineShader.js";class F extends g{}t([e(10,a)],F.prototype,"accumulatedDistance",void 0),t([e(11,r)],F.prototype,"normal",void 0),t([e(12,r)],F.prototype,"segmentDirection",void 0);class T extends x{}class W extends v{constructor(){super(...arguments),this.type="AnimatedLineShader"}vertex(t,i){const{animationPointerAndBaseSizeAndReferenceSize:e}=t,s=e.xy,{distanceToPx:o,ndc:p,z:u,color:c,isOutline:h,strokeWidth:y,isSDF:f,baseSize:v,scale:b,scaleSymbolsProportionally:g,evalParams:x}=this._vertexPoly(t),w=t.sizing.xy,P=w.x.multiply(v).divide(w.y),j=S(s,6,x).a,z=t.accumulatedDistance.subtract(j),{normal:A}=t,D=t.normal.y,R=z.divide(this.view.displayZoomFactor).add(l(t.segmentDirection,t.offset)).divide(P),C=D.add(1).divide(2),F=new r(R,C),T=t.tlbr.divide(this.mosaicInfo.size.xyxy),W=v.divide(2),q=new a(.5).multiply(this.antialiasingControls.antialiasing),O=n(W.add(q),new a(.45)).add(new a(.1).multiply(q));return{glPosition:new d(p,u,1),tlbr:T,uv:F,color:c.multiply(new a(1).subtract(h)),outlineColor:c.multiply(h),distanceToPx:o,strokeWidth:y.multiply(m(new a(1),b,g)),isOutline:h,isSDF:f,halfWidth:O,normal:A,...this.maybeRunHittest(t,i,O)}}fragment(t){const i=this._fragmentPoly(t),e=D(t,this.antialiasingControls.blur),{halfWidth:s,normal:o}=t,l=R(s),r=p(o).multiply(s),n=u(l.multiply(s.subtract(r)).divide(l.subtract(new a(1))),new a(0),new a(1));return this.getFragmentOutput(i.multiply(n).multiply(e),t)}hittest(t,i,e){const{pos0:s,pos1:o,pos2:l}=this.computeHittestTriangle(t,i,null),r=j(this.hittestRequest),{distance:n,smallSymbolDistance:d,smallSymbolSizeThreshold:m,tlbr:p}=this.hittestRequest,u=c(e,m.multiply(.5)).multiply(n.subtract(d)),v=this.hittestRequest.position,b=h(z(v,s,o),z(v,s,l)).subtract(e).add(u);return y(r,A(s,o,l,p),y(f(b,n),new a(w),new a(P)))}}t([s(C)],W.prototype,"antialiasingControls",void 0),t([i(0,o(F)),i(1,o(b))],W.prototype,"vertex",null),t([i(0,o(T))],W.prototype,"fragment",null);export{W as AnimatedLineShader};
2
+ import{__decorate as t,__param as i}from"tslib";import{location as e,uniform as s,input as o}from"../../GraphShaderModule.js";import{Float as l,Vec2 as r,dot as a,max as n,Vec4 as d,mix as m,length as p,clamp as u,step as c,min as h,ifElse as y,greaterThan as f}from"../../graph/glsl.js";import{PolyHittestVertexInput as v,PolyVertexInput as b,AAnimatedPolyShader as g,PolyFragmentInput as x}from"./AAnimatedPolyShader.js";import{getValue as S}from"./AAnimatedShader.js";import{noHit as w,trueHit as P}from"../shaders/constants.js";import{isRectHittest as j,distPointSegment as z,hittestScreenRect as A}from"../shaders/hittestUtils.js";import{AntialiasingControls as D,getLineAntialiasing as R,getLineThinFactor as C}from"../shaders/LineShader.js";class F extends b{}t([e(10,l)],F.prototype,"accumulatedDistance",void 0),t([e(11,r)],F.prototype,"normal",void 0),t([e(12,r)],F.prototype,"segmentDirection",void 0);class T extends x{}class W extends g{constructor(){super(...arguments),this.type="AnimatedLineShader"}vertex(t,i){const{animationPointerAndBaseSizeAndReferenceSize:e}=t,s=e.xy,{distanceToPx:o,ndc:p,z:u,color:c,isOutline:h,strokeWidth:y,isSDF:f,baseSize:v,scale:b,scaleSymbolsProportionally:g,evalParams:x}=this._vertexPoly(t),w=t.sizing.xy,P=w.x.multiply(v).divide(w.y),j=S(s,6,x).a,z=t.accumulatedDistance.subtract(j),{normal:A}=t,D=t.normal.y,R=z.divide(this.view.displayZoomFactor).add(a(t.segmentDirection,t.offset)).divide(P),C=D.add(1).divide(2),F=new r(R,C),T=t.tlbr.divide(this.mosaicInfo.size.xyxy),W=v.divide(2),q=new l(.5).multiply(this.antialiasingControls.antialiasing),O=n(W.add(q),new l(.45)).add(new l(.1).multiply(q));return{glPosition:new d(p,u,1),tlbr:T,uv:F,color:c.multiply(new l(1).subtract(h)),outlineColor:c.multiply(h),distanceToPx:o,strokeWidth:y.multiply(m(new l(1),b,g)),isOutline:h,isSDF:f,halfWidth:O,normal:A,...this.maybeRunHittest(t,i,O)}}fragment(t){const i=this._fragmentPoly(t),e=R(t,this.antialiasingControls.blur),{halfWidth:s,normal:o}=t,r=C(s),a=p(o).multiply(s),n=u(r.multiply(s.subtract(a)).divide(r.subtract(new l(1))),new l(0),new l(1));return this.getFragmentOutput(i.multiply(n).multiply(e),t)}hittest(t,i,e){const{pos0:s,pos1:o,pos2:r}=this.computeHittestTriangle(t,i,null),a=j(this.hittestRequest),{distance:n,smallSymbolDistance:d,smallSymbolSizeThreshold:m,tlbr:p}=this.hittestRequest,u=c(e,m.multiply(.5)).multiply(n.subtract(d)),v=this.hittestRequest.position,b=h(z(v,s,o),z(v,s,r)).subtract(e).add(u);return y(a,A(s,o,r,p),y(f(b,n),new l(w),new l(P)))}}t([s(D)],W.prototype,"antialiasingControls",void 0),t([i(0,o(F)),i(1,o(v))],W.prototype,"vertex",null),t([i(0,o(T))],W.prototype,"fragment",null);export{W as AnimatedLineShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{animationDebugFlags as i}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{location as s,input as o,ComputeVertexInput as l}from"../../GraphShaderModule.js";import{Float as r,Vec4 as a,ifElse as n,or as d,Bool as u,mix as m,Mat3 as p,lessThan as h,greaterThan as c,Vec3 as x,distance as y,Vec2 as f,negate as w,step as g}from"../../graph/glsl.js";import{AAnimatedShader as v,getValue as b,AAnimatedVertexInput as S,AAnimatedFragmentInput as _}from"./AAnimatedShader.js";import{MarkerConstants as V}from"../markers/markerConstants.js";import{noHit as z,trueHit as C}from"../shaders/constants.js";import{isRectHittest as P,hittestScreenRect as N,distPointTriangle as R,xyToBarycentric as k,inTriangle as M,failHittest as q}from"../shaders/hittestUtils.js";import{getBitBool as D}from"../shaders/utils.js";import{getVisualVariableColor as j,getVisualVariableOpacity as F}from"../shaders/vvUtils.js";class T extends S{}t([s(9,f)],T.prototype,"uv",void 0),t([s(10,r)],T.prototype,"angle",void 0);class U extends l{}t([s(11,f)],U.prototype,"offsetNextVertex1",void 0),t([s(12,f)],U.prototype,"offsetNextVertex2",void 0),t([s(13,f)],U.prototype,"textureUVNextVertex1",void 0),t([s(14,f)],U.prototype,"textureUVNextVertex2",void 0);class A extends _{}function I(t,e,i,s){return e.multiply(t.x).add(i.multiply(t.y)).add(s.multiply(t.z))}class L extends v{constructor(){super(...arguments),this.type="AnimatedMarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],uv:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=t.uv.divide(this.mosaicInfo.size),{position:s,animationPointer:o,evalParams:l,isOutline:h,unscaledDistanceToPx:c,vvScale:x,strokeWidth:y,scaleSymbolsProportionally:f,scale:w,isSDF:g,baseSize:v,clip:S}=this._vertexPreamble(t,t.angle,t.lineLength||new r(0)),_=this._toNdc(s);let z=b(o,1,l);z=new a(z.rgb.multiply(z.a),z.a);let C=n(D(t.bitset,V.bitset.colorLocked),z,b(o,2,l));C=new a(C.rgb.multiply(C.a),C.a);let P=b(o,3,l);P=new a(P.rgb.multiply(P.a),P.a);const N=b(o,4,l).a,R=b(o,5,l).a,k=j(this,t.id,z,d(D(t.bitset,V.bitset.colorLocked),new u(h))),M=m(k,C,P),q=F(this,t.id),T=m(q,N,R),U=M.multiply(T),A=this.clip(t.id,t.zoomRange).add(S.multiply(2)),I=c.multiply(x);return{glPosition:new a(_,A,1),uv:i,color:U.multiply(new r(1).subtract(h)),outlineColor:U.multiply(h),distanceToPx:I,strokeWidth:y.multiply(m(new r(1),w,f)),isOutline:h,isSDF:g,...this.maybeRunHittest(t,e,{pos:t.pos,size:v,sizeCorrection:new r(1),isMapAligned:new r(1),vvRotationMat3:new p(1,0,0,0,1,0,0,0,1),placementMat3:new p(1,0,0,0,1,0,0,0,1),outlineSize:new r(1),distanceToPx:I,isSDF:g})}}fragment(t){let e=this._getColor(t.uv,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth});return i.spotlightAnimatedSymbols&&(e=e.add(new a(0,.3,0,.3))),this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:s,pos1:o,pos2:l}=this.computeHittestTriangle(t,e,i),a=P(this.hittestRequest);return n(a,()=>{const{tlbr:t}=this.hittestRequest;return N(s,o,l,t)},()=>{const s=n(h(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i));return n(c(s,this.hittestRequest.distance),new r(z),new r(C))})}_hittestSmallMarker(t,e,i){const{position:s,distance:o,smallSymbolDistance:l}=this.hittestRequest,r=o.subtract(l),{viewMat3:a,tileMat3:n}=this.view,d=a.multiply(n).multiply(new x(i.pos,1)).xy,u=i.size.multiply(.5);return y(d,s).subtract(u).add(r)}_hittestMarker(t,e,i){const s=this._vertexPreamble({...t},t.angle,new r(0)).position,o=this._vertexPreamble({...t,offset:e.offsetNextVertex1},t.angle,new r(0)).position,l=this._vertexPreamble({...t,offset:e.offsetNextVertex2},t.angle,new r(0)).position,a=this.hittestRequest.position,d=this.hittestRequest.distance,u=R(a,s,o,l);return n(c(u,d),u,this._hittestSamples(s,o,l,t,e,i))}_hittestSamples(t,e,i,s,o,l){const{outlineSize:n,isSDF:d,distanceToPx:u}=l,m=this.hittestRequest.position,p=this.hittestRequest.distance,h=k(m.add(new f(w(p),w(p))),t,e,i),c=k(m.add(new f(0,w(p))),t,e,i),x=k(m.add(new f(p,w(p))),t,e,i),y=k(m.add(new f(w(p),0)),t,e,i),v=k(m,t,e,i),b=k(m.add(new f(p,0)),t,e,i),S=k(m.add(new f(w(p),p)),t,e,i),_=k(m.add(new f(0,p)),t,e,i),V=k(m.add(new f(p,p)),t,e,i),z=s.uv.divide(this.mosaicInfo.size),C=o.textureUVNextVertex1.divide(this.mosaicInfo.size),P=o.textureUVNextVertex2.divide(this.mosaicInfo.size),N={color:new a(1,1,1,1),outlineSize:n,outlineColor:new a(1,1,1,1),isSDF:d,distanceToPx:u};let R=new r(0);return R=R.add(M(h).multiply(this._getColor(I(h,z,C,P),N).a)),R=R.add(M(c).multiply(this._getColor(I(c,z,C,P),N).a)),R=R.add(M(x).multiply(this._getColor(I(x,z,C,P),N).a)),R=R.add(M(y).multiply(this._getColor(I(y,z,C,P),N).a)),R=R.add(M(v).multiply(this._getColor(I(v,z,C,P),N).a)),R=R.add(M(b).multiply(this._getColor(I(b,z,C,P),N).a)),R=R.add(M(S).multiply(this._getColor(I(S,z,C,P),N).a)),R=R.add(M(_).multiply(this._getColor(I(_,z,C,P),N).a)),R=R.add(M(V).multiply(this._getColor(I(V,z,C,P),N).a)),g(R,new r(.05)).multiply(q(this.hittestRequest))}}t([e(0,o(T)),e(1,o(U))],L.prototype,"vertex",null),t([e(0,o(A))],L.prototype,"fragment",null);export{A as AnimatedMarkerFragmentInput,L as AnimatedMarkerShader,T as AnimatedMarkerVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{animationDebugFlags as i}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{location as s,input as o,ComputeVertexInput as l}from"../../GraphShaderModule.js";import{Vec2 as r,Float as a,Vec4 as n,ifElse as d,or as u,Bool as m,mix as p,Mat3 as h,lessThan as c,greaterThan as x,Vec3 as y,distance as f,negate as w,step as g}from"../../graph/glsl.js";import{AAnimatedVertexInput as v,AAnimatedShader as b,getValue as S,AAnimatedFragmentInput as _}from"./AAnimatedShader.js";import{MarkerConstants as V}from"../markers/markerConstants.js";import{noHit as z,trueHit as C}from"../shaders/constants.js";import{isRectHittest as P,hittestScreenRect as N,distPointTriangle as R,xyToBarycentric as k,inTriangle as M,failHittest as q}from"../shaders/hittestUtils.js";import{getBitBool as D}from"../shaders/utils.js";import{getVisualVariableColor as j,getVisualVariableOpacity as F}from"../shaders/vvUtils.js";class T extends v{}t([s(9,r)],T.prototype,"uv",void 0),t([s(10,a)],T.prototype,"angle",void 0);class U extends l{}t([s(11,r)],U.prototype,"offsetNextVertex1",void 0),t([s(12,r)],U.prototype,"offsetNextVertex2",void 0),t([s(13,r)],U.prototype,"textureUVNextVertex1",void 0),t([s(14,r)],U.prototype,"textureUVNextVertex2",void 0);class A extends _{}function I(t,e,i,s){return e.multiply(t.x).add(i.multiply(t.y)).add(s.multiply(t.z))}class L extends b{constructor(){super(...arguments),this.type="AnimatedMarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],uv:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=t.uv.divide(this.mosaicInfo.size),{position:s,animationPointer:o,evalParams:l,isOutline:r,unscaledDistanceToPx:c,vvScale:x,strokeWidth:y,scaleSymbolsProportionally:f,scale:w,isSDF:g,baseSize:v,clip:b}=this._vertexPreamble(t,t.angle,t.lineLength||new a(0)),_=this._toNdc(s);let z=S(o,1,l);z=new n(z.rgb.multiply(z.a),z.a);let C=d(D(t.bitset,V.bitset.colorLocked),z,S(o,2,l));C=new n(C.rgb.multiply(C.a),C.a);let P=S(o,3,l);P=new n(P.rgb.multiply(P.a),P.a);const N=S(o,4,l).a,R=S(o,5,l).a,k=j(this,t.id,z,u(D(t.bitset,V.bitset.colorLocked),new m(r))),M=p(k,C,P),q=F(this,t.id),T=p(q,N,R),U=M.multiply(T),A=this.clip(t.id,t.zoomRange).add(b.multiply(2)),I=c.multiply(x);return{glPosition:new n(_,A,1),uv:i,color:U.multiply(new a(1).subtract(r)),outlineColor:U.multiply(r),distanceToPx:I,strokeWidth:y.multiply(p(new a(1),w,f)),isOutline:r,isSDF:g,...this.maybeRunHittest(t,e,{pos:t.pos,size:v,sizeCorrection:new a(1),isMapAligned:new a(1),vvRotationMat3:new h(1,0,0,0,1,0,0,0,1),placementMat3:new h(1,0,0,0,1,0,0,0,1),outlineSize:new a(1),distanceToPx:I,isSDF:g})}}fragment(t){let e=this._getColor(t.uv,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth});return i.spotlightAnimatedSymbols&&(e=e.add(new n(0,.3,0,.3))),this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:s,pos1:o,pos2:l}=this.computeHittestTriangle(t,e,i),r=P(this.hittestRequest);return d(r,()=>{const{tlbr:t}=this.hittestRequest;return N(s,o,l,t)},()=>{const s=d(c(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i));return d(x(s,this.hittestRequest.distance),new a(z),new a(C))})}_hittestSmallMarker(t,e,i){const{position:s,distance:o,smallSymbolDistance:l}=this.hittestRequest,r=o.subtract(l),{viewMat3:a,tileMat3:n}=this.view,d=a.multiply(n).multiply(new y(i.pos,1)).xy,u=i.size.multiply(.5);return f(d,s).subtract(u).add(r)}_hittestMarker(t,e,i){const s=this._vertexPreamble({...t},t.angle,new a(0)).position,o=this._vertexPreamble({...t,offset:e.offsetNextVertex1},t.angle,new a(0)).position,l=this._vertexPreamble({...t,offset:e.offsetNextVertex2},t.angle,new a(0)).position,r=this.hittestRequest.position,n=this.hittestRequest.distance,u=R(r,s,o,l);return d(x(u,n),u,this._hittestSamples(s,o,l,t,e,i))}_hittestSamples(t,e,i,s,o,l){const{outlineSize:d,isSDF:u,distanceToPx:m}=l,p=this.hittestRequest.position,h=this.hittestRequest.distance,c=k(p.add(new r(w(h),w(h))),t,e,i),x=k(p.add(new r(0,w(h))),t,e,i),y=k(p.add(new r(h,w(h))),t,e,i),f=k(p.add(new r(w(h),0)),t,e,i),v=k(p,t,e,i),b=k(p.add(new r(h,0)),t,e,i),S=k(p.add(new r(w(h),h)),t,e,i),_=k(p.add(new r(0,h)),t,e,i),V=k(p.add(new r(h,h)),t,e,i),z=s.uv.divide(this.mosaicInfo.size),C=o.textureUVNextVertex1.divide(this.mosaicInfo.size),P=o.textureUVNextVertex2.divide(this.mosaicInfo.size),N={color:new n(1,1,1,1),outlineSize:d,outlineColor:new n(1,1,1,1),isSDF:u,distanceToPx:m};let R=new a(0);return R=R.add(M(c).multiply(this._getColor(I(c,z,C,P),N).a)),R=R.add(M(x).multiply(this._getColor(I(x,z,C,P),N).a)),R=R.add(M(y).multiply(this._getColor(I(y,z,C,P),N).a)),R=R.add(M(f).multiply(this._getColor(I(f,z,C,P),N).a)),R=R.add(M(v).multiply(this._getColor(I(v,z,C,P),N).a)),R=R.add(M(b).multiply(this._getColor(I(b,z,C,P),N).a)),R=R.add(M(S).multiply(this._getColor(I(S,z,C,P),N).a)),R=R.add(M(_).multiply(this._getColor(I(_,z,C,P),N).a)),R=R.add(M(V).multiply(this._getColor(I(V,z,C,P),N).a)),g(R,new a(.05)).multiply(q(this.hittestRequest))}}t([e(0,o(T)),e(1,o(U))],L.prototype,"vertex",null),t([e(0,o(A))],L.prototype,"fragment",null);export{A as AnimatedMarkerFragmentInput,L as AnimatedMarkerShader,T as AnimatedMarkerVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as o}from"tslib";import{tileSize as e}from"../../../definitions.js";import{GraphShaderModule as i,FragmentOutput as r,location as s,uniform as d,texture as n,input as p,VertexInput as a,UniformGroup as l}from"../../GraphShaderModule.js";import{Mat3 as c,Vec3 as m,texture2D as y,max as w,Float as v,step as u,Vec4 as h,length as x,smoothstep as f,Vec2 as g,Sampler2D as S}from"../../graph/glsl.js";import{FeatureFragmentInput as j}from"../shaders/AFeatureShader.js";import{ViewInfo as z}from"../shaders/ViewInfo.js";class P extends a{}t([s(0,g)],P.prototype,"pos",void 0);class R extends j{}class b extends l{}t([d(v)],b.prototype,"dotSize",void 0);class F extends l{}t([d(v)],F.prototype,"pixelRatio",void 0),t([d(v)],F.prototype,"tileZoomFactor",void 0);const C=1e-6;class D extends i{constructor(){super(...arguments),this.type="DotDensityPointShader"}vertex(t){const o=new c(1,0,0,0,-1,0,0,1,1).multiply(new m(t.pos.xy.divide(e),1)),i=y(this.drawLocations,o.xy),r=w(this.instance.dotSize.divide(2),new v(1));let s=new v(0);s=s.add(u(i.a,new v(C)).multiply(2));let d=r.add(this.instance.dotSize);const n=this.view.displayViewScreenMat3.multiply(new m(t.pos.add(.5),1)),p=new h(n.xy,s,1),a=this.instance.dotSize.divide(d),l=new v(-1).divide(r.divide(d));return d=d.multiply(this.draw.pixelRatio.multiply(this.draw.tileZoomFactor)),{glPosition:p,glPointSize:d,color:i,ratio:a,invEdgeRatio:l}}fragment(t){const o=x(t.glPointCoord.subtract(.5)).multiply(2),e=f(new v(0),new v(1),t.invEdgeRatio.multiply(o.subtract(t.ratio)).add(1)),i=new r;return i.fragColor=t.color.multiply(e),i}}t([d(b)],D.prototype,"instance",void 0),t([d(F)],D.prototype,"draw",void 0),t([d(z)],D.prototype,"view",void 0),t([n(S)],D.prototype,"drawLocations",void 0),t([o(0,p(P))],D.prototype,"vertex",null),t([o(0,p(R))],D.prototype,"fragment",null);export{F as DotDensityPointDrawUniforms,R as DotDensityPointFragmentInput,b as DotDensityPointInstanceUniforms,D as DotDensityPointShader,P as DotDensityPointVertexInput};
2
+ import{__decorate as t,__param as o}from"tslib";import{tileSize as e}from"../../../definitions.js";import{location as i,uniform as r,texture as s,input as d,VertexInput as n,UniformGroup as p,GraphShaderModule as a,FragmentOutput as l}from"../../GraphShaderModule.js";import{Vec2 as c,Float as m,Sampler2D as y,Mat3 as w,Vec3 as v,texture2D as u,max as h,step as x,Vec4 as f,length as g,smoothstep as S}from"../../graph/glsl.js";import{FeatureFragmentInput as j}from"../shaders/AFeatureShader.js";import{ViewInfo as z}from"../shaders/ViewInfo.js";class P extends n{}t([i(0,c)],P.prototype,"pos",void 0);class R extends j{}class b extends p{}t([r(m)],b.prototype,"dotSize",void 0);class F extends p{}t([r(m)],F.prototype,"pixelRatio",void 0),t([r(m)],F.prototype,"tileZoomFactor",void 0);const C=1e-6;class D extends a{constructor(){super(...arguments),this.type="DotDensityPointShader"}vertex(t){const o=new w(1,0,0,0,-1,0,0,1,1).multiply(new v(t.pos.xy.divide(e),1)),i=u(this.drawLocations,o.xy),r=h(this.instance.dotSize.divide(2),new m(1));let s=new m(0);s=s.add(x(i.a,new m(C)).multiply(2));let d=r.add(this.instance.dotSize);const n=this.view.displayViewScreenMat3.multiply(new v(t.pos.add(.5),1)),p=new f(n.xy,s,1),a=this.instance.dotSize.divide(d),l=new m(-1).divide(r.divide(d));return d=d.multiply(this.draw.pixelRatio.multiply(this.draw.tileZoomFactor)),{glPosition:p,glPointSize:d,color:i,ratio:a,invEdgeRatio:l}}fragment(t){const o=g(t.glPointCoord.subtract(.5)).multiply(2),e=S(new m(0),new m(1),t.invEdgeRatio.multiply(o.subtract(t.ratio)).add(1)),i=new l;return i.fragColor=t.color.multiply(e),i}}t([r(b)],D.prototype,"instance",void 0),t([r(F)],D.prototype,"draw",void 0),t([r(z)],D.prototype,"view",void 0),t([s(y)],D.prototype,"drawLocations",void 0),t([o(0,d(P))],D.prototype,"vertex",null),t([o(0,d(R))],D.prototype,"fragment",null);export{F as DotDensityPointDrawUniforms,R as DotDensityPointFragmentInput,b as DotDensityPointInstanceUniforms,D as DotDensityPointShader,P as DotDensityPointVertexInput};