@arcgis/core 5.1.0-next.119 → 5.1.0-next.120

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 (740) hide show
  1. package/arcade/Dictionary.js +1 -1
  2. package/arcade/Feature.js +1 -1
  3. package/arcade/Pixel.js +1 -1
  4. package/arcade/Voxel.js +1 -1
  5. package/arcade/arcade.js +1 -1
  6. package/arcade/arcadeAsyncRuntime.js +1 -1
  7. package/arcade/arcadeCompiler.js +1 -1
  8. package/arcade/arcadeRuntime.js +1 -1
  9. package/arcade/containerUtils.js +1 -1
  10. package/arcade/debug.js +1 -1
  11. package/arcade/deepClone.js +1 -1
  12. package/arcade/featureSetUtils.js +1 -1
  13. package/arcade/featureset/actions/GroupBy.js +1 -1
  14. package/arcade/featureset/actions/OrderBy.js +1 -1
  15. package/arcade/functions/convertdirection.js +1 -1
  16. package/arcade/functions/date.js +1 -1
  17. package/arcade/functions/feature.js +1 -1
  18. package/arcade/functions/featuresetbase.js +1 -1
  19. package/arcade/functions/featuresetgeom.js +1 -1
  20. package/arcade/functions/featuresetstats.js +1 -1
  21. package/arcade/functions/featuresetstring.js +1 -1
  22. package/arcade/functions/fieldStats.js +1 -1
  23. package/arcade/functions/geomasync.js +1 -1
  24. package/arcade/functions/geometry.js +1 -1
  25. package/arcade/functions/geomsync.js +1 -1
  26. package/arcade/functions/knowledgegraph.js +1 -1
  27. package/arcade/functions/maths.js +1 -1
  28. package/arcade/functions/stats.js +1 -1
  29. package/arcade/functions/string.js +1 -1
  30. package/arcade/functions/track.js +1 -1
  31. package/arcade/geometry/constructors.js +1 -1
  32. package/arcade/geometry/functions.js +1 -1
  33. package/arcade/geometry/operators.js +1 -1
  34. package/arcade/languageUtils.js +1 -1
  35. package/assets/esri/core/workers/RemoteClient.js +1 -1
  36. package/assets/esri/core/workers/chunks/013708f40f811158d42c.js +1 -0
  37. package/assets/esri/core/workers/chunks/08feff1d2f67cbfdc707.js +1 -0
  38. package/assets/esri/core/workers/chunks/{7e0daf0864005cdd63c5.js → 0a780a883abfcdf0b900.js} +1 -1
  39. package/assets/esri/core/workers/chunks/0d9d33f29124d464a4cb.js +1 -0
  40. package/assets/esri/core/workers/chunks/{20e2d11f6de438ee883e.js → 0ded58ccb83f624f1460.js} +1 -1
  41. package/assets/esri/core/workers/chunks/106fc271e0b9300ef97c.js +1 -0
  42. package/assets/esri/core/workers/chunks/119d352dd586f2bb61ec.js +1 -0
  43. package/assets/esri/core/workers/chunks/{8cbaaea72f4ca2f023be.js → 129fdd1636e67997337c.js} +1 -1
  44. package/assets/esri/core/workers/chunks/130784a27661de6b52a5.js +1 -0
  45. package/assets/esri/core/workers/chunks/{942e527b9b92999886c7.js → 145364aa20b4435294c2.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{9a3344f1dd22c425b8cc.js → 1595dc499a06b23b6a96.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{6c97b5bc408f051606d2.js → 166a0df6e37627e18976.js} +1 -1
  48. package/assets/esri/core/workers/chunks/168be2eac0fa3c67ae27.js +1 -0
  49. package/assets/esri/core/workers/chunks/{017f50aae082d6664cfe.js → 16b90d8f628a412ba4ba.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{aea8e0577fb48d5c9577.js → 181e948d076a9a7aae8a.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{176e676879666f784599.js → 18e7784f13a57a75585a.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{d66f68a811c90739951a.js → 1c029b03ed836f393a50.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{d41fe5a248221c0a1714.js → 1c1515e020e32e177b54.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{0aaee272520c6e5bb617.js → 1c64e10f966e26af6fed.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{a0296e6d6c37b861c5fb.js → 1dacc0b64bd27ce2de3a.js} +1 -1
  56. package/assets/esri/core/workers/chunks/1eeb1edca0ad5db6917c.js +1 -0
  57. package/assets/esri/core/workers/chunks/1f55d60d3adc31283296.js +1 -0
  58. package/assets/esri/core/workers/chunks/20d0adc678f11981059c.js +1 -0
  59. package/assets/esri/core/workers/chunks/{696967c8c6f53b94f851.js → 227eff8aa4a6f5f03bc2.js} +1 -1
  60. package/assets/esri/core/workers/chunks/24646a1176ce34039155.js +1 -0
  61. package/assets/esri/core/workers/chunks/{93826180cfd66a6d2596.js → 24647e7424798dccdaf5.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{7601408e242dca1d25bd.js → 249616ea2d90d40a8299.js} +1 -1
  63. package/assets/esri/core/workers/chunks/24eaf1349ffe10e616e6.js +1 -0
  64. package/assets/esri/core/workers/chunks/{a320c69bc7528ff0d0cf.js → 2c8584ec1c3c9fd5aba2.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{6ca81e34854ce7ec6f6e.js → 2ce845c990bb4d701362.js} +1 -1
  66. package/assets/esri/core/workers/chunks/2d374cc8c54a722a7afe.js +1 -0
  67. package/assets/esri/core/workers/chunks/{0bd2b035c6ee89c725f9.js → 31442f25d550ead58fc4.js} +1 -1
  68. package/assets/esri/core/workers/chunks/319ff04282dc8ae38b56.js +2 -0
  69. package/assets/esri/core/workers/chunks/33b4f5dfe1a16b59b010.js +1 -0
  70. package/assets/esri/core/workers/chunks/359d3acb3953e64e5a78.js +1 -0
  71. package/assets/esri/core/workers/chunks/388e71e8f2ec41bfa5a9.js +1 -0
  72. package/assets/esri/core/workers/chunks/{dd58bc675b85b4d90afa.js → 39974d1e5d3820ef1680.js} +1 -1
  73. package/assets/esri/core/workers/chunks/3aacaa1be5efeac23a37.js +1 -0
  74. package/assets/esri/core/workers/chunks/{2562d8905bd05ef6fd07.js → 3b3986276e70297d573b.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{d19600336cb6023d3e34.js → 3b765a8cac9e92f644f2.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{b7a0a5b895ddd2d3d038.js → 3df5394b17e9659ecb8f.js} +1 -1
  77. package/assets/esri/core/workers/chunks/3e012cd3ca4451f89f59.js +1 -0
  78. package/assets/esri/core/workers/chunks/{c06ae3a6ecc4a4fc67b2.js → 40910c69307e2d2d3f28.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{0881929a4a457f94f317.js → 4301cb9670fa7c907460.js} +1 -1
  80. package/assets/esri/core/workers/chunks/45a8d80f1328b0b4b055.js +1 -0
  81. package/assets/esri/core/workers/chunks/46d0a25d33b5b328cfce.js +1 -0
  82. package/assets/esri/core/workers/chunks/{d9d716bfd0aab30b6caf.js → 47656ec12401e53f4bd3.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{c0d7e4afbad0b20e2502.js → 47dd2bfecc5c4b5f10f0.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{f7698c855800e0af3038.js → 4845df00f6ebcce6ea3e.js} +1 -1
  85. package/assets/esri/core/workers/chunks/49f6c9e9980b8c624fd7.js +1 -0
  86. package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +1 -0
  87. package/assets/esri/core/workers/chunks/{8b5ee6be52e892fbd325.js → 4a9dd9f8aa98882218f3.js} +1 -1
  88. package/assets/esri/core/workers/chunks/4c54cb80c4dc9bbbd395.js +1 -0
  89. package/assets/esri/core/workers/chunks/{daec09750a5a70cdb0f0.js → 50dc9893e13396f5e35d.js} +2 -2
  90. package/assets/esri/core/workers/chunks/{169c9eb6cd000e067c4b.js → 51ee6102f5f4840a5b47.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{b5d0898406c7d6e6a717.js → 5359ff9492383c5bd9b1.js} +1 -1
  92. package/assets/esri/core/workers/chunks/54d7f07e3348ddb6d9a2.js +1 -0
  93. package/assets/esri/core/workers/chunks/{48440a071a37590846ff.js → 54dad475dc806a38c287.js} +1 -1
  94. package/assets/esri/core/workers/chunks/{2b2a09ce14d00b4b1187.js → 58155f24f8ed6aca7a21.js} +1 -1
  95. package/assets/esri/core/workers/chunks/{224a9f39876aa426a9bc.js → 5838f46d341d2fde42ee.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{47d49777a3b3cd8e18bd.js → 58994b6bfcda5f2ada80.js} +1 -1
  97. package/assets/esri/core/workers/chunks/592a599f514de373dead.js +1 -0
  98. package/assets/esri/core/workers/chunks/{1ff61d8a8ea060e78b83.js → 5aba23584e0b230c75f5.js} +1 -1
  99. package/assets/esri/core/workers/chunks/{566c36032b456ec5b5d7.js → 5abe34bb0110694f7b42.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{7dc2c21d61ba66a3f461.js → 5b238f9c345f10c5c2fa.js} +1 -1
  101. package/assets/esri/core/workers/chunks/5f9bacee6fbf9ac1bca0.js +1 -0
  102. package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +1 -0
  103. package/assets/esri/core/workers/chunks/65520a443e3811255bea.js +1 -0
  104. package/assets/esri/core/workers/chunks/6637f19b82555738a1d5.js +1 -0
  105. package/assets/esri/core/workers/chunks/{7c86099ed17f420b0489.js → 67ebde34377f98d17cda.js} +1 -1
  106. package/assets/esri/core/workers/chunks/{cdef9c3f80588ae45a04.js → 6c9933f948efd7923aa1.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{fe2325efd0d8ad8369ed.js → 6cab67fc7044ee9b863b.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{f239a8ecad8b692d5eaa.js → 6db274f6767102a39021.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{aea384f4d88121da8f54.js → 6f0341cfa4c68e6e60b3.js} +1 -1
  110. package/assets/esri/core/workers/chunks/737de87bfb9b5f5a9c6c.js +1 -0
  111. package/assets/esri/core/workers/chunks/{aca6ff64495580d873d1.js → 73c355b895fd6a34fcb8.js} +1 -1
  112. package/assets/esri/core/workers/chunks/{85bba0db8a7a5fc1be44.js → 7601278ebced0c0c31cf.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{b09ae8eb5e97fb27382f.js → 76589434d573111a8fb4.js} +1 -1
  114. package/assets/esri/core/workers/chunks/79f2d4b3af5776ec2045.js +1 -0
  115. package/assets/esri/core/workers/chunks/{c8dedc010fcc2382af24.js → 7b564226def99fcf79d8.js} +1 -1
  116. package/assets/esri/core/workers/chunks/7cadb872b9ca96eedca5.js +1 -0
  117. package/assets/esri/core/workers/chunks/7ed3d6c72f23c628df3b.js +1 -0
  118. package/assets/esri/core/workers/chunks/{062aadf426fe97a76bbb.js → 8351012ceb466f01b8fd.js} +1 -1
  119. package/assets/esri/core/workers/chunks/8407c91cce31e087b41b.js +1 -0
  120. package/assets/esri/core/workers/chunks/{24acf3dd541347c2b297.js → 882ee7ed8a3a0215f9b9.js} +1 -1
  121. package/assets/esri/core/workers/chunks/{a0b6eef4890cc61609dc.js → 8905acc6161c999b6c4a.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{ae74f722fb385e45fcf1.js → 893c0d28a5bf3f9f29f1.js} +1 -1
  123. package/assets/esri/core/workers/chunks/{98b4408e12684e37b395.js → 8a48a6760c33ed50b650.js} +1 -1
  124. package/assets/esri/core/workers/chunks/8bdca6f06c8b5fedd917.js +1 -0
  125. package/assets/esri/core/workers/chunks/8c5a41ae68775bac3446.js +1 -0
  126. package/assets/esri/core/workers/chunks/{2ee9514396d22638870c.js → 8f94c90fdb0333da2d0f.js} +1 -1
  127. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +1 -0
  128. package/assets/esri/core/workers/chunks/94fac056e14caed09682.js +1 -0
  129. package/assets/esri/core/workers/chunks/{f931d560f3f14598f454.js → 9dcfaca1f4fa8c8026ac.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{5570d47533efab56c732.js → 9f4681713f03365a2a53.js} +1 -1
  131. package/assets/esri/core/workers/chunks/a0fa60a24e58f7a47e41.js +1 -0
  132. package/assets/esri/core/workers/chunks/{b32a13972cb3de652339.js → a320998f18922a35899f.js} +1 -1
  133. package/assets/esri/core/workers/chunks/{aa55923ca939a0d4606c.js → a3a28c4887f802e8d96d.js} +1 -1
  134. package/assets/esri/core/workers/chunks/{8795c4895df229cb471c.js → ab94c9f62462d7a98f6a.js} +1 -1
  135. package/assets/esri/core/workers/chunks/{2a8f198f6c272f92bad5.js → abdb05754c50776c3edd.js} +1 -1
  136. package/assets/esri/core/workers/chunks/af8ef6701631ed5e5b80.js +1 -0
  137. package/assets/esri/core/workers/chunks/{a95398214e530f896a2d.js → af96cbc4fb7bef726635.js} +1 -1
  138. package/assets/esri/core/workers/chunks/{5784ddd18395f4d76016.js → b08a1255dacf6cfcf139.js} +5 -5
  139. package/assets/esri/core/workers/chunks/b098469e0010a6b44df9.js +1 -0
  140. package/assets/esri/core/workers/chunks/{170f8dc97614e9609443.js → b0ac4b0b7aec70cfe6eb.js} +1 -1
  141. package/assets/esri/core/workers/chunks/{bfc2b75e4f7531dbd37f.js → b1f1271434af302938e8.js} +1 -1
  142. package/assets/esri/core/workers/chunks/{2f925a424b60b4a5e8e5.js → b803e7b0d489bb628d72.js} +1 -1
  143. package/assets/esri/core/workers/chunks/bb24972603fb35dd8dcf.js +1 -0
  144. package/assets/esri/core/workers/chunks/bca6abc185dedec0f41b.js +1 -0
  145. package/assets/esri/core/workers/chunks/{79b64a52ff57c40c7800.js → bf706a5d065a357de51b.js} +1 -1
  146. package/assets/esri/core/workers/chunks/bfbd1ca28ed2f263e58f.js +1 -0
  147. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +1 -0
  148. package/assets/esri/core/workers/chunks/{f142f892e9e896052ddc.js → c27cb2a83a1d2e004501.js} +1 -1
  149. package/assets/esri/core/workers/chunks/{2a2981f0987dd1eaa75a.js → c83fea0d0ebd0d8e43fd.js} +1 -1
  150. package/assets/esri/core/workers/chunks/cb8c4d8334fab9bd9a04.js +1 -0
  151. package/assets/esri/core/workers/chunks/{c1ffb879e0283fb2815f.js → cc62e5095e328bed3e01.js} +1 -1
  152. package/assets/esri/core/workers/chunks/{8d4881c879c86b353e08.js → cda99b543a0e1979346c.js} +1 -1
  153. package/assets/esri/core/workers/chunks/{a53a3e5548fef65a2710.js → cf826787ab8d4b27ad80.js} +1 -1
  154. package/assets/esri/core/workers/chunks/{d6d87bfa9e6d233385a9.js → d1ac98f48bb6d43d97c8.js} +2 -2
  155. package/assets/esri/core/workers/chunks/d1d135a54233092ad637.js +1 -0
  156. package/assets/esri/core/workers/chunks/d35c475f004367e333eb.js +1 -0
  157. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +1 -0
  158. package/assets/esri/core/workers/chunks/{bbaf8baa3ca6195467e4.js → d64613209a9eb1eafb11.js} +1 -1
  159. package/assets/esri/core/workers/chunks/{cb26966cc205bd338c76.js → d81291dac1932350eccd.js} +1 -1
  160. package/assets/esri/core/workers/chunks/dddb57ff637643ccfc87.js +1 -0
  161. package/assets/esri/core/workers/chunks/{0ded5c114cbb7574f2f4.js → dfeddb7b17fa9eaae64c.js} +1 -1
  162. package/assets/esri/core/workers/chunks/{c528b04d42dffbb491da.js → e246c3663f2645248f17.js} +5 -5
  163. package/assets/esri/core/workers/chunks/{7f54d3835c0ce573a942.js → e25bcfdd8f20f8a08b19.js} +1 -1
  164. package/assets/esri/core/workers/chunks/{e0bd550b10dd402c48f1.js → e38836bfcc7a15a2fd1f.js} +1 -1
  165. package/assets/esri/core/workers/chunks/e3b713a590cce6245ee2.js +1 -0
  166. package/assets/esri/core/workers/chunks/{a40003dfe3c081d1a1d2.js → e638391801ad83fe4a68.js} +1 -1
  167. package/assets/esri/core/workers/chunks/{0b76534b60014d74ecb9.js → e7712467db46e1385cf4.js} +1 -1
  168. package/assets/esri/core/workers/chunks/e785f76c1a75cb1d1e1f.js +1 -0
  169. package/assets/esri/core/workers/chunks/{76a9b64fd573775bf6cd.js → e82488b9b3bb0c1dedb4.js} +1 -1
  170. package/assets/esri/core/workers/chunks/{15fa8b5b472131aaa68e.js → e92698f50089484c4901.js} +1 -1
  171. package/assets/esri/core/workers/chunks/ed2cb60e4f17f46fb78d.js +1 -0
  172. package/assets/esri/core/workers/chunks/edcde00495727d506c46.js +1 -0
  173. package/assets/esri/core/workers/chunks/{65a9a94162985b54571e.js → eedee0af459e6b8a6116.js} +1 -1
  174. package/assets/esri/core/workers/chunks/{009250a7bded12099dd1.js → f1fb2f12371f4c562079.js} +1 -1
  175. package/assets/esri/core/workers/chunks/{798e8bf3a7ad83d810e3.js → f31a8e76f1dde23c0900.js} +1 -1
  176. package/assets/esri/core/workers/chunks/{3eabc8af82512dc12355.js → f3dfe1bd1146a6927407.js} +1 -1
  177. package/assets/esri/core/workers/chunks/{6b5d2df9123dfe7e00b3.js → f563dd6cace047108b3c.js} +1 -1
  178. package/assets/esri/core/workers/chunks/f60292d97bcdbf19165b.js +1 -0
  179. package/assets/esri/core/workers/chunks/f79bd469b25099a31274.js +1 -0
  180. package/assets/esri/core/workers/chunks/f9e22cf59e2e2782d70f.js +1 -0
  181. package/assets/esri/core/workers/chunks/{a730235da6ba2b2d9f47.js → fea74a2bbb67d381e837.js} +1 -1
  182. package/assets/esri/core/workers/chunks/{e227ae2c1a63e30e62d9.js → ff48334528d2554db4fe.js} +1 -1
  183. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +18 -14
  184. package/assets/esri/themes/dark/main.css +1 -1
  185. package/assets/esri/themes/light/main.css +1 -1
  186. package/assets/esri/themes/light/view.css +1 -1
  187. package/chunks/AtmosphereCompositing.glsl.js +1 -1
  188. package/chunks/Bufferer-Dw9Qi4T1.js +1 -1
  189. package/chunks/Centroid-DZi-eb9F.js +1 -1
  190. package/chunks/Clouds.glsl.js +1 -1
  191. package/chunks/Compositing.glsl.js +1 -1
  192. package/chunks/CutFillComposition.glsl.js +1 -1
  193. package/chunks/CutFillDepth.glsl.js +1 -1
  194. package/chunks/CutFillMask.glsl.js +1 -1
  195. package/chunks/CutFillReduction.glsl.js +1 -1
  196. package/chunks/CutFillTargetDepth.glsl.js +1 -1
  197. package/chunks/Distance2DCalculator-CXhBP-8I.js +1 -1
  198. package/chunks/Envelope.js +1 -1
  199. package/chunks/Envelope2D.js +1 -1
  200. package/chunks/FlatGeometry.js +1 -1
  201. package/chunks/FocusAreaColor.glsl.js +1 -1
  202. package/chunks/FocusAreaMask.glsl.js +1 -1
  203. package/chunks/Fog.glsl.js +1 -1
  204. package/chunks/GaussianSplat.glsl.js +1 -1
  205. package/chunks/GaussianSplatShadow.glsl.js +1 -1
  206. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  207. package/chunks/GeodeticUtils.js +1 -1
  208. package/chunks/Geometry.js +1 -1
  209. package/chunks/GeometryCleaner-BEJM7I4l.js +1 -1
  210. package/chunks/GlobalIllumination.glsl.js +1 -1
  211. package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
  212. package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
  213. package/chunks/GlowBlur.glsl.js +1 -1
  214. package/chunks/GlowComposition.glsl.js +1 -1
  215. package/chunks/HazeCompositing.glsl.js +1 -1
  216. package/chunks/HighlightBlur.glsl.js +1 -1
  217. package/chunks/HighlightDownsample.glsl.js +1 -1
  218. package/chunks/Magnifier.glsl.js +1 -1
  219. package/chunks/MultiPathImpl.js +1 -1
  220. package/chunks/NoiseTextureAtlas.glsl.js +1 -1
  221. package/chunks/OITBlend.glsl.js +2 -2
  222. package/chunks/OITBlendEmission.glsl.js +1 -1
  223. package/chunks/OITDimOpaque.glsl.js +1 -1
  224. package/chunks/OperatorClip.js +1 -1
  225. package/chunks/OperatorCrosses.js +1 -1
  226. package/chunks/OperatorCut.js +1 -1
  227. package/chunks/OperatorDensify.js +1 -1
  228. package/chunks/OperatorGeneralize.js +1 -1
  229. package/chunks/OperatorGeodesicBuffer.js +1 -1
  230. package/chunks/OperatorGeodeticArea.js +1 -1
  231. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  232. package/chunks/OperatorGeodeticDistance.js +1 -1
  233. package/chunks/OperatorGeodeticLength.js +1 -1
  234. package/chunks/OperatorIntegrate.js +1 -1
  235. package/chunks/OperatorIntersects.js +1 -1
  236. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  237. package/chunks/OperatorOverlaps.js +1 -1
  238. package/chunks/OperatorProject.js +1 -1
  239. package/chunks/OperatorProximity.js +1 -1
  240. package/chunks/OperatorProximityGeodesic.js +1 -1
  241. package/chunks/OperatorShapePreservingDensify.js +1 -1
  242. package/chunks/OperatorShapePreservingLength.js +1 -1
  243. package/chunks/OperatorShapePreservingProject.js +1 -1
  244. package/chunks/OperatorSimplifyOGC.js +1 -1
  245. package/chunks/OperatorTouches.js +1 -1
  246. package/chunks/OperatorWithin.js +1 -1
  247. package/chunks/OverlayCompositing.glsl.js +1 -1
  248. package/chunks/Point2D.js +1 -1
  249. package/chunks/PointRenderer.glsl.js +1 -1
  250. package/chunks/ProjectionTransformation.js +1 -1
  251. package/chunks/RasterColorizer.glsl.js +1 -1
  252. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  253. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  254. package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
  255. package/chunks/SimpleAtmosphere.glsl.js +1 -1
  256. package/chunks/SpatialReference.js +1 -1
  257. package/chunks/Terrain.glsl.js +1 -1
  258. package/chunks/Texture.glsl.js +1 -1
  259. package/chunks/Transformation2D.js +1 -1
  260. package/chunks/Viewshed.glsl.js +1 -1
  261. package/chunks/aiServices.js +1 -1
  262. package/chunks/arcade.js +1 -1
  263. package/chunks/array.js +1 -1
  264. package/chunks/boundedPlane.js +1 -1
  265. package/chunks/bundle.js +1 -1
  266. package/chunks/bundle2.js +1 -1
  267. package/chunks/constants.js +1 -1
  268. package/chunks/containsOperator.js +1 -1
  269. package/chunks/disjointOperator.js +1 -1
  270. package/chunks/distanceOperator.js +1 -1
  271. package/chunks/equalsOperator.js +1 -1
  272. package/chunks/languageUtils.js +1 -1
  273. package/chunks/pe.js +1 -1
  274. package/chunks/persistableUrlUtils.js +1 -1
  275. package/chunks/relateOperator.js +1 -1
  276. package/chunks/symmetricDifferenceOperator.js +1 -1
  277. package/chunks/unionOperator.js +1 -1
  278. package/chunks/vec2.js +1 -1
  279. package/chunks/vec3.js +1 -1
  280. package/chunks/vec4.js +1 -1
  281. package/config.js +1 -1
  282. package/core/accessorSupport/decorators/persistable.js +1 -1
  283. package/core/mapCollectionUtils.js +1 -1
  284. package/core/quantityFormatUtils.js +1 -1
  285. package/core/unitFormatUtils.js +1 -1
  286. package/editing/sharedTemplates/templateDefinitions/FeatureTemplateDefinition.js +1 -1
  287. package/editing/sharedTemplates/templateDefinitions/GroupTemplateDefinition.js +1 -1
  288. package/editing/sharedTemplates/templateDefinitions/PresetTemplateDefinition.js +1 -1
  289. package/effects/FocusArea.js +1 -1
  290. package/geometry/Circle.js +1 -1
  291. package/geometry/coordinateFormatter.js +1 -1
  292. package/geometry/geodesicUtils.js +1 -1
  293. package/geometry/operators/extendOperator.js +1 -1
  294. package/geometry/operators/gx/geodeticUtils.js +1 -1
  295. package/geometry/operators/gx/operatorAffineTransform.js +1 -1
  296. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  297. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  298. package/geometry/operators/gx/operatorBoundary.js +1 -1
  299. package/geometry/operators/gx/operatorBuffer.js +1 -1
  300. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  301. package/geometry/operators/gx/operatorDifference.js +1 -1
  302. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  303. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  304. package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
  305. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  306. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  307. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  308. package/geometry/operators/gx/operatorIntersection.js +1 -1
  309. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  310. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  311. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  312. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  313. package/geometry/operators/gx/operatorOffset.js +1 -1
  314. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  315. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  316. package/geometry/operators/gx/operatorProject.js +1 -1
  317. package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
  318. package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
  319. package/geometry/operators/gx/operatorSimplify.js +1 -1
  320. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  321. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  322. package/geometry/operators/gx/operatorUnion.js +1 -1
  323. package/geometry/operators/isNearOperator.js +1 -1
  324. package/geometry/operators/json/containsOperator.js +1 -1
  325. package/geometry/operators/json/disjointOperator.js +1 -1
  326. package/geometry/operators/locateBetweenOperator.js +1 -1
  327. package/geometry/operators/offsetOperator.js +1 -1
  328. package/geometry/operators/reshapeOperator.js +1 -1
  329. package/geometry/operators/support/apiConverter.js +1 -1
  330. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  331. package/geometry/operators/support/initNoPeFactory.js +1 -1
  332. package/geometry/operators/support/jsonConverter.js +1 -1
  333. package/geometry/operators/support/projectionTransformation.js +1 -1
  334. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  335. package/geometry/operators/unionOperator.js +1 -1
  336. package/geometry/pe.js +1 -1
  337. package/geometry/support/MeshTexture.js +1 -1
  338. package/geometry/support/boundedPlane.js +1 -1
  339. package/geometry/support/buffer/math/vec3.js +1 -1
  340. package/geometry/support/buffer/math/vec4.js +1 -1
  341. package/geometry/support/buffer/utils/vec2.js +1 -1
  342. package/geometry/support/coordinateSystem.js +1 -1
  343. package/geometry/support/frustum.js +1 -1
  344. package/geometry/support/meshUtils/extent.js +1 -1
  345. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  346. package/geometry/support/meshUtils/projection.js +1 -1
  347. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  348. package/geometry/support/spatialReferenceUtils.js +1 -1
  349. package/kernel.js +1 -1
  350. package/layers/CSVLayer.d.ts +6 -0
  351. package/layers/CatalogLayer.d.ts +6 -0
  352. package/layers/FeatureLayer.d.ts +37 -1
  353. package/layers/GeoJSONLayer.d.ts +6 -0
  354. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  355. package/layers/IntegratedMeshLayer.js +1 -1
  356. package/layers/KnowledgeGraphLayer.js +1 -1
  357. package/layers/LinkChartLayer.js +1 -1
  358. package/layers/OrientedImageryLayer.d.ts +28 -1
  359. package/layers/ParquetLayer.d.ts +7 -1
  360. package/layers/SubtypeGroupLayer.d.ts +6 -0
  361. package/layers/UnsupportedLayer.d.ts +10 -2
  362. package/layers/WFSLayer.d.ts +6 -0
  363. package/layers/catalog/CatalogFootprintLayer.d.ts +20 -1
  364. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  365. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +6 -0
  366. package/layers/mixins/ArcGISImageService.d.ts +7 -1
  367. package/layers/orientedImagery/transformations/utils.js +1 -1
  368. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  369. package/layers/support/FeatureReductionBinning.d.ts +12 -0
  370. package/layers/support/FeatureReductionCluster.d.ts +12 -0
  371. package/layers/support/ImageElement.js +1 -1
  372. package/layers/support/MosaicRule.d.ts +0 -2
  373. package/layers/support/ParquetFilesData.js +1 -1
  374. package/layers/support/SceneFilter.js +1 -1
  375. package/layers/support/SubtypeSublayer.d.ts +14 -1
  376. package/libs/parquet/loadParquetModule.js +1 -1
  377. package/libs/text/loadTextModule.js +1 -1
  378. package/linkChart/LinkChartProperties.js +1 -1
  379. package/package.json +2 -2
  380. package/portal/PortalItem.js +1 -1
  381. package/renderers/UniqueValueRenderer.js +1 -1
  382. package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +1 -1
  383. package/rest/knowledgeGraph/GraphProperty.d.ts +5 -1
  384. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
  385. package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
  386. package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
  387. package/rest/support/AttributeBinsQuery.d.ts +16 -2
  388. package/rest/support/IdentifyParameters.js +1 -1
  389. package/rest/support/IdentifyResult.js +1 -1
  390. package/rest/support/Query.d.ts +16 -2
  391. package/rest/support/TopFeaturesQuery.d.ts +16 -2
  392. package/smartMapping/renderers/type.js +1 -1
  393. package/smartMapping/renderers/univariateColorSize.js +1 -1
  394. package/support/arcadeUtils.js +1 -1
  395. package/support/persistableUrlUtils.js +1 -1
  396. package/support/revision.js +1 -1
  397. package/symbols/Symbol3D.js +1 -1
  398. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  399. package/symbols/cim/CIMSymbolHelper.js +1 -1
  400. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  401. package/symbols/support/previewSymbol2D.js +1 -1
  402. package/symbols/support/urlUtils.js +1 -1
  403. package/symbols/support/webStyleSymbolUtils.js +1 -1
  404. package/views/2d/MapViewConstraints.d.ts +29 -25
  405. package/views/2d/ViewStateManager.js +1 -1
  406. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  407. package/views/2d/engine/flow/styles/Particles.js +1 -1
  408. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  409. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  410. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  411. package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
  412. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +1 -1
  413. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  414. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  415. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
  416. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  417. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  418. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  419. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  420. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  421. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  422. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlitShader.js +1 -1
  423. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +1 -1
  424. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlurShader.js +1 -1
  425. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ClipShader.js +1 -1
  426. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ColorizeShader.js +1 -1
  427. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  428. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  429. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +1 -1
  430. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  431. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
  432. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  433. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js +1 -1
  434. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  435. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
  436. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  437. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
  438. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
  439. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  440. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  441. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
  442. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternOutlineFillShader.js +1 -1
  443. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PostProcessingShader.js +1 -1
  444. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  445. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
  446. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
  447. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js +1 -1
  448. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowImageryShader.js +1 -1
  449. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowParticlesShader.js +1 -1
  450. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowStreamlinesShader.js +1 -1
  451. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowUtils.js +1 -1
  452. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  453. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MultiRasterMixin.js +1 -1
  454. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  455. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vvUtils.js +1 -1
  456. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  457. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  458. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  459. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  460. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  461. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  462. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  463. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  464. package/views/2d/navigation/ZoomBox.js +1 -1
  465. package/views/2d/navigation/actions/Pan.js +1 -1
  466. package/views/2d/navigation/actions/Pinch.js +1 -1
  467. package/views/2d/navigation/actions/Rotate.js +1 -1
  468. package/views/3d/analysis/AnalysisView3D.js +1 -1
  469. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  470. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  471. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  472. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  473. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  474. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  475. package/views/3d/analysis/LineOfSightAnalysisResult.js +1 -1
  476. package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
  477. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  478. package/views/3d/analysis/Slice/SliceController.js +1 -1
  479. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  480. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  481. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  482. package/views/3d/analysis/Viewshed/ViewshedPlacementOperation.js +1 -1
  483. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
  484. package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
  485. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  486. package/views/3d/analysis/Viewshed/ViewshedTool2.js +1 -1
  487. package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
  488. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  489. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  490. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.js +1 -1
  491. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  492. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  493. package/views/3d/focusAreaUtils.js +1 -1
  494. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  495. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  496. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  497. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  498. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  499. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  500. package/views/3d/layers/DrapedSubView3D.js +1 -1
  501. package/views/3d/layers/FlowSubView3D.js +1 -1
  502. package/views/3d/layers/I3SMeshView3D.js +1 -1
  503. package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
  504. package/views/3d/layers/ImagerySubView3D.js +1 -1
  505. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  506. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  507. package/views/3d/layers/SceneLayerWorker.js +1 -1
  508. package/views/3d/layers/SubView3D.js +1 -1
  509. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  510. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  511. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  512. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  513. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  514. package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
  515. package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
  516. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  517. package/views/3d/layers/i3s/meshUtils.js +1 -1
  518. package/views/3d/layers/support/FeatureTile.js +1 -1
  519. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  520. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  521. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  522. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  523. package/views/3d/layers/support/MediaLayerInteractionReshapeOptions.js +1 -1
  524. package/views/3d/layers/support/edgeUtils.js +1 -1
  525. package/views/3d/state/ScreenSizePerspective.js +1 -1
  526. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  527. package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
  528. package/views/3d/state/utils/navigationUtils.js +1 -1
  529. package/views/3d/support/ViewSlice.js +1 -1
  530. package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
  531. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  532. package/views/3d/support/sunUtils.js +1 -1
  533. package/views/3d/terrain/OverlayRenderer.js +1 -1
  534. package/views/3d/terrain/RasterColorizer.glsl.js +1 -1
  535. package/views/3d/terrain/RasterTile.js +1 -1
  536. package/views/3d/terrain/TerrainRenderer.js +1 -1
  537. package/views/3d/webgl/RenderCamera.js +1 -1
  538. package/views/3d/webgl/RenderNode.js +1 -1
  539. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  540. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
  541. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  542. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  543. package/views/3d/webgl-engine/effects/atmosphere/SimpleAtmosphere.glsl.js +1 -1
  544. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  545. package/views/3d/webgl-engine/effects/clouds/Clouds.glsl.js +1 -1
  546. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  547. package/views/3d/webgl-engine/effects/clouds/CloudsTechnique.js +1 -1
  548. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.glsl.js +1 -1
  549. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
  550. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlasTechnique.js +1 -1
  551. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColor.glsl.js +1 -1
  552. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  553. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  554. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.glsl.js +1 -1
  555. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  556. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  557. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  558. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  559. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  560. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  561. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  562. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
  563. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlurTechnique.js +1 -1
  564. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechnique.js +1 -1
  565. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  566. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscale.glsl.js +1 -1
  567. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscaleTechnique.js +1 -1
  568. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  569. package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
  570. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +1 -1
  571. package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
  572. package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +1 -1
  573. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  574. package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
  575. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  576. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  577. package/views/3d/webgl-engine/effects/highlight/HighlightBlur.glsl.js +1 -1
  578. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  579. package/views/3d/webgl-engine/effects/highlight/HighlightDownsample.glsl.js +1 -1
  580. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  581. package/views/3d/webgl-engine/effects/magnifier/Magnifier.glsl.js +1 -1
  582. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  583. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  584. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
  585. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  586. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  587. package/views/3d/webgl-engine/effects/transparency/OITDimOpaque.glsl.js +1 -1
  588. package/views/3d/webgl-engine/effects/transparency/OITDimOpaqueTechnique.js +1 -1
  589. package/views/3d/webgl-engine/lib/Compositor.js +1 -1
  590. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  591. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  592. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  593. package/views/3d/webgl-engine/lib/GaussianSplatShadowRenderNode.js +1 -1
  594. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  595. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  596. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  597. package/views/3d/webgl-engine/lib/Texture.glsl.js +1 -1
  598. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  599. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  600. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  601. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  602. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  603. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  604. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  605. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  606. package/views/3d/webgl-engine/shaders/CutFillComposition.glsl.js +1 -1
  607. package/views/3d/webgl-engine/shaders/CutFillCompositionTechnique.js +1 -1
  608. package/views/3d/webgl-engine/shaders/CutFillDepth.glsl.js +1 -1
  609. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +1 -1
  610. package/views/3d/webgl-engine/shaders/CutFillDepthTechniqueConfiguration.js +1 -1
  611. package/views/3d/webgl-engine/shaders/CutFillMask.glsl.js +1 -1
  612. package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
  613. package/views/3d/webgl-engine/shaders/CutFillReduction.glsl.js +1 -1
  614. package/views/3d/webgl-engine/shaders/CutFillReductionTechnique.js +1 -1
  615. package/views/3d/webgl-engine/shaders/CutFillReductionTechniqueConfiguration.js +1 -1
  616. package/views/3d/webgl-engine/shaders/CutFillTargetDepth.glsl.js +1 -1
  617. package/views/3d/webgl-engine/shaders/CutFillTargetDepthTechnique.js +1 -1
  618. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  619. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +1 -1
  620. package/views/3d/webgl-engine/shaders/GaussianSplatShadow.glsl.js +1 -1
  621. package/views/3d/webgl-engine/shaders/GaussianSplatShadowTechnique.js +1 -1
  622. package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
  623. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +1 -1
  624. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  625. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  626. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  627. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
  628. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  629. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +1 -1
  630. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  631. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  632. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  633. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  634. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  635. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  636. package/views/Theme.js +1 -1
  637. package/views/View.js +1 -1
  638. package/views/View2D.d.ts +62 -54
  639. package/views/analysis/LengthDimensionResult.js +1 -1
  640. package/views/draw/drawSurfaces.js +1 -1
  641. package/views/interactive/Tooltip.js +1 -1
  642. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  643. package/views/interactive/sketch/SketchLabelOptions.js +1 -1
  644. package/views/interactive/sketch/constraints.js +1 -1
  645. package/views/interactive/sketch/normalizedPoint.js +1 -1
  646. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  647. package/views/interactive/support/utils.js +1 -1
  648. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  649. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  650. package/views/interactive/tooltip/fields/fields.js +1 -1
  651. package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
  652. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  653. package/views/layers/BuildingComponentSublayerView.js +1 -1
  654. package/views/layers/FeatureLikeLayerView.d.ts +6 -3
  655. package/views/layers/FeatureLikeLayerView.js +1 -1
  656. package/views/layers/GraphicsLayerView.d.ts +6 -3
  657. package/views/layers/GroupLayerView.js +1 -1
  658. package/views/layers/ImageryLayerView.d.ts +4 -0
  659. package/views/layers/SceneLayerView.js +1 -1
  660. package/views/overlay/CrosshairOverlayItem.js +1 -1
  661. package/views/overlay/LineOverlayItem.js +1 -1
  662. package/views/support/angularMeasurementUtils.js +1 -1
  663. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  664. package/views/support/flow/dataUtils.js +1 -1
  665. package/views/support/geometry2dUtils.js +1 -1
  666. package/views/support/geometry3dUtils.js +1 -1
  667. package/views/webgl/RenderingContext.js +1 -1
  668. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +1 -1
  669. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  670. package/widgets/BatchAttributeForm/css.js +1 -1
  671. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +1 -1
  672. package/widgets/BatchAttributeForm/types.d.ts +1 -1
  673. package/widgets/BatchAttributeForm.js +1 -1
  674. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  675. package/widgets/BuildingExplorer/BuildingLevelPicker/constants.js +1 -1
  676. package/widgets/Editor/components/Settings.js +1 -1
  677. package/widgets/Histogram/HistogramViewModel.js +1 -1
  678. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  679. package/widgets/Sketch.js +1 -1
  680. package/widgets/support/ContingentValuesManager.js +1 -1
  681. package/assets/esri/core/workers/chunks/069459519477bb3dc91b.js +0 -1
  682. package/assets/esri/core/workers/chunks/0b445c1cf281f158c1f1.js +0 -1
  683. package/assets/esri/core/workers/chunks/115664cb7d7b22a315bb.js +0 -1
  684. package/assets/esri/core/workers/chunks/123a67e84ed68b96ac59.js +0 -1
  685. package/assets/esri/core/workers/chunks/13940660fe88cfc0d9f3.js +0 -1
  686. package/assets/esri/core/workers/chunks/18201119828664373165.js +0 -1
  687. package/assets/esri/core/workers/chunks/19f07c8d0f32ec889861.js +0 -1
  688. package/assets/esri/core/workers/chunks/1bebf7202d5f94b15674.js +0 -1
  689. package/assets/esri/core/workers/chunks/1f537c05c2f643acb5e7.js +0 -1
  690. package/assets/esri/core/workers/chunks/241aeff6afd074ce105b.js +0 -1
  691. package/assets/esri/core/workers/chunks/2855357a2c1f2ab03fb7.js +0 -1
  692. package/assets/esri/core/workers/chunks/290163964ec7f05f96d6.js +0 -1
  693. package/assets/esri/core/workers/chunks/29615df388a0df022d8c.js +0 -1
  694. package/assets/esri/core/workers/chunks/30e191d36aa95823c018.js +0 -1
  695. package/assets/esri/core/workers/chunks/315bf08dff4757ffbed3.js +0 -1
  696. package/assets/esri/core/workers/chunks/31c01885ee6d70a2bde2.js +0 -1
  697. package/assets/esri/core/workers/chunks/3292b3883f203637b5a7.js +0 -1
  698. package/assets/esri/core/workers/chunks/35527a01d61cabbfd33e.js +0 -1
  699. package/assets/esri/core/workers/chunks/3f1d533efe4300d19e6a.js +0 -1
  700. package/assets/esri/core/workers/chunks/4364a3e706294bb6ae41.js +0 -1
  701. package/assets/esri/core/workers/chunks/453c9e8d438d061e1736.js +0 -1
  702. package/assets/esri/core/workers/chunks/479e34b0abc10499bd3a.js +0 -1
  703. package/assets/esri/core/workers/chunks/49675e77a351abda2728.js +0 -1
  704. package/assets/esri/core/workers/chunks/4cdf80e2e60501dd4756.js +0 -1
  705. package/assets/esri/core/workers/chunks/4e314e7cf477ad54541d.js +0 -1
  706. package/assets/esri/core/workers/chunks/51edfe21d4c6ee22c83d.js +0 -1
  707. package/assets/esri/core/workers/chunks/53246ce4d2c7d2d2fc62.js +0 -1
  708. package/assets/esri/core/workers/chunks/5524a71d1abc9568ce26.js +0 -1
  709. package/assets/esri/core/workers/chunks/578ab400e1998d0bcd62.js +0 -1
  710. package/assets/esri/core/workers/chunks/5dc86a3a40d16b576bb5.js +0 -1
  711. package/assets/esri/core/workers/chunks/6182d39e2095d4460b88.js +0 -1
  712. package/assets/esri/core/workers/chunks/621d71d26bd20e296138.js +0 -1
  713. package/assets/esri/core/workers/chunks/67dffb896b6ef4b2038b.js +0 -1
  714. package/assets/esri/core/workers/chunks/694f9571e2723d3d4b02.js +0 -1
  715. package/assets/esri/core/workers/chunks/69ad5930ff6040c6c561.js +0 -1
  716. package/assets/esri/core/workers/chunks/78af4b7a379c40f497a7.js +0 -1
  717. package/assets/esri/core/workers/chunks/86f2de7dda7992ae706c.js +0 -1
  718. package/assets/esri/core/workers/chunks/895114ccd2603830960f.js +0 -1
  719. package/assets/esri/core/workers/chunks/8cc6a00c2991ce3fde67.js +0 -1
  720. package/assets/esri/core/workers/chunks/979bab62cad788180770.js +0 -1
  721. package/assets/esri/core/workers/chunks/9d70247d820085a2c190.js +0 -1
  722. package/assets/esri/core/workers/chunks/a0aaf14c8f9a007d88ac.js +0 -1
  723. package/assets/esri/core/workers/chunks/adac8583750783b9c599.js +0 -2
  724. package/assets/esri/core/workers/chunks/af45110f07e4b5162bae.js +0 -1
  725. package/assets/esri/core/workers/chunks/b0c647af49c9d563b852.js +0 -1
  726. package/assets/esri/core/workers/chunks/b640651c7d86cfe654bf.js +0 -1
  727. package/assets/esri/core/workers/chunks/c13c532fe38ddc5d7ca6.js +0 -1
  728. package/assets/esri/core/workers/chunks/c5b7ff8650235c464dbf.js +0 -1
  729. package/assets/esri/core/workers/chunks/cc48354c54358777e996.js +0 -1
  730. package/assets/esri/core/workers/chunks/d2dd6e252d5fecfc0f83.js +0 -1
  731. package/assets/esri/core/workers/chunks/d5423df247be82fa085a.js +0 -1
  732. package/assets/esri/core/workers/chunks/da4f7d7099ba88f31f45.js +0 -1
  733. package/assets/esri/core/workers/chunks/dbb1ac41fd5da4fd849b.js +0 -1
  734. package/assets/esri/core/workers/chunks/de41c3f5b34c49175833.js +0 -1
  735. package/assets/esri/core/workers/chunks/e0036fa0324a96a88248.js +0 -1
  736. package/assets/esri/core/workers/chunks/e29d182460564c2a52ad.js +0 -1
  737. package/assets/esri/core/workers/chunks/f0b5c140a5ba174572b6.js +0 -1
  738. package/assets/esri/core/workers/chunks/f286680e363eefdf27df.js +0 -1
  739. /package/assets/esri/core/workers/chunks/{adac8583750783b9c599.js.LICENSE.txt → 319ff04282dc8ae38b56.js.LICENSE.txt} +0 -0
  740. /package/assets/esri/core/workers/chunks/{daec09750a5a70cdb0f0.js.LICENSE.txt → 50dc9893e13396f5e35d.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{ShaderPrimitiveNode as e,cloneShaderNode as n,ShaderConditionNode as r,ShaderPropertyAccessNode as i,ShaderFunctionNode as c,ShaderArrayWriteNode as s,ShaderBlockNode as u,ShaderPropertyAccess2DNode as o,ShaderArrayReadNode as h,ShaderScopeNode as l}from"./ShaderGraphNode.js";var a,f,p,d,y,w,m,v,b,g,x,I,E;function $(t){switch(t.type){case"uint":return C;case"uvec2":return X;case"uvec3":return Y;case"uvec4":return _;default:throw new Error("Found unexpected type")}}function z(t){switch(t.type){case"float":return A;case"vec2":return G;case"vec3":return H;case"vec4":return V;default:throw new Error("Found unexpected type")}}function T(t){switch(t.type){case"int":return C;case"ivec2":return X;case"ivec3":return Y;case"ivec4":return _;default:throw new Error("Found unexpected type")}}function N(t){switch(t.type){case"float":return W;case"vec2":return Z;case"vec3":return tt;case"vec4":return et;default:throw new Error("Found unexpected type")}}function D(t){switch(t.type){case"bool":case"float":case"int":case"uint":return J;case"bvec2":case"vec2":case"ivec2":case"uvec2":return K;case"bvec3":case"vec3":case"ivec3":case"uvec3":return L;case"bvec4":case"vec4":case"ivec4":case"uvec4":return Q;default:throw new Error("Unable to handle type")}}function F(t){switch(t.type){case"bool":case"bvec2":case"bvec3":case"bvec4":return J;case"float":case"vec2":case"vec3":case"vec4":return C;case"int":case"ivec2":case"ivec3":case"ivec4":return W;case"uint":case"uvec2":case"uvec3":case"uvec4":return A;default:throw new Error("Unable to handle type")}}function k(t){switch(t.type){case"float":case"int":case"uint":case"bool":case"sampler2D":return 1;case"vec2":case"ivec2":case"uvec2":case"bvec2":return 2;case"vec3":case"ivec3":case"uvec3":case"bvec3":return 3;case"vec4":case"ivec4":case"uvec4":case"bvec4":case"mat2":return 4;case"mat3":return 9;case"mat4":return 16;case"array":case"array-2d":return t.size*k(t.elementType)}}function M(t){const e=[["float","vec2","vec3","vec4"],["int","ivec2","ivec3","ivec4"],["uint","uvec2","uvec3","uvec4"],["bool","bvec2","bvec3","bvec4"]];for(const n of e)if(n.includes(t))return n.map(t=>ct[t]);throw new Error("Unable to find type family")}function S(t){return new Proxy(t,{get(e,n){if("constructor"===n)return new Proxy(e.constructor,{construct:(t,e,n)=>S(new t(...e))});if(n in e)return e[n];if("string"==typeof n){const e=M(t.type);return dt(t,n,e[n.length-1])}}})}function R(t){return new Proxy(t,{construct:(t,e,n)=>S(new t(...e))})}function j(t,e){if(!Number.isSafeInteger(t)||t<0||t>=e)throw new B}class B extends Error{}class q extends e{static{this.type="array"}constructor(t,e,n=null){super(),this.elementType=t,this.size=e,this.writeNode=n,this.type="array"}get children(){return this.writeNode?[this.writeNode]:[this.elementType]}clone(){const t=this.writeNode?n(this.writeNode):null,e=new q(n(this.elementType),this.size,t);return super.cloneInto(e),e}set(t,e){return"number"==typeof t&&j(t,this.size),new q(n(this.elementType),this.size,new s(this,t,e))}get(t,e){"number"==typeof t&&j(t,this.size);const n=null!=e?new W(e):null;if(null!=n){const e=F(this.elementType.constructor);return yt(this,new W(t),n,e)}return wt(this,t,this.elementType.constructor)}last(){return this.get(this.size-1)}first(){return this.get(0)}findIndex(t,e,n){return $t(this,t,e,n)}glslFindIndex(t,e,n){return zt(this,t,e,n)}static ofType(t,e){const n=t;return class extends q{static{this.elementType=t}static{this.size=e}constructor(){super(new n,e)}}}}class U extends e{static{this.type="array-2d"}constructor(t,e,n,r=!1){super(),this.elementType=t,this.xSize=e,this.ySize=n,this.isRowMajor=r,this.type="array-2d",this.children=Array(e*n).fill(t)}clone(){const t=new U(n(this.elementType),this.xSize,this.ySize,this.isRowMajor);return t.children=this.children.map(n),super.cloneInto(t),t}get size(){return this.xSize*this.ySize}get(t,e){return this.isRowMajor?this._getRowMajor(t,e):this._getColumnMajor(t,e)}_getColumnMajor(t,e){const n=new W(t);return dt(this,new W(e).add(n.multiply(this.xSize)),this.elementType.constructor)}_getRowMajor(t,e){const n=new W(t),r=new W(e);return dt(this,n.add(r.multiply(this.ySize)),this.elementType.constructor)}static ofType(t,e,n,r=!1){return new Proxy(q,{construct:(i,c)=>new U(new t,e,n,r)})}}class P extends e{constructor(){super(...arguments),this.type="sampler2D",this.children=[]}static{this.type="sampler2D"}clone(){const t=new P;return t.children=this.children.map(n),super.cloneInto(t),t}}class C extends e{static{this.type="float"}constructor(t){super(),this.type="float",this.children=[t]}clone(){const t=new C(n(this.children[0]));return super.cloneInto(t),t}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}}let X=class extends e{static{a=this}static{this.type="vec2"}constructor(t,e){super(),this.type="vec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new a(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};X=a=t([R],X);let Y=class extends e{static{f=this}static{this.type="vec3"}constructor(t,e,n){super(),this.type="vec3",this.children=[t,e,n].filter(t=>null!=t)}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){return dt(this,"[2]",C)}get 3(){throw new B}clone(){const t=new f(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};Y=f=t([R],Y);let _=class extends e{static{p=this}static{this.type="vec4"}constructor(t,e,n,r){super(),this.type="vec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new p(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){return dt(this,"[2]",C)}get 3(){return dt(this,"[3]",C)}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};_=p=t([R],_);let A=class extends e{static{d=this}static{this.type="uint"}constructor(t){super(),this.type="uint",this.children=[t]}clone(){const t=new d(n(this.children[0]));return super.cloneInto(t),t}multiply(t){return Ft(this,O(t,d))}add(t){return Mt(this,O(t,d))}subtract(t){return St(this,O(t,d))}divide(t){return kt(this,O(t,d))}};A=d=t([R],A);let G=class extends e{static{y=this}static{this.type="uvec2"}constructor(t,e){super(),this.type="uvec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new y(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};G=y=t([R],G);let H=class extends e{static{w=this}static{this.type="uvec3"}constructor(t,e,n){super(),this.type="uvec3",this.children=[t,e,n].filter(t=>null!=t)}clone(){const t=new w(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",A)}get 1(){return dt(this,"[1]",A)}get 2(){return dt(this,"[2]",A)}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};H=w=t([R],H);let V=class extends e{static{m=this}static{this.type="uvec4"}constructor(t,e,n,r){super(),this.type="uvec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new m(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",A)}get 1(){return dt(this,"[1]",A)}get 2(){return dt(this,"[2]",A)}get 3(){return dt(this,"[3]",A)}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};V=m=t([R],V);class J extends e{static{this.type="bool"}constructor(t){super(),this.type="bool",this.children=[t]}and(t){return Ot(this,t)}or(t){return Vt(this,t)}xor(t){return Kt(this,t)}clone(){const t=new J(n(this.children[0]));return super.cloneInto(t),t}}let K=class extends e{static{v=this}static{this.type="bvec2"}constructor(t,e){super(),this.type="bvec2",this.children=[t,e].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new v(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}};K=v=t([R],K);let L=class extends e{static{b=this}static{this.type="bvec3"}constructor(t,e,n){super(),this.type="bvec3",this.children=[t,e,n].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new b(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}};function O(t,e){if("number"==typeof t){return new e(t)}return t}L=b=t([R],L);let Q=class extends e{static{g=this}static{this.type="bvec4"}constructor(t,e,n,r){super(),this.type="bvec4",this.children=[t,e,n,r].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new g(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}};Q=g=t([R],Q);class W extends e{static{this.type="int"}constructor(t){super(),this.type="int",this.children=[t]}multiply(t){return Ft(this,O(t,W))}add(t){return Mt(this,O(t,W))}subtract(t){return St(this,O(t,W))}divide(t){return kt(this,O(t,W))}clone(){const t=new W(n(this.children[0]));return super.cloneInto(t),t}}let Z=class extends e{static{x=this}static{this.type="ivec2"}constructor(t,e){super(),this.type="ivec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new x(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};Z=x=t([R],Z);let tt=class extends e{static{I=this}static{this.type="ivec3"}constructor(t,e,n){super(),this.type="ivec3",this.children=[t,e,n].filter(t=>null!=t)}clone(){const t=new I(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){return dt(this,"[2]",W)}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};tt=I=t([R],tt);let et=class extends e{static{E=this}static{this.type="ivec4"}constructor(t,e,n,r){super(),this.type="ivec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new E(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){return dt(this,"[2]",W)}get 3(){return dt(this,"[3]",W)}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};et=E=t([R],et);class nt extends e{static{this.type="mat2"}constructor(t,e,n,r){super(),this.type="mat2",this.children=[t,e,n,r]}clone(){const t=new nt(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get(t,e){return yt(this,new W(t),new W(e),C)}multiply(t){return Ft(this,t)}}class rt extends e{static{this.type="mat3"}static identity(){return new rt(1,0,0,0,1,0,0,0,1)}static fromRotation(t){const e=un(t),n=he(t);return new rt(n,e,0,xt(e),n,0,0,0,1)}constructor(t,e,n,r,i,c,s,u,o){super(),this.type="mat3",this.children=[t,e,n,r,i,c,s,u,o]}add(t){return Mt(this,t)}multiply(t){return Ft(this,t)}get(t,e){return yt(this,new W(t),new W(e),C)}clone(){const t=new rt(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]),n(this.children[4]),n(this.children[5]),n(this.children[6]),n(this.children[7]),n(this.children[8]));return super.cloneInto(t),t}}class it extends e{static{this.type="mat4"}static identity(){return new it(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}constructor(t,e,n,r,i,c,s,u,o,h,l,a,f,p,d,y){super(),this.type="mat4",this.children=[t,e,n,r,i,c,s,u,o,h,l,a,f,p,d,y]}static fromColumns(t,e,n,r){return new it(t.x,t.y,t.z,t.w,e.x,e.y,e.z,e.w,n.x,n.y,n.z,n.w,r.x,r.y,r.z,r.w)}multiply(t){return Ft(this,t)}get(t,e){return yt(this,new W(t),new W(e),C)}clone(){const t=new it(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]),n(this.children[4]),n(this.children[5]),n(this.children[6]),n(this.children[7]),n(this.children[8]),n(this.children[9]),n(this.children[10]),n(this.children[11]),n(this.children[12]),n(this.children[13]),n(this.children[14]),n(this.children[15]));return super.cloneInto(t),t}}const ct={float:C,vec2:X,vec3:Y,vec4:_,int:W,ivec2:Z,ivec3:tt,ivec4:et,uint:A,uvec2:G,uvec3:H,uvec4:V,bool:J,bvec2:K,bvec3:L,bvec4:Q},st=(...t)=>new W(...t),ut=(...t)=>new C(...t),ot=(...t)=>new X(...t),ht=(...t)=>new Y(...t),lt=(...t)=>new _(...t),at=(...t)=>new nt(...t),ft=(...t)=>new rt(...t),pt=(...t)=>new it(...t);function dt(t,e,n){const r=new n(new i(e,t,n));return r.isImplicit=!0,r}function yt(t,e,n,r){const i=new r(new o(e,n,t,r));return i.isImplicit=!0,i}function wt(t,e,n){const r=new n(new h(t,e,n));return r.isImplicit=!0,r}function mt(t,e,n,r=null){if(r){const i=new r,s=new r(new c(t,[e,n],!0,!1,i));return s.isImplicit=!0,s}if("float"===e.type||"int"===e.type){const r=new n.constructor(new c(t,[e,n],!0,!1,n.constructor));return r.isImplicit=!0,r}if(("mat2"===e.type||"mat3"===e.type||"mat4"===e.type)&&"float"!==n.type){const r=new n.constructor(new c(t,[e,n],!0,!1,n.constructor));return r.isImplicit=!0,r}const i=new e.constructor(new c(t,[e,n],!0,!1,e.constructor));return i.isImplicit=!0,i}function vt(t,e,n=e.constructor){const r=new n(new c(t,[e],!1,!1,n));return r.isImplicit=!0,r}function bt(t,e,n,r=e.constructor){const i=new r(new c(t,[e,n],!1,!1,r));return i.isImplicit=!0,i}function gt(t,e,n,r,i=e.constructor){const s=new i(new c(t,[e,n,r],!1,!1,i));return s.isImplicit=!0,s}function xt(t){return Ft(t,ut(-1))}function It(t,e,n,r){return new e(new u(t,e,n,r))}function Et(t,e){const n="function"==typeof t?t():t,r=new n.constructor(new l(n).setDebugName(e));return r.isImplicit=!0,r}function $t(t,e,n=0,r=t.size){const i=new W(n).setMutable().setDebugName("FindIndexIterator"),c=e(t.get(i)).setDebugName("FindIndexPredicate"),s=It({iter:i},W,c,({out:t,iter:e,subgraph:n})=>`\n${t} = -1;\n\nfor (; ${e} < ${r}; ${e}++) {\n\n${n.body}\n\n if (${n.varName}) {\n ${t} = ${e};\n break;\n }\n\n}\n`).setDebugName("FindIndexBlock");return s}function zt(t,e,n=0,r=t.size){const i=It({array:t},W,null,({out:t,array:i})=>`\n${t} = -1;\nfor (int i = ${n}; i < ${r}; i++) {\n bool condition;\n ${e({array:i,i:"i",out:"condition"})}\n if (condition) {\n ${t} = i;\n break;\n }\n}\n`).setDebugName("GlslFindIndexBlock");return i}function Tt(t,e,n){const i="function"==typeof e?e():e,c="function"==typeof n?n():n,s=new i.constructor(new r(t,i,c));return s.isImplicit=!0,s}function Nt(...t){const e=t.map(([t,e])=>"function"==typeof e?[t,e()]:[t,e]),n=e[0][1].constructor,r=e.findIndex(t=>!0===t[0]);if(-1===r)throw new Error("A cond must have a fallthrough case with `true`/; ");const i=e.slice(0,r),c=e[r][1],s=new n(i.reduceRight((t,e)=>Tt(e[0],e[1],t),c));return s.isImplicit=!0,s}function Dt(t,e){const n=new e.constructor(new r(t,e,null));return n.isImplicit=!0,n}function Ft(t,e){return mt("*",t,e)}function kt(t,e){return mt("/",t,e)}function Mt(t,e){return mt("+",t,e)}function St(t,e){return mt("-",t,e)}function Rt(t,e){return mt("%",t,e)}function jt(t,e){return mt("<<",t,e)}function Bt(t,e){return mt(">>",t,e)}function qt(t,e){return mt("&",t,e)}function Ut(t,e){return mt("|",t,e)}function Pt(t,e){return mt("^",t,e)}function Ct(t){return vt("~",t)}function Xt(t,e){return mt("==",t,e,J)}function Yt(t,e){return mt("!=",t,e,J)}function _t(t,e){return mt("<",t,e,J)}function At(t,e){return mt("<=",t,e,J)}function Gt(t,e){return mt(">",t,e,J)}function Ht(t,e){return mt(">=",t,e,J)}function Vt(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Jt(t,e),t[0])}function Jt(t,e){return mt("||",t,e,J)}function Kt(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Lt(t,e),t[0])}function Lt(t,e){return mt("^^",t,e,J)}function Ot(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Qt(t,e),t[0])}function Qt(t,e){return mt("&&",t,e,J)}function Wt(t){return vt("abs",t)}function Zt(t){return vt("acos",t)}function te(t){return vt("acosh",t)}function ee(t){return vt("all",t,J)}function ne(t){return vt("any",t,J)}function re(t){return vt("asin",t)}function ie(t){return vt("asinh",t)}function ce(t,e){return null==e?vt("atan",t):bt("atan",t,e,t.constructor)}function se(t){return vt("atanh",t)}function ue(t){return vt("ceil",t)}function oe(t,e,n){return gt("clamp",t,e,n,t.constructor)}function he(t){return vt("cos",t)}function le(t){return vt("cosh",t)}function ae(t,e){return bt("cross",t,e,t.constructor)}function fe(t){return vt("dFdX",t)}function pe(t){return vt("dFdY",t)}function de(t){return vt("degrees",t)}function ye(t){return vt("determinant",t,C)}function we(t,e){return bt("distance",t,e,C)}function me(t,e){return bt("dot",t,e,C)}function ve(t,e){return bt("equal",t,e,D(t))}function be(t,e){return bt("greaterThan",t,e,D(t))}function ge(t,e){return bt("greaterThanEqual",t,e,D(t))}function xe(t){return vt("exp",t)}function Ie(t){return vt("exp2",t)}function Ee(t,e,n){return gt("faceforward",t,e,n)}function $e(t){return vt("floatBitsToInt",t,N(t))}function ze(t){return vt("floatBitsToUint",t,z(t))}function Te(t){return vt("floor",t)}function Ne(t){return vt("fract",t)}function De(t){return vt("fwidth",t)}function Fe(t){return vt("intBitsToFloat",t,T(t))}function ke(t){return vt("uintBitsToFloat",t,$(t))}function Me(t){return vt("inverse",t,C)}function Se(t){return vt("inversesqrt",t)}function Re(t){return vt("isinf",t,D(t))}function je(t){return vt("isnan",t,D(t))}function Be(t){return vt("length",t,C)}function qe(t,e){return bt("lessThan",t,e,D(t))}function Ue(t,e){return bt("lessThanEqual",t,e,D(t))}function Pe(t){return vt("log",t)}function Ce(t){return vt("log2",t)}function Xe(t,e){return bt("matrixCompMult",t,e)}function Ye(t,e){return bt("max",t,e)}function _e(t,e){return bt("min",t,e)}function Ae(t,e,n){return gt("mix",t,e,n)}function Ge(t,e){return bt("mod",t,e)}function He(t,e){throw new Error("modf not implemented")}function Ve(t){return vt("normalize",t)}function Je(t){return"bool"===t.type?vt("!",t):vt("not",t)}function Ke(t,e){return bt("notEqual",t,e,D(t))}function Le(t,e){throw new Error("Impl type?")}function Oe(t){return vt("packHalf2x16",t,A)}function Qe(t){return vt("packUnorm2x16",t,A)}function We(t){return vt("packSnorm2x16",t,A)}function Ze(t,e){return bt("pow",t,e)}function tn(t){return vt("radians",t)}function en(t,e){return bt("reflect",t,e)}function nn(t,e,n){return gt("refract",t,e,n)}function rn(t){return vt("round",t)}function cn(t){return vt("roundEven",t)}function sn(t){return vt("sign",t)}function un(t){return vt("sin",t)}function on(t){return vt("sinh",t)}function hn(t,e,n){return gt("smoothstep",t,e,n)}function ln(t){return vt("sqrt",t)}function an(t,e){return bt("step",t,e,e.constructor)}function fn(t){return vt("tan",t)}function pn(t){return vt("tanh",t)}function dn(t,e,n){return gt("texelFetch",t,e,n,_)}function yn(t,e,n,r){throw new Error("Impl type")}function wn(t,e,n){throw new Error("Impl type")}function mn(t,e){return bt("texture",t,e,_)}function vn(t,e,n,r){throw new Error("Impl type")}function bn(t,e,n,r,i){throw new Error("Impl type")}function gn(t,e,n){throw new Error("Impl type")}function xn(t,e,n,r){throw new Error("Impl type")}function In(t,e,n,r){throw new Error("Impl type")}function En(t,e,n){throw new Error("Impl type")}function $n(t,e,n,r){throw new Error("Impl type")}function zn(t,e,n,r,i){throw new Error("Impl type")}function Tn(t,e,n){throw new Error("Impl type")}function Nn(t,e,n,r){throw new Error("Impl type")}function Dn(t,e,n,r){throw new Error("Impl type")}function Fn(t,e){throw new Error("Impl type")}function kn(t){return vt("transpose",t)}function Mn(t){return vt("trunc",t)}function Sn(t){return vt("unpackHalf2x16",t,X)}function Rn(t){return vt("unpackUnorm2x16",t,X)}function jn(t){return vt("unpackSnorm2x16",t,X)}function Bn(t,e){const n=Ze(new C(2),new C(e));return[new _(Ge(t.x,n),Te(t.x.divide(n)),Ge(t.y,n),Te(t.y.divide(n))),new _(Ge(t.z,n),Te(t.z.divide(n)),Ge(t.w,n),Te(t.w.divide(n)))]}function qn(t,e){const{initialValue:n,xRange:r,yRange:i,callback:c}=e,[s,u]=r,[o,h]=i,l=new W(0).setMutable().setDebugName("iterX"),a=new W(0).setMutable().setDebugName("iterY"),f=n.setMutable().setDebugName("accumulator"),p=c(f,t.get(l,a),l,a).setDebugName("callback"),d=It({iterX:l,iterY:a,accumulator:f},n.constructor,p,({out:t,iterX:e,iterY:n,accumulator:r,subgraph:i})=>`\nfor (${n} = ${o}; ${n} < ${h}; ${n}++) {\n for (${e} = ${s}; ${e} < ${u}; ${e}++) {\n\n ${i.body}\n\n ${r} = ${i.varName};\n }\n}\n${t} = ${r};\n`).setDebugName("reduce2DBody");return d}export{K as BVec2,L as BVec3,Q as BVec4,J as Bool,q as FixedArray,U as FixedArray2D,C as Float,Z as IVec2,tt as IVec3,et as IVec4,W as Int,nt as Mat2,rt as Mat3,it as Mat4,P as Sampler2D,A as UInt,G as UVec2,H as UVec3,V as UVec4,X as Vec2,Y as Vec3,_ as Vec4,Jt as _or,Lt as _xor,Wt as abs,Zt as acos,te as acosh,Mt as add,ee as all,Ot as and,ne as any,re as asin,ie as asinh,ce as atan,se as atanh,qt as bitAnd,Ct as bitNot,Ut as bitOr,Bt as bitRShift,jt as bitShift,Pt as bitXor,It as block,ue as ceil,oe as clamp,Nt as cond,he as cos,le as cosh,ae as cross,fe as dFdx,pe as dFdy,wt as defineArrayRead,dt as definePropertyAccess,yt as definePropertyAccess2D,de as degrees,ye as determinant,we as distance,kt as divide,me as dot,Xt as equal,ve as equalComponent,xe as exp,Ie as exp2,Ee as faceforward,$t as findIndex,ut as float,$e as floatBitsToInt,ze as floatBitsToUint,Te as floor,Ne as fract,De as fwidth,k as getTypeElementLengthForType,zt as glslFindIndex,Gt as greaterThan,be as greaterThanComponent,Ht as greaterThanEqual,ge as greaterThanEqualComponent,Tt as ifElse,st as int,Fe as intBitsToFloat,Rt as intMod,Me as inverse,Se as inversesqrt,Re as isinf,je as isnan,Be as length,_t as lessThan,qe as lessThanComponent,At as lessThanEqual,Ue as lessThanEqualComponent,Pe as log,Ce as log2,at as mat2,ft as mat3,pt as mat4,Xe as matrixCompMult,Ye as max,_e as min,Ae as mix,Ge as mod,He as modf,Ft as multiply,Et as namedScope,xt as negate,Ve as normalize,Je as not,Yt as notEqual,Ke as notEqualComponent,Vt as or,Le as outerProduct,Oe as packHalf2x16,We as packSnorm2x16,Qe as packUnorm2x16,Ze as pow,tn as radians,qn as reduce2D,en as reflect,nn as refract,rn as round,cn as roundEven,sn as sign,un as sin,on as sinh,hn as smoothstep,ln as sqrt,an as step,St as subtract,fn as tan,pn as tanh,dn as texelFetch,yn as texelFetchOffset,wn as texture,mn as texture2D,vn as textureGrad,bn as textureGradOffset,gn as textureLod,xn as textureLodOffset,In as textureOffset,En as textureProj,$n as textureProjGrad,zn as textureProjGradOffset,Tn as textureProjLod,Nn as textureProjLodOffset,Dn as textureProjOffset,Fn as textureSize,N as transformFloatToInt,z as transformFloatToUInt,T as transformIntToFloat,D as transformTypeToBooleanType,$ as transformUIntToFloat,kn as transpose,Mn as trunc,ke as uintBitsToFloat,Sn as unpackHalf2x16,jn as unpackSnorm2x16,Rn as unpackUnorm2x16,Bn as unpackVec4,ot as vec2,ht as vec3,lt as vec4,Dt as when,Kt as xor};
2
+ import{__decorate as t}from"tslib";import{ShaderPrimitiveNode as e,cloneShaderNode as n,ShaderPropertyAccessNode as r,ShaderPropertyAccess2DNode as i,ShaderFunctionNode as c,ShaderConditionNode as s,ShaderArrayWriteNode as u,ShaderArrayReadNode as o,ShaderBlockNode as h,ShaderScopeNode as l}from"./ShaderGraphNode.js";var a,f,p,d,y,w,m,v,b,g,x,I,E;function $(t){switch(t.type){case"uint":return C;case"uvec2":return X;case"uvec3":return Y;case"uvec4":return _;default:throw new Error("Found unexpected type")}}function z(t){switch(t.type){case"float":return A;case"vec2":return G;case"vec3":return H;case"vec4":return V;default:throw new Error("Found unexpected type")}}function T(t){switch(t.type){case"int":return C;case"ivec2":return X;case"ivec3":return Y;case"ivec4":return _;default:throw new Error("Found unexpected type")}}function N(t){switch(t.type){case"float":return W;case"vec2":return Z;case"vec3":return tt;case"vec4":return et;default:throw new Error("Found unexpected type")}}function D(t){switch(t.type){case"bool":case"float":case"int":case"uint":return J;case"bvec2":case"vec2":case"ivec2":case"uvec2":return K;case"bvec3":case"vec3":case"ivec3":case"uvec3":return L;case"bvec4":case"vec4":case"ivec4":case"uvec4":return Q;default:throw new Error("Unable to handle type")}}function F(t){switch(t.type){case"bool":case"bvec2":case"bvec3":case"bvec4":return J;case"float":case"vec2":case"vec3":case"vec4":return C;case"int":case"ivec2":case"ivec3":case"ivec4":return W;case"uint":case"uvec2":case"uvec3":case"uvec4":return A;default:throw new Error("Unable to handle type")}}function k(t){switch(t.type){case"float":case"int":case"uint":case"bool":case"sampler2D":return 1;case"vec2":case"ivec2":case"uvec2":case"bvec2":return 2;case"vec3":case"ivec3":case"uvec3":case"bvec3":return 3;case"vec4":case"ivec4":case"uvec4":case"bvec4":case"mat2":return 4;case"mat3":return 9;case"mat4":return 16;case"array":case"array-2d":return t.size*k(t.elementType)}}function M(t){const e=[["float","vec2","vec3","vec4"],["int","ivec2","ivec3","ivec4"],["uint","uvec2","uvec3","uvec4"],["bool","bvec2","bvec3","bvec4"]];for(const n of e)if(n.includes(t))return n.map(t=>ct[t]);throw new Error("Unable to find type family")}function S(t){return new Proxy(t,{get(e,n){if("constructor"===n)return new Proxy(e.constructor,{construct:(t,e,n)=>S(new t(...e))});if(n in e)return e[n];if("string"==typeof n){const e=M(t.type);return dt(t,n,e[n.length-1])}}})}function R(t){return new Proxy(t,{construct:(t,e,n)=>S(new t(...e))})}function j(t,e){if(!Number.isSafeInteger(t)||t<0||t>=e)throw new B}class B extends Error{}class q extends e{static{this.type="array"}constructor(t,e,n=null){super(),this.elementType=t,this.size=e,this.writeNode=n,this.type="array"}get children(){return this.writeNode?[this.writeNode]:[this.elementType]}clone(){const t=this.writeNode?n(this.writeNode):null,e=new q(n(this.elementType),this.size,t);return super.cloneInto(e),e}set(t,e){return"number"==typeof t&&j(t,this.size),new q(n(this.elementType),this.size,new u(this,t,e))}get(t,e){"number"==typeof t&&j(t,this.size);const n=null!=e?new W(e):null;if(null!=n){const e=F(this.elementType.constructor);return yt(this,new W(t),n,e)}return wt(this,t,this.elementType.constructor)}last(){return this.get(this.size-1)}first(){return this.get(0)}findIndex(t,e,n){return $t(this,t,e,n)}glslFindIndex(t,e,n){return zt(this,t,e,n)}static ofType(t,e){const n=t;return class extends q{static{this.elementType=t}static{this.size=e}constructor(){super(new n,e)}}}}class U extends e{static{this.type="array-2d"}constructor(t,e,n,r=!1){super(),this.elementType=t,this.xSize=e,this.ySize=n,this.isRowMajor=r,this.type="array-2d",this.children=Array(e*n).fill(t)}clone(){const t=new U(n(this.elementType),this.xSize,this.ySize,this.isRowMajor);return t.children=this.children.map(n),super.cloneInto(t),t}get size(){return this.xSize*this.ySize}get(t,e){return this.isRowMajor?this._getRowMajor(t,e):this._getColumnMajor(t,e)}_getColumnMajor(t,e){const n=new W(t);return dt(this,new W(e).add(n.multiply(this.xSize)),this.elementType.constructor)}_getRowMajor(t,e){const n=new W(t),r=new W(e);return dt(this,n.add(r.multiply(this.ySize)),this.elementType.constructor)}static ofType(t,e,n,r=!1){return new Proxy(q,{construct:(i,c)=>new U(new t,e,n,r)})}}class P extends e{constructor(){super(...arguments),this.type="sampler2D",this.children=[]}static{this.type="sampler2D"}clone(){const t=new P;return t.children=this.children.map(n),super.cloneInto(t),t}}class C extends e{static{this.type="float"}constructor(t){super(),this.type="float",this.children=[t]}clone(){const t=new C(n(this.children[0]));return super.cloneInto(t),t}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}}let X=class extends e{static{a=this}static{this.type="vec2"}constructor(t,e){super(),this.type="vec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new a(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};X=a=t([R],X);let Y=class extends e{static{f=this}static{this.type="vec3"}constructor(t,e,n){super(),this.type="vec3",this.children=[t,e,n].filter(t=>null!=t)}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){return dt(this,"[2]",C)}get 3(){throw new B}clone(){const t=new f(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};Y=f=t([R],Y);let _=class extends e{static{p=this}static{this.type="vec4"}constructor(t,e,n,r){super(),this.type="vec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new p(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",C)}get 1(){return dt(this,"[1]",C)}get 2(){return dt(this,"[2]",C)}get 3(){return dt(this,"[3]",C)}multiply(t){return Ft(this,"number"==typeof t?O(t,C):t)}divide(t){return kt(this,"number"==typeof t?O(t,C):t)}add(t){return Mt(this,"number"==typeof t?O(t,C):t)}subtract(t){return St(this,"number"==typeof t?O(t,C):t)}};_=p=t([R],_);let A=class extends e{static{d=this}static{this.type="uint"}constructor(t){super(),this.type="uint",this.children=[t]}clone(){const t=new d(n(this.children[0]));return super.cloneInto(t),t}multiply(t){return Ft(this,O(t,d))}add(t){return Mt(this,O(t,d))}subtract(t){return St(this,O(t,d))}divide(t){return kt(this,O(t,d))}};A=d=t([R],A);let G=class extends e{static{y=this}static{this.type="uvec2"}constructor(t,e){super(),this.type="uvec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new y(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};G=y=t([R],G);let H=class extends e{static{w=this}static{this.type="uvec3"}constructor(t,e,n){super(),this.type="uvec3",this.children=[t,e,n].filter(t=>null!=t)}clone(){const t=new w(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",A)}get 1(){return dt(this,"[1]",A)}get 2(){return dt(this,"[2]",A)}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};H=w=t([R],H);let V=class extends e{static{m=this}static{this.type="uvec4"}constructor(t,e,n,r){super(),this.type="uvec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new m(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",A)}get 1(){return dt(this,"[1]",A)}get 2(){return dt(this,"[2]",A)}get 3(){return dt(this,"[3]",A)}multiply(t){return Ft(this,"number"==typeof t?O(t,A):t)}divide(t){return kt(this,"number"==typeof t?O(t,A):t)}add(t){return Mt(this,"number"==typeof t?O(t,A):t)}subtract(t){return St(this,"number"==typeof t?O(t,A):t)}};V=m=t([R],V);class J extends e{static{this.type="bool"}constructor(t){super(),this.type="bool",this.children=[t]}and(t){return Ot(this,t)}or(t){return Vt(this,t)}xor(t){return Kt(this,t)}clone(){const t=new J(n(this.children[0]));return super.cloneInto(t),t}}let K=class extends e{static{v=this}static{this.type="bvec2"}constructor(t,e){super(),this.type="bvec2",this.children=[t,e].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new v(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}};K=v=t([R],K);let L=class extends e{static{b=this}static{this.type="bvec3"}constructor(t,e,n){super(),this.type="bvec3",this.children=[t,e,n].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new b(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}};function O(t,e){if("number"==typeof t){return new e(t)}return t}L=b=t([R],L);let Q=class extends e{static{g=this}static{this.type="bvec4"}constructor(t,e,n,r){super(),this.type="bvec4",this.children=[t,e,n,r].filter(t=>null!=t)}all(){return ee(this)}any(){return ne(this)}clone(){const t=new g(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}};Q=g=t([R],Q);class W extends e{static{this.type="int"}constructor(t){super(),this.type="int",this.children=[t]}multiply(t){return Ft(this,O(t,W))}add(t){return Mt(this,O(t,W))}subtract(t){return St(this,O(t,W))}divide(t){return kt(this,O(t,W))}clone(){const t=new W(n(this.children[0]));return super.cloneInto(t),t}}let Z=class extends e{static{x=this}static{this.type="ivec2"}constructor(t,e){super(),this.type="ivec2",this.children=[t,e].filter(t=>null!=t)}clone(){const t=new x(n(this.children[0]),n(this.children[1]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){throw new B}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};Z=x=t([R],Z);let tt=class extends e{static{I=this}static{this.type="ivec3"}constructor(t,e,n){super(),this.type="ivec3",this.children=[t,e,n].filter(t=>null!=t)}clone(){const t=new I(n(this.children[0]),n(this.children[1]),n(this.children[2]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){return dt(this,"[2]",W)}get 3(){throw new B}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};tt=I=t([R],tt);let et=class extends e{static{E=this}static{this.type="ivec4"}constructor(t,e,n,r){super(),this.type="ivec4",this.children=[t,e,n,r].filter(t=>null!=t)}clone(){const t=new E(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get 0(){return dt(this,"[0]",W)}get 1(){return dt(this,"[1]",W)}get 2(){return dt(this,"[2]",W)}get 3(){return dt(this,"[3]",W)}multiply(t){return Ft(this,"number"==typeof t?O(t,W):t)}divide(t){return kt(this,"number"==typeof t?O(t,W):t)}add(t){return Mt(this,"number"==typeof t?O(t,W):t)}subtract(t){return St(this,"number"==typeof t?O(t,W):t)}};et=E=t([R],et);class nt extends e{static{this.type="mat2"}constructor(t,e,n,r){super(),this.type="mat2",this.children=[t,e,n,r]}clone(){const t=new nt(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]));return super.cloneInto(t),t}get(t,e){return yt(this,new W(t),new W(e),C)}multiply(t){return Ft(this,t)}}class rt extends e{static{this.type="mat3"}static identity(){return new rt(1,0,0,0,1,0,0,0,1)}static fromRotation(t){const e=un(t),n=he(t);return new rt(n,e,0,xt(e),n,0,0,0,1)}constructor(t,e,n,r,i,c,s,u,o){super(),this.type="mat3",this.children=[t,e,n,r,i,c,s,u,o]}add(t){return Mt(this,t)}multiply(t){return Ft(this,t)}get(t,e){return yt(this,new W(t),new W(e),C)}clone(){const t=new rt(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]),n(this.children[4]),n(this.children[5]),n(this.children[6]),n(this.children[7]),n(this.children[8]));return super.cloneInto(t),t}}class it extends e{static{this.type="mat4"}static identity(){return new it(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}constructor(t,e,n,r,i,c,s,u,o,h,l,a,f,p,d,y){super(),this.type="mat4",this.children=[t,e,n,r,i,c,s,u,o,h,l,a,f,p,d,y]}static fromColumns(t,e,n,r){return new it(t.x,t.y,t.z,t.w,e.x,e.y,e.z,e.w,n.x,n.y,n.z,n.w,r.x,r.y,r.z,r.w)}multiply(t){return Ft(this,t)}get(t,e){return yt(this,new W(t),new W(e),C)}clone(){const t=new it(n(this.children[0]),n(this.children[1]),n(this.children[2]),n(this.children[3]),n(this.children[4]),n(this.children[5]),n(this.children[6]),n(this.children[7]),n(this.children[8]),n(this.children[9]),n(this.children[10]),n(this.children[11]),n(this.children[12]),n(this.children[13]),n(this.children[14]),n(this.children[15]));return super.cloneInto(t),t}}const ct={float:C,vec2:X,vec3:Y,vec4:_,int:W,ivec2:Z,ivec3:tt,ivec4:et,uint:A,uvec2:G,uvec3:H,uvec4:V,bool:J,bvec2:K,bvec3:L,bvec4:Q},st=(...t)=>new W(...t),ut=(...t)=>new C(...t),ot=(...t)=>new X(...t),ht=(...t)=>new Y(...t),lt=(...t)=>new _(...t),at=(...t)=>new nt(...t),ft=(...t)=>new rt(...t),pt=(...t)=>new it(...t);function dt(t,e,n){const i=new n(new r(e,t,n));return i.isImplicit=!0,i}function yt(t,e,n,r){const c=new r(new i(e,n,t,r));return c.isImplicit=!0,c}function wt(t,e,n){const r=new n(new o(t,e,n));return r.isImplicit=!0,r}function mt(t,e,n,r=null){if(r){const i=new r,s=new r(new c(t,[e,n],!0,!1,i));return s.isImplicit=!0,s}if("float"===e.type||"int"===e.type){const r=new n.constructor(new c(t,[e,n],!0,!1,n.constructor));return r.isImplicit=!0,r}if(("mat2"===e.type||"mat3"===e.type||"mat4"===e.type)&&"float"!==n.type){const r=new n.constructor(new c(t,[e,n],!0,!1,n.constructor));return r.isImplicit=!0,r}const i=new e.constructor(new c(t,[e,n],!0,!1,e.constructor));return i.isImplicit=!0,i}function vt(t,e,n=e.constructor){const r=new n(new c(t,[e],!1,!1,n));return r.isImplicit=!0,r}function bt(t,e,n,r=e.constructor){const i=new r(new c(t,[e,n],!1,!1,r));return i.isImplicit=!0,i}function gt(t,e,n,r,i=e.constructor){const s=new i(new c(t,[e,n,r],!1,!1,i));return s.isImplicit=!0,s}function xt(t){return Ft(t,ut(-1))}function It(t,e,n,r){return new e(new h(t,e,n,r))}function Et(t,e){const n="function"==typeof t?t():t,r=new n.constructor(new l(n).setDebugName(e));return r.isImplicit=!0,r}function $t(t,e,n=0,r=t.size){const i=new W(n).setMutable().setDebugName("FindIndexIterator"),c=e(t.get(i)).setDebugName("FindIndexPredicate"),s=It({iter:i},W,c,({out:t,iter:e,subgraph:n})=>`\n${t} = -1;\n\nfor (; ${e} < ${r}; ${e}++) {\n\n${n.body}\n\n if (${n.varName}) {\n ${t} = ${e};\n break;\n }\n\n}\n`).setDebugName("FindIndexBlock");return s}function zt(t,e,n=0,r=t.size){const i=It({array:t},W,null,({out:t,array:i})=>`\n${t} = -1;\nfor (int i = ${n}; i < ${r}; i++) {\n bool condition;\n ${e({array:i,i:"i",out:"condition"})}\n if (condition) {\n ${t} = i;\n break;\n }\n}\n`).setDebugName("GlslFindIndexBlock");return i}function Tt(t,e,n){const r="function"==typeof e?e():e,i="function"==typeof n?n():n,c=new r.constructor(new s(t,r,i));return c.isImplicit=!0,c}function Nt(...t){const e=t.map(([t,e])=>"function"==typeof e?[t,e()]:[t,e]),n=e[0][1].constructor,r=e.findIndex(t=>!0===t[0]);if(-1===r)throw new Error("A cond must have a fallthrough case with `true`/; ");const i=e.slice(0,r),c=e[r][1],s=new n(i.reduceRight((t,e)=>Tt(e[0],e[1],t),c));return s.isImplicit=!0,s}function Dt(t,e){const n=new e.constructor(new s(t,e,null));return n.isImplicit=!0,n}function Ft(t,e){return mt("*",t,e)}function kt(t,e){return mt("/",t,e)}function Mt(t,e){return mt("+",t,e)}function St(t,e){return mt("-",t,e)}function Rt(t,e){return mt("%",t,e)}function jt(t,e){return mt("<<",t,e)}function Bt(t,e){return mt(">>",t,e)}function qt(t,e){return mt("&",t,e)}function Ut(t,e){return mt("|",t,e)}function Pt(t,e){return mt("^",t,e)}function Ct(t){return vt("~",t)}function Xt(t,e){return mt("==",t,e,J)}function Yt(t,e){return mt("!=",t,e,J)}function _t(t,e){return mt("<",t,e,J)}function At(t,e){return mt("<=",t,e,J)}function Gt(t,e){return mt(">",t,e,J)}function Ht(t,e){return mt(">=",t,e,J)}function Vt(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Jt(t,e),t[0])}function Jt(t,e){return mt("||",t,e,J)}function Kt(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Lt(t,e),t[0])}function Lt(t,e){return mt("^^",t,e,J)}function Ot(...t){return t.length<=1?t[0]:t.slice(1).reduce((t,e)=>Qt(t,e),t[0])}function Qt(t,e){return mt("&&",t,e,J)}function Wt(t){return vt("abs",t)}function Zt(t){return vt("acos",t)}function te(t){return vt("acosh",t)}function ee(t){return vt("all",t,J)}function ne(t){return vt("any",t,J)}function re(t){return vt("asin",t)}function ie(t){return vt("asinh",t)}function ce(t,e){return null==e?vt("atan",t):bt("atan",t,e,t.constructor)}function se(t){return vt("atanh",t)}function ue(t){return vt("ceil",t)}function oe(t,e,n){return gt("clamp",t,e,n,t.constructor)}function he(t){return vt("cos",t)}function le(t){return vt("cosh",t)}function ae(t,e){return bt("cross",t,e,t.constructor)}function fe(t){return vt("dFdX",t)}function pe(t){return vt("dFdY",t)}function de(t){return vt("degrees",t)}function ye(t){return vt("determinant",t,C)}function we(t,e){return bt("distance",t,e,C)}function me(t,e){return bt("dot",t,e,C)}function ve(t,e){return bt("equal",t,e,D(t))}function be(t,e){return bt("greaterThan",t,e,D(t))}function ge(t,e){return bt("greaterThanEqual",t,e,D(t))}function xe(t){return vt("exp",t)}function Ie(t){return vt("exp2",t)}function Ee(t,e,n){return gt("faceforward",t,e,n)}function $e(t){return vt("floatBitsToInt",t,N(t))}function ze(t){return vt("floatBitsToUint",t,z(t))}function Te(t){return vt("floor",t)}function Ne(t){return vt("fract",t)}function De(t){return vt("fwidth",t)}function Fe(t){return vt("intBitsToFloat",t,T(t))}function ke(t){return vt("uintBitsToFloat",t,$(t))}function Me(t){return vt("inverse",t,C)}function Se(t){return vt("inversesqrt",t)}function Re(t){return vt("isinf",t,D(t))}function je(t){return vt("isnan",t,D(t))}function Be(t){return vt("length",t,C)}function qe(t,e){return bt("lessThan",t,e,D(t))}function Ue(t,e){return bt("lessThanEqual",t,e,D(t))}function Pe(t){return vt("log",t)}function Ce(t){return vt("log2",t)}function Xe(t,e){return bt("matrixCompMult",t,e)}function Ye(t,e){return bt("max",t,e)}function _e(t,e){return bt("min",t,e)}function Ae(t,e,n){return gt("mix",t,e,n)}function Ge(t,e){return bt("mod",t,e)}function He(t,e){throw new Error("modf not implemented")}function Ve(t){return vt("normalize",t)}function Je(t){return"bool"===t.type?vt("!",t):vt("not",t)}function Ke(t,e){return bt("notEqual",t,e,D(t))}function Le(t,e){throw new Error("Impl type?")}function Oe(t){return vt("packHalf2x16",t,A)}function Qe(t){return vt("packUnorm2x16",t,A)}function We(t){return vt("packSnorm2x16",t,A)}function Ze(t,e){return bt("pow",t,e)}function tn(t){return vt("radians",t)}function en(t,e){return bt("reflect",t,e)}function nn(t,e,n){return gt("refract",t,e,n)}function rn(t){return vt("round",t)}function cn(t){return vt("roundEven",t)}function sn(t){return vt("sign",t)}function un(t){return vt("sin",t)}function on(t){return vt("sinh",t)}function hn(t,e,n){return gt("smoothstep",t,e,n)}function ln(t){return vt("sqrt",t)}function an(t,e){return bt("step",t,e,e.constructor)}function fn(t){return vt("tan",t)}function pn(t){return vt("tanh",t)}function dn(t,e,n){return gt("texelFetch",t,e,n,_)}function yn(t,e,n,r){throw new Error("Impl type")}function wn(t,e,n){throw new Error("Impl type")}function mn(t,e){return bt("texture",t,e,_)}function vn(t,e,n,r){throw new Error("Impl type")}function bn(t,e,n,r,i){throw new Error("Impl type")}function gn(t,e,n){throw new Error("Impl type")}function xn(t,e,n,r){throw new Error("Impl type")}function In(t,e,n,r){throw new Error("Impl type")}function En(t,e,n){throw new Error("Impl type")}function $n(t,e,n,r){throw new Error("Impl type")}function zn(t,e,n,r,i){throw new Error("Impl type")}function Tn(t,e,n){throw new Error("Impl type")}function Nn(t,e,n,r){throw new Error("Impl type")}function Dn(t,e,n,r){throw new Error("Impl type")}function Fn(t,e){throw new Error("Impl type")}function kn(t){return vt("transpose",t)}function Mn(t){return vt("trunc",t)}function Sn(t){return vt("unpackHalf2x16",t,X)}function Rn(t){return vt("unpackUnorm2x16",t,X)}function jn(t){return vt("unpackSnorm2x16",t,X)}function Bn(t,e){const n=Ze(new C(2),new C(e));return[new _(Ge(t.x,n),Te(t.x.divide(n)),Ge(t.y,n),Te(t.y.divide(n))),new _(Ge(t.z,n),Te(t.z.divide(n)),Ge(t.w,n),Te(t.w.divide(n)))]}function qn(t,e){const{initialValue:n,xRange:r,yRange:i,callback:c}=e,[s,u]=r,[o,h]=i,l=new W(0).setMutable().setDebugName("iterX"),a=new W(0).setMutable().setDebugName("iterY"),f=n.setMutable().setDebugName("accumulator"),p=c(f,t.get(l,a),l,a).setDebugName("callback"),d=It({iterX:l,iterY:a,accumulator:f},n.constructor,p,({out:t,iterX:e,iterY:n,accumulator:r,subgraph:i})=>`\nfor (${n} = ${o}; ${n} < ${h}; ${n}++) {\n for (${e} = ${s}; ${e} < ${u}; ${e}++) {\n\n ${i.body}\n\n ${r} = ${i.varName};\n }\n}\n${t} = ${r};\n`).setDebugName("reduce2DBody");return d}export{K as BVec2,L as BVec3,Q as BVec4,J as Bool,q as FixedArray,U as FixedArray2D,C as Float,Z as IVec2,tt as IVec3,et as IVec4,W as Int,nt as Mat2,rt as Mat3,it as Mat4,P as Sampler2D,A as UInt,G as UVec2,H as UVec3,V as UVec4,X as Vec2,Y as Vec3,_ as Vec4,Jt as _or,Lt as _xor,Wt as abs,Zt as acos,te as acosh,Mt as add,ee as all,Ot as and,ne as any,re as asin,ie as asinh,ce as atan,se as atanh,qt as bitAnd,Ct as bitNot,Ut as bitOr,Bt as bitRShift,jt as bitShift,Pt as bitXor,It as block,ue as ceil,oe as clamp,Nt as cond,he as cos,le as cosh,ae as cross,fe as dFdx,pe as dFdy,wt as defineArrayRead,dt as definePropertyAccess,yt as definePropertyAccess2D,de as degrees,ye as determinant,we as distance,kt as divide,me as dot,Xt as equal,ve as equalComponent,xe as exp,Ie as exp2,Ee as faceforward,$t as findIndex,ut as float,$e as floatBitsToInt,ze as floatBitsToUint,Te as floor,Ne as fract,De as fwidth,k as getTypeElementLengthForType,zt as glslFindIndex,Gt as greaterThan,be as greaterThanComponent,Ht as greaterThanEqual,ge as greaterThanEqualComponent,Tt as ifElse,st as int,Fe as intBitsToFloat,Rt as intMod,Me as inverse,Se as inversesqrt,Re as isinf,je as isnan,Be as length,_t as lessThan,qe as lessThanComponent,At as lessThanEqual,Ue as lessThanEqualComponent,Pe as log,Ce as log2,at as mat2,ft as mat3,pt as mat4,Xe as matrixCompMult,Ye as max,_e as min,Ae as mix,Ge as mod,He as modf,Ft as multiply,Et as namedScope,xt as negate,Ve as normalize,Je as not,Yt as notEqual,Ke as notEqualComponent,Vt as or,Le as outerProduct,Oe as packHalf2x16,We as packSnorm2x16,Qe as packUnorm2x16,Ze as pow,tn as radians,qn as reduce2D,en as reflect,nn as refract,rn as round,cn as roundEven,sn as sign,un as sin,on as sinh,hn as smoothstep,ln as sqrt,an as step,St as subtract,fn as tan,pn as tanh,dn as texelFetch,yn as texelFetchOffset,wn as texture,mn as texture2D,vn as textureGrad,bn as textureGradOffset,gn as textureLod,xn as textureLodOffset,In as textureOffset,En as textureProj,$n as textureProjGrad,zn as textureProjGradOffset,Tn as textureProjLod,Nn as textureProjLodOffset,Dn as textureProjOffset,Fn as textureSize,N as transformFloatToInt,z as transformFloatToUInt,T as transformIntToFloat,D as transformTypeToBooleanType,$ as transformUIntToFloat,kn as transpose,Mn as trunc,ke as uintBitsToFloat,Sn as unpackHalf2x16,jn as unpackSnorm2x16,Rn as unpackUnorm2x16,Bn as unpackVec4,ot as vec2,ht as vec3,lt as vec4,Dt as when,Kt as xor};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{location as e,ComputeVertexInput as o}from"../../GraphShaderModule.js";import{mod as s,Float as i,mix as r,Vec4 as l,ifElse as a,or as n,Bool as c,Vec2 as m}from"../../graph/glsl.js";import{AAnimatedShader as p,getValue as d,AAnimatedVertexInput as u,AAnimatedFragmentInput as b}from"./AAnimatedShader.js";import{MarkerConstants as h}from"../markers/markerConstants.js";import{getBitBool as x}from"../shaders/utils.js";import{getVisualVariableColor as y,getVisualVariableOpacity as P}from"../shaders/vvUtils.js";class v extends u{}t([e(9,l)],v.prototype,"tlbr",void 0),t([e(10,i)],v.prototype,"angle",void 0);class S extends o{}t([e(13,m)],S.prototype,"nextPos1",void 0),t([e(14,m)],S.prototype,"nextPos2",void 0);class g extends b{}class f extends p{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}_fragmentPoly(t){const e=s(t.uv,new i(1)),o=r(t.tlbr.xy,t.tlbr.zw,e);return this._getColor(o,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth})}_vertexPoly(t){const{position:e,animationPointer:o,evalParams:s,isOutline:m,unscaledDistanceToPx:p,vvScale:u,strokeWidth:b,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,clip:w}=this._vertexPreamble(t,new i(0),t.lineLength||new i(0)),k=this._toNdc(e);let j=d(o,1,s);j=new l(j.rgb.multiply(j.a),j.a);let z=a(x(t.bitset,h.bitset.colorLocked),j,d(o,2,s));z=new l(z.rgb.multiply(z.a),z.a);let D=d(o,3,s);D=new l(D.rgb.multiply(D.a),D.a);const T=d(o,4,s).a,_=d(o,5,s).a,C=y(this,t.id,j,n(x(t.bitset,h.bitset.colorLocked),new c(m))),F=r(C,z,D),A=P(this,t.id),L=r(A,T,_),W=F.multiply(L),O=this.clip(t.id,t.zoomRange).add(w.multiply(2)),G=p.multiply(u);return{unscaledDistanceToPx:p,vvScale:u,strokeWidth:b,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,ndc:k,color:W,z:O,isOutline:m,evalParams:s,distanceToPx:G}}}export{f as AAnimatedPolyShader,g as PolyFragmentInput,S as PolyHittestVertexInput,v as PolyVertexInput};
2
+ import{__decorate as t}from"tslib";import{location as e,ComputeVertexInput as o}from"../../GraphShaderModule.js";import{Vec4 as s,Float as i,Vec2 as r,mod as l,mix as a,ifElse as n,or as c,Bool as m}from"../../graph/glsl.js";import{AAnimatedVertexInput as p,AAnimatedFragmentInput as d,AAnimatedShader as u,getValue as b}from"./AAnimatedShader.js";import{MarkerConstants as h}from"../markers/markerConstants.js";import{getBitBool as x}from"../shaders/utils.js";import{getVisualVariableColor as y,getVisualVariableOpacity as P}from"../shaders/vvUtils.js";class v extends p{}t([e(9,s)],v.prototype,"tlbr",void 0),t([e(10,i)],v.prototype,"angle",void 0);class S extends o{}t([e(13,r)],S.prototype,"nextPos1",void 0),t([e(14,r)],S.prototype,"nextPos2",void 0);class g extends d{}class f extends u{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}_fragmentPoly(t){const e=l(t.uv,new i(1)),o=a(t.tlbr.xy,t.tlbr.zw,e);return this._getColor(o,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth})}_vertexPoly(t){const{position:e,animationPointer:o,evalParams:r,isOutline:l,unscaledDistanceToPx:p,vvScale:d,strokeWidth:u,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,clip:w}=this._vertexPreamble(t,new i(0),t.lineLength||new i(0)),k=this._toNdc(e);let j=b(o,1,r);j=new s(j.rgb.multiply(j.a),j.a);let z=n(x(t.bitset,h.bitset.colorLocked),j,b(o,2,r));z=new s(z.rgb.multiply(z.a),z.a);let D=b(o,3,r);D=new s(D.rgb.multiply(D.a),D.a);const T=b(o,4,r).a,_=b(o,5,r).a,C=y(this,t.id,j,c(x(t.bitset,h.bitset.colorLocked),new m(l))),F=a(C,z,D),A=P(this,t.id),L=a(A,T,_),W=F.multiply(L),O=this.clip(t.id,t.zoomRange).add(w.multiply(2)),G=p.multiply(d);return{unscaledDistanceToPx:p,vvScale:d,strokeWidth:u,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,ndc:k,color:W,z:O,isOutline:l,evalParams:r,distanceToPx:G}}}export{f as AAnimatedPolyShader,g as PolyFragmentInput,S as PolyHittestVertexInput,v as PolyVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as i}from"tslib";import{animationDebugFlags as t}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{generateVirtualMachineSource as e}from"../../../animations/instructions.js";import{location as o,uniform as a,texture as r,option as s}from"../../GraphShaderModule.js";import{Vec2 as l,texture2D as n,block as m,Float as p,step as u,negate as d,cond as c,equal as y,Mat2 as f,cos as v,sin as b,Mat3 as S,Vec3 as h,lessThanEqual as w,ifElse as g,clamp as x,abs as V,Vec4 as z,Sampler2D as T}from"../../graph/glsl.js";import{AnimationUniformInfo as P}from"./AnimationUniformInfo.js";import{MarkerConstants as j}from"../markers/markerConstants.js";import{AFeatureShader as _,FeatureVertexInput as O,FeatureFragmentInput as I}from"../shaders/AFeatureShader.js";import{c256ToRad as C,softEdgeRatio as M}from"../shaders/constants.js";import{LocalTileOffset as D}from"../shaders/LocalTileOffset.js";import{MosaicInfo as A}from"../shaders/MosaicInfo.js";import{getBit as F,rgba2float as L}from"../shaders/utils.js";import{VisualVariableColor as R}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as k}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as U}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as E}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as B}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as G}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as N}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as W,getVisualVariableAngle as q}from"../shaders/vvUtils.js";class H extends O{}i([o(3,l)],H.prototype,"offset",void 0),i([o(4,z)],H.prototype,"sizing",void 0),i([o(5,z)],H.prototype,"value1Position2Value2",void 0),i([o(6,z)],H.prototype,"animationPointerAndBaseSizeAndReferenceSize",void 0),i([o(7,l)],H.prototype,"zoomRange",void 0),i([o(8,p)],H.prototype,"lineLength",void 0);class J extends I{}class K extends _{_vertexPreamble(i,t,e){const{id:o,offset:a,animationPointerAndBaseSizeAndReferenceSize:r,sizing:s}=i,l=r.xy,n=r.z,m=r.w,S=s.xy,h=this._getEvalParams(i,S,e);let w,g;if(i.value1Position2Value2){const t=Q(l,6,h).a,e=i.pos,o=i.value1Position2Value2.yz,a=i.value1Position2Value2.x,r=i.value1Position2Value2.w,s=t.subtract(a).divide(r.subtract(a));g=e.add(o.subtract(e).multiply(s)),w=u(new p(1),s).add(u(new p(0),d(s)))}else g=i.pos,w=new p(0);const x=s.z,V=F(i.bitset,j.bitset.isStroke),z=s.w,T=F(i.bitset,j.bitset.scaleSymbolsProportionally),P=Q(l,0,h),_=c([y(F(i.bitset,j.bitset.isMapAligned),new p(1)),this.view.rotation.divide(180).multiply(Math.PI)],[!0,new p(0)]),O=new f(v(_),b(_.multiply(-1)),b(_),v(_)).multiply(P.xy),I=P.z.subtract(_).subtract(t.multiply(C)),M=P.w,D=F(i.bitset,j.bitset.isSDF),A=W(this,o,new p(m)).divide(new p(m));return{baseSize:n,animationPointer:l,strokeWidth:x,isOutline:V,unscaledDistanceToPx:z,scaleSymbolsProportionally:T,isSDF:D,position:this._getScreenPosition({id:o,pos:g,offset:a,referenceSize:m,translation:O,rotation:I,scale:M,vvScale:A}),evalParams:h,vvScale:A,scale:M,clip:w}}_getScreenPosition(i){const{pos:t,translation:e,rotation:o,scale:a,offset:r,id:s,vvScale:l}=i,n=q(this,s).multiply(Math.PI/180),m=e.x.multiply(4/3),u=e.y.multiply(-1).multiply(4/3),c=b(n),y=v(n),f=y.multiply(m).add(d(c).multiply(u)),w=c.multiply(m).add(y.multiply(u)),g=b(o.subtract(n)),x=v(o.subtract(n)),V=new p(0),z=new p(1),{pixelRatio:T}=this.animationInfo,P=new S(z,V,V,V,z,V,f.multiply(T),w.multiply(T),z),j=new S(x,g.multiply(-1),V,g,x,V,0,0,z),_=a.multiply(l).multiply(T).multiply(4/3),O=j.multiply(_),I=this.animationInfo.toScreen.multiply(new h(t,1)),C=P.multiply(I).xy,M=O.multiply(new h(r,0)).xy;return C.add(M)}_clip(i,e){let o=super.clip(i,e);const a=w(this._getLocalTimeOrigin(i),new p(0));return t.forceGlobalTimeOrigin||(o=o.add(c([a,()=>new p(2)],[!0,()=>new p(0)]))),o}_getLocalTimeOrigin(i){return this.getLocalTimeOrigin(i)}_toNdc(i){return this.animationInfo.toNdc.multiply(new h(i,1)).xy}_getEvalParams(i,t,e){const{globalTime:o,animationTextureSize:a}=this.animationInfo;return{globalTime:o,localTimeOrigin:this._getLocalTimeOrigin(i.id),animationTextureSize:a,animationTexture:this.animationTexture,pixelDimensions:t,lineLength:e}}_getColor(i,t){return g(y(t.isSDF,new p(1)),this._getSDFColor(i,t),this._getSpriteColor(i,t))}_getSpriteColor(i,t){return n(this.mosaicTexture,i).multiply(t.color)}_getSDFColor(i,t){const e=n(this.mosaicTexture,i),o=new p(.5).subtract(L(e)).multiply(t.distanceToPx).multiply(M),a=x(new p(.5).subtract(o),new p(0),new p(1)),r=t.color.multiply(a),s=t.outlineSize.multiply(.5),l=V(o).subtract(s),m=x(new p(.5).subtract(l),new p(0),new p(1)),u=t.outlineColor.multiply(m);return new p(1).subtract(u.a).multiply(r).add(u)}}function Q(i,t,o){const a=i.add(new l(t,0)),r=n(o.animationTexture,a.add(.5).divide(o.animationTextureSize)).xy;return i=i.add(r),m({animationPointer:i,...o},z,null,i=>{const{out:t}=i;if(!t)throw new Error("out is null");return e({...i,out:t})})}i([a(A)],K.prototype,"mosaicInfo",void 0),i([a(P)],K.prototype,"animationInfo",void 0),i([a(D)],K.prototype,"localTileOffset",void 0),i([r(T)],K.prototype,"mosaicTexture",void 0),i([s(R)],K.prototype,"visualVariableColor",void 0),i([s(k)],K.prototype,"visualVariableOpacity",void 0),i([s(E)],K.prototype,"visualVariableSizeMinMaxValue",void 0),i([s(B)],K.prototype,"visualVariableSizeScaleStops",void 0),i([s(G)],K.prototype,"visualVariableSizeStops",void 0),i([s(N)],K.prototype,"visualVariableSizeUnitValue",void 0),i([s(U)],K.prototype,"visualVariableRotation",void 0),i([r(T)],K.prototype,"animationTexture",void 0);export{J as AAnimatedFragmentInput,K as AAnimatedShader,H as AAnimatedVertexInput,Q as getValue};
2
+ import{__decorate as i}from"tslib";import{animationDebugFlags as t}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{generateVirtualMachineSource as e}from"../../../animations/instructions.js";import{location as o,uniform as a,texture as r,option as s}from"../../GraphShaderModule.js";import{Vec2 as l,Vec4 as n,Float as m,Sampler2D as p,step as u,negate as d,cond as c,equal as y,Mat2 as f,cos as v,sin as b,Mat3 as S,Vec3 as h,lessThanEqual as w,ifElse as g,texture2D as x,clamp as V,abs as z,block as T}from"../../graph/glsl.js";import{AnimationUniformInfo as P}from"./AnimationUniformInfo.js";import{MarkerConstants as j}from"../markers/markerConstants.js";import{FeatureVertexInput as _,AFeatureShader as O,FeatureFragmentInput as I}from"../shaders/AFeatureShader.js";import{c256ToRad as C,softEdgeRatio as M}from"../shaders/constants.js";import{LocalTileOffset as D}from"../shaders/LocalTileOffset.js";import{MosaicInfo as A}from"../shaders/MosaicInfo.js";import{getBit as F,rgba2float as L}from"../shaders/utils.js";import{VisualVariableColor as R}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as k}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as U}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as E}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as B}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as G}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as N}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as W,getVisualVariableAngle as q}from"../shaders/vvUtils.js";class H extends _{}i([o(3,l)],H.prototype,"offset",void 0),i([o(4,n)],H.prototype,"sizing",void 0),i([o(5,n)],H.prototype,"value1Position2Value2",void 0),i([o(6,n)],H.prototype,"animationPointerAndBaseSizeAndReferenceSize",void 0),i([o(7,l)],H.prototype,"zoomRange",void 0),i([o(8,m)],H.prototype,"lineLength",void 0);class J extends I{}class K extends O{_vertexPreamble(i,t,e){const{id:o,offset:a,animationPointerAndBaseSizeAndReferenceSize:r,sizing:s}=i,l=r.xy,n=r.z,p=r.w,S=s.xy,h=this._getEvalParams(i,S,e);let w,g;if(i.value1Position2Value2){const t=Q(l,6,h).a,e=i.pos,o=i.value1Position2Value2.yz,a=i.value1Position2Value2.x,r=i.value1Position2Value2.w,s=t.subtract(a).divide(r.subtract(a));g=e.add(o.subtract(e).multiply(s)),w=u(new m(1),s).add(u(new m(0),d(s)))}else g=i.pos,w=new m(0);const x=s.z,V=F(i.bitset,j.bitset.isStroke),z=s.w,T=F(i.bitset,j.bitset.scaleSymbolsProportionally),P=Q(l,0,h),_=c([y(F(i.bitset,j.bitset.isMapAligned),new m(1)),this.view.rotation.divide(180).multiply(Math.PI)],[!0,new m(0)]),O=new f(v(_),b(_.multiply(-1)),b(_),v(_)).multiply(P.xy),I=P.z.subtract(_).subtract(t.multiply(C)),M=P.w,D=F(i.bitset,j.bitset.isSDF),A=W(this,o,new m(p)).divide(new m(p));return{baseSize:n,animationPointer:l,strokeWidth:x,isOutline:V,unscaledDistanceToPx:z,scaleSymbolsProportionally:T,isSDF:D,position:this._getScreenPosition({id:o,pos:g,offset:a,referenceSize:p,translation:O,rotation:I,scale:M,vvScale:A}),evalParams:h,vvScale:A,scale:M,clip:w}}_getScreenPosition(i){const{pos:t,translation:e,rotation:o,scale:a,offset:r,id:s,vvScale:l}=i,n=q(this,s).multiply(Math.PI/180),p=e.x.multiply(4/3),u=e.y.multiply(-1).multiply(4/3),c=b(n),y=v(n),f=y.multiply(p).add(d(c).multiply(u)),w=c.multiply(p).add(y.multiply(u)),g=b(o.subtract(n)),x=v(o.subtract(n)),V=new m(0),z=new m(1),{pixelRatio:T}=this.animationInfo,P=new S(z,V,V,V,z,V,f.multiply(T),w.multiply(T),z),j=new S(x,g.multiply(-1),V,g,x,V,0,0,z),_=a.multiply(l).multiply(T).multiply(4/3),O=j.multiply(_),I=this.animationInfo.toScreen.multiply(new h(t,1)),C=P.multiply(I).xy,M=O.multiply(new h(r,0)).xy;return C.add(M)}_clip(i,e){let o=super.clip(i,e);const a=w(this._getLocalTimeOrigin(i),new m(0));return t.forceGlobalTimeOrigin||(o=o.add(c([a,()=>new m(2)],[!0,()=>new m(0)]))),o}_getLocalTimeOrigin(i){return this.getLocalTimeOrigin(i)}_toNdc(i){return this.animationInfo.toNdc.multiply(new h(i,1)).xy}_getEvalParams(i,t,e){const{globalTime:o,animationTextureSize:a}=this.animationInfo;return{globalTime:o,localTimeOrigin:this._getLocalTimeOrigin(i.id),animationTextureSize:a,animationTexture:this.animationTexture,pixelDimensions:t,lineLength:e}}_getColor(i,t){return g(y(t.isSDF,new m(1)),this._getSDFColor(i,t),this._getSpriteColor(i,t))}_getSpriteColor(i,t){return x(this.mosaicTexture,i).multiply(t.color)}_getSDFColor(i,t){const e=x(this.mosaicTexture,i),o=new m(.5).subtract(L(e)).multiply(t.distanceToPx).multiply(M),a=V(new m(.5).subtract(o),new m(0),new m(1)),r=t.color.multiply(a),s=t.outlineSize.multiply(.5),l=z(o).subtract(s),n=V(new m(.5).subtract(l),new m(0),new m(1)),p=t.outlineColor.multiply(n);return new m(1).subtract(p.a).multiply(r).add(p)}}function Q(i,t,o){const a=i.add(new l(t,0)),r=x(o.animationTexture,a.add(.5).divide(o.animationTextureSize)).xy;return i=i.add(r),T({animationPointer:i,...o},n,null,i=>{const{out:t}=i;if(!t)throw new Error("out is null");return e({...i,out:t})})}i([a(A)],K.prototype,"mosaicInfo",void 0),i([a(P)],K.prototype,"animationInfo",void 0),i([a(D)],K.prototype,"localTileOffset",void 0),i([r(p)],K.prototype,"mosaicTexture",void 0),i([s(R)],K.prototype,"visualVariableColor",void 0),i([s(k)],K.prototype,"visualVariableOpacity",void 0),i([s(E)],K.prototype,"visualVariableSizeMinMaxValue",void 0),i([s(B)],K.prototype,"visualVariableSizeScaleStops",void 0),i([s(G)],K.prototype,"visualVariableSizeStops",void 0),i([s(N)],K.prototype,"visualVariableSizeUnitValue",void 0),i([s(U)],K.prototype,"visualVariableRotation",void 0),i([r(p)],K.prototype,"animationTexture",void 0);export{J as AAnimatedFragmentInput,K as AAnimatedShader,H as AAnimatedVertexInput,Q as getValue};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{input as s}from"../../GraphShaderModule.js";import{Float as i,sin as r,cos as o,Vec3 as l,Vec4 as n,mix as a,ifElse as m,greaterThan as u}from"../../graph/glsl.js";import{AAnimatedPolyShader as p,PolyVertexInput as h,PolyHittestVertexInput as c,PolyFragmentInput as d}from"./AAnimatedPolyShader.js";import{getPatternMatrix as y}from"../shaders/ComplexFillShader.js";import{c256ToRad as f,noHit as g,trueHit as x}from"../shaders/constants.js";import{isRectHittest as b,hittestFill as w,hittestScreenRect as P}from"../shaders/hittestUtils.js";class v extends p{constructor(){super(...arguments),this.type="AnimatedFillShader"}vertex(t,e){const{distanceToPx:s,ndc:m,z:u,color:p,isOutline:h,strokeWidth:c,isSDF:d,scale:g,scaleSymbolsProportionally:x}=this._vertexPoly(t),b=this.view.requiredZoomFactor,w=t.sizing.xy,P=w.multiply(b),v=t.angle?t.angle.multiply(f):new i(0),S=r(v),j=o(v),F=y(t.id,P,S,j,t.bitset),O=this.localTileOffset.getPatternOffsetAtTileOrigin(w,S,j),T=b.multiply(t.offset.subtract(O)).divide(P),q=new l(t.pos,1),A=F.multiply(q).xy.subtract(T),R=t.tlbr.divide(this.mosaicInfo.size.xyxy);return{glPosition:new n(m,u,1),tlbr:R,uv:A,color:p.multiply(new i(1).subtract(h)),outlineColor:p.multiply(h),distanceToPx:s,strokeWidth:c.multiply(a(new i(1),g,x)),isOutline:h,isSDF:d,...this.maybeRunHittest(t,e,{})}}fragment(t){const e=this._fragmentPoly(t);return this.getFragmentOutput(e,t)}hittest(t,e,s){const{pos0:r,pos1:o,pos2:l}=this.computeHittestTriangle(t,e,null),n=b(this.hittestRequest);return m(n,()=>{const{tlbr:t}=this.hittestRequest;return P(r,o,l,t)},()=>{const s=w(this,t,e);return m(u(s,this.hittestRequest.distance),new i(g),new i(x))})}}t([e(0,s(h)),e(1,s(c))],v.prototype,"vertex",null),t([e(0,s(d))],v.prototype,"fragment",null);export{v as AnimatedFillShader};
2
+ import{__decorate as t,__param as e}from"tslib";import{input as s}from"../../GraphShaderModule.js";import{Float as i,sin as r,cos as o,Vec3 as l,Vec4 as n,mix as a,ifElse as m,greaterThan as u}from"../../graph/glsl.js";import{PolyVertexInput as p,PolyHittestVertexInput as h,PolyFragmentInput as c,AAnimatedPolyShader as d}from"./AAnimatedPolyShader.js";import{getPatternMatrix as y}from"../shaders/ComplexFillShader.js";import{c256ToRad as f,noHit as g,trueHit as x}from"../shaders/constants.js";import{isRectHittest as b,hittestFill as w,hittestScreenRect as P}from"../shaders/hittestUtils.js";class v extends d{constructor(){super(...arguments),this.type="AnimatedFillShader"}vertex(t,e){const{distanceToPx:s,ndc:m,z:u,color:p,isOutline:h,strokeWidth:c,isSDF:d,scale:g,scaleSymbolsProportionally:x}=this._vertexPoly(t),b=this.view.requiredZoomFactor,w=t.sizing.xy,P=w.multiply(b),v=t.angle?t.angle.multiply(f):new i(0),S=r(v),j=o(v),F=y(t.id,P,S,j,t.bitset),O=this.localTileOffset.getPatternOffsetAtTileOrigin(w,S,j),T=b.multiply(t.offset.subtract(O)).divide(P),q=new l(t.pos,1),A=F.multiply(q).xy.subtract(T),R=t.tlbr.divide(this.mosaicInfo.size.xyxy);return{glPosition:new n(m,u,1),tlbr:R,uv:A,color:p.multiply(new i(1).subtract(h)),outlineColor:p.multiply(h),distanceToPx:s,strokeWidth:c.multiply(a(new i(1),g,x)),isOutline:h,isSDF:d,...this.maybeRunHittest(t,e,{})}}fragment(t){const e=this._fragmentPoly(t);return this.getFragmentOutput(e,t)}hittest(t,e,s){const{pos0:r,pos1:o,pos2:l}=this.computeHittestTriangle(t,e,null),n=b(this.hittestRequest);return m(n,()=>{const{tlbr:t}=this.hittestRequest;return P(r,o,l,t)},()=>{const s=w(this,t,e);return m(u(s,this.hittestRequest.distance),new i(g),new i(x))})}}t([e(0,s(p)),e(1,s(h))],v.prototype,"vertex",null),t([e(0,s(c))],v.prototype,"fragment",null);export{v as AnimatedFillShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t,__param as i}from"tslib";import{location as e,uniform as s,input as o}from"../../GraphShaderModule.js";import{dot as l,Vec2 as r,Float as a,max as n,Vec4 as d,mix as m,length as p,clamp as u,step as c,min as h,ifElse as y,greaterThan as f}from"../../graph/glsl.js";import{AAnimatedPolyShader as v,PolyHittestVertexInput as b,PolyVertexInput as g,PolyFragmentInput as x}from"./AAnimatedPolyShader.js";import{getValue as S}from"./AAnimatedShader.js";import{noHit as w,trueHit as P}from"../shaders/constants.js";import{isRectHittest as j,distPointSegment as z,hittestScreenRect as A}from"../shaders/hittestUtils.js";import{getLineAntialiasing as D,getLineThinFactor as R,AntialiasingControls as C}from"../shaders/LineShader.js";class F extends g{}t([e(10,a)],F.prototype,"accumulatedDistance",void 0),t([e(11,r)],F.prototype,"normal",void 0),t([e(12,r)],F.prototype,"segmentDirection",void 0);class T extends x{}class W extends v{constructor(){super(...arguments),this.type="AnimatedLineShader"}vertex(t,i){const{animationPointerAndBaseSizeAndReferenceSize:e}=t,s=e.xy,{distanceToPx:o,ndc:p,z:u,color:c,isOutline:h,strokeWidth:y,isSDF:f,baseSize:v,scale:b,scaleSymbolsProportionally:g,evalParams:x}=this._vertexPoly(t),w=t.sizing.xy,P=w.x.multiply(v).divide(w.y),j=S(s,6,x).a,z=t.accumulatedDistance.subtract(j),{normal:A}=t,D=t.normal.y,R=z.divide(this.view.displayZoomFactor).add(l(t.segmentDirection,t.offset)).divide(P),C=D.add(1).divide(2),F=new r(R,C),T=t.tlbr.divide(this.mosaicInfo.size.xyxy),W=v.divide(2),q=new a(.5).multiply(this.antialiasingControls.antialiasing),O=n(W.add(q),new a(.45)).add(new a(.1).multiply(q));return{glPosition:new d(p,u,1),tlbr:T,uv:F,color:c.multiply(new a(1).subtract(h)),outlineColor:c.multiply(h),distanceToPx:o,strokeWidth:y.multiply(m(new a(1),b,g)),isOutline:h,isSDF:f,halfWidth:O,normal:A,...this.maybeRunHittest(t,i,O)}}fragment(t){const i=this._fragmentPoly(t),e=D(t,this.antialiasingControls.blur),{halfWidth:s,normal:o}=t,l=R(s),r=p(o).multiply(s),n=u(l.multiply(s.subtract(r)).divide(l.subtract(new a(1))),new a(0),new a(1));return this.getFragmentOutput(i.multiply(n).multiply(e),t)}hittest(t,i,e){const{pos0:s,pos1:o,pos2:l}=this.computeHittestTriangle(t,i,null),r=j(this.hittestRequest),{distance:n,smallSymbolDistance:d,smallSymbolSizeThreshold:m,tlbr:p}=this.hittestRequest,u=c(e,m.multiply(.5)).multiply(n.subtract(d)),v=this.hittestRequest.position,b=h(z(v,s,o),z(v,s,l)).subtract(e).add(u);return y(r,A(s,o,l,p),y(f(b,n),new a(w),new a(P)))}}t([s(C)],W.prototype,"antialiasingControls",void 0),t([i(0,o(F)),i(1,o(b))],W.prototype,"vertex",null),t([i(0,o(T))],W.prototype,"fragment",null);export{W as AnimatedLineShader};
2
+ import{__decorate as t,__param as i}from"tslib";import{location as e,uniform as s,input as o}from"../../GraphShaderModule.js";import{Float as l,Vec2 as r,dot as a,max as n,Vec4 as d,mix as m,length as p,clamp as u,step as c,min as h,ifElse as y,greaterThan as f}from"../../graph/glsl.js";import{PolyHittestVertexInput as v,PolyVertexInput as b,AAnimatedPolyShader as g,PolyFragmentInput as x}from"./AAnimatedPolyShader.js";import{getValue as S}from"./AAnimatedShader.js";import{noHit as w,trueHit as P}from"../shaders/constants.js";import{isRectHittest as j,distPointSegment as z,hittestScreenRect as A}from"../shaders/hittestUtils.js";import{AntialiasingControls as D,getLineAntialiasing as R,getLineThinFactor as C}from"../shaders/LineShader.js";class F extends b{}t([e(10,l)],F.prototype,"accumulatedDistance",void 0),t([e(11,r)],F.prototype,"normal",void 0),t([e(12,r)],F.prototype,"segmentDirection",void 0);class T extends x{}class W extends g{constructor(){super(...arguments),this.type="AnimatedLineShader"}vertex(t,i){const{animationPointerAndBaseSizeAndReferenceSize:e}=t,s=e.xy,{distanceToPx:o,ndc:p,z:u,color:c,isOutline:h,strokeWidth:y,isSDF:f,baseSize:v,scale:b,scaleSymbolsProportionally:g,evalParams:x}=this._vertexPoly(t),w=t.sizing.xy,P=w.x.multiply(v).divide(w.y),j=S(s,6,x).a,z=t.accumulatedDistance.subtract(j),{normal:A}=t,D=t.normal.y,R=z.divide(this.view.displayZoomFactor).add(a(t.segmentDirection,t.offset)).divide(P),C=D.add(1).divide(2),F=new r(R,C),T=t.tlbr.divide(this.mosaicInfo.size.xyxy),W=v.divide(2),q=new l(.5).multiply(this.antialiasingControls.antialiasing),O=n(W.add(q),new l(.45)).add(new l(.1).multiply(q));return{glPosition:new d(p,u,1),tlbr:T,uv:F,color:c.multiply(new l(1).subtract(h)),outlineColor:c.multiply(h),distanceToPx:o,strokeWidth:y.multiply(m(new l(1),b,g)),isOutline:h,isSDF:f,halfWidth:O,normal:A,...this.maybeRunHittest(t,i,O)}}fragment(t){const i=this._fragmentPoly(t),e=R(t,this.antialiasingControls.blur),{halfWidth:s,normal:o}=t,r=C(s),a=p(o).multiply(s),n=u(r.multiply(s.subtract(a)).divide(r.subtract(new l(1))),new l(0),new l(1));return this.getFragmentOutput(i.multiply(n).multiply(e),t)}hittest(t,i,e){const{pos0:s,pos1:o,pos2:r}=this.computeHittestTriangle(t,i,null),a=j(this.hittestRequest),{distance:n,smallSymbolDistance:d,smallSymbolSizeThreshold:m,tlbr:p}=this.hittestRequest,u=c(e,m.multiply(.5)).multiply(n.subtract(d)),v=this.hittestRequest.position,b=h(z(v,s,o),z(v,s,r)).subtract(e).add(u);return y(a,A(s,o,r,p),y(f(b,n),new l(w),new l(P)))}}t([s(D)],W.prototype,"antialiasingControls",void 0),t([i(0,o(F)),i(1,o(v))],W.prototype,"vertex",null),t([i(0,o(T))],W.prototype,"fragment",null);export{W as AnimatedLineShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{animationDebugFlags as i}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{location as s,input as o,ComputeVertexInput as l}from"../../GraphShaderModule.js";import{Float as r,Vec4 as a,ifElse as n,or as d,Bool as u,mix as m,Mat3 as p,lessThan as h,greaterThan as c,Vec3 as x,distance as y,Vec2 as f,negate as w,step as g}from"../../graph/glsl.js";import{AAnimatedShader as v,getValue as b,AAnimatedVertexInput as S,AAnimatedFragmentInput as _}from"./AAnimatedShader.js";import{MarkerConstants as V}from"../markers/markerConstants.js";import{noHit as z,trueHit as C}from"../shaders/constants.js";import{isRectHittest as P,hittestScreenRect as N,distPointTriangle as R,xyToBarycentric as k,inTriangle as M,failHittest as q}from"../shaders/hittestUtils.js";import{getBitBool as D}from"../shaders/utils.js";import{getVisualVariableColor as j,getVisualVariableOpacity as F}from"../shaders/vvUtils.js";class T extends S{}t([s(9,f)],T.prototype,"uv",void 0),t([s(10,r)],T.prototype,"angle",void 0);class U extends l{}t([s(11,f)],U.prototype,"offsetNextVertex1",void 0),t([s(12,f)],U.prototype,"offsetNextVertex2",void 0),t([s(13,f)],U.prototype,"textureUVNextVertex1",void 0),t([s(14,f)],U.prototype,"textureUVNextVertex2",void 0);class A extends _{}function I(t,e,i,s){return e.multiply(t.x).add(i.multiply(t.y)).add(s.multiply(t.z))}class L extends v{constructor(){super(...arguments),this.type="AnimatedMarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],uv:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=t.uv.divide(this.mosaicInfo.size),{position:s,animationPointer:o,evalParams:l,isOutline:h,unscaledDistanceToPx:c,vvScale:x,strokeWidth:y,scaleSymbolsProportionally:f,scale:w,isSDF:g,baseSize:v,clip:S}=this._vertexPreamble(t,t.angle,t.lineLength||new r(0)),_=this._toNdc(s);let z=b(o,1,l);z=new a(z.rgb.multiply(z.a),z.a);let C=n(D(t.bitset,V.bitset.colorLocked),z,b(o,2,l));C=new a(C.rgb.multiply(C.a),C.a);let P=b(o,3,l);P=new a(P.rgb.multiply(P.a),P.a);const N=b(o,4,l).a,R=b(o,5,l).a,k=j(this,t.id,z,d(D(t.bitset,V.bitset.colorLocked),new u(h))),M=m(k,C,P),q=F(this,t.id),T=m(q,N,R),U=M.multiply(T),A=this.clip(t.id,t.zoomRange).add(S.multiply(2)),I=c.multiply(x);return{glPosition:new a(_,A,1),uv:i,color:U.multiply(new r(1).subtract(h)),outlineColor:U.multiply(h),distanceToPx:I,strokeWidth:y.multiply(m(new r(1),w,f)),isOutline:h,isSDF:g,...this.maybeRunHittest(t,e,{pos:t.pos,size:v,sizeCorrection:new r(1),isMapAligned:new r(1),vvRotationMat3:new p(1,0,0,0,1,0,0,0,1),placementMat3:new p(1,0,0,0,1,0,0,0,1),outlineSize:new r(1),distanceToPx:I,isSDF:g})}}fragment(t){let e=this._getColor(t.uv,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth});return i.spotlightAnimatedSymbols&&(e=e.add(new a(0,.3,0,.3))),this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:s,pos1:o,pos2:l}=this.computeHittestTriangle(t,e,i),a=P(this.hittestRequest);return n(a,()=>{const{tlbr:t}=this.hittestRequest;return N(s,o,l,t)},()=>{const s=n(h(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i));return n(c(s,this.hittestRequest.distance),new r(z),new r(C))})}_hittestSmallMarker(t,e,i){const{position:s,distance:o,smallSymbolDistance:l}=this.hittestRequest,r=o.subtract(l),{viewMat3:a,tileMat3:n}=this.view,d=a.multiply(n).multiply(new x(i.pos,1)).xy,u=i.size.multiply(.5);return y(d,s).subtract(u).add(r)}_hittestMarker(t,e,i){const s=this._vertexPreamble({...t},t.angle,new r(0)).position,o=this._vertexPreamble({...t,offset:e.offsetNextVertex1},t.angle,new r(0)).position,l=this._vertexPreamble({...t,offset:e.offsetNextVertex2},t.angle,new r(0)).position,a=this.hittestRequest.position,d=this.hittestRequest.distance,u=R(a,s,o,l);return n(c(u,d),u,this._hittestSamples(s,o,l,t,e,i))}_hittestSamples(t,e,i,s,o,l){const{outlineSize:n,isSDF:d,distanceToPx:u}=l,m=this.hittestRequest.position,p=this.hittestRequest.distance,h=k(m.add(new f(w(p),w(p))),t,e,i),c=k(m.add(new f(0,w(p))),t,e,i),x=k(m.add(new f(p,w(p))),t,e,i),y=k(m.add(new f(w(p),0)),t,e,i),v=k(m,t,e,i),b=k(m.add(new f(p,0)),t,e,i),S=k(m.add(new f(w(p),p)),t,e,i),_=k(m.add(new f(0,p)),t,e,i),V=k(m.add(new f(p,p)),t,e,i),z=s.uv.divide(this.mosaicInfo.size),C=o.textureUVNextVertex1.divide(this.mosaicInfo.size),P=o.textureUVNextVertex2.divide(this.mosaicInfo.size),N={color:new a(1,1,1,1),outlineSize:n,outlineColor:new a(1,1,1,1),isSDF:d,distanceToPx:u};let R=new r(0);return R=R.add(M(h).multiply(this._getColor(I(h,z,C,P),N).a)),R=R.add(M(c).multiply(this._getColor(I(c,z,C,P),N).a)),R=R.add(M(x).multiply(this._getColor(I(x,z,C,P),N).a)),R=R.add(M(y).multiply(this._getColor(I(y,z,C,P),N).a)),R=R.add(M(v).multiply(this._getColor(I(v,z,C,P),N).a)),R=R.add(M(b).multiply(this._getColor(I(b,z,C,P),N).a)),R=R.add(M(S).multiply(this._getColor(I(S,z,C,P),N).a)),R=R.add(M(_).multiply(this._getColor(I(_,z,C,P),N).a)),R=R.add(M(V).multiply(this._getColor(I(V,z,C,P),N).a)),g(R,new r(.05)).multiply(q(this.hittestRequest))}}t([e(0,o(T)),e(1,o(U))],L.prototype,"vertex",null),t([e(0,o(A))],L.prototype,"fragment",null);export{A as AnimatedMarkerFragmentInput,L as AnimatedMarkerShader,T as AnimatedMarkerVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{animationDebugFlags as i}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{location as s,input as o,ComputeVertexInput as l}from"../../GraphShaderModule.js";import{Vec2 as r,Float as a,Vec4 as n,ifElse as d,or as u,Bool as m,mix as p,Mat3 as h,lessThan as c,greaterThan as x,Vec3 as y,distance as f,negate as w,step as g}from"../../graph/glsl.js";import{AAnimatedVertexInput as v,AAnimatedShader as b,getValue as S,AAnimatedFragmentInput as _}from"./AAnimatedShader.js";import{MarkerConstants as V}from"../markers/markerConstants.js";import{noHit as z,trueHit as C}from"../shaders/constants.js";import{isRectHittest as P,hittestScreenRect as N,distPointTriangle as R,xyToBarycentric as k,inTriangle as M,failHittest as q}from"../shaders/hittestUtils.js";import{getBitBool as D}from"../shaders/utils.js";import{getVisualVariableColor as j,getVisualVariableOpacity as F}from"../shaders/vvUtils.js";class T extends v{}t([s(9,r)],T.prototype,"uv",void 0),t([s(10,a)],T.prototype,"angle",void 0);class U extends l{}t([s(11,r)],U.prototype,"offsetNextVertex1",void 0),t([s(12,r)],U.prototype,"offsetNextVertex2",void 0),t([s(13,r)],U.prototype,"textureUVNextVertex1",void 0),t([s(14,r)],U.prototype,"textureUVNextVertex2",void 0);class A extends _{}function I(t,e,i,s){return e.multiply(t.x).add(i.multiply(t.y)).add(s.multiply(t.z))}class L extends b{constructor(){super(...arguments),this.type="AnimatedMarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],uv:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=t.uv.divide(this.mosaicInfo.size),{position:s,animationPointer:o,evalParams:l,isOutline:r,unscaledDistanceToPx:c,vvScale:x,strokeWidth:y,scaleSymbolsProportionally:f,scale:w,isSDF:g,baseSize:v,clip:b}=this._vertexPreamble(t,t.angle,t.lineLength||new a(0)),_=this._toNdc(s);let z=S(o,1,l);z=new n(z.rgb.multiply(z.a),z.a);let C=d(D(t.bitset,V.bitset.colorLocked),z,S(o,2,l));C=new n(C.rgb.multiply(C.a),C.a);let P=S(o,3,l);P=new n(P.rgb.multiply(P.a),P.a);const N=S(o,4,l).a,R=S(o,5,l).a,k=j(this,t.id,z,u(D(t.bitset,V.bitset.colorLocked),new m(r))),M=p(k,C,P),q=F(this,t.id),T=p(q,N,R),U=M.multiply(T),A=this.clip(t.id,t.zoomRange).add(b.multiply(2)),I=c.multiply(x);return{glPosition:new n(_,A,1),uv:i,color:U.multiply(new a(1).subtract(r)),outlineColor:U.multiply(r),distanceToPx:I,strokeWidth:y.multiply(p(new a(1),w,f)),isOutline:r,isSDF:g,...this.maybeRunHittest(t,e,{pos:t.pos,size:v,sizeCorrection:new a(1),isMapAligned:new a(1),vvRotationMat3:new h(1,0,0,0,1,0,0,0,1),placementMat3:new h(1,0,0,0,1,0,0,0,1),outlineSize:new a(1),distanceToPx:I,isSDF:g})}}fragment(t){let e=this._getColor(t.uv,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth});return i.spotlightAnimatedSymbols&&(e=e.add(new n(0,.3,0,.3))),this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:s,pos1:o,pos2:l}=this.computeHittestTriangle(t,e,i),r=P(this.hittestRequest);return d(r,()=>{const{tlbr:t}=this.hittestRequest;return N(s,o,l,t)},()=>{const s=d(c(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i));return d(x(s,this.hittestRequest.distance),new a(z),new a(C))})}_hittestSmallMarker(t,e,i){const{position:s,distance:o,smallSymbolDistance:l}=this.hittestRequest,r=o.subtract(l),{viewMat3:a,tileMat3:n}=this.view,d=a.multiply(n).multiply(new y(i.pos,1)).xy,u=i.size.multiply(.5);return f(d,s).subtract(u).add(r)}_hittestMarker(t,e,i){const s=this._vertexPreamble({...t},t.angle,new a(0)).position,o=this._vertexPreamble({...t,offset:e.offsetNextVertex1},t.angle,new a(0)).position,l=this._vertexPreamble({...t,offset:e.offsetNextVertex2},t.angle,new a(0)).position,r=this.hittestRequest.position,n=this.hittestRequest.distance,u=R(r,s,o,l);return d(x(u,n),u,this._hittestSamples(s,o,l,t,e,i))}_hittestSamples(t,e,i,s,o,l){const{outlineSize:d,isSDF:u,distanceToPx:m}=l,p=this.hittestRequest.position,h=this.hittestRequest.distance,c=k(p.add(new r(w(h),w(h))),t,e,i),x=k(p.add(new r(0,w(h))),t,e,i),y=k(p.add(new r(h,w(h))),t,e,i),f=k(p.add(new r(w(h),0)),t,e,i),v=k(p,t,e,i),b=k(p.add(new r(h,0)),t,e,i),S=k(p.add(new r(w(h),h)),t,e,i),_=k(p.add(new r(0,h)),t,e,i),V=k(p.add(new r(h,h)),t,e,i),z=s.uv.divide(this.mosaicInfo.size),C=o.textureUVNextVertex1.divide(this.mosaicInfo.size),P=o.textureUVNextVertex2.divide(this.mosaicInfo.size),N={color:new n(1,1,1,1),outlineSize:d,outlineColor:new n(1,1,1,1),isSDF:u,distanceToPx:m};let R=new a(0);return R=R.add(M(c).multiply(this._getColor(I(c,z,C,P),N).a)),R=R.add(M(x).multiply(this._getColor(I(x,z,C,P),N).a)),R=R.add(M(y).multiply(this._getColor(I(y,z,C,P),N).a)),R=R.add(M(f).multiply(this._getColor(I(f,z,C,P),N).a)),R=R.add(M(v).multiply(this._getColor(I(v,z,C,P),N).a)),R=R.add(M(b).multiply(this._getColor(I(b,z,C,P),N).a)),R=R.add(M(S).multiply(this._getColor(I(S,z,C,P),N).a)),R=R.add(M(_).multiply(this._getColor(I(_,z,C,P),N).a)),R=R.add(M(V).multiply(this._getColor(I(V,z,C,P),N).a)),g(R,new a(.05)).multiply(q(this.hittestRequest))}}t([e(0,o(T)),e(1,o(U))],L.prototype,"vertex",null),t([e(0,o(A))],L.prototype,"fragment",null);export{A as AnimatedMarkerFragmentInput,L as AnimatedMarkerShader,T as AnimatedMarkerVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t,__param as o}from"tslib";import{tileSize as e}from"../../../definitions.js";import{GraphShaderModule as i,FragmentOutput as r,location as s,uniform as d,texture as n,input as p,VertexInput as a,UniformGroup as l}from"../../GraphShaderModule.js";import{Mat3 as c,Vec3 as m,texture2D as y,max as w,Float as v,step as u,Vec4 as h,length as x,smoothstep as f,Vec2 as g,Sampler2D as S}from"../../graph/glsl.js";import{FeatureFragmentInput as j}from"../shaders/AFeatureShader.js";import{ViewInfo as z}from"../shaders/ViewInfo.js";class P extends a{}t([s(0,g)],P.prototype,"pos",void 0);class R extends j{}class b extends l{}t([d(v)],b.prototype,"dotSize",void 0);class F extends l{}t([d(v)],F.prototype,"pixelRatio",void 0),t([d(v)],F.prototype,"tileZoomFactor",void 0);const C=1e-6;class D extends i{constructor(){super(...arguments),this.type="DotDensityPointShader"}vertex(t){const o=new c(1,0,0,0,-1,0,0,1,1).multiply(new m(t.pos.xy.divide(e),1)),i=y(this.drawLocations,o.xy),r=w(this.instance.dotSize.divide(2),new v(1));let s=new v(0);s=s.add(u(i.a,new v(C)).multiply(2));let d=r.add(this.instance.dotSize);const n=this.view.displayViewScreenMat3.multiply(new m(t.pos.add(.5),1)),p=new h(n.xy,s,1),a=this.instance.dotSize.divide(d),l=new v(-1).divide(r.divide(d));return d=d.multiply(this.draw.pixelRatio.multiply(this.draw.tileZoomFactor)),{glPosition:p,glPointSize:d,color:i,ratio:a,invEdgeRatio:l}}fragment(t){const o=x(t.glPointCoord.subtract(.5)).multiply(2),e=f(new v(0),new v(1),t.invEdgeRatio.multiply(o.subtract(t.ratio)).add(1)),i=new r;return i.fragColor=t.color.multiply(e),i}}t([d(b)],D.prototype,"instance",void 0),t([d(F)],D.prototype,"draw",void 0),t([d(z)],D.prototype,"view",void 0),t([n(S)],D.prototype,"drawLocations",void 0),t([o(0,p(P))],D.prototype,"vertex",null),t([o(0,p(R))],D.prototype,"fragment",null);export{F as DotDensityPointDrawUniforms,R as DotDensityPointFragmentInput,b as DotDensityPointInstanceUniforms,D as DotDensityPointShader,P as DotDensityPointVertexInput};
2
+ import{__decorate as t,__param as o}from"tslib";import{tileSize as e}from"../../../definitions.js";import{location as i,uniform as r,texture as s,input as d,VertexInput as n,UniformGroup as p,GraphShaderModule as a,FragmentOutput as l}from"../../GraphShaderModule.js";import{Vec2 as c,Float as m,Sampler2D as y,Mat3 as w,Vec3 as v,texture2D as u,max as h,step as x,Vec4 as f,length as g,smoothstep as S}from"../../graph/glsl.js";import{FeatureFragmentInput as j}from"../shaders/AFeatureShader.js";import{ViewInfo as z}from"../shaders/ViewInfo.js";class P extends n{}t([i(0,c)],P.prototype,"pos",void 0);class R extends j{}class b extends p{}t([r(m)],b.prototype,"dotSize",void 0);class F extends p{}t([r(m)],F.prototype,"pixelRatio",void 0),t([r(m)],F.prototype,"tileZoomFactor",void 0);const C=1e-6;class D extends a{constructor(){super(...arguments),this.type="DotDensityPointShader"}vertex(t){const o=new w(1,0,0,0,-1,0,0,1,1).multiply(new v(t.pos.xy.divide(e),1)),i=u(this.drawLocations,o.xy),r=h(this.instance.dotSize.divide(2),new m(1));let s=new m(0);s=s.add(x(i.a,new m(C)).multiply(2));let d=r.add(this.instance.dotSize);const n=this.view.displayViewScreenMat3.multiply(new v(t.pos.add(.5),1)),p=new f(n.xy,s,1),a=this.instance.dotSize.divide(d),l=new m(-1).divide(r.divide(d));return d=d.multiply(this.draw.pixelRatio.multiply(this.draw.tileZoomFactor)),{glPosition:p,glPointSize:d,color:i,ratio:a,invEdgeRatio:l}}fragment(t){const o=g(t.glPointCoord.subtract(.5)).multiply(2),e=S(new m(0),new m(1),t.invEdgeRatio.multiply(o.subtract(t.ratio)).add(1)),i=new l;return i.fragColor=t.color.multiply(e),i}}t([r(b)],D.prototype,"instance",void 0),t([r(F)],D.prototype,"draw",void 0),t([r(z)],D.prototype,"view",void 0),t([s(y)],D.prototype,"drawLocations",void 0),t([o(0,d(P))],D.prototype,"vertex",null),t([o(0,d(R))],D.prototype,"fragment",null);export{F as DotDensityPointDrawUniforms,R as DotDensityPointFragmentInput,b as DotDensityPointInstanceUniforms,D as DotDensityPointShader,P as DotDensityPointVertexInput};
@@ -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{tileSize as o}from"../../../definitions.js";import{FragmentOutput as s,location as i,uniform as r,texture as d,define as l,input as n,UniformGroup as a,TextureGroup as p}from"../../GraphShaderModule.js";import{Mat3 as h,Vec3 as u,Vec4 as c,texture2D as m,Mat4 as y,step as v,Float as g,dot as x,max as w,FixedArray as f,Sampler2D as T}from"../../graph/glsl.js";import{AFeatureShader as A,FeatureFragmentInput as D,FeatureVertexInput as b}from"../shaders/AFeatureShader.js";import{failHittest as C}from"../shaders/hittestUtils.js";import{max4 as j}from"../shaders/utils.js";class V extends b{}t([i(3,g)],V.prototype,"inverseArea",void 0);class F extends D{}class O extends a{}t([r(f.ofType(c,2))],O.prototype,"isActive",void 0),t([r(f.ofType(c,8))],O.prototype,"colors",void 0),t([r(g)],O.prototype,"dotValue",void 0);class R extends a{}t([r(g)],R.prototype,"tileZoomFactor",void 0),t([r(g)],R.prototype,"pixelRatio",void 0),t([r(g)],R.prototype,"tileDotsOverArea",void 0);class S extends p{}t([d(T)],S.prototype,"dotTexture0",void 0),t([d(T)],S.prototype,"dotTexture1",void 0);class _ extends A{constructor(){super(...arguments),this.type="DotDensityPolygonShader"}_dotThreshold(t,e,o){return t.divide(e).divide(o)}vertex(t){const e=new h(2/o,0,0,0,-2/o,0,-1,1,1).multiply(new u(t.pos,1)),s=this.clip(t.id),i=new c(e.xy,s,1),r=this.getVVData(t.id).multiply(this.instance.isActive.get(0)).multiply(t.inverseArea),d=this.storageTextures.getDataDrivenData0(this.getAttributeDataCoords(t.id)).multiply(this.instance.isActive.get(1)).multiply(t.inverseArea),l=this.draw.tileZoomFactor.multiply(o).divide(this.draw.pixelRatio),n=this._dotThreshold(r,this.instance.dotValue,this.draw.tileDotsOverArea),a=this._dotThreshold(d,this.instance.dotValue,this.draw.tileDotsOverArea),p=t.pos.add(.5).divide(l);return{glPosition:i,color:new c(0,0,0,0),textureCoords:p,thresholds0:n,thresholds1:a}}fragment(t){const e=new s,o=m(this.drawTextures.dotTexture0,t.textureCoords),i=m(this.drawTextures.dotTexture1,t.textureCoords),r=t.thresholds0.subtract(o),d=t.thresholds1.subtract(i);let l;const n=y.fromColumns(this.instance.colors.get(0),this.instance.colors.get(1),this.instance.colors.get(2),this.instance.colors.get(3)),a=y.fromColumns(this.instance.colors.get(4),this.instance.colors.get(5),this.instance.colors.get(6),this.instance.colors.get(7));if(this.blending){const t=v(new g(0),r),e=v(new g(0),d),o=x(t,r).add(x(e,d)),s=v(o,new g(0)),i=new g(1).subtract(s),p=o.add(s),h=r.multiply(t).divide(p),u=d.multiply(e).divide(p),c=n.multiply(h).add(a.multiply(u));l=i.multiply(c)}else{const t=w(j(r),j(d)),e=v(t,new g(0)),o=new g(1).subtract(e),s=v(t,r),i=v(t,d),p=n.multiply(s).add(a.multiply(i));l=o.multiply(p)}return e.fragColor=l,e}hittest(t){return C(this.hittestRequest)}}t([l],_.prototype,"blending",void 0),t([r(O)],_.prototype,"instance",void 0),t([r(R)],_.prototype,"draw",void 0),t([d(S)],_.prototype,"drawTextures",void 0),t([e(0,n(V))],_.prototype,"vertex",null),t([e(0,n(D))],_.prototype,"fragment",null);export{S as DotDensityPolygonDrawTextures,R as DotDensityPolygonDrawUniforms,F as DotDensityPolygonFragmentInput,O as DotDensityPolygonInstanceUniforms,_ as DotDensityPolygonShader,V as DotDensityPolygonVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{tileSize as o}from"../../../definitions.js";import{location as s,uniform as i,texture as r,define as d,input as l,UniformGroup as n,TextureGroup as a,FragmentOutput as p}from"../../GraphShaderModule.js";import{Float as h,FixedArray as u,Vec4 as c,Sampler2D as m,Mat3 as y,Vec3 as v,texture2D as g,Mat4 as x,step as w,dot as f,max as T}from"../../graph/glsl.js";import{FeatureFragmentInput as A,FeatureVertexInput as D,AFeatureShader as b}from"../shaders/AFeatureShader.js";import{failHittest as C}from"../shaders/hittestUtils.js";import{max4 as j}from"../shaders/utils.js";class V extends D{}t([s(3,h)],V.prototype,"inverseArea",void 0);class F extends A{}class O extends n{}t([i(u.ofType(c,2))],O.prototype,"isActive",void 0),t([i(u.ofType(c,8))],O.prototype,"colors",void 0),t([i(h)],O.prototype,"dotValue",void 0);class R extends n{}t([i(h)],R.prototype,"tileZoomFactor",void 0),t([i(h)],R.prototype,"pixelRatio",void 0),t([i(h)],R.prototype,"tileDotsOverArea",void 0);class S extends a{}t([r(m)],S.prototype,"dotTexture0",void 0),t([r(m)],S.prototype,"dotTexture1",void 0);class _ extends b{constructor(){super(...arguments),this.type="DotDensityPolygonShader"}_dotThreshold(t,e,o){return t.divide(e).divide(o)}vertex(t){const e=new y(2/o,0,0,0,-2/o,0,-1,1,1).multiply(new v(t.pos,1)),s=this.clip(t.id),i=new c(e.xy,s,1),r=this.getVVData(t.id).multiply(this.instance.isActive.get(0)).multiply(t.inverseArea),d=this.storageTextures.getDataDrivenData0(this.getAttributeDataCoords(t.id)).multiply(this.instance.isActive.get(1)).multiply(t.inverseArea),l=this.draw.tileZoomFactor.multiply(o).divide(this.draw.pixelRatio),n=this._dotThreshold(r,this.instance.dotValue,this.draw.tileDotsOverArea),a=this._dotThreshold(d,this.instance.dotValue,this.draw.tileDotsOverArea),p=t.pos.add(.5).divide(l);return{glPosition:i,color:new c(0,0,0,0),textureCoords:p,thresholds0:n,thresholds1:a}}fragment(t){const e=new p,o=g(this.drawTextures.dotTexture0,t.textureCoords),s=g(this.drawTextures.dotTexture1,t.textureCoords),i=t.thresholds0.subtract(o),r=t.thresholds1.subtract(s);let d;const l=x.fromColumns(this.instance.colors.get(0),this.instance.colors.get(1),this.instance.colors.get(2),this.instance.colors.get(3)),n=x.fromColumns(this.instance.colors.get(4),this.instance.colors.get(5),this.instance.colors.get(6),this.instance.colors.get(7));if(this.blending){const t=w(new h(0),i),e=w(new h(0),r),o=f(t,i).add(f(e,r)),s=w(o,new h(0)),a=new h(1).subtract(s),p=o.add(s),u=i.multiply(t).divide(p),c=r.multiply(e).divide(p),m=l.multiply(u).add(n.multiply(c));d=a.multiply(m)}else{const t=T(j(i),j(r)),e=w(t,new h(0)),o=new h(1).subtract(e),s=w(t,i),a=w(t,r),p=l.multiply(s).add(n.multiply(a));d=o.multiply(p)}return e.fragColor=d,e}hittest(t){return C(this.hittestRequest)}}t([d],_.prototype,"blending",void 0),t([i(O)],_.prototype,"instance",void 0),t([i(R)],_.prototype,"draw",void 0),t([r(S)],_.prototype,"drawTextures",void 0),t([e(0,l(V))],_.prototype,"vertex",null),t([e(0,l(A))],_.prototype,"fragment",null);export{S as DotDensityPolygonDrawTextures,R as DotDensityPolygonDrawUniforms,F as DotDensityPolygonFragmentInput,O as DotDensityPolygonInstanceUniforms,_ as DotDensityPolygonShader,V as DotDensityPolygonVertexInput};
@@ -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 l,input as r,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 w,clamp as V,abs as f,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 F}from"../shaders/constants.js";import{isRectHittest as q,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 lt(t,e,i,o){return e.multiply(t.x).add(i.multiply(t.y)).add(o.multiply(t.z))}function rt(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=rt(t.sizing.x),o=rt(t.sizing.y),s=rt(t.sizing.z),l=t.placementAngle,r=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),w=this.view.displayViewScreenMat3.multiply(new p(t.pos.xy,1)),V=tt(this,t.id,s).divide(s),f=i.multiply(V),S=t.offset.xy.multiply(V);let b=o.multiply(h.multiply(V.subtract(1)).add(1));b=n(b,u(f.subtract(.99),new d(0)));const g=u(b,new d(1)),C=n(b,new d(1)),M=m.fromRotation(l.multiply(N)),z=et(this,t.id),R=this._getViewRotationMatrix(a).multiply(z).multiply(M).multiply(new p(S.xy,0)).multiply(this.view.scaleFactor),j=this.clip(t.id,t.zoomRange),U=new y(w.xy.add(R.xy),j,1),T=t.textureUV.divide(this.mosaicInfo.size),D=t.outlineColor.multiply(C),F=G(t.bitset,_.bitset.overrideOutlineColor),q=t.sdfDecodeCoeff.multiply(f);return{glPosition:U,color:v,textureUV:T,outlineColor:D,outlineSize:g,distanceToPx:q,isSDF:r,overrideOutlineColor:F,...this.maybeRunHittest(t,e,{pos:t.pos,size:f,sizeCorrection:V,isMapAligned:a,vvRotationMat3:z,placementMat3:M,outlineSize:g,distanceToPx:q,isSDF:r})}}fragment(t){const e=this._getColor(t.textureUV,t);return this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:o,pos1:s,pos2:l}=this.computeHittestTriangle(t,e,i),r=q(this.hittestRequest);return h(r,()=>{const{tlbr:t}=this.hittestRequest;return O(o,s,l,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 w(this.mosaicTexture,t).multiply(e.color)}_getSDFColor(t,e){const i=w(this.mosaicTexture,t),o=new d(.5).subtract(B(i)).multiply(e.distanceToPx).multiply(F),s=V(new d(.5).subtract(o),new d(0),new d(1)),l=e.color.multiply(s);let r=e.outlineSize;this.highlight&&(r=u(r,e.overrideOutlineColor.multiply(4)));const a=r.multiply(.5),p=f(o).subtract(a),n=V(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(l).add(m)}_hittestSmallMarker(t,e,i){const{position:o,distance:s,smallSymbolDistance:l}=this.hittestRequest,r=s.subtract(l),{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(r)}_hittestMarker(t,e,i){const{pos0:o,pos1:s,pos2:l}=this.computeHittestTriangle(t,e,i),r=this.hittestRequest.position,a=this.hittestRequest.distance,p=k(r,o,s,l);return h(x(p,a),p,this._hittestSamples(o,s,l,t,e,i))}computeHittestTriangle(t,e,i){const{pos:o,sizeCorrection:s,isMapAligned:l}=i,r=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(l).multiply(i.vvRotationMat3).multiply(i.placementMat3);return{pos0:m.add(y.multiply(r)).xy,pos1:m.add(y.multiply(a)).xy,pos2:m.add(y.multiply(n)).xy}}_hittestSamples(t,e,i,o,s,l){const{outlineSize:r,isSDF:a,distanceToPx:p}=l,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),w=A(n.add(new g(u,0)),t,e,i),V=A(n.add(new g(C(u),u)),t,e,i),f=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:r,distanceToPx:p,isSDF:a};let j=new d(0);return j=j.add(P(m).multiply(this._getColor(lt(m,b,z,_),R).a)),j=j.add(P(h).multiply(this._getColor(lt(h,b,z,_),R).a)),j=j.add(P(c).multiply(this._getColor(lt(c,b,z,_),R).a)),j=j.add(P(x).multiply(this._getColor(lt(x,b,z,_),R).a)),j=j.add(P(v).multiply(this._getColor(lt(v,b,z,_),R).a)),j=j.add(P(w).multiply(this._getColor(lt(w,b,z,_),R).a)),j=j.add(P(V).multiply(this._getColor(lt(V,b,z,_),R).a)),j=j.add(P(f).multiply(this._getColor(lt(f,b,z,_),R).a)),j=j.add(P(S).multiply(this._getColor(lt(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([l(z)],at.prototype,"mosaicTexture",void 0),t([e(0,r(it)),e(1,r(ot))],at.prototype,"vertex",null),t([e(0,r(st))],at.prototype,"fragment",null);export{st as MarkerFragmentInput,at as MarkerShader,it as MarkerVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as i,option as o,uniform as s,texture as l,input as r,ComputeVertexInput as a}from"../../GraphShaderModule.js";import{Vec4 as p,Vec2 as n,Float as u,Sampler2D as d,Vec3 as m,min as y,max as h,Mat3 as c,ifElse as x,lessThan as v,greaterThan as w,equal as V,texture2D as f,clamp as S,abs as b,mix as g,distance as C,negate as M,step as z}from"../../graph/glsl.js";import{MarkerConstants as _}from"./markerConstants.js";import{FeatureVertexInput as R,AFeatureShader as j,FeatureFragmentInput as U}from"../shaders/AFeatureShader.js";import{c256ToRad as N,noHit as T,trueHit as D,softEdgeRatio as F}from"../shaders/constants.js";import{isRectHittest as q,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 R{}t([i(3,p)],it.prototype,"color",void 0),t([i(4,p)],it.prototype,"outlineColor",void 0),t([i(5,n)],it.prototype,"offset",void 0),t([i(6,n)],it.prototype,"textureUV",void 0),t([i(7,p)],it.prototype,"sizing",void 0),t([i(8,u)],it.prototype,"placementAngle",void 0),t([i(9,u)],it.prototype,"sdfDecodeCoeff",void 0),t([i(10,n)],it.prototype,"zoomRange",void 0);class ot extends a{}t([i(11,n)],ot.prototype,"offsetNextVertex1",void 0),t([i(12,n)],ot.prototype,"offsetNextVertex2",void 0),t([i(13,n)],ot.prototype,"textureUVNextVertex1",void 0),t([i(14,n)],ot.prototype,"textureUVNextVertex2",void 0);class st extends U{}function lt(t,e,i,o){return e.multiply(t.x).add(i.multiply(t.y)).add(o.multiply(t.z))}function rt(t){return t.multiply(t).divide(128)}class at extends j{constructor(){super(...arguments),this.type="MarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],textureUV:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=rt(t.sizing.x),o=rt(t.sizing.y),s=rt(t.sizing.z),l=t.placementAngle,r=G(t.bitset,_.bitset.isSDF),a=G(t.bitset,_.bitset.isMapAligned),n=G(t.bitset,_.bitset.scaleSymbolsProportionally),d=L(t.bitset,_.bitset.colorLocked),x=Z(this,t.id),v=$(this,t.id,t.color,d).multiply(x),w=this.view.displayViewScreenMat3.multiply(new m(t.pos.xy,1)),V=tt(this,t.id,s).divide(s),f=i.multiply(V),S=t.offset.xy.multiply(V);let b=o.multiply(n.multiply(V.subtract(1)).add(1));b=y(b,h(f.subtract(.99),new u(0)));const g=h(b,new u(1)),C=y(b,new u(1)),M=c.fromRotation(l.multiply(N)),z=et(this,t.id),R=this._getViewRotationMatrix(a).multiply(z).multiply(M).multiply(new m(S.xy,0)).multiply(this.view.scaleFactor),j=this.clip(t.id,t.zoomRange),U=new p(w.xy.add(R.xy),j,1),T=t.textureUV.divide(this.mosaicInfo.size),D=t.outlineColor.multiply(C),F=G(t.bitset,_.bitset.overrideOutlineColor),q=t.sdfDecodeCoeff.multiply(f);return{glPosition:U,color:v,textureUV:T,outlineColor:D,outlineSize:g,distanceToPx:q,isSDF:r,overrideOutlineColor:F,...this.maybeRunHittest(t,e,{pos:t.pos,size:f,sizeCorrection:V,isMapAligned:a,vvRotationMat3:z,placementMat3:M,outlineSize:g,distanceToPx:q,isSDF:r})}}fragment(t){const e=this._getColor(t.textureUV,t);return this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:o,pos1:s,pos2:l}=this.computeHittestTriangle(t,e,i),r=q(this.hittestRequest);return x(r,()=>{const{tlbr:t}=this.hittestRequest;return O(o,s,l,t)},()=>{const o=x(v(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i));return x(w(o,this.hittestRequest.distance),new u(T),new u(D))})}_getViewRotationMatrix(t){const e=this.view.displayViewMat3,i=this.view.displayMat3,o=new u(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 u(1).subtract(t);return e.multiply(t).add(i.multiply(o))}_getColor(t,e){return x(V(e.isSDF,new u(1)),this._getSDFColor(t,e),this._getSpriteColor(t,e))}_getSpriteColor(t,e){return f(this.mosaicTexture,t).multiply(e.color)}_getSDFColor(t,e){const i=f(this.mosaicTexture,t),o=new u(.5).subtract(B(i)).multiply(e.distanceToPx).multiply(F),s=S(new u(.5).subtract(o),new u(0),new u(1)),l=e.color.multiply(s);let r=e.outlineSize;this.highlight&&(r=h(r,e.overrideOutlineColor.multiply(4)));const a=r.multiply(.5),p=b(o).subtract(a),n=S(new u(.5).subtract(p),new u(0),new u(1)),d=g(e.outlineColor,e.color,e.overrideOutlineColor).multiply(n);return new u(1).subtract(d.a).multiply(l).add(d)}_hittestSmallMarker(t,e,i){const{position:o,distance:s,smallSymbolDistance:l}=this.hittestRequest,r=s.subtract(l),{viewMat3:a,tileMat3:p}=this.view,n=a.multiply(p).multiply(new m(i.pos,1)).xy,u=i.size.multiply(.5);return C(n,o).subtract(u).add(r)}_hittestMarker(t,e,i){const{pos0:o,pos1:s,pos2:l}=this.computeHittestTriangle(t,e,i),r=this.hittestRequest.position,a=this.hittestRequest.distance,p=k(r,o,s,l);return x(w(p,a),p,this._hittestSamples(o,s,l,t,e,i))}computeHittestTriangle(t,e,i){const{pos:o,sizeCorrection:s,isMapAligned:l}=i,r=new m(t.offset.multiply(s),0),a=new m(e.offsetNextVertex1.multiply(s),0),p=new m(e.offsetNextVertex2.multiply(s),0),{viewMat3:n,tileMat3:u}=this.view,d=n.multiply(u).multiply(new m(o,1)),y=this._getViewScreenMatrix(l).multiply(i.vvRotationMat3).multiply(i.placementMat3);return{pos0:d.add(y.multiply(r)).xy,pos1:d.add(y.multiply(a)).xy,pos2:d.add(y.multiply(p)).xy}}_hittestSamples(t,e,i,o,s,l){const{outlineSize:r,isSDF:a,distanceToPx:d}=l,m=this.hittestRequest.position,y=this.hittestRequest.distance,h=A(m.add(new n(M(y),M(y))),t,e,i),c=A(m.add(new n(0,M(y))),t,e,i),x=A(m.add(new n(y,M(y))),t,e,i),v=A(m.add(new n(M(y),0)),t,e,i),w=A(m,t,e,i),V=A(m.add(new n(y,0)),t,e,i),f=A(m.add(new n(M(y),y)),t,e,i),S=A(m.add(new n(0,y)),t,e,i),b=A(m.add(new n(y,y)),t,e,i),g=o.textureUV.divide(this.mosaicInfo.size),C=s.textureUVNextVertex1.divide(this.mosaicInfo.size),_=s.textureUVNextVertex2.divide(this.mosaicInfo.size),R={color:new p(1),outlineColor:new p(1),overrideOutlineColor:new u(1),outlineSize:r,distanceToPx:d,isSDF:a};let j=new u(0);return j=j.add(P(h).multiply(this._getColor(lt(h,g,C,_),R).a)),j=j.add(P(c).multiply(this._getColor(lt(c,g,C,_),R).a)),j=j.add(P(x).multiply(this._getColor(lt(x,g,C,_),R).a)),j=j.add(P(v).multiply(this._getColor(lt(v,g,C,_),R).a)),j=j.add(P(w).multiply(this._getColor(lt(w,g,C,_),R).a)),j=j.add(P(V).multiply(this._getColor(lt(V,g,C,_),R).a)),j=j.add(P(f).multiply(this._getColor(lt(f,g,C,_),R).a)),j=j.add(P(S).multiply(this._getColor(lt(S,g,C,_),R).a)),j=j.add(P(b).multiply(this._getColor(lt(b,g,C,_),R).a)),z(j,new u(.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([l(d)],at.prototype,"mosaicTexture",void 0),t([e(0,r(it)),e(1,r(ot))],at.prototype,"vertex",null),t([e(0,r(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 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};
2
+ import{__decorate as t}from"tslib";import{maxHighlightReasons as e}from"../../../definitions.js";import{location as i,define as o,option as r,uniform as s,texture as a,VertexInput as l,ComputeVertexInput as h,GraphShaderModule as g,FragmentOutput as n,FragmentInput as u}from"../../GraphShaderModule.js";import{Vec3 as p,Float as d,Vec2 as m,float as c,step as y,Vec4 as w,equal as b,ifElse as x,or 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 l{}t([i(0,p)],P.prototype,"id",void 0),t([i(1,d)],P.prototype,"bitset",void 0),t([i(2,m)],P.prototype,"pos",void 0);class k extends h{}t([i(14,m)],k.prototype,"nextPos1",void 0),t([i(15,m)],k.prototype,"nextPos2",void 0);class O extends u{}class z extends g{clip(t,e){let i=new d(0);const o=this.getFilterFlags(t);if(i=i.add(c(2).multiply(c(1).subtract(j(o,0)))),this.inside?i=i.add(c(2).multiply(c(1).subtract(j(o,1)))):this.outside?i=i.add(c(2).multiply(j(o,1))):this.highlight&&(i=i.add(c(2).multiply(c(1).subtract(this._checkHighlight(o))))),null!=e){const t=new d(1).subtract(y(e.x,this.view.currentZoom)),o=y(e.y,this.view.currentZoom);i=i.add(new d(2).multiply(t.add(o)))}return i}getFragmentOutput(t,e,i=new d(1/255)){const o=new n;return o.fragColor=this._maybeWriteHittest(e)??this._maybeHighlight(t,i)??t,o}_maybeHighlight(t,e){return this.highlight?new w(t.rgb,y(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 y(new d(.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 p(t.pos,1)).xy,pos1:s.multiply(new p(a,1)).xy,pos2:s.multiply(new p(l,1)).xy}}maybeRunHittest(t,e,i){if(null==this.hittestRequest)return null;const o=this.hittest(t,e,i),r=b(o,new d(f)),s=b(o,new d(C)),a=x(s,()=>new w(new d(1/255),0,0,0),x(r,()=>new w(new d(2/255),0,0,0),new w(H)));let l=x(v(r,s),new d(0),new d(2));const h=this.getAttributeDataCoords(t.id),g=F(h);return l=l.add(this.clip(t.id,t.zoomRange)),{glPointSize:new d(1),glPosition:new w(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([o],z.prototype,"inside",void 0),t([o],z.prototype,"outside",void 0),t([r(A)],z.prototype,"highlight",void 0),t([s(V)],z.prototype,"storage",void 0),t([a(D)],z.prototype,"storageTextures",void 0),t([s(S)],z.prototype,"view",void 0),t([r(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 l}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as n,uniform as i,define as a,texture as o,input as u,VertexInput as p,UniformGroup as c,FragmentInput as s}from"../../GraphShaderModule.js";import{Vec4 as d,texture2D as y,ifElse as m,equal as w,Float as b,clamp as g,Vec3 as f,abs as k,max as C,min as v,greaterThan as h,step as x,cond as T,lessThanEqual as j,dot as F,lessThan as M,Sampler2D as O,sqrt as S,Vec2 as B}from"../../graph/glsl.js";import{uvToClip as G,oneMinus as P,minusScalar as q,minusOne as z}from"./utils.js";class A extends p{}t([n(0,B)],A.prototype,"position",void 0);class D extends s{}class E extends c{}t([i(b)],E.prototype,"opacity",void 0),t([i(b)],E.prototype,"inFadeOpacity",void 0);class H extends e{constructor(){super(...arguments),this.type="BlendShader"}vertex(t){return{uv:t.position,glPosition:new d(G(t.position),0,1)}}fragment(t){const l=new r,e=y(this.layerTexture,t.uv),n=y(this.backbufferTexture,t.uv),i=m(w(e.a,new b(0)),e.rgb,e.rgb.divide(e.a)),a=m(w(n.a,new b(0)),n.rgb,n.rgb.divide(n.a)),o=this.config.opacity.multiply(e.a),u=n.a;switch(this.blendMode){case"destination-over":l.fragColor=new d(i.multiply(o).multiply(P(u)).add(a.multiply(u)),o.add(u).subtract(o.multiply(u)));break;case"source-in":{const t=new d(i.multiply(o).multiply(u),o.multiply(u)),e=new d(a.multiply(u),u).multiply(P(this.config.opacity)).multiply(this.config.inFadeOpacity);l.fragColor=t.add(e)}break;case"destination-in":{const t=new d(a.multiply(u).multiply(o),u.multiply(o)),e=new d(a.multiply(u),u).multiply(new d(P(this.config.opacity).multiply(this.config.inFadeOpacity)));l.fragColor=t.add(e)}break;case"source-out":l.fragColor=new d(i.multiply(o).multiply(P(u)),o.multiply(P(u)));break;case"destination-out":l.fragColor=new d(a.multiply(u).multiply(P(o)),u.multiply(P(o)));break;case"source-atop":l.fragColor=new d(i.multiply(o).multiply(u).add(a.multiply(u.multiply(P(o)))),u);break;case"destination-atop":l.fragColor=new d(i.multiply(o.multiply(P(u))).add(a.multiply(u).multiply(o)),o);break;case"xor":l.fragColor=new d(i.multiply(o.multiply(P(u))).add(a.multiply(u.multiply(P(o)))),o.multiply(P(u)).add(u.multiply(P(o))));break;case"multiply":l.fragColor=new d(i.multiply(o).multiply(a.multiply(u)).add(i.multiply(o).multiply(P(u))).add(a.multiply(u).multiply(P(o))),o.add(u.multiply(P(o))));break;case"screen":l.fragColor=new d(i.add(a).subtract(i.multiply(a)).multiply(o.multiply(u)).add(i.multiply(o).multiply(P(u))).add(a.multiply(u).multiply(P(o))),o.add(u.multiply(P(o))));break;case"overlay":{const t=new f(J(a.r,i.r),J(a.g,i.g),J(a.b,i.b));l.fragColor=I(t,i,a,o,u)}break;case"darken":{const t=v(i,a);l.fragColor=I(t,i,a,o,u)}break;case"lighter":l.fragColor=new d(i.multiply(o).add(a.multiply(u)),o.add(u));break;case"lighten":{const t=C(i,a);l.fragColor=I(t,i,a,o,u)}break;case"color-dodge":{const t=g(new f(K(a.r,i.r),K(a.g,i.g),K(a.b,i.b)),new f(0),new f(1));l.fragColor=I(t,i,a,o,u)}break;case"color-burn":{const t=new f(L(a.r,i.r),L(a.g,i.g),L(a.b,i.b));l.fragColor=I(t,i,a,o,u)}break;case"hard-light":{const t=new f(N(a.r,i.r),N(a.g,i.g),N(a.b,i.b));l.fragColor=I(t,i,a,o,u)}break;case"soft-light":{const t=new f(Q(a.r,i.r),Q(a.g,i.g),Q(a.b,i.b));l.fragColor=I(t,i,a,o,u)}break;case"difference":{const t=k(a.subtract(i));l.fragColor=I(t,i,a,o,u)}break;case"exclusion":{const t=i.add(a).subtract(new b(2).multiply(i).multiply(a));l.fragColor=I(t,i,a,o,u)}break;case"invert":l.fragColor=new d(new f(1).subtract(a).multiply(o).multiply(u).add(a.multiply(u).multiply(P(o))),u);break;case"vivid-light":{const t=new f(g(R(a.r,i.r),new b(0),new b(1)),g(R(a.g,i.g),new b(0),new b(1)),g(R(a.b,i.b),new b(0),new b(1)));l.fragColor=I(t,i,a,o,u)}break;case"hue":{const t=$(i,a,a);l.fragColor=I(t,i,a,o,u)}break;case"saturation":{const t=$(a,i,a);l.fragColor=I(t,i,a,o,u)}break;case"color":{const t=Z(i,a);l.fragColor=I(t,i,a,o,u)}break;case"luminosity":{const t=Z(a,i);l.fragColor=I(t,i,a,o,u)}break;case"plus":l.fragColor=g(new d(e.r.add(a.r),e.g.add(a.g),e.b.add(a.b),o.add(u)),new d(0),new d(1));break;case"minus":l.fragColor=new d(g(new f(a.r.subtract(e.r),a.g.subtract(e.g),a.b.subtract(e.b)),new f(0),new f(1)),u.multiply(o));break;case"average":{const t=a.add(i).divide(2);l.fragColor=I(t,i,a,o,u)}break;case"reflect":{const t=g(new f(_(a.r,i.r),_(a.g,i.g),_(a.b,i.b)),new f(0),new f(1));l.fragColor=I(t,i,a,o,u)}break;default:l.fragColor=e.multiply(this.config.opacity)}return l}}function I(t,l,e,r,n){return new d(t.multiply(r).multiply(n).add(l.multiply(r).multiply(P(n))).add(e.multiply(n).multiply(P(r))),r.add(n.multiply(P(r))))}function J(t,l){return new b(1).subtract(x(new b(.5),l)).multiply(P(new b(2).multiply(P(l).multiply(P(t))))).add(x(new b(.5),l).multiply(new b(2).multiply(l).multiply(t)))}function K(t,l){return m(w(t,new b(0)),new b(0),m(w(l,new b(1)),new b(1),v(new b(1),t.divide(new b(1).subtract(l)))))}function L(t,l){return m(w(t,new b(1)),new b(1),m(w(l,new b(0)),new b(0),P(v(new b(1),P(t).divide(l)))))}function N(t,l){return new b(1).subtract(x(new b(.5),l)).multiply(new b(2).multiply(l).multiply(t)).add(x(new b(.5),l).multiply(P(new b(2).multiply(P(l).multiply(P(t))))))}function Q(t,l){return T([j(l,new b(.5)),()=>{const e=new b(2).multiply(l),r=P(e),n=P(t);return t.subtract(r.multiply(t).multiply(n))}],[j(t,new b(.25)),()=>{const e=new b(2).multiply(l),r=z(e).multiply(t),n=new b(16).multiply(t).subtract(new b(12)).multiply(t).add(new b(3));return t.add(r.multiply(n))}],[!0,()=>{const e=new b(2).multiply(l),r=z(e),n=S(t).subtract(t);return t.add(r.multiply(n))}])}function R(t,l){const e=P(x(new b(.5),l)).multiply(L(t,new b(2).multiply(l))),r=x(new b(.5),l).multiply(K(t,new b(2).multiply(q(l,.5))));return e.add(r)}function U(t){return v(v(t.r,t.g),t.b)}function V(t){return C(C(t.r,t.g),t.b)}function W(t){return F(t,new f(.3,.59,.11))}function X(t){return V(t).subtract(U(t))}function Y(t){const l=W(t),e=U(t),r=V(t);return T([M(e,new b(0)),()=>{const r=t.subtract(l).multiply(l),n=l.subtract(e);return l.add(r.divide(n))}],[h(r,new b(1)),()=>{const e=t.subtract(l),n=P(l),i=e.multiply(n),a=r.subtract(l);return l.add(i.divide(a))}],[!0,t])}function Z(t,l){const e=W(t),r=W(l).subtract(e);return Y(t.add(new f(r)))}function $(t,l,e){const r=U(t),n=X(t),i=X(l);return Z(m(h(n,new b(0)),()=>t.subtract(r).multiply(i).divide(n),new f(0)),e)}function _(t,l){return m(w(l,new b(1)),l,()=>{const e=P(l),r=t.multiply(t).divide(e);return v(r,new b(1))})}t([a],H.prototype,"blendMode",void 0),t([i(E)],H.prototype,"config",void 0),t([o(O)],H.prototype,"layerTexture",void 0),t([o(O)],H.prototype,"backbufferTexture",void 0),t([l(0,u(A))],H.prototype,"vertex",null),t([l(0,u(D))],H.prototype,"fragment",null);export{H as BlendShader};
2
+ import{__decorate as t,__param as l}from"tslib";import{location as e,uniform as r,define as n,texture as i,input as a,VertexInput as o,UniformGroup as u,GraphShaderModule as p,FragmentOutput as c,FragmentInput as s}from"../../GraphShaderModule.js";import{Vec4 as d,texture2D as y,ifElse as m,equal as w,Float as b,clamp as g,Vec3 as f,abs as k,max as C,min as v,greaterThan as h,step as x,cond as T,lessThanEqual as j,dot as F,lessThan as M,Vec2 as O,Sampler2D as S,sqrt as B}from"../../graph/glsl.js";import{uvToClip as G,oneMinus as P,minusScalar as q,minusOne as z}from"./utils.js";class A extends o{}t([e(0,O)],A.prototype,"position",void 0);class D extends s{}class E extends u{}t([r(b)],E.prototype,"opacity",void 0),t([r(b)],E.prototype,"inFadeOpacity",void 0);class H extends p{constructor(){super(...arguments),this.type="BlendShader"}vertex(t){return{uv:t.position,glPosition:new d(G(t.position),0,1)}}fragment(t){const l=new c,e=y(this.layerTexture,t.uv),r=y(this.backbufferTexture,t.uv),n=m(w(e.a,new b(0)),e.rgb,e.rgb.divide(e.a)),i=m(w(r.a,new b(0)),r.rgb,r.rgb.divide(r.a)),a=this.config.opacity.multiply(e.a),o=r.a;switch(this.blendMode){case"destination-over":l.fragColor=new d(n.multiply(a).multiply(P(o)).add(i.multiply(o)),a.add(o).subtract(a.multiply(o)));break;case"source-in":{const t=new d(n.multiply(a).multiply(o),a.multiply(o)),e=new d(i.multiply(o),o).multiply(P(this.config.opacity)).multiply(this.config.inFadeOpacity);l.fragColor=t.add(e)}break;case"destination-in":{const t=new d(i.multiply(o).multiply(a),o.multiply(a)),e=new d(i.multiply(o),o).multiply(new d(P(this.config.opacity).multiply(this.config.inFadeOpacity)));l.fragColor=t.add(e)}break;case"source-out":l.fragColor=new d(n.multiply(a).multiply(P(o)),a.multiply(P(o)));break;case"destination-out":l.fragColor=new d(i.multiply(o).multiply(P(a)),o.multiply(P(a)));break;case"source-atop":l.fragColor=new d(n.multiply(a).multiply(o).add(i.multiply(o.multiply(P(a)))),o);break;case"destination-atop":l.fragColor=new d(n.multiply(a.multiply(P(o))).add(i.multiply(o).multiply(a)),a);break;case"xor":l.fragColor=new d(n.multiply(a.multiply(P(o))).add(i.multiply(o.multiply(P(a)))),a.multiply(P(o)).add(o.multiply(P(a))));break;case"multiply":l.fragColor=new d(n.multiply(a).multiply(i.multiply(o)).add(n.multiply(a).multiply(P(o))).add(i.multiply(o).multiply(P(a))),a.add(o.multiply(P(a))));break;case"screen":l.fragColor=new d(n.add(i).subtract(n.multiply(i)).multiply(a.multiply(o)).add(n.multiply(a).multiply(P(o))).add(i.multiply(o).multiply(P(a))),a.add(o.multiply(P(a))));break;case"overlay":{const t=new f(J(i.r,n.r),J(i.g,n.g),J(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"darken":{const t=v(n,i);l.fragColor=I(t,n,i,a,o)}break;case"lighter":l.fragColor=new d(n.multiply(a).add(i.multiply(o)),a.add(o));break;case"lighten":{const t=C(n,i);l.fragColor=I(t,n,i,a,o)}break;case"color-dodge":{const t=g(new f(K(i.r,n.r),K(i.g,n.g),K(i.b,n.b)),new f(0),new f(1));l.fragColor=I(t,n,i,a,o)}break;case"color-burn":{const t=new f(L(i.r,n.r),L(i.g,n.g),L(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"hard-light":{const t=new f(N(i.r,n.r),N(i.g,n.g),N(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"soft-light":{const t=new f(Q(i.r,n.r),Q(i.g,n.g),Q(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"difference":{const t=k(i.subtract(n));l.fragColor=I(t,n,i,a,o)}break;case"exclusion":{const t=n.add(i).subtract(new b(2).multiply(n).multiply(i));l.fragColor=I(t,n,i,a,o)}break;case"invert":l.fragColor=new d(new f(1).subtract(i).multiply(a).multiply(o).add(i.multiply(o).multiply(P(a))),o);break;case"vivid-light":{const t=new f(g(R(i.r,n.r),new b(0),new b(1)),g(R(i.g,n.g),new b(0),new b(1)),g(R(i.b,n.b),new b(0),new b(1)));l.fragColor=I(t,n,i,a,o)}break;case"hue":{const t=$(n,i,i);l.fragColor=I(t,n,i,a,o)}break;case"saturation":{const t=$(i,n,i);l.fragColor=I(t,n,i,a,o)}break;case"color":{const t=Z(n,i);l.fragColor=I(t,n,i,a,o)}break;case"luminosity":{const t=Z(i,n);l.fragColor=I(t,n,i,a,o)}break;case"plus":l.fragColor=g(new d(e.r.add(i.r),e.g.add(i.g),e.b.add(i.b),a.add(o)),new d(0),new d(1));break;case"minus":l.fragColor=new d(g(new f(i.r.subtract(e.r),i.g.subtract(e.g),i.b.subtract(e.b)),new f(0),new f(1)),o.multiply(a));break;case"average":{const t=i.add(n).divide(2);l.fragColor=I(t,n,i,a,o)}break;case"reflect":{const t=g(new f(_(i.r,n.r),_(i.g,n.g),_(i.b,n.b)),new f(0),new f(1));l.fragColor=I(t,n,i,a,o)}break;default:l.fragColor=e.multiply(this.config.opacity)}return l}}function I(t,l,e,r,n){return new d(t.multiply(r).multiply(n).add(l.multiply(r).multiply(P(n))).add(e.multiply(n).multiply(P(r))),r.add(n.multiply(P(r))))}function J(t,l){return new b(1).subtract(x(new b(.5),l)).multiply(P(new b(2).multiply(P(l).multiply(P(t))))).add(x(new b(.5),l).multiply(new b(2).multiply(l).multiply(t)))}function K(t,l){return m(w(t,new b(0)),new b(0),m(w(l,new b(1)),new b(1),v(new b(1),t.divide(new b(1).subtract(l)))))}function L(t,l){return m(w(t,new b(1)),new b(1),m(w(l,new b(0)),new b(0),P(v(new b(1),P(t).divide(l)))))}function N(t,l){return new b(1).subtract(x(new b(.5),l)).multiply(new b(2).multiply(l).multiply(t)).add(x(new b(.5),l).multiply(P(new b(2).multiply(P(l).multiply(P(t))))))}function Q(t,l){return T([j(l,new b(.5)),()=>{const e=new b(2).multiply(l),r=P(e),n=P(t);return t.subtract(r.multiply(t).multiply(n))}],[j(t,new b(.25)),()=>{const e=new b(2).multiply(l),r=z(e).multiply(t),n=new b(16).multiply(t).subtract(new b(12)).multiply(t).add(new b(3));return t.add(r.multiply(n))}],[!0,()=>{const e=new b(2).multiply(l),r=z(e),n=B(t).subtract(t);return t.add(r.multiply(n))}])}function R(t,l){const e=P(x(new b(.5),l)).multiply(L(t,new b(2).multiply(l))),r=x(new b(.5),l).multiply(K(t,new b(2).multiply(q(l,.5))));return e.add(r)}function U(t){return v(v(t.r,t.g),t.b)}function V(t){return C(C(t.r,t.g),t.b)}function W(t){return F(t,new f(.3,.59,.11))}function X(t){return V(t).subtract(U(t))}function Y(t){const l=W(t),e=U(t),r=V(t);return T([M(e,new b(0)),()=>{const r=t.subtract(l).multiply(l),n=l.subtract(e);return l.add(r.divide(n))}],[h(r,new b(1)),()=>{const e=t.subtract(l),n=P(l),i=e.multiply(n),a=r.subtract(l);return l.add(i.divide(a))}],[!0,t])}function Z(t,l){const e=W(t),r=W(l).subtract(e);return Y(t.add(new f(r)))}function $(t,l,e){const r=U(t),n=X(t),i=X(l);return Z(m(h(n,new b(0)),()=>t.subtract(r).multiply(i).divide(n),new f(0)),e)}function _(t,l){return m(w(l,new b(1)),l,()=>{const e=P(l),r=t.multiply(t).divide(e);return v(r,new b(1))})}t([n],H.prototype,"blendMode",void 0),t([r(E)],H.prototype,"config",void 0),t([i(S)],H.prototype,"layerTexture",void 0),t([i(S)],H.prototype,"backbufferTexture",void 0),t([l(0,a(A))],H.prototype,"vertex",null),t([l(0,a(D))],H.prototype,"fragment",null);export{H as BlendShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as r,__param as t}from"tslib";import{FragmentOutput as o,texture as e,input as s}from"../../GraphShaderModule.js";import{texture2D as p,Sampler2D as i}from"../../graph/glsl.js";import{PostProcessingShader as l,PostProcessingFragmentInput as m}from"./PostProcessingShader.js";class a extends l{fragment(r){const t=new o;return t.fragColor=p(this.blitTexture,r.uv),t}}r([e(i)],a.prototype,"blitTexture",void 0),r([t(0,s(m))],a.prototype,"fragment",null);export{a as BlitShader};
2
+ import{__decorate as r,__param as t}from"tslib";import{texture as o,input as e,FragmentOutput as s}from"../../GraphShaderModule.js";import{Sampler2D as p,texture2D as i}from"../../graph/glsl.js";import{PostProcessingFragmentInput as l,PostProcessingShader as m}from"./PostProcessingShader.js";class a extends m{fragment(r){const t=new s;return t.fragColor=i(this.blitTexture,r.uv),t}}r([o(p)],a.prototype,"blitTexture",void 0),r([t(0,e(l))],a.prototype,"fragment",null);export{a as BlitShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as o,__param as t}from"tslib";import{FragmentOutput as e,uniform as i,texture as r,input as s,define as l,UniformGroup as p,TextureGroup as u}from"../../GraphShaderModule.js";import{clamp as m,Float as n,Vec4 as d,texture2D as y,mix as a,Vec3 as h,dot as g,smoothstep as c,Sampler2D as v,FixedArray as f}from"../../graph/glsl.js";import{PostProcessingShader as b,PostProcessingFragmentInput as x}from"./PostProcessingShader.js";class T extends p{}o([i(h)],T.prototype,"defaultColor",void 0),o([i(n)],T.prototype,"defaultOpacity",void 0),o([i(n)],T.prototype,"luminosityThreshold",void 0),o([i(n)],T.prototype,"smoothWidth",void 0);class C extends b{constructor(){super(...arguments),this.type="LuminosityHighPassShader"}fragment(o){const t=new e,i=y(this.luminosityHighPassTexture,o.uv),r=new h(.299,.587,.114),s=g(i.xyz,r),l=new d(this.luminosityHighPassConfig.defaultColor.rgb,this.luminosityHighPassConfig.defaultOpacity),p=c(this.luminosityHighPassConfig.luminosityThreshold,this.luminosityHighPassConfig.luminosityThreshold.add(this.luminosityHighPassConfig.smoothWidth),s);return t.fragColor=a(l,i,p),t}}o([i(T)],C.prototype,"luminosityHighPassConfig",void 0),o([r(v)],C.prototype,"luminosityHighPassTexture",void 0),o([t(0,s(x))],C.prototype,"fragment",null);class w extends p{}o([i(n)],w.prototype,"bloomStrength",void 0),o([i(n)],w.prototype,"bloomRadius",void 0),o([i(f.ofType(n,5))],w.prototype,"bloomFactors",void 0),o([i(h)],w.prototype,"bloomTintColor",void 0);class P extends u{}o([r(v)],P.prototype,"blurTexture1",void 0),o([r(v)],P.prototype,"blurTexture2",void 0),o([r(v)],P.prototype,"blurTexture3",void 0),o([r(v)],P.prototype,"blurTexture4",void 0),o([r(v)],P.prototype,"blurTexture5",void 0);class H extends b{constructor(){super(...arguments),this.type="CompositeShader"}fragment(o){const t=new e,{blurTexture1:i,blurTexture2:r,blurTexture3:s,blurTexture4:l,blurTexture5:p}=this.compositeTextures,{bloomStrength:u,bloomFactors:a,bloomTintColor:h,bloomRadius:g}=this.compositeConfig,c=m(g,new n(0),new n(1)),v=this._lerpBloomFactor(a.get(0),c).multiply(new d(h,1).multiply(y(i,o.uv))),f=this._lerpBloomFactor(a.get(1),c).multiply(new d(h,1).multiply(y(r,o.uv))),b=this._lerpBloomFactor(a.get(2),c).multiply(new d(h,1).multiply(y(s,o.uv))),x=this._lerpBloomFactor(a.get(3),c).multiply(new d(h,1).multiply(y(l,o.uv))),T=this._lerpBloomFactor(a.get(4),c).multiply(new d(h,1).multiply(y(p,o.uv))),C=u.multiply(v.add(f.add(b.add(x.add(T)))));return t.fragColor=C,t}_lerpBloomFactor(o,t){const e=new n(1.2).subtract(o);return a(o,e,t)}}o([l],H.prototype,"numMips",void 0),o([i(w)],H.prototype,"compositeConfig",void 0),o([r(P)],H.prototype,"compositeTextures",void 0),o([t(0,s(x))],H.prototype,"fragment",null);export{H as BloomCompositeShader,C as LuminosityHighPassShader};
2
+ import{__decorate as o,__param as t}from"tslib";import{uniform as e,texture as i,input as r,define as s,UniformGroup as l,FragmentOutput as p,TextureGroup as u}from"../../GraphShaderModule.js";import{Vec3 as m,Float as n,Sampler2D as d,FixedArray as y,texture2D as a,dot as h,Vec4 as g,smoothstep as c,mix as v,clamp as f}from"../../graph/glsl.js";import{PostProcessingFragmentInput as b,PostProcessingShader as x}from"./PostProcessingShader.js";class T extends l{}o([e(m)],T.prototype,"defaultColor",void 0),o([e(n)],T.prototype,"defaultOpacity",void 0),o([e(n)],T.prototype,"luminosityThreshold",void 0),o([e(n)],T.prototype,"smoothWidth",void 0);class C extends x{constructor(){super(...arguments),this.type="LuminosityHighPassShader"}fragment(o){const t=new p,e=a(this.luminosityHighPassTexture,o.uv),i=new m(.299,.587,.114),r=h(e.xyz,i),s=new g(this.luminosityHighPassConfig.defaultColor.rgb,this.luminosityHighPassConfig.defaultOpacity),l=c(this.luminosityHighPassConfig.luminosityThreshold,this.luminosityHighPassConfig.luminosityThreshold.add(this.luminosityHighPassConfig.smoothWidth),r);return t.fragColor=v(s,e,l),t}}o([e(T)],C.prototype,"luminosityHighPassConfig",void 0),o([i(d)],C.prototype,"luminosityHighPassTexture",void 0),o([t(0,r(b))],C.prototype,"fragment",null);class w extends l{}o([e(n)],w.prototype,"bloomStrength",void 0),o([e(n)],w.prototype,"bloomRadius",void 0),o([e(y.ofType(n,5))],w.prototype,"bloomFactors",void 0),o([e(m)],w.prototype,"bloomTintColor",void 0);class P extends u{}o([i(d)],P.prototype,"blurTexture1",void 0),o([i(d)],P.prototype,"blurTexture2",void 0),o([i(d)],P.prototype,"blurTexture3",void 0),o([i(d)],P.prototype,"blurTexture4",void 0),o([i(d)],P.prototype,"blurTexture5",void 0);class H extends x{constructor(){super(...arguments),this.type="CompositeShader"}fragment(o){const t=new p,{blurTexture1:e,blurTexture2:i,blurTexture3:r,blurTexture4:s,blurTexture5:l}=this.compositeTextures,{bloomStrength:u,bloomFactors:m,bloomTintColor:d,bloomRadius:y}=this.compositeConfig,h=f(y,new n(0),new n(1)),c=this._lerpBloomFactor(m.get(0),h).multiply(new g(d,1).multiply(a(e,o.uv))),v=this._lerpBloomFactor(m.get(1),h).multiply(new g(d,1).multiply(a(i,o.uv))),b=this._lerpBloomFactor(m.get(2),h).multiply(new g(d,1).multiply(a(r,o.uv))),x=this._lerpBloomFactor(m.get(3),h).multiply(new g(d,1).multiply(a(s,o.uv))),T=this._lerpBloomFactor(m.get(4),h).multiply(new g(d,1).multiply(a(l,o.uv))),C=u.multiply(c.add(v.add(b.add(x.add(T)))));return t.fragColor=C,t}_lerpBloomFactor(o,t){const e=new n(1.2).subtract(o);return v(o,e,t)}}o([s],H.prototype,"numMips",void 0),o([e(w)],H.prototype,"compositeConfig",void 0),o([i(P)],H.prototype,"compositeTextures",void 0),o([t(0,r(b))],H.prototype,"fragment",null);export{H as BloomCompositeShader,C as LuminosityHighPassShader};
@@ -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{FragmentOutput as i,uniform as r,define as o,texture as l,input as s,UniformGroup as u}from"../../GraphShaderModule.js";import{Float as n,texture2D as d,sqrt as p,clamp as a,mix as y,exp as m,Vec2 as c,Sampler2D as v}from"../../graph/glsl.js";import{PostProcessingShader as g,PostProcessingFragmentInput as f}from"./PostProcessingShader.js";class h extends u{}t([r(c)],h.prototype,"texSize",void 0),t([r(c)],h.prototype,"direction",void 0),t([r(n)],h.prototype,"sigma",void 0);class w extends g{constructor(){super(...arguments),this.type="GaussianBlurShader"}fragment(t){const e=new i,r=new n(1).divide(this.gaussianBlurConfig.texSize),o=this.gaussianBlurConfig.sigma;let l=x(new n(0),o),s=d(this.texture,t.uv).multiply(l);for(let i=1;i<this.kernelRadius;i++){const e=new n(i),u=x(e,o),p=this.gaussianBlurConfig.direction.multiply(r).multiply(e),a=d(this.texture,t.uv.add(p)),y=d(this.texture,t.uv.subtract(p));s=s.add(a.multiply(u)).add(y.multiply(u)),l=l.add(new n(2).multiply(u))}return e.fragColor=s.divide(l),e}}function x(t,e){return new n(.39894).multiply(m(new n(-.5).multiply(t).multiply(t).divide(e.multiply(e))).divide(e))}t([o],w.prototype,"kernelRadius",void 0),t([r(h)],w.prototype,"gaussianBlurConfig",void 0),t([l(v)],w.prototype,"texture",void 0),t([e(0,s(f))],w.prototype,"fragment",null);const B=1,C=2.2,S=[-.08,-.05,-.03,-.02,-.01,.01,.02,.03,.05,.08];class R extends g{constructor(){super(...arguments),this.type="RadialBlurShader"}fragment(t){const e=new i;let r=new n(.5).subtract(t.uv);const o=p(r.x.multiply(r.y).add(r.y.multiply(r.y)));r=r.divide(o);const l=d(this.texture,t.uv);let s=l;for(let i=0;i<10;i++){const e=d(this.texture,t.uv.add(r).multiply(new n(S[i]).multiply(B)));s=s.add(e)}const u=new n(1).divide(new n(11));s=s.multiply(u);let m=o.multiply(C);return m=a(m,new n(0),new n(1)),e.fragColor=y(l,s,m),e}}t([o],R.prototype,"kernelRadius",void 0),t([l(v)],R.prototype,"texture",void 0),t([e(0,s(f))],R.prototype,"fragment",null);export{w as GaussianBlurShader,R as RadialBlurShader};
2
+ import{__decorate as t,__param as e}from"tslib";import{uniform as i,define as r,texture as o,input as l,UniformGroup as s,FragmentOutput as u}from"../../GraphShaderModule.js";import{Vec2 as n,Float as d,Sampler2D as p,texture2D as a,sqrt as y,clamp as m,mix as c,exp as v}from"../../graph/glsl.js";import{PostProcessingFragmentInput as g,PostProcessingShader as f}from"./PostProcessingShader.js";class h extends s{}t([i(n)],h.prototype,"texSize",void 0),t([i(n)],h.prototype,"direction",void 0),t([i(d)],h.prototype,"sigma",void 0);class w extends f{constructor(){super(...arguments),this.type="GaussianBlurShader"}fragment(t){const e=new u,i=new d(1).divide(this.gaussianBlurConfig.texSize),r=this.gaussianBlurConfig.sigma;let o=x(new d(0),r),l=a(this.texture,t.uv).multiply(o);for(let s=1;s<this.kernelRadius;s++){const e=new d(s),u=x(e,r),n=this.gaussianBlurConfig.direction.multiply(i).multiply(e),p=a(this.texture,t.uv.add(n)),y=a(this.texture,t.uv.subtract(n));l=l.add(p.multiply(u)).add(y.multiply(u)),o=o.add(new d(2).multiply(u))}return e.fragColor=l.divide(o),e}}function x(t,e){return new d(.39894).multiply(v(new d(-.5).multiply(t).multiply(t).divide(e.multiply(e))).divide(e))}t([r],w.prototype,"kernelRadius",void 0),t([i(h)],w.prototype,"gaussianBlurConfig",void 0),t([o(p)],w.prototype,"texture",void 0),t([e(0,l(g))],w.prototype,"fragment",null);const B=1,C=2.2,S=[-.08,-.05,-.03,-.02,-.01,.01,.02,.03,.05,.08];class R extends f{constructor(){super(...arguments),this.type="RadialBlurShader"}fragment(t){const e=new u;let i=new d(.5).subtract(t.uv);const r=y(i.x.multiply(i.y).add(i.y.multiply(i.y)));i=i.divide(r);const o=a(this.texture,t.uv);let l=o;for(let u=0;u<10;u++){const e=a(this.texture,t.uv.add(i).multiply(new d(S[u]).multiply(B)));l=l.add(e)}const s=new d(1).divide(new d(11));l=l.multiply(s);let n=r.multiply(C);return n=m(n,new d(0),new d(1)),e.fragColor=c(o,l,n),e}}t([r],R.prototype,"kernelRadius",void 0),t([o(p)],R.prototype,"texture",void 0),t([e(0,l(g))],R.prototype,"fragment",null);export{w as GaussianBlurShader,R as RadialBlurShader};
@@ -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{GraphShaderModule as e,FragmentOutput as r,location as p,uniform as s,input as i,FragmentInput as n,VertexInput as l,UniformGroup as a}from"../../GraphShaderModule.js";import{Vec3 as d,Vec4 as y,Vec2 as m,Mat3 as u}from"../../graph/glsl.js";class x extends l{}t([p(0,m)],x.prototype,"pos",void 0);class c extends a{}t([s(u)],c.prototype,"displayViewMat3",void 0);class f extends e{constructor(){super(...arguments),this.type="ClipShader"}vertex(t){const o=this.options.displayViewMat3.multiply(new d(t.pos.xy,1));return{glPosition:new y(o.xy,0,1)}}fragment(t){const o=new r;return o.fragColor=new y(1,0,0,1),o}}t([s(c)],f.prototype,"options",void 0),t([o(0,i(x))],f.prototype,"vertex",null),t([o(0,i(n))],f.prototype,"fragment",null);export{x as ClipInput,f as ClipShader};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as r,input as p,FragmentInput as s,VertexInput as i,UniformGroup as n,GraphShaderModule as l,FragmentOutput as a}from"../../GraphShaderModule.js";import{Vec2 as d,Mat3 as y,Vec3 as m,Vec4 as u}from"../../graph/glsl.js";class x extends i{}t([e(0,d)],x.prototype,"pos",void 0);class c extends n{}t([r(y)],c.prototype,"displayViewMat3",void 0);class f extends l{constructor(){super(...arguments),this.type="ClipShader"}vertex(t){const o=this.options.displayViewMat3.multiply(new m(t.pos.xy,1));return{glPosition:new u(o.xy,0,1)}}fragment(t){const o=new a;return o.fragColor=new u(1,0,0,1),o}}t([r(c)],f.prototype,"options",void 0),t([o(0,p(x))],f.prototype,"vertex",null),t([o(0,p(s))],f.prototype,"fragment",null);export{x as ClipInput,f as ClipShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as e,__param as t}from"tslib";import{FragmentOutput as r,uniform as o,texture as i,input as s,UniformGroup as f}from"../../GraphShaderModule.js";import{texture2D as p,ifElse as l,Vec3 as n,greaterThan as c,Float as a,Vec4 as m,Mat4 as d,Sampler2D as g}from"../../graph/glsl.js";import{PostProcessingShader as u,PostProcessingFragmentInput as h}from"./PostProcessingShader.js";class y extends f{}e([o(d)],y.prototype,"coefficients",void 0);class v extends u{constructor(){super(...arguments),this.type="FilterEffectShader"}fragment(e){const t=new r,o=p(this.colorTexture,e.uv),i=l(c(o.a,new a(0)),o.rgb.divide(o.a),new n(0)),s=this.filterEffectConfig.coefficients.multiply(new m(i,1)),f=o.a;return t.fragColor=new m(f.multiply(s.rgb),f),t}}e([o(y)],v.prototype,"filterEffectConfig",void 0),e([i(g)],v.prototype,"colorTexture",void 0),e([t(0,s(h))],v.prototype,"fragment",null);export{v as FilterEffectShader};
2
+ import{__decorate as e,__param as t}from"tslib";import{uniform as r,texture as o,input as i,UniformGroup as s,FragmentOutput as f}from"../../GraphShaderModule.js";import{Mat4 as p,Sampler2D as l,texture2D as n,ifElse as c,Vec3 as a,greaterThan as m,Float as d,Vec4 as g}from"../../graph/glsl.js";import{PostProcessingFragmentInput as u,PostProcessingShader as h}from"./PostProcessingShader.js";class y extends s{}e([r(p)],y.prototype,"coefficients",void 0);class v extends h{constructor(){super(...arguments),this.type="FilterEffectShader"}fragment(e){const t=new f,r=n(this.colorTexture,e.uv),o=c(m(r.a,new d(0)),r.rgb.divide(r.a),new a(0)),i=this.filterEffectConfig.coefficients.multiply(new g(o,1)),s=r.a;return t.fragColor=new g(s.multiply(i.rgb),s),t}}e([r(y)],v.prototype,"filterEffectConfig",void 0),e([o(l)],v.prototype,"colorTexture",void 0),e([t(0,i(u))],v.prototype,"fragment",null);export{v as FilterEffectShader};
@@ -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,uniform as i,texture as r,input as l}from"../../GraphShaderModule.js";import{Float as s,equal as p,float as d,Vec4 as a,ifElse as n,mat3 as m,negate as u,vec2 as f,Vec2 as y,sin as c,cos as v,Vec3 as x,mod as h,mix as g,texture2D as b,greaterThan as w,Sampler2D as j}from"../../graph/glsl.js";import{BaseHittestVertexInput as O,FeatureFragmentInput as T}from"./AFeatureShader.js";import{c256ToRad as C,bitsetGenericConsiderAlphaOnly as F,bitsetFillRandomPatternOffset as A}from"./constants.js";import{FillShader as S,FillVertexInput as I}from"./FillShader.js";import{LocalTileOffset as z}from"./LocalTileOffset.js";import{MosaicInfo as M}from"./MosaicInfo.js";import{getBit as V,rgba2float as q,rand as G,isNan as L}from"./utils.js";class P extends I{}t([o(5,a)],P.prototype,"tlbr",void 0),t([o(6,s)],P.prototype,"width",void 0),t([o(7,s)],P.prototype,"height",void 0),t([o(8,y)],P.prototype,"offset",void 0),t([o(9,y)],P.prototype,"scale",void 0),t([o(10,s)],P.prototype,"angle",void 0);class Z extends T{}function k(t,e,o,i,r){const l=p(V(r,A),d(1)),s=q(new a(t,0));return n(l,m(i.divide(e.x),o.divide(e.y),0,u(o.divide(e.x)),i.divide(e.y),0,G(f(s,0)),G(f(0,s)),1),m(i.divide(e.x),o.divide(e.y),0,u(o.divide(e.x)),i.divide(e.y),0,0,0,1))}function B(t,e){const o=t.view.requiredZoomFactor,i=new y(e.width,e.height),r=i.multiply(e.scale).multiply(o),l=e.angle.multiply(C),p=c(l),d=v(l),a=k(e.id,r,p,d,e.bitset),m=t.localTileOffset.getPatternOffsetAtTileOrigin(i,p,d),u=o.multiply(e.scale).multiply(e.offset.subtract(m)).divide(r),f=new x(e.pos,1),h=a.multiply(f).xy.subtract(u),g=e.tlbr.divide(t.mosaicInfo.size.xyxy);let b=V(e.bitset,F);return null!=t.visualVariableColor&&(b=n(L(t.getColorValue(e.id)),new s(0),b)),{tileTextureCoord:h,tlbr:g,sampleAlphaOnly:b}}function D(t,e){const o=h(e.tileTextureCoord,new s(1)),i=g(e.tlbr.xy,e.tlbr.zw,o);let r=b(t.mosaicTexture,i);return r=n(w(e.sampleAlphaOnly,new s(.5)),r.aaaa,r),e.color.multiply(r)}class E extends S{constructor(){super(...arguments),this.type="ComplexFillShader"}vertex(t,e){return{...super.vertex(t,e),...B(this,t)}}fragment(t){const e=D(this,t);return this.getFragmentOutput(e,t,new s(0))}}t([i(M)],E.prototype,"mosaicInfo",void 0),t([r(j)],E.prototype,"mosaicTexture",void 0),t([i(z)],E.prototype,"localTileOffset",void 0),t([e(0,l(P)),e(1,l(O))],E.prototype,"vertex",null),t([e(0,l(Z))],E.prototype,"fragment",null);export{Z as ComplexFillFragmentInput,E as ComplexFillShader,P as ComplexFillVertexInput,D as getComplexFillFragmentColor,B as getComplexFillVertexData,k as getPatternMatrix};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as o,uniform as i,texture as r,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as p,Vec2 as d,Sampler2D as a,sin as n,cos as m,Vec3 as u,ifElse as f,mod as y,mix as c,texture2D as v,greaterThan as x,equal as h,float as g,mat3 as b,negate as w,vec2 as j}from"../../graph/glsl.js";import{BaseHittestVertexInput as O,FeatureFragmentInput as T}from"./AFeatureShader.js";import{c256ToRad as C,bitsetGenericConsiderAlphaOnly as F,bitsetFillRandomPatternOffset as A}from"./constants.js";import{FillVertexInput as S,FillShader as I}from"./FillShader.js";import{LocalTileOffset as z}from"./LocalTileOffset.js";import{MosaicInfo as M}from"./MosaicInfo.js";import{getBit as V,isNan as q,rgba2float as G,rand as L}from"./utils.js";class P extends S{}t([o(5,s)],P.prototype,"tlbr",void 0),t([o(6,p)],P.prototype,"width",void 0),t([o(7,p)],P.prototype,"height",void 0),t([o(8,d)],P.prototype,"offset",void 0),t([o(9,d)],P.prototype,"scale",void 0),t([o(10,p)],P.prototype,"angle",void 0);class Z extends T{}function k(t,e,o,i,r){const l=h(V(r,A),g(1)),p=G(new s(t,0));return f(l,b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,L(j(p,0)),L(j(0,p)),1),b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,0,0,1))}function B(t,e){const o=t.view.requiredZoomFactor,i=new d(e.width,e.height),r=i.multiply(e.scale).multiply(o),l=e.angle.multiply(C),s=n(l),a=m(l),y=k(e.id,r,s,a,e.bitset),c=t.localTileOffset.getPatternOffsetAtTileOrigin(i,s,a),v=o.multiply(e.scale).multiply(e.offset.subtract(c)).divide(r),x=new u(e.pos,1),h=y.multiply(x).xy.subtract(v),g=e.tlbr.divide(t.mosaicInfo.size.xyxy);let b=V(e.bitset,F);return null!=t.visualVariableColor&&(b=f(q(t.getColorValue(e.id)),new p(0),b)),{tileTextureCoord:h,tlbr:g,sampleAlphaOnly:b}}function D(t,e){const o=y(e.tileTextureCoord,new p(1)),i=c(e.tlbr.xy,e.tlbr.zw,o);let r=v(t.mosaicTexture,i);return r=f(x(e.sampleAlphaOnly,new p(.5)),r.aaaa,r),e.color.multiply(r)}class E extends I{constructor(){super(...arguments),this.type="ComplexFillShader"}vertex(t,e){return{...super.vertex(t,e),...B(this,t)}}fragment(t){const e=D(this,t);return this.getFragmentOutput(e,t,new p(0))}}t([i(M)],E.prototype,"mosaicInfo",void 0),t([r(a)],E.prototype,"mosaicTexture",void 0),t([i(z)],E.prototype,"localTileOffset",void 0),t([e(0,l(P)),e(1,l(O))],E.prototype,"vertex",null),t([e(0,l(Z))],E.prototype,"fragment",null);export{Z as ComplexFillFragmentInput,E as ComplexFillShader,P as ComplexFillVertexInput,D as getComplexFillFragmentColor,B as getComplexFillVertexData,k as getPatternMatrix};
@@ -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 e,uniform as r,texture as i,input as s}from"../../GraphShaderModule.js";import{greaterThan as p,Float as l,ifElse as a,Vec4 as n,Vec2 as m,Sampler2D as u}from"../../graph/glsl.js";import{BaseHittestVertexInput as f,FeatureVertexInput as h}from"./AFeatureShader.js";import{getComplexFillVertexData as d,getComplexFillFragmentColor as c}from"./ComplexFillShader.js";import{signedToUnsignedByte as x,packPrecision as y}from"./constants.js";import{hittestFill as v,failHittest as j}from"./hittestUtils.js";import{getLineFragmentColor as g}from"./LineShader.js";import{LocalTileOffset as O}from"./LocalTileOffset.js";import{MosaicInfo as S}from"./MosaicInfo.js";import{AOutlineFillShader as b,getOutlineFillVertexData as F}from"./OutlineFillShader.js";import{PatternOutlineFillFragmentInput as w}from"./PatternOutlineFillShader.js";const C=1/y;class R extends h{}t([e(3,n)],R.prototype,"color",void 0),t([e(4,n)],R.prototype,"tlbr",void 0),t([e(5,l)],R.prototype,"angle",void 0),t([e(6,l)],R.prototype,"aux1",void 0),t([e(7,l)],R.prototype,"aux2",void 0),t([e(8,m)],R.prototype,"aux3",void 0),t([e(9,m)],R.prototype,"aux4",void 0),t([e(10,m)],R.prototype,"zoomRange",void 0);class T extends w{}class H extends b{constructor(){super(...arguments),this.type="ComplexOutlineFillShader"}vertex(t,o){const{aux1:e,aux2:r,aux3:i,aux4:s}=t,a={...t,width:e,height:r,offset:i,scale:s.multiply(C)},n={...t,halfWidth:e,referenceHalfWidth:r,offset:i,normal:s.subtract(x).multiply(C)},m=F(this,n),u=d(this,a),f=p(m.isOutline,new l(.5));return{...m,...u,...Object.assign({},this.maybeRunHittest(t,o,f))}}fragment(t){const{isOutline:o}=t,e=p(o,new l(.5)),r=g(t,this.antialiasingControls.blur),i=c(this,t),s=a(e,r,i),n=a(e,new l(1/255),new l(0));return this.getFragmentOutput(s,t,n)}hittest(t,o,e){return a(e,j(this.hittestRequest),v(this,t,o))}}t([r(S)],H.prototype,"mosaicInfo",void 0),t([i(u)],H.prototype,"mosaicTexture",void 0),t([r(O)],H.prototype,"localTileOffset",void 0),t([o(0,s(R)),o(1,s(f))],H.prototype,"vertex",null),t([o(0,s(T))],H.prototype,"fragment",null);export{H as ComplexOutlineFillShader,R as ComplexOutlineFillVertexInput};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as r,texture as i,input as s}from"../../GraphShaderModule.js";import{Vec4 as p,Float as l,Vec2 as a,Sampler2D as n,greaterThan as m,ifElse as u}from"../../graph/glsl.js";import{BaseHittestVertexInput as f,FeatureVertexInput as h}from"./AFeatureShader.js";import{getComplexFillVertexData as d,getComplexFillFragmentColor as c}from"./ComplexFillShader.js";import{signedToUnsignedByte as x,packPrecision as y}from"./constants.js";import{hittestFill as v,failHittest as j}from"./hittestUtils.js";import{getLineFragmentColor as g}from"./LineShader.js";import{LocalTileOffset as O}from"./LocalTileOffset.js";import{MosaicInfo as S}from"./MosaicInfo.js";import{AOutlineFillShader as b,getOutlineFillVertexData as F}from"./OutlineFillShader.js";import{PatternOutlineFillFragmentInput as w}from"./PatternOutlineFillShader.js";const C=1/y;class R extends h{}t([e(3,p)],R.prototype,"color",void 0),t([e(4,p)],R.prototype,"tlbr",void 0),t([e(5,l)],R.prototype,"angle",void 0),t([e(6,l)],R.prototype,"aux1",void 0),t([e(7,l)],R.prototype,"aux2",void 0),t([e(8,a)],R.prototype,"aux3",void 0),t([e(9,a)],R.prototype,"aux4",void 0),t([e(10,a)],R.prototype,"zoomRange",void 0);class T extends w{}class H extends b{constructor(){super(...arguments),this.type="ComplexOutlineFillShader"}vertex(t,o){const{aux1:e,aux2:r,aux3:i,aux4:s}=t,p={...t,width:e,height:r,offset:i,scale:s.multiply(C)},a={...t,halfWidth:e,referenceHalfWidth:r,offset:i,normal:s.subtract(x).multiply(C)},n=F(this,a),u=d(this,p),f=m(n.isOutline,new l(.5));return{...n,...u,...Object.assign({},this.maybeRunHittest(t,o,f))}}fragment(t){const{isOutline:o}=t,e=m(o,new l(.5)),r=g(t,this.antialiasingControls.blur),i=c(this,t),s=u(e,r,i),p=u(e,new l(1/255),new l(0));return this.getFragmentOutput(s,t,p)}hittest(t,o,e){return u(e,j(this.hittestRequest),v(this,t,o))}}t([r(S)],H.prototype,"mosaicInfo",void 0),t([i(n)],H.prototype,"mosaicTexture",void 0),t([r(O)],H.prototype,"localTileOffset",void 0),t([o(0,s(R)),o(1,s(f))],H.prototype,"vertex",null),t([o(0,s(T))],H.prototype,"fragment",null);export{H as ComplexOutlineFillShader,R as ComplexOutlineFillVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as o,__param as t}from"tslib";import{FragmentOutput as e,uniform as r,texture as s,input as p,UniformGroup as i}from"../../GraphShaderModule.js";import{Vec3 as a,Float as l,texture2D as d,Vec4 as u,Vec2 as m,Mat3 as y,Sampler2D as n}from"../../graph/glsl.js";import{PostProcessingShader as f,PostProcessingFragmentInput as h}from"./PostProcessingShader.js";class c extends i{}o([r(u)],c.prototype,"shadowColor",void 0),o([r(m)],c.prototype,"shadowOffset",void 0),o([r(y)],c.prototype,"displayViewMat3",void 0);class w extends f{constructor(){super(...arguments),this.type="CompositeShader"}fragment(o){const t=new e,{shadowColor:r,shadowOffset:s,displayViewMat3:p}=this.compositeConfig,i=p.multiply(new a(s,new l(0))),u=d(this.layerFBOTexture,o.uv),m=d(this.blurTexture,o.uv.subtract(i.xy.divide(2)));return t.fragColor=m.a.multiply(r).multiply(new l(1).subtract(u.a)).add(u),t}}o([r(c)],w.prototype,"compositeConfig",void 0),o([s(n)],w.prototype,"layerFBOTexture",void 0),o([s(n)],w.prototype,"blurTexture",void 0),o([t(0,p(h))],w.prototype,"fragment",null);export{w as DropShadowCompositeShader};
2
+ import{__decorate as o,__param as t}from"tslib";import{uniform as e,texture as r,input as s,UniformGroup as p,FragmentOutput as i}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as l,Mat3 as d,Sampler2D as u,Vec3 as m,Float as y,texture2D as n}from"../../graph/glsl.js";import{PostProcessingFragmentInput as f,PostProcessingShader as h}from"./PostProcessingShader.js";class c extends p{}o([e(a)],c.prototype,"shadowColor",void 0),o([e(l)],c.prototype,"shadowOffset",void 0),o([e(d)],c.prototype,"displayViewMat3",void 0);class w extends h{constructor(){super(...arguments),this.type="CompositeShader"}fragment(o){const t=new i,{shadowColor:e,shadowOffset:r,displayViewMat3:s}=this.compositeConfig,p=s.multiply(new m(r,new y(0))),a=n(this.layerFBOTexture,o.uv),l=n(this.blurTexture,o.uv.subtract(p.xy.divide(2)));return t.fragColor=l.a.multiply(e).multiply(new y(1).subtract(a.a)).add(a),t}}o([e(c)],w.prototype,"compositeConfig",void 0),o([r(u)],w.prototype,"layerFBOTexture",void 0),o([r(u)],w.prototype,"blurTexture",void 0),o([t(0,s(f))],w.prototype,"fragment",null);export{w as DropShadowCompositeShader};
@@ -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 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};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as e,option as s,input as r}from"../../GraphShaderModule.js";import{Vec4 as i,Vec2 as l,Vec3 as p,Float as n,ifElse as a,greaterThan as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as u,FeatureFragmentInput as h,FeatureVertexInput as c,AFeatureShader 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 c{}t([e(3,i)],R.prototype,"color",void 0),t([e(4,l)],R.prototype,"zoomRange",void 0);class S extends d{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 p(t.pos.xy,1)),l=this.clip(t.id,t.zoomRange);return{glPosition:new i(r.xy,l,1),color:s,...this.maybeRunHittest(t,o,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new n(0))}hittest(t,o){const{pos0:e,pos1:s,pos2:r}=this.computeHittestTriangle(t,o,null),i=v(this.hittestRequest);return a(i,()=>{const{tlbr:t}=this.hittestRequest;return x(e,s,r,t)},()=>{const e=g(this,t,o);return a(m(e,this.hittestRequest.distance),new n(y),new n(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(u))],S.prototype,"vertex",null),t([o(0,r(h))],S.prototype,"fragment",null);export{S as FillShader,R as FillVertexInput};