@arcgis/core 5.2.0-next.7 → 5.2.0-next.9

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 (489) hide show
  1. package/applications/SceneViewer/layerUtils.d.ts +9 -1
  2. package/applications/SceneViewer/layerUtils.js +1 -1
  3. package/arcgisGlobal.d.ts +4 -0
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/07cc5743cb6a9fd68adb.js +1 -0
  6. package/assets/esri/core/workers/chunks/0cbd7f5fe24271942abd.js +1 -0
  7. package/assets/esri/core/workers/chunks/0ecc1bc1686844cdd60e.js +1 -0
  8. package/assets/esri/core/workers/chunks/0f75c19d8e296a32e329.js +1 -0
  9. package/assets/esri/core/workers/chunks/174cc2e69e5b5a13d880.js +1 -0
  10. package/assets/esri/core/workers/chunks/18f980465db5a86153d1.js +1 -0
  11. package/assets/esri/core/workers/chunks/1996f0a930abdd97b855.js +1 -0
  12. package/assets/esri/core/workers/chunks/1c8436b27a3d3cde5cfc.js +1 -0
  13. package/assets/esri/core/workers/chunks/1cb1f125dccbf8c8cac9.js +1 -0
  14. package/assets/esri/core/workers/chunks/1dd06335bb2d35c66339.js +1 -0
  15. package/assets/esri/core/workers/chunks/1f289aa69dd6b6be534a.js +1 -0
  16. package/assets/esri/core/workers/chunks/2185e8a52c5e29d46680.js +1 -0
  17. package/assets/esri/core/workers/chunks/{da29cf0e64065631a470.js → 24810c36ae09bb4e83dc.js} +1 -1
  18. package/assets/esri/core/workers/chunks/26583db2af1a1cc456e5.js +1 -0
  19. package/assets/esri/core/workers/chunks/274b82cb183ddd0042f3.js +1 -0
  20. package/assets/esri/core/workers/chunks/27c6def22c2b0791ce9e.js +1 -0
  21. package/assets/esri/core/workers/chunks/2d2895f1fdf44d212a4d.js +1 -0
  22. package/assets/esri/core/workers/chunks/2dbc2fd0f2dde505c465.js +1 -0
  23. package/assets/esri/core/workers/chunks/2dbcdfdf000226bfe746.js +1 -0
  24. package/assets/esri/core/workers/chunks/2e6382d50bf012064eae.js +1 -0
  25. package/assets/esri/core/workers/chunks/30f1909c5ef1835b8507.js +1 -0
  26. package/assets/esri/core/workers/chunks/31918a0d9886dedf385f.js +1 -0
  27. package/assets/esri/core/workers/chunks/{1c029b03ed836f393a50.js → 3248001d9dfb9153699e.js} +1 -1
  28. package/assets/esri/core/workers/chunks/3297658ccd8d4b9ce733.js +1 -0
  29. package/assets/esri/core/workers/chunks/{716a4d7e8b908b81870b.js → 32f26757e36704923286.js} +1 -1
  30. package/assets/esri/core/workers/chunks/3529afab0c2444275d91.js +1 -0
  31. package/assets/esri/core/workers/chunks/36dac6ab51d9dbdd091d.js +1 -0
  32. package/assets/esri/core/workers/chunks/390fda094fa8695d98cf.js +1 -0
  33. package/assets/esri/core/workers/chunks/39596715e84d0da2f803.js +30 -0
  34. package/assets/esri/core/workers/chunks/398eb3100a282e4736bb.js +1 -0
  35. package/assets/esri/core/workers/chunks/3b3f91a61e3f29af1fb2.js +1 -0
  36. package/assets/esri/core/workers/chunks/{f815106d439ff1f76e51.js → 3b837b512999e6ab24bc.js} +1 -1
  37. package/assets/esri/core/workers/chunks/3d20c86f1fe877bf884b.js +1 -0
  38. package/assets/esri/core/workers/chunks/3dc5fbecc427df1fd827.js +1 -0
  39. package/assets/esri/core/workers/chunks/3e65b4b18760bde8ceee.js +1 -0
  40. package/assets/esri/core/workers/chunks/3ff7aa216cd794d951e8.js +1 -0
  41. package/assets/esri/core/workers/chunks/{8e1865392681d390ab2e.js → 401ee7fa500adad77db1.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{60915a3708a34da1977e.js → 426156137f279d979ddd.js} +1 -1
  43. package/assets/esri/core/workers/chunks/434c1dd3f48e6f0802fc.js +1 -0
  44. package/assets/esri/core/workers/chunks/4517630bf869205bab87.js +1 -0
  45. package/assets/esri/core/workers/chunks/48f1c3a7c9f16d6896f6.js +1 -0
  46. package/assets/esri/core/workers/chunks/{cfd28eba44cf5a296c6d.js → 49308bdc36373555f1af.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{09d0e430c66788a2626f.js → 4a20f7a0700fd14a129f.js} +1 -1
  48. package/assets/esri/core/workers/chunks/5075e85e1eafd431a8c0.js +1 -0
  49. package/assets/esri/core/workers/chunks/5121768c70f1e03b685c.js +1 -0
  50. package/assets/esri/core/workers/chunks/5201105ca11a2d450460.js +1 -0
  51. package/assets/esri/core/workers/chunks/528ed0bd8dc149ead023.js +1 -0
  52. package/assets/esri/core/workers/chunks/52f354bf80ee5ab0379a.js +1 -0
  53. package/assets/esri/core/workers/chunks/538537f9bc866d9caa75.js +1 -0
  54. package/assets/esri/core/workers/chunks/58a7cdebc3d182c15ec6.js +1 -0
  55. package/assets/esri/core/workers/chunks/58ac245ff7fb57c1004f.js +1 -0
  56. package/assets/esri/core/workers/chunks/58acc18b92533166135d.js +1 -0
  57. package/assets/esri/core/workers/chunks/597aa39cdb5366ef9a74.js +1 -0
  58. package/assets/esri/core/workers/chunks/5bfae465872760e7af6d.js +1 -0
  59. package/assets/esri/core/workers/chunks/5cb274e5759f7ca0d4ed.js +1 -0
  60. package/assets/esri/core/workers/chunks/5d3ddbf94539cb4f493e.js +1 -0
  61. package/assets/esri/core/workers/chunks/{542f5469f7b42026b24f.js → 5d62d1920e3e35fc0192.js} +1 -1
  62. package/assets/esri/core/workers/chunks/5dd441db1e74dc9b56e9.js +1 -0
  63. package/assets/esri/core/workers/chunks/630ad47857de3cf726d1.js +1 -0
  64. package/assets/esri/core/workers/chunks/64114a7d2da162987958.js +1 -0
  65. package/assets/esri/core/workers/chunks/6821462e5c1e9c76010a.js +1 -0
  66. package/assets/esri/core/workers/chunks/684d3cb4fb233180b2d0.js +1 -0
  67. package/assets/esri/core/workers/chunks/686c51fd2144e132783e.js +1 -0
  68. package/assets/esri/core/workers/chunks/68f9b2da1fd08785320f.js +2 -0
  69. package/assets/esri/core/workers/chunks/69e98de578f467a35054.js +1 -0
  70. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
  71. package/assets/esri/core/workers/chunks/6aabde21b0b376d95888.js +1 -0
  72. package/assets/esri/core/workers/chunks/6d616b66fb32904b55a1.js +1 -0
  73. package/assets/esri/core/workers/chunks/{bcb021a167580bb1619f.js → 6ef3b8d67b498d655a99.js} +1 -1
  74. package/assets/esri/core/workers/chunks/6f125b4ed06c0022dee6.js +1 -0
  75. package/assets/esri/core/workers/chunks/6f4825c3ef1fe202ab82.js +1 -0
  76. package/assets/esri/core/workers/chunks/6f5d61f734ec40dafabb.js +1 -0
  77. package/assets/esri/core/workers/chunks/{fce7995c26953bfd8d3d.js → 70229007d594536ba6a3.js} +1 -1
  78. package/assets/esri/core/workers/chunks/71e55381fdff3fc2542e.js +1 -0
  79. package/assets/esri/core/workers/chunks/{90953a827bc89d0e6bd5.js → 72cfb186e50537bcdd19.js} +1 -1
  80. package/assets/esri/core/workers/chunks/72d67cc3a382e83bf1a2.js +1 -0
  81. package/assets/esri/core/workers/chunks/7748743d4be047094d67.js +1 -0
  82. package/assets/esri/core/workers/chunks/78c53aeb0a408ab3c80c.js +1 -0
  83. package/assets/esri/core/workers/chunks/7b5c1030a7cf0f382cc4.js +1 -0
  84. package/assets/esri/core/workers/chunks/7cee81c5aa1e6b7d2452.js +1 -0
  85. package/assets/esri/core/workers/chunks/7e89cb9ff615742e0894.js +1 -0
  86. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
  87. package/assets/esri/core/workers/chunks/{62dfbdc847be4800e833.js → 8103d06f760a2c79773d.js} +10 -14
  88. package/assets/esri/core/workers/chunks/{8477b5fdd99c6ac5c27b.js → 851705cf276eae8d4d37.js} +1 -1
  89. package/assets/esri/core/workers/chunks/89e09276086745aa21fa.js +1 -0
  90. package/assets/esri/core/workers/chunks/{4894997bfa438f66da36.js → 8a8c5e5ce457ca004687.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{b79428c5093614174e76.js → 8b0a01ebc86ab226f01f.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{452c01cecbbd1e370098.js → 8f93e6fc11a158d4f1ee.js} +1 -1
  93. package/assets/esri/core/workers/chunks/93bd56396b8cd020f965.js +1 -0
  94. package/assets/esri/core/workers/chunks/{359d3acb3953e64e5a78.js → 93ceb74ac88ef460fe5f.js} +1 -1
  95. package/assets/esri/core/workers/chunks/957f7b8de4aecb6f644e.js +1 -0
  96. package/assets/esri/core/workers/chunks/{875cce0be4f6c89f80f3.js → 9629601de5e44ffe90ea.js} +2 -2
  97. package/assets/esri/core/workers/chunks/976ab2be6c244768c08a.js +1 -0
  98. package/assets/esri/core/workers/chunks/{e785f76c1a75cb1d1e1f.js → 99101789035f1787c630.js} +1 -1
  99. package/assets/esri/core/workers/chunks/99e5296192ab98fd0d99.js +1 -0
  100. package/assets/esri/core/workers/chunks/9d5f7573bfe3b051daf1.js +1 -0
  101. package/assets/esri/core/workers/chunks/a0c00c6fe60db49b3ab9.js +1 -0
  102. package/assets/esri/core/workers/chunks/a2247f4c3116efb16c4f.js +1 -0
  103. package/assets/esri/core/workers/chunks/a4245bd4e67a428fd835.js +1 -0
  104. package/assets/esri/core/workers/chunks/a442534ac0956a68b769.js +1 -0
  105. package/assets/esri/core/workers/chunks/a4e9a17dacbb52444d75.js +1 -0
  106. package/assets/esri/core/workers/chunks/{8bdca6f06c8b5fedd917.js → a5abba59e738c3240c22.js} +1 -1
  107. package/assets/esri/core/workers/chunks/a9fc53ae040320e49834.js +1 -0
  108. package/assets/esri/core/workers/chunks/aa118c1bcd922b8ac328.js +1 -0
  109. package/assets/esri/core/workers/chunks/aae0049c2c3e15a813e8.js +1 -0
  110. package/assets/esri/core/workers/chunks/ac33b10fe65f9e9e824f.js +1 -0
  111. package/assets/esri/core/workers/chunks/adc32f6b45ea3026fc34.js +1 -0
  112. package/assets/esri/core/workers/chunks/af31e62499d45bdab3c3.js +1 -0
  113. package/assets/esri/core/workers/chunks/b22a1c98271c2e4d8808.js +1 -0
  114. package/assets/esri/core/workers/chunks/{9f4681713f03365a2a53.js → b666027b9022fa346a79.js} +1 -1
  115. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
  116. package/assets/esri/core/workers/chunks/{0f3654c8157ec8f22869.js → b895674c0550826ecb28.js} +3 -3
  117. package/assets/esri/core/workers/chunks/c0cbc50e5afd68bd485c.js +1 -0
  118. package/assets/esri/core/workers/chunks/c2a65de34f6a6c89c652.js +1 -0
  119. package/assets/esri/core/workers/chunks/c357c0a08b99c1e7f290.js +1 -0
  120. package/assets/esri/core/workers/chunks/{4a23b27bfbcfa08fd9a7.js → c3cf9e6e91f71c9cc5f3.js} +1 -1
  121. package/assets/esri/core/workers/chunks/c3ff2ff0a86a9143d7a5.js +1 -0
  122. package/assets/esri/core/workers/chunks/{e545df5ea7c0ced92cee.js → c424a66f1546275e2bcb.js} +1 -1
  123. package/assets/esri/core/workers/chunks/c60b4f2dd5fccdf362a7.js +1 -0
  124. package/assets/esri/core/workers/chunks/c6d0b4875b6b8d6bc25a.js +1 -0
  125. package/assets/esri/core/workers/chunks/c80fc1b3048e8d58a1f8.js +1 -0
  126. package/assets/esri/core/workers/chunks/c911f0b5bdd43b66b731.js +1 -0
  127. package/assets/esri/core/workers/chunks/c9a4601073e1a3eee9d0.js +1 -0
  128. package/assets/esri/core/workers/chunks/ccffaba50674adba7a0f.js +1 -0
  129. package/assets/esri/core/workers/chunks/{24646a1176ce34039155.js → cdf6ad970dc1893dac58.js} +1 -1
  130. package/assets/esri/core/workers/chunks/d13e003c9293cb7e2852.js +1 -0
  131. package/assets/esri/core/workers/chunks/d24e027bb8b2c09f25c8.js +1 -0
  132. package/assets/esri/core/workers/chunks/d2df8c328054dc6cb7b7.js +1 -0
  133. package/assets/esri/core/workers/chunks/d5c35a75fd4c41def420.js +1 -0
  134. package/assets/esri/core/workers/chunks/{5e3e0d7b85dfd52d1c7d.js → d78b7cac322755e87eb8.js} +1 -1
  135. package/assets/esri/core/workers/chunks/d7be278aed1fb37ad5ec.js +1 -0
  136. package/assets/esri/core/workers/chunks/d9695794cfaa014a55b1.js +1 -0
  137. package/assets/esri/core/workers/chunks/da1e8b338ab9fe9e0a8e.js +1 -0
  138. package/assets/esri/core/workers/chunks/dd920a6f6422fa213eba.js +1 -0
  139. package/assets/esri/core/workers/chunks/e1bf87077541da6853c6.js +1 -0
  140. package/assets/esri/core/workers/chunks/e279bcbe4f10e87bde6c.js +1 -0
  141. package/assets/esri/core/workers/chunks/e4406baf206b9e4c7e4f.js +1 -0
  142. package/assets/esri/core/workers/chunks/e499252cb52f7aed49a0.js +1 -0
  143. package/assets/esri/core/workers/chunks/{e178cd0e9178d6716410.js → e5837e5ac6ef761f26a2.js} +1 -1
  144. package/assets/esri/core/workers/chunks/e6a7272b59a4c2e34dca.js +1 -0
  145. package/assets/esri/core/workers/chunks/e912b515704e20313e53.js +1 -0
  146. package/assets/esri/core/workers/chunks/eac683a37339aa558455.js +1 -0
  147. package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +1 -0
  148. package/assets/esri/core/workers/chunks/ed3d16a5b4084ef61f8a.js +1 -0
  149. package/assets/esri/core/workers/chunks/ee07f54bc77fe9f8575a.js +1 -0
  150. package/assets/esri/core/workers/chunks/{e094364e54981c91e1b4.js → eeea5710275c967e8d51.js} +1 -1
  151. package/assets/esri/core/workers/chunks/ef46ef4f0ee9f2aeaa4a.js +1 -0
  152. package/assets/esri/core/workers/chunks/efb4aa5886730ea377bd.js +1 -0
  153. package/assets/esri/core/workers/chunks/{485d20152495c27b8074.js → f2a268c69f2a5566381b.js} +1 -1
  154. package/assets/esri/core/workers/chunks/f590db684d88e72bd79b.js +1 -0
  155. package/assets/esri/core/workers/chunks/f69df22a5c64389ebe28.js +1 -0
  156. package/assets/esri/core/workers/chunks/{f60292d97bcdbf19165b.js → f6d047358d14328f3622.js} +1 -1
  157. package/assets/esri/core/workers/chunks/f7fca88d120d45bb782a.js +1 -0
  158. package/assets/esri/core/workers/chunks/f819854098d63fe4ccdb.js +1 -0
  159. package/assets/esri/core/workers/chunks/f8f3579d0c1b65762902.js +1 -0
  160. package/assets/esri/core/workers/chunks/f98118127469449ca145.js +1 -0
  161. package/assets/esri/core/workers/chunks/f9ed05d4ad1f44d033bb.js +1 -0
  162. package/assets/esri/core/workers/chunks/fb6605be0c5e36785543.js +1 -0
  163. package/assets/esri/core/workers/chunks/fbe7dae0b4bf2d172487.js +1 -0
  164. package/assets/esri/core/workers/chunks/fc4d9be62cf5e9758842.js +1 -0
  165. package/assets/esri/core/workers/chunks/fd70a25ffdf2cc6c5be2.js +1 -0
  166. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  167. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  168. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  169. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  170. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +38 -8
  171. package/assets/esri/themes/dark/main.css +1 -1
  172. package/assets/esri/themes/light/main.css +1 -1
  173. package/assets/esri/themes/light/view.css +1 -1
  174. package/chunks/GaussianSplatComposition.glsl.js +1 -1
  175. package/chunks/GlobalIllumination.glsl.js +1 -1
  176. package/chunks/GlowComposition.glsl.js +2 -2
  177. package/chunks/OITBlend.glsl.js +3 -3
  178. package/chunks/OITBlendEmission.glsl.js +2 -2
  179. package/chunks/OITDimOpaque.glsl.js +2 -2
  180. package/chunks/SlicePlaneMaterial.glsl.js +4 -4
  181. package/chunks/bundle2.js +1 -1
  182. package/chunks/lyr3DMain.js +1 -1
  183. package/chunks/lyr3DWorker.js +1 -1
  184. package/chunks/vxlLayer.js +1 -1
  185. package/config.js +1 -1
  186. package/core/has.js +1 -1
  187. package/core/screenUtils.js +1 -1
  188. package/core/sql.d.ts +1 -1
  189. package/geometry/Extent.d.ts +0 -13
  190. package/geometry/Geometry.d.ts +10 -8
  191. package/geometry/Multipoint.d.ts +9 -0
  192. package/geometry/Multipoint.js +1 -1
  193. package/geometry/Point.d.ts +15 -71
  194. package/geometry/Polygon.js +1 -1
  195. package/geometry/support/geometryUtils.js +1 -1
  196. package/graphic/AnnotationGraphicOrigin.d.ts +34 -0
  197. package/graphic/AnnotationGraphicOrigin.js +2 -0
  198. package/graphic/DimensionFeatureGraphicOrigin.d.ts +34 -0
  199. package/graphic/DimensionFeatureGraphicOrigin.js +2 -0
  200. package/identity/IdentityManagerBase.js +1 -1
  201. package/interfaces.d.ts +11 -0
  202. package/kernel.js +1 -1
  203. package/layers/AnnotationLayer.d.ts +263 -32
  204. package/layers/AnnotationLayer.js +1 -1
  205. package/layers/DimensionFeatureLayer.d.ts +263 -32
  206. package/layers/DimensionFeatureLayer.js +1 -1
  207. package/layers/FeatureLayer.d.ts +1 -1
  208. package/layers/GeoJSONLayer.d.ts +7 -7
  209. package/layers/ParquetLayer.d.ts +22 -2
  210. package/layers/SceneLayer.d.ts +4 -2
  211. package/layers/VideoLayer.d.ts +7 -1
  212. package/layers/VideoLayer.js +1 -1
  213. package/layers/catalog/CatalogFootprintLayer.d.ts +40 -10
  214. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  215. package/layers/graphics/sources/parquet/ParquetFileInfo.js +2 -0
  216. package/layers/graphics/sources/parquet/ParquetFileStatistics.js +2 -0
  217. package/layers/graphics/sources/parquet/PortalParquetFileProvider.js +1 -1
  218. package/layers/graphics/sources/parquet/PortalParquetLayerFileProvider.js +1 -1
  219. package/layers/graphics/sources/parquet/UrlsFileProvider.js +1 -1
  220. package/layers/graphics/sources/parquet/createFileProvider.js +1 -1
  221. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  222. package/layers/mixins/FeatureLayerBase.d.ts +40 -16
  223. package/layers/mixins/TemporalLayer.d.ts +4 -2
  224. package/layers/support/AnnotationSublayer.d.ts +44 -0
  225. package/layers/support/AnnotationSublayer.js +2 -0
  226. package/layers/support/GeometryEncodingLocation.d.ts +1 -1
  227. package/layers/support/GeometryEncodingWkb.d.ts +3 -2
  228. package/layers/support/ParquetFilesData.d.ts +13 -3
  229. package/layers/support/ParquetPortalItemData.d.ts +12 -1
  230. package/layers/support/arcgisLayers.js +1 -1
  231. package/layers/support/commonProperties.js +1 -1
  232. package/layers/support/featureLayerUtils.js +1 -1
  233. package/layers/support/layerUtils.js +1 -1
  234. package/layers/support/parquetUtils.js +1 -1
  235. package/layers/support/tiles3DUtils.js +1 -1
  236. package/layers/support/timeSeriesUtils.js +1 -1
  237. package/layers/video/types.d.ts +61 -1
  238. package/libs/parquet/parquet.js +1 -1
  239. package/package.json +1 -1
  240. package/request/types.d.ts +18 -20
  241. package/rest/support/Query.d.ts +1 -0
  242. package/support/revision.js +1 -1
  243. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  244. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  245. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  246. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  247. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  248. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  249. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  250. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  251. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  252. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  253. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  254. package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
  255. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  256. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  257. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  258. package/views/2d/layers/KMLLayerView2D.js +1 -1
  259. package/views/2d/layers/MapNotesLayerView2D.js +1 -1
  260. package/views/2d/layers/MediaLayerView2D.js +1 -1
  261. package/views/2d/layers/RouteLayerView2D.js +1 -1
  262. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  263. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  264. package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
  265. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  266. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  267. package/views/2d/support/hitTestUtils.js +1 -1
  268. package/views/3d/analysis/LineOfSight/LineOfSightAggregateManipulatedObject3D.js +2 -0
  269. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  270. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  271. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  272. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  273. package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +2 -0
  274. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +1 -1
  275. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +2 -0
  276. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  277. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  278. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  279. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  280. package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +1 -1
  281. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  282. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  283. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  284. package/views/3d/interactive/editingTools/reshape/isSupportedObject.js +1 -1
  285. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
  286. package/views/3d/interactive/editingTools/visualElementUtils.js +1 -1
  287. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  288. package/views/3d/layers/FlowSubView3D.js +1 -1
  289. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  290. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  291. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  292. package/views/3d/terrain/OverlayManager.js +1 -1
  293. package/views/3d/terrain/TerrainRenderer.js +1 -1
  294. package/views/3d/webgl/RenderNode.d.ts +25 -4
  295. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  296. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  297. package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
  298. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  299. package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +1 -1
  300. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  301. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  302. package/views/3d/webgl-engine/effects/emissive/emissions.js +1 -1
  303. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  304. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  305. package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
  306. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  307. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  308. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  309. package/views/3d/webgl-engine/lib/RendererBase.js +1 -1
  310. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  311. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  312. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  313. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +2 -2
  314. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  315. package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +6 -10
  316. package/views/draw/plugins/PolygonPlugin.js +1 -1
  317. package/views/interactive/interactiveToolUtils.js +1 -1
  318. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  319. package/views/interactive/snapping/LineSnapper.js +1 -1
  320. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  321. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  322. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  323. package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
  324. package/views/interactive/snapping/SnappingManager.js +1 -1
  325. package/views/interactive/snapping/snappingUtils.js +1 -1
  326. package/views/layers/FeatureLikeLayerView.d.ts +25 -1
  327. package/views/layers/FeatureLikeLayerView.js +1 -1
  328. package/views/types.d.ts +4 -4
  329. package/views/webgl/RenderingContext.js +1 -1
  330. package/views/webgl/renderState.js +1 -1
  331. package/webdoc/support/webdocSaveUtils.js +1 -1
  332. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +10 -2
  333. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  334. package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
  335. package/widgets/BatchAttributeForm/attachmentUtils.d.ts +14 -0
  336. package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
  337. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  338. package/widgets/BatchAttributeForm/css.js +1 -1
  339. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +8 -6
  340. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  341. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  342. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
  343. package/widgets/BatchAttributeForm/inputs/support/attachmentValidationCriteriaState.d.ts +5 -0
  344. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  345. package/widgets/BatchAttributeForm/inputs/types.d.ts +8 -1
  346. package/widgets/BatchAttributeForm/interfaceUtils.js +1 -1
  347. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +1 -1
  348. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  349. package/widgets/BatchAttributeForm.d.ts +9 -1
  350. package/widgets/BatchAttributeForm.js +1 -1
  351. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  352. package/widgets/FeatureTable/Grid/Column.js +1 -1
  353. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  354. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  355. package/widgets/FeatureTable/Grid/GroupColumn.js +1 -1
  356. package/widgets/FeatureTable.js +1 -1
  357. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  358. package/widgets/Print/PrintViewModel.js +1 -1
  359. package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +7 -1
  360. package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
  361. package/widgets/support/ContingentValuesManager.js +1 -1
  362. package/assets/esri/core/workers/chunks/02aaeaa988e9e7d65a7f.js +0 -1
  363. package/assets/esri/core/workers/chunks/03354ad3d74d858173b4.js +0 -1
  364. package/assets/esri/core/workers/chunks/09a4139fc6d069ab6928.js +0 -1
  365. package/assets/esri/core/workers/chunks/0a510acf50915e00c62b.js +0 -1
  366. package/assets/esri/core/workers/chunks/0a780a883abfcdf0b900.js +0 -1
  367. package/assets/esri/core/workers/chunks/0fbf9bf52ecb4cd8293b.js +0 -1
  368. package/assets/esri/core/workers/chunks/119d352dd586f2bb61ec.js +0 -1
  369. package/assets/esri/core/workers/chunks/130784a27661de6b52a5.js +0 -1
  370. package/assets/esri/core/workers/chunks/145364aa20b4435294c2.js +0 -1
  371. package/assets/esri/core/workers/chunks/1595dc499a06b23b6a96.js +0 -1
  372. package/assets/esri/core/workers/chunks/16713986893adfbc9331.js +0 -1
  373. package/assets/esri/core/workers/chunks/179c9fe4ac83b42e5976.js +0 -1
  374. package/assets/esri/core/workers/chunks/19dcae83be0fc0aced02.js +0 -1
  375. package/assets/esri/core/workers/chunks/1c64e10f966e26af6fed.js +0 -1
  376. package/assets/esri/core/workers/chunks/1eabe746481e0b228498.js +0 -1
  377. package/assets/esri/core/workers/chunks/201007cf1a91e2b126fc.js +0 -1
  378. package/assets/esri/core/workers/chunks/20d0adc678f11981059c.js +0 -1
  379. package/assets/esri/core/workers/chunks/227eff8aa4a6f5f03bc2.js +0 -1
  380. package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +0 -1
  381. package/assets/esri/core/workers/chunks/238478cfe493fd4a6100.js +0 -1
  382. package/assets/esri/core/workers/chunks/24647e7424798dccdaf5.js +0 -1
  383. package/assets/esri/core/workers/chunks/249616ea2d90d40a8299.js +0 -1
  384. package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +0 -1
  385. package/assets/esri/core/workers/chunks/2b36a54927f5a7281da3.js +0 -1
  386. package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +0 -1
  387. package/assets/esri/core/workers/chunks/2c8584ec1c3c9fd5aba2.js +0 -1
  388. package/assets/esri/core/workers/chunks/2d374cc8c54a722a7afe.js +0 -1
  389. package/assets/esri/core/workers/chunks/2e11b4e9d66474a60064.js +0 -1
  390. package/assets/esri/core/workers/chunks/2fa080539d039c92ce08.js +0 -1
  391. package/assets/esri/core/workers/chunks/3109b05fe4fc40d4f25b.js +0 -1
  392. package/assets/esri/core/workers/chunks/31442f25d550ead58fc4.js +0 -1
  393. package/assets/esri/core/workers/chunks/32323b0e0fcecd8f640e.js +0 -1
  394. package/assets/esri/core/workers/chunks/330da3828eefd8d72d3f.js +0 -1
  395. package/assets/esri/core/workers/chunks/33e0130e6a40fc768978.js +0 -1
  396. package/assets/esri/core/workers/chunks/343ba5ea459e96ba79c6.js +0 -1
  397. package/assets/esri/core/workers/chunks/388e71e8f2ec41bfa5a9.js +0 -1
  398. package/assets/esri/core/workers/chunks/3a5c1c501808352857bd.js +0 -1
  399. package/assets/esri/core/workers/chunks/3aacaa1be5efeac23a37.js +0 -1
  400. package/assets/esri/core/workers/chunks/3b765a8cac9e92f644f2.js +0 -1
  401. package/assets/esri/core/workers/chunks/3bf6d55511cd7722eb93.js +0 -1
  402. package/assets/esri/core/workers/chunks/3e012cd3ca4451f89f59.js +0 -1
  403. package/assets/esri/core/workers/chunks/3fbb6ff940156a981983.js +0 -1
  404. package/assets/esri/core/workers/chunks/40910c69307e2d2d3f28.js +0 -1
  405. package/assets/esri/core/workers/chunks/40c4e14e7bb505ef10a3.js +0 -1
  406. package/assets/esri/core/workers/chunks/4104fa1ede36bcee9be5.js +0 -1
  407. package/assets/esri/core/workers/chunks/423a9882abd4a6dadf86.js +0 -1
  408. package/assets/esri/core/workers/chunks/428561df7ba6f02e2d80.js +0 -1
  409. package/assets/esri/core/workers/chunks/45323491f9005629c602.js +0 -1
  410. package/assets/esri/core/workers/chunks/46d0a25d33b5b328cfce.js +0 -1
  411. package/assets/esri/core/workers/chunks/47dd2bfecc5c4b5f10f0.js +0 -1
  412. package/assets/esri/core/workers/chunks/4845df00f6ebcce6ea3e.js +0 -1
  413. package/assets/esri/core/workers/chunks/48fcc10768d93e95a04e.js +0 -1
  414. package/assets/esri/core/workers/chunks/4a9dd9f8aa98882218f3.js +0 -1
  415. package/assets/esri/core/workers/chunks/4bfffdfbe6d467f143a4.js +0 -1
  416. package/assets/esri/core/workers/chunks/518046d2b95a7590a092.js +0 -1
  417. package/assets/esri/core/workers/chunks/54dad475dc806a38c287.js +0 -1
  418. package/assets/esri/core/workers/chunks/552945a73a95cd2a9f54.js +0 -1
  419. package/assets/esri/core/workers/chunks/5553279998ae07b60f5f.js +0 -1
  420. package/assets/esri/core/workers/chunks/58155f24f8ed6aca7a21.js +0 -1
  421. package/assets/esri/core/workers/chunks/5838f46d341d2fde42ee.js +0 -1
  422. package/assets/esri/core/workers/chunks/592a599f514de373dead.js +0 -1
  423. package/assets/esri/core/workers/chunks/5aba23584e0b230c75f5.js +0 -1
  424. package/assets/esri/core/workers/chunks/5f9bacee6fbf9ac1bca0.js +0 -1
  425. package/assets/esri/core/workers/chunks/62206d5d497b95fc4caf.js +0 -1
  426. package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +0 -1
  427. package/assets/esri/core/workers/chunks/62fc3c367f736c73b0d7.js +0 -1
  428. package/assets/esri/core/workers/chunks/643c33a98f2d30a92001.js +0 -1
  429. package/assets/esri/core/workers/chunks/64daa2a714e59d22bbd4.js +0 -1
  430. package/assets/esri/core/workers/chunks/65621650a53f69f7b05a.js +0 -1
  431. package/assets/esri/core/workers/chunks/6a5356ebed70e0f8f979.js +0 -1
  432. package/assets/esri/core/workers/chunks/6c9933f948efd7923aa1.js +0 -1
  433. package/assets/esri/core/workers/chunks/6cab67fc7044ee9b863b.js +0 -1
  434. package/assets/esri/core/workers/chunks/7014e73dfd3c8baa704c.js +0 -1
  435. package/assets/esri/core/workers/chunks/75839240022b280929f7.js +0 -1
  436. package/assets/esri/core/workers/chunks/76589434d573111a8fb4.js +0 -1
  437. package/assets/esri/core/workers/chunks/767ea5b455b3823afd09.js +0 -1
  438. package/assets/esri/core/workers/chunks/77859a61d059738d057f.js +0 -1
  439. package/assets/esri/core/workers/chunks/78aa5bc6af2758da20d0.js +0 -1
  440. package/assets/esri/core/workers/chunks/7b564226def99fcf79d8.js +0 -1
  441. package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +0 -1
  442. package/assets/esri/core/workers/chunks/7cadfd7444a2a05cf2fb.js +0 -1
  443. package/assets/esri/core/workers/chunks/7df94cb985db41815fad.js +0 -2
  444. package/assets/esri/core/workers/chunks/823789261ca3338f0fa8.js +0 -1
  445. package/assets/esri/core/workers/chunks/8419934bec7723b0feef.js +0 -1
  446. package/assets/esri/core/workers/chunks/84b0b6e099d949e0fea5.js +0 -1
  447. package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +0 -1
  448. package/assets/esri/core/workers/chunks/92ab5886aa2d8b9b179f.js +0 -1
  449. package/assets/esri/core/workers/chunks/9a6e62ef984e9c5babc4.js +0 -1
  450. package/assets/esri/core/workers/chunks/9b676606bf839b7aa433.js +0 -1
  451. package/assets/esri/core/workers/chunks/9d27cc631bab8aa7479e.js +0 -1
  452. package/assets/esri/core/workers/chunks/9dcfaca1f4fa8c8026ac.js +0 -1
  453. package/assets/esri/core/workers/chunks/9f23a61c60949459c14f.js +0 -30
  454. package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +0 -1
  455. package/assets/esri/core/workers/chunks/a0fa60a24e58f7a47e41.js +0 -1
  456. package/assets/esri/core/workers/chunks/a261f4c22224511fdfff.js +0 -1
  457. package/assets/esri/core/workers/chunks/a2ac139d0975085279a6.js +0 -1
  458. package/assets/esri/core/workers/chunks/a806ac351ef5da04c250.js +0 -1
  459. package/assets/esri/core/workers/chunks/ab94c9f62462d7a98f6a.js +0 -1
  460. package/assets/esri/core/workers/chunks/abdb05754c50776c3edd.js +0 -1
  461. package/assets/esri/core/workers/chunks/ad488985824fbb830ed6.js +0 -1
  462. package/assets/esri/core/workers/chunks/b0ac4b0b7aec70cfe6eb.js +0 -1
  463. package/assets/esri/core/workers/chunks/b23009d9f8eb7c20ce45.js +0 -1
  464. package/assets/esri/core/workers/chunks/bfbd1ca28ed2f263e58f.js +0 -1
  465. package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +0 -1
  466. package/assets/esri/core/workers/chunks/c44be4aaba829e6d149d.js +0 -1
  467. package/assets/esri/core/workers/chunks/ca6907e14b1dde4d5c07.js +0 -1
  468. package/assets/esri/core/workers/chunks/cbbd94c53e75efc99876.js +0 -1
  469. package/assets/esri/core/workers/chunks/ce0e627a5e1cb78adce8.js +0 -1
  470. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
  471. package/assets/esri/core/workers/chunks/d21480b078ec9680d4c4.js +0 -1
  472. package/assets/esri/core/workers/chunks/d81291dac1932350eccd.js +0 -1
  473. package/assets/esri/core/workers/chunks/da3c54e27a808f4fcc18.js +0 -1
  474. package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +0 -1
  475. package/assets/esri/core/workers/chunks/dd58286dde3b20356f84.js +0 -1
  476. package/assets/esri/core/workers/chunks/dfeddb7b17fa9eaae64c.js +0 -1
  477. package/assets/esri/core/workers/chunks/e4e0c5a45cf32973d5d5.js +0 -1
  478. package/assets/esri/core/workers/chunks/e638391801ad83fe4a68.js +0 -1
  479. package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +0 -1
  480. package/assets/esri/core/workers/chunks/e7712467db46e1385cf4.js +0 -1
  481. package/assets/esri/core/workers/chunks/ed2cb60e4f17f46fb78d.js +0 -1
  482. package/assets/esri/core/workers/chunks/edb55329305becdb204f.js +0 -1
  483. package/assets/esri/core/workers/chunks/f02fe24177e56a7e42b2.js +0 -1
  484. package/assets/esri/core/workers/chunks/f1fb2f12371f4c562079.js +0 -1
  485. package/assets/esri/core/workers/chunks/f3dfe1bd1146a6927407.js +0 -1
  486. package/assets/esri/core/workers/chunks/ff48334528d2554db4fe.js +0 -1
  487. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +0 -2
  488. /package/assets/esri/core/workers/chunks/{7df94cb985db41815fad.js.LICENSE.txt → 68f9b2da1fd08785320f.js.LICENSE.txt} +0 -0
  489. /package/assets/esri/core/workers/chunks/{875cce0be4f6c89f80f3.js.LICENSE.txt → 9629601de5e44ffe90ea.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{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};
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 c,Vec4 as u,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{noHit as C}from"../shaders/constants.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(c.ofType(u,2))],O.prototype,"isActive",void 0),t([i(c.ofType(u,8))],O.prototype,"colors",void 0),t([i(h)],O.prototype,"dotValue",void 0);class S extends n{}t([i(h)],S.prototype,"tileZoomFactor",void 0),t([i(h)],S.prototype,"pixelRatio",void 0),t([i(h)],S.prototype,"tileDotsOverArea",void 0);class _ extends a{}t([r(m)],_.prototype,"dotTexture0",void 0),t([r(m)],_.prototype,"dotTexture1",void 0);class P 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 u(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 u(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),c=i.multiply(t).divide(p),u=r.multiply(e).divide(p),m=l.multiply(c).add(n.multiply(u));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 new h(C)}}t([d],P.prototype,"blending",void 0),t([i(O)],P.prototype,"instance",void 0),t([i(S)],P.prototype,"draw",void 0),t([r(_)],P.prototype,"drawTextures",void 0),t([e(0,l(V))],P.prototype,"vertex",null),t([e(0,l(A))],P.prototype,"fragment",null);export{_ as DotDensityPolygonDrawTextures,S as DotDensityPolygonDrawUniforms,F as DotDensityPolygonFragmentInput,O as DotDensityPolygonInstanceUniforms,P as DotDensityPolygonShader,V as DotDensityPolygonVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{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};
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,equal as w,texture2D as V,clamp as f,abs as S,mix as b,distance as g,greaterThan as C,negate as M}from"../../graph/glsl.js";import{MarkerConstants as z}from"./markerConstants.js";import{FeatureVertexInput as _,AFeatureShader as R,FeatureFragmentInput as j}from"../shaders/AFeatureShader.js";import{c256ToRad as U,softEdgeRatio as N,trueHit as T,noHit as D}from"../shaders/constants.js";import{isRectHittest as F,hittestMarkerScreenRect as q,distPointTriangle as O,xyToBarycentric as k,inTriangle as A}from"../shaders/hittestUtils.js";import{MosaicInfo as P}from"../shaders/MosaicInfo.js";import{getBit as I,getBitBool as H,rgba2float as G}from"../shaders/utils.js";import{VisualVariableColor as L}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as B}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as E}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as J}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as K}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as Q}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as W}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as X,getVisualVariableColor as Y,getVisualVariableSize as Z,getVisualVariableRotation as $}from"../shaders/vvUtils.js";class tt extends _{}t([i(3,p)],tt.prototype,"color",void 0),t([i(4,p)],tt.prototype,"outlineColor",void 0),t([i(5,n)],tt.prototype,"offset",void 0),t([i(6,n)],tt.prototype,"textureUV",void 0),t([i(7,p)],tt.prototype,"sizing",void 0),t([i(8,u)],tt.prototype,"placementAngle",void 0),t([i(9,u)],tt.prototype,"sdfDecodeCoeff",void 0),t([i(10,n)],tt.prototype,"zoomRange",void 0);class et extends a{}t([i(11,n)],et.prototype,"offsetNextVertex1",void 0),t([i(12,n)],et.prototype,"offsetNextVertex2",void 0),t([i(13,n)],et.prototype,"textureUVNextVertex1",void 0),t([i(14,n)],et.prototype,"textureUVNextVertex2",void 0);class it extends j{}function ot(t,e,i,o){return e.multiply(t.x).add(i.multiply(t.y)).add(o.multiply(t.z))}function st(t){return t.multiply(t).divide(128)}class lt extends R{constructor(){super(...arguments),this.type="MarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],textureUV:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=st(t.sizing.x),o=st(t.sizing.y),s=st(t.sizing.z),l=t.placementAngle,r=I(t.bitset,z.bitset.isSDF),a=I(t.bitset,z.bitset.isMapAligned),n=I(t.bitset,z.bitset.scaleSymbolsProportionally),d=H(t.bitset,z.bitset.colorLocked),x=X(this,t.id),v=Y(this,t.id,t.color,d).multiply(x),w=this.view.displayViewScreenMat3.multiply(new m(t.pos.xy,1)),V=Z(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(U)),_=$(this,t.id),R=this._getViewRotationMatrix(a).multiply(_).multiply(M).multiply(new m(S.xy,0)).multiply(this.view.scaleFactor),j=this.clip(t.id,t.zoomRange),N=new p(w.xy.add(R.xy),j,1),T=t.textureUV.divide(this.mosaicInfo.size),D=t.outlineColor.multiply(C),F=I(t.bitset,z.bitset.overrideOutlineColor),q=t.sdfDecodeCoeff.multiply(f);return{glPosition:N,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:_,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=F(this.hittestRequest);return x(r,()=>{const{tlbr:t}=this.hittestRequest;return q(o,s,l,t)},()=>x(v(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i)))}_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(w(e.isSDF,new u(1)),this._getSDFColor(t,e),this._getSpriteColor(t,e))}_getSpriteColor(t,e){return V(this.mosaicTexture,t).multiply(e.color)}_getSDFColor(t,e){const i=V(this.mosaicTexture,t),o=new u(.5).subtract(G(i)).multiply(e.distanceToPx).multiply(N),s=f(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=S(o).subtract(a),n=f(new u(.5).subtract(p),new u(0),new u(1)),d=b(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,d=i.size.multiply(.5),y=g(n,o).subtract(d).add(r);return x(C(y,this.hittestRequest.distance),new u(D),new u(T))}_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=O(r,o,s,l);return x(C(p,a),new u(D),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=k(m.add(new n(M(y),M(y))),t,e,i),c=k(m.add(new n(0,M(y))),t,e,i),v=k(m.add(new n(y,M(y))),t,e,i),w=k(m.add(new n(M(y),0)),t,e,i),V=k(m,t,e,i),f=k(m.add(new n(y,0)),t,e,i),S=k(m.add(new n(M(y),y)),t,e,i),b=k(m.add(new n(0,y)),t,e,i),g=k(m.add(new n(y,y)),t,e,i),z=o.textureUV.divide(this.mosaicInfo.size),_=s.textureUVNextVertex1.divide(this.mosaicInfo.size),R=s.textureUVNextVertex2.divide(this.mosaicInfo.size),j={color:new p(1),outlineColor:new p(1),overrideOutlineColor:new u(1),outlineSize:r,distanceToPx:d,isSDF:a};let U=new u(0);return U=U.add(A(h).multiply(this._getColor(ot(h,z,_,R),j).a)),U=U.add(A(c).multiply(this._getColor(ot(c,z,_,R),j).a)),U=U.add(A(v).multiply(this._getColor(ot(v,z,_,R),j).a)),U=U.add(A(w).multiply(this._getColor(ot(w,z,_,R),j).a)),U=U.add(A(V).multiply(this._getColor(ot(V,z,_,R),j).a)),U=U.add(A(f).multiply(this._getColor(ot(f,z,_,R),j).a)),U=U.add(A(S).multiply(this._getColor(ot(S,z,_,R),j).a)),U=U.add(A(b).multiply(this._getColor(ot(b,z,_,R),j).a)),U=U.add(A(g).multiply(this._getColor(ot(g,z,_,R),j).a)),x(C(U,new u(.05)),new u(T),new u(D))}}t([o(L)],lt.prototype,"visualVariableColor",void 0),t([o(B)],lt.prototype,"visualVariableOpacity",void 0),t([o(E)],lt.prototype,"visualVariableRotation",void 0),t([o(J)],lt.prototype,"visualVariableSizeMinMaxValue",void 0),t([o(K)],lt.prototype,"visualVariableSizeScaleStops",void 0),t([o(Q)],lt.prototype,"visualVariableSizeStops",void 0),t([o(W)],lt.prototype,"visualVariableSizeUnitValue",void 0),t([s(P)],lt.prototype,"mosaicInfo",void 0),t([l(d)],lt.prototype,"mosaicTexture",void 0),t([e(0,r(tt)),e(1,r(et))],lt.prototype,"vertex",null),t([e(0,r(it))],lt.prototype,"fragment",null);export{it as MarkerFragmentInput,lt as MarkerShader,tt as MarkerVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as o}from"tslib";import{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};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as o,uniform as r,texture as s,input as i}from"../../GraphShaderModule.js";import{Vec4 as p,Float as l,Vec2 as n,Sampler2D as a,greaterThan as m,ifElse as u,or as h}from"../../graph/glsl.js";import{BaseHittestVertexInput as f,FeatureVertexInput as d}from"./AFeatureShader.js";import{getComplexFillVertexData as c,getComplexFillFragmentColor as x}from"./ComplexFillShader.js";import{signedToUnsignedByte as y,noHit as v,trueHit as g,packPrecision as j}from"./constants.js";import{isRectHittest as O,hittestFill as b,hittestScreenRect as w}from"./hittestUtils.js";import{getLineFragmentColor as S}from"./LineShader.js";import{LocalTileOffset as F}from"./LocalTileOffset.js";import{MosaicInfo as R}from"./MosaicInfo.js";import{AOutlineFillShader as T,getOutlineFillVertexData as q}from"./OutlineFillShader.js";import{PatternOutlineFillFragmentInput as C}from"./PatternOutlineFillShader.js";const H=1/j;class I extends d{}t([o(3,p)],I.prototype,"color",void 0),t([o(4,p)],I.prototype,"tlbr",void 0),t([o(5,l)],I.prototype,"angle",void 0),t([o(6,l)],I.prototype,"aux1",void 0),t([o(7,l)],I.prototype,"aux2",void 0),t([o(8,n)],I.prototype,"aux3",void 0),t([o(9,n)],I.prototype,"aux4",void 0),t([o(10,n)],I.prototype,"zoomRange",void 0);class L extends C{}class M extends T{constructor(){super(...arguments),this.type="ComplexOutlineFillShader"}vertex(t,e){const{aux1:o,aux2:r,aux3:s,aux4:i}=t,p={...t,width:o,height:r,offset:s,scale:i.multiply(H)},n={...t,halfWidth:o,referenceHalfWidth:r,offset:s,normal:i.subtract(y).multiply(H)},a=q(this,n),u=c(this,p),h=m(a.isOutline,new l(.5));return{...a,...u,...Object.assign({},this.maybeRunHittest(t,e,h))}}fragment(t){const{isOutline:e}=t,o=m(e,new l(.5)),r=S(t,this.antialiasingControls.blur),s=x(this,t),i=u(o,r,s),p=u(o,new l(1/255),new l(0));return this.getFragmentOutput(i,t,p)}hittest(t,e,o){const{pos0:r,pos1:s,pos2:i}=this.computeHittestTriangle(t,e,null),p=O(this.hittestRequest);return u(p,()=>{const{tlbr:t}=this.hittestRequest;return w(r,s,i,t)},()=>{const r=b(this,t,e);return u(h(o,m(r,this.hittestRequest.distance)),new l(v),new l(g))})}}t([r(R)],M.prototype,"mosaicInfo",void 0),t([s(a)],M.prototype,"mosaicTexture",void 0),t([r(F)],M.prototype,"localTileOffset",void 0),t([e(0,i(I)),e(1,i(f))],M.prototype,"vertex",null),t([e(0,i(L))],M.prototype,"fragment",null);export{M as ComplexOutlineFillShader,I as ComplexOutlineFillVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as s,define as l,input as o,UniformGroup as r}from"../../GraphShaderModule.js";import{Vec2 as p,Float as a,Vec3 as n,Vec4 as u,length as m,step as d}from"../../graph/glsl.js";import{FeatureVertexInput as y,AFeatureShader as h,FeatureFragmentInput as c}from"./AFeatureShader.js";import{getHeatmapCompressionFactor as f}from"./heatmapUtils.js";import{hittestMarker as w}from"./hittestUtils.js";class v extends y{}t([i(5,p)],v.prototype,"offset",void 0);class x extends c{}class g extends r{}t([s(a)],g.prototype,"radius",void 0),t([s(a)],g.prototype,"isFieldActive",void 0);class F extends h{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:i}=this.kernelControls,s=t.offset,l=i.multiply(this.getVVData(t.id).x).add(new a(1).subtract(i)),o=this.view.displayViewScreenMat3.multiply(new n(t.pos,1)).add(this.view.displayViewMat3.multiply(new n(s,0)).multiply(e)),r=this.clip(t.id);return{glPosition:new u(o.xy,r,1),offset:s,fieldValue:l,color:new u(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:i}=t,s=m(e),l=d(s,new a(1)),o=new a(1).subtract(s.multiply(s)),r=o.multiply(o),p=l.multiply(r).multiply(i).multiply(new a(f(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new u(p),t)}hittest(t){const{viewMat3:e,tileMat3:i}=this.view,s=e.multiply(i).multiply(new n(t.pos,1));return w(s.xy,this.kernelControls.radius,this.hittestRequest.position)}}t([l],F.prototype,"usesHalfFloatPrecision",void 0),t([s(g)],F.prototype,"kernelControls",void 0),t([e(0,o(v))],F.prototype,"vertex",null),t([e(0,o(x))],F.prototype,"fragment",null);export{x as HeatmapAccumulateFragmentInput,F as HeatmapAccumulateShader,v as HeatmapAccumulateVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as s,uniform as i,define as o,input as l,UniformGroup as r}from"../../GraphShaderModule.js";import{Vec2 as p,Float as n,Vec3 as a,Vec4 as u,length as m,step as d,ifElse as h,greaterThan as y}from"../../graph/glsl.js";import{FeatureVertexInput as c,AFeatureShader as f,FeatureFragmentInput as w}from"./AFeatureShader.js";import{trueHit as v,noHit as x}from"./constants.js";import{getHeatmapCompressionFactor as g}from"./heatmapUtils.js";import{hittestMarker as F}from"./hittestUtils.js";class j extends c{}t([s(5,p)],j.prototype,"offset",void 0);class V extends w{}class H extends r{}t([i(n)],H.prototype,"radius",void 0),t([i(n)],H.prototype,"isFieldActive",void 0);class M extends f{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:s}=this.kernelControls,i=t.offset,o=s.multiply(this.getVVData(t.id).x).add(new n(1).subtract(s)),l=this.view.displayViewScreenMat3.multiply(new a(t.pos,1)).add(this.view.displayViewMat3.multiply(new a(i,0)).multiply(e)),r=this.clip(t.id);return{glPosition:new u(l.xy,r,1),offset:i,fieldValue:o,color:new u(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:s}=t,i=m(e),o=d(i,new n(1)),l=new n(1).subtract(i.multiply(i)),r=l.multiply(l),p=o.multiply(r).multiply(s).multiply(new n(g(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new u(p),t)}hittest(t){const{viewMat3:e,tileMat3:s}=this.view,i=e.multiply(s).multiply(new a(t.pos,1)),o=F(i.xy,this.kernelControls.radius,this.hittestRequest.position);return h(y(o,this.hittestRequest.distance),new n(x),new n(v))}}t([o],M.prototype,"usesHalfFloatPrecision",void 0),t([i(H)],M.prototype,"kernelControls",void 0),t([e(0,l(j))],M.prototype,"vertex",null),t([e(0,l(V))],M.prototype,"fragment",null);export{V as HeatmapAccumulateFragmentInput,M as HeatmapAccumulateShader,j as HeatmapAccumulateVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as o}from"tslib";import{location as i,uniform as e,option as r,input as s}from"../../GraphShaderModule.js";import{Vec2 as a,Vec4 as l,Float as p,greaterThan as n,ifElse as u,Vec3 as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as c,FeatureVertexInput as d,AFeatureShader as h}from"./AFeatureShader.js";import{noHit as f,trueHit as y,bitsetTypeFillOutline as v,bitsetOutlineUsesColorVV as V}from"./constants.js";import{isRectHittest as S,failHittest as b,hittestFill as j,hittestScreenRect as x}from"./hittestUtils.js";import{AntialiasingControls as g,getLineFragmentColor as w,LineFragmentInput as z,getLineVertexData as M}from"./LineShader.js";import{getBit as O,getBitBool as R}from"./utils.js";import{VisualVariableColor as q}from"./VisualVariableColor.js";import{VisualVariableOpacity as C}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as P}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as U}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as W}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as F}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as H,getVisualVariableColor as A}from"./vvUtils.js";class G extends d{}t([i(3,a)],G.prototype,"offset",void 0),t([i(4,l)],G.prototype,"color",void 0),t([i(5,a)],G.prototype,"normal",void 0),t([i(6,p)],G.prototype,"halfWidth",void 0),t([i(7,p)],G.prototype,"referenceHalfWidth",void 0),t([i(8,a)],G.prototype,"zoomRange",void 0);class L extends z{}function T(t,o,i){const{id:e,bitset:r}=o,s=O(r,v),a=n(s,new p(.5)),c=M(t,o),d=u(a,c.halfWidth,new p(0)),h=H(t,e),f=A(t,e,o.color),y=u(a,u(R(r,V),f,o.color),f.multiply(h)),S=t.view.displayViewScreenMat3.multiply(new m(o.pos.xy,1)),b=t.clip(o.id),j=new l(S.xy,b,1),x=u(a,c.glPosition,j),g=i&&t.maybeRunHittest(o,i,a);return{isOutline:s,color:y,opacity:new p(1),halfWidth:d,normal:c.normal,glPosition:x,...g}}class k extends h{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([e(g)],k.prototype,"antialiasingControls",void 0),t([r(q)],k.prototype,"visualVariableColor",void 0),t([r(C)],k.prototype,"visualVariableOpacity",void 0),t([r(P)],k.prototype,"visualVariableSizeMinMaxValue",void 0),t([r(U)],k.prototype,"visualVariableSizeScaleStops",void 0),t([r(W)],k.prototype,"visualVariableSizeStops",void 0),t([r(F)],k.prototype,"visualVariableSizeUnitValue",void 0);class B extends k{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,o){return T(this,t,o)}fragment(t){const{color:o,isOutline:i}=t,e=n(i,new p(.5)),r=w(t,this.antialiasingControls.blur),s=u(e,r,o),a=u(e,new p(1/255),new p(0));return this.getFragmentOutput(s,t,a)}hittest(t,o,i){const{pos0:e,pos1:r,pos2:s}=this.computeHittestTriangle(t,o,null),a=S(this.hittestRequest);return u(a,()=>{const{tlbr:t}=this.hittestRequest;return x(e,r,s,t)},()=>{const e=u(i,b(this.hittestRequest),j(this,t,o));return u(n(e,this.hittestRequest.distance),new p(f),new p(y))})}}t([o(0,s(G)),o(1,s(c))],B.prototype,"vertex",null),t([o(0,s(L))],B.prototype,"fragment",null);export{k as AOutlineFillShader,L as OutlineFillFragmentInput,B as OutlineFillShader,G as OutlineFillVertexInput,T as getOutlineFillVertexData};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as i,uniform as e,option as r,input as s}from"../../GraphShaderModule.js";import{Vec2 as a,Vec4 as l,Float as p,greaterThan as n,ifElse as u,or as m,Vec3 as c}from"../../graph/glsl.js";import{BaseHittestVertexInput as d,FeatureVertexInput as h,AFeatureShader as f}from"./AFeatureShader.js";import{noHit as y,trueHit as v,bitsetTypeFillOutline as V,bitsetOutlineUsesColorVV as S}from"./constants.js";import{isRectHittest as b,hittestFill as j,hittestScreenRect as x}from"./hittestUtils.js";import{AntialiasingControls as g,getLineFragmentColor as w,LineFragmentInput as z,getLineVertexData as M}from"./LineShader.js";import{getBit as O,getBitBool as R}from"./utils.js";import{VisualVariableColor as C}from"./VisualVariableColor.js";import{VisualVariableOpacity as P}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as U}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as W}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as q}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as F}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as H,getVisualVariableColor as A}from"./vvUtils.js";class G extends h{}t([i(3,a)],G.prototype,"offset",void 0),t([i(4,l)],G.prototype,"color",void 0),t([i(5,a)],G.prototype,"normal",void 0),t([i(6,p)],G.prototype,"halfWidth",void 0),t([i(7,p)],G.prototype,"referenceHalfWidth",void 0),t([i(8,a)],G.prototype,"zoomRange",void 0);class L extends z{}function T(t,o,i){const{id:e,bitset:r}=o,s=O(r,V),a=n(s,new p(.5)),m=M(t,o),d=u(a,m.halfWidth,new p(0)),h=H(t,e),f=A(t,e,o.color),y=u(a,u(R(r,S),f,o.color),f.multiply(h)),v=t.view.displayViewScreenMat3.multiply(new c(o.pos.xy,1)),b=t.clip(o.id),j=new l(v.xy,b,1),x=u(a,m.glPosition,j),g=i&&t.maybeRunHittest(o,i,a);return{isOutline:s,color:y,opacity:new p(1),halfWidth:d,normal:m.normal,glPosition:x,...g}}class k extends f{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([e(g)],k.prototype,"antialiasingControls",void 0),t([r(C)],k.prototype,"visualVariableColor",void 0),t([r(P)],k.prototype,"visualVariableOpacity",void 0),t([r(U)],k.prototype,"visualVariableSizeMinMaxValue",void 0),t([r(W)],k.prototype,"visualVariableSizeScaleStops",void 0),t([r(q)],k.prototype,"visualVariableSizeStops",void 0),t([r(F)],k.prototype,"visualVariableSizeUnitValue",void 0);class B extends k{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,o){return T(this,t,o)}fragment(t){const{color:o,isOutline:i}=t,e=n(i,new p(.5)),r=w(t,this.antialiasingControls.blur),s=u(e,r,o),a=u(e,new p(1/255),new p(0));return this.getFragmentOutput(s,t,a)}hittest(t,o,i){const{pos0:e,pos1:r,pos2:s}=this.computeHittestTriangle(t,o,null),a=b(this.hittestRequest);return u(a,()=>{const{tlbr:t}=this.hittestRequest;return x(e,r,s,t)},()=>{const e=j(this,t,o);return u(m(i,n(e,this.hittestRequest.distance)),new p(y),new p(v))})}}t([o(0,s(G)),o(1,s(d))],B.prototype,"vertex",null),t([o(0,s(L))],B.prototype,"fragment",null);export{k as AOutlineFillShader,L as OutlineFillFragmentInput,B as OutlineFillShader,G as OutlineFillVertexInput,T as getOutlineFillVertexData};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{and as t,greaterThanEqual as n,Float as y,Vec3 as u,Vec2 as e,min as r,max as x,equal as i,or as l,greaterThan as c,ifElse as s,lessThan as a,cond as w,not as d,Mat3 as o,abs as b,step as p,lessThanEqual as m,clamp as f,length as v,distance as j,dot as z,normalize as g}from"../../graph/glsl.js";import{trueHit as h,candidateHit as M,epsilonHitTest as P}from"./constants.js";import{cross2 as q}from"./utils.js";function R(t,n){return z(t,g(n))}function k(t,n,u){const e=u.subtract(n),r=R(t.subtract(n),e),x=f(r.divide(v(e)),new y(0),new y(1));return j(t,n.add(x.multiply(u.subtract(n))))}function A(t){const n=b(t);return p(n.x.add(n.y).add(n.z),new y(1.05))}function B(t,n,e,r){const x=new o(e.x.multiply(r.y).subtract(r.x.multiply(e.y)),r.x.multiply(n.y).subtract(n.x.multiply(r.y)),n.x.multiply(e.y).subtract(e.x.multiply(n.y)),e.y.subtract(r.y),r.y.subtract(n.y),n.y.subtract(e.y),r.x.subtract(e.x),n.x.subtract(r.x),e.x.subtract(n.x)),i=n.x.multiply(e.y.subtract(r.y)),l=e.x.multiply(r.y.subtract(n.y)),c=r.x.multiply(n.y.subtract(e.y)),s=i.add(l).add(c);return new y(1).divide(s).multiply(x.multiply(new u(1,t)))}function C(t,n,u,e){return i(A(B(t,n,u,e)),new y(1))}function D(n,u,e,x){const i=e.subtract(u),l=x.subtract(u),s=q(i,l),o=t(a(s,new y(P)),c(s,new y(-P)));return w([t(d(o),C(n.xy,u,e,x)),new y(-1)],[!0,()=>{const t=k(n,u,e),y=k(n,e,x),i=k(n,x,u);return r(r(t,y),i)}])}function E(t){return t.distance.add(1)}function F(t,n,y){const{viewMat3:e,tileMat3:r}=t.view,x=e.multiply(r),i=x.multiply(new u(n.pos,1)),l=x.multiply(new u(y.nextPos1,1)),c=x.multiply(new u(y.nextPos2,1));return D(t.hittestRequest.position,i.xy,l.xy,c.xy)}function G(t,n,y){return j(t,y).subtract(n)}function H(u,e,r,x){const l=u.x,c=u.y,a=e.x,w=e.y,o=r.x,b=r.y,p=x.x,f=x.y,v=p.subtract(o),j=l.subtract(o),z=a.subtract(l),g=f.subtract(b),h=c.subtract(b),M=w.subtract(c),P=g.multiply(z).subtract(v.multiply(M)),q=v.multiply(h).subtract(g.multiply(j)).divide(P),R=z.multiply(h).subtract(M.multiply(j)).divide(P),k=t(d(i(P,new y(0))),t(t(n(q,new y(0)),m(q,new y(1))),t(n(R,new y(0)),m(R,new y(1)))));return s(k,new y(1),new y(0))}function I(y,u,e,r,x){return t(t(n(y.x,u),n(y.y,e)),t(a(y.x,r),m(y.y,x)))}function J(n,u,a,w){const d=w.xy,o=w.zw,b=new e(o.x,d.y),p=new e(d.x,o.y),m=r(d.x,o.x),f=r(d.y,o.y),v=x(d.x,o.x),j=x(d.y,o.y),z=B(new e(m,f),n,u,a),g=B(new e(v,j),n,u,a),P=B(new e(m,j),n,u,a),q=B(new e(v,f),n,u,a),R=t(i(A(z),new y(1)),t(i(A(g),new y(1)),t(i(A(P),new y(1)),i(A(q),new y(1))))),k=H(d,b,n.xy,u.xy).add(H(b,o,n.xy,u.xy)).add(H(p,o,n.xy,u.xy)).add(H(p,d,n.xy,u.xy)),C=H(d,b,n.xy,a.xy).add(H(b,o,n.xy,a.xy)).add(H(p,o,n.xy,a.xy)).add(H(p,d,n.xy,a.xy)),D=H(d,b,u.xy,a.xy).add(H(b,o,u.xy,a.xy)).add(H(p,o,u.xy,a.xy)).add(H(p,d,u.xy,a.xy)),E=I(n.xy,m,f,v,j),F=I(u.xy,m,f,v,j),G=I(a.xy,m,f,v,j),J=t(E,t(F,G)),K=l(c(k,new y(0)),l(c(C,new y(0)),c(D,new y(0))));return s(l(K,R),new y(M),s(J,new y(h),new y(0)))}function K(u){return t(n(u.tlbr.x,new y(0)),n(u.tlbr.y,new y(0)),n(u.tlbr.z,new y(0)),n(u.tlbr.w,new y(0)))}export{k as distPointSegment,D as distPointTriangle,E as failHittest,F as hittestFill,G as hittestMarker,J as hittestScreenRect,A as inTriangle,K as isRectHittest,I as pointInRect,R as projectScalar,H as segmentIntersects,B as xyToBarycentric};
2
+ import{and as t,greaterThanEqual as n,Float as e,Vec3 as y,ifElse as r,or as u,greaterThan as i,lessThan as s,cond as l,min as x,not as c,Vec2 as a,max as w,equal as o,clamp as d,length as b,distance as m,Mat3 as p,abs as f,step as g,lessThanEqual as v,dot as I,normalize as h}from"../../graph/glsl.js";import{noHit as R,trueHit as j,epsilonHitTest as z,candidateHit as C}from"./constants.js";import{cross2 as S}from"./utils.js";function T(t,n){return I(t,h(n))}function V(t,n,y){const r=y.subtract(n),u=T(t.subtract(n),r),i=d(u.divide(b(r)),new e(0),new e(1));return m(t,n.add(i.multiply(y.subtract(n))))}function M(t){const n=f(t);return g(n.x.add(n.y).add(n.z),new e(1.05))}function P(t,n,r,u){const i=new p(r.x.multiply(u.y).subtract(u.x.multiply(r.y)),u.x.multiply(n.y).subtract(n.x.multiply(u.y)),n.x.multiply(r.y).subtract(r.x.multiply(n.y)),r.y.subtract(u.y),u.y.subtract(n.y),n.y.subtract(r.y),u.x.subtract(r.x),n.x.subtract(u.x),r.x.subtract(n.x)),s=n.x.multiply(r.y.subtract(u.y)),l=r.x.multiply(u.y.subtract(n.y)),x=u.x.multiply(n.y.subtract(r.y)),c=s.add(l).add(x);return new e(1).divide(c).multiply(i.multiply(new y(1,t)))}function q(t,n,y,r){return o(M(P(t,n,y,r)),new e(1))}function k(n,y,r,u){const a=r.subtract(y),w=u.subtract(y),o=S(a,w),d=t(s(o,new e(z)),i(o,new e(-z)));return l([t(c(d),q(n.xy,y,r,u)),new e(-1)],[!0,()=>{const t=V(n,y,r),e=V(n,r,u),i=V(n,u,y);return x(x(t,e),i)}])}function A(t,n,e){const{viewMat3:r,tileMat3:u}=t.view,i=r.multiply(u),s=i.multiply(new y(n.pos,1)),l=i.multiply(new y(e.nextPos1,1)),x=i.multiply(new y(e.nextPos2,1));return k(t.hittestRequest.position,s.xy,l.xy,x.xy)}function B(t,n,e){return m(t,e).subtract(n)}function D(y,u,i,s){const l=y.x,x=y.y,a=u.x,w=u.y,d=i.x,b=i.y,m=s.x,p=s.y,f=m.subtract(d),g=l.subtract(d),I=a.subtract(l),h=p.subtract(b),R=x.subtract(b),j=w.subtract(x),z=h.multiply(I).subtract(f.multiply(j)),C=f.multiply(R).subtract(h.multiply(g)).divide(z),S=I.multiply(R).subtract(j.multiply(g)).divide(z),T=t(c(o(z,new e(0))),t(t(n(C,new e(0)),v(C,new e(1))),t(n(S,new e(0)),v(S,new e(1)))));return r(T,new e(1),new e(0))}function E(e,y,r,u,i){return t(t(n(e.x,y),n(e.y,r)),t(s(e.x,u),v(e.y,i)))}function F(n,y,r,s){const l=s.xy,c=s.zw,d=new a(c.x,l.y),b=new a(l.x,c.y),m=x(l.x,c.x),p=x(l.y,c.y),f=w(l.x,c.x),g=w(l.y,c.y),v=P(new a(m,p),n,y,r),I=P(new a(f,g),n,y,r),h=P(new a(m,g),n,y,r),R=P(new a(f,p),n,y,r),j=t(o(M(v),new e(1)),t(o(M(I),new e(1)),t(o(M(h),new e(1)),o(M(R),new e(1))))),z=D(l,d,n.xy,y.xy).add(D(d,c,n.xy,y.xy)).add(D(b,c,n.xy,y.xy)).add(D(b,l,n.xy,y.xy)),C=D(l,d,n.xy,r.xy).add(D(d,c,n.xy,r.xy)).add(D(b,c,n.xy,r.xy)).add(D(b,l,n.xy,r.xy)),S=D(l,d,y.xy,r.xy).add(D(d,c,y.xy,r.xy)).add(D(b,c,y.xy,r.xy)).add(D(b,l,y.xy,r.xy)),T=E(n.xy,m,p,f,g),V=E(y.xy,m,p,f,g),q=E(r.xy,m,p,f,g),k=t(T,t(V,q));return{hasIntersectingSegments:u(i(z,new e(0)),u(i(C,new e(0)),i(S,new e(0)))),allTriangleVerticesInside:k,triangleContainsRect:j}}function G(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:l,triangleContainsRect:x}=F(t,n,y,i);return r(s,new e(C),r(u(l,x),new e(j),new e(R)))}function H(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:l,triangleContainsRect:x}=F(t,n,y,i);return r(u(s,u(l,x)),new e(j),new e(R))}function J(y){return t(n(y.tlbr.x,new e(0)),n(y.tlbr.y,new e(0)),n(y.tlbr.z,new e(0)),n(y.tlbr.w,new e(0)))}export{V as distPointSegment,k as distPointTriangle,A as hittestFill,B as hittestMarker,G as hittestMarkerScreenRect,H as hittestScreenRect,M as inTriangle,F as intersectsScreenRect,J as isRectHittest,E as pointInRect,T as projectScalar,D as segmentIntersects,P as xyToBarycentric};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{labelPlacementOffsetPadding as i}from"../../../definitions.js";import{location as o,option as s,uniform as l,texture as r,define as a,input as n,ComputeVertexInput as p}from"../../GraphShaderModule.js";import{Vec4 as d,Vec2 as u,Float as y,Sampler2D as m,mod as c,step as h,and as f,lessThan as v,greaterThanEqual as w,Vec3 as b,Mat3 as x,ifElse as V,equal as S,greaterThan as R,Bool as g,texture2D as z,smoothstep as j,Int as A,bitRShift as C,bitAnd as O}from"../../graph/glsl.js";import{FeatureVertexInput as M,AFeatureShader as T,FeatureFragmentInput as L}from"../shaders/AFeatureShader.js";import{bitsetTextIsBackground as P,bitsetTextIsMapAligned as H,noHit as N,trueHit as U}from"../shaders/constants.js";import{isRectHittest as q,distPointTriangle as _,failHittest as k,hittestScreenRect as D}from"../shaders/hittestUtils.js";import{MosaicInfo as I}from"../shaders/MosaicInfo.js";import{getBit as B}from"../shaders/utils.js";import{VisualVariableColor as F}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as E}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as W}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as G}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as Z}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as J}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as K}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as Q,getVisualVariableRotation as X}from"../shaders/vvUtils.js";const Y=360/254;class $ extends M{}t([o(3,d)],$.prototype,"color",void 0),t([o(4,u)],$.prototype,"offset",void 0),t([o(5,u)],$.prototype,"textureUV",void 0),t([o(6,d)],$.prototype,"fontAndReferenceSize",void 0),t([o(7,d)],$.prototype,"outlineColor",void 0),t([o(8,d)],$.prototype,"haloColor",void 0),t([o(9,u)],$.prototype,"outlineAndHaloSize",void 0),t([o(10,u)],$.prototype,"zoomRange",void 0),t([o(11,y)],$.prototype,"clipAngle",void 0),t([o(12,d)],$.prototype,"referenceSymbol",void 0),t([o(15,y)],$.prototype,"visibility",void 0);class tt extends p{}t([o(13,u)],tt.prototype,"offsetNextVertex1",void 0),t([o(14,u)],tt.prototype,"offsetNextVertex2",void 0);class et extends L{}class it extends T{constructor(){super(...arguments),this.type="TextShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"]},this.textRenderPassType=0,this.isBackgroundPass=!1,this.isLabel=!1}clipLabel(t,e){const{clipAngle:i,zoomRange:o,visibility:s}=t,l=i.multiply(Y),r=c(l.subtract(this.view.rotation),new y(360));let a=new y(0);const n=this.view.currentZoom,p=o.x,d=o.y,u=new y(1).subtract(h(p,n)).multiply(2),m=new y(f(w(r,new y(90)),v(r,new y(270)))).multiply(2),b=new y(2).multiply(new y(1).subtract(h(n,d)));return a=a.add(e.multiply(u)),a=a.add(e.multiply(m)),a=a.add(b),s&&(a=a.add(s)),a}vertex(t,e){const o=B(t.bitset,P),s=new y(1).subtract(o);let l=t.fontAndReferenceSize[0];const r=t.fontAndReferenceSize[1],a=t.fontAndReferenceSize[2],n=t.fontAndReferenceSize[3];let p=l.divide(a);const m=1===this.textRenderPassType?t.outlineColor:2===this.textRenderPassType?t.haloColor:this._getVertexColor(t),c=this.view.displayViewScreenMat3.multiply(new b(t.pos,1));let h=t.offset,f=new y(1),v=x.identity(),w=new u(0);if(this.isLabel){if(!t.referenceSymbol)throw new Error("InternalError: Optional attribute 'referenceSymbol' expected for labels");const e=t.referenceSymbol,o=e.xy,s=e.z,l=this._unpackDirection(e.w),r=Q(this,t.id,s).divide(2),a=l.multiply(r.add(i));w=o.add(a),h=h.add(w)}else{f=Q(this,t.id,r).divide(r),l=l.multiply(f),p=p.multiply(f),h=h.multiply(f),v=X(this,t.id),h=v.multiply(new b(h,0)).xy}const z=B(t.bitset,H),j=this._getViewRotationMatrix(z).multiply(new b(h,0)).multiply(this.view.scaleFactor);let A=this.isLabel?this.clipLabel(t,z):this.clip(t.id,t.zoomRange);A=this.isBackgroundPass?A.add(s.multiply(2)):A.add(o.multiply(2));let C=new y(0);if(1===this.textRenderPassType){A=A.add(V(S(t.outlineAndHaloSize.x,new y(0)),new y(2),new y(0)));C=new y(t.outlineAndHaloSize.x).divide(p).divide(n)}if(2===this.textRenderPassType){const e=t.outlineAndHaloSize.x,i=new y(t.outlineAndHaloSize.y);A=A.add(V(S(i,new y(0)),new y(2),new y(0)));C=i.add(e).divide(p).divide(n)}const O=this.isLabel?R(A,new y(1)):new g(!1);return{glPosition:new d(c.xy.add(j.xy),A,1),color:m,size:p,textureUV:t.textureUV.divide(this.mosaicInfo.size),antialiasingWidth:new y(.105).multiply(a).divide(l).divide(this.view.pixelRatio),outlineDistanceOffset:C,...this.maybeRunHittest(t,e,{vvSizeAdjustment:f,vvRotation:v,labelOffset:w,labelClipped:O})}}_getViewRotationMatrix(t){const e=this.view.displayViewMat3,i=this.view.displayMat3,o=new y(1).subtract(t);return e.multiply(t).add(i.multiply(o))}fragment(t){const e=new y(2/8),i=new y(1).subtract(e),o=z(this.mosaicTexture,t.textureUV).a;let s=i.subtract(t.outlineDistanceOffset);this.highlight&&(s=s.divide(2));const l=t.antialiasingWidth,r=j(s.subtract(l),s.add(l),o);return this.getFragmentOutput(t.color.multiply(r),t)}computeHittestTriangle(t,e,{vvSizeAdjustment:i,vvRotation:o,labelOffset:s}){let l,r,a;this.isLabel?(l=new b(t.offset.add(s),0),r=new b(e.offsetNextVertex1.add(s),0),a=new b(e.offsetNextVertex2.add(s),0)):(l=o.multiply(new b(t.offset.multiply(i),0)),r=o.multiply(new b(e.offsetNextVertex1.multiply(i),0)),a=o.multiply(new b(e.offsetNextVertex2.multiply(i),0)));const{viewMat3:n,tileMat3:p}=this.view,d=n.multiply(p).multiply(new b(t.pos,1));return{pos0:d.add(p.multiply(l)).xy,pos1:d.add(p.multiply(r)).xy,pos2:d.add(p.multiply(a)).xy}}hittest(t,e,i){const{vvSizeAdjustment:o,vvRotation:s,labelOffset:l,labelClipped:r}=i,a=q(this.hittestRequest),{pos0:n,pos1:p,pos2:d}=this.computeHittestTriangle(t,e,{vvSizeAdjustment:o,vvRotation:s,labelOffset:l});return V(a,()=>{const{tlbr:t}=this.hittestRequest;return this.isLabel?V(r,k(this.hittestRequest),D(n,p,d,t)):D(n,p,d,t)},()=>{const t=_(this.hittestRequest.position,n,p,d),e=this.isLabel?V(r,k(this.hittestRequest),t):t;return V(R(e,this.hittestRequest.distance),new y(N),new y(U))})}_unpackDirection(t){const e=new A(t),i=C(e,new A(2)),o=O(e,new A(3));return new u(new y(i).subtract(1),new y(o).subtract(1))}_getVertexColor(t){let e=t.color;if(this.visualVariableColor){const i=this.getColorValue(t.id);e=this.visualVariableColor.getColor(i,t.color,new g(!1))}if(this.visualVariableOpacity){const i=this.getOpacityValue(t.id),o=this.visualVariableOpacity.getOpacity(i);e=e.multiply(o)}return e}}t([s(F)],it.prototype,"visualVariableColor",void 0),t([s(E)],it.prototype,"visualVariableOpacity",void 0),t([s(W)],it.prototype,"visualVariableRotation",void 0),t([s(G)],it.prototype,"visualVariableSizeMinMaxValue",void 0),t([s(Z)],it.prototype,"visualVariableSizeScaleStops",void 0),t([s(J)],it.prototype,"visualVariableSizeStops",void 0),t([s(K)],it.prototype,"visualVariableSizeUnitValue",void 0),t([l(I)],it.prototype,"mosaicInfo",void 0),t([r(m)],it.prototype,"mosaicTexture",void 0),t([a],it.prototype,"textRenderPassType",void 0),t([a],it.prototype,"isBackgroundPass",void 0),t([a],it.prototype,"isLabel",void 0),t([e(0,n($)),e(1,n(tt))],it.prototype,"vertex",null),t([e(0,n(et))],it.prototype,"fragment",null);export{et as TextFragmentInput,it as TextShader,$ as TextVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{labelPlacementOffsetPadding as i}from"../../../definitions.js";import{location as o,option as s,uniform as l,texture as r,define as a,input as n,ComputeVertexInput as p}from"../../GraphShaderModule.js";import{Vec4 as d,Vec2 as u,Float as y,Sampler2D as m,mod as c,step as f,and as h,lessThan as v,greaterThanEqual as w,Vec3 as b,Mat3 as x,ifElse as V,equal as S,greaterThan as g,Bool as z,texture2D as R,smoothstep as j,Int as A,bitRShift as C,bitAnd as O}from"../../graph/glsl.js";import{FeatureVertexInput as M,AFeatureShader as T,FeatureFragmentInput as L}from"../shaders/AFeatureShader.js";import{bitsetTextIsBackground as P,bitsetTextIsMapAligned as H,noHit as N,trueHit as U}from"../shaders/constants.js";import{isRectHittest as _,distPointTriangle as k,hittestScreenRect as q}from"../shaders/hittestUtils.js";import{MosaicInfo as D}from"../shaders/MosaicInfo.js";import{getBit as I}from"../shaders/utils.js";import{VisualVariableColor as B}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as F}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as E}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as W}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as G}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as Z}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as J}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as K,getVisualVariableRotation as Q}from"../shaders/vvUtils.js";const X=360/254;class Y extends M{}t([o(3,d)],Y.prototype,"color",void 0),t([o(4,u)],Y.prototype,"offset",void 0),t([o(5,u)],Y.prototype,"textureUV",void 0),t([o(6,d)],Y.prototype,"fontAndReferenceSize",void 0),t([o(7,d)],Y.prototype,"outlineColor",void 0),t([o(8,d)],Y.prototype,"haloColor",void 0),t([o(9,u)],Y.prototype,"outlineAndHaloSize",void 0),t([o(10,u)],Y.prototype,"zoomRange",void 0),t([o(11,y)],Y.prototype,"clipAngle",void 0),t([o(12,d)],Y.prototype,"referenceSymbol",void 0),t([o(15,y)],Y.prototype,"visibility",void 0);class $ extends p{}t([o(13,u)],$.prototype,"offsetNextVertex1",void 0),t([o(14,u)],$.prototype,"offsetNextVertex2",void 0);class tt extends L{}class et extends T{constructor(){super(...arguments),this.type="TextShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"]},this.textRenderPassType=0,this.isBackgroundPass=!1,this.isLabel=!1}clipLabel(t,e){const{clipAngle:i,zoomRange:o,visibility:s}=t,l=i.multiply(X),r=c(l.subtract(this.view.rotation),new y(360));let a=new y(0);const n=this.view.currentZoom,p=o.x,d=o.y,u=new y(1).subtract(f(p,n)).multiply(2),m=new y(h(w(r,new y(90)),v(r,new y(270)))).multiply(2),b=new y(2).multiply(new y(1).subtract(f(n,d)));return a=a.add(e.multiply(u)),a=a.add(e.multiply(m)),a=a.add(b),s&&(a=a.add(s)),a}vertex(t,e){const o=I(t.bitset,P),s=new y(1).subtract(o);let l=t.fontAndReferenceSize[0];const r=t.fontAndReferenceSize[1],a=t.fontAndReferenceSize[2],n=t.fontAndReferenceSize[3];let p=l.divide(a);const m=1===this.textRenderPassType?t.outlineColor:2===this.textRenderPassType?t.haloColor:this._getVertexColor(t),c=this.view.displayViewScreenMat3.multiply(new b(t.pos,1));let f=t.offset,h=new y(1),v=x.identity(),w=new u(0);if(this.isLabel){if(!t.referenceSymbol)throw new Error("InternalError: Optional attribute 'referenceSymbol' expected for labels");const e=t.referenceSymbol,o=e.xy,s=e.z,l=this._unpackDirection(e.w),r=K(this,t.id,s).divide(2),a=l.multiply(r.add(i));w=o.add(a),f=f.add(w)}else{h=K(this,t.id,r).divide(r),l=l.multiply(h),p=p.multiply(h),f=f.multiply(h),v=Q(this,t.id),f=v.multiply(new b(f,0)).xy}const R=I(t.bitset,H),j=this._getViewRotationMatrix(R).multiply(new b(f,0)).multiply(this.view.scaleFactor);let A=this.isLabel?this.clipLabel(t,R):this.clip(t.id,t.zoomRange);A=this.isBackgroundPass?A.add(s.multiply(2)):A.add(o.multiply(2));let C=new y(0);if(1===this.textRenderPassType){A=A.add(V(S(t.outlineAndHaloSize.x,new y(0)),new y(2),new y(0)));C=new y(t.outlineAndHaloSize.x).divide(p).divide(n)}if(2===this.textRenderPassType){const e=t.outlineAndHaloSize.x,i=new y(t.outlineAndHaloSize.y);A=A.add(V(S(i,new y(0)),new y(2),new y(0)));C=i.add(e).divide(p).divide(n)}const O=this.isLabel?g(A,new y(1)):new z(!1);return{glPosition:new d(c.xy.add(j.xy),A,1),color:m,size:p,textureUV:t.textureUV.divide(this.mosaicInfo.size),antialiasingWidth:new y(.105).multiply(a).divide(l).divide(this.view.pixelRatio),outlineDistanceOffset:C,...this.maybeRunHittest(t,e,{vvSizeAdjustment:h,vvRotation:v,labelOffset:w,labelClipped:O})}}_getViewRotationMatrix(t){const e=this.view.displayViewMat3,i=this.view.displayMat3,o=new y(1).subtract(t);return e.multiply(t).add(i.multiply(o))}fragment(t){const e=new y(2/8),i=new y(1).subtract(e),o=R(this.mosaicTexture,t.textureUV).a;let s=i.subtract(t.outlineDistanceOffset);this.highlight&&(s=s.divide(2));const l=t.antialiasingWidth,r=j(s.subtract(l),s.add(l),o);return this.getFragmentOutput(t.color.multiply(r),t)}computeHittestTriangle(t,e,{vvSizeAdjustment:i,vvRotation:o,labelOffset:s}){let l,r,a;this.isLabel?(l=new b(t.offset.add(s),0),r=new b(e.offsetNextVertex1.add(s),0),a=new b(e.offsetNextVertex2.add(s),0)):(l=o.multiply(new b(t.offset.multiply(i),0)),r=o.multiply(new b(e.offsetNextVertex1.multiply(i),0)),a=o.multiply(new b(e.offsetNextVertex2.multiply(i),0)));const{viewMat3:n,tileMat3:p}=this.view,d=n.multiply(p).multiply(new b(t.pos,1));return{pos0:d.add(p.multiply(l)).xy,pos1:d.add(p.multiply(r)).xy,pos2:d.add(p.multiply(a)).xy}}hittest(t,e,i){const{vvSizeAdjustment:o,vvRotation:s,labelOffset:l,labelClipped:r}=i,a=_(this.hittestRequest),{pos0:n,pos1:p,pos2:d}=this.computeHittestTriangle(t,e,{vvSizeAdjustment:o,vvRotation:s,labelOffset:l});return V(a,()=>{const{tlbr:t}=this.hittestRequest;return this.isLabel?V(r,new y(N),q(n,p,d,t)):q(n,p,d,t)},()=>{const t=k(this.hittestRequest.position,n,p,d),e=this.isLabel?r:new z(!1);return V(e,new y(N),V(g(t,this.hittestRequest.distance),new y(N),new y(U)))})}_unpackDirection(t){const e=new A(t),i=C(e,new A(2)),o=O(e,new A(3));return new u(new y(i).subtract(1),new y(o).subtract(1))}_getVertexColor(t){let e=t.color;if(this.visualVariableColor){const i=this.getColorValue(t.id);e=this.visualVariableColor.getColor(i,t.color,new z(!1))}if(this.visualVariableOpacity){const i=this.getOpacityValue(t.id),o=this.visualVariableOpacity.getOpacity(i);e=e.multiply(o)}return e}}t([s(B)],et.prototype,"visualVariableColor",void 0),t([s(F)],et.prototype,"visualVariableOpacity",void 0),t([s(E)],et.prototype,"visualVariableRotation",void 0),t([s(W)],et.prototype,"visualVariableSizeMinMaxValue",void 0),t([s(G)],et.prototype,"visualVariableSizeScaleStops",void 0),t([s(Z)],et.prototype,"visualVariableSizeStops",void 0),t([s(J)],et.prototype,"visualVariableSizeUnitValue",void 0),t([l(D)],et.prototype,"mosaicInfo",void 0),t([r(m)],et.prototype,"mosaicTexture",void 0),t([a],et.prototype,"textRenderPassType",void 0),t([a],et.prototype,"isBackgroundPass",void 0),t([a],et.prototype,"isLabel",void 0),t([e(0,n(Y)),e(1,n($))],et.prototype,"vertex",null),t([e(0,n(tt))],et.prototype,"fragment",null);export{tt as TextFragmentInput,et as TextShader,Y as TextVertexInput};