@arcgis/core 5.1.0-next.102 → 5.1.0-next.104

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 (681) hide show
  1. package/applications/Components/imageryUtils.d.ts +22 -1
  2. package/applications/Components/imageryUtils.js +1 -1
  3. package/arcade/Dictionary.js +1 -1
  4. package/arcade/Feature.js +1 -1
  5. package/arcade/Pixel.js +1 -1
  6. package/arcade/Voxel.js +1 -1
  7. package/arcade/arcade.js +1 -1
  8. package/arcade/arcadeAsyncRuntime.js +1 -1
  9. package/arcade/arcadeCompiler.js +1 -1
  10. package/arcade/arcadeRuntime.js +1 -1
  11. package/arcade/containerUtils.js +1 -1
  12. package/arcade/debug.js +1 -1
  13. package/arcade/deepClone.js +1 -1
  14. package/arcade/featureSetUtils.js +1 -1
  15. package/arcade/featureset/actions/GroupBy.js +1 -1
  16. package/arcade/featureset/actions/OrderBy.js +1 -1
  17. package/arcade/functions/convertdirection.js +1 -1
  18. package/arcade/functions/date.js +1 -1
  19. package/arcade/functions/feature.js +1 -1
  20. package/arcade/functions/featuresetbase.js +1 -1
  21. package/arcade/functions/featuresetgeom.js +1 -1
  22. package/arcade/functions/featuresetstats.js +1 -1
  23. package/arcade/functions/featuresetstring.js +1 -1
  24. package/arcade/functions/fieldStats.js +1 -1
  25. package/arcade/functions/geomasync.js +1 -1
  26. package/arcade/functions/geometry.js +1 -1
  27. package/arcade/functions/geomsync.js +1 -1
  28. package/arcade/functions/knowledgegraph.js +1 -1
  29. package/arcade/functions/maths.js +1 -1
  30. package/arcade/functions/stats.js +1 -1
  31. package/arcade/functions/string.js +1 -1
  32. package/arcade/functions/track.js +1 -1
  33. package/arcade/geometry/constructors.js +1 -1
  34. package/arcade/geometry/functions.js +1 -1
  35. package/arcade/geometry/operators.js +1 -1
  36. package/arcade/languageUtils.js +1 -1
  37. package/assets/esri/core/workers/RemoteClient.js +1 -1
  38. package/assets/esri/core/workers/chunks/{92e7067960549733f8e6.js → 037b36d415ae27e987f9.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{58579c53be1a44bd08d2.js → 054ae729e7cefa2c7778.js} +1 -1
  40. package/assets/esri/core/workers/chunks/069459519477bb3dc91b.js +1 -0
  41. package/assets/esri/core/workers/chunks/{4301cb9670fa7c907460.js → 0881929a4a457f94f317.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{abdf146b35e179b5b245.js → 0cb8bc6dbbbe3b212712.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{b811d62284be95f4beb6.js → 0cc74bc3772be51cabc1.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{0630ce1975c91ae362d9.js → 0e9804ece1fd2d59751b.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{545c38789267e3487dbd.js → 10491b5b106bc5ad0b2b.js} +1 -1
  46. package/assets/esri/core/workers/chunks/12053c1213465d07d2f6.js +1 -0
  47. package/assets/esri/core/workers/chunks/{ca6c128940ddbebcaaab.js → 14b7b55c42af65ffa024.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{702e8468836863abd81b.js → 15fa8b5b472131aaa68e.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{852f4cd514008fee5a55.js → 176e676879666f784599.js} +1 -1
  50. package/assets/esri/core/workers/chunks/18201119828664373165.js +1 -0
  51. package/assets/esri/core/workers/chunks/1a3426276dc82a8a80f2.js +1 -0
  52. package/assets/esri/core/workers/chunks/{ce3e51c799a80648e46d.js → 1c0e8808d14d8e6dde2c.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{e86c073f0b6d395c7a38.js → 1c83e61fd9a4f8fc8372.js} +1 -1
  54. package/assets/esri/core/workers/chunks/1cb0c4fc315bbc2bd00b.js +1 -0
  55. package/assets/esri/core/workers/chunks/{5afee66e182f79a0fc46.js → 1ff61d8a8ea060e78b83.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{4faaf61d20e20fcf6c18.js → 23119a1b1310b7dab2aa.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{031ea31bbdb7f1be791e.js → 276cb6a1cdd26d0e1444.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{fdb7851e98e8d2ba48d3.js → 286bf3be9f524bde9529.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{55ccb8ed7325efb62091.js → 29b00d07d3e1d095c590.js} +2 -2
  60. package/assets/esri/core/workers/chunks/{9d8e7839772029d83c93.js → 29bbc0d6d847b065d10e.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{1ba37706e5d5eaabcb8e.js → 2a5f6a8d282f2c391591.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{15a65aa6969c1b383ce2.js → 2f903bd3a2611e7f0946.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{b803e7b0d489bb628d72.js → 2f925a424b60b4a5e8e5.js} +1 -1
  64. package/assets/esri/core/workers/chunks/30e191d36aa95823c018.js +1 -0
  65. package/assets/esri/core/workers/chunks/{4b19acf8bde5b2e80692.js → 313a89b334e3518d30a4.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{390717f079def83a0d9c.js → 31a8bc25aa1441c70caa.js} +1 -1
  67. package/assets/esri/core/workers/chunks/31c01885ee6d70a2bde2.js +1 -0
  68. package/assets/esri/core/workers/chunks/3292b3883f203637b5a7.js +1 -0
  69. package/assets/esri/core/workers/chunks/{9bb2251ba58932f85d13.js → 33329f5d88e60b4ec568.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{8f9117d589de7caaa02d.js → 35bbd63319d8aa9f31cc.js} +1 -1
  71. package/assets/esri/core/workers/chunks/35fdd62277fd06468a29.js +2 -0
  72. package/assets/esri/core/workers/chunks/{3996149146dd1eca7cc5.js → 38d7430d2370b69334d7.js} +1 -1
  73. package/assets/esri/core/workers/chunks/3aebbed6d4fd1b993a35.js +1 -0
  74. package/assets/esri/core/workers/chunks/3f1d533efe4300d19e6a.js +1 -0
  75. package/assets/esri/core/workers/chunks/3fed503185ea1913fb84.js +1 -0
  76. package/assets/esri/core/workers/chunks/{7db09c5bf024242becfa.js → 40caf5e09e4382d81104.js} +5 -5
  77. package/assets/esri/core/workers/chunks/4213aa844900fcf95287.js +1 -0
  78. package/assets/esri/core/workers/chunks/{bc6a809a965355eb425f.js → 44636ef119c6a576470b.js} +1 -1
  79. package/assets/esri/core/workers/chunks/453c9e8d438d061e1736.js +1 -0
  80. package/assets/esri/core/workers/chunks/479e34b0abc10499bd3a.js +1 -0
  81. package/assets/esri/core/workers/chunks/{54dad475dc806a38c287.js → 48440a071a37590846ff.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{fa9ab152ea785b5e97e0.js → 4a41f98210f1da3b5041.js} +1 -1
  83. package/assets/esri/core/workers/chunks/4a65bc9091d7ea7e80df.js +1 -0
  84. package/assets/esri/core/workers/chunks/4b130db9b7b4e2e32ea4.js +1 -0
  85. package/assets/esri/core/workers/chunks/4cdf80e2e60501dd4756.js +1 -0
  86. package/assets/esri/core/workers/chunks/51edfe21d4c6ee22c83d.js +1 -0
  87. package/assets/esri/core/workers/chunks/52219561c144e5cb4442.js +1 -0
  88. package/assets/esri/core/workers/chunks/{312036c89a6a09bb06c2.js → 5570d47533efab56c732.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{5abe34bb0110694f7b42.js → 566c36032b456ec5b5d7.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{34207774bc371e95ba3c.js → 56b6b68d9459b1edea43.js} +1 -1
  91. package/assets/esri/core/workers/chunks/593772bd8b19ac664b29.js +1 -0
  92. package/assets/esri/core/workers/chunks/{10ce083b38ccfa88f766.js → 594e1f633527749d92d7.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{ad329226c8b579d0964c.js → 5a6523c903b11dea77d4.js} +1 -1
  94. package/assets/esri/core/workers/chunks/5c44638670e40e092ce3.js +1 -0
  95. package/assets/esri/core/workers/chunks/{af8bc56cf1404afc3028.js → 5d60253ea3d247cdb3d1.js} +1 -1
  96. package/assets/esri/core/workers/chunks/5dc86a3a40d16b576bb5.js +1 -0
  97. package/assets/esri/core/workers/chunks/601edefd8da4eb2eda28.js +1 -0
  98. package/assets/esri/core/workers/chunks/6182d39e2095d4460b88.js +1 -0
  99. package/assets/esri/core/workers/chunks/{c798a40418e7ff38042a.js → 63513e706fe55a1def15.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{d8d338665fe00494c826.js → 660713adb5a845dfa2ef.js} +1 -1
  101. package/assets/esri/core/workers/chunks/694f9571e2723d3d4b02.js +1 -0
  102. package/assets/esri/core/workers/chunks/69ad5930ff6040c6c561.js +1 -0
  103. package/assets/esri/core/workers/chunks/{f563dd6cace047108b3c.js → 6b5d2df9123dfe7e00b3.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{5217d676749bca59d90f.js → 6c79e8e840c1d027fbb2.js} +1 -1
  105. package/assets/esri/core/workers/chunks/{2ce845c990bb4d701362.js → 6ca81e34854ce7ec6f6e.js} +1 -1
  106. package/assets/esri/core/workers/chunks/{11a99ee68409a641810e.js → 6f02681bcaa9bef501fc.js} +1 -1
  107. package/assets/esri/core/workers/chunks/77ac243d4dcd901c2eec.js +1 -0
  108. package/assets/esri/core/workers/chunks/78af4b7a379c40f497a7.js +1 -0
  109. package/assets/esri/core/workers/chunks/{bf706a5d065a357de51b.js → 79b64a52ff57c40c7800.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{475409026288f0981ce2.js → 7b3642195d6d3ea9b830.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{82b2acc6f181927de89c.js → 7bc746ea17f4e336e0b0.js} +1 -1
  112. package/assets/esri/core/workers/chunks/{19fcc74d34cbbaa56a41.js → 7c86099ed17f420b0489.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{6f96ce41c47cae82e687.js → 7d571845292b1b7769c2.js} +1 -1
  114. package/assets/esri/core/workers/chunks/7dafe608c224b9d48ffa.js +1 -0
  115. package/assets/esri/core/workers/chunks/7e203e947846d40f897e.js +1 -0
  116. package/assets/esri/core/workers/chunks/855bf811cd79b97c169a.js +1 -0
  117. package/assets/esri/core/workers/chunks/{7601278ebced0c0c31cf.js → 85bba0db8a7a5fc1be44.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{a318cf6bb900e0ee268c.js → 881234f25c7814de8753.js} +1 -1
  119. package/assets/esri/core/workers/chunks/895114ccd2603830960f.js +1 -0
  120. package/assets/esri/core/workers/chunks/8a68884d40f6f6de1d12.js +1 -0
  121. package/assets/esri/core/workers/chunks/{0d81409721d29d8bc276.js → 8a7682071941c35f05c1.js} +1 -1
  122. package/assets/esri/core/workers/chunks/8aac1155b8ac071cd2ad.js +1 -0
  123. package/assets/esri/core/workers/chunks/{3e2953ea62817e75d840.js → 8cbaaea72f4ca2f023be.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{1faa8a42d5a437fc40a3.js → 8e986167d4a393ee41ea.js} +1 -1
  125. package/assets/esri/core/workers/chunks/8fdd57e2a0af647f1e3e.js +1 -0
  126. package/assets/esri/core/workers/chunks/92db9a6d273ae2862883.js +1 -0
  127. package/assets/esri/core/workers/chunks/{9b23d999db902d25ba58.js → 9373daa677dc767d7cf0.js} +1 -1
  128. package/assets/esri/core/workers/chunks/{bb5512ecb5300d45d46b.js → 9542ef3f6c2bc7c14d85.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{86bff154d46f8a562887.js → 95798e3de3419fdda6ac.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{aad02c7417648d881129.js → 958617c3a9854ea04e06.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{a28124bba6b43efd74cc.js → 95df6d2ebacc43ac5fa3.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{f618ee43581e8de6ad0c.js → 970e91de5dfbbc247afb.js} +1 -1
  133. package/assets/esri/core/workers/chunks/978b7d10054e17161145.js +1 -0
  134. package/assets/esri/core/workers/chunks/{8a48a6760c33ed50b650.js → 98b4408e12684e37b395.js} +1 -1
  135. package/assets/esri/core/workers/chunks/9d70247d820085a2c190.js +1 -0
  136. package/assets/esri/core/workers/chunks/9da2f2b67837b491cfa3.js +1 -0
  137. package/assets/esri/core/workers/chunks/{edee616b6f1b5be8fd39.js → a0296e6d6c37b861c5fb.js} +1 -1
  138. package/assets/esri/core/workers/chunks/{c19e3f6027b6526de359.js → a02ebdcb802d128c8eee.js} +1 -1
  139. package/assets/esri/core/workers/chunks/a0aaf14c8f9a007d88ac.js +1 -0
  140. package/assets/esri/core/workers/chunks/{1523883460874c352e36.js → a29cd1f5c7bb4f6a5a4f.js} +1 -1
  141. package/assets/esri/core/workers/chunks/{cf826787ab8d4b27ad80.js → a53a3e5548fef65a2710.js} +1 -1
  142. package/assets/esri/core/workers/chunks/{91f9e0e3662d4bf9f163.js → a913a1c83a667ed0e711.js} +1 -1
  143. package/assets/esri/core/workers/chunks/{359465b9726edcc70c83.js → a9c9c00432ee41ec91ba.js} +1 -1
  144. package/assets/esri/core/workers/chunks/{a3a28c4887f802e8d96d.js → aa55923ca939a0d4606c.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{d3b086eb9aa8c7d09048.js → aea8e0577fb48d5c9577.js} +1 -1
  146. package/assets/esri/core/workers/chunks/af45110f07e4b5162bae.js +1 -0
  147. package/assets/esri/core/workers/chunks/{76589434d573111a8fb4.js → b09ae8eb5e97fb27382f.js} +1 -1
  148. package/assets/esri/core/workers/chunks/b0c647af49c9d563b852.js +1 -0
  149. package/assets/esri/core/workers/chunks/{a320998f18922a35899f.js → b32a13972cb3de652339.js} +1 -1
  150. package/assets/esri/core/workers/chunks/b432a5a829e309837db6.js +1 -0
  151. package/assets/esri/core/workers/chunks/{9103eb0b9078019d3a26.js → b5d0898406c7d6e6a717.js} +1 -1
  152. package/assets/esri/core/workers/chunks/b640651c7d86cfe654bf.js +1 -0
  153. package/assets/esri/core/workers/chunks/{503439246250d9e1cbd5.js → b75e090a7e935ff870a3.js} +1 -1
  154. package/assets/esri/core/workers/chunks/{c321bcda8e8893577948.js → b8dda9e55caba0e2b4c2.js} +1 -1
  155. package/assets/esri/core/workers/chunks/{59a64d72eed8c40c63cf.js → bacf0c9d5d3e084dea61.js} +1 -1
  156. package/assets/esri/core/workers/chunks/{fa38dc5010f8630a80fe.js → bb04aff0b4947408592c.js} +1 -1
  157. package/assets/esri/core/workers/chunks/{5663df3cd1dfd4b43c73.js → bff0c4094c14cb97b18f.js} +1 -1
  158. package/assets/esri/core/workers/chunks/{47dd2bfecc5c4b5f10f0.js → c0d7e4afbad0b20e2502.js} +1 -1
  159. package/assets/esri/core/workers/chunks/c13c532fe38ddc5d7ca6.js +1 -0
  160. package/assets/esri/core/workers/chunks/{cc62e5095e328bed3e01.js → c1ffb879e0283fb2815f.js} +1 -1
  161. package/assets/esri/core/workers/chunks/{9e7c84a3a2abec4d49df.js → c476f4979048e558baa7.js} +89 -76
  162. package/assets/esri/core/workers/chunks/c8b96104641cb4afd4df.js +1 -0
  163. package/assets/esri/core/workers/chunks/{19a9a555365a8363d34b.js → c91d4f1b42cfe474df52.js} +1 -1
  164. package/assets/esri/core/workers/chunks/{6ae2408ac075b974e887.js → cb26966cc205bd338c76.js} +1 -1
  165. package/assets/esri/core/workers/chunks/{c452c74ba9de218c3e57.js → cb3004998eff7c60930e.js} +1 -1
  166. package/assets/esri/core/workers/chunks/cc48354c54358777e996.js +1 -0
  167. package/assets/esri/core/workers/chunks/{b1b8a7c00ec4d998ab84.js → cc8d55d1830d7542c3f5.js} +1 -1
  168. package/assets/esri/core/workers/chunks/ce0c7070eeb723a718e7.js +1 -0
  169. package/assets/esri/core/workers/chunks/ce3b5b83237cf37ff523.js +1 -0
  170. package/assets/esri/core/workers/chunks/cf3c0bee919bb509cd4f.js +1 -0
  171. package/assets/esri/core/workers/chunks/cf9b0ba30a75c030ca92.js +1 -0
  172. package/assets/esri/core/workers/chunks/d00b9c1fd0865bf8f317.js +1 -0
  173. package/assets/esri/core/workers/chunks/{9a29b7f9e6281ee40c37.js → d4749eb8a47869477037.js} +1 -1
  174. package/assets/esri/core/workers/chunks/d5423df247be82fa085a.js +1 -0
  175. package/assets/esri/core/workers/chunks/d610f517fb3c6cb24365.js +1 -0
  176. package/assets/esri/core/workers/chunks/{47656ec12401e53f4bd3.js → d9d716bfd0aab30b6caf.js} +1 -1
  177. package/assets/esri/core/workers/chunks/da4f7d7099ba88f31f45.js +1 -0
  178. package/assets/esri/core/workers/chunks/dbb1ac41fd5da4fd849b.js +1 -0
  179. package/assets/esri/core/workers/chunks/{176dd195f77b98cb0b0f.js → dd58bc675b85b4d90afa.js} +1 -1
  180. package/assets/esri/core/workers/chunks/e2bb95d601789bbda73b.js +1 -0
  181. package/assets/esri/core/workers/chunks/{f018ad451ee072253a1e.js → e4b2120d7ee1c998b1fc.js} +1 -1
  182. package/assets/esri/core/workers/chunks/e4c350dc65aae121171d.js +1 -0
  183. package/assets/esri/core/workers/chunks/e8518bd3596543b387f8.js +1 -0
  184. package/assets/esri/core/workers/chunks/{f948e4a80a7dbda70f2e.js → e973cab79ec2541cb81b.js} +1 -1
  185. package/assets/esri/core/workers/chunks/{7d6299ab7b0db23ab961.js → eb1d6614eeac6d26bb9c.js} +1 -1
  186. package/assets/esri/core/workers/chunks/f1bb426400dac02880f1.js +1 -0
  187. package/assets/esri/core/workers/chunks/{ffcd4fca7f67e1f943f1.js → f239a8ecad8b692d5eaa.js} +1 -1
  188. package/assets/esri/core/workers/chunks/{de11ebcea2b8f9dfe65d.js → f3161c47a572194f6017.js} +1 -1
  189. package/assets/esri/core/workers/chunks/{f66262f8582909157f01.js → f37be7e517f0892014e3.js} +1 -1
  190. package/assets/esri/core/workers/chunks/{119b84f5349f90d1dd28.js → f3a9100518b044e79501.js} +1 -1
  191. package/assets/esri/core/workers/chunks/f3f984c62311c20a9db8.js +1 -0
  192. package/assets/esri/core/workers/chunks/{85e65ced3312bf9cf162.js → f7e386ece75afb6e4be5.js} +1 -1
  193. package/assets/esri/core/workers/chunks/f8b884b529064df4a30a.js +1 -0
  194. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
  195. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
  196. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
  197. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
  198. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
  199. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
  200. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
  201. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
  202. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
  203. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
  204. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
  205. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
  206. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
  207. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
  208. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
  209. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
  210. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
  211. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
  212. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
  213. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
  214. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
  215. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
  216. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
  217. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
  218. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
  219. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
  220. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
  221. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
  222. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
  223. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
  224. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
  225. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
  226. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
  227. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
  228. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
  229. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
  230. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
  231. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
  232. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
  233. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  234. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  235. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ar.json +1 -1
  236. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_bg.json +1 -1
  237. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_bs.json +1 -1
  238. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ca.json +1 -1
  239. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_cs.json +1 -1
  240. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_da.json +1 -1
  241. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_de.json +1 -1
  242. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_el.json +1 -1
  243. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_es.json +1 -1
  244. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_et.json +1 -1
  245. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fi.json +1 -1
  246. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fr.json +1 -1
  247. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_he.json +1 -1
  248. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_hr.json +1 -1
  249. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_hu.json +1 -1
  250. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_id.json +1 -1
  251. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_it.json +1 -1
  252. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ja.json +1 -1
  253. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ko.json +1 -1
  254. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_lt.json +1 -1
  255. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_lv.json +1 -1
  256. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_nl.json +1 -1
  257. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_no.json +1 -1
  258. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pl.json +1 -1
  259. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pt-BR.json +1 -1
  260. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pt-PT.json +1 -1
  261. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ro.json +1 -1
  262. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ru.json +1 -1
  263. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sk.json +1 -1
  264. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sl.json +1 -1
  265. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sr.json +1 -1
  266. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sv.json +1 -1
  267. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_th.json +1 -1
  268. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_tr.json +1 -1
  269. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_uk.json +1 -1
  270. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_vi.json +1 -1
  271. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-CN.json +1 -1
  272. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-HK.json +1 -1
  273. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-TW.json +1 -1
  274. package/chunks/AtmosphereCompositing.glsl.js +1 -1
  275. package/chunks/Bufferer-Dw9Qi4T1.js +1 -1
  276. package/chunks/Centroid-DZi-eb9F.js +1 -1
  277. package/chunks/Clouds.glsl.js +1 -1
  278. package/chunks/Compositing.glsl.js +1 -1
  279. package/chunks/CutFillComposition.glsl.js +1 -1
  280. package/chunks/CutFillDepth.glsl.js +1 -1
  281. package/chunks/CutFillMask.glsl.js +1 -1
  282. package/chunks/CutFillReduction.glsl.js +1 -1
  283. package/chunks/CutFillTargetDepth.glsl.js +1 -1
  284. package/chunks/Distance2DCalculator-CXhBP-8I.js +1 -1
  285. package/chunks/Envelope.js +1 -1
  286. package/chunks/Envelope2D.js +1 -1
  287. package/chunks/FlatGeometry.js +1 -1
  288. package/chunks/FocusAreaColor.glsl.js +1 -1
  289. package/chunks/FocusAreaMask.glsl.js +1 -1
  290. package/chunks/Fog.glsl.js +1 -1
  291. package/chunks/GaussianSplat.glsl.js +1 -1
  292. package/chunks/GaussianSplatShadow.glsl.js +1 -1
  293. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  294. package/chunks/GeodeticUtils.js +1 -1
  295. package/chunks/Geometry.js +1 -1
  296. package/chunks/GeometryCleaner-BEJM7I4l.js +1 -1
  297. package/chunks/GlobalIllumination.glsl.js +1 -1
  298. package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
  299. package/chunks/GlobalIlluminationUpscale.glsl.js +80 -65
  300. package/chunks/GlowBlur.glsl.js +1 -1
  301. package/chunks/GlowComposition.glsl.js +1 -1
  302. package/chunks/HazeCompositing.glsl.js +1 -1
  303. package/chunks/HighlightBlur.glsl.js +1 -1
  304. package/chunks/HighlightDownsample.glsl.js +1 -1
  305. package/chunks/Magnifier.glsl.js +1 -1
  306. package/chunks/MultiPathImpl.js +1 -1
  307. package/chunks/NoiseTextureAtlas.glsl.js +1 -1
  308. package/chunks/OITBlend.glsl.js +2 -2
  309. package/chunks/OITBlendEmission.glsl.js +1 -1
  310. package/chunks/OITDimOpaque.glsl.js +1 -1
  311. package/chunks/OperatorClip.js +1 -1
  312. package/chunks/OperatorCrosses.js +1 -1
  313. package/chunks/OperatorCut.js +1 -1
  314. package/chunks/OperatorDensify.js +1 -1
  315. package/chunks/OperatorGeneralize.js +1 -1
  316. package/chunks/OperatorGeodesicBuffer.js +1 -1
  317. package/chunks/OperatorGeodeticArea.js +1 -1
  318. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  319. package/chunks/OperatorGeodeticDistance.js +1 -1
  320. package/chunks/OperatorGeodeticLength.js +1 -1
  321. package/chunks/OperatorIntegrate.js +1 -1
  322. package/chunks/OperatorIntersects.js +1 -1
  323. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  324. package/chunks/OperatorOverlaps.js +1 -1
  325. package/chunks/OperatorProject.js +1 -1
  326. package/chunks/OperatorProximity.js +1 -1
  327. package/chunks/OperatorProximityGeodesic.js +1 -1
  328. package/chunks/OperatorShapePreservingDensify.js +1 -1
  329. package/chunks/OperatorShapePreservingLength.js +1 -1
  330. package/chunks/OperatorShapePreservingProject.js +1 -1
  331. package/chunks/OperatorSimplifyOGC.js +1 -1
  332. package/chunks/OperatorTouches.js +1 -1
  333. package/chunks/OperatorWithin.js +1 -1
  334. package/chunks/OverlayCompositing.glsl.js +1 -1
  335. package/chunks/Point2D.js +1 -1
  336. package/chunks/PointRenderer.glsl.js +1 -1
  337. package/chunks/ProjectionTransformation.js +1 -1
  338. package/chunks/RasterColorizer.glsl.js +1 -1
  339. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  340. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  341. package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
  342. package/chunks/SimpleAtmosphere.glsl.js +1 -1
  343. package/chunks/SpatialReference.js +1 -1
  344. package/chunks/Terrain.glsl.js +1 -1
  345. package/chunks/Texture.glsl.js +1 -1
  346. package/chunks/Transformation2D.js +1 -1
  347. package/chunks/Viewshed.glsl.js +1 -1
  348. package/chunks/aiServices.js +1 -1
  349. package/chunks/arcade.js +1 -1
  350. package/chunks/array.js +1 -1
  351. package/chunks/boundedPlane.js +1 -1
  352. package/chunks/constants.js +1 -1
  353. package/chunks/containsOperator.js +1 -1
  354. package/chunks/disjointOperator.js +1 -1
  355. package/chunks/distanceOperator.js +1 -1
  356. package/chunks/equalsOperator.js +1 -1
  357. package/chunks/languageUtils.js +1 -1
  358. package/chunks/pe.js +1 -1
  359. package/chunks/persistableUrlUtils.js +1 -1
  360. package/chunks/relateOperator.js +1 -1
  361. package/chunks/symmetricDifferenceOperator.js +1 -1
  362. package/chunks/unionOperator.js +1 -1
  363. package/chunks/vec2.js +1 -1
  364. package/chunks/vec3.js +1 -1
  365. package/chunks/vec4.js +1 -1
  366. package/config.js +1 -1
  367. package/core/accessorSupport/decorators/persistable.js +1 -1
  368. package/effects/FocusArea.js +1 -1
  369. package/geometry/coordinateFormatter.js +1 -1
  370. package/geometry/operators/extendOperator.js +1 -1
  371. package/geometry/operators/gx/geodeticUtils.js +1 -1
  372. package/geometry/operators/gx/operatorAffineTransform.js +1 -1
  373. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  374. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  375. package/geometry/operators/gx/operatorBoundary.js +1 -1
  376. package/geometry/operators/gx/operatorBuffer.js +1 -1
  377. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  378. package/geometry/operators/gx/operatorDifference.js +1 -1
  379. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  380. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  381. package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
  382. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  383. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  384. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  385. package/geometry/operators/gx/operatorIntersection.js +1 -1
  386. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  387. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  388. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  389. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  390. package/geometry/operators/gx/operatorOffset.js +1 -1
  391. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  392. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  393. package/geometry/operators/gx/operatorProject.js +1 -1
  394. package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
  395. package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
  396. package/geometry/operators/gx/operatorSimplify.js +1 -1
  397. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  398. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  399. package/geometry/operators/gx/operatorUnion.js +1 -1
  400. package/geometry/operators/isNearOperator.js +1 -1
  401. package/geometry/operators/json/containsOperator.js +1 -1
  402. package/geometry/operators/json/disjointOperator.js +1 -1
  403. package/geometry/operators/locateBetweenOperator.js +1 -1
  404. package/geometry/operators/reshapeOperator.js +1 -1
  405. package/geometry/operators/support/apiConverter.js +1 -1
  406. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  407. package/geometry/operators/support/initNoPeFactory.js +1 -1
  408. package/geometry/operators/support/jsonConverter.js +1 -1
  409. package/geometry/operators/support/projectionTransformation.js +1 -1
  410. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  411. package/geometry/operators/unionOperator.js +1 -1
  412. package/geometry/pe.js +1 -1
  413. package/geometry/support/MeshTexture.js +1 -1
  414. package/geometry/support/boundedPlane.js +1 -1
  415. package/geometry/support/buffer/math/vec3.js +1 -1
  416. package/geometry/support/buffer/math/vec4.js +1 -1
  417. package/geometry/support/buffer/utils/vec2.js +1 -1
  418. package/geometry/support/coordinateSystem.js +1 -1
  419. package/geometry/support/meshUtils/extent.js +1 -1
  420. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  421. package/geometry/support/meshUtils/projection.js +1 -1
  422. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  423. package/geometry/support/spatialReferenceUtils.js +1 -1
  424. package/geometry/support/vcsData.js +1 -1
  425. package/kernel.js +1 -1
  426. package/layers/ImageryTileLayer.js +1 -1
  427. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  428. package/layers/IntegratedMeshLayer.js +1 -1
  429. package/layers/KnowledgeGraphLayer.js +1 -1
  430. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  431. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  432. package/layers/mixins/ArcGISImageService.js +1 -1
  433. package/layers/mixins/FeatureLayerBase.d.ts +12 -0
  434. package/layers/mixins/FeatureLayerBase.js +1 -1
  435. package/layers/orientedImagery/transformations/utils.js +1 -1
  436. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  437. package/layers/raster/formats/RasterCodec.js +1 -1
  438. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  439. package/layers/support/ImageElement.js +1 -1
  440. package/layers/support/ParquetFilesData.js +1 -1
  441. package/layers/support/SceneFilter.js +1 -1
  442. package/layers/support/Sublayer.d.ts +25 -0
  443. package/layers/support/Sublayer.js +1 -1
  444. package/linkChart/LinkChartProperties.js +1 -1
  445. package/linkChart/utils.js +1 -1
  446. package/package.json +2 -2
  447. package/portal/PortalItem.js +1 -1
  448. package/renderers/UniqueValueRenderer.js +1 -1
  449. package/rest/knowledgeGraphService.js +1 -1
  450. package/support/arcadeUtils.js +1 -1
  451. package/support/persistableUrlUtils.js +1 -1
  452. package/support/revision.js +1 -1
  453. package/symbols/Symbol3D.js +1 -1
  454. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  455. package/symbols/cim/utils.js +1 -1
  456. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  457. package/symbols/support/cimSymbolUtils.js +1 -1
  458. package/symbols/support/urlUtils.js +1 -1
  459. package/symbols/support/utils.js +1 -1
  460. package/symbols/support/webStyleSymbolUtils.js +1 -1
  461. package/third-party-notices.txt +184 -0
  462. package/views/2d/ViewStateManager.js +1 -1
  463. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  464. package/views/2d/engine/webgl/RenderingDevice.js +1 -1
  465. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  466. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  467. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  468. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  469. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  470. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  471. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  472. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  473. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  474. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  475. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  476. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  477. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  478. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  479. package/views/2d/layers/features/FeatureContainer.js +1 -1
  480. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  481. package/views/3d/analysis/Slice/SliceController.js +1 -1
  482. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  483. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  484. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  485. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
  486. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  487. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  488. package/views/3d/focusAreaUtils.js +1 -1
  489. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  490. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  491. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  492. package/views/3d/layers/SceneLayerWorker.js +1 -1
  493. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  494. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  495. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  496. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  497. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  498. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  499. package/views/3d/layers/i3s/meshUtils.js +1 -1
  500. package/views/3d/state/ScreenSizePerspective.js +1 -1
  501. package/views/3d/support/ViewSlice.js +1 -1
  502. package/views/3d/terrain/OverlayRenderer.js +1 -1
  503. package/views/3d/terrain/RasterColorizer.glsl.js +1 -1
  504. package/views/3d/terrain/RasterTile.js +1 -1
  505. package/views/3d/terrain/TerrainRenderer.js +1 -1
  506. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  507. package/views/3d/webgl-engine/core/shaderLibrary/shading/GlobalIlluminationWeights.glsl.js +3 -5
  508. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
  509. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  510. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  511. package/views/3d/webgl-engine/effects/atmosphere/SimpleAtmosphere.glsl.js +1 -1
  512. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  513. package/views/3d/webgl-engine/effects/clouds/Clouds.glsl.js +1 -1
  514. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  515. package/views/3d/webgl-engine/effects/clouds/CloudsTechnique.js +1 -1
  516. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.glsl.js +1 -1
  517. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
  518. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlasTechnique.js +1 -1
  519. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColor.glsl.js +1 -1
  520. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  521. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  522. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.glsl.js +1 -1
  523. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  524. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  525. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  526. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  527. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  528. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  529. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  530. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
  531. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlurTechnique.js +1 -1
  532. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechnique.js +1 -1
  533. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  534. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscale.glsl.js +1 -1
  535. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscaleTechnique.js +1 -1
  536. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  537. package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
  538. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +1 -1
  539. package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
  540. package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +1 -1
  541. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  542. package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
  543. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  544. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  545. package/views/3d/webgl-engine/effects/highlight/HighlightBlur.glsl.js +1 -1
  546. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  547. package/views/3d/webgl-engine/effects/highlight/HighlightDownsample.glsl.js +1 -1
  548. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  549. package/views/3d/webgl-engine/effects/magnifier/Magnifier.glsl.js +1 -1
  550. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  551. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  552. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
  553. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  554. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  555. package/views/3d/webgl-engine/effects/transparency/OITDimOpaque.glsl.js +1 -1
  556. package/views/3d/webgl-engine/effects/transparency/OITDimOpaqueTechnique.js +1 -1
  557. package/views/3d/webgl-engine/lib/Compositor.js +1 -1
  558. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  559. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  560. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  561. package/views/3d/webgl-engine/lib/GaussianSplatShadowRenderNode.js +1 -1
  562. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  563. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  564. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  565. package/views/3d/webgl-engine/lib/Texture.glsl.js +1 -1
  566. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  567. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  568. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  569. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  570. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  571. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  572. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  573. package/views/3d/webgl-engine/shaders/CutFillComposition.glsl.js +1 -1
  574. package/views/3d/webgl-engine/shaders/CutFillCompositionTechnique.js +1 -1
  575. package/views/3d/webgl-engine/shaders/CutFillDepth.glsl.js +1 -1
  576. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +1 -1
  577. package/views/3d/webgl-engine/shaders/CutFillMask.glsl.js +1 -1
  578. package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
  579. package/views/3d/webgl-engine/shaders/CutFillReduction.glsl.js +1 -1
  580. package/views/3d/webgl-engine/shaders/CutFillReductionTechnique.js +1 -1
  581. package/views/3d/webgl-engine/shaders/CutFillTargetDepth.glsl.js +1 -1
  582. package/views/3d/webgl-engine/shaders/CutFillTargetDepthTechnique.js +1 -1
  583. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  584. package/views/3d/webgl-engine/shaders/GaussianSplatShadow.glsl.js +1 -1
  585. package/views/3d/webgl-engine/shaders/GaussianSplatShadowTechnique.js +1 -1
  586. package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
  587. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +1 -1
  588. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  589. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  590. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  591. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
  592. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  593. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +1 -1
  594. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  595. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  596. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  597. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  598. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  599. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  600. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  601. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  602. package/webdoc/support/webdocSaveUtils.js +1 -1
  603. package/widgets/Attachments.d.ts +0 -1
  604. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  605. package/widgets/BuildingExplorer/BuildingLevelPicker/constants.js +1 -1
  606. package/widgets/Features.d.ts +1 -1
  607. package/widgets/LayerList/LayerListItem.js +1 -1
  608. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  609. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  610. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  611. package/widgets/OrientedImageryViewer.js +1 -1
  612. package/widgets/Popup.d.ts +2 -24
  613. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  614. package/widgets/TableList/support/tableListUtils.js +1 -1
  615. package/widgets/TableList.js +1 -1
  616. package/widgets/support/ContingentValuesManager.js +1 -1
  617. package/assets/esri/core/workers/chunks/09630888267cde87654f.js +0 -1
  618. package/assets/esri/core/workers/chunks/0d9d33f29124d464a4cb.js +0 -1
  619. package/assets/esri/core/workers/chunks/0e333f1bce992508b68a.js +0 -1
  620. package/assets/esri/core/workers/chunks/0fa207c68dfd7ddee160.js +0 -1
  621. package/assets/esri/core/workers/chunks/13838b6c045425e73cf8.js +0 -1
  622. package/assets/esri/core/workers/chunks/15167eeb6d7dbe7e392d.js +0 -1
  623. package/assets/esri/core/workers/chunks/177472a6a9beb1590934.js +0 -1
  624. package/assets/esri/core/workers/chunks/1d0f9f147bfa00b38d48.js +0 -1
  625. package/assets/esri/core/workers/chunks/1d54b71c43d9d6a5f713.js +0 -1
  626. package/assets/esri/core/workers/chunks/1f6b7626f333809837ef.js +0 -1
  627. package/assets/esri/core/workers/chunks/24646a1176ce34039155.js +0 -1
  628. package/assets/esri/core/workers/chunks/268ed861c882740c805b.js +0 -1
  629. package/assets/esri/core/workers/chunks/2b52c1c01cf568ba01fb.js +0 -1
  630. package/assets/esri/core/workers/chunks/3116a1c2b67a296ba86e.js +0 -1
  631. package/assets/esri/core/workers/chunks/32c17c299c7622ae0d71.js +0 -1
  632. package/assets/esri/core/workers/chunks/34f79355145c8e4c59dd.js +0 -1
  633. package/assets/esri/core/workers/chunks/3be111488365768fd917.js +0 -1
  634. package/assets/esri/core/workers/chunks/3f0483cbcd893acf240c.js +0 -1
  635. package/assets/esri/core/workers/chunks/40d251b6b42a41d68bd2.js +0 -1
  636. package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +0 -1
  637. package/assets/esri/core/workers/chunks/4c54cb80c4dc9bbbd395.js +0 -1
  638. package/assets/esri/core/workers/chunks/598271956c46e21e5c09.js +0 -1
  639. package/assets/esri/core/workers/chunks/5b6f2bfdcdd207d8ae42.js +0 -1
  640. package/assets/esri/core/workers/chunks/5bc299f7f89a07a6e6a6.js +0 -1
  641. package/assets/esri/core/workers/chunks/5c7ba4b8a9ec2e2e02b5.js +0 -1
  642. package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +0 -1
  643. package/assets/esri/core/workers/chunks/61c523dd9d8027922465.js +0 -1
  644. package/assets/esri/core/workers/chunks/65520a443e3811255bea.js +0 -1
  645. package/assets/esri/core/workers/chunks/671826fe25105aedcce4.js +0 -1
  646. package/assets/esri/core/workers/chunks/6b79c254897ece95b7a3.js +0 -1
  647. package/assets/esri/core/workers/chunks/6c35583707f5c339ee99.js +0 -1
  648. package/assets/esri/core/workers/chunks/6cb467a9517f024be72f.js +0 -1
  649. package/assets/esri/core/workers/chunks/71119398ec91f1b209d7.js +0 -1
  650. package/assets/esri/core/workers/chunks/8ac8ef856ed9592c433b.js +0 -1
  651. package/assets/esri/core/workers/chunks/8fedb32055ac7f771419.js +0 -1
  652. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
  653. package/assets/esri/core/workers/chunks/9c11e1fe785e1385fdb1.js +0 -1
  654. package/assets/esri/core/workers/chunks/a567d001fcfa1f1cdeea.js +0 -1
  655. package/assets/esri/core/workers/chunks/afdc6fc453157528cf9b.js +0 -1
  656. package/assets/esri/core/workers/chunks/b5ced451d331ca1ffb68.js +0 -1
  657. package/assets/esri/core/workers/chunks/b7f5d51ac26f37837b3b.js +0 -1
  658. package/assets/esri/core/workers/chunks/ba7fe21a78ea37a02b7c.js +0 -1
  659. package/assets/esri/core/workers/chunks/bb3ab2453ccde2f2611c.js +0 -1
  660. package/assets/esri/core/workers/chunks/bb81da98546c4d923e0d.js +0 -1
  661. package/assets/esri/core/workers/chunks/beba9f2213d8a850ddb6.js +0 -1
  662. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
  663. package/assets/esri/core/workers/chunks/d30790c69724258dab2b.js +0 -1
  664. package/assets/esri/core/workers/chunks/d35c475f004367e333eb.js +0 -1
  665. package/assets/esri/core/workers/chunks/d95ffd990b3a7df69e1e.js +0 -1
  666. package/assets/esri/core/workers/chunks/dd6efa0afe879bd11a2e.js +0 -1
  667. package/assets/esri/core/workers/chunks/de25311b6d13bf1c6089.js +0 -2
  668. package/assets/esri/core/workers/chunks/dec51409372764e7093d.js +0 -1
  669. package/assets/esri/core/workers/chunks/e133840540abf20262a4.js +0 -1
  670. package/assets/esri/core/workers/chunks/e63e24101e7e92c62d98.js +0 -1
  671. package/assets/esri/core/workers/chunks/e785f76c1a75cb1d1e1f.js +0 -1
  672. package/assets/esri/core/workers/chunks/f196ad0c7dbcbf632776.js +0 -1
  673. package/assets/esri/core/workers/chunks/f27397379c6c88bc6ef4.js +0 -1
  674. package/assets/esri/core/workers/chunks/f53805c7a84203305b2c.js +0 -1
  675. package/assets/esri/core/workers/chunks/f60292d97bcdbf19165b.js +0 -1
  676. package/assets/esri/core/workers/chunks/f6ebec8d2248c719b89f.js +0 -1
  677. package/assets/esri/core/workers/chunks/fae79769df54eb4c4154.js +0 -1
  678. package/assets/esri/core/workers/chunks/fd2afff07aaac8203c18.js +0 -1
  679. package/assets/esri/core/workers/chunks/ff7708aaa2de720e3a47.js +0 -1
  680. /package/assets/esri/core/workers/chunks/{55ccb8ed7325efb62091.js.LICENSE.txt → 29b00d07d3e1d095c590.js.LICENSE.txt} +0 -0
  681. /package/assets/esri/core/workers/chunks/{de25311b6d13bf1c6089.js.LICENSE.txt → 35fdd62277fd06468a29.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"../../Color.js";import{forEach as t}from"../../core/asyncUtils.js";import{px2pt as r}from"../../core/screenUtils.js";import{ONES as o}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{effectFunctionsFromJSON as n}from"../../layers/effects/jsonUtils.js";import{applyCIMSymbolRotation as l,getCIMSymbolColor as i}from"./cimSymbolUtils.js";import{getStroke as c}from"./gfxUtils.js";import u from"./Symbol3DMaterial.js";import{isSymbol3D as s,isSymbol2D as a}from"./typeUtils.js";function f(e){const t=e.symbolLayers?.at(-1);if(t&&"outline"in t)return t?.outline?.size}function m(e){if(!e)return 0;if(s(e)){const t=f(e);return null!=t?t:0}return r(c(e)?.width)}function y(e){const t=e.symbolLayers?.at(-1);if(t&&"outline"in t)return t?.outline?.color}function p(t){if(!t)return null;if(s(t))return y(t);const r=c(t)?.color;return r?new e(r):null}function h(e){if(null==e||!("symbolLayers"in e)||null==e.symbolLayers)return!1;switch(e.type){case"point-3d":return e.symbolLayers.some(e=>"object"===e.type);case"line-3d":return e.symbolLayers.some(e=>"path"===e.type);case"polygon-3d":return e.symbolLayers.some(e=>"object"===e.type||"extrude"===e.type);default:return!1}}function d(e){return e.resource?.href??""}function b(t,r){if(!t)return null;let o=null;return s(t)?o=w(t):a(t)&&(o="cim"===t.type?i(t):t.color?new e(t.color):null),o?k(o,r):null}function w(t){const r=t.symbolLayers;if(!r)return null;let o=null;return r.forEach(e=>{"object"===e.type&&e.resource?.href||(o="water"===e.type?e.color:e.material?e.material.color:null)}),o?new e(o):null}function k(t,r){if(null==r||null==t)return t;const o=t.toRgba();return o[3]=o[3]*r,new e(o)}function g(t,r,o){const n=t.symbolLayers;if(!n)return;const l=(t,n=!1)=>{let l=r??t??null;return null!=o?.override&&(!l&&n&&(l=new e([255,255,255])),l&&(l.a=o.override)),k(l,o?.add)};n.forEach(e=>{if("water"===e.type)return void(e.color=k(e.color,o?.add));const t=null!=e.material?e.material.color:null,r=l(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new u({color:r}):e.material.color=r,"outline"in e&&e.outline?.color&&null!=o?.add&&(e.outline.color=k(e.outline.color,o.add)),"marker"in e&&null!=e.marker&&(e.marker.color=l(e.marker.color))})}function j(e,t,r){t=t??e.color,null!=r?.override&&t&&(t.a=r.override),t&&(e.color=k(t,r?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=k(e.outline.color,r?.add))}function L(t,r,o){t&&(r||null!=o)&&(r&&(r=new e(r)),s(t)?g(t,r,o):a(t)&&j(t,r,o))}async function v(e,r){const o=e.symbolLayers;o&&await t(o,async e=>z(e,r))}async function z(e,t){switch(e.type){case"extrude":U(e,t);break;case"icon":case"line":case"text":x(e,t);break;case"path":O(e,t);break;case"object":await E(e,t)}}function x(e,t){const r=S(t);null!=r&&(e.size=r)}function S(e){for(const t of e)if("number"==typeof t)return t;return null}function U(e,t){const r=t[2];"number"==typeof r&&(e.size=r)}async function E(e,t){const{resourceSize:r,symbolSize:o}=await C(e),n=R(t,r,o);null!=n&&(e.width=D(t[0],o[0],r[0],n),e.depth=D(t[1],o[1],r[1],n),e.height=D(t[2],o[2],r[2],n))}function O(e,t){const r=R(t,o,[e.width,void 0,e.height]);null!=r&&(e.width=D(t[0],e.width,1,r),e.height=D(t[2],e.height,1,r))}function R(e,t,r){for(let o=0;o<3;o++){const n=e[o];switch(n){case"symbol-value":{const e=r[o];return null!=e?e/t[o]:1}case"proportional":break;default:if(null!=n&&t[o])return n/t[o]}}return null}async function C(e){const{computeObjectLayerResourceSize:t}=await import("./symbolLayerUtils.js"),r=await t(e,10),{width:o,height:n,depth:l}=e,i=[o,l,n];let c=1;for(let u=0;u<3;u++){const e=i[u];if(null!=e){c=e/r[u];break}}for(let u=0;u<3;u++)null==i[u]&&(i[u]=r[u]*c);return{resourceSize:r,symbolSize:i}}function D(e,t,r,o){switch(e){case"proportional":return r*o;case"symbol-value":return null!=t?t:r;default:return e}}function J(e,t){const r=S(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r}}async function M(e,t){if(e&&t)return s(e)?v(e,t):void(a(e)&&J(e,t))}function N(e,t,r){if(e&&null!=t)if(s(e)){const o=e.symbolLayers;o&&o.forEach(e=>{if("object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if(a(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":l(e,t,!0)}}function q(e,t){if(!e)return null;const r=(t?e.effects:e.effects.filter(e=>"bloom"!==e.type)).map(e=>e.toJSON());return n(r)}function A(e){return null!=e&&"polygon-3d"===e.type&&e.symbolLayers.some(e=>"extrude"===e.type)}export{L as applyColorToSymbol,k as applyOpacityToColor,N as applyRotationToSymbol,M as applySizesToSymbol,q as getCSSFilterFromEffectList,b as getColorFromSymbol,d as getIconHref,p as getSymbolOutlineColor,m as getSymbolOutlineSize,h as isVolumetricSymbol,A as symbolHasExtrudeSymbolLayer};
2
+ import e from"../../Color.js";import{forEach as t}from"../../core/asyncUtils.js";import{px2pt as r}from"../../core/screenUtils.js";import{ONES as n}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{effectFunctionsFromJSON as o}from"../../layers/effects/jsonUtils.js";import{applyCIMSymbolRotation as l,scaleCIMSymbolTo as i,getCIMSymbolColor as c}from"./cimSymbolUtils.js";import{getStroke as s}from"./gfxUtils.js";import u from"./Symbol3DMaterial.js";import{isSymbol3D as a,isSymbol2D as f}from"./typeUtils.js";function m(e){const t=e.symbolLayers?.at(-1);if(t&&"outline"in t)return t?.outline?.size}function y(e){if(!e)return 0;if(a(e)){const t=m(e);return null!=t?t:0}return r(s(e)?.width)}function p(e){const t=e.symbolLayers?.at(-1);if(t&&"outline"in t)return t?.outline?.color}function h(t){if(!t)return null;if(a(t))return p(t);const r=s(t)?.color;return r?new e(r):null}function d(e){if(null==e||!("symbolLayers"in e)||null==e.symbolLayers)return!1;switch(e.type){case"point-3d":return e.symbolLayers.some(e=>"object"===e.type);case"line-3d":return e.symbolLayers.some(e=>"path"===e.type);case"polygon-3d":return e.symbolLayers.some(e=>"object"===e.type||"extrude"===e.type);default:return!1}}function b(e){return e.resource?.href??""}function w(t,r){if(!t)return null;let n=null;return a(t)?n=k(t):f(t)&&(n="cim"===t.type?c(t):t.color?new e(t.color):null),n?g(n,r):null}function k(t){const r=t.symbolLayers;if(!r)return null;let n=null;return r.forEach(e=>{"object"===e.type&&e.resource?.href||(n="water"===e.type?e.color:e.material?e.material.color:null)}),n?new e(n):null}function g(t,r){if(null==r||null==t)return t;const n=t.toRgba();return n[3]=n[3]*r,new e(n)}function j(t,r,n){const o=t.symbolLayers;if(!o)return;const l=(t,o=!1)=>{let l=r??t??null;return null!=n?.override&&(!l&&o&&(l=new e([255,255,255])),l&&(l.a=n.override)),g(l,n?.add)};o.forEach(e=>{if("water"===e.type)return void(e.color=g(e.color,n?.add));const t=null!=e.material?e.material.color:null,r=l(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new u({color:r}):e.material.color=r,"outline"in e&&e.outline?.color&&null!=n?.add&&(e.outline.color=g(e.outline.color,n.add)),"marker"in e&&null!=e.marker&&(e.marker.color=l(e.marker.color))})}function L(e,t,r){t=t??e.color,null!=r?.override&&t&&(t.a=r.override),t&&(e.color=g(t,r?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=g(e.outline.color,r?.add))}function v(t,r,n){t&&(r||null!=n)&&(r&&(r=new e(r)),a(t)?j(t,r,n):f(t)&&L(t,r,n))}async function z(e,r){const n=e.symbolLayers;n&&await t(n,async e=>x(e,r))}async function x(e,t){switch(e.type){case"extrude":E(e,t);break;case"icon":case"line":case"text":S(e,t);break;case"path":R(e,t);break;case"object":await O(e,t)}}function S(e,t){const r=U(t);null!=r&&(e.size=r)}function U(e){for(const t of e)if("number"==typeof t)return t;return null}function E(e,t){const r=t[2];"number"==typeof r&&(e.size=r)}async function O(e,t){const{resourceSize:r,symbolSize:n}=await D(e),o=C(t,r,n);null!=o&&(e.width=J(t[0],n[0],r[0],o),e.depth=J(t[1],n[1],r[1],o),e.height=J(t[2],n[2],r[2],o))}function R(e,t){const r=C(t,n,[e.width,void 0,e.height]);null!=r&&(e.width=J(t[0],e.width,1,r),e.height=J(t[2],e.height,1,r))}function C(e,t,r){for(let n=0;n<3;n++){const o=e[n];switch(o){case"symbol-value":{const e=r[n];return null!=e?e/t[n]:1}case"proportional":break;default:if(null!=o&&t[n])return o/t[n]}}return null}async function D(e){const{computeObjectLayerResourceSize:t}=await import("./symbolLayerUtils.js"),r=await t(e,10),{width:n,height:o,depth:l}=e,i=[n,l,o];let c=1;for(let s=0;s<3;s++){const e=i[s];if(null!=e){c=e/r[s];break}}for(let s=0;s<3;s++)null==i[s]&&(i[s]=r[s]*c);return{resourceSize:r,symbolSize:i}}function J(e,t,r,n){switch(e){case"proportional":return r*n;case"symbol-value":return null!=t?t:r;default:return e}}function M(e,t){const r=U(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r;break;case"simple-fill":case"picture-fill":break;case"cim":i(e,r,{preserveOutlineWidth:!1})}}async function N(e,t){if(e&&t)return a(e)?z(e,t):void(f(e)&&M(e,t))}function W(e,t,r){if(e&&null!=t)if(a(e)){const n=e.symbolLayers;n&&n.forEach(e=>{if("object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if(f(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":l(e,t,!0)}}function q(e,t){if(!e)return null;const r=(t?e.effects:e.effects.filter(e=>"bloom"!==e.type)).map(e=>e.toJSON());return o(r)}function A(e){return null!=e&&"polygon-3d"===e.type&&e.symbolLayers.some(e=>"extrude"===e.type)}export{v as applyColorToSymbol,g as applyOpacityToColor,W as applyRotationToSymbol,N as applySizesToSymbol,q as getCSSFilterFromEffectList,w as getColorFromSymbol,b as getIconHref,h as getSymbolOutlineColor,y as getSymbolOutlineSize,d as isVolumetricSymbol,A as symbolHasExtrudeSymbolLayer};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/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{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};
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};
@@ -420,6 +420,190 @@ limitations under the License.
420
420
 
421
421
  -------------------------------------------------------------------------------
422
422
 
423
+ pdf.js/
424
+
425
+ https://github.com/mozilla/pdf.js
426
+
427
+
428
+ Apache License
429
+ Version 2.0, January 2004
430
+ http://www.apache.org/licenses/
431
+
432
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
433
+
434
+ 1. Definitions.
435
+
436
+ "License" shall mean the terms and conditions for use, reproduction,
437
+ and distribution as defined by Sections 1 through 9 of this document.
438
+
439
+ "Licensor" shall mean the copyright owner or entity authorized by
440
+ the copyright owner that is granting the License.
441
+
442
+ "Legal Entity" shall mean the union of the acting entity and all
443
+ other entities that control, are controlled by, or are under common
444
+ control with that entity. For the purposes of this definition,
445
+ "control" means (i) the power, direct or indirect, to cause the
446
+ direction or management of such entity, whether by contract or
447
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
448
+ outstanding shares, or (iii) beneficial ownership of such entity.
449
+
450
+ "You" (or "Your") shall mean an individual or Legal Entity
451
+ exercising permissions granted by this License.
452
+
453
+ "Source" form shall mean the preferred form for making modifications,
454
+ including but not limited to software source code, documentation
455
+ source, and configuration files.
456
+
457
+ "Object" form shall mean any form resulting from mechanical
458
+ transformation or translation of a Source form, including but
459
+ not limited to compiled object code, generated documentation,
460
+ and conversions to other media types.
461
+
462
+ "Work" shall mean the work of authorship, whether in Source or
463
+ Object form, made available under the License, as indicated by a
464
+ copyright notice that is included in or attached to the work
465
+ (an example is provided in the Appendix below).
466
+
467
+ "Derivative Works" shall mean any work, whether in Source or Object
468
+ form, that is based on (or derived from) the Work and for which the
469
+ editorial revisions, annotations, elaborations, or other modifications
470
+ represent, as a whole, an original work of authorship. For the purposes
471
+ of this License, Derivative Works shall not include works that remain
472
+ separable from, or merely link (or bind by name) to the interfaces of,
473
+ the Work and Derivative Works thereof.
474
+
475
+ "Contribution" shall mean any work of authorship, including
476
+ the original version of the Work and any modifications or additions
477
+ to that Work or Derivative Works thereof, that is intentionally
478
+ submitted to Licensor for inclusion in the Work by the copyright owner
479
+ or by an individual or Legal Entity authorized to submit on behalf of
480
+ the copyright owner. For the purposes of this definition, "submitted"
481
+ means any form of electronic, verbal, or written communication sent
482
+ to the Licensor or its representatives, including but not limited to
483
+ communication on electronic mailing lists, source code control systems,
484
+ and issue tracking systems that are managed by, or on behalf of, the
485
+ Licensor for the purpose of discussing and improving the Work, but
486
+ excluding communication that is conspicuously marked or otherwise
487
+ designated in writing by the copyright owner as "Not a Contribution."
488
+
489
+ "Contributor" shall mean Licensor and any individual or Legal Entity
490
+ on behalf of whom a Contribution has been received by Licensor and
491
+ subsequently incorporated within the Work.
492
+
493
+ 2. Grant of Copyright License. Subject to the terms and conditions of
494
+ this License, each Contributor hereby grants to You a perpetual,
495
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
496
+ copyright license to reproduce, prepare Derivative Works of,
497
+ publicly display, publicly perform, sublicense, and distribute the
498
+ Work and such Derivative Works in Source or Object form.
499
+
500
+ 3. Grant of Patent License. Subject to the terms and conditions of
501
+ this License, each Contributor hereby grants to You a perpetual,
502
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
503
+ (except as stated in this section) patent license to make, have made,
504
+ use, offer to sell, sell, import, and otherwise transfer the Work,
505
+ where such license applies only to those patent claims licensable
506
+ by such Contributor that are necessarily infringed by their
507
+ Contribution(s) alone or by combination of their Contribution(s)
508
+ with the Work to which such Contribution(s) was submitted. If You
509
+ institute patent litigation against any entity (including a
510
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
511
+ or a Contribution incorporated within the Work constitutes direct
512
+ or contributory patent infringement, then any patent licenses
513
+ granted to You under this License for that Work shall terminate
514
+ as of the date such litigation is filed.
515
+
516
+ 4. Redistribution. You may reproduce and distribute copies of the
517
+ Work or Derivative Works thereof in any medium, with or without
518
+ modifications, and in Source or Object form, provided that You
519
+ meet the following conditions:
520
+
521
+ (a) You must give any other recipients of the Work or
522
+ Derivative Works a copy of this License; and
523
+
524
+ (b) You must cause any modified files to carry prominent notices
525
+ stating that You changed the files; and
526
+
527
+ (c) You must retain, in the Source form of any Derivative Works
528
+ that You distribute, all copyright, patent, trademark, and
529
+ attribution notices from the Source form of the Work,
530
+ excluding those notices that do not pertain to any part of
531
+ the Derivative Works; and
532
+
533
+ (d) If the Work includes a "NOTICE" text file as part of its
534
+ distribution, then any Derivative Works that You distribute must
535
+ include a readable copy of the attribution notices contained
536
+ within such NOTICE file, excluding those notices that do not
537
+ pertain to any part of the Derivative Works, in at least one
538
+ of the following places: within a NOTICE text file distributed
539
+ as part of the Derivative Works; within the Source form or
540
+ documentation, if provided along with the Derivative Works; or,
541
+ within a display generated by the Derivative Works, if and
542
+ wherever such third-party notices normally appear. The contents
543
+ of the NOTICE file are for informational purposes only and
544
+ do not modify the License. You may add Your own attribution
545
+ notices within Derivative Works that You distribute, alongside
546
+ or as an addendum to the NOTICE text from the Work, provided
547
+ that such additional attribution notices cannot be construed
548
+ as modifying the License.
549
+
550
+ You may add Your own copyright statement to Your modifications and
551
+ may provide additional or different license terms and conditions
552
+ for use, reproduction, or distribution of Your modifications, or
553
+ for any such Derivative Works as a whole, provided Your use,
554
+ reproduction, and distribution of the Work otherwise complies with
555
+ the conditions stated in this License.
556
+
557
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
558
+ any Contribution intentionally submitted for inclusion in the Work
559
+ by You to the Licensor shall be under the terms and conditions of
560
+ this License, without any additional terms or conditions.
561
+ Notwithstanding the above, nothing herein shall supersede or modify
562
+ the terms of any separate license agreement you may have executed
563
+ with Licensor regarding such Contributions.
564
+
565
+ 6. Trademarks. This License does not grant permission to use the trade
566
+ names, trademarks, service marks, or product names of the Licensor,
567
+ except as required for reasonable and customary use in describing the
568
+ origin of the Work and reproducing the content of the NOTICE file.
569
+
570
+ 7. Disclaimer of Warranty. Unless required by applicable law or
571
+ agreed to in writing, Licensor provides the Work (and each
572
+ Contributor provides its Contributions) on an "AS IS" BASIS,
573
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
574
+ implied, including, without limitation, any warranties or conditions
575
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
576
+ PARTICULAR PURPOSE. You are solely responsible for determining the
577
+ appropriateness of using or redistributing the Work and assume any
578
+ risks associated with Your exercise of permissions under this License.
579
+
580
+ 8. Limitation of Liability. In no event and under no legal theory,
581
+ whether in tort (including negligence), contract, or otherwise,
582
+ unless required by applicable law (such as deliberate and grossly
583
+ negligent acts) or agreed to in writing, shall any Contributor be
584
+ liable to You for damages, including any direct, indirect, special,
585
+ incidental, or consequential damages of any character arising as a
586
+ result of this License or out of the use or inability to use the
587
+ Work (including but not limited to damages for loss of goodwill,
588
+ work stoppage, computer failure or malfunction, or any and all
589
+ other commercial damages or losses), even if such Contributor
590
+ has been advised of the possibility of such damages.
591
+
592
+ 9. Accepting Warranty or Additional Liability. While redistributing
593
+ the Work or Derivative Works thereof, You may choose to offer,
594
+ and charge a fee for, acceptance of support, warranty, indemnity,
595
+ or other liability obligations and/or rights consistent with this
596
+ License. However, in accepting such obligations, You may act only
597
+ on Your own behalf and on Your sole responsibility, not on behalf
598
+ of any other Contributor, and only if You agree to indemnify,
599
+ defend, and hold each Contributor harmless for any liability
600
+ incurred by, or claims asserted against, such Contributor by reason
601
+ of your accepting any such warranty or additional liability.
602
+
603
+ END OF TERMS AND CONDITIONS
604
+
605
+ -------------------------------------------------------------------------------
606
+
423
607
  postcard
424
608
 
425
609
  https://github.com/jamesmunns/postcard
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/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{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};
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};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import t from"../../../../core/Error.js";import has from"../../../../core/has.js";import e from"../../../../core/Logger.js";import{estimateNumberArrayMemory as i}from"../../../../core/memoryEstimations.js";import{signal as s}from"../../../../core/signal.js";import{dataDrivenUnit2 as r,dataDrivenUnit1 as a,dataDrivenUnit0 as n,visualVariableUnit as u,localTimeOriginUnit as h,gpgpuUnit as o,animationUnit as d,filterFlagsUnit as l}from"./definitions.js";import{getDisplayIdTexel as g}from"./DisplayId.js";import{getPixelArrayCtor as p,getPixelBytes as _}from"./Utils.js";import{DisposableFramebufferObject as c}from"../../../webgl/FramebufferObject.js";import x from"../../../webgl/Texture.js";import{TextureDescriptor as f}from"../../../webgl/TextureDescriptor.js";const b=()=>e.getLogger("esri.views.2d.engine.webgl.AttributeStoreView");class m{constructor(t,e,i){this._texture=null,this._lastTexture=null,this._fbos={},this.texelSize=4;const{buffer:s,pixelType:r,textureOnly:a}=t,n=p(r);this.blockIndex=i,this.pixelType=r,this.size=e,this.textureOnly=a,a||(this.data=new n(s)),this._resetRange()}destroy(){this._texture?.dispose();for(const t in this._fbos){const e=this._fbos[t];e&&("0"===t&&e.detachColorTexture(),e.dispose()),this._fbos[t]=null}this._texture=null}get _textureDesc(){const t=new f(this.size);return t.wrapMode=33071,t.samplingMode=9728,t.dataType=this.pixelType,t}get usedMemory(){return null!=this.data?i(this.data):0}setData(t,e,i){const s=g(t),r=this.data,a=s*this.texelSize+e;!r||a>=r.length||(r[a]=i,this.dirtyStart=Math.min(this.dirtyStart,s),this.dirtyEnd=Math.max(this.dirtyEnd,s))}getData(t,e){if(null==this.data)return null;const i=g(t)*this.texelSize+e;return!this.data||i>=this.data.length?null:this.data[i]}getTexture(t){return this._texture??this._initTexture(t)}getFBO(t,e=0){if(!this._fbos[e]){const i=0===e?this.getTexture(t):this._textureDesc;this._fbos[e]=new c(t,i)}return this._fbos[e]}get hasDirty(){const t=this.dirtyStart;return this.dirtyEnd>=t}updateTexture(e,i){try{const s=this.dirtyStart,r=this.dirtyEnd;if(!this.hasDirty)return;has("esri-2d-update-debug")&&console.debug(`Version[${i}] AttributeStoreView.updateTexture`,{start:s,end:r,firstBytes:new Uint8Array(this.data.buffer.slice(0,16)),block:this}),this._resetRange();const a=this.data.buffer,n=this.getTexture(e),u=4,h=(s-s%this.size)/this.size,o=(r-r%this.size)/this.size,d=h,l=this.size,g=o,_=h*this.size*u,c=(l+g*this.size)*u-_,x=p(this.pixelType),f=new x(a,_*x.BYTES_PER_ELEMENT,c),m=this.size,T=g-d+1;if(T>this.size)return void b().error(new t("mapview-webgl","Out-of-bounds index when updating AttributeData"));n.updateData(0,0,d,m,T,f)}catch(s){}}update(t){const{data:e,start:i,end:s}=t;if(null!=e&&null!=this.data){const s=this.data,r=i*this.texelSize;for(let i=0;i<e.length;i++){const a=1<<i%this.texelSize;t.layout&a&&(s[r+i]=e[i])}}this.dirtyStart=Math.min(this.dirtyStart,i),this.dirtyEnd=Math.max(this.dirtyEnd,s)}resize(t,e){const i=this.size;if(this.size=e,this.textureOnly)return void(i!==this.size&&(this._lastTexture=this._texture,this._texture=null));const s=p(this.pixelType);this.destroy(),this.data=new s(t.buffer)}_resetRange(){this.dirtyStart=2147483647,this.dirtyEnd=0}_initTexture(t){const e=new x(t,this._textureDesc,this.data??void 0);if(null!=this._lastTexture&&this._fbos[0]){const i=this._lastTexture.descriptor.width,s=this._lastTexture.descriptor.height,r=this._lastTexture.descriptor.dataType,a=this._lastTexture.descriptor.pixelFormat,n=this.getFBO(t),u=_(r),h=new(p(r))(new ArrayBuffer(i*s*u*this.texelSize)),o=t.boundFramebuffer,{x:d,y:l,width:g,height:c}=t.getViewport();t.bindFramebuffer(n),n.readPixels(0,0,i,s,a,r,h),e.updateData(0,0,0,2*i,s/2,h),t.setViewport(d,l,g,c),t.bindFramebuffer(o)}return this.destroy(),this._texture=e,this._texture}}class T{constructor(){this.size=0,this._pendingAttributeUpdates=[],this._version=0,this._epoch=0,this._hasPendingUpdate=s(!1),this._locked=!1}get updating(){return this._hasPendingUpdate.value}get locked(){return this._locked}get usedMemory(){let t=0;for(const e of this._data??[])null!=e&&(t+=e.usedMemory);return t}_initialize(t){if(!t)throw new Error("InternalError: initArgs must be defined");const e=t.blockDescriptors;if(this.size=t.blockSize,has("esri-2d-update-debug")&&console.debug("AttributeStoreView.initialize",{message:t}),null==this._data)this._data=e.map((t,e)=>null!=t?new m(t,this.size,e):null);else for(let i=0;i<this._data.length;i++){const t=this._data[i],s=e[i];null!=s&&(null==t?this._data[i]=new m(s,this.size,i):t.resize(s,this.size))}}destroy(){for(const t of this._data??[])t?.destroy();this._defaultTexture?.dispose(),this._defaultTexture=null,this._pendingAttributeUpdates=[]}isEmpty(){return null==this._data}getBlock(t){if(null==this._data)return null;return this._data[t]}setLabelMinZoom(t,e){this.setData(t,0,1,e)}setLocalTimeOrigin(t,e){this.setData(t,7,0,e)}getLabelMinZoom(t){return this.getData(t,0,1,255)}getFilterFlags(t){return this.getData(t,0,0,0)}getVisualVariableData(t,e){return this.getData(t,3,e,0)}getData(t,e,i,s){if(!this._data)return 0;const r=this._data[e];if(null==r)return 0;const a=r.getData(t,i);return null!=a?a:s}setData(t,e,i,s){this._data[e].setData(t,i,s)}lockTextureUploads(){this._locked=!0}unlockTextureUploads(){this._locked=!1,this.update()}requestUpdate(t){this._version=t.version,this._pendingAttributeUpdates.push(t),this._hasPendingUpdate.value=!0,has("esri-2d-update-debug")&&console.debug(`Version[${this._version}] AttributeStoreView.requestUpdate`,{message:t})}get currentEpoch(){return this._epoch}get hasPendingUpdates(){return this._pendingAttributeUpdates.length>0}update(){if(this._locked)return;const t=this._pendingAttributeUpdates;this._pendingAttributeUpdates=[];for(const e of t){const{blockData:t,initArgs:i,sendUpdateEpoch:s,version:r}=e;has("esri-2d-update-debug")&&console.debug(`Version[${this._version}] Epoch[${s}] AttributeStoreView.applyUpdate`),this._version=r,this._epoch=s,null!=i&&this._initialize(i);const a=this._data;for(let e=0;e<t.length;e++){const i=t[e],s=a[e];null!=s&&null!=i&&(has("esri-2d-update-debug")&&console.debug(`Version[${this._version}] CpuBlock[${e}] AttributeStoreView.update`,{block:i}),s.update(i))}}this._hasPendingUpdate.value=!1}getUniforms(){return{size:this.size}}getTextures(t){return{filterFlags:{texture:this._getTexture(t,0),unit:l},animation:{texture:this._getTexture(t,1),unit:d},gpgpu:{texture:this._getTexture(t,2),unit:o},localTimeOrigin:{texture:this._getTexture(t,7),unit:h},visualVariableData:{texture:this._getTexture(t,3),unit:u},dataDriven0:{texture:this._getTexture(t,4),unit:n},dataDriven1:{texture:this._getTexture(t,5),unit:a},dataDriven2:{texture:this._getTexture(t,6),unit:r}}}_getTexture(t,e){const i=this._data?.[e];return i?(i.updateTexture(t,this._version),i.getTexture(t)):this._getDefaultTexture(t)}_getDefaultTexture(t){if(null==this._defaultTexture){const e=new f(1);e.wrapMode=33071,e.samplingMode=9728,this._defaultTexture=new x(t,e,new Uint8Array(4))}return this._defaultTexture}}export{T as AttributeStoreView};
2
+ import t from"../../../../core/Error.js";import has from"../../../../core/has.js";import e from"../../../../core/Logger.js";import{estimateNumberArrayMemory as i}from"../../../../core/memoryEstimations.js";import{signal as s}from"../../../../core/signal.js";import{dataDrivenUnit2 as r,dataDrivenUnit1 as a,dataDrivenUnit0 as n,visualVariableUnit as u,localTimeOriginUnit as h,gpgpuUnit as o,animationUnit as d,filterFlagsUnit as l}from"./definitions.js";import{getDisplayIdTexel as p}from"./DisplayId.js";import{getPixelArrayCtor as g,getPixelBytes as _}from"./Utils.js";import{SizedPixelFormat as c}from"../../../webgl/enums.js";import{DisposableFramebufferObject as x}from"../../../webgl/FramebufferObject.js";import f from"../../../webgl/Texture.js";import{TextureDescriptor as b}from"../../../webgl/TextureDescriptor.js";const m=()=>e.getLogger("esri.views.2d.engine.webgl.AttributeStoreView");class T{constructor(t,e,i){this._texture=null,this._lastTexture=null,this._fbos={},this.texelSize=4;const{buffer:s,pixelType:r,textureOnly:a}=t,n=g(r);this.blockIndex=i,this.pixelType=r,this.size=e,this.textureOnly=a,a||(this.data=new n(s)),this._resetRange()}destroy(){this._texture?.dispose();for(const t in this._fbos){const e=this._fbos[t];e&&("0"===t&&e.detachColorTexture(),e.dispose()),this._fbos[t]=null}this._texture=null}get _textureDesc(){const t=new b(this.size);if(t.wrapMode=33071,t.samplingMode=9728,t.dataType=this.pixelType,2===this.blockIndex)t.pixelFormat=6403,t.internalFormat=c.R8;return t}get usedMemory(){return null!=this.data?i(this.data):0}setData(t,e,i){const s=p(t),r=this.data,a=s*this.texelSize+e;!r||a>=r.length||(r[a]=i,this.dirtyStart=Math.min(this.dirtyStart,s),this.dirtyEnd=Math.max(this.dirtyEnd,s))}getData(t,e){if(null==this.data)return null;const i=p(t)*this.texelSize+e;return!this.data||i>=this.data.length?null:this.data[i]}getTexture(t){return this._texture??this._initTexture(t)}getFBO(t,e=0){if(!this._fbos[e]){const i=0===e?this.getTexture(t):this._textureDesc;this._fbos[e]=new x(t,i)}return this._fbos[e]}get hasDirty(){const t=this.dirtyStart;return this.dirtyEnd>=t}updateTexture(e,i){try{const s=this.dirtyStart,r=this.dirtyEnd;if(!this.hasDirty)return;has("esri-2d-update-debug")&&console.debug(`Version[${i}] AttributeStoreView.updateTexture`,{start:s,end:r,firstBytes:new Uint8Array(this.data.buffer.slice(0,16)),block:this}),this._resetRange();const a=this.data.buffer,n=this.getTexture(e),u=4,h=(s-s%this.size)/this.size,o=(r-r%this.size)/this.size,d=h,l=this.size,p=o,_=h*this.size*u,c=(l+p*this.size)*u-_,x=g(this.pixelType),f=new x(a,_*x.BYTES_PER_ELEMENT,c),b=this.size,T=p-d+1;if(T>this.size)return void m().error(new t("mapview-webgl","Out-of-bounds index when updating AttributeData"));n.updateData(0,0,d,b,T,f)}catch(s){}}update(t){const{data:e,start:i,end:s}=t;if(null!=e&&null!=this.data){const s=this.data,r=i*this.texelSize;for(let i=0;i<e.length;i++){const a=1<<i%this.texelSize;t.layout&a&&(s[r+i]=e[i])}}this.dirtyStart=Math.min(this.dirtyStart,i),this.dirtyEnd=Math.max(this.dirtyEnd,s)}resize(t,e){const i=this.size;if(this.size=e,this.textureOnly)return void(i!==this.size&&(this._lastTexture=this._texture,this._texture=null));const s=g(this.pixelType);this.destroy(),this.data=new s(t.buffer)}_resetRange(){this.dirtyStart=2147483647,this.dirtyEnd=0}_initTexture(t){const e=new f(t,this._textureDesc,this.data??void 0);if(null!=this._lastTexture&&this._fbos[0]){const i=this._lastTexture.descriptor.width,s=this._lastTexture.descriptor.height,r=this._lastTexture.descriptor.dataType,a=this._lastTexture.descriptor.pixelFormat,n=this.getFBO(t),u=_(r),h=new(g(r))(new ArrayBuffer(i*s*u*this.texelSize)),o=t.boundFramebuffer,{x:d,y:l,width:p,height:c}=t.getViewport();t.bindFramebuffer(n),n.readPixels(0,0,i,s,a,r,h),e.updateData(0,0,0,2*i,s/2,h),t.setViewport(d,l,p,c),t.bindFramebuffer(o)}return this.destroy(),this._texture=e,this._texture}}class y{constructor(){this.size=0,this._pendingAttributeUpdates=[],this._version=0,this._epoch=0,this._hasPendingUpdate=s(!1),this._locked=!1}get updating(){return this._hasPendingUpdate.value}get locked(){return this._locked}get usedMemory(){let t=0;for(const e of this._data??[])null!=e&&(t+=e.usedMemory);return t}_initialize(t){if(!t)throw new Error("InternalError: initArgs must be defined");const e=t.blockDescriptors;if(this.size=t.blockSize,has("esri-2d-update-debug")&&console.debug("AttributeStoreView.initialize",{message:t}),null==this._data)this._data=e.map((t,e)=>null!=t?new T(t,this.size,e):null);else for(let i=0;i<this._data.length;i++){const t=this._data[i],s=e[i];null!=s&&(null==t?this._data[i]=new T(s,this.size,i):t.resize(s,this.size))}}destroy(){for(const t of this._data??[])t?.destroy();this._defaultTexture?.dispose(),this._defaultTexture=null,this._pendingAttributeUpdates=[]}isEmpty(){return null==this._data}getBlock(t){if(null==this._data)return null;return this._data[t]}setLabelMinZoom(t,e){this.setData(t,0,1,e)}setLocalTimeOrigin(t,e){this.setData(t,7,0,e)}getLabelMinZoom(t){return this.getData(t,0,1,255)}getFilterFlags(t){return this.getData(t,0,0,0)}getVisualVariableData(t,e){return this.getData(t,3,e,0)}getData(t,e,i,s){if(!this._data)return 0;const r=this._data[e];if(null==r)return 0;const a=r.getData(t,i);return null!=a?a:s}setData(t,e,i,s){this._data[e].setData(t,i,s)}lockTextureUploads(){this._locked=!0}unlockTextureUploads(){this._locked=!1,this.update()}requestUpdate(t){this._version=t.version,this._pendingAttributeUpdates.push(t),this._hasPendingUpdate.value=!0,has("esri-2d-update-debug")&&console.debug(`Version[${this._version}] AttributeStoreView.requestUpdate`,{message:t})}get currentEpoch(){return this._epoch}get hasPendingUpdates(){return this._pendingAttributeUpdates.length>0}update(){if(this._locked)return;const t=this._pendingAttributeUpdates;this._pendingAttributeUpdates=[];for(const e of t){const{blockData:t,initArgs:i,sendUpdateEpoch:s,version:r}=e;has("esri-2d-update-debug")&&console.debug(`Version[${this._version}] Epoch[${s}] AttributeStoreView.applyUpdate`),this._version=r,this._epoch=s,null!=i&&this._initialize(i);const a=this._data;for(let e=0;e<t.length;e++){const i=t[e],s=a[e];null!=s&&null!=i&&(has("esri-2d-update-debug")&&console.debug(`Version[${this._version}] CpuBlock[${e}] AttributeStoreView.update`,{block:i}),s.update(i))}}this._hasPendingUpdate.value=!1}getUniforms(){return{size:this.size}}getTextures(t){return{filterFlags:{texture:this._getTexture(t,0),unit:l},animation:{texture:this._getTexture(t,1),unit:d},gpgpu:{texture:this._getTexture(t,2),unit:o},localTimeOrigin:{texture:this._getTexture(t,7),unit:h},visualVariableData:{texture:this._getTexture(t,3),unit:u},dataDriven0:{texture:this._getTexture(t,4),unit:n},dataDriven1:{texture:this._getTexture(t,5),unit:a},dataDriven2:{texture:this._getTexture(t,6),unit:r}}}_getTexture(t,e){const i=this._data?.[e];return i?(i.updateTexture(t,this._version),i.getTexture(t)):this._getDefaultTexture(t)}_getDefaultTexture(t){if(null==this._defaultTexture){const e=new b(1);e.wrapMode=33071,e.samplingMode=9728,this._defaultTexture=new f(t,e,new Uint8Array(4))}return this._defaultTexture}}export{y as AttributeStoreView};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"../../../../core/has.js";import"../../../../core/Logger.js";import{TechniqueProgramCache as e}from"./shaderGraph/techniques/TechniqueProgramCache.js";class t{constructor(){this._currentPipelineStateNeedsUpdate=!1,this._programCache=new e}dispose(){this._programCache.destroy()}clearShaderCache(){this._programCache.destroy(),this._programCache=new e}setShader(e){return this._shaderState={shader:e.shader,uniforms:e.uniforms,textures:e.textures,defines:e.defines,optionalAttributes:e.optionalAttributes,useComputeBuffer:e.useComputeBuffer??!1},this._shaderState}setPipelineState(e){e!==this._currentPipelineState&&(this._currentPipelineState=e,this._currentPipelineStateNeedsUpdate=!0)}updatePipelineState(e){this._currentPipelineStateNeedsUpdate&&(this._currentPipelineStateNeedsUpdate=!1,this._updatePipelineState(e))}getPipelineState(){return this._currentPipelineState}setStencilRef(e,t){if(null==this._currentPipelineState)throw new Error("Pipeline state not defined. Call setPipelineState before calling submitDraw ");const{stencil:s}=this._currentPipelineState;if(s){const{test:r}=s;if(r){const{compare:s,mask:i}=r;if(null==t)throw new Error("InternalError: Stencil reference expected for target but not defined");e.setStencilFunctionSeparate(1032,s,t,i)}}}setPipelineStateNeedsUpdate(e){this._currentPipelineStateNeedsUpdate=e}getShaderState(){return this._shaderState}getProgramCache(){return this._programCache}submitDraw(e,t,s){let r=s?.stencilRef;if(!this._shaderState)return null;const{shader:i,uniforms:n,textures:a,defines:l,optionalAttributes:o}=this._shaderState,c=e.context,d=t.getAttributePrecisionPackFactors(),p=this._programCache.getProgram(i,d,n,a??{},l??{},o??{});if(p.setUniforms(n),p.setTextures(a),p.bind(c),this.updatePipelineState(c),null==r){const e=t.getStencilReference();null!=e&&(r=e)}return null!=r&&this.setStencilRef(c,r),t.draw(e,i.locationInfo),p.cleanupTemporaryTextures(),{vertexShader:p.vertexShader,fragmentShader:p.fragmentShader}}submitDrawMesh(e,t,s,r){this.submitDrawMeshUntyped(e,t,s,r)}submitDrawMeshUntyped(e,t,s,r){const i=r?.parts,n=r?.stencilRef,{precisionFactors:a,materialKey:l}=t,{shader:o,uniforms:c,textures:d,defines:p,optionalAttributes:h}=this.setShader(t),u=this._programCache.getProgram(o,a||{},c,d??{},p??{},h??{},l);if(u.setUniforms(c),u.setTextures(d),u.bind(e),this.updatePipelineState(e),this.setStencilRef(e,n),i)for(const S of i)s.bind(e,t.shader.locationInfo,S),s.draw(e);else for(let S=0;S<s.parts.length;S++)s.bind(e,t.shader.locationInfo,S),s.draw(e);s.unbind(e),u.cleanupTemporaryTextures()}_updatePipelineState(e){if(null==this._currentPipelineState)throw new Error("Pipeline state not defined. Call setPipelineState before calling submitDraw ");const{color:t,depth:s,stencil:r}=this._currentPipelineState;if(t){const{blendMode:s,write:r}=t;switch(e.setColorMask(...r),e.setBlendingEnabled("none"!==s),e.setBlendEquation(32774),s){case"composite":e.setBlendFunctionSeparate(1,771,1,771);break;case"additive":e.setBlendFunctionSeparate(1,1,1,1);break;case"custom":{const{blendParameters:s}=t,{dstAlpha:r,dstRGB:i,srcAlpha:n,srcRGB:a}=s;e.setBlendFunctionSeparate(a,i,n,r);break}case"delete":e.setBlendEquation(32779),e.setBlendFunctionSeparate(1,771,1,771);break;case"none":e.setBlendingEnabled(!1)}}else e.setColorMask(!1,!1,!1,!1);if(s){const{test:t,write:r}=s;r?(e.setDepthWriteEnabled(!0),e.setDepthRange(r.zNear,r.zFar)):e.setDepthWriteEnabled(!1),t?(e.setDepthTestEnabled(!0),e.setDepthFunction(t)):e.setDepthTestEnabled(!1)}else e.setDepthTestEnabled(!1),e.setDepthWriteEnabled(!1);if(r){const{test:t,write:s}=r;if(t){const{op:s}=t;e.setStencilTestEnabled(!0),e.setStencilOpSeparate(1032,s.fail,s.zFail,s.zPass)}else e.setStencilTestEnabled(!1);if(s){const{mask:t}=s;e.setStencilWriteMask(t)}else e.setStencilWriteMask(0)}else e.setStencilTestEnabled(!1),e.setStencilWriteMask(0)}}export{t as RenderingDevice};
2
+ import"../../../../core/has.js";import"../../../../core/Logger.js";import{TechniqueProgramCache as e}from"./shaderGraph/techniques/TechniqueProgramCache.js";class t{constructor(){this._currentPipelineStateNeedsUpdate=!1,this._programCache=new e}dispose(){this._programCache.destroy()}clearShaderCache(){this._programCache.destroy(),this._programCache=new e}setShader(e){return this._shaderState={shader:e.shader,uniforms:e.uniforms,textures:e.textures,defines:e.defines,optionalAttributes:e.optionalAttributes,useComputeBuffer:e.useComputeBuffer??!1},this._shaderState}setPipelineState(e){e!==this._currentPipelineState&&(this._currentPipelineState=e,this._currentPipelineStateNeedsUpdate=!0)}updatePipelineState(e){this._currentPipelineStateNeedsUpdate&&(this._currentPipelineStateNeedsUpdate=!1,this._updatePipelineState(e))}getPipelineState(){return this._currentPipelineState}setStencilRef(e,t){if(null==this._currentPipelineState)throw new Error("Pipeline state not defined. Call setPipelineState before calling submitDraw ");const{stencil:s}=this._currentPipelineState;if(s){const{test:r}=s;if(r){const{compare:s,mask:i}=r;if(null==t)throw new Error("InternalError: Stencil reference expected for target but not defined");e.setStencilFunctionSeparate(1032,s,t,i)}}}setPipelineStateNeedsUpdate(e){this._currentPipelineStateNeedsUpdate=e}getShaderState(){return this._shaderState}getProgramCache(){return this._programCache}submitDraw(e,t,s){let r=s?.stencilRef;if(!this._shaderState)return null;const{shader:i,uniforms:n,textures:a,defines:l,optionalAttributes:o}=this._shaderState,c=e.context,d=t.getAttributePrecisionPackFactors(),p=this._programCache.getProgram(i,d,n,a??{},l??{},o??{});if(p.setUniforms(n),p.setTextures(a),p.bind(c),this.updatePipelineState(c),null==r){const e=t.getStencilReference();null!=e&&(r=e)}return null!=r&&this.setStencilRef(c,r),t.draw(e,i.locationInfo),p.cleanupTemporaryTextures(),{vertexShader:p.vertexShader,fragmentShader:p.fragmentShader}}submitDrawMesh(e,t,s,r){this.submitDrawMeshUntyped(e,t,s,r)}submitDrawMeshUntyped(e,t,s,r){const i=r?.parts,n=r?.stencilRef,{precisionFactors:a,materialKey:l}=t,{shader:o,uniforms:c,textures:d,defines:p,optionalAttributes:h}=this.setShader(t),u=this._programCache.getProgram(o,a||{},c,d??{},p??{},h??{},l);if(u.setUniforms(c),u.setTextures(d),u.bind(e),this.updatePipelineState(e),this.setStencilRef(e,n),i)for(const S of i)s.bind(e,t.shader.locationInfo,S),s.draw(e);else for(let S=0;S<s.parts.length;S++)s.bind(e,t.shader.locationInfo,S),s.draw(e);s.unbind(e),u.cleanupTemporaryTextures()}_updatePipelineState(e){if(null==this._currentPipelineState)throw new Error("Pipeline state not defined. Call setPipelineState before calling submitDraw ");const{color:t,depth:s,stencil:r}=this._currentPipelineState;if(t){const{blendMode:s,write:r}=t;switch(e.setColorMask(...r),e.setBlendingEnabled("none"!==s),e.setBlendEquation(32774),s){case"composite":e.setBlendFunctionSeparate(1,771,1,771);break;case"additive":e.setBlendFunctionSeparate(1,1,1,1);break;case"custom":{const{blendParameters:s,blendEquation:r}=t,{dstAlpha:i,dstRGB:n,srcAlpha:a,srcRGB:l}=s;r&&e.setBlendEquation(r),e.setBlendFunctionSeparate(l,n,a,i);break}case"delete":e.setBlendEquation(32779),e.setBlendFunctionSeparate(1,771,1,771);break;case"none":e.setBlendingEnabled(!1)}}else e.setColorMask(!1,!1,!1,!1);if(s){const{test:t,write:r}=s;r?(e.setDepthWriteEnabled(!0),e.setDepthRange(r.zNear,r.zFar)):e.setDepthWriteEnabled(!1),t?(e.setDepthTestEnabled(!0),e.setDepthFunction(t)):e.setDepthTestEnabled(!1)}else e.setDepthTestEnabled(!1),e.setDepthWriteEnabled(!1);if(r){const{test:t,write:s}=r;if(t){const{op:s}=t;e.setStencilTestEnabled(!0),e.setStencilOpSeparate(1032,s.fail,s.zFail,s.zPass)}else e.setStencilTestEnabled(!1);if(s){const{mask:t}=s;e.setStencilWriteMask(t)}else e.setStencilWriteMask(0)}else e.setStencilTestEnabled(!1),e.setStencilWriteMask(0)}}export{t as RenderingDevice};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import has from"../../../../../core/has.js";import{hittestSmallSymbolThreshold as t,hittestToleranceMobile as e,hittestToleranceDesktop as s,hittestToleranceSmallSymbol as i}from"../definitions.js";import{Effect as o}from"./Effect.js";import{PixelType as n}from"../../../../webgl/enums.js";class r extends o{constructor(){super(...arguments),this.name=this.constructor.name,this.defines=["hittest"]}dispose(){null!=this._fbo&&this._fbo.dispose()}createOptions({pixelRatio:o},n){if(!n.length)return null;const r=n.shift();this._outstanding=r;const l=has("esri-mobile"),h=(l?e:s)*o,a=(l?e:i)*o,c=t,{query:u}=r,f=u.hittestType;let d=[-1,-1,-1,-1],m=[],p=[-1,-1];if("rect"===f){const t=u.input;m=[[t.x,t.y],[t.x,t.y+t.height],[t.x+t.width,t.y+t.height],[t.x+t.width,t.y]];let e=1/0,s=1/0,i=-1/0,o=-1/0;for(const[n,r]of m)e=Math.min(e,n),s=Math.min(s,r),i=Math.max(i,n),o=Math.max(o,r);d=[e,s,i,o]}else if("point"===f){const t=u.input;p=[t.x,t.y]}return{type:"hittest",distance:h,smallSymbolDistance:a,smallSymbolSizeThreshold:c,position:p,tlbr:d,hittestType:f}}bind(t){const{context:e,attributeView:s}=t;if(!s.size)return;const i=s.getBlock(2);if(null==i)return;const o=i.getFBO(e);e.setViewport(0,0,s.size,s.size),e.bindFramebuffer(o),e.setColorMask(!0,!0,!0,!0),e.setClearColor(0,0,0,0),e.clear(16640)}unbind(){}draw(t){if(null==this._outstanding)return;const e=this._outstanding;this._outstanding=null,this._resolve(t,e.resolvers)}async _resolve(t,e){const{context:s,attributeView:i}=t,o=i.getBlock(2);if(null==o)return void e.forEach(t=>t.resolve([]));const r=o.getFBO(s),l=new Uint8Array(r.width*r.height*4);try{await r.readPixelsAsync(0,0,r.width,r.height,6408,n.UNSIGNED_BYTE,l)}catch(a){return void e.forEach(t=>t.resolve([]))}const h=[];for(let n=0;n<l.length;n+=4){const t=n/4;l[n]&&h.push(t)}e.forEach(t=>t.resolve(h))}}export{r as HittestEffect};
2
+ import has from"../../../../../core/has.js";import{hittestSmallSymbolThreshold as t,hittestToleranceMobile as e,hittestToleranceDesktop as i,hittestToleranceSmallSymbol as s}from"../definitions.js";import{Effect as o}from"./Effect.js";import{PixelType as n}from"../../../../webgl/enums.js";class r extends o{constructor(){super(...arguments),this.name=this.constructor.name,this.defines=["hittest"]}dispose(){null!=this._fbo&&this._fbo.dispose()}createOptions({pixelRatio:o},n){if(!n.length)return null;const r=n.shift();this._outstanding=r;const l=has("esri-mobile"),a=(l?e:i)*o,h=(l?e:s)*o,c=t,{query:d}=r,u=d.hittestType;let f=[-1,-1,-1,-1],m=[],p=[-1,-1];if("rect"===u){const t=d.input;m=[[t.x,t.y],[t.x,t.y+t.height],[t.x+t.width,t.y+t.height],[t.x+t.width,t.y]];let e=1/0,i=1/0,s=-1/0,o=-1/0;for(const[n,r]of m)e=Math.min(e,n),i=Math.min(i,r),s=Math.max(s,n),o=Math.max(o,r);f=[e,i,s,o]}else if("point"===u){const t=d.input;p=[t.x,t.y]}return{type:"hittest",distance:a,smallSymbolDistance:h,smallSymbolSizeThreshold:c,position:p,tlbr:f,hittestType:u}}bind(t){const{context:e,attributeView:i}=t;if(!i.size)return;const s=i.getBlock(2);if(null==s)return;const o=s.getFBO(e);e.setViewport(0,0,i.size,i.size),e.bindFramebuffer(o),e.setColorMask(!0,!0,!0,!0),e.setClearColor(0,0,0,0),e.clear(16640)}unbind(){}draw(t){if(null==this._outstanding)return;const e=this._outstanding;this._outstanding=null,this._resolve(t,e.resolvers)}async _resolve(t,e){const{context:i,attributeView:s}=t,o=s.getBlock(2);if(null==o)return void e.forEach(t=>t.resolve({trueHitIds:[],candidateHitIds:[]}));const r=o.getFBO(i),l=new Uint8Array(r.width*r.height);try{await r.readPixelsAsync(0,0,r.width,r.height,6403,n.UNSIGNED_BYTE,l)}catch(c){return void e.forEach(t=>t.resolve({trueHitIds:[],candidateHitIds:[]}))}const a=[],h=[];for(let n=0;n<l.length;n++){const t=l[n];t>=2?a.push(n):t>=1&&h.push(n)}e.forEach(t=>t.resolve({trueHitIds:a,candidateHitIds:h}))}}export{r as HittestEffect};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{getMetersPerUnitForSR as t}from"../../../../../../core/units.js";import{maxRepresentableInt as e,tileSize as i}from"../../definitions.js";const o={color:{write:[!0,!0,!0,!0],blendMode:"composite"},depth:!1,stencil:{write:!1,test:{compare:514,mask:255,op:{fail:7680,zFail:7680,zPass:7681}}}},n={color:{write:[!0,!0,!0,!0],blendMode:"additive"},depth:!1,stencil:!1},r={...o,color:{write:[!0,!0,!0,!0],blendMode:"delete"}};function s({pixelRatio:e,state:i,displayLevel:o,requiredLevel:n},r){const s=1/2**(o-r.key.level),l=1/2**(n-r.key.level);return{displayMat3:i.displayMat3,displayViewMat3:i.displayViewMat3,displayViewScreenMat3:r.transforms.displayViewScreenMat3,viewMat3:i.viewMat3,tileMat3:r.transforms.tileMat3,displayZoomFactor:s,requiredZoomFactor:l,tileOffset:[r.x,r.y],currentScale:i.scale,currentZoom:o,metersPerSRUnit:t(i.spatialReference),rotation:i.rotation,pixelRatio:e}}function l(t){return"highlight"===t.passOptions?.type}function a(t){return"hittest"===t.passOptions?.type}function c(t){if(!a(t))return null;const{position:e,distance:i,smallSymbolDistance:o,smallSymbolSizeThreshold:n,tlbr:r}=t.passOptions;return{position:e,distance:i,smallSymbolDistance:o,smallSymbolSizeThreshold:n,tlbr:r}}function u(t){if(!l(t))return null;const{activeReasons:e,highlightAll:i}=t.passOptions;return{activeReasons:e,highlightAll:i?1:0}}function p(t,e,i){const o={};for(const n in i)"function"!=typeof i[n]?o[n]=i[n]:o[n]=i[n](t,e);return o}function f(t,e){return{storage:t.attributeView.getUniforms(),view:s(t,e),hittestRequest:c(t),highlight:u(t)}}function d(t){return t.attributeView.getTextures(t.context)}function m(t){return{storageTextures:d(t)}}function h(t){return{inside:2===t.selection,outside:3===t.selection}}function y(t){return a(t)?n:l(t)&&"clear"===t.passOptions.stepType?r:o}function M(t){const{row:o,col:n}=t.key,r=n*i,s=o*i;return{tileOffsetFromLocalOrigin:[r%e,s%e],maxIntsToLocalOrigin:[Math.floor(r/e),Math.floor(s/e)]}}export{y as getFeaturePipelineState,d as getFeatureStorageTextures,m as getFeatureTextures,f as getFeatureUniforms,M as getLocalTileOffset,h as getSelectionDefines,s as getViewUniforms,l as isHighlight,a as isHittest,p as resolveDynamicUniforms};
2
+ import{getMetersPerUnitForSR as t}from"../../../../../../core/units.js";import{maxRepresentableInt as e,tileSize as i}from"../../definitions.js";const o={color:{write:[!0,!0,!0,!0],blendMode:"composite"},depth:!1,stencil:{write:!1,test:{compare:514,mask:255,op:{fail:7680,zFail:7680,zPass:7681}}}},n={color:{write:[!0,!0,!0,!0],blendParameters:{srcRGB:1,dstRGB:1,srcAlpha:1,dstAlpha:1},blendEquation:32776,blendMode:"custom"},depth:!1,stencil:!1},s={...o,color:{write:[!0,!0,!0,!0],blendMode:"delete"}};function r({pixelRatio:e,state:i,displayLevel:o,requiredLevel:n},s){const r=1/2**(o-s.key.level),l=1/2**(n-s.key.level);return{displayMat3:i.displayMat3,displayViewMat3:i.displayViewMat3,displayViewScreenMat3:s.transforms.displayViewScreenMat3,viewMat3:i.viewMat3,tileMat3:s.transforms.tileMat3,displayZoomFactor:r,requiredZoomFactor:l,tileOffset:[s.x,s.y],currentScale:i.scale,currentZoom:o,metersPerSRUnit:t(i.spatialReference),rotation:i.rotation,pixelRatio:e}}function l(t){return"highlight"===t.passOptions?.type}function a(t){return"hittest"===t.passOptions?.type}function c(t){if(!a(t))return null;const{position:e,distance:i,smallSymbolDistance:o,smallSymbolSizeThreshold:n,tlbr:s}=t.passOptions;return{position:e,distance:i,smallSymbolDistance:o,smallSymbolSizeThreshold:n,tlbr:s}}function u(t){if(!l(t))return null;const{activeReasons:e,highlightAll:i}=t.passOptions;return{activeReasons:e,highlightAll:i?1:0}}function p(t,e,i){const o={};for(const n in i)"function"!=typeof i[n]?o[n]=i[n]:o[n]=i[n](t,e);return o}function f(t,e){return{storage:t.attributeView.getUniforms(),view:r(t,e),hittestRequest:c(t),highlight:u(t)}}function d(t){return t.attributeView.getTextures(t.context)}function m(t){return{storageTextures:d(t)}}function h(t){return{inside:2===t.selection,outside:3===t.selection}}function y(t){return a(t)?n:l(t)&&"clear"===t.passOptions.stepType?s:o}function M(t){const{row:o,col:n}=t.key,s=n*i,r=o*i;return{tileOffsetFromLocalOrigin:[s%e,r%e],maxIntsToLocalOrigin:[Math.floor(s/e),Math.floor(r/e)]}}export{y as getFeaturePipelineState,d as getFeatureStorageTextures,m as getFeatureTextures,f as getFeatureUniforms,M as getLocalTileOffset,h as getSelectionDefines,r as getViewUniforms,l as isHighlight,a as isHittest,p as resolveDynamicUniforms};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{location as i,option as o,uniform as s,texture as r,input as l,ComputeVertexInput as a}from"../../GraphShaderModule.js";import{Vec3 as p,min as n,max as u,Float as d,Mat3 as m,Vec4 as y,ifElse as h,lessThan as c,greaterThan as x,equal as v,texture2D as V,clamp as f,abs as w,mix as S,distance as b,Vec2 as g,negate as C,step as M,Sampler2D as z}from"../../graph/glsl.js";import{MarkerConstants as _}from"./markerConstants.js";import{AFeatureShader as R,FeatureVertexInput as j,FeatureFragmentInput as U}from"../shaders/AFeatureShader.js";import{c256ToRad as N,softEdgeRatio as T}from"../shaders/constants.js";import{isRectHittest as D,hittestScreenRect as q,distPointTriangle as F,xyToBarycentric as O,inTriangle as k,failHittest as A}from"../shaders/hittestUtils.js";import{MosaicInfo as P}from"../shaders/MosaicInfo.js";import{getBit as I,getBitBool as H,rgba2float as G}from"../shaders/utils.js";import{VisualVariableColor as L}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as B}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as E}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as J}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as K}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as Q}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as W}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as X,getVisualVariableColor as Y,getVisualVariableSize as Z,getVisualVariableRotation as $}from"../shaders/vvUtils.js";class tt extends j{}t([i(3,y)],tt.prototype,"color",void 0),t([i(4,y)],tt.prototype,"outlineColor",void 0),t([i(5,g)],tt.prototype,"offset",void 0),t([i(6,g)],tt.prototype,"textureUV",void 0),t([i(7,y)],tt.prototype,"sizing",void 0),t([i(8,d)],tt.prototype,"placementAngle",void 0),t([i(9,d)],tt.prototype,"sdfDecodeCoeff",void 0),t([i(10,g)],tt.prototype,"zoomRange",void 0);class et extends a{}t([i(11,g)],et.prototype,"offsetNextVertex1",void 0),t([i(12,g)],et.prototype,"offsetNextVertex2",void 0),t([i(13,g)],et.prototype,"textureUVNextVertex1",void 0),t([i(14,g)],et.prototype,"textureUVNextVertex2",void 0);class it extends U{}function ot(t,e,i,o){return e.multiply(t.x).add(i.multiply(t.y)).add(o.multiply(t.z))}function st(t){return t.multiply(t).divide(128)}class rt extends R{constructor(){super(...arguments),this.type="MarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],textureUV:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=st(t.sizing.x),o=st(t.sizing.y),s=st(t.sizing.z),r=t.placementAngle,l=I(t.bitset,_.bitset.isSDF),a=I(t.bitset,_.bitset.isMapAligned),h=I(t.bitset,_.bitset.scaleSymbolsProportionally),c=H(t.bitset,_.bitset.colorLocked),x=X(this,t.id),v=Y(this,t.id,t.color,c).multiply(x),V=this.view.displayViewScreenMat3.multiply(new p(t.pos.xy,1)),f=Z(this,t.id,s).divide(s),w=i.multiply(f),S=t.offset.xy.multiply(f);let b=o.multiply(h.multiply(f.subtract(1)).add(1));b=n(b,u(w.subtract(.99),new d(0)));const g=u(b,new d(1)),C=n(b,new d(1)),M=m.fromRotation(r.multiply(N)),z=$(this,t.id),R=this._getViewRotationMatrix(a).multiply(z).multiply(M).multiply(new p(S.xy,0)),j=this.clip(t.id,t.zoomRange),U=new y(V.xy.add(R.xy),j,1),T=t.textureUV.divide(this.mosaicInfo.size),D=t.outlineColor.multiply(C),q=I(t.bitset,_.bitset.overrideOutlineColor),F=t.sdfDecodeCoeff.multiply(w);return{glPosition:U,color:v,textureUV:T,outlineColor:D,outlineSize:g,distanceToPx:F,isSDF:l,overrideOutlineColor:q,...this.maybeRunHittest(t,e,{pos:t.pos,size:w,sizeCorrection:f,isMapAligned:a,vvRotationMat3:z,placementMat3:M,outlineSize:g,distanceToPx:F,isSDF:l})}}fragment(t){const e=this._getColor(t.textureUV,t);return this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:o,pos1:s,pos2:r}=this.computeHittestTriangle(t,e,i),l=D(this.hittestRequest);return h(l,()=>{const{tlbr:t}=this.hittestRequest;return q(o,s,r,t)},()=>{const o=h(c(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i));return h(x(o,this.hittestRequest.distance),new d(0),new d(1))})}_getViewRotationMatrix(t){const e=this.view.displayViewMat3,i=this.view.displayMat3,o=new d(1).subtract(t);return e.multiply(t).add(i.multiply(o))}_getViewScreenMatrix(t){const e=this.view.viewMat3.multiply(this.view.tileMat3),i=this.view.tileMat3,o=new d(1).subtract(t);return e.multiply(t).add(i.multiply(o))}_getColor(t,e){return h(v(e.isSDF,new d(1)),this._getSDFColor(t,e),this._getSpriteColor(t,e))}_getSpriteColor(t,e){return V(this.mosaicTexture,t).multiply(e.color)}_getSDFColor(t,e){const i=V(this.mosaicTexture,t),o=new d(.5).subtract(G(i)).multiply(e.distanceToPx).multiply(T),s=f(new d(.5).subtract(o),new d(0),new d(1)),r=e.color.multiply(s);let l=e.outlineSize;this.highlight&&(l=u(l,e.overrideOutlineColor.multiply(4)));const a=l.multiply(.5),p=w(o).subtract(a),n=f(new d(.5).subtract(p),new d(0),new d(1)),m=S(e.outlineColor,e.color,e.overrideOutlineColor).multiply(n);return new d(1).subtract(m.a).multiply(r).add(m)}_hittestSmallMarker(t,e,i){const{position:o,distance:s,smallSymbolDistance:r}=this.hittestRequest,l=s.subtract(r),{viewMat3:a,tileMat3:n}=this.view,u=a.multiply(n).multiply(new p(i.pos,1)).xy,d=i.size.multiply(.5);return b(u,o).subtract(d).add(l)}_hittestMarker(t,e,i){const{pos0:o,pos1:s,pos2:r}=this.computeHittestTriangle(t,e,i),l=this.hittestRequest.position,a=this.hittestRequest.distance,p=F(l,o,s,r);return h(x(p,a),p,this._hittestSamples(o,s,r,t,e,i))}computeHittestTriangle(t,e,i){const{pos:o,sizeCorrection:s,isMapAligned:r}=i,l=new p(t.offset.multiply(s),0),a=new p(e.offsetNextVertex1.multiply(s),0),n=new p(e.offsetNextVertex2.multiply(s),0),{viewMat3:u,tileMat3:d}=this.view,m=u.multiply(d).multiply(new p(o,1)),y=this._getViewScreenMatrix(r).multiply(i.vvRotationMat3).multiply(i.placementMat3);return{pos0:m.add(y.multiply(l)).xy,pos1:m.add(y.multiply(a)).xy,pos2:m.add(y.multiply(n)).xy}}_hittestSamples(t,e,i,o,s,r){const{outlineSize:l,isSDF:a,distanceToPx:p}=r,n=this.hittestRequest.position,u=this.hittestRequest.distance,m=O(n.add(new g(C(u),C(u))),t,e,i),h=O(n.add(new g(0,C(u))),t,e,i),c=O(n.add(new g(u,C(u))),t,e,i),x=O(n.add(new g(C(u),0)),t,e,i),v=O(n,t,e,i),V=O(n.add(new g(u,0)),t,e,i),f=O(n.add(new g(C(u),u)),t,e,i),w=O(n.add(new g(0,u)),t,e,i),S=O(n.add(new g(u,u)),t,e,i),b=o.textureUV.divide(this.mosaicInfo.size),z=s.textureUVNextVertex1.divide(this.mosaicInfo.size),_=s.textureUVNextVertex2.divide(this.mosaicInfo.size),R={color:new y(1),outlineColor:new y(1),overrideOutlineColor:new d(1),outlineSize:l,distanceToPx:p,isSDF:a};let j=new d(0);return j=j.add(k(m).multiply(this._getColor(ot(m,b,z,_),R).a)),j=j.add(k(h).multiply(this._getColor(ot(h,b,z,_),R).a)),j=j.add(k(c).multiply(this._getColor(ot(c,b,z,_),R).a)),j=j.add(k(x).multiply(this._getColor(ot(x,b,z,_),R).a)),j=j.add(k(v).multiply(this._getColor(ot(v,b,z,_),R).a)),j=j.add(k(V).multiply(this._getColor(ot(V,b,z,_),R).a)),j=j.add(k(f).multiply(this._getColor(ot(f,b,z,_),R).a)),j=j.add(k(w).multiply(this._getColor(ot(w,b,z,_),R).a)),j=j.add(k(S).multiply(this._getColor(ot(S,b,z,_),R).a)),M(j,new d(.05)).multiply(A(this.hittestRequest))}}t([o(L)],rt.prototype,"visualVariableColor",void 0),t([o(B)],rt.prototype,"visualVariableOpacity",void 0),t([o(E)],rt.prototype,"visualVariableRotation",void 0),t([o(J)],rt.prototype,"visualVariableSizeMinMaxValue",void 0),t([o(K)],rt.prototype,"visualVariableSizeScaleStops",void 0),t([o(Q)],rt.prototype,"visualVariableSizeStops",void 0),t([o(W)],rt.prototype,"visualVariableSizeUnitValue",void 0),t([s(P)],rt.prototype,"mosaicInfo",void 0),t([r(z)],rt.prototype,"mosaicTexture",void 0),t([e(0,l(tt)),e(1,l(et))],rt.prototype,"vertex",null),t([e(0,l(it))],rt.prototype,"fragment",null);export{it as MarkerFragmentInput,rt as MarkerShader,tt as MarkerVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as i,option as o,uniform as s,texture as r,input as l,ComputeVertexInput as a}from"../../GraphShaderModule.js";import{Vec3 as p,min as n,max as u,Float as d,Mat3 as m,Vec4 as y,ifElse as h,lessThan as c,greaterThan as x,equal as v,texture2D as V,clamp as f,abs as w,mix as S,distance as b,Vec2 as g,negate as C,step as M,Sampler2D as z}from"../../graph/glsl.js";import{MarkerConstants as _}from"./markerConstants.js";import{AFeatureShader as R,FeatureVertexInput as j,FeatureFragmentInput as U}from"../shaders/AFeatureShader.js";import{c256ToRad as N,noHit as T,trueHit as D,softEdgeRatio as q}from"../shaders/constants.js";import{isRectHittest as F,hittestScreenRect as O,distPointTriangle as k,xyToBarycentric as A,inTriangle as P,failHittest as I}from"../shaders/hittestUtils.js";import{MosaicInfo as H}from"../shaders/MosaicInfo.js";import{getBit as G,getBitBool as L,rgba2float as B}from"../shaders/utils.js";import{VisualVariableColor as E}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as J}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as K}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as Q}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as W}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as X}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as Y}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as Z,getVisualVariableColor as $,getVisualVariableSize as tt,getVisualVariableRotation as et}from"../shaders/vvUtils.js";class it extends j{}t([i(3,y)],it.prototype,"color",void 0),t([i(4,y)],it.prototype,"outlineColor",void 0),t([i(5,g)],it.prototype,"offset",void 0),t([i(6,g)],it.prototype,"textureUV",void 0),t([i(7,y)],it.prototype,"sizing",void 0),t([i(8,d)],it.prototype,"placementAngle",void 0),t([i(9,d)],it.prototype,"sdfDecodeCoeff",void 0),t([i(10,g)],it.prototype,"zoomRange",void 0);class ot extends a{}t([i(11,g)],ot.prototype,"offsetNextVertex1",void 0),t([i(12,g)],ot.prototype,"offsetNextVertex2",void 0),t([i(13,g)],ot.prototype,"textureUVNextVertex1",void 0),t([i(14,g)],ot.prototype,"textureUVNextVertex2",void 0);class st extends U{}function rt(t,e,i,o){return e.multiply(t.x).add(i.multiply(t.y)).add(o.multiply(t.z))}function lt(t){return t.multiply(t).divide(128)}class at extends R{constructor(){super(...arguments),this.type="MarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],textureUV:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=lt(t.sizing.x),o=lt(t.sizing.y),s=lt(t.sizing.z),r=t.placementAngle,l=G(t.bitset,_.bitset.isSDF),a=G(t.bitset,_.bitset.isMapAligned),h=G(t.bitset,_.bitset.scaleSymbolsProportionally),c=L(t.bitset,_.bitset.colorLocked),x=Z(this,t.id),v=$(this,t.id,t.color,c).multiply(x),V=this.view.displayViewScreenMat3.multiply(new p(t.pos.xy,1)),f=tt(this,t.id,s).divide(s),w=i.multiply(f),S=t.offset.xy.multiply(f);let b=o.multiply(h.multiply(f.subtract(1)).add(1));b=n(b,u(w.subtract(.99),new d(0)));const g=u(b,new d(1)),C=n(b,new d(1)),M=m.fromRotation(r.multiply(N)),z=et(this,t.id),R=this._getViewRotationMatrix(a).multiply(z).multiply(M).multiply(new p(S.xy,0)),j=this.clip(t.id,t.zoomRange),U=new y(V.xy.add(R.xy),j,1),T=t.textureUV.divide(this.mosaicInfo.size),D=t.outlineColor.multiply(C),q=G(t.bitset,_.bitset.overrideOutlineColor),F=t.sdfDecodeCoeff.multiply(w);return{glPosition:U,color:v,textureUV:T,outlineColor:D,outlineSize:g,distanceToPx:F,isSDF:l,overrideOutlineColor:q,...this.maybeRunHittest(t,e,{pos:t.pos,size:w,sizeCorrection:f,isMapAligned:a,vvRotationMat3:z,placementMat3:M,outlineSize:g,distanceToPx:F,isSDF:l})}}fragment(t){const e=this._getColor(t.textureUV,t);return this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:o,pos1:s,pos2:r}=this.computeHittestTriangle(t,e,i),l=F(this.hittestRequest);return h(l,()=>{const{tlbr:t}=this.hittestRequest;return O(o,s,r,t)},()=>{const o=h(c(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i));return h(x(o,this.hittestRequest.distance),new d(T),new d(D))})}_getViewRotationMatrix(t){const e=this.view.displayViewMat3,i=this.view.displayMat3,o=new d(1).subtract(t);return e.multiply(t).add(i.multiply(o))}_getViewScreenMatrix(t){const e=this.view.viewMat3.multiply(this.view.tileMat3),i=this.view.tileMat3,o=new d(1).subtract(t);return e.multiply(t).add(i.multiply(o))}_getColor(t,e){return h(v(e.isSDF,new d(1)),this._getSDFColor(t,e),this._getSpriteColor(t,e))}_getSpriteColor(t,e){return V(this.mosaicTexture,t).multiply(e.color)}_getSDFColor(t,e){const i=V(this.mosaicTexture,t),o=new d(.5).subtract(B(i)).multiply(e.distanceToPx).multiply(q),s=f(new d(.5).subtract(o),new d(0),new d(1)),r=e.color.multiply(s);let l=e.outlineSize;this.highlight&&(l=u(l,e.overrideOutlineColor.multiply(4)));const a=l.multiply(.5),p=w(o).subtract(a),n=f(new d(.5).subtract(p),new d(0),new d(1)),m=S(e.outlineColor,e.color,e.overrideOutlineColor).multiply(n);return new d(1).subtract(m.a).multiply(r).add(m)}_hittestSmallMarker(t,e,i){const{position:o,distance:s,smallSymbolDistance:r}=this.hittestRequest,l=s.subtract(r),{viewMat3:a,tileMat3:n}=this.view,u=a.multiply(n).multiply(new p(i.pos,1)).xy,d=i.size.multiply(.5);return b(u,o).subtract(d).add(l)}_hittestMarker(t,e,i){const{pos0:o,pos1:s,pos2:r}=this.computeHittestTriangle(t,e,i),l=this.hittestRequest.position,a=this.hittestRequest.distance,p=k(l,o,s,r);return h(x(p,a),p,this._hittestSamples(o,s,r,t,e,i))}computeHittestTriangle(t,e,i){const{pos:o,sizeCorrection:s,isMapAligned:r}=i,l=new p(t.offset.multiply(s),0),a=new p(e.offsetNextVertex1.multiply(s),0),n=new p(e.offsetNextVertex2.multiply(s),0),{viewMat3:u,tileMat3:d}=this.view,m=u.multiply(d).multiply(new p(o,1)),y=this._getViewScreenMatrix(r).multiply(i.vvRotationMat3).multiply(i.placementMat3);return{pos0:m.add(y.multiply(l)).xy,pos1:m.add(y.multiply(a)).xy,pos2:m.add(y.multiply(n)).xy}}_hittestSamples(t,e,i,o,s,r){const{outlineSize:l,isSDF:a,distanceToPx:p}=r,n=this.hittestRequest.position,u=this.hittestRequest.distance,m=A(n.add(new g(C(u),C(u))),t,e,i),h=A(n.add(new g(0,C(u))),t,e,i),c=A(n.add(new g(u,C(u))),t,e,i),x=A(n.add(new g(C(u),0)),t,e,i),v=A(n,t,e,i),V=A(n.add(new g(u,0)),t,e,i),f=A(n.add(new g(C(u),u)),t,e,i),w=A(n.add(new g(0,u)),t,e,i),S=A(n.add(new g(u,u)),t,e,i),b=o.textureUV.divide(this.mosaicInfo.size),z=s.textureUVNextVertex1.divide(this.mosaicInfo.size),_=s.textureUVNextVertex2.divide(this.mosaicInfo.size),R={color:new y(1),outlineColor:new y(1),overrideOutlineColor:new d(1),outlineSize:l,distanceToPx:p,isSDF:a};let j=new d(0);return j=j.add(P(m).multiply(this._getColor(rt(m,b,z,_),R).a)),j=j.add(P(h).multiply(this._getColor(rt(h,b,z,_),R).a)),j=j.add(P(c).multiply(this._getColor(rt(c,b,z,_),R).a)),j=j.add(P(x).multiply(this._getColor(rt(x,b,z,_),R).a)),j=j.add(P(v).multiply(this._getColor(rt(v,b,z,_),R).a)),j=j.add(P(V).multiply(this._getColor(rt(V,b,z,_),R).a)),j=j.add(P(f).multiply(this._getColor(rt(f,b,z,_),R).a)),j=j.add(P(w).multiply(this._getColor(rt(w,b,z,_),R).a)),j=j.add(P(S).multiply(this._getColor(rt(S,b,z,_),R).a)),M(j,new d(.05)).multiply(I(this.hittestRequest))}}t([o(E)],at.prototype,"visualVariableColor",void 0),t([o(J)],at.prototype,"visualVariableOpacity",void 0),t([o(K)],at.prototype,"visualVariableRotation",void 0),t([o(Q)],at.prototype,"visualVariableSizeMinMaxValue",void 0),t([o(W)],at.prototype,"visualVariableSizeScaleStops",void 0),t([o(X)],at.prototype,"visualVariableSizeStops",void 0),t([o(Y)],at.prototype,"visualVariableSizeUnitValue",void 0),t([s(H)],at.prototype,"mosaicInfo",void 0),t([r(z)],at.prototype,"mosaicTexture",void 0),t([e(0,l(it)),e(1,l(ot))],at.prototype,"vertex",null),t([e(0,l(st))],at.prototype,"fragment",null);export{st as MarkerFragmentInput,at as MarkerShader,it as MarkerVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{maxHighlightReasons as e}from"../../../definitions.js";import{GraphShaderModule as i,FragmentOutput as o,location as r,define as s,option as a,uniform as l,texture as h,VertexInput as g,ComputeVertexInput as u,FragmentInput as n}from"../../GraphShaderModule.js";import{Float as p,float as d,step as m,Vec4 as c,Vec3 as y,ifElse as w,equal as b,Vec2 as x}from"../../graph/glsl.js";import{EntityStorage as v,EntityStorageTextures as f}from"./EntityStorage.js";import{ShaderHighlight as C}from"./ShaderHighlight.js";import{ShaderHittest as H}from"./ShaderHittest.js";import{getFilterBit as V,getHighlightBit as D,getBit as A,uvToClip as T}from"./utils.js";import{ViewInfo as _}from"./ViewInfo.js";class j extends g{}t([r(0,y)],j.prototype,"id",void 0),t([r(1,p)],j.prototype,"bitset",void 0),t([r(2,x)],j.prototype,"pos",void 0);class R extends u{}t([r(14,x)],R.prototype,"nextPos1",void 0),t([r(15,x)],R.prototype,"nextPos2",void 0);class F extends n{}class S extends i{clip(t,e){let i=new p(0);const o=this.getFilterFlags(t);if(i=i.add(d(2).multiply(d(1).subtract(V(o,0)))),this.inside?i=i.add(d(2).multiply(d(1).subtract(V(o,1)))):this.outside?i=i.add(d(2).multiply(V(o,1))):this.highlight&&(i=i.add(d(2).multiply(d(1).subtract(this._checkHighlight(o))))),null!=e){const t=new p(1).subtract(m(e.x,this.view.currentZoom)),o=m(e.y,this.view.currentZoom);i=i.add(new p(2).multiply(t.add(o)))}return i}getFragmentOutput(t,e,i=new p(1/255)){const r=new o;return r.fragColor=this._maybeWriteHittest(e)??this._maybeHighlight(t,i)??t,r}_maybeHighlight(t,e){return this.highlight?new c(t.rgb,m(e,t.a)):null}_checkHighlight(t){let i=this._checkHighlightBit(t,0);for(let o=1;o<e;o++)i=i.add(this._checkHighlightBit(t,o));return m(new p(.1),i.add(this.highlight.highlightAll))}_checkHighlightBit(t,e){return D(t,e).multiply(A(this.highlight.activeReasons,e))}computeHittestTriangle(t,e,i){const{viewMat3:o,tileMat3:r}=this.view,s=o.multiply(r),{nextPos1:a,nextPos2:l}=e;return{pos0:s.multiply(new y(t.pos,1)).xy,pos1:s.multiply(new y(a,1)).xy,pos2:s.multiply(new y(l,1)).xy}}maybeRunHittest(t,e,i){if(null==this.hittestRequest)return null;const o=this.hittest(t,e,i);let r=w(b(o,new p(1)),new p(0),new p(2));const s=this.getAttributeDataCoords(t.id),a=T(s);r=r.add(this.clip(t.id,t.zoomRange));const l=new c(new p(1/255),0,0,0);return{glPointSize:new p(1),glPosition:new c(a,r,1),color:l}}_maybeWriteHittest(t){return null!=this.hittestRequest?t.color:null}getAttributeDataCoords(t){return this.storage.getAttributeDataCoords(t)}getVVData(t){return this.storageTextures.getVVData(this.getAttributeDataCoords(t))}getFilterFlags(t){return this.storageTextures.getFilterFlags(this.getAttributeDataCoords(t))}getLocalTimeOrigin(t){return this.storageTextures.getLocalTimeOrigin(this.getAttributeDataCoords(t))}getSizeValue(t){return this.storageTextures.getSizeValue(this.getAttributeDataCoords(t))}getColorValue(t){return this.storageTextures.getColorValue(this.getAttributeDataCoords(t))}getOpacityValue(t){return this.storageTextures.getOpacityValue(this.getAttributeDataCoords(t))}getRotationValue(t){return this.storageTextures.getRotationValue(this.getAttributeDataCoords(t))}}t([s],S.prototype,"inside",void 0),t([s],S.prototype,"outside",void 0),t([a(C)],S.prototype,"highlight",void 0),t([l(v)],S.prototype,"storage",void 0),t([h(f)],S.prototype,"storageTextures",void 0),t([l(_)],S.prototype,"view",void 0),t([a(H)],S.prototype,"hittestRequest",void 0);export{S as AFeatureShader,R as BaseHittestVertexInput,F as FeatureFragmentInput,j as FeatureVertexInput};
2
+ import{__decorate as t}from"tslib";import{maxHighlightReasons as e}from"../../../definitions.js";import{GraphShaderModule as i,FragmentOutput as o,location as r,define as s,option as a,uniform as l,texture as h,VertexInput as g,ComputeVertexInput as n,FragmentInput as u}from"../../GraphShaderModule.js";import{Float as p,float as d,step as m,Vec4 as c,Vec3 as y,equal as w,ifElse as b,or as x,Vec2 as v}from"../../graph/glsl.js";import{trueHit as f,candidateHit as C,noHit as H}from"./constants.js";import{EntityStorage as V,EntityStorageTextures as D}from"./EntityStorage.js";import{ShaderHighlight as A}from"./ShaderHighlight.js";import{ShaderHittest as T}from"./ShaderHittest.js";import{getFilterBit as j,getHighlightBit as _,getBit as R,uvToClip as F}from"./utils.js";import{ViewInfo as S}from"./ViewInfo.js";class P extends g{}t([r(0,y)],P.prototype,"id",void 0),t([r(1,p)],P.prototype,"bitset",void 0),t([r(2,v)],P.prototype,"pos",void 0);class k extends n{}t([r(14,v)],k.prototype,"nextPos1",void 0),t([r(15,v)],k.prototype,"nextPos2",void 0);class O extends u{}class z extends i{clip(t,e){let i=new p(0);const o=this.getFilterFlags(t);if(i=i.add(d(2).multiply(d(1).subtract(j(o,0)))),this.inside?i=i.add(d(2).multiply(d(1).subtract(j(o,1)))):this.outside?i=i.add(d(2).multiply(j(o,1))):this.highlight&&(i=i.add(d(2).multiply(d(1).subtract(this._checkHighlight(o))))),null!=e){const t=new p(1).subtract(m(e.x,this.view.currentZoom)),o=m(e.y,this.view.currentZoom);i=i.add(new p(2).multiply(t.add(o)))}return i}getFragmentOutput(t,e,i=new p(1/255)){const r=new o;return r.fragColor=this._maybeWriteHittest(e)??this._maybeHighlight(t,i)??t,r}_maybeHighlight(t,e){return this.highlight?new c(t.rgb,m(e,t.a)):null}_checkHighlight(t){let i=this._checkHighlightBit(t,0);for(let o=1;o<e;o++)i=i.add(this._checkHighlightBit(t,o));return m(new p(.1),i.add(this.highlight.highlightAll))}_checkHighlightBit(t,e){return _(t,e).multiply(R(this.highlight.activeReasons,e))}computeHittestTriangle(t,e,i){const{viewMat3:o,tileMat3:r}=this.view,s=o.multiply(r),{nextPos1:a,nextPos2:l}=e;return{pos0:s.multiply(new y(t.pos,1)).xy,pos1:s.multiply(new y(a,1)).xy,pos2:s.multiply(new y(l,1)).xy}}maybeRunHittest(t,e,i){if(null==this.hittestRequest)return null;const o=this.hittest(t,e,i),r=w(o,new p(f)),s=w(o,new p(C)),a=b(s,()=>new c(new p(1/255),0,0,0),b(r,()=>new c(new p(2/255),0,0,0),new c(H)));let l=b(x(r,s),new p(0),new p(2));const h=this.getAttributeDataCoords(t.id),g=F(h);return l=l.add(this.clip(t.id,t.zoomRange)),{glPointSize:new p(1),glPosition:new c(g,l,1),color:a}}_maybeWriteHittest(t){return null!=this.hittestRequest?t.color:null}getAttributeDataCoords(t){return this.storage.getAttributeDataCoords(t)}getVVData(t){return this.storageTextures.getVVData(this.getAttributeDataCoords(t))}getFilterFlags(t){return this.storageTextures.getFilterFlags(this.getAttributeDataCoords(t))}getLocalTimeOrigin(t){return this.storageTextures.getLocalTimeOrigin(this.getAttributeDataCoords(t))}getSizeValue(t){return this.storageTextures.getSizeValue(this.getAttributeDataCoords(t))}getColorValue(t){return this.storageTextures.getColorValue(this.getAttributeDataCoords(t))}getOpacityValue(t){return this.storageTextures.getOpacityValue(this.getAttributeDataCoords(t))}getRotationValue(t){return this.storageTextures.getRotationValue(this.getAttributeDataCoords(t))}}t([s],z.prototype,"inside",void 0),t([s],z.prototype,"outside",void 0),t([a(A)],z.prototype,"highlight",void 0),t([l(V)],z.prototype,"storage",void 0),t([h(D)],z.prototype,"storageTextures",void 0),t([l(S)],z.prototype,"view",void 0),t([a(T)],z.prototype,"hittestRequest",void 0);export{z as AFeatureShader,k as BaseHittestVertexInput,O as FeatureFragmentInput,P as FeatureVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{location as o,option as r,input as s}from"../../GraphShaderModule.js";import{Vec3 as i,Vec4 as l,Float as p,ifElse as n,greaterThan as a,Vec2 as u}from"../../graph/glsl.js";import{AFeatureShader as m,BaseHittestVertexInput as h,FeatureFragmentInput as c,FeatureVertexInput as d}from"./AFeatureShader.js";import{isRectHittest as y,hittestFill as v,hittestScreenRect as f}from"./hittestUtils.js";import{VisualVariableColor as g}from"./VisualVariableColor.js";import{VisualVariableOpacity as x}from"./VisualVariableOpacity.js";import{getVisualVariableOpacity as b,getVisualVariableColor as j}from"./vvUtils.js";class w extends d{}t([o(3,l)],w.prototype,"color",void 0),t([o(4,u)],w.prototype,"zoomRange",void 0);class V extends m{constructor(){super(...arguments),this.type="FillShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,e){const o=b(this,t.id),r=j(this,t.id,t.color).multiply(o),s=this.view.displayViewScreenMat3.multiply(new i(t.pos.xy,1)),p=this.clip(t.id,t.zoomRange);return{glPosition:new l(s.xy,p,1),color:r,...this.maybeRunHittest(t,e,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new p(0))}hittest(t,e){const{pos0:o,pos1:r,pos2:s}=this.computeHittestTriangle(t,e,null),i=y(this.hittestRequest);return n(i,()=>{const{tlbr:t}=this.hittestRequest;return f(o,r,s,t)},()=>{const o=v(this,t,e);return n(a(o,this.hittestRequest.distance),new p(0),new p(1))})}}t([r(g)],V.prototype,"visualVariableColor",void 0),t([r(x)],V.prototype,"visualVariableOpacity",void 0),t([e(0,s(w)),e(1,s(h))],V.prototype,"vertex",null),t([e(0,s(c))],V.prototype,"fragment",null);export{V as FillShader,w as FillVertexInput};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as e,option as s,input as r}from"../../GraphShaderModule.js";import{Vec3 as i,Vec4 as l,Float as p,ifElse as n,greaterThan as a,Vec2 as m}from"../../graph/glsl.js";import{AFeatureShader as u,BaseHittestVertexInput as h,FeatureFragmentInput as c,FeatureVertexInput as d}from"./AFeatureShader.js";import{noHit as y,trueHit as f}from"./constants.js";import{isRectHittest as v,hittestFill as g,hittestScreenRect as x}from"./hittestUtils.js";import{VisualVariableColor as b}from"./VisualVariableColor.js";import{VisualVariableOpacity as j}from"./VisualVariableOpacity.js";import{getVisualVariableOpacity as w,getVisualVariableColor as V}from"./vvUtils.js";class R extends d{}t([e(3,l)],R.prototype,"color",void 0),t([e(4,m)],R.prototype,"zoomRange",void 0);class S extends u{constructor(){super(...arguments),this.type="FillShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,o){const e=w(this,t.id),s=V(this,t.id,t.color).multiply(e),r=this.view.displayViewScreenMat3.multiply(new i(t.pos.xy,1)),p=this.clip(t.id,t.zoomRange);return{glPosition:new l(r.xy,p,1),color:s,...this.maybeRunHittest(t,o,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new p(0))}hittest(t,o){const{pos0:e,pos1:s,pos2:r}=this.computeHittestTriangle(t,o,null),i=v(this.hittestRequest);return n(i,()=>{const{tlbr:t}=this.hittestRequest;return x(e,s,r,t)},()=>{const e=g(this,t,o);return n(a(e,this.hittestRequest.distance),new p(y),new p(f))})}}t([s(b)],S.prototype,"visualVariableColor",void 0),t([s(j)],S.prototype,"visualVariableOpacity",void 0),t([o(0,r(R)),o(1,r(h))],S.prototype,"vertex",null),t([o(0,r(c))],S.prototype,"fragment",null);export{S as FillShader,R as FillVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t,__param as i}from"tslib";import{location as e,uniform as o,option as l,input as r,UniformGroup as a}from"../../GraphShaderModule.js";import{step as s,min as n,ifElse as p,greaterThan as u,Float as m,length as d,clamp as y,max as c,Vec3 as f,Vec4 as h,Vec2 as v}from"../../graph/glsl.js";import{AFeatureShader as w,BaseHittestVertexInput as b,FeatureVertexInput as V,FeatureFragmentInput as S}from"./AFeatureShader.js";import{thinLineWidthFactor as g,thinLineHalfWidth as x,epsilon as j}from"./constants.js";import{isRectHittest as z,distPointSegment as W,hittestScreenRect as M}from"./hittestUtils.js";import{VisualVariableColor as R}from"./VisualVariableColor.js";import{VisualVariableOpacity as C}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as H}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as O}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as U}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as q}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as P,getVisualVariableOpacity as A,hasVisualVariableSize as F,getVisualVariableSize as T}from"./vvUtils.js";class D extends V{}t([e(3,h)],D.prototype,"color",void 0),t([e(4,v)],D.prototype,"offset",void 0),t([e(5,v)],D.prototype,"normal",void 0),t([e(6,m)],D.prototype,"halfWidth",void 0),t([e(7,m)],D.prototype,"referenceHalfWidth",void 0),t([e(8,v)],D.prototype,"zoomRange",void 0);class G extends S{}class L extends a{}function k(t){return c(new m(g).multiply(s(t,new m(x))),new m(1))}function B(t,i){const{halfWidth:e,normal:o}=t,l=k(e),r=d(o).multiply(e);return y(l.multiply(e.subtract(r)).divide(i.add(l).subtract(new m(1))),new m(0),new m(1))}function E(t,i){const{id:e,halfWidth:o,referenceHalfWidth:l}=i;if(F(t)){const i=new m(2).multiply(l),r=T(t,e,i);return new m(.5).multiply(o.divide(c(l,new m(j)))).multiply(r)}return o}function I(t,i){const{id:e,offset:o,pos:l,normal:r,zoomRange:a}=i,{displayViewScreenMat3:n,displayViewMat3:p}=t.view,u=P(t,e,i.color),d=A(t,e),y=E(t,i),v=new m(.5).multiply(t.antialiasingControls.antialiasing),w=c(y.add(v),new m(.45)).add(new m(.1).multiply(v)),b=k(w).multiply(w).multiply(o),V=p.multiply(new f(b,new m(0))),S=n.multiply(new f(l,new m(1))).add(V),g=new m(2).multiply(s(y,new m(0))).add(t.clip(e,a)),x=new h(S.xy,g,1);return{color:u,opacity:d,halfWidth:w,normal:r,scaledOffset:b,scaledHalfWidth:y,glPosition:new h(x.xy,g,1)}}function J(t,i){const{opacity:e,color:o}=t,l=B(t,i);return e.multiply(o).multiply(l)}t([o(m)],L.prototype,"antialiasing",void 0),t([o(m)],L.prototype,"blur",void 0);class K extends w{constructor(){super(...arguments),this.type="LineShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,i){const e=I(this,t);return{...e,...this.maybeRunHittest(t,i,e.halfWidth)}}fragment(t){const i=J(t,this.antialiasingControls.blur);return this.getFragmentOutput(i,t)}hittest(t,i,e){const{pos0:o,pos1:l,pos2:r}=this.computeHittestTriangle(t,i,null),a=z(this.hittestRequest),{distance:d,smallSymbolDistance:y,smallSymbolSizeThreshold:c,tlbr:f}=this.hittestRequest,h=s(e,c.multiply(.5)).multiply(d.subtract(y)),v=this.hittestRequest.position,w=n(W(v,o,l),W(v,o,r)).subtract(e).add(h);return p(a,M(o,l,r,f),p(u(w,d),new m(0),new m(1)))}}t([o(L)],K.prototype,"antialiasingControls",void 0),t([l(R)],K.prototype,"visualVariableColor",void 0),t([l(C)],K.prototype,"visualVariableOpacity",void 0),t([l(H)],K.prototype,"visualVariableSizeMinMaxValue",void 0),t([l(O)],K.prototype,"visualVariableSizeScaleStops",void 0),t([l(U)],K.prototype,"visualVariableSizeStops",void 0),t([l(q)],K.prototype,"visualVariableSizeUnitValue",void 0),t([i(0,r(D)),i(1,r(b))],K.prototype,"vertex",null),t([i(0,r(G))],K.prototype,"fragment",null);export{L as AntialiasingControls,G as LineFragmentInput,K as LineShader,D as LineVertexInput,B as getLineAntialiasing,J as getLineFragmentColor,k as getLineThinFactor,I as getLineVertexData};
2
+ import{__decorate as t,__param as i}from"tslib";import{location as e,uniform as o,option as l,input as r,UniformGroup as a}from"../../GraphShaderModule.js";import{step as s,min as n,ifElse as p,greaterThan as u,Float as m,length as d,clamp as y,max as c,Vec3 as f,Vec4 as h,Vec2 as v}from"../../graph/glsl.js";import{AFeatureShader as w,BaseHittestVertexInput as b,FeatureVertexInput as V,FeatureFragmentInput as S}from"./AFeatureShader.js";import{noHit as g,trueHit as x,thinLineWidthFactor as j,thinLineHalfWidth as z,epsilon as W}from"./constants.js";import{isRectHittest as M,distPointSegment as R,hittestScreenRect as C}from"./hittestUtils.js";import{VisualVariableColor as H}from"./VisualVariableColor.js";import{VisualVariableOpacity as O}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as U}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as q}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as P}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as A}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as F,getVisualVariableOpacity as T,hasVisualVariableSize as D,getVisualVariableSize as G}from"./vvUtils.js";class L extends V{}t([e(3,h)],L.prototype,"color",void 0),t([e(4,v)],L.prototype,"offset",void 0),t([e(5,v)],L.prototype,"normal",void 0),t([e(6,m)],L.prototype,"halfWidth",void 0),t([e(7,m)],L.prototype,"referenceHalfWidth",void 0),t([e(8,v)],L.prototype,"zoomRange",void 0);class k extends S{}class B extends a{}function E(t){return c(new m(j).multiply(s(t,new m(z))),new m(1))}function I(t,i){const{halfWidth:e,normal:o}=t,l=E(e),r=d(o).multiply(e);return y(l.multiply(e.subtract(r)).divide(i.add(l).subtract(new m(1))),new m(0),new m(1))}function J(t,i){const{id:e,halfWidth:o,referenceHalfWidth:l}=i;if(D(t)){const i=new m(2).multiply(l),r=G(t,e,i);return new m(.5).multiply(o.divide(c(l,new m(W)))).multiply(r)}return o}function K(t,i){const{id:e,offset:o,pos:l,normal:r,zoomRange:a}=i,{displayViewScreenMat3:n,displayViewMat3:p}=t.view,u=F(t,e,i.color),d=T(t,e),y=J(t,i),v=new m(.5).multiply(t.antialiasingControls.antialiasing),w=c(y.add(v),new m(.45)).add(new m(.1).multiply(v)),b=E(w).multiply(w).multiply(o),V=p.multiply(new f(b,new m(0))),S=n.multiply(new f(l,new m(1))).add(V),g=new m(2).multiply(s(y,new m(0))).add(t.clip(e,a)),x=new h(S.xy,g,1);return{color:u,opacity:d,halfWidth:w,normal:r,scaledOffset:b,scaledHalfWidth:y,glPosition:new h(x.xy,g,1)}}function N(t,i){const{opacity:e,color:o}=t,l=I(t,i);return e.multiply(o).multiply(l)}t([o(m)],B.prototype,"antialiasing",void 0),t([o(m)],B.prototype,"blur",void 0);class Q extends w{constructor(){super(...arguments),this.type="LineShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,i){const e=K(this,t);return{...e,...this.maybeRunHittest(t,i,e.halfWidth)}}fragment(t){const i=N(t,this.antialiasingControls.blur);return this.getFragmentOutput(i,t)}hittest(t,i,e){const{pos0:o,pos1:l,pos2:r}=this.computeHittestTriangle(t,i,null),a=M(this.hittestRequest),{distance:d,smallSymbolDistance:y,smallSymbolSizeThreshold:c,tlbr:f}=this.hittestRequest,h=s(e,c.multiply(.5)).multiply(d.subtract(y)),v=this.hittestRequest.position,w=n(R(v,o,l),R(v,o,r)).subtract(e).add(h);return p(a,C(o,l,r,f),p(u(w,d),new m(g),new m(x)))}}t([o(B)],Q.prototype,"antialiasingControls",void 0),t([l(H)],Q.prototype,"visualVariableColor",void 0),t([l(O)],Q.prototype,"visualVariableOpacity",void 0),t([l(U)],Q.prototype,"visualVariableSizeMinMaxValue",void 0),t([l(q)],Q.prototype,"visualVariableSizeScaleStops",void 0),t([l(P)],Q.prototype,"visualVariableSizeStops",void 0),t([l(A)],Q.prototype,"visualVariableSizeUnitValue",void 0),t([i(0,r(L)),i(1,r(b))],Q.prototype,"vertex",null),t([i(0,r(k))],Q.prototype,"fragment",null);export{B as AntialiasingControls,k as LineFragmentInput,Q as LineShader,L as LineVertexInput,I as getLineAntialiasing,N as getLineFragmentColor,E as getLineThinFactor,K as getLineVertexData};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t,__param as o}from"tslib";import{location as i,uniform as e,option as r,input as s}from"../../GraphShaderModule.js";import{greaterThan as a,Float as l,ifElse as p,Vec3 as n,Vec4 as u,Vec2 as m}from"../../graph/glsl.js";import{AFeatureShader as c,BaseHittestVertexInput as d,FeatureVertexInput as h}from"./AFeatureShader.js";import{bitsetTypeFillOutline as f,bitsetOutlineUsesColorVV as y}from"./constants.js";import{isRectHittest as v,failHittest as V,hittestFill as S,hittestScreenRect as b}from"./hittestUtils.js";import{getLineFragmentColor as j,getLineVertexData as x,AntialiasingControls as g,LineFragmentInput as w}from"./LineShader.js";import{getBit as z,getBitBool as M}from"./utils.js";import{VisualVariableColor as O}from"./VisualVariableColor.js";import{VisualVariableOpacity as R}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as q}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as C}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as P}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as U}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as W,getVisualVariableColor as F}from"./vvUtils.js";class H extends h{}t([i(3,m)],H.prototype,"offset",void 0),t([i(4,u)],H.prototype,"color",void 0),t([i(5,m)],H.prototype,"normal",void 0),t([i(6,l)],H.prototype,"halfWidth",void 0),t([i(7,l)],H.prototype,"referenceHalfWidth",void 0),t([i(8,m)],H.prototype,"zoomRange",void 0);class A extends w{}function G(t,o,i){const{id:e,bitset:r}=o,s=z(r,f),m=a(s,new l(.5)),c=x(t,o),d=p(m,c.halfWidth,new l(0)),h=W(t,e),v=F(t,e,o.color),V=p(m,p(M(r,y),v,o.color),v.multiply(h)),S=t.view.displayViewScreenMat3.multiply(new n(o.pos.xy,1)),b=t.clip(o.id),j=new u(S.xy,b,1),g=p(m,c.glPosition,j),w=i&&t.maybeRunHittest(o,i,m);return{isOutline:s,color:V,opacity:new l(1),halfWidth:d,normal:c.normal,glPosition:g,...w}}class L extends c{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([e(g)],L.prototype,"antialiasingControls",void 0),t([r(O)],L.prototype,"visualVariableColor",void 0),t([r(R)],L.prototype,"visualVariableOpacity",void 0),t([r(q)],L.prototype,"visualVariableSizeMinMaxValue",void 0),t([r(C)],L.prototype,"visualVariableSizeScaleStops",void 0),t([r(P)],L.prototype,"visualVariableSizeStops",void 0),t([r(U)],L.prototype,"visualVariableSizeUnitValue",void 0);class T extends L{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,o){return G(this,t,o)}fragment(t){const{color:o,isOutline:i}=t,e=a(i,new l(.5)),r=j(t,this.antialiasingControls.blur),s=p(e,r,o),n=p(e,new l(1/255),new l(0));return this.getFragmentOutput(s,t,n)}hittest(t,o,i){const{pos0:e,pos1:r,pos2:s}=this.computeHittestTriangle(t,o,null),n=v(this.hittestRequest);return p(n,()=>{const{tlbr:t}=this.hittestRequest;return b(e,r,s,t)},()=>{const e=p(i,V(this.hittestRequest),S(this,t,o));return p(a(e,this.hittestRequest.distance),new l(0),new l(1))})}}t([o(0,s(H)),o(1,s(d))],T.prototype,"vertex",null),t([o(0,s(A))],T.prototype,"fragment",null);export{L as AOutlineFillShader,A as OutlineFillFragmentInput,T as OutlineFillShader,H as OutlineFillVertexInput,G as getOutlineFillVertexData};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as i,uniform as e,option as r,input as s}from"../../GraphShaderModule.js";import{greaterThan as a,Float as l,ifElse as p,Vec3 as n,Vec4 as u,Vec2 as m}from"../../graph/glsl.js";import{AFeatureShader as c,BaseHittestVertexInput as d,FeatureVertexInput as h}from"./AFeatureShader.js";import{noHit as f,trueHit as y,bitsetTypeFillOutline as v,bitsetOutlineUsesColorVV as V}from"./constants.js";import{isRectHittest as S,failHittest as b,hittestFill as j,hittestScreenRect as x}from"./hittestUtils.js";import{getLineFragmentColor as g,getLineVertexData as w,AntialiasingControls as z,LineFragmentInput as M}from"./LineShader.js";import{getBit as O,getBitBool as R}from"./utils.js";import{VisualVariableColor as q}from"./VisualVariableColor.js";import{VisualVariableOpacity as C}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as P}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as U}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as W}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as F}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as H,getVisualVariableColor as A}from"./vvUtils.js";class G extends h{}t([i(3,m)],G.prototype,"offset",void 0),t([i(4,u)],G.prototype,"color",void 0),t([i(5,m)],G.prototype,"normal",void 0),t([i(6,l)],G.prototype,"halfWidth",void 0),t([i(7,l)],G.prototype,"referenceHalfWidth",void 0),t([i(8,m)],G.prototype,"zoomRange",void 0);class L extends M{}function T(t,o,i){const{id:e,bitset:r}=o,s=O(r,v),m=a(s,new l(.5)),c=w(t,o),d=p(m,c.halfWidth,new l(0)),h=H(t,e),f=A(t,e,o.color),y=p(m,p(R(r,V),f,o.color),f.multiply(h)),S=t.view.displayViewScreenMat3.multiply(new n(o.pos.xy,1)),b=t.clip(o.id),j=new u(S.xy,b,1),x=p(m,c.glPosition,j),g=i&&t.maybeRunHittest(o,i,m);return{isOutline:s,color:y,opacity:new l(1),halfWidth:d,normal:c.normal,glPosition:x,...g}}class k extends c{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([e(z)],k.prototype,"antialiasingControls",void 0),t([r(q)],k.prototype,"visualVariableColor",void 0),t([r(C)],k.prototype,"visualVariableOpacity",void 0),t([r(P)],k.prototype,"visualVariableSizeMinMaxValue",void 0),t([r(U)],k.prototype,"visualVariableSizeScaleStops",void 0),t([r(W)],k.prototype,"visualVariableSizeStops",void 0),t([r(F)],k.prototype,"visualVariableSizeUnitValue",void 0);class B extends k{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,o){return T(this,t,o)}fragment(t){const{color:o,isOutline:i}=t,e=a(i,new l(.5)),r=g(t,this.antialiasingControls.blur),s=p(e,r,o),n=p(e,new l(1/255),new l(0));return this.getFragmentOutput(s,t,n)}hittest(t,o,i){const{pos0:e,pos1:r,pos2:s}=this.computeHittestTriangle(t,o,null),n=S(this.hittestRequest);return p(n,()=>{const{tlbr:t}=this.hittestRequest;return x(e,r,s,t)},()=>{const e=p(i,b(this.hittestRequest),j(this,t,o));return p(a(e,this.hittestRequest.distance),new l(f),new l(y))})}}t([o(0,s(G)),o(1,s(d))],B.prototype,"vertex",null),t([o(0,s(L))],B.prototype,"fragment",null);export{k as AOutlineFillShader,L as OutlineFillFragmentInput,B as OutlineFillShader,G as OutlineFillVertexInput,T as getOutlineFillVertexData};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- const e=3.14159265359/180,o=3.14159265359/128,t=180/3.141592654,c=1/8,n=1,p=1,r=1.1,s=1,x=1/4,a=1/8,b=.2,d=8,f=1e-5,g=.05,h=2,i=0,j=1,k=2,l=3,m=1e-30,q=1,u=4,v=0,w=2,y=3,z=0,A=2,B=2,C=3,D=0,E=3,F=16777216,G=1.1,H=16,I=128,J=1;export{j as attrVvColor,k as attrVvOpacity,l as attrVvRotation,i as attrVvSize,A as bitsetFillRandomPatternOffset,u as bitsetGenericConsiderAlphaOnly,q as bitsetGenericLockColor,C as bitsetLineIsSdf,B as bitsetLineScaleDash,v as bitsetMarkerAlignmentMap,w as bitsetMarkerOutlineAllowColorOverride,y as bitsetMarkerScaleSymbolsProportionally,J as bitsetOutlineUsesColorVV,D as bitsetTextIsBackground,E as bitsetTextIsMapAligned,z as bitsetTypeFillOutline,o as c256ToRad,e as cDegToRad,t as cRadToDeg,f as epsilon,g as epsilonHitTest,x as extrudeScalePlacementPadding,n as fillPositionPrecision,G as magnifierBarrelFactor,h as maxFilterCount,F as maxRepresentableInt,m as nanMagicNumber,a as offsetPrecision,b as outlineScale,H as packPrecision,d as placementPadding,c as positionPrecision,I as signedToUnsignedByte,p as softEdgeRatio,s as thinLineHalfWidth,r as thinLineWidthFactor};
2
+ const e=3.14159265359/180,o=3.14159265359/128,t=180/3.141592654,c=1/8,n=1,p=1,r=1.1,s=1,x=1/4,a=1/8,b=.2,d=8,f=1e-5,g=.05,h=2,i=0,j=1,k=2,l=3,m=1e-30,q=1,u=4,v=0,w=2,y=3,z=0,A=2,B=2,C=3,D=0,E=3,F=16777216,G=1.1,H=16,I=128,J=1,K=0,L=1,M=2;export{j as attrVvColor,k as attrVvOpacity,l as attrVvRotation,i as attrVvSize,A as bitsetFillRandomPatternOffset,u as bitsetGenericConsiderAlphaOnly,q as bitsetGenericLockColor,C as bitsetLineIsSdf,B as bitsetLineScaleDash,v as bitsetMarkerAlignmentMap,w as bitsetMarkerOutlineAllowColorOverride,y as bitsetMarkerScaleSymbolsProportionally,J as bitsetOutlineUsesColorVV,D as bitsetTextIsBackground,E as bitsetTextIsMapAligned,z as bitsetTypeFillOutline,o as c256ToRad,e as cDegToRad,t as cRadToDeg,L as candidateHit,f as epsilon,g as epsilonHitTest,x as extrudeScalePlacementPadding,n as fillPositionPrecision,G as magnifierBarrelFactor,h as maxFilterCount,F as maxRepresentableInt,m as nanMagicNumber,K as noHit,a as offsetPrecision,b as outlineScale,H as packPrecision,d as placementPadding,c as positionPrecision,I as signedToUnsignedByte,p as softEdgeRatio,s as thinLineHalfWidth,r as thinLineWidthFactor,M as trueHit};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{clamp as t,Float as y,length as n,distance as u,Vec3 as r,and as x,greaterThan as e,lessThan as i,cond as l,not as c,Mat3 as s,abs as a,step as d,greaterThanEqual as o,Vec2 as w,min as b,max as p,or as m,ifElse as f,dot as v,normalize as j,equal as g,lessThanEqual as h}from"../../graph/glsl.js";import{epsilonHitTest as z}from"./constants.js";import{cross2 as M}from"./utils.js";function P(t,y){return v(t,j(y))}function q(r,x,e){const i=e.subtract(x),l=P(r.subtract(x),i),c=t(l.divide(n(i)),new y(0),new y(1));return u(r,x.add(c.multiply(e.subtract(x))))}function R(t){const n=a(t);return d(n.x.add(n.y).add(n.z),new y(1.05))}function k(t,n,u,x){const e=new s(u.x.multiply(x.y).subtract(x.x.multiply(u.y)),x.x.multiply(n.y).subtract(n.x.multiply(x.y)),n.x.multiply(u.y).subtract(u.x.multiply(n.y)),u.y.subtract(x.y),x.y.subtract(n.y),n.y.subtract(u.y),x.x.subtract(u.x),n.x.subtract(x.x),u.x.subtract(n.x)),i=n.x.multiply(u.y.subtract(x.y)),l=u.x.multiply(x.y.subtract(n.y)),c=x.x.multiply(n.y.subtract(u.y)),a=i.add(l).add(c);return new y(1).divide(a).multiply(e.multiply(new r(1,t)))}function A(t,n,u,r){return g(R(k(t,n,u,r)),new y(1))}function B(t,n,u,r){const s=u.subtract(n),a=r.subtract(n),d=M(s,a),o=x(i(d,new y(z)),e(d,new y(-z)));return l([x(c(o),A(t.xy,n,u,r)),new y(-1)],[!0,()=>{const y=q(t,n,u),x=q(t,u,r),e=q(t,r,n);return b(b(y,x),e)}])}function C(t){return t.distance.add(1)}function D(t,y,n){const{viewMat3:u,tileMat3:x}=t.view,e=u.multiply(x),i=e.multiply(new r(y.pos,1)),l=e.multiply(new r(n.nextPos1,1)),c=e.multiply(new r(n.nextPos2,1));return B(t.hittestRequest.position,i.xy,l.xy,c.xy)}function E(t,y,n){return u(t,n).subtract(y)}function F(t,n,u,r){const e=t.x,i=t.y,l=n.x,s=n.y,a=u.x,d=u.y,w=r.x,b=r.y,p=w.subtract(a),m=e.subtract(a),v=l.subtract(e),j=b.subtract(d),z=i.subtract(d),M=s.subtract(i),P=j.multiply(v).subtract(p.multiply(M)),q=p.multiply(z).subtract(j.multiply(m)).divide(P),R=v.multiply(z).subtract(M.multiply(m)).divide(P),k=x(c(g(P,new y(0))),x(x(o(q,new y(0)),h(q,new y(1))),x(o(R,new y(0)),h(R,new y(1)))));return f(k,new y(1),new y(0))}function G(t,y,n,u,r){return x(x(o(t.x,y),o(t.y,n)),x(i(t.x,u),h(t.y,r)))}function H(t,n,u,r){const x=r.xy,i=r.zw,l=new w(i.x,x.y),c=new w(x.x,i.y),s=b(x.x,i.x),a=b(x.y,i.y),d=p(x.x,i.x),o=p(x.y,i.y),v=G(t.xy,s,a,d,o),j=G(n.xy,s,a,d,o),g=G(u.xy,s,a,d,o),h=m(v,j),z=F(x,l,t.xy,n.xy).add(F(l,i,t.xy,n.xy)).add(F(c,i,t.xy,n.xy)).add(F(c,x,t.xy,n.xy)),M=m(h,e(z,new y(0))),P=m(v,g),q=F(x,l,t.xy,u.xy).add(F(l,i,t.xy,u.xy)).add(F(c,i,t.xy,u.xy)).add(F(c,x,t.xy,u.xy)),R=m(P,e(q,new y(0))),k=m(j,g),A=F(x,l,n.xy,u.xy).add(F(l,i,n.xy,u.xy)).add(F(c,i,n.xy,u.xy)).add(F(c,x,n.xy,u.xy)),B=m(k,e(A,new y(0)));return f(m(M,R,B),new y(1),new y(0))}function I(t){return x(x(o(t.tlbr.x,new y(0)),o(t.tlbr.x,new y(0))),x(o(t.tlbr.y,new y(0)),o(t.tlbr.y,new y(0))))}export{q as distPointSegment,B as distPointTriangle,C as failHittest,D as hittestFill,E as hittestMarker,H as hittestScreenRect,R as inTriangle,I as isRectHittest,G as pointInRect,P as projectScalar,F as segmentIntersects,k as xyToBarycentric};
2
+ import{clamp as t,Float as n,length as y,distance as u,Vec3 as e,and as r,greaterThan as x,lessThan as i,cond as l,not as c,Mat3 as s,abs as a,step as w,greaterThanEqual as d,Vec2 as o,min as b,max as p,equal as m,or as f,ifElse as v,dot as j,normalize as z,lessThanEqual as g}from"../../graph/glsl.js";import{epsilonHitTest as h,trueHit as M,candidateHit as P}from"./constants.js";import{cross2 as q}from"./utils.js";function R(t,n){return j(t,z(n))}function k(e,r,x){const i=x.subtract(r),l=R(e.subtract(r),i),c=t(l.divide(y(i)),new n(0),new n(1));return u(e,r.add(c.multiply(x.subtract(r))))}function A(t){const y=a(t);return w(y.x.add(y.y).add(y.z),new n(1.05))}function B(t,y,u,r){const x=new s(u.x.multiply(r.y).subtract(r.x.multiply(u.y)),r.x.multiply(y.y).subtract(y.x.multiply(r.y)),y.x.multiply(u.y).subtract(u.x.multiply(y.y)),u.y.subtract(r.y),r.y.subtract(y.y),y.y.subtract(u.y),r.x.subtract(u.x),y.x.subtract(r.x),u.x.subtract(y.x)),i=y.x.multiply(u.y.subtract(r.y)),l=u.x.multiply(r.y.subtract(y.y)),c=r.x.multiply(y.y.subtract(u.y)),a=i.add(l).add(c);return new n(1).divide(a).multiply(x.multiply(new e(1,t)))}function C(t,y,u,e){return m(A(B(t,y,u,e)),new n(1))}function D(t,y,u,e){const s=u.subtract(y),a=e.subtract(y),w=q(s,a),d=r(i(w,new n(h)),x(w,new n(-h)));return l([r(c(d),C(t.xy,y,u,e)),new n(-1)],[!0,()=>{const n=k(t,y,u),r=k(t,u,e),x=k(t,e,y);return b(b(n,r),x)}])}function E(t){return t.distance.add(1)}function F(t,n,y){const{viewMat3:u,tileMat3:r}=t.view,x=u.multiply(r),i=x.multiply(new e(n.pos,1)),l=x.multiply(new e(y.nextPos1,1)),c=x.multiply(new e(y.nextPos2,1));return D(t.hittestRequest.position,i.xy,l.xy,c.xy)}function G(t,n,y){return u(t,y).subtract(n)}function H(t,y,u,e){const x=t.x,i=t.y,l=y.x,s=y.y,a=u.x,w=u.y,o=e.x,b=e.y,p=o.subtract(a),f=x.subtract(a),j=l.subtract(x),z=b.subtract(w),h=i.subtract(w),M=s.subtract(i),P=z.multiply(j).subtract(p.multiply(M)),q=p.multiply(h).subtract(z.multiply(f)).divide(P),R=j.multiply(h).subtract(M.multiply(f)).divide(P),k=r(c(m(P,new n(0))),r(r(d(q,new n(0)),g(q,new n(1))),r(d(R,new n(0)),g(R,new n(1)))));return v(k,new n(1),new n(0))}function I(t,n,y,u,e){return r(r(d(t.x,n),d(t.y,y)),r(i(t.x,u),g(t.y,e)))}function J(t,y,u,e){const i=e.xy,l=e.zw,c=new o(l.x,i.y),s=new o(i.x,l.y),a=b(i.x,l.x),w=b(i.y,l.y),d=p(i.x,l.x),j=p(i.y,l.y),z=B(new o(a,w),t,y,u),g=B(new o(d,j),t,y,u),h=B(new o(a,j),t,y,u),q=B(new o(d,w),t,y,u),R=r(m(A(z),new n(1)),r(m(A(g),new n(1)),r(m(A(h),new n(1)),m(A(q),new n(1))))),k=H(i,c,t.xy,y.xy).add(H(c,l,t.xy,y.xy)).add(H(s,l,t.xy,y.xy)).add(H(s,i,t.xy,y.xy)),C=H(i,c,t.xy,u.xy).add(H(c,l,t.xy,u.xy)).add(H(s,l,t.xy,u.xy)).add(H(s,i,t.xy,u.xy)),D=H(i,c,y.xy,u.xy).add(H(c,l,y.xy,u.xy)).add(H(s,l,y.xy,u.xy)).add(H(s,i,y.xy,u.xy)),E=I(t.xy,a,w,d,j),F=I(y.xy,a,w,d,j),G=I(u.xy,a,w,d,j),J=r(E,r(F,G)),K=f(x(k,new n(0)),f(x(C,new n(0)),x(D,new n(0))));return v(f(K,R),new n(P),v(J,new n(M),new n(0)))}function K(t){return r(d(t.tlbr.x,new n(0)),d(t.tlbr.y,new n(0)),d(t.tlbr.z,new n(0)),d(t.tlbr.w,new n(0)))}export{k as distPointSegment,D as distPointTriangle,E as failHittest,F as hittestFill,G as hittestMarker,J as hittestScreenRect,A as inTriangle,K as isRectHittest,I as pointInRect,R as projectScalar,H as segmentIntersects,B as xyToBarycentric};