@arcgis/core 5.2.0-next.74 → 5.2.0-next.76

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/arcgisGlobal.d.ts +1 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/013c9cc198736a72f7f2.js +1 -0
  4. package/assets/esri/core/workers/chunks/0194244a3f437ad74045.js +1 -0
  5. package/assets/esri/core/workers/chunks/0502641d9a214b37ff29.js +1 -0
  6. package/assets/esri/core/workers/chunks/{4dcd4a052b40047a9230.js → 08cac27df6c216ae1995.js} +1 -1
  7. package/assets/esri/core/workers/chunks/08ec5461af74356e7570.js +1 -0
  8. package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +1 -0
  9. package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +1 -0
  10. package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +1 -0
  11. package/assets/esri/core/workers/chunks/{0e81c6d4f1c81f9b0a1b.js → 1142f8e9c80207d6bdae.js} +1 -1
  12. package/assets/esri/core/workers/chunks/16929524565a677db4dc.js +1 -0
  13. package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +1 -0
  14. package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +1 -0
  15. package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +1 -0
  16. package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +1 -0
  17. package/assets/esri/core/workers/chunks/1ef28d4457c8c943ad19.js +1 -0
  18. package/assets/esri/core/workers/chunks/20b54e7872d967f3be32.js +1 -0
  19. package/assets/esri/core/workers/chunks/{5f31b375971ab067121e.js → 21f763694a41968ac21a.js} +1 -1
  20. package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +1 -0
  21. package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +1 -0
  22. package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +1 -0
  23. package/assets/esri/core/workers/chunks/270ed3070d118edb3f37.js +1 -0
  24. package/assets/esri/core/workers/chunks/2740f755c3a322cbd477.js +1 -0
  25. package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +1 -0
  26. package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +1 -0
  27. package/assets/esri/core/workers/chunks/{31d19bb72a9e79b30070.js → 30818b5ff0ce51b25d6f.js} +1 -1
  28. package/assets/esri/core/workers/chunks/315031323e11a18154e3.js +1 -0
  29. package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +1 -0
  30. package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +1 -0
  31. package/assets/esri/core/workers/chunks/3c28e2040cb4fb716eaa.js +1 -0
  32. package/assets/esri/core/workers/chunks/{99e3aa4832ed87474ab4.js → 44857a76be2c0ac65bb9.js} +1 -1
  33. package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +1 -0
  34. package/assets/esri/core/workers/chunks/{3e2b4e734aa20a308f3e.js → 46e56fac44e0fd26ba1d.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{4491dc227c28e2ab4f8e.js → 484b251fbcbffcb58323.js} +1 -1
  36. package/assets/esri/core/workers/chunks/48e2d0bfb62e1f4f2ad9.js +1 -0
  37. package/assets/esri/core/workers/chunks/4945d6b0ca1812864185.js +1 -0
  38. package/assets/esri/core/workers/chunks/{7f2f2a92dce3f68e579b.js → 4b54444c04fbd6f42c18.js} +1 -1
  39. package/assets/esri/core/workers/chunks/4c82f5f23004f905a18f.js +1 -0
  40. package/assets/esri/core/workers/chunks/4d7a3b3aaf876da0891b.js +1 -0
  41. package/assets/esri/core/workers/chunks/4f8ce5887102971bfa34.js +2 -0
  42. package/assets/esri/core/workers/chunks/50b08415e072a49bc572.js +1 -0
  43. package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js → 532e3a59888e4cc13bd3.js} +2 -2
  44. package/assets/esri/core/workers/chunks/53eed0941a39b56cc034.js +1 -0
  45. package/assets/esri/core/workers/chunks/{1a3afee3ecd806b4aa81.js → 552d6aecc7d88d16227b.js} +1 -1
  46. package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +1 -0
  47. package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +1 -0
  48. package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +1 -0
  49. package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +1 -0
  50. package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +1 -0
  51. package/assets/esri/core/workers/chunks/5fd2aa0be03dfb494efa.js +1 -0
  52. package/assets/esri/core/workers/chunks/619aa1381296172ff47b.js +1 -0
  53. package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +1 -0
  54. package/assets/esri/core/workers/chunks/{2baa16ec8559e77c226f.js → 64a1ffc221e5b63b43fb.js} +1 -1
  55. package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +1 -0
  56. package/assets/esri/core/workers/chunks/680dd7b7638465eb33de.js +1 -0
  57. package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +1 -0
  58. package/assets/esri/core/workers/chunks/6c740c411b085d2d08c4.js +1 -0
  59. package/assets/esri/core/workers/chunks/6c982779d6d47ec99899.js +1 -0
  60. package/assets/esri/core/workers/chunks/6dddd3df31961b9fda12.js +1 -0
  61. package/assets/esri/core/workers/chunks/{1ca04ecf010e68863014.js → 6e45ecf359bce3417f5d.js} +1 -1
  62. package/assets/esri/core/workers/chunks/702b2381acf4d1f90094.js +1 -0
  63. package/assets/esri/core/workers/chunks/{a52c88e2d837b525ff6c.js → 71ee7c51d2c60a180f1e.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js → 755b2d883fba90c4e688.js} +2 -2
  65. package/assets/esri/core/workers/chunks/75fc0b1db8e2e3fd2458.js +1 -0
  66. package/assets/esri/core/workers/chunks/{9e25f715cda59c686a4c.js → 792303e4090c0c70c4ff.js} +1 -1
  67. package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +1 -0
  68. package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +1 -0
  69. package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +1 -0
  70. package/assets/esri/core/workers/chunks/83e54166ba634ec2bd89.js +1717 -0
  71. package/assets/esri/core/workers/chunks/841c81c280114412c95b.js +1 -0
  72. package/assets/esri/core/workers/chunks/87eaed6fdabd482d142e.js +1 -0
  73. package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +1 -0
  74. package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +1 -0
  75. package/assets/esri/core/workers/chunks/8a36b999cbd65dd2f16c.js +1 -0
  76. package/assets/esri/core/workers/chunks/8ae3a6ddc87bf8315583.js +1 -0
  77. package/assets/esri/core/workers/chunks/{67f54586156d1ab80257.js → 8b980c6b92cc4ea68ede.js} +1 -1
  78. package/assets/esri/core/workers/chunks/8d9a7fa14489897780d3.js +1 -0
  79. package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +1 -0
  80. package/assets/esri/core/workers/chunks/9199300ffd225a1bbef1.js +1 -0
  81. package/assets/esri/core/workers/chunks/94b9a61b4dbb83425a78.js +1 -0
  82. package/assets/esri/core/workers/chunks/98613fded899c59f34a4.js +1 -0
  83. package/assets/esri/core/workers/chunks/{9ca59077712e45ef4d56.js → 9c3e6325dc60bcaf44d7.js} +1 -1
  84. package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +1 -0
  85. package/assets/esri/core/workers/chunks/9e2e4d197a7a57c2a691.js +1 -0
  86. package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js → a014c17fc210620da738.js} +2 -2
  87. package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js → a19be304219808268039.js} +2 -2
  88. package/assets/esri/core/workers/chunks/{bd311c85437743cf7d2f.js → a4e4fa4dd1a122bbf7cd.js} +1 -1
  89. package/assets/esri/core/workers/chunks/a5240c8a47842138f31f.js +1 -0
  90. package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +1 -0
  91. package/assets/esri/core/workers/chunks/{b6d26d9738c0787acc38.js → a6a2a4a2bae0d327d7ed.js} +1 -1
  92. package/assets/esri/core/workers/chunks/a7727a2377470d586ff9.js +1 -0
  93. package/assets/esri/core/workers/chunks/a91c1d782346a9c7e1ef.js +1 -0
  94. package/assets/esri/core/workers/chunks/{6cd6d0cfd313f0475d98.js → ac59218847e5ef4c4160.js} +1 -1
  95. package/assets/esri/core/workers/chunks/ac87be2210f868524996.js +1 -0
  96. package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +1 -0
  97. package/assets/esri/core/workers/chunks/b084829a3fd709dc47a8.js +1 -0
  98. package/assets/esri/core/workers/chunks/{05f6887805d92da03122.js → b24fc7eeda580ef020d2.js} +1 -1
  99. package/assets/esri/core/workers/chunks/b37a20c5c4a4686257d4.js +1 -0
  100. package/assets/esri/core/workers/chunks/{a0a1f0bd3648738354a6.js → b4abf82b8ac974a55ae1.js} +1 -1
  101. package/assets/esri/core/workers/chunks/b950ddafba8125c84a5b.js +1 -0
  102. package/assets/esri/core/workers/chunks/b9d1bb106737a05290e1.js +1 -0
  103. package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +1 -0
  104. package/assets/esri/core/workers/chunks/bad2c7219e95750906e1.js +1 -0
  105. package/assets/esri/core/workers/chunks/bbc6b270d2032189107c.js +1 -0
  106. package/assets/esri/core/workers/chunks/{faa55265020591fd2224.js → bc0395777c5c1adb1ddb.js} +1 -1
  107. package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +1 -0
  108. package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +1 -0
  109. package/assets/esri/core/workers/chunks/{859dd86c921053bf03a1.js → c17dda6fadb8bfad0d51.js} +1 -1
  110. package/assets/esri/core/workers/chunks/c1e5ffe9a251be5a0744.js +1 -0
  111. package/assets/esri/core/workers/chunks/{94368a097e6190ce3c7a.js → c37b28f200b704ae6002.js} +1 -1
  112. package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +1 -0
  113. package/assets/esri/core/workers/chunks/{762be5d3e6aeaea33f74.js → cef02ed3942c010da2e8.js} +1 -1
  114. package/assets/esri/core/workers/chunks/cff6390b863361eaeeed.js +1 -0
  115. package/assets/esri/core/workers/chunks/d2172583ee6e481a66aa.js +1 -0
  116. package/assets/esri/core/workers/chunks/d520d407043bc52e5410.js +1 -0
  117. package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +1 -0
  118. package/assets/esri/core/workers/chunks/dbdd96e558936955acdb.js +1 -0
  119. package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +1 -0
  120. package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +1 -0
  121. package/assets/esri/core/workers/chunks/de927b1460bc384f5b87.js +1 -0
  122. package/assets/esri/core/workers/chunks/de9a1cce70581920f248.js +1 -0
  123. package/assets/esri/core/workers/chunks/dff932682d6386a861ce.js +1 -0
  124. package/assets/esri/core/workers/chunks/{2c31648a4b95275516ee.js → e227eb44cd139fe2bc1b.js} +1 -1
  125. package/assets/esri/core/workers/chunks/e4e5a171a4874c5af4a4.js +1 -0
  126. package/assets/esri/core/workers/chunks/{fdca9873914b9dbd9244.js → e59101f1d060d0a30a65.js} +1 -1
  127. package/assets/esri/core/workers/chunks/{ddb92c815d17c67a45e6.js → e5d114f2b57d2b8e2f1c.js} +1 -1
  128. package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +1 -0
  129. package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +1 -0
  130. package/assets/esri/core/workers/chunks/{3de6e54b6ed0feae1940.js → eae51e827f629ab37207.js} +1 -1
  131. package/assets/esri/core/workers/chunks/eee1fd629619021ea279.js +1 -0
  132. package/assets/esri/core/workers/chunks/ef47a5da641cb0d33fdf.js +1 -0
  133. package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +1 -0
  134. package/assets/esri/core/workers/chunks/{3dff36f6de181d9dcdc5.js → f40e4433e7608d0962a6.js} +1 -1
  135. package/assets/esri/core/workers/chunks/f4aa6e90200f61e623e5.js +1 -0
  136. package/assets/esri/core/workers/chunks/ff578f0ca68d652fece5.js +1 -0
  137. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  138. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  139. package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
  140. package/chunks/GaussianSplat.glsl.js +8 -8
  141. package/chunks/GaussianSplatShadow.glsl.js +4 -5
  142. package/chunks/HeatmapDensity.glsl.js +5 -5
  143. package/chunks/OccludedGeometryDepth.glsl.js +5 -0
  144. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  145. package/chunks/bundle2.js +1 -1
  146. package/chunks/lyr3DMain.js +1 -1
  147. package/chunks/lyr3DWorker.js +1 -1
  148. package/config.js +1 -1
  149. package/core/importUtils.js +2 -0
  150. package/geometry/geometryEngine.js +1 -1
  151. package/geometry/operators/importUtils.js +2 -0
  152. package/geometry/support/centroid.js +1 -1
  153. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  154. package/geometry/support/extentUtils.js +1 -1
  155. package/geometry/support/frustum.js +1 -1
  156. package/geometry/support/normalizeUtils.d.ts +17 -15
  157. package/geometry/support/normalizeUtils.js +1 -1
  158. package/kernel.js +1 -1
  159. package/layers/FeatureLayer.d.ts +1 -1
  160. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  161. package/layers/graphics/data/QueryEngine.js +1 -1
  162. package/layers/graphics/data/QueryEngineResult.js +1 -1
  163. package/layers/graphics/data/projectionSupport.js +1 -1
  164. package/layers/graphics/data/queryUtils.js +1 -1
  165. package/layers/graphics/hydratedFeatures.js +1 -1
  166. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  167. package/package.json +2 -2
  168. package/portal/schemas/definitions.js +1 -1
  169. package/rest/geoprocessor/utils.js +1 -1
  170. package/rest/identify.js +1 -1
  171. package/rest/imageService.js +1 -1
  172. package/rest/query/operations/query.js +1 -1
  173. package/rest/query/operations/queryAttributeBins.js +1 -1
  174. package/rest/query/operations/queryPivot.js +1 -1
  175. package/rest/query/operations/queryTopFeatures.js +1 -1
  176. package/support/revision.js +1 -1
  177. package/symbols/cim/CIMEffects.js +1 -1
  178. package/symbols/cim/animationUtils.js +1 -1
  179. package/symbols/cim/cimAnalyzer.js +1 -1
  180. package/symbols/cim/effects/EffectCircularSector.js +1 -1
  181. package/symbols/cim/utils.js +1 -1
  182. package/views/2d/engine/BitmapTile.js +1 -1
  183. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  184. package/views/2d/engine/flow/styles/Particles.js +1 -1
  185. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  186. package/views/2d/engine/imagery/RasterTile.js +1 -1
  187. package/views/2d/engine/imagery/RasterVFTile.js +1 -1
  188. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  189. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  190. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  191. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  192. package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
  193. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  194. package/views/2d/engine/webgl/Painter.js +1 -1
  195. package/views/2d/engine/webgl/RenderingDevice.js +1 -1
  196. package/views/2d/engine/webgl/TileContainer.js +1 -1
  197. package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
  198. package/views/2d/engine/webgl/animations/infos.js +1 -1
  199. package/views/2d/engine/webgl/animations/instructions.js +1 -1
  200. package/views/2d/engine/webgl/normalizedTileUtils.js +1 -1
  201. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  202. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
  203. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  204. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  205. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
  206. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  207. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  208. package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
  209. package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
  210. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  211. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
  212. package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
  213. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  214. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
  215. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  216. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
  217. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  218. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
  219. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  220. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  221. package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
  222. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  223. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  224. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  225. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  226. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
  227. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  228. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  229. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  230. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  231. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
  232. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
  233. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  234. package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
  235. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  236. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
  237. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  238. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  239. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  240. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
  241. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  242. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  243. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  244. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  245. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
  246. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  247. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/Tile.js +1 -1
  248. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
  249. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileInfo.js +1 -1
  250. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
  251. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
  252. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  253. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
  254. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +1 -1
  255. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +1 -1
  256. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
  257. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
  258. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
  259. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
  260. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
  261. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +1 -1
  262. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
  263. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  264. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  265. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  266. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  267. package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +1 -1
  268. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  269. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
  270. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  271. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
  272. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  273. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  274. package/views/2d/engine/webgl/shaderGraph/types.js +2 -0
  275. package/views/2d/engine/webgl/shaderGraph/uniformBufferUtils.js +2 -0
  276. package/views/2d/layers/MediaLayerView2D.js +1 -1
  277. package/views/2d/layers/TileLayerView2D.js +1 -1
  278. package/views/2d/layers/support/DisplayGL.js +1 -1
  279. package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
  280. package/views/2d/viewpointUtils.js +1 -1
  281. package/views/3d/environment/EnvironmentManager.js +1 -1
  282. package/views/3d/interactive/Manipulator3D.js +1 -1
  283. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  284. package/views/3d/interactive/manipulatorUtils.js +1 -1
  285. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  286. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  287. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  288. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  289. package/views/3d/layers/MediaLayerView3D.js +1 -1
  290. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  291. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  292. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  293. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  294. package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
  295. package/views/3d/support/flow/geometryUtils.js +1 -1
  296. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  297. package/views/3d/support/hitTest.js +1 -1
  298. package/views/3d/support/renderInfoUtils/line.js +1 -1
  299. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  300. package/views/3d/terrain/DrapedZ.js +2 -0
  301. package/views/3d/terrain/OverlayRenderer.js +1 -1
  302. package/views/3d/terrain/TileCompositor.js +1 -1
  303. package/views/3d/webgl/RenderCamera.js +1 -1
  304. package/views/3d/webgl/RenderNode.js +1 -1
  305. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
  306. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
  307. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatCovariance.glsl.js +8 -3
  308. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +8 -2
  309. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +2 -0
  310. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +2 -0
  311. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechnique.js +2 -0
  312. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechniqueConfiguration.js +2 -0
  313. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClear.glsl.js +2 -0
  314. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClearTechnique.js +2 -0
  315. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastMaskTechnique.js +2 -0
  316. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastRenderer.js +2 -0
  317. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualize.glsl.js +2 -0
  318. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechnique.js +2 -0
  319. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechniqueConfiguration.js +2 -0
  320. package/views/3d/webgl-engine/lib/CutFillVisualization.js +1 -1
  321. package/views/3d/webgl-engine/lib/PositionReader.js +1 -1
  322. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  323. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
  324. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFields.js +1 -1
  325. package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
  326. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  327. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  328. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  329. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  330. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  331. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  332. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +28 -21
  333. package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
  334. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  335. package/views/3d/webgl-engine/shaders/OccludedGeometryDepth.glsl.js +2 -0
  336. package/views/3d/webgl-engine/shaders/OccludedGeometryDepthTechnique.js +2 -0
  337. package/views/VideoView.js +1 -1
  338. package/views/selection/SelectionOperation.js +1 -1
  339. package/views/webgl/RenderingContext.js +1 -1
  340. package/views/webgl/UniformBufferLayout.js +1 -1
  341. package/views/webgl/UniformBufferObject.js +1 -1
  342. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +20 -6
  343. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  344. package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.d.ts +100 -0
  345. package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js +2 -0
  346. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  347. package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
  348. package/widgets/BatchAttributeForm.js +1 -1
  349. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  350. package/widgets/OrientedImageryViewer.js +1 -1
  351. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  352. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  353. package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
  354. package/widgets/support/SelectionList/GroupLayerItem.d.ts +8 -1
  355. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  356. package/widgets/support/SelectionList/LayerItem.d.ts +8 -1
  357. package/widgets/support/SelectionList/LayerItem.js +1 -1
  358. package/widgets/support/SelectionList/SelectionListViewModel.d.ts +29 -1
  359. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  360. package/widgets/support/SelectionList.js +1 -1
  361. package/widgets/support/SelectionToolbar.js +1 -1
  362. package/assets/esri/core/workers/chunks/01c92e68fb17cf2d0e08.js +0 -1
  363. package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +0 -1
  364. package/assets/esri/core/workers/chunks/0823961e5d0bdedbf8cf.js +0 -2
  365. package/assets/esri/core/workers/chunks/0aedeb837399d3f92e4a.js +0 -1
  366. package/assets/esri/core/workers/chunks/0bf644f93c180a2bc2f8.js +0 -705
  367. package/assets/esri/core/workers/chunks/0dbf31a663b5220a3136.js +0 -1
  368. package/assets/esri/core/workers/chunks/0df660dfd941cff3ea1d.js +0 -1
  369. package/assets/esri/core/workers/chunks/1119a33245138e7b3914.js +0 -1
  370. package/assets/esri/core/workers/chunks/1418c03c4ab87f7ab5f4.js +0 -1
  371. package/assets/esri/core/workers/chunks/160b204cbf5bda2a29e9.js +0 -1
  372. package/assets/esri/core/workers/chunks/193aed69de2dec4f36b6.js +0 -1
  373. package/assets/esri/core/workers/chunks/1cc063aa2ddf44bbd515.js +0 -1
  374. package/assets/esri/core/workers/chunks/264fd750691d517ab1f3.js +0 -1
  375. package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +0 -1
  376. package/assets/esri/core/workers/chunks/2a2ed7bd44010f24c2dd.js +0 -1
  377. package/assets/esri/core/workers/chunks/2bdb9b5365869081c936.js +0 -1
  378. package/assets/esri/core/workers/chunks/2d45daacec0d5ed38782.js +0 -1
  379. package/assets/esri/core/workers/chunks/2e44978ee677aa23163d.js +0 -256
  380. package/assets/esri/core/workers/chunks/2ea3ca68cfa4d34e8f3b.js +0 -1
  381. package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +0 -1
  382. package/assets/esri/core/workers/chunks/32f5112c848efec6c33b.js +0 -1
  383. package/assets/esri/core/workers/chunks/35fd2f765d2cb3f59a22.js +0 -1462
  384. package/assets/esri/core/workers/chunks/3bc2943035391b44d4cf.js +0 -29
  385. package/assets/esri/core/workers/chunks/3d6b2d5ae647e140abaf.js +0 -1
  386. package/assets/esri/core/workers/chunks/44e8cd4b3dad777ab0c9.js +0 -1
  387. package/assets/esri/core/workers/chunks/45ccca01db0027b9dc16.js +0 -1
  388. package/assets/esri/core/workers/chunks/4710f21b138a2c9a0345.js +0 -1
  389. package/assets/esri/core/workers/chunks/4abd54518e35050feb90.js +0 -1
  390. package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +0 -1
  391. package/assets/esri/core/workers/chunks/4c2794687aea172775a0.js +0 -1
  392. package/assets/esri/core/workers/chunks/4cf2b0558a4acc141429.js +0 -1
  393. package/assets/esri/core/workers/chunks/4d9bde9f66817a92ceca.js +0 -1
  394. package/assets/esri/core/workers/chunks/4e129b9f5772a06e580c.js +0 -1
  395. package/assets/esri/core/workers/chunks/509aecafbc629bee1c15.js +0 -1
  396. package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +0 -1
  397. package/assets/esri/core/workers/chunks/553be2bd69bd311477ea.js +0 -1
  398. package/assets/esri/core/workers/chunks/5600fc334d20c4f0c83d.js +0 -1
  399. package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +0 -1
  400. package/assets/esri/core/workers/chunks/5bf4ab72b9634b06cc5d.js +0 -1
  401. package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +0 -1
  402. package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +0 -1
  403. package/assets/esri/core/workers/chunks/623d5518bca227f643bd.js +0 -1
  404. package/assets/esri/core/workers/chunks/62811bca7ad2100c023c.js +0 -1
  405. package/assets/esri/core/workers/chunks/64176f7ae719289a2f79.js +0 -1
  406. package/assets/esri/core/workers/chunks/6f58cb9dffe8016397a2.js +0 -1
  407. package/assets/esri/core/workers/chunks/73f77f5a6907cb8d9a35.js +0 -1
  408. package/assets/esri/core/workers/chunks/76b573143d1a65fdbcb6.js +0 -1
  409. package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +0 -1
  410. package/assets/esri/core/workers/chunks/7b5b66ae79e0287e3ade.js +0 -1
  411. package/assets/esri/core/workers/chunks/7e373d9c98ce910db9d2.js +0 -1
  412. package/assets/esri/core/workers/chunks/7f91e45156bbe88f9a62.js +0 -1
  413. package/assets/esri/core/workers/chunks/86a4057572755b403548.js +0 -1
  414. package/assets/esri/core/workers/chunks/877594b6db08da98acd7.js +0 -1
  415. package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +0 -1
  416. package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +0 -1
  417. package/assets/esri/core/workers/chunks/903e1cd8b76eff19ebdf.js +0 -1
  418. package/assets/esri/core/workers/chunks/917c11cb40a7742d7f98.js +0 -1
  419. package/assets/esri/core/workers/chunks/91d133c04ca764d74934.js +0 -1
  420. package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +0 -1
  421. package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +0 -1
  422. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
  423. package/assets/esri/core/workers/chunks/96cec8a02ca96175d602.js +0 -1
  424. package/assets/esri/core/workers/chunks/98e6c1d035755a074d24.js +0 -1
  425. package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +0 -1
  426. package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +0 -1
  427. package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +0 -1
  428. package/assets/esri/core/workers/chunks/a101152066dd56259619.js +0 -1
  429. package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +0 -1
  430. package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +0 -1
  431. package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +0 -1
  432. package/assets/esri/core/workers/chunks/a3bf8aa81ee398da5b52.js +0 -1
  433. package/assets/esri/core/workers/chunks/a9053ad0f4e8c4705665.js +0 -1
  434. package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +0 -1
  435. package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +0 -1
  436. package/assets/esri/core/workers/chunks/b33d870cbfa238762c5e.js +0 -1
  437. package/assets/esri/core/workers/chunks/b3b53cf0a3a30164d337.js +0 -1
  438. package/assets/esri/core/workers/chunks/b599b7dadce8b8bc88f6.js +0 -1
  439. package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +0 -1
  440. package/assets/esri/core/workers/chunks/b984b808d383974ca3d8.js +0 -1
  441. package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +0 -1
  442. package/assets/esri/core/workers/chunks/bff75cc7413bf0d319db.js +0 -1
  443. package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +0 -1
  444. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
  445. package/assets/esri/core/workers/chunks/c1a4d499a30f3d80567b.js +0 -1
  446. package/assets/esri/core/workers/chunks/c25dc9073e73d6b44d88.js +0 -1
  447. package/assets/esri/core/workers/chunks/c45a5bcf26659daf02a1.js +0 -1
  448. package/assets/esri/core/workers/chunks/c46f79d5b7712adbbd1c.js +0 -1
  449. package/assets/esri/core/workers/chunks/c53b2be005721591e29b.js +0 -1
  450. package/assets/esri/core/workers/chunks/c82ab4f0908290e70ee9.js +0 -1
  451. package/assets/esri/core/workers/chunks/c866b66ba72d96453899.js +0 -1
  452. package/assets/esri/core/workers/chunks/c873383e7dae35dc1a61.js +0 -1
  453. package/assets/esri/core/workers/chunks/cc5ec6e99aa09342c704.js +0 -1
  454. package/assets/esri/core/workers/chunks/cd892c9603710d6130a9.js +0 -1
  455. package/assets/esri/core/workers/chunks/cf360767310fb45660a8.js +0 -1
  456. package/assets/esri/core/workers/chunks/d021775cf747556660a5.js +0 -1
  457. package/assets/esri/core/workers/chunks/d08f81d545930a79fb2e.js +0 -1
  458. package/assets/esri/core/workers/chunks/d607cf154218d20e4114.js +0 -1
  459. package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +0 -1
  460. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +0 -1
  461. package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +0 -1
  462. package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +0 -1
  463. package/assets/esri/core/workers/chunks/e602b91d8fdc36a92530.js +0 -1
  464. package/assets/esri/core/workers/chunks/ebfb3cdc0df15eb05d75.js +0 -1
  465. package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +0 -1
  466. package/assets/esri/core/workers/chunks/ed1de8b7406269e217b9.js +0 -29
  467. package/assets/esri/core/workers/chunks/f1727b4a32cb6f36a5e6.js +0 -1
  468. package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +0 -1
  469. package/assets/esri/core/workers/chunks/f721756a6c1593f96409.js +0 -1
  470. package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +0 -1
  471. package/chunks/geometryEngineBase.js +0 -2
  472. package/geometry/geometryAdapters/json.js +0 -2
  473. package/geometry/geometryEngineJSON.js +0 -2
  474. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +0 -2
  475. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +0 -2
  476. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +0 -2
  477. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +0 -2
  478. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +0 -2
  479. package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +0 -2
  480. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +0 -2
  481. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +0 -2
  482. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +0 -2
  483. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +0 -2
  484. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +0 -2
  485. /package/assets/esri/core/workers/chunks/{0823961e5d0bdedbf8cf.js.LICENSE.txt → 4f8ce5887102971bfa34.js.LICENSE.txt} +0 -0
  486. /package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js.LICENSE.txt → 532e3a59888e4cc13bd3.js.LICENSE.txt} +0 -0
  487. /package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js.LICENSE.txt → 755b2d883fba90c4e688.js.LICENSE.txt} +0 -0
  488. /package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js.LICENSE.txt → a014c17fc210620da738.js.LICENSE.txt} +0 -0
  489. /package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js.LICENSE.txt → a19be304219808268039.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 l}from"tslib";import{location as e,uniform as r,define as n,texture as i,input as a,VertexInput as o,UniformGroup as u,GraphShaderModule as p,FragmentOutput as c,FragmentInput as s}from"../../GraphShaderModule.js";import{Vec4 as d,texture2D as y,ifElse as m,equal as w,Float as b,clamp as g,Vec3 as f,abs as k,max as C,min as v,greaterThan as h,step as x,cond as T,lessThanEqual as j,dot as F,lessThan as M,Vec2 as O,Sampler2D as S,sqrt as B}from"../../graph/glsl.js";import{uvToClip as G,oneMinus as P,minusScalar as q,minusOne as z}from"./utils.js";class A extends o{}t([e(0,O)],A.prototype,"position",void 0);class D extends s{}class E extends u{}t([r(b)],E.prototype,"opacity",void 0),t([r(b)],E.prototype,"inFadeOpacity",void 0);class H extends p{constructor(){super(...arguments),this.type="BlendShader"}vertex(t){return{uv:t.position,glPosition:new d(G(t.position),0,1)}}fragment(t){const l=new c,e=y(this.layerTexture,t.uv),r=y(this.backbufferTexture,t.uv),n=m(w(e.a,new b(0)),e.rgb,e.rgb.divide(e.a)),i=m(w(r.a,new b(0)),r.rgb,r.rgb.divide(r.a)),a=this.config.opacity.multiply(e.a),o=r.a;switch(this.blendMode){case"destination-over":l.fragColor=new d(n.multiply(a).multiply(P(o)).add(i.multiply(o)),a.add(o).subtract(a.multiply(o)));break;case"source-in":{const t=new d(n.multiply(a).multiply(o),a.multiply(o)),e=new d(i.multiply(o),o).multiply(P(this.config.opacity)).multiply(this.config.inFadeOpacity);l.fragColor=t.add(e)}break;case"destination-in":{const t=new d(i.multiply(o).multiply(a),o.multiply(a)),e=new d(i.multiply(o),o).multiply(new d(P(this.config.opacity).multiply(this.config.inFadeOpacity)));l.fragColor=t.add(e)}break;case"source-out":l.fragColor=new d(n.multiply(a).multiply(P(o)),a.multiply(P(o)));break;case"destination-out":l.fragColor=new d(i.multiply(o).multiply(P(a)),o.multiply(P(a)));break;case"source-atop":l.fragColor=new d(n.multiply(a).multiply(o).add(i.multiply(o.multiply(P(a)))),o);break;case"destination-atop":l.fragColor=new d(n.multiply(a.multiply(P(o))).add(i.multiply(o).multiply(a)),a);break;case"xor":l.fragColor=new d(n.multiply(a.multiply(P(o))).add(i.multiply(o.multiply(P(a)))),a.multiply(P(o)).add(o.multiply(P(a))));break;case"multiply":l.fragColor=new d(n.multiply(a).multiply(i.multiply(o)).add(n.multiply(a).multiply(P(o))).add(i.multiply(o).multiply(P(a))),a.add(o.multiply(P(a))));break;case"screen":l.fragColor=new d(n.add(i).subtract(n.multiply(i)).multiply(a.multiply(o)).add(n.multiply(a).multiply(P(o))).add(i.multiply(o).multiply(P(a))),a.add(o.multiply(P(a))));break;case"overlay":{const t=new f(J(i.r,n.r),J(i.g,n.g),J(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"darken":{const t=v(n,i);l.fragColor=I(t,n,i,a,o)}break;case"lighter":l.fragColor=new d(n.multiply(a).add(i.multiply(o)),a.add(o));break;case"lighten":{const t=C(n,i);l.fragColor=I(t,n,i,a,o)}break;case"color-dodge":{const t=g(new f(K(i.r,n.r),K(i.g,n.g),K(i.b,n.b)),new f(0),new f(1));l.fragColor=I(t,n,i,a,o)}break;case"color-burn":{const t=new f(L(i.r,n.r),L(i.g,n.g),L(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"hard-light":{const t=new f(N(i.r,n.r),N(i.g,n.g),N(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"soft-light":{const t=new f(Q(i.r,n.r),Q(i.g,n.g),Q(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"difference":{const t=k(i.subtract(n));l.fragColor=I(t,n,i,a,o)}break;case"exclusion":{const t=n.add(i).subtract(new b(2).multiply(n).multiply(i));l.fragColor=I(t,n,i,a,o)}break;case"invert":l.fragColor=new d(new f(1).subtract(i).multiply(a).multiply(o).add(i.multiply(o).multiply(P(a))),o);break;case"vivid-light":{const t=new f(g(R(i.r,n.r),new b(0),new b(1)),g(R(i.g,n.g),new b(0),new b(1)),g(R(i.b,n.b),new b(0),new b(1)));l.fragColor=I(t,n,i,a,o)}break;case"hue":{const t=$(n,i,i);l.fragColor=I(t,n,i,a,o)}break;case"saturation":{const t=$(i,n,i);l.fragColor=I(t,n,i,a,o)}break;case"color":{const t=Z(n,i);l.fragColor=I(t,n,i,a,o)}break;case"luminosity":{const t=Z(i,n);l.fragColor=I(t,n,i,a,o)}break;case"plus":l.fragColor=g(new d(e.r.add(i.r),e.g.add(i.g),e.b.add(i.b),a.add(o)),new d(0),new d(1));break;case"minus":l.fragColor=new d(g(new f(i.r.subtract(e.r),i.g.subtract(e.g),i.b.subtract(e.b)),new f(0),new f(1)),o.multiply(a));break;case"average":{const t=i.add(n).divide(2);l.fragColor=I(t,n,i,a,o)}break;case"reflect":{const t=g(new f(_(i.r,n.r),_(i.g,n.g),_(i.b,n.b)),new f(0),new f(1));l.fragColor=I(t,n,i,a,o)}break;default:l.fragColor=e.multiply(this.config.opacity)}return l}}function I(t,l,e,r,n){return new d(t.multiply(r).multiply(n).add(l.multiply(r).multiply(P(n))).add(e.multiply(n).multiply(P(r))),r.add(n.multiply(P(r))))}function J(t,l){return new b(1).subtract(x(new b(.5),l)).multiply(P(new b(2).multiply(P(l).multiply(P(t))))).add(x(new b(.5),l).multiply(new b(2).multiply(l).multiply(t)))}function K(t,l){return m(w(t,new b(0)),new b(0),m(w(l,new b(1)),new b(1),v(new b(1),t.divide(new b(1).subtract(l)))))}function L(t,l){return m(w(t,new b(1)),new b(1),m(w(l,new b(0)),new b(0),P(v(new b(1),P(t).divide(l)))))}function N(t,l){return new b(1).subtract(x(new b(.5),l)).multiply(new b(2).multiply(l).multiply(t)).add(x(new b(.5),l).multiply(P(new b(2).multiply(P(l).multiply(P(t))))))}function Q(t,l){return T([j(l,new b(.5)),()=>{const e=new b(2).multiply(l),r=P(e),n=P(t);return t.subtract(r.multiply(t).multiply(n))}],[j(t,new b(.25)),()=>{const e=new b(2).multiply(l),r=z(e).multiply(t),n=new b(16).multiply(t).subtract(new b(12)).multiply(t).add(new b(3));return t.add(r.multiply(n))}],[!0,()=>{const e=new b(2).multiply(l),r=z(e),n=B(t).subtract(t);return t.add(r.multiply(n))}])}function R(t,l){const e=P(x(new b(.5),l)).multiply(L(t,new b(2).multiply(l))),r=x(new b(.5),l).multiply(K(t,new b(2).multiply(q(l,.5))));return e.add(r)}function U(t){return v(v(t.r,t.g),t.b)}function V(t){return C(C(t.r,t.g),t.b)}function W(t){return F(t,new f(.3,.59,.11))}function X(t){return V(t).subtract(U(t))}function Y(t){const l=W(t),e=U(t),r=V(t);return T([M(e,new b(0)),()=>{const r=t.subtract(l).multiply(l),n=l.subtract(e);return l.add(r.divide(n))}],[h(r,new b(1)),()=>{const e=t.subtract(l),n=P(l),i=e.multiply(n),a=r.subtract(l);return l.add(i.divide(a))}],[!0,t])}function Z(t,l){const e=W(t),r=W(l).subtract(e);return Y(t.add(new f(r)))}function $(t,l,e){const r=U(t),n=X(t),i=X(l);return Z(m(h(n,new b(0)),()=>t.subtract(r).multiply(i).divide(n),new f(0)),e)}function _(t,l){return m(w(l,new b(1)),l,()=>{const e=P(l),r=t.multiply(t).divide(e);return v(r,new b(1))})}t([n],H.prototype,"blendMode",void 0),t([r(E)],H.prototype,"config",void 0),t([i(S)],H.prototype,"layerTexture",void 0),t([i(S)],H.prototype,"backbufferTexture",void 0),t([l(0,a(A))],H.prototype,"vertex",null),t([l(0,a(D))],H.prototype,"fragment",null);export{H as BlendShader};
2
+ import{__decorate as t,__param as l}from"tslib";import{location as e,uniform as r,define as n,texture as i,input as a,VertexInput as o,UniformGroup as u,GraphShaderModule as p,FragmentOutput as c,FragmentInput as s}from"../../GraphShaderModule.js";import{Float as d,Vec4 as y,texture2D as m,ifElse as w,equal as b,clamp as g,Vec3 as f,abs as k,max as C,min as v,greaterThan as h,step as x,cond as T,lessThanEqual as j,dot as F,lessThan as M,Vec2 as O,Sampler2D as S,sqrt as B}from"../../graph/glsl.js";import{uvToClip as G,oneMinus as P,minusScalar as q,minusOne as z}from"./utils.js";class A extends o{}t([e(0,O)],A.prototype,"position",void 0);class D extends s{}class E extends u{}t([r(d)],E.prototype,"opacity",void 0),t([r(d)],E.prototype,"inFadeOpacity",void 0);class H extends p{constructor(){super(...arguments),this.type="BlendShader"}vertex(t){return{uv:t.position,glPosition:new y(G(t.position),0,1)}}fragment(t){const l=new c,e=m(this.layerTexture,t.uv),r=m(this.backbufferTexture,t.uv),n=w(b(e.a,new d(0)),e.rgb,e.rgb.divide(e.a)),i=w(b(r.a,new d(0)),r.rgb,r.rgb.divide(r.a)),a=this.config.opacity.multiply(e.a),o=r.a;switch(this.blendMode){case"destination-over":l.fragColor=new y(n.multiply(a).multiply(P(o)).add(i.multiply(o)),a.add(o).subtract(a.multiply(o)));break;case"source-in":{const t=new y(n.multiply(a).multiply(o),a.multiply(o)),e=new y(i.multiply(o),o).multiply(P(this.config.opacity)).multiply(this.config.inFadeOpacity);l.fragColor=t.add(e)}break;case"destination-in":{const t=new y(i.multiply(o).multiply(a),o.multiply(a)),e=new y(i.multiply(o),o).multiply(new y(P(this.config.opacity).multiply(this.config.inFadeOpacity)));l.fragColor=t.add(e)}break;case"source-out":l.fragColor=new y(n.multiply(a).multiply(P(o)),a.multiply(P(o)));break;case"destination-out":l.fragColor=new y(i.multiply(o).multiply(P(a)),o.multiply(P(a)));break;case"source-atop":l.fragColor=new y(n.multiply(a).multiply(o).add(i.multiply(o.multiply(P(a)))),o);break;case"destination-atop":l.fragColor=new y(n.multiply(a.multiply(P(o))).add(i.multiply(o).multiply(a)),a);break;case"xor":l.fragColor=new y(n.multiply(a.multiply(P(o))).add(i.multiply(o.multiply(P(a)))),a.multiply(P(o)).add(o.multiply(P(a))));break;case"multiply":l.fragColor=new y(n.multiply(a).multiply(i.multiply(o)).add(n.multiply(a).multiply(P(o))).add(i.multiply(o).multiply(P(a))),a.add(o.multiply(P(a))));break;case"screen":l.fragColor=new y(n.add(i).subtract(n.multiply(i)).multiply(a.multiply(o)).add(n.multiply(a).multiply(P(o))).add(i.multiply(o).multiply(P(a))),a.add(o.multiply(P(a))));break;case"overlay":{const t=new f(J(i.r,n.r),J(i.g,n.g),J(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"darken":{const t=v(n,i);l.fragColor=I(t,n,i,a,o)}break;case"lighter":l.fragColor=new y(n.multiply(a).add(i.multiply(o)),a.add(o));break;case"lighten":{const t=C(n,i);l.fragColor=I(t,n,i,a,o)}break;case"color-dodge":{const t=g(new f(K(i.r,n.r),K(i.g,n.g),K(i.b,n.b)),new f(0),new f(1));l.fragColor=I(t,n,i,a,o)}break;case"color-burn":{const t=new f(L(i.r,n.r),L(i.g,n.g),L(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"hard-light":{const t=new f(N(i.r,n.r),N(i.g,n.g),N(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"soft-light":{const t=new f(Q(i.r,n.r),Q(i.g,n.g),Q(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"difference":{const t=k(i.subtract(n));l.fragColor=I(t,n,i,a,o)}break;case"exclusion":{const t=n.add(i).subtract(new d(2).multiply(n).multiply(i));l.fragColor=I(t,n,i,a,o)}break;case"invert":l.fragColor=new y(new f(1).subtract(i).multiply(a).multiply(o).add(i.multiply(o).multiply(P(a))),o);break;case"vivid-light":{const t=new f(g(R(i.r,n.r),new d(0),new d(1)),g(R(i.g,n.g),new d(0),new d(1)),g(R(i.b,n.b),new d(0),new d(1)));l.fragColor=I(t,n,i,a,o)}break;case"hue":{const t=$(n,i,i);l.fragColor=I(t,n,i,a,o)}break;case"saturation":{const t=$(i,n,i);l.fragColor=I(t,n,i,a,o)}break;case"color":{const t=Z(n,i);l.fragColor=I(t,n,i,a,o)}break;case"luminosity":{const t=Z(i,n);l.fragColor=I(t,n,i,a,o)}break;case"plus":l.fragColor=g(new y(e.r.add(i.r),e.g.add(i.g),e.b.add(i.b),a.add(o)),new y(0),new y(1));break;case"minus":l.fragColor=new y(g(new f(i.r.subtract(e.r),i.g.subtract(e.g),i.b.subtract(e.b)),new f(0),new f(1)),o.multiply(a));break;case"average":{const t=i.add(n).divide(2);l.fragColor=I(t,n,i,a,o)}break;case"reflect":{const t=g(new f(_(i.r,n.r),_(i.g,n.g),_(i.b,n.b)),new f(0),new f(1));l.fragColor=I(t,n,i,a,o)}break;default:l.fragColor=e.multiply(this.config.opacity)}return l}}function I(t,l,e,r,n){return new y(t.multiply(r).multiply(n).add(l.multiply(r).multiply(P(n))).add(e.multiply(n).multiply(P(r))),r.add(n.multiply(P(r))))}function J(t,l){return new d(1).subtract(x(new d(.5),l)).multiply(P(new d(2).multiply(P(l).multiply(P(t))))).add(x(new d(.5),l).multiply(new d(2).multiply(l).multiply(t)))}function K(t,l){return w(b(t,new d(0)),new d(0),w(b(l,new d(1)),new d(1),v(new d(1),t.divide(new d(1).subtract(l)))))}function L(t,l){return w(b(t,new d(1)),new d(1),w(b(l,new d(0)),new d(0),P(v(new d(1),P(t).divide(l)))))}function N(t,l){return new d(1).subtract(x(new d(.5),l)).multiply(new d(2).multiply(l).multiply(t)).add(x(new d(.5),l).multiply(P(new d(2).multiply(P(l).multiply(P(t))))))}function Q(t,l){return T([j(l,new d(.5)),()=>{const e=new d(2).multiply(l),r=P(e),n=P(t);return t.subtract(r.multiply(t).multiply(n))}],[j(t,new d(.25)),()=>{const e=new d(2).multiply(l),r=z(e).multiply(t),n=new d(16).multiply(t).subtract(new d(12)).multiply(t).add(new d(3));return t.add(r.multiply(n))}],[!0,()=>{const e=new d(2).multiply(l),r=z(e),n=B(t).subtract(t);return t.add(r.multiply(n))}])}function R(t,l){const e=P(x(new d(.5),l)).multiply(L(t,new d(2).multiply(l))),r=x(new d(.5),l).multiply(K(t,new d(2).multiply(q(l,.5))));return e.add(r)}function U(t){return v(v(t.r,t.g),t.b)}function V(t){return C(C(t.r,t.g),t.b)}function W(t){return F(t,new f(.3,.59,.11))}function X(t){return V(t).subtract(U(t))}function Y(t){const l=W(t),e=U(t),r=V(t);return T([M(e,new d(0)),()=>{const r=t.subtract(l).multiply(l),n=l.subtract(e);return l.add(r.divide(n))}],[h(r,new d(1)),()=>{const e=t.subtract(l),n=P(l),i=e.multiply(n),a=r.subtract(l);return l.add(i.divide(a))}],[!0,t])}function Z(t,l){const e=W(t),r=W(l).subtract(e);return Y(t.add(new f(r)))}function $(t,l,e){const r=U(t),n=X(t),i=X(l);return Z(w(h(n,new d(0)),()=>t.subtract(r).multiply(i).divide(n),new f(0)),e)}function _(t,l){return w(b(l,new d(1)),l,()=>{const e=P(l),r=t.multiply(t).divide(e);return v(r,new d(1))})}t([n],H.prototype,"blendMode",void 0),t([r(E)],H.prototype,"config",void 0),t([i(S)],H.prototype,"layerTexture",void 0),t([i(S)],H.prototype,"backbufferTexture",void 0),t([l(0,a(A))],H.prototype,"vertex",null),t([l(0,a(D))],H.prototype,"fragment",null);export{H as BlendShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{location as o,uniform as i,texture as r,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as p,Vec2 as n,Sampler2D as a,sin as d,cos as m,Vec3 as u,ifElse as f,mod as y,mix as c,texture2D as v,greaterThan as x,equal as h,float as g,mat3 as b,negate as w,vec2 as j}from"../../graph/glsl.js";import{BaseHittestVertexInput as O,FeatureFragmentInput as T}from"./AFeatureShader.js";import{c256ToRad as C,bitsetGenericConsiderAlphaOnly as F,bitsetFillRandomPatternOffset as A}from"./constants.js";import{FillVertexInput as S,FillShader as I}from"./FillShader.js";import{LocalTileOffset as z}from"./LocalTileOffset.js";import{MosaicInfo as M}from"./MosaicInfo.js";import{getBit as V,isNan as q,rgba2float as G,rand as L}from"./utils.js";class P extends S{}t([o(5,s)],P.prototype,"tlbr",void 0),t([o(6,p)],P.prototype,"width",void 0),t([o(7,p)],P.prototype,"height",void 0),t([o(8,n)],P.prototype,"offset",void 0),t([o(9,n)],P.prototype,"scale",void 0),t([o(10,p)],P.prototype,"angle",void 0);class R extends T{}function Z(t,e,o,i,r){const l=h(V(r,A),g(1)),p=G(new s(t,0));return f(l,b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,L(j(p,0)),L(j(0,p)),1),b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,0,0,1))}function k(t,e){const o=t.tile.getRequiredZoomFactor(t.tileContainer),i=new n(e.width,e.height),r=i.multiply(e.scale).multiply(o),l=e.angle.multiply(C),s=d(l),a=m(l),y=Z(e.id,r,s,a,e.bitset),c=t.localTileOffset.getPatternOffsetAtTileOrigin(i,s,a),v=o.multiply(e.scale).multiply(e.offset.subtract(c)).divide(r),x=new u(e.pos,1),h=y.multiply(x).xy.subtract(v),g=e.tlbr.divide(t.mosaicInfo.size.xyxy);let b=V(e.bitset,F);return null!=t.visualVariableColor&&(b=f(q(t.getColorValue(e.id)),new p(0),b)),{tileTextureCoord:h,tlbr:g,sampleAlphaOnly:b}}function B(t,e){const o=y(e.tileTextureCoord,new p(1)),i=c(e.tlbr.xy,e.tlbr.zw,o);let r=v(t.mosaicTexture,i);return r=f(x(e.sampleAlphaOnly,new p(.5)),r.aaaa,r),e.color.multiply(r)}class D extends I{constructor(){super(...arguments),this.type="ComplexFillShader"}vertex(t,e){return{...super.vertex(t,e),...k(this,t)}}fragment(t){const e=B(this,t);return this.getFragmentOutput(e,t,new p(0))}}t([i(M)],D.prototype,"mosaicInfo",void 0),t([r(a)],D.prototype,"mosaicTexture",void 0),t([i(z)],D.prototype,"localTileOffset",void 0),t([e(0,l(P)),e(1,l(O))],D.prototype,"vertex",null),t([e(0,l(R))],D.prototype,"fragment",null);export{R as ComplexFillFragmentInput,D as ComplexFillShader,P as ComplexFillVertexInput,B as getComplexFillFragmentColor,k as getComplexFillVertexData,Z as getPatternMatrix};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as o,uniform as i,texture as r,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as p,Vec2 as d,Sampler2D as n,sin as a,cos as m,Vec3 as u,ifElse as f,mod as y,mix as c,texture2D as v,greaterThan as x,equal as h,float as g,mat3 as b,negate as w,vec2 as j}from"../../graph/glsl.js";import{BaseHittestVertexInput as O,FeatureFragmentInput as T}from"./AFeatureShader.js";import{c256ToRad as C,bitsetGenericConsiderAlphaOnly as F,bitsetFillRandomPatternOffset as A}from"./constants.js";import{FillVertexInput as I,FillShader as S}from"./FillShader.js";import{LocalTileOffset as z}from"./LocalTileOffset.js";import{MosaicInfo as M}from"./MosaicInfo.js";import{getBit as V,isNan as q,rgba2float as G,rand as L}from"./utils.js";class P extends I{}t([o(5,s)],P.prototype,"tlbr",void 0),t([o(6,p)],P.prototype,"width",void 0),t([o(7,p)],P.prototype,"height",void 0),t([o(8,d)],P.prototype,"offset",void 0),t([o(9,d)],P.prototype,"scale",void 0),t([o(10,p)],P.prototype,"angle",void 0);class R extends T{}function Z(t,e,o,i,r){const l=h(V(r,A),g(1)),p=G(new s(t,0));return f(l,b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,L(j(p,0)),L(j(0,p)),1),b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,0,0,1))}function k(t,e){const o=t.tile.getRequiredZoomFactor(t.tileInfo),i=new d(e.width,e.height),r=i.multiply(e.scale).multiply(o),l=e.angle.multiply(C),s=a(l),n=m(l),y=Z(e.id,r,s,n,e.bitset),c=t.localTileOffset.getPatternOffsetAtTileOrigin(i,s,n),v=o.multiply(e.scale).multiply(e.offset.subtract(c)).divide(r),x=new u(e.pos,1),h=y.multiply(x).xy.subtract(v),g=e.tlbr.divide(t.mosaicInfo.size.xyxy);let b=V(e.bitset,F);return null!=t.visualVariableColor&&(b=f(q(t.getColorValue(e.id)),new p(0),b)),{tileTextureCoord:h,tlbr:g,sampleAlphaOnly:b}}function B(t,e){const o=y(e.tileTextureCoord,new p(1)),i=c(e.tlbr.xy,e.tlbr.zw,o);let r=v(t.mosaicTexture,i);return r=f(x(e.sampleAlphaOnly,new p(.5)),r.aaaa,r),e.color.multiply(r)}class D extends S{constructor(){super(...arguments),this.type="ComplexFillShader"}vertex(t,e){return{...super.vertex(t,e),...k(this,t)}}fragment(t){const e=B(this,t);return this.getFragmentOutput(e,t,new p(0))}}t([i(M)],D.prototype,"mosaicInfo",void 0),t([r(n)],D.prototype,"mosaicTexture",void 0),t([i(z)],D.prototype,"localTileOffset",void 0),t([e(0,l(P)),e(1,l(O))],D.prototype,"vertex",null),t([e(0,l(R))],D.prototype,"fragment",null);export{R as ComplexFillFragmentInput,D as ComplexFillShader,P as ComplexFillVertexInput,B as getComplexFillFragmentColor,k as getComplexFillVertexData,Z as getPatternMatrix};
@@ -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 o,option as i,input as s}from"../../GraphShaderModule.js";import{Vec4 as r,Vec2 as l,Vec3 as p,Float as n,ifElse as a,greaterThan as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as u,FeatureFragmentInput as h,FeatureVertexInput as c,AFeatureShader as y}from"./AFeatureShader.js";import{noHit as d,trueHit as f}from"./constants.js";import{isRectHittest as g,hittestFill as v,hittestScreenRect as x}from"./hittestUtils.js";import{VisualVariableColor as b}from"./VisualVariableColor.js";import{VisualVariableOpacity as j}from"./VisualVariableOpacity.js";import{getVisualVariableOpacity as w,getVisualVariableColor as V}from"./vvUtils.js";class R extends c{}t([o(3,r)],R.prototype,"color",void 0),t([o(4,l)],R.prototype,"zoomRange",void 0);class S extends y{constructor(){super(...arguments),this.type="FillShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,e){const o=w(this,t.id),i=V(this,t.id,t.color).multiply(o),s=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new p(t.pos.xy,1)),l=this.clip(t.id,t.zoomRange);return{glPosition:new r(s.xy,l,1),color:i,...this.maybeRunHittest(t,e,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new n(0))}hittest(t,e){const{pos0:o,pos1:i,pos2:s}=this.computeHittestTriangle(t,e,null),r=g(this.hittestRequest);return a(r,()=>{const{tlbr:t}=this.hittestRequest;return x(o,i,s,t)},()=>{const o=v(this,t,e);return a(m(o,this.hittestRequest.distance),new n(d),new n(f))})}}t([i(b)],S.prototype,"visualVariableColor",void 0),t([i(j)],S.prototype,"visualVariableOpacity",void 0),t([e(0,s(R)),e(1,s(u))],S.prototype,"vertex",null),t([e(0,s(h))],S.prototype,"fragment",null);export{S as FillShader,R as FillVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as o,option as s,input as i}from"../../GraphShaderModule.js";import{Vec4 as r,Vec2 as l,Vec3 as p,Float as n,ifElse as a,greaterThan as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as u,FeatureFragmentInput as h,FeatureVertexInput as c,AFeatureShader as y}from"./AFeatureShader.js";import{noHit as d,trueHit as f}from"./constants.js";import{isRectHittest as g,hittestFill as v,hittestScreenRect as x}from"./hittestUtils.js";import{VisualVariableColor as b}from"./VisualVariableColor.js";import{VisualVariableOpacity as j}from"./VisualVariableOpacity.js";import{getVisualVariableOpacity as w,getVisualVariableColor as V}from"./vvUtils.js";class R extends c{}t([o(3,r)],R.prototype,"color",void 0),t([o(4,l)],R.prototype,"zoomRange",void 0);class S extends y{constructor(){super(...arguments),this.type="FillShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,e){const o=w(this,t.id),s=V(this,t.id,t.color).multiply(o),i=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new p(t.pos.xy,1)),l=this.clip(t.id,t.zoomRange);return{glPosition:new r(i.xy,l,1),color:s,...this.maybeRunHittest(t,e,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new n(0))}hittest(t,e){const{pos0:o,pos1:s,pos2:i}=this.computeHittestTriangle(t,e,null),r=g(this.hittestRequest);return a(r,()=>{const{tlbr:t}=this.hittestRequest;return x(o,s,i,t)},()=>{const o=v(this,t,e);return a(m(o,this.hittestRequest.distance),new n(d),new n(f))})}}t([s(b)],S.prototype,"visualVariableColor",void 0),t([s(j)],S.prototype,"visualVariableOpacity",void 0),t([e(0,i(R)),e(1,i(u))],S.prototype,"vertex",null),t([e(0,i(h))],S.prototype,"fragment",null);export{S as FillShader,R as FillVertexInput};
@@ -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 r,texture as o,input as s}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as n,Float as d,Sampler2D as l,ifElse as p,greaterThan as m,cond as c,equal as u,sqrt as v,dot as h,abs as x,max as g,clamp as f,mix as y,texture2D as w}from"../../graph/glsl.js";import{bitset as b,gradientFillMethods as S}from"../fill/gradientFillConstants.js";import{BaseHittestVertexInput as j,FeatureFragmentInput as z}from"./AFeatureShader.js";import{FillVertexInput as F,FillShader as M}from"./FillShader.js";import{MosaicInfo as D}from"./MosaicInfo.js";import{getBitBool as G,getBit as P,oneMinus as I}from"./utils.js";class A extends F{}t([i(5,a)],A.prototype,"tlbr",void 0),t([i(6,n)],A.prototype,"relativePosition",void 0),t([i(7,d)],A.prototype,"gradientMethod",void 0),t([i(8,n)],A.prototype,"relativeGradientSize",void 0);class C extends z{}class T extends M{constructor(){super(...arguments),this.type="GradientFillShader"}vertex(t,e){const{tlbr:i,relativePosition:r,gradientMethod:o,relativeGradientSize:s}=t,a=p(G(t.bitset,b.isAbsolute),this.tile.getDisplayZoomFactor(this.tileContainer),new d(1));return{...super.vertex(t,e),tlbr:i,relativePosition:r,gradientMethod:o,gradientSize:s.multiply(a),isDiscrete:P(t.bitset,b.isDiscrete)}}fragment(t){const{tlbr:e,relativePosition:i,gradientMethod:r,gradientSize:o,isDiscrete:s}=t,a=p(m(s,new d(.5)),o.subtract(1),new n(0)),l=c([u(r,new d(S.rectangular)),()=>{const t=x(i).add(a).divide(o);return I(g(t.x,t.y))}],[u(r,new d(S.circular)),I(v(h(i,i)).add(a.x).divide(o.x))],[!0,I(i.x.add(a.x).divide(o.x))]),b=new n(f(l,new d(0),new d(1)),.5),j=y(e.xy,e.zw,b).divide(this.mosaicInfo.size),z=w(this.mosaicTexture,j),F=t.color.a;return this.getFragmentOutput(z.multiply(F),t,new d(0))}}t([r(D)],T.prototype,"mosaicInfo",void 0),t([o(l)],T.prototype,"mosaicTexture",void 0),t([e(0,s(A)),e(1,s(j))],T.prototype,"vertex",null),t([e(0,s(C))],T.prototype,"fragment",null);export{C as GradientFillFragmentInput,T as GradientFillShader,A as GradientFillVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as r,texture as o,input as s}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as n,Float as d,Sampler2D as l,ifElse as p,greaterThan as m,cond as c,equal as u,sqrt as v,dot as h,abs as x,max as f,clamp as g,mix as y,texture2D as w}from"../../graph/glsl.js";import{bitset as b,gradientFillMethods as S}from"../fill/gradientFillConstants.js";import{BaseHittestVertexInput as j,FeatureFragmentInput as z}from"./AFeatureShader.js";import{FillVertexInput as F,FillShader as M}from"./FillShader.js";import{MosaicInfo as D}from"./MosaicInfo.js";import{getBitBool as G,getBit as I,oneMinus as P}from"./utils.js";class A extends F{}t([i(5,a)],A.prototype,"tlbr",void 0),t([i(6,n)],A.prototype,"relativePosition",void 0),t([i(7,d)],A.prototype,"gradientMethod",void 0),t([i(8,n)],A.prototype,"relativeGradientSize",void 0);class T extends z{}class C extends M{constructor(){super(...arguments),this.type="GradientFillShader"}vertex(t,e){const{tlbr:i,relativePosition:r,gradientMethod:o,relativeGradientSize:s}=t,a=p(G(t.bitset,b.isAbsolute),this.tile.getDisplayZoomFactor(this.tileInfo),new d(1));return{...super.vertex(t,e),tlbr:i,relativePosition:r,gradientMethod:o,gradientSize:s.multiply(a),isDiscrete:I(t.bitset,b.isDiscrete)}}fragment(t){const{tlbr:e,relativePosition:i,gradientMethod:r,gradientSize:o,isDiscrete:s}=t,a=p(m(s,new d(.5)),o.subtract(1),new n(0)),l=c([u(r,new d(S.rectangular)),()=>{const t=x(i).add(a).divide(o);return P(f(t.x,t.y))}],[u(r,new d(S.circular)),P(v(h(i,i)).add(a.x).divide(o.x))],[!0,P(i.x.add(a.x).divide(o.x))]),b=new n(g(l,new d(0),new d(1)),.5),j=y(e.xy,e.zw,b).divide(this.mosaicInfo.size),z=w(this.mosaicTexture,j),F=t.color.a;return this.getFragmentOutput(z.multiply(F),t,new d(0))}}t([r(D)],C.prototype,"mosaicInfo",void 0),t([o(l)],C.prototype,"mosaicTexture",void 0),t([e(0,s(A)),e(1,s(j))],C.prototype,"vertex",null),t([e(0,s(T))],C.prototype,"fragment",null);export{T as GradientFillFragmentInput,C as GradientFillShader,A as GradientFillVertexInput};
@@ -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 has from"../../../../../../../core/has.js";import{location as i,uniform as o,texture as r,input as s,UniformGroup as n}from"../../GraphShaderModule.js";import{Float as a,Vec2 as l,Vec4 as d,Sampler2D as p,ifElse as m,greaterThan as c,dot as u,min as h,length as y,mix as g,clamp as v,texture2D as w,step as f}from"../../graph/glsl.js";import{bitset as b}from"../line/gradientStrokeConstants.js";import{BaseHittestVertexInput as x}from"./AFeatureShader.js";import{LineVertexInput as S,LineShader as D,getLineVertexData as L,getLineAntialiasing as j,LineFragmentInput as A}from"./LineShader.js";import{MosaicInfo as z}from"./MosaicInfo.js";import{getBit as C,getBitBool as F,oneMinus as G}from"./utils.js";function P(t){return f(new a(0),t).multiply(2).subtract(1)}class I extends S{}t([i(9,a)],I.prototype,"accumulatedDistance",void 0),t([i(10,a)],I.prototype,"totalLength",void 0),t([i(11,a)],I.prototype,"gradientSize",void 0),t([i(12,l)],I.prototype,"segmentDirection",void 0),t([i(13,d)],I.prototype,"tlbr",void 0);class k extends A{}class q extends n{}t([o(a)],q.prototype,"isColorPass",void 0);class M extends D{constructor(){super(...arguments),this.type="GradientStrokeShader"}vertex(t,e){const{totalLength:i,gradientSize:o,segmentDirection:r,tlbr:s}=t,n=L(this,t),l=C(t.bitset,b.isAlongLine),d=i.divide(this.tile.getDisplayZoomFactor(this.tileContainer)),p=m(F(t.bitset,b.isAbsoluteSize),()=>{const t=m(c(l,new a(.5)),d,n.halfWidth);return o.divide(t)},o),h=t.accumulatedDistance.add(u(r,n.scaledOffset).divide(d)),y=s.divide(this.mosaicInfo.size.xyxy);return{...n,tlbr:y,relativePositionAlongLine:h,relativeGradientSize:p,isAlongLine:C(t.bitset,b.isAlongLine),isDiscrete:C(t.bitset,b.isDiscrete),...this.maybeRunHittest(t,e,n.halfWidth)}}fragment(t){const{isAlongLine:e,isDiscrete:i,relativePositionAlongLine:o,relativeGradientSize:r,normal:s,tlbr:n}=t,d=j(t,this.view.antialiasing),p=P(s.y).multiply(h(y(s),new a(1))),u=new a(.5).multiply(p).add(new a(.5)),b=m(c(e,new a(.5)),o,u),x=m(c(i,new a(.5)),r.subtract(1),new a(0));let S=b.add(x).divide(r);S=m(c(e,new a(.5)),S,G(S));const D=g(n.xy,n.zw,new l(v(S,new a(0),new a(1)),.5)),L=w(this.mosaicTexture,D),A=t.opacity.multiply(d),z=this.getFragmentOutput(L.multiply(A),t),C=f(new a(.5),this.technique.isColorPass).multiply(has("gradient-depth-epsilon")),F=f(new a(0),s.y).multiply(new a(has("gradient-depth-bias")).subtract(C));return z.glFragDepth=v(y(s).add(F),new a(0),new a(1)),z}}t([o(z)],M.prototype,"mosaicInfo",void 0),t([r(p)],M.prototype,"mosaicTexture",void 0),t([o(q)],M.prototype,"technique",void 0),t([e(0,s(I)),e(1,s(x))],M.prototype,"vertex",null);export{k as GradientStrokeFragmentInput,M as GradientStrokeShader,I as GradientStrokeVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import has from"../../../../../../../core/has.js";import{location as i,uniform as o,texture as s,input as r,UniformGroup as n}from"../../GraphShaderModule.js";import{Float as a,Vec2 as l,Vec4 as d,Sampler2D as p,ifElse as m,greaterThan as c,dot as u,min as h,length as y,mix as g,clamp as v,texture2D as f,step as w}from"../../graph/glsl.js";import{bitset as b}from"../line/gradientStrokeConstants.js";import{BaseHittestVertexInput as x}from"./AFeatureShader.js";import{LineVertexInput as S,LineShader as D,getLineVertexData as L,getLineAntialiasing as j,LineFragmentInput as A}from"./LineShader.js";import{MosaicInfo as z}from"./MosaicInfo.js";import{getBit as F,getBitBool as G,oneMinus as I}from"./utils.js";function P(t){return w(new a(0),t).multiply(2).subtract(1)}class C extends S{}t([i(9,a)],C.prototype,"accumulatedDistance",void 0),t([i(10,a)],C.prototype,"totalLength",void 0),t([i(11,a)],C.prototype,"gradientSize",void 0),t([i(12,l)],C.prototype,"segmentDirection",void 0),t([i(13,d)],C.prototype,"tlbr",void 0);class k extends A{}class q extends n{}t([o(a)],q.prototype,"isColorPass",void 0);class M extends D{constructor(){super(...arguments),this.type="GradientStrokeShader"}vertex(t,e){const{totalLength:i,gradientSize:o,segmentDirection:s,tlbr:r}=t,n=L(this,t),l=F(t.bitset,b.isAlongLine),d=i.divide(this.tile.getDisplayZoomFactor(this.tileInfo)),p=m(G(t.bitset,b.isAbsoluteSize),()=>{const t=m(c(l,new a(.5)),d,n.halfWidth);return o.divide(t)},o),h=t.accumulatedDistance.add(u(s,n.scaledOffset).divide(d)),y=r.divide(this.mosaicInfo.size.xyxy);return{...n,tlbr:y,relativePositionAlongLine:h,relativeGradientSize:p,isAlongLine:F(t.bitset,b.isAlongLine),isDiscrete:F(t.bitset,b.isDiscrete),...this.maybeRunHittest(t,e,n.halfWidth)}}fragment(t){const{isAlongLine:e,isDiscrete:i,relativePositionAlongLine:o,relativeGradientSize:s,normal:r,tlbr:n}=t,d=j(t,this.view.antialiasing),p=P(r.y).multiply(h(y(r),new a(1))),u=new a(.5).multiply(p).add(new a(.5)),b=m(c(e,new a(.5)),o,u),x=m(c(i,new a(.5)),s.subtract(1),new a(0));let S=b.add(x).divide(s);S=m(c(e,new a(.5)),S,I(S));const D=g(n.xy,n.zw,new l(v(S,new a(0),new a(1)),.5)),L=f(this.mosaicTexture,D),A=t.opacity.multiply(d),z=this.getFragmentOutput(L.multiply(A),t),F=w(new a(.5),this.technique.isColorPass).multiply(has("gradient-depth-epsilon")),G=w(new a(0),r.y).multiply(new a(has("gradient-depth-bias")).subtract(F));return z.glFragDepth=v(y(r).add(G),new a(0),new a(1)),z}}t([o(z)],M.prototype,"mosaicInfo",void 0),t([s(p)],M.prototype,"mosaicTexture",void 0),t([o(q)],M.prototype,"technique",void 0),t([e(0,r(C)),e(1,r(x))],M.prototype,"vertex",null);export{k as GradientStrokeFragmentInput,M as GradientStrokeShader,C as GradientStrokeVertexInput};
@@ -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 o,input as l,UniformGroup as r}from"../../GraphShaderModule.js";import{Vec2 as n,Float as a,Vec3 as p,Vec4 as u,length as m,step as d,ifElse as h,greaterThan as c}from"../../graph/glsl.js";import{FeatureVertexInput as y,AFeatureShader as f,FeatureFragmentInput as w}from"./AFeatureShader.js";import{trueHit as v,noHit as g}from"./constants.js";import{getHeatmapCompressionFactor as x}from"./heatmapUtils.js";import{hittestMarker as F}from"./hittestUtils.js";class V extends y{}t([i(5,n)],V.prototype,"offset",void 0);class j extends w{}class C extends r{}t([s(a)],C.prototype,"radius",void 0),t([s(a)],C.prototype,"isFieldActive",void 0);class H extends f{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:i}=this.kernelControls,s=t.offset,o=i.multiply(this.getVVData(t.id).x).add(new a(1).subtract(i)),l=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new p(t.pos,1)).add(this.view.displayViewMat3.multiply(new p(s,0)).multiply(e)),r=this.clip(t.id);return{glPosition:new u(l.xy,r,1),offset:s,fieldValue:o,color:new u(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:i}=t,s=m(e),o=d(s,new a(1)),l=new a(1).subtract(s.multiply(s)),r=l.multiply(l),n=o.multiply(r).multiply(i).multiply(new a(x(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new u(n),t)}hittest(t){const e=this.tile.getViewScreenMat3(this.view,this.tileContainer).multiply(new p(t.pos,1)),i=F(e.xy,this.kernelControls.radius,this.hittestRequest.position);return h(c(i,this.hittestRequest.distance),new a(g),new a(v))}}t([o],H.prototype,"usesHalfFloatPrecision",void 0),t([s(C)],H.prototype,"kernelControls",void 0),t([e(0,l(V))],H.prototype,"vertex",null),t([e(0,l(j))],H.prototype,"fragment",null);export{j as HeatmapAccumulateFragmentInput,H as HeatmapAccumulateShader,V as HeatmapAccumulateVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as s,define as o,input as l,UniformGroup as r}from"../../GraphShaderModule.js";import{Vec2 as n,Float as p,Vec3 as a,Vec4 as u,length as m,step as d,ifElse as h,greaterThan as c}from"../../graph/glsl.js";import{FeatureVertexInput as f,AFeatureShader as y,FeatureFragmentInput as w}from"./AFeatureShader.js";import{trueHit as v,noHit as g}from"./constants.js";import{getHeatmapCompressionFactor as x}from"./heatmapUtils.js";import{hittestMarker as F}from"./hittestUtils.js";class V extends f{}t([i(5,n)],V.prototype,"offset",void 0);class j extends w{}class H extends r{}t([s(p)],H.prototype,"radius",void 0),t([s(p)],H.prototype,"isFieldActive",void 0);class S extends y{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:i}=this.kernelControls,s=t.offset,o=i.multiply(this.getVVData(t.id).x).add(new p(1).subtract(i)),l=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new a(t.pos,1)).add(this.view.displayViewMat3.multiply(new a(s,0)).multiply(e)),r=this.clip(t.id);return{glPosition:new u(l.xy,r,1),offset:s,fieldValue:o,color:new u(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:i}=t,s=m(e),o=d(s,new p(1)),l=new p(1).subtract(s.multiply(s)),r=l.multiply(l),n=o.multiply(r).multiply(i).multiply(new p(x(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new u(n),t)}hittest(t){const e=this.tile.getViewScreenMat3(this.view,this.tileInfo).multiply(new a(t.pos,1)),i=F(e.xy,this.kernelControls.radius,this.hittestRequest.position);return h(c(i,this.hittestRequest.distance),new p(g),new p(v))}}t([o],S.prototype,"usesHalfFloatPrecision",void 0),t([s(H)],S.prototype,"kernelControls",void 0),t([e(0,l(V))],S.prototype,"vertex",null),t([e(0,l(j))],S.prototype,"fragment",null);export{j as HeatmapAccumulateFragmentInput,S as HeatmapAccumulateShader,V 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 i}from"tslib";import{location as e,option as o,input as l}from"../../GraphShaderModule.js";import{Vec4 as r,Vec2 as a,Float as s,step as n,min as p,ifElse as u,greaterThan as m,max as d,Vec3 as c,length as y,clamp as f}from"../../graph/glsl.js";import{BaseHittestVertexInput as h,FeatureVertexInput as w,AFeatureShader as v,FeatureFragmentInput as V}from"./AFeatureShader.js";import{noHit as b,trueHit as S,epsilon as g,thinLineWidthFactor as j,thinLineHalfWidth as x}from"./constants.js";import{isRectHittest as z,distPointSegment as W,hittestScreenRect as M}from"./hittestUtils.js";import{VisualVariableColor as R}from"./VisualVariableColor.js";import{VisualVariableOpacity as H}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as C}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as O}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as U}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as q}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as F,getVisualVariableOpacity as P,hasVisualVariableSize as A,getVisualVariableSize as D}from"./vvUtils.js";class T extends w{}t([e(3,r)],T.prototype,"color",void 0),t([e(4,a)],T.prototype,"offset",void 0),t([e(5,a)],T.prototype,"normal",void 0),t([e(6,s)],T.prototype,"halfWidth",void 0),t([e(7,s)],T.prototype,"referenceHalfWidth",void 0),t([e(8,a)],T.prototype,"zoomRange",void 0);class G extends V{}function L(t){return d(new s(j).multiply(n(t,new s(x))),new s(1))}function k(t,i){const{halfWidth:e,normal:o}=t,l=L(e),r=y(o).multiply(e);return f(l.multiply(e.subtract(r)).divide(i.add(l).subtract(new s(1))),new s(0),new s(1))}function B(t,i){const{id:e,halfWidth:o,referenceHalfWidth:l}=i;if(A(t)){const i=new s(2).multiply(l),r=D(t,e,i),a=new s(g),n=u(m(o,a),o.divide(d(l,a)),new s(1));return new s(.5).multiply(n).multiply(r)}return o}function E(t,i){const{id:e,offset:o,pos:l,normal:a,zoomRange:p}=i,{displayViewMat3:u}=t.view,m=t.tile.getDisplayViewScreenMat3(t.view,t.tileContainer),y=F(t,e,i.color),f=P(t,e),h=B(t,i),w=new s(.5).multiply(t.view.antialiasing),v=d(h.add(w),new s(.45)).add(new s(.1).multiply(w)),V=L(v).multiply(v).multiply(o).multiply(t.tileContainer.scaleFactor),b=u.multiply(new c(V,new s(0))),S=m.multiply(new c(l,new s(1))).add(b),g=new s(2).multiply(n(h,new s(0))).add(t.clip(e,p)),j=new r(S.xy,g,1);return{color:y,opacity:f,halfWidth:v,normal:a,scaledOffset:V,scaledHalfWidth:h,glPosition:new r(j.xy,g,1)}}function I(t,i){const{opacity:e,color:o}=t,l=k(t,i);return e.multiply(o).multiply(l)}class J extends v{constructor(){super(...arguments),this.type="LineShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,i){const e=E(this,t);return{...e,...this.maybeRunHittest(t,i,e.halfWidth)}}fragment(t){const i=I(t,this.view.antialiasing);return this.getFragmentOutput(i,t)}hittest(t,i,e){const{pos0:o,pos1:l,pos2:r}=this.computeHittestTriangle(t,i,null),a=z(this.hittestRequest),{distance:d,smallSymbolDistance:c,smallSymbolSizeThreshold:y,tlbr:f}=this.hittestRequest,h=n(e,y.multiply(.5)).multiply(d.subtract(c)),w=this.hittestRequest.position,v=p(W(w,o,l),W(w,o,r)).subtract(e).add(h);return u(a,M(o,l,r,f),u(m(v,d),new s(b),new s(S)))}}t([o(R)],J.prototype,"visualVariableColor",void 0),t([o(H)],J.prototype,"visualVariableOpacity",void 0),t([o(C)],J.prototype,"visualVariableSizeMinMaxValue",void 0),t([o(O)],J.prototype,"visualVariableSizeScaleStops",void 0),t([o(U)],J.prototype,"visualVariableSizeStops",void 0),t([o(q)],J.prototype,"visualVariableSizeUnitValue",void 0),t([i(0,l(T)),i(1,l(h))],J.prototype,"vertex",null),t([i(0,l(G))],J.prototype,"fragment",null);export{G as LineFragmentInput,J as LineShader,T as LineVertexInput,k as getLineAntialiasing,I as getLineFragmentColor,L as getLineThinFactor,E as getLineVertexData};
2
+ import{__decorate as t,__param as i}from"tslib";import{location as e,option as o,input as l}from"../../GraphShaderModule.js";import{Vec4 as r,Vec2 as a,Float as s,step as n,min as p,ifElse as u,greaterThan as m,max as d,Vec3 as c,length as y,clamp as f}from"../../graph/glsl.js";import{BaseHittestVertexInput as h,FeatureVertexInput as w,AFeatureShader as v,FeatureFragmentInput as V}from"./AFeatureShader.js";import{noHit as b,trueHit as S,epsilon as g,thinLineWidthFactor as j,thinLineHalfWidth as x}from"./constants.js";import{isRectHittest as z,distPointSegment as W,hittestScreenRect as M}from"./hittestUtils.js";import{VisualVariableColor as R}from"./VisualVariableColor.js";import{VisualVariableOpacity as H}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as O}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as U}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as q}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as F}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as P,getVisualVariableOpacity as A,hasVisualVariableSize as C,getVisualVariableSize as D}from"./vvUtils.js";class I extends w{}t([e(3,r)],I.prototype,"color",void 0),t([e(4,a)],I.prototype,"offset",void 0),t([e(5,a)],I.prototype,"normal",void 0),t([e(6,s)],I.prototype,"halfWidth",void 0),t([e(7,s)],I.prototype,"referenceHalfWidth",void 0),t([e(8,a)],I.prototype,"zoomRange",void 0);class T extends V{}function G(t){return d(new s(j).multiply(n(t,new s(x))),new s(1))}function L(t,i){const{halfWidth:e,normal:o}=t,l=G(e),r=y(o).multiply(e);return f(l.multiply(e.subtract(r)).divide(i.add(l).subtract(new s(1))),new s(0),new s(1))}function k(t,i){const{id:e,halfWidth:o,referenceHalfWidth:l}=i;if(C(t)){const i=new s(2).multiply(l),r=D(t,e,i),a=new s(g),n=u(m(o,a),o.divide(d(l,a)),new s(1));return new s(.5).multiply(n).multiply(r)}return o}function B(t,i){const{id:e,offset:o,pos:l,normal:a,zoomRange:p}=i,{displayViewMat3:u}=t.view,m=t.tile.getDisplayViewScreenMat3(t.view,t.tileInfo),y=P(t,e,i.color),f=A(t,e),h=k(t,i),w=new s(.5).multiply(t.view.antialiasing),v=d(h.add(w),new s(.45)).add(new s(.1).multiply(w)),V=G(v).multiply(v).multiply(o).multiply(t.tileInfo.scaleFactor),b=u.multiply(new c(V,new s(0))),S=m.multiply(new c(l,new s(1))).add(b),g=new s(2).multiply(n(h,new s(0))).add(t.clip(e,p)),j=new r(S.xy,g,1);return{color:y,opacity:f,halfWidth:v,normal:a,scaledOffset:V,scaledHalfWidth:h,glPosition:new r(j.xy,g,1)}}function E(t,i){const{opacity:e,color:o}=t,l=L(t,i);return e.multiply(o).multiply(l)}class J extends v{constructor(){super(...arguments),this.type="LineShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,i){const e=B(this,t);return{...e,...this.maybeRunHittest(t,i,e.halfWidth)}}fragment(t){const i=E(t,this.view.antialiasing);return this.getFragmentOutput(i,t)}hittest(t,i,e){const{pos0:o,pos1:l,pos2:r}=this.computeHittestTriangle(t,i,null),a=z(this.hittestRequest),{distance:d,smallSymbolDistance:c,smallSymbolSizeThreshold:y,tlbr:f}=this.hittestRequest,h=n(e,y.multiply(.5)).multiply(d.subtract(c)),w=this.hittestRequest.position,v=p(W(w,o,l),W(w,o,r)).subtract(e).add(h);return u(a,M(o,l,r,f),u(m(v,d),new s(b),new s(S)))}}t([o(R)],J.prototype,"visualVariableColor",void 0),t([o(H)],J.prototype,"visualVariableOpacity",void 0),t([o(O)],J.prototype,"visualVariableSizeMinMaxValue",void 0),t([o(U)],J.prototype,"visualVariableSizeScaleStops",void 0),t([o(q)],J.prototype,"visualVariableSizeStops",void 0),t([o(F)],J.prototype,"visualVariableSizeUnitValue",void 0),t([i(0,l(I)),i(1,l(h))],J.prototype,"vertex",null),t([i(0,l(T))],J.prototype,"fragment",null);export{T as LineFragmentInput,J as LineShader,I as LineVertexInput,L as getLineAntialiasing,E as getLineFragmentColor,G as getLineThinFactor,B as getLineVertexData};
@@ -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,input as r}from"../../GraphShaderModule.js";import{Vec2 as s,Vec4 as a,Float as l,greaterThan as p,ifElse as n,or 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 v,bitsetTypeFillOutline as y,bitsetOutlineUsesColorVV as V}from"./constants.js";import{isRectHittest as S,hittestFill as b,hittestScreenRect as j}from"./hittestUtils.js";import{getLineFragmentColor as w,LineFragmentInput as x,getLineVertexData as g}from"./LineShader.js";import{getBit as z,getBitBool as M}from"./utils.js";import{VisualVariableColor as O}from"./VisualVariableColor.js";import{VisualVariableOpacity as R}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as P}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as U}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as W}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as q}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as C,getVisualVariableColor as F}from"./vvUtils.js";class H extends d{}t([i(3,s)],H.prototype,"offset",void 0),t([i(4,a)],H.prototype,"color",void 0),t([i(5,s)],H.prototype,"normal",void 0),t([i(6,l)],H.prototype,"halfWidth",void 0),t([i(7,l)],H.prototype,"referenceHalfWidth",void 0),t([i(8,s)],H.prototype,"zoomRange",void 0);class A extends x{}function D(t,e,i){const{id:o,bitset:r}=e,s=z(r,y),u=p(s,new l(.5)),c=g(t,e),d=n(u,c.halfWidth,new l(0)),h=C(t,o),f=F(t,o,e.color),v=n(u,n(M(r,V),f,e.color),f.multiply(h)),S=t.tile.getDisplayViewScreenMat3(t.view,t.tileContainer).multiply(new m(e.pos.xy,1)),b=t.clip(e.id),j=new a(S.xy,b,1),w=n(u,c.glPosition,j),x=i&&t.maybeRunHittest(e,i,u);return{isOutline:s,color:v,opacity:new l(1),halfWidth:d,normal:c.normal,glPosition:w,...x}}class G extends h{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([o(O)],G.prototype,"visualVariableColor",void 0),t([o(R)],G.prototype,"visualVariableOpacity",void 0),t([o(P)],G.prototype,"visualVariableSizeMinMaxValue",void 0),t([o(U)],G.prototype,"visualVariableSizeScaleStops",void 0),t([o(W)],G.prototype,"visualVariableSizeStops",void 0),t([o(q)],G.prototype,"visualVariableSizeUnitValue",void 0);class L extends G{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,e){return D(this,t,e)}fragment(t){const{color:e,isOutline:i}=t,o=p(i,new l(.5)),r=w(t,this.view.antialiasing),s=n(o,r,e),a=n(o,new l(1/255),new l(0));return this.getFragmentOutput(s,t,a)}hittest(t,e,i){const{pos0:o,pos1:r,pos2:s}=this.computeHittestTriangle(t,e,null),a=S(this.hittestRequest);return n(a,()=>{const{tlbr:t}=this.hittestRequest;return j(o,r,s,t)},()=>{const o=b(this,t,e);return n(u(i,p(o,this.hittestRequest.distance)),new l(f),new l(v))})}}t([e(0,r(H)),e(1,r(c))],L.prototype,"vertex",null),t([e(0,r(A))],L.prototype,"fragment",null);export{G as AOutlineFillShader,A as OutlineFillFragmentInput,L as OutlineFillShader,H as OutlineFillVertexInput,D as getOutlineFillVertexData};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as o,option as i,input as r}from"../../GraphShaderModule.js";import{Vec2 as s,Vec4 as l,Float as a,greaterThan as p,ifElse as n,or 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 v,bitsetTypeFillOutline as y,bitsetOutlineUsesColorVV as V}from"./constants.js";import{isRectHittest as S,hittestFill as b,hittestScreenRect as j}from"./hittestUtils.js";import{getLineFragmentColor as w,LineFragmentInput as x,getLineVertexData as g}from"./LineShader.js";import{getBit as z,getBitBool as M}from"./utils.js";import{VisualVariableColor as O}from"./VisualVariableColor.js";import{VisualVariableOpacity as R}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as P}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as U}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as W}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as q}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as F,getVisualVariableColor as H}from"./vvUtils.js";class A extends d{}t([o(3,s)],A.prototype,"offset",void 0),t([o(4,l)],A.prototype,"color",void 0),t([o(5,s)],A.prototype,"normal",void 0),t([o(6,a)],A.prototype,"halfWidth",void 0),t([o(7,a)],A.prototype,"referenceHalfWidth",void 0),t([o(8,s)],A.prototype,"zoomRange",void 0);class C extends x{}function D(t,e,o){const{id:i,bitset:r}=e,s=z(r,y),u=p(s,new a(.5)),c=g(t,e),d=n(u,c.halfWidth,new a(0)),h=F(t,i),f=H(t,i,e.color),v=n(u,n(M(r,V),f,e.color),f.multiply(h)),S=t.tile.getDisplayViewScreenMat3(t.view,t.tileInfo).multiply(new m(e.pos.xy,1)),b=t.clip(e.id),j=new l(S.xy,b,1),w=n(u,c.glPosition,j),x=o&&t.maybeRunHittest(e,o,u);return{isOutline:s,color:v,opacity:new a(1),halfWidth:d,normal:c.normal,glPosition:w,...x}}class G extends h{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([i(O)],G.prototype,"visualVariableColor",void 0),t([i(R)],G.prototype,"visualVariableOpacity",void 0),t([i(P)],G.prototype,"visualVariableSizeMinMaxValue",void 0),t([i(U)],G.prototype,"visualVariableSizeScaleStops",void 0),t([i(W)],G.prototype,"visualVariableSizeStops",void 0),t([i(q)],G.prototype,"visualVariableSizeUnitValue",void 0);class I extends G{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,e){return D(this,t,e)}fragment(t){const{color:e,isOutline:o}=t,i=p(o,new a(.5)),r=w(t,this.view.antialiasing),s=n(i,r,e),l=n(i,new a(1/255),new a(0));return this.getFragmentOutput(s,t,l)}hittest(t,e,o){const{pos0:i,pos1:r,pos2:s}=this.computeHittestTriangle(t,e,null),l=S(this.hittestRequest);return n(l,()=>{const{tlbr:t}=this.hittestRequest;return j(i,r,s,t)},()=>{const i=b(this,t,e);return n(u(o,p(i,this.hittestRequest.distance)),new a(f),new a(v))})}}t([e(0,r(A)),e(1,r(c))],I.prototype,"vertex",null),t([e(0,r(C))],I.prototype,"fragment",null);export{G as AOutlineFillShader,C as OutlineFillFragmentInput,I as OutlineFillShader,A as OutlineFillVertexInput,D as getOutlineFillVertexData};
@@ -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 r,uniform as o,texture as i,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as n,Sampler2D as a,Vec2 as p,Vec3 as u,mod as d,mix as c,texture2D as m,Mat3 as f,negate as y}from"../../graph/glsl.js";import{BaseHittestVertexInput as x,FeatureFragmentInput as v}from"./AFeatureShader.js";import{FillVertexInput as b,FillShader as h}from"./FillShader.js";import{LocalTileOffset as g}from"./LocalTileOffset.js";import{MosaicInfo as w}from"./MosaicInfo.js";class T extends b{}t([r(5,s)],T.prototype,"tlbr",void 0),t([r(6,n)],T.prototype,"inverseRasterizationScale",void 0);class j extends v{}function O(t){const e=new n(1),r=new n(0);return new f(e.divide(t.x),r.divide(t.y),0,y(r.divide(t.x)),e.divide(t.y),0,0,0,1)}function S(t,e){const r=e.tlbr.xy,o=e.tlbr.zw,i=o.x.subtract(r.x),l=r.y.subtract(o.y),s=new p(i,l).multiply(e.inverseRasterizationScale),n=s.multiply(t.tile.getRequiredZoomFactor(t.tileContainer)),a=O(n),d=t.localTileOffset.getPatternOffsetAtTileOrigin(s).divide(n),c=new u(e.pos,1);return{tileTextureCoord:a.multiply(c).xy.subtract(d),tlbr:e.tlbr.divide(t.mosaicInfo.size.xyxy)}}function z(t,e){const r=d(t.tileTextureCoord,new n(1)),o=c(t.tlbr.xy,t.tlbr.zw,r),i=m(e.mosaicTexture,o);return t.color.multiply(i)}class F extends h{constructor(){super(...arguments),this.type="PatternFillShader"}vertex(t,e){return{...super.vertex(t,e),...S(this,t)}}fragment(t){const e=z(t,this);return this.getFragmentOutput(e,t,new n(0))}}t([o(w)],F.prototype,"mosaicInfo",void 0),t([i(a)],F.prototype,"mosaicTexture",void 0),t([o(g)],F.prototype,"localTileOffset",void 0),t([e(0,l(T)),e(1,l(x))],F.prototype,"vertex",null),t([e(0,l(j))],F.prototype,"fragment",null);export{j as PatternFillFragmentInput,F as PatternFillShader,T as PatternFillVertexInput,z as getPatternFillFragmentColor,S as getPatternFillVertexData};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as r,uniform as o,texture as i,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as n,Sampler2D as a,Vec2 as p,Vec3 as u,mod as d,mix as c,texture2D as m,Mat3 as f,negate as y}from"../../graph/glsl.js";import{BaseHittestVertexInput as x,FeatureFragmentInput as v}from"./AFeatureShader.js";import{FillVertexInput as b,FillShader as h}from"./FillShader.js";import{LocalTileOffset as g}from"./LocalTileOffset.js";import{MosaicInfo as w}from"./MosaicInfo.js";class T extends b{}t([r(5,s)],T.prototype,"tlbr",void 0),t([r(6,n)],T.prototype,"inverseRasterizationScale",void 0);class j extends v{}function O(t){const e=new n(1),r=new n(0);return new f(e.divide(t.x),r.divide(t.y),0,y(r.divide(t.x)),e.divide(t.y),0,0,0,1)}function S(t,e){const r=e.tlbr.xy,o=e.tlbr.zw,i=o.x.subtract(r.x),l=r.y.subtract(o.y),s=new p(i,l).multiply(e.inverseRasterizationScale),n=s.multiply(t.tile.getRequiredZoomFactor(t.tileInfo)),a=O(n),d=t.localTileOffset.getPatternOffsetAtTileOrigin(s).divide(n),c=new u(e.pos,1);return{tileTextureCoord:a.multiply(c).xy.subtract(d),tlbr:e.tlbr.divide(t.mosaicInfo.size.xyxy)}}function z(t,e){const r=d(t.tileTextureCoord,new n(1)),o=c(t.tlbr.xy,t.tlbr.zw,r),i=m(e.mosaicTexture,o);return t.color.multiply(i)}class F extends h{constructor(){super(...arguments),this.type="PatternFillShader"}vertex(t,e){return{...super.vertex(t,e),...S(this,t)}}fragment(t){const e=z(t,this);return this.getFragmentOutput(e,t,new n(0))}}t([o(w)],F.prototype,"mosaicInfo",void 0),t([i(a)],F.prototype,"mosaicTexture",void 0),t([o(g)],F.prototype,"localTileOffset",void 0),t([e(0,l(T)),e(1,l(x))],F.prototype,"vertex",null),t([e(0,l(j))],F.prototype,"fragment",null);export{j as PatternFillFragmentInput,F as PatternFillShader,T as PatternFillVertexInput,z as getPatternFillFragmentColor,S as getPatternFillVertexData};
@@ -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{pt2px as i}from"../../../../../../../core/screenUtils.js";import{dashSdfRasterizationScale as o,dashSdfDistanceNormalization as s}from"../../../../../../../symbols/cim/constants.js";import{location as a,uniform as r,texture as l,input as n}from"../../GraphShaderModule.js";import{Float as p,Vec2 as c,Vec4 as m,Sampler2D as u,max as d,fract as y,mix as h,texture2D as f,cond as w,equal as g,sqrt as x,pow as b,clamp as v,ifElse as D,greaterThan as S,dot as T}from"../../graph/glsl.js";import{BaseHittestVertexInput as j}from"./AFeatureShader.js";import{bitsetLineScaleDash as A,bitsetLineIsSdf as z,bitsetGenericConsiderAlphaOnly as F}from"./constants.js";import{LineVertexInput as L,LineShader as _,getLineVertexData as C,getLineAntialiasing as O,LineFragmentInput as P}from"./LineShader.js";import{MosaicInfo as W}from"./MosaicInfo.js";import{getBit as I,rgba2float as R}from"./utils.js";class H extends L{}t([a(9,p)],H.prototype,"accumulatedDistance",void 0),t([a(10,c)],H.prototype,"segmentDirection",void 0),t([a(11,p)],H.prototype,"offsetAlongLine",void 0),t([a(12,p)],H.prototype,"capType",void 0),t([a(13,m)],H.prototype,"tlbr",void 0);class M extends P{}class G extends _{constructor(){super(...arguments),this.type="TexturedLineShader"}_getDistanceRatio(t,e){const o=I(t.bitset,A);return o.multiply(d(e,new p(.25)).multiply(new p(2))).add(new p(1).subtract(o).multiply(i(1)))}_getSDFAlpha(t){const{halfWidth:e,normal:i,tlbr:a,patternSize:r,accumulatedDistance:l,offsetAlongLine:n,dashToPx:u,capType:D}=t,S=r.x.divide(o).multiply(u),T=y(l.add(n).divide(S)),j=h(a.xy,a.zw,new c(T,.5)),A=R(f(this.mosaicTexture,j)).multiply(2).subtract(1).multiply(s).multiply(u),z=i.y.multiply(e),F=w([g(D,new p(1)),A.subtract(e)],[g(D,new p(2)),x(b(d(A,new p(0)),new p(2)).add(z.multiply(z))).subtract(e)],[!0,A]),L=v(new p(.25).subtract(F),new p(0),new p(1));return new m(L)}_getPatternColor(t){const{halfWidth:e,normal:i,color:o,accumulatedDistance:s,patternSize:a,sampleAlphaOnly:r,tlbr:l}=t,n=a.y.multiply(new p(2).multiply(e).divide(a.x)),u=y(s.divide(n)),d=new p(.5).multiply(i.y).add(new p(.5)),w=h(l.xy,l.zw,new c(d,u));let g=f(this.mosaicTexture,w);return null!=this.visualVariableColor&&(g=D(S(r,new p(.5)),new m(o.a),o)),g}vertex(t,e){const{segmentDirection:i,tlbr:o,bitset:s}=t,a=C(this,t),r=t.accumulatedDistance.divide(this.tile.getDisplayZoomFactor(this.tileContainer)).add(T(i,a.scaledOffset)),l=new c(o.z.subtract(o.x),o.w.subtract(o.y)),n=o.divide(this.mosaicInfo.size.xyxy),m=I(s,z),u=I(s,F),d=D(S(m,new p(.5)),this._getDistanceRatio(t,a.scaledHalfWidth),new p(1));return{...a,tlbr:n,patternSize:l,accumulatedDistance:r,isSDF:m,sampleAlphaOnly:u,dashToPx:d,offsetAlongLine:t.offsetAlongLine,capType:t.capType,...this.maybeRunHittest(t,e,a.halfWidth)}}fragment(t){const{color:e,opacity:i,isSDF:o}=t,s=O(t,this.view.antialiasing),a=D(S(o,new p(.5)),this._getSDFAlpha(t),this._getPatternColor(t)),r=e.multiply(i).multiply(s).multiply(a);return this.getFragmentOutput(r,t)}}t([r(W)],G.prototype,"mosaicInfo",void 0),t([l(u)],G.prototype,"mosaicTexture",void 0),t([e(0,n(H)),e(1,n(j))],G.prototype,"vertex",null);export{M as TexturedLineFragmentInput,G as TexturedLineShader,H as TexturedLineVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{pt2px as i}from"../../../../../../../core/screenUtils.js";import{dashSdfRasterizationScale as o,dashSdfDistanceNormalization as s}from"../../../../../../../symbols/cim/constants.js";import{location as a,uniform as r,texture as l,input as n}from"../../GraphShaderModule.js";import{Float as p,Vec2 as c,Vec4 as m,Sampler2D as u,max as d,fract as y,mix as h,texture2D as f,cond as w,equal as g,sqrt as x,pow as b,clamp as v,ifElse as D,greaterThan as S,dot as T}from"../../graph/glsl.js";import{BaseHittestVertexInput as j}from"./AFeatureShader.js";import{bitsetLineScaleDash as A,bitsetLineIsSdf as z,bitsetGenericConsiderAlphaOnly as F}from"./constants.js";import{LineVertexInput as L,LineShader as _,getLineVertexData as I,getLineAntialiasing as O,LineFragmentInput as P}from"./LineShader.js";import{MosaicInfo as W}from"./MosaicInfo.js";import{getBit as C,rgba2float as R}from"./utils.js";class H extends L{}t([a(9,p)],H.prototype,"accumulatedDistance",void 0),t([a(10,c)],H.prototype,"segmentDirection",void 0),t([a(11,p)],H.prototype,"offsetAlongLine",void 0),t([a(12,p)],H.prototype,"capType",void 0),t([a(13,m)],H.prototype,"tlbr",void 0);class M extends P{}class G extends _{constructor(){super(...arguments),this.type="TexturedLineShader"}_getDistanceRatio(t,e){const o=C(t.bitset,A);return o.multiply(d(e,new p(.25)).multiply(new p(2))).add(new p(1).subtract(o).multiply(i(1)))}_getSDFAlpha(t){const{halfWidth:e,normal:i,tlbr:a,patternSize:r,accumulatedDistance:l,offsetAlongLine:n,dashToPx:u,capType:D}=t,S=r.x.divide(o).multiply(u),T=y(l.add(n).divide(S)),j=h(a.xy,a.zw,new c(T,.5)),A=R(f(this.mosaicTexture,j)).multiply(2).subtract(1).multiply(s).multiply(u),z=i.y.multiply(e),F=w([g(D,new p(1)),A.subtract(e)],[g(D,new p(2)),x(b(d(A,new p(0)),new p(2)).add(z.multiply(z))).subtract(e)],[!0,A]),L=v(new p(.25).subtract(F),new p(0),new p(1));return new m(L)}_getPatternColor(t){const{halfWidth:e,normal:i,color:o,accumulatedDistance:s,patternSize:a,sampleAlphaOnly:r,tlbr:l}=t,n=a.y.multiply(new p(2).multiply(e).divide(a.x)),u=y(s.divide(n)),d=new p(.5).multiply(i.y).add(new p(.5)),w=h(l.xy,l.zw,new c(d,u));let g=f(this.mosaicTexture,w);return null!=this.visualVariableColor&&(g=D(S(r,new p(.5)),new m(o.a),o)),g}vertex(t,e){const{segmentDirection:i,tlbr:o,bitset:s}=t,a=I(this,t),r=t.accumulatedDistance.divide(this.tile.getDisplayZoomFactor(this.tileInfo)).add(T(i,a.scaledOffset)),l=new c(o.z.subtract(o.x),o.w.subtract(o.y)),n=o.divide(this.mosaicInfo.size.xyxy),m=C(s,z),u=C(s,F),d=D(S(m,new p(.5)),this._getDistanceRatio(t,a.scaledHalfWidth),new p(1));return{...a,tlbr:n,patternSize:l,accumulatedDistance:r,isSDF:m,sampleAlphaOnly:u,dashToPx:d,offsetAlongLine:t.offsetAlongLine,capType:t.capType,...this.maybeRunHittest(t,e,a.halfWidth)}}fragment(t){const{color:e,opacity:i,isSDF:o}=t,s=O(t,this.view.antialiasing),a=D(S(o,new p(.5)),this._getSDFAlpha(t),this._getPatternColor(t)),r=e.multiply(i).multiply(s).multiply(a);return this.getFragmentOutput(r,t)}}t([r(W)],G.prototype,"mosaicInfo",void 0),t([l(u)],G.prototype,"mosaicTexture",void 0),t([e(0,n(H)),e(1,n(j))],G.prototype,"vertex",null);export{M as TexturedLineFragmentInput,G as TexturedLineShader,H as TexturedLineVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{normalizedTileWorldSize as i,getNormalizedTileOrigin as r,toFloat32 as t}from"../../../normalizedTileUtils.js";import{uniform as l,UniformGroup as o}from"../../GraphShaderModule.js";import{Float as a,Vec2 as n,exp2 as d,Mat3 as s,abs as m}from"../../graph/glsl.js";class p extends o{getDisplayZoomFactor(e){return d(this.level.subtract(e.currentZoom))}getRequiredZoomFactor(e){return d(this.level.subtract(e.requiredLevel))}getZoomFactor(e,i){return d(i.currentZoom.subtract(this.level)).divide(e.pixelRatio)}getTileMat3(e,i){const r=this._getNormalizedOriginScreenDelta(i),t=this.localToMap.divide(e.resolution);return new s(t.x,0,0,0,t.y,0,r.x,r.y,1)}getViewScreenMat3(e,i){return e.viewMat3.multiply(this.getTileMat3(e,i))}getDisplayViewScreenMat3(e,i){return e.displayViewMat3.multiply(this.getTileMat3(e,i))}_getNormalizedOriginScreenDelta(e){const r=new n(this.normalizedWorldWrapId,0).subtract(e.normalizedTileWorldWrapId).multiply(i),t=this.normalizedOriginOffset.multiply(m(e.normalizedTileUnitsToPixels));return this.normalizedOrigin.add(r).subtract(e.normalizedTileOrigin).multiply(e.normalizedTileUnitsToPixels).add(e.normalizedTileOriginOffsetPixels).add(t)}}function u(e,i){const l=null!=e?r(e,i):[0,0],o=t(l),a=null!=e?i.key.world:0;return{level:i.key.level,normalizedOrigin:o,normalizedOriginOffset:[l[0]-o[0],l[1]-o[1]],normalizedWorldWrapId:a,localToMap:[i.width/i.rangeX*i.resolution,i.height/i.rangeY*i.resolution]}}e([l(a)],p.prototype,"level",void 0),e([l(n)],p.prototype,"normalizedOrigin",void 0),e([l(n)],p.prototype,"normalizedOriginOffset",void 0),e([l(a)],p.prototype,"normalizedWorldWrapId",void 0),e([l(n)],p.prototype,"localToMap",void 0);export{p as Tile,u as getTileUniforms};
2
+ import{__decorate as e}from"tslib";import{normalizedTileWorldSize as i,getNormalizedTileOrigin as t,toFloat32 as r}from"../../../normalizedTileUtils.js";import{uniform as o,createUniformBlockBinding as l,UniformGroup as n}from"../../GraphShaderModule.js";import{exp2 as a,Mat3 as d,Vec2 as s,abs as m,Float as p}from"../../graph/glsl.js";class u extends n{constructor(){super(...arguments),this.bindingPoint=2}getDisplayZoomFactor(e){return a(this.level.subtract(e.currentZoom))}getRequiredZoomFactor(e){return a(this.level.subtract(e.requiredLevel))}getZoomFactor(e,i){return a(i.currentZoom.subtract(this.level)).divide(e.pixelRatio)}getTileMat3(e,i){const t=this._getNormalizedOriginScreenDelta(i),r=this.localToMap.divide(e.resolution);return new d(r.x,0,0,0,r.y,0,t.x,t.y,1)}getViewScreenMat3(e,i){return e.viewMat3.multiply(this.getTileMat3(e,i))}getDisplayViewScreenMat3(e,i){return e.displayViewMat3.multiply(this.getTileMat3(e,i))}_getNormalizedOriginScreenDelta(e){const t=new s(this.normalizedWorldWrapId,0).subtract(e.normalizedTileWorldWrapId).multiply(i),r=this.normalizedOriginOffset.multiply(m(e.normalizedTileUnitsToPixels));return this.normalizedOrigin.add(t).subtract(e.normalizedTileOrigin).multiply(e.normalizedTileUnitsToPixels).add(e.normalizedTileOriginOffsetPixels).add(r)}}e([o(p)],u.prototype,"level",void 0),e([o(s)],u.prototype,"normalizedOrigin",void 0),e([o(s)],u.prototype,"normalizedOriginOffset",void 0),e([o(p)],u.prototype,"normalizedWorldWrapId",void 0),e([o(s)],u.prototype,"localToMap",void 0);const g=l("tile",u).binding;function c(e,i){const o=t(e,i),l=r(o);return{level:i.key.level,normalizedOrigin:l,normalizedOriginOffset:[o[0]-l[0],o[1]-l[1]],normalizedWorldWrapId:i.key.world,localToMap:[i.width/i.rangeX*i.resolution,i.height/i.rangeY*i.resolution]}}export{u as Tile,c as getTileUniforms,g as tileUniformBlockBinding};
@@ -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 i,input as r,FragmentInput as p,texture as n,VertexInput as s,UniformGroup as l,GraphShaderModule as d,FragmentOutput as a}from"../../GraphShaderModule.js";import{Vec2 as y,Float as c,Vec4 as v,Sampler2D as g,Vec3 as u,texture2D as f}from"../../graph/glsl.js";import{Tile as h}from"./Tile.js";import{TileInfo as m}from"./TileInfo.js";import{ViewInfo as x}from"./ViewInfo.js";class w extends s{}t([e(0,y)],w.prototype,"position",void 0);class C extends p{}class j extends l{}t([i(y)],j.prototype,"coordRange",void 0),t([i(c)],j.prototype,"depth",void 0),t([i(v)],j.prototype,"color",void 0);class S extends l{}t([i(c)],S.prototype,"depth",void 0),t([i(y)],S.prototype,"coordRatio",void 0),t([i(y)],S.prototype,"delta",void 0),t([i(y)],S.prototype,"dimensions",void 0);class b extends d{constructor(){super(...arguments),this.type="TileDebugInfoOutlineShader"}vertex(t){const o=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new u(t.position.multiply(this.config.coordRange),1));return{glPosition:new v(o.xy,this.config.depth,1)}}fragment(t){const o=new a;return o.fragColor=this.config.color,o}}t([i(x)],b.prototype,"view",void 0),t([i(m)],b.prototype,"tileContainer",void 0),t([i(h)],b.prototype,"tile",void 0),t([i(j)],b.prototype,"config",void 0),t([o(0,r(w))],b.prototype,"vertex",null),t([o(0,r(p))],b.prototype,"fragment",null);class D extends d{constructor(){super(...arguments),this.type="TileDebugInfoShader"}vertex(t){const o=this.config.coordRatio.multiply(this.config.delta.add(t.position.multiply(this.config.dimensions))),e=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new u(o,1));return{glPosition:new v(e.xy,this.config.depth,1),uv:t.position}}fragment(t){const o=new a,e=f(this.texture,t.uv);return o.fragColor=new v(e.rgb.multiply(e.a),e.a),o}}t([i(x)],D.prototype,"view",void 0),t([i(m)],D.prototype,"tileContainer",void 0),t([i(h)],D.prototype,"tile",void 0),t([i(S)],D.prototype,"config",void 0),t([n(g)],D.prototype,"texture",void 0),t([o(0,r(w))],D.prototype,"vertex",null),t([o(0,r(C))],D.prototype,"fragment",null);export{b as TileDebugInfoOutlineShader,D as TileDebugInfoShader};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as i,input as r,FragmentInput as p,texture as n,VertexInput as s,UniformGroup as l,GraphShaderModule as d,FragmentOutput as y}from"../../GraphShaderModule.js";import{Vec2 as c,Float as a,Vec4 as f,Sampler2D as v,Vec3 as g,texture2D as u}from"../../graph/glsl.js";import{Tile as h}from"./Tile.js";import{TileInfo as m}from"./TileInfo.js";import{ViewInfo as x}from"./ViewInfo.js";class w extends s{}t([e(0,c)],w.prototype,"position",void 0);class I extends p{}class j extends l{}t([i(c)],j.prototype,"coordRange",void 0),t([i(a)],j.prototype,"depth",void 0),t([i(f)],j.prototype,"color",void 0);class S extends l{}t([i(a)],S.prototype,"depth",void 0),t([i(c)],S.prototype,"coordRatio",void 0),t([i(c)],S.prototype,"delta",void 0),t([i(c)],S.prototype,"dimensions",void 0);class b extends d{constructor(){super(...arguments),this.type="TileDebugInfoOutlineShader"}vertex(t){const o=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new g(t.position.multiply(this.config.coordRange),1));return{glPosition:new f(o.xy,this.config.depth,1)}}fragment(t){const o=new y;return o.fragColor=this.config.color,o}}t([i(x)],b.prototype,"view",void 0),t([i(m)],b.prototype,"tileInfo",void 0),t([i(h)],b.prototype,"tile",void 0),t([i(j)],b.prototype,"config",void 0),t([o(0,r(w))],b.prototype,"vertex",null),t([o(0,r(p))],b.prototype,"fragment",null);class D extends d{constructor(){super(...arguments),this.type="TileDebugInfoShader"}vertex(t){const o=this.config.coordRatio.multiply(this.config.delta.add(t.position.multiply(this.config.dimensions))),e=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new g(o,1));return{glPosition:new f(e.xy,this.config.depth,1),uv:t.position}}fragment(t){const o=new y,e=u(this.texture,t.uv);return o.fragColor=new f(e.rgb.multiply(e.a),e.a),o}}t([i(x)],D.prototype,"view",void 0),t([i(m)],D.prototype,"tileInfo",void 0),t([i(h)],D.prototype,"tile",void 0),t([i(S)],D.prototype,"config",void 0),t([n(v)],D.prototype,"texture",void 0),t([o(0,r(w))],D.prototype,"vertex",null),t([o(0,r(I))],D.prototype,"fragment",null);export{b as TileDebugInfoOutlineShader,D as TileDebugInfoShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{toFloat32 as i}from"../../../normalizedTileUtils.js";import{uniform as o,UniformGroup as r}from"../../GraphShaderModule.js";import{Float as l,Vec2 as t}from"../../graph/glsl.js";class n extends r{}function d({displayLevel:e,normalizedTileView:o,referenceScale:r,requiredLevel:l,state:t}){const n=i(o.origin),d=[(n[0]-o.origin[0])*o.unitsToPixels,(n[1]-o.origin[1])*o.unitsToPixels];return{currentZoom:e,requiredLevel:l,scaleFactor:null!=r?r/t.scale:1,normalizedTileOrigin:n,normalizedTileWorldWrapId:o.worldWrapId,normalizedTileOriginOffsetPixels:d,normalizedTileUnitsToPixels:o.unitsToPixels}}e([o(l)],n.prototype,"currentZoom",void 0),e([o(l)],n.prototype,"requiredLevel",void 0),e([o(l)],n.prototype,"scaleFactor",void 0),e([o(t)],n.prototype,"normalizedTileOrigin",void 0),e([o(t)],n.prototype,"normalizedTileWorldWrapId",void 0),e([o(t)],n.prototype,"normalizedTileOriginOffsetPixels",void 0),e([o(l)],n.prototype,"normalizedTileUnitsToPixels",void 0);export{n as TileInfo,d as getTileContainerUniforms};
2
+ import{__decorate as i}from"tslib";import{toFloat32 as e}from"../../../normalizedTileUtils.js";import{uniform as o,createUniformBlockBinding as r,UniformGroup as l}from"../../GraphShaderModule.js";import{Float as t,Vec2 as n}from"../../graph/glsl.js";class s extends l{constructor(){super(...arguments),this.bindingPoint=1}}i([o(t)],s.prototype,"currentZoom",void 0),i([o(t)],s.prototype,"requiredLevel",void 0),i([o(t)],s.prototype,"scaleFactor",void 0),i([o(n)],s.prototype,"normalizedTileOrigin",void 0),i([o(n)],s.prototype,"normalizedTileWorldWrapId",void 0),i([o(n)],s.prototype,"normalizedTileOriginOffsetPixels",void 0),i([o(t)],s.prototype,"normalizedTileUnitsToPixels",void 0);const d=r("tileInfo",s).binding;function p({displayLevel:i,normalizedTileView:o,referenceScale:r,requiredLevel:l,state:t}){const n=e(o.origin),s=[(n[0]-o.origin[0])*o.unitsToPixels,(n[1]-o.origin[1])*o.unitsToPixels];return{currentZoom:i,requiredLevel:l,scaleFactor:null!=r?r/t.scale:1,normalizedTileOrigin:n,normalizedTileWorldWrapId:o.worldWrapId,normalizedTileOriginOffsetPixels:s,normalizedTileUnitsToPixels:o.unitsToPixels}}export{s as TileInfo,p as getTileInfoUniforms,d as tileInfoUniformBlockBinding};
@@ -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,define as i,option as s,input as p,FragmentInput as n,VertexInput as l,UniformGroup as a,GraphShaderModule as d,FragmentOutput as m}from"../../GraphShaderModule.js";import{Vec2 as f,Float as c,Vec4 as y,Vec3 as h}from"../../graph/glsl.js";import{Tile as g}from"./Tile.js";import{TileInfo as v}from"./TileInfo.js";import{ViewInfo as u}from"./ViewInfo.js";import{RasterVFSampling as V}from"./raster/RasterVFTransform.js";class w extends l{}t([e(0,f)],w.prototype,"position",void 0);class x extends a{}t([r(f)],x.prototype,"coordRange",void 0),t([r(c)],x.prototype,"depth",void 0),t([r(y)],x.prototype,"color",void 0);class j extends d{constructor(){super(...arguments),this.type="TileStencilShader",this.isRasterVF=!1}vertex(t){let o=t.position.multiply(this.config.coordRange);if(this.isRasterVF){const{samplingOffset:t,samplingScale:e}=this.rasterVF;o=o.multiply(e).add(t)}const e=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new h(o,1));return{glPosition:new y(e.xy,this.config.depth,1)}}fragment(t){const o=new m;return o.fragColor=this.config.color,o}}t([i],j.prototype,"isRasterVF",void 0),t([r(u)],j.prototype,"view",void 0),t([r(v)],j.prototype,"tileContainer",void 0),t([r(g)],j.prototype,"tile",void 0),t([r(x)],j.prototype,"config",void 0),t([s(V)],j.prototype,"rasterVF",void 0),t([o(0,p(w))],j.prototype,"vertex",null),t([o(0,p(n))],j.prototype,"fragment",null);export{j as TileStencilShader};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as r,define as i,option as s,input as p,FragmentInput as l,VertexInput as n,UniformGroup as a,GraphShaderModule as d,FragmentOutput as f}from"../../GraphShaderModule.js";import{Vec2 as m,Float as c,Vec4 as y,Vec3 as h}from"../../graph/glsl.js";import{Tile as g}from"./Tile.js";import{TileInfo as v}from"./TileInfo.js";import{ViewInfo as u}from"./ViewInfo.js";import{RasterVFSampling as V}from"./raster/RasterVFTransform.js";class w extends n{}t([e(0,m)],w.prototype,"position",void 0);class x extends a{}t([r(m)],x.prototype,"coordRange",void 0),t([r(c)],x.prototype,"depth",void 0),t([r(y)],x.prototype,"color",void 0);class j extends d{constructor(){super(...arguments),this.type="TileStencilShader",this.isRasterVF=!1}vertex(t){let o=t.position.multiply(this.config.coordRange);if(this.isRasterVF){const{samplingOffset:t,samplingScale:e}=this.rasterVF;o=o.multiply(e).add(t)}const e=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new h(o,1));return{glPosition:new y(e.xy,this.config.depth,1)}}fragment(t){const o=new f;return o.fragColor=this.config.color,o}}t([i],j.prototype,"isRasterVF",void 0),t([r(u)],j.prototype,"view",void 0),t([r(v)],j.prototype,"tileInfo",void 0),t([r(g)],j.prototype,"tile",void 0),t([r(x)],j.prototype,"config",void 0),t([s(V)],j.prototype,"rasterVF",void 0),t([o(0,p(w))],j.prototype,"vertex",null),t([o(0,p(l))],j.prototype,"fragment",null);export{j as TileStencilShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{getMetersPerUnitForSR as o}from"../../../../../../../core/units.js";import{uniform as i,UniformGroup as e}from"../../GraphShaderModule.js";import{Mat3 as r,Float as a}from"../../graph/glsl.js";class p extends e{}function s({pixelRatio:t,state:i}){const e=1/t;return{displayMat3:i.displayMat3,displayViewMat3:i.displayViewMat3,viewMat3:i.viewMat3,currentScale:i.scale,metersPerSRUnit:o(i.spatialReference),resolution:i.resolution,rotation:i.rotation,pixelRatio:t,antialiasing:e}}t([i(r)],p.prototype,"displayViewMat3",void 0),t([i(r)],p.prototype,"displayMat3",void 0),t([i(r)],p.prototype,"viewMat3",void 0),t([i(a)],p.prototype,"currentScale",void 0),t([i(a)],p.prototype,"metersPerSRUnit",void 0),t([i(a)],p.prototype,"resolution",void 0),t([i(a)],p.prototype,"rotation",void 0),t([i(a)],p.prototype,"pixelRatio",void 0),t([i(a)],p.prototype,"antialiasing",void 0);export{p as ViewInfo,s as getViewUniforms};
2
+ import{__decorate as t}from"tslib";import{getMetersPerUnitForSR as o}from"../../../../../../../core/units.js";import{uniform as i,createUniformBlockBinding as e,UniformGroup as r}from"../../GraphShaderModule.js";import{Mat3 as a,Float as p}from"../../graph/glsl.js";class s extends r{constructor(){super(...arguments),this.bindingPoint=0}}t([i(a)],s.prototype,"displayViewMat3",void 0),t([i(a)],s.prototype,"displayMat3",void 0),t([i(a)],s.prototype,"viewMat3",void 0),t([i(p)],s.prototype,"currentScale",void 0),t([i(p)],s.prototype,"metersPerSRUnit",void 0),t([i(p)],s.prototype,"resolution",void 0),t([i(p)],s.prototype,"rotation",void 0),t([i(p)],s.prototype,"pixelRatio",void 0),t([i(p)],s.prototype,"antialiasing",void 0);const n=e("view",s).binding;function l({pixelRatio:t,state:i}){const e=1/t;return{displayMat3:i.displayMat3,displayViewMat3:i.displayViewMat3,viewMat3:i.viewMat3,currentScale:i.scale,metersPerSRUnit:o(i.spatialReference),resolution:i.resolution,rotation:i.rotation,pixelRatio:t,antialiasing:e}}export{s as ViewInfo,l as getViewUniforms,n as viewInfoUniformBlockBinding};
@@ -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 e,Vec3 as y,ifElse as r,or as u,greaterThan as i,lessThan as s,cond as x,min as l,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 I,dot as h,normalize as v}from"../../graph/glsl.js";import{noHit as C,trueHit as R,epsilonHitTest as S,candidateHit as V}from"./constants.js";import{cross2 as j}from"./utils.js";function z(t,n){return h(t,v(n))}function T(t,n,y){const r=y.subtract(n),u=z(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 P(t){const n=f(t);return g(n.x.add(n.y).add(n.z),new e(1.05))}function q(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)),x=r.x.multiply(u.y.subtract(n.y)),l=u.x.multiply(n.y.subtract(r.y)),c=s.add(x).add(l);return new e(1).divide(c).multiply(i.multiply(new y(1,t)))}function M(t,n,y,r){return o(P(q(t,n,y,r)),new e(1))}function k(n,y,r,u){const a=r.subtract(y),w=u.subtract(y),o=j(a,w),d=t(s(o,new e(S)),i(o,new e(-S)));return x([t(c(d),M(n.xy,y,r,u)),new e(-1)],[!0,()=>{const t=T(n,y,r),e=T(n,r,u),i=T(n,u,y);return l(l(t,e),i)}])}function A(t,n,e){const r=t.tile.getViewScreenMat3(t.view,t.tileContainer),u=r.multiply(new y(n.pos,1)),i=r.multiply(new y(e.nextPos1,1)),s=r.multiply(new y(e.nextPos2,1));return k(t.hittestRequest.position,u.xy,i.xy,s.xy)}function B(t,n,e){return m(t,e).subtract(n)}function D(y,u,i,s){const x=y.x,l=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=x.subtract(d),h=a.subtract(x),v=p.subtract(b),C=l.subtract(b),R=w.subtract(l),S=v.multiply(h).subtract(f.multiply(R)),V=f.multiply(C).subtract(v.multiply(g)).divide(S),j=h.multiply(C).subtract(R.multiply(g)).divide(S),z=t(c(o(S,new e(0))),t(t(n(V,new e(0)),I(V,new e(1))),t(n(j,new e(0)),I(j,new e(1)))));return r(z,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),I(e.y,i)))}function F(n,y,r,s){const x=s.xy,c=s.zw,d=new a(c.x,x.y),b=new a(x.x,c.y),m=l(x.x,c.x),p=l(x.y,c.y),f=w(x.x,c.x),g=w(x.y,c.y),I=q(new a(m,p),n,y,r),h=q(new a(f,g),n,y,r),v=q(new a(m,g),n,y,r),C=q(new a(f,p),n,y,r),R=t(o(P(I),new e(1)),t(o(P(h),new e(1)),t(o(P(v),new e(1)),o(P(C),new e(1))))),S=D(x,d,n.xy,y.xy).add(D(d,c,n.xy,y.xy)).add(D(b,c,n.xy,y.xy)).add(D(b,x,n.xy,y.xy)),V=D(x,d,n.xy,r.xy).add(D(d,c,n.xy,r.xy)).add(D(b,c,n.xy,r.xy)).add(D(b,x,n.xy,r.xy)),j=D(x,d,y.xy,r.xy).add(D(d,c,y.xy,r.xy)).add(D(b,c,y.xy,r.xy)).add(D(b,x,y.xy,r.xy)),z=E(n.xy,m,p,f,g),T=E(y.xy,m,p,f,g),M=E(r.xy,m,p,f,g),k=t(z,t(T,M));return{hasIntersectingSegments:u(i(S,new e(0)),u(i(V,new e(0)),i(j,new e(0)))),allTriangleVerticesInside:k,triangleContainsRect:R}}function G(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:x,triangleContainsRect:l}=F(t,n,y,i);return r(s,new e(V),r(u(x,l),new e(R),new e(C)))}function H(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:x,triangleContainsRect:l}=F(t,n,y,i);return r(u(s,u(x,l)),new e(R),new e(C))}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{T as distPointSegment,k as distPointTriangle,A as hittestFill,B as hittestMarker,G as hittestMarkerScreenRect,H as hittestScreenRect,P as inTriangle,F as intersectsScreenRect,J as isRectHittest,E as pointInRect,z as projectScalar,D as segmentIntersects,q 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 x,min as l,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 I,dot as h,normalize as v}from"../../graph/glsl.js";import{noHit as R,trueHit as S,epsilonHitTest as V,candidateHit as j}from"./constants.js";import{cross2 as z}from"./utils.js";function C(t,n){return h(t,v(n))}function T(t,n,y){const r=y.subtract(n),u=C(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 P(t){const n=f(t);return g(n.x.add(n.y).add(n.z),new e(1.05))}function q(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)),x=r.x.multiply(u.y.subtract(n.y)),l=u.x.multiply(n.y.subtract(r.y)),c=s.add(x).add(l);return new e(1).divide(c).multiply(i.multiply(new y(1,t)))}function M(t,n,y,r){return o(P(q(t,n,y,r)),new e(1))}function k(n,y,r,u){const a=r.subtract(y),w=u.subtract(y),o=z(a,w),d=t(s(o,new e(V)),i(o,new e(-V)));return x([t(c(d),M(n.xy,y,r,u)),new e(-1)],[!0,()=>{const t=T(n,y,r),e=T(n,r,u),i=T(n,u,y);return l(l(t,e),i)}])}function A(t,n,e){const r=t.tile.getViewScreenMat3(t.view,t.tileInfo),u=r.multiply(new y(n.pos,1)),i=r.multiply(new y(e.nextPos1,1)),s=r.multiply(new y(e.nextPos2,1));return k(t.hittestRequest.position,u.xy,i.xy,s.xy)}function B(t,n,e){return m(t,e).subtract(n)}function D(y,u,i,s){const x=y.x,l=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=x.subtract(d),h=a.subtract(x),v=p.subtract(b),R=l.subtract(b),S=w.subtract(l),V=v.multiply(h).subtract(f.multiply(S)),j=f.multiply(R).subtract(v.multiply(g)).divide(V),z=h.multiply(R).subtract(S.multiply(g)).divide(V),C=t(c(o(V,new e(0))),t(t(n(j,new e(0)),I(j,new e(1))),t(n(z,new e(0)),I(z,new e(1)))));return r(C,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),I(e.y,i)))}function F(n,y,r,s){const x=s.xy,c=s.zw,d=new a(c.x,x.y),b=new a(x.x,c.y),m=l(x.x,c.x),p=l(x.y,c.y),f=w(x.x,c.x),g=w(x.y,c.y),I=q(new a(m,p),n,y,r),h=q(new a(f,g),n,y,r),v=q(new a(m,g),n,y,r),R=q(new a(f,p),n,y,r),S=t(o(P(I),new e(1)),t(o(P(h),new e(1)),t(o(P(v),new e(1)),o(P(R),new e(1))))),V=D(x,d,n.xy,y.xy).add(D(d,c,n.xy,y.xy)).add(D(b,c,n.xy,y.xy)).add(D(b,x,n.xy,y.xy)),j=D(x,d,n.xy,r.xy).add(D(d,c,n.xy,r.xy)).add(D(b,c,n.xy,r.xy)).add(D(b,x,n.xy,r.xy)),z=D(x,d,y.xy,r.xy).add(D(d,c,y.xy,r.xy)).add(D(b,c,y.xy,r.xy)).add(D(b,x,y.xy,r.xy)),C=E(n.xy,m,p,f,g),T=E(y.xy,m,p,f,g),M=E(r.xy,m,p,f,g),k=t(C,t(T,M));return{hasIntersectingSegments:u(i(V,new e(0)),u(i(j,new e(0)),i(z,new e(0)))),allTriangleVerticesInside:k,triangleContainsRect:S}}function G(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:x,triangleContainsRect:l}=F(t,n,y,i);return r(s,new e(j),r(u(x,l),new e(S),new e(R)))}function H(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:x,triangleContainsRect:l}=F(t,n,y,i);return r(u(s,u(x,l)),new e(S),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{T as distPointSegment,k as distPointTriangle,A as hittestFill,B as hittestMarker,G as hittestMarkerScreenRect,H as hittestScreenRect,P as inTriangle,F as intersectsScreenRect,J as isRectHittest,E as pointInRect,C as projectScalar,D as segmentIntersects,q 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 o}from"tslib";import{GraphShaderModule as i,FragmentOutput as e,location as r,uniform as p,define as s,option as l,texture as n,input as a,VertexInput as c,UniformGroup as h,FragmentInput as y}from"../../../GraphShaderModule.js";import{Vec4 as u,ifElse as g,texture2D as d,sign as v,mix as x,Vec3 as m,Vec2 as P,Float as f,Sampler2D as j}from"../../../graph/glsl.js";import{Tile as b}from"../Tile.js";import{TileInfo as k}from"../TileInfo.js";import{ViewInfo as w}from"../ViewInfo.js";import{getPixelLocation as M,isOutside as T,getPixel as S,ProjectionConfig as _,ProjectionTextures as C}from"./projection.js";class I extends c{}t([r(0,P)],I.prototype,"position",void 0);class z extends y{}class E extends h{}t([p(P)],E.prototype,"coordScale",void 0),t([p(P)],E.prototype,"srcImageSize",void 0),t([p(f)],E.prototype,"opacity",void 0);class O extends i{constructor(){super(...arguments),this.applyProjection=!0,this.lookupProjection=!1,this.bilinear=!1,this.bicubic=!1,this.nearestOnEdge=!1,this.applyPixelMask=!1,this.applyPixelHighlights=!1}fragment(t){const o=new e,i=M(t.uv,this.applyProjection?this.projectionConfig:void 0,this.applyProjection?this.projectionTextures:void 0,this.lookupProjection);let r=this._colorize(i,t.uv);this.applyPixelHighlights&&(r=this._highlightPixels(t.uv,r));const p=g(T(i),new u(0),r);let s=p.a.multiply(this.config.opacity);if(this.applyPixelMask){const o=this._getPixelMask(t.uv);s=s.multiply(o)}return o.fragColor=new u(p.rgb,1).multiply(s),o}_getPixel(t){const{config:o,bicubic:i,bilinear:e,nearestOnEdge:r}=this;return S(t,{texture:this.texture,srcImageSize:o.srcImageSize},{bicubic:i,bilinear:e,nearestOnEdge:r})}_getPixelMask(t){const o=d(this.pixelMaskTexture,t);return v(o.a)}_highlightPixels(t,o){const i=d(this.highlightTexture,t),e=v(i.a);return x(o,i,e)}}t([s],O.prototype,"applyProjection",void 0),t([s],O.prototype,"lookupProjection",void 0),t([s],O.prototype,"bilinear",void 0),t([s],O.prototype,"bicubic",void 0),t([s],O.prototype,"nearestOnEdge",void 0),t([s],O.prototype,"applyPixelMask",void 0),t([s],O.prototype,"applyPixelHighlights",void 0),t([p(E)],O.prototype,"config",void 0),t([l(_)],O.prototype,"projectionConfig",void 0),t([n(j)],O.prototype,"texture",void 0),t([n(C)],O.prototype,"projectionTextures",void 0),t([n(j)],O.prototype,"pixelMaskTexture",void 0),t([n(j)],O.prototype,"highlightTexture",void 0),t([o(0,a(z))],O.prototype,"fragment",null);class H extends O{vertex(t){const o=t.position,i=new m(o.multiply(this.config.coordScale),1),e=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(i);return{uv:o,glPosition:new u(e,1)}}}t([p(w)],H.prototype,"view",void 0),t([p(k)],H.prototype,"tileContainer",void 0),t([p(b)],H.prototype,"tile",void 0),t([o(0,a(I))],H.prototype,"vertex",null);class V extends O{vertex(t){const o=t.position,i=o.multiply(2).subtract(1);return{uv:o,glPosition:new u(i,0,1)}}}t([o(0,a(I))],V.prototype,"vertex",null);export{H as BaseRasterColorizerShader,V as BaseRasterFullscreenShader,z as RasterColorizerFragmentInput,E as RasterConfig};
2
+ import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as i,FragmentOutput as e,location as r,uniform as p,define as s,option as l,texture as n,input as c,VertexInput as a,UniformGroup as h,FragmentInput as y}from"../../../GraphShaderModule.js";import{Vec4 as u,ifElse as g,texture2D as d,sign as v,mix as x,Vec3 as m,Vec2 as f,Float as P,Sampler2D as j}from"../../../graph/glsl.js";import{Tile as b}from"../Tile.js";import{TileInfo as k}from"../TileInfo.js";import{ViewInfo as w}from"../ViewInfo.js";import{getPixelLocation as M,isOutside as T,getPixel as I,ProjectionConfig as S,ProjectionTextures as _}from"./projection.js";class z extends a{}t([r(0,f)],z.prototype,"position",void 0);class E extends y{}class O extends h{}t([p(f)],O.prototype,"coordScale",void 0),t([p(f)],O.prototype,"srcImageSize",void 0),t([p(P)],O.prototype,"opacity",void 0);class C extends i{constructor(){super(...arguments),this.applyProjection=!0,this.lookupProjection=!1,this.bilinear=!1,this.bicubic=!1,this.nearestOnEdge=!1,this.applyPixelMask=!1,this.applyPixelHighlights=!1}fragment(t){const o=new e,i=M(t.uv,this.applyProjection?this.projectionConfig:void 0,this.applyProjection?this.projectionTextures:void 0,this.lookupProjection);let r=this._colorize(i,t.uv);this.applyPixelHighlights&&(r=this._highlightPixels(t.uv,r));const p=g(T(i),new u(0),r);let s=p.a.multiply(this.config.opacity);if(this.applyPixelMask){const o=this._getPixelMask(t.uv);s=s.multiply(o)}return o.fragColor=new u(p.rgb,1).multiply(s),o}_getPixel(t){const{config:o,bicubic:i,bilinear:e,nearestOnEdge:r}=this;return I(t,{texture:this.texture,srcImageSize:o.srcImageSize},{bicubic:i,bilinear:e,nearestOnEdge:r})}_getPixelMask(t){const o=d(this.pixelMaskTexture,t);return v(o.a)}_highlightPixels(t,o){const i=d(this.highlightTexture,t),e=v(i.a);return x(o,i,e)}}t([s],C.prototype,"applyProjection",void 0),t([s],C.prototype,"lookupProjection",void 0),t([s],C.prototype,"bilinear",void 0),t([s],C.prototype,"bicubic",void 0),t([s],C.prototype,"nearestOnEdge",void 0),t([s],C.prototype,"applyPixelMask",void 0),t([s],C.prototype,"applyPixelHighlights",void 0),t([p(O)],C.prototype,"config",void 0),t([l(S)],C.prototype,"projectionConfig",void 0),t([n(j)],C.prototype,"texture",void 0),t([n(_)],C.prototype,"projectionTextures",void 0),t([n(j)],C.prototype,"pixelMaskTexture",void 0),t([n(j)],C.prototype,"highlightTexture",void 0),t([o(0,c(E))],C.prototype,"fragment",null);class H extends C{vertex(t){const o=t.position,i=new m(o.multiply(this.config.coordScale),1),e=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(i);return{uv:o,glPosition:new u(e,1)}}}t([p(w)],H.prototype,"view",void 0),t([p(k)],H.prototype,"tileInfo",void 0),t([p(b)],H.prototype,"tile",void 0),t([o(0,c(z))],H.prototype,"vertex",null);class V extends C{vertex(t){const o=t.position,i=o.multiply(2).subtract(1);return{uv:o,glPosition:new u(i,0,1)}}}t([o(0,c(z))],V.prototype,"vertex",null);export{H as BaseRasterColorizerShader,V as BaseRasterFullscreenShader,E as RasterColorizerFragmentInput,O as RasterConfig};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as p,define as s,option as a,input as n,VertexInput as l,UniformGroup as d,FragmentInput as y}from"../../../GraphShaderModule.js";import{Float as c,clamp as m,Vec2 as v,cos as f,sin as g,Int as h,Vec4 as u,FixedArray as x}from"../../../graph/glsl.js";import{Tile as w}from"../Tile.js";import{TileInfo as b}from"../TileInfo.js";import{ViewInfo as R}from"../ViewInfo.js";import{transformRasterVFPosition as j,RasterVFSampling as S,RasterVFLocalTransform as T}from"./RasterVFTransform.js";class G extends l{}o([r(0,v)],G.prototype,"position",void 0),o([r(1,v)],G.prototype,"offset",void 0),o([r(2,v)],G.prototype,"vv",void 0);class V extends y{}class C extends d{}o([p(v)],C.prototype,"coordScale",void 0),o([p(v)],C.prototype,"symbolSize",void 0),o([p(v)],C.prototype,"symbolPercentRange",void 0),o([p(v)],C.prototype,"dataRange",void 0),o([p(c)],C.prototype,"rotation",void 0),o([p(x.ofType(u,48))],C.prototype,"colors",void 0),o([p(c)],C.prototype,"opacity",void 0);const F=new c(3.14159265359);class P extends e{constructor(){super(...arguments),this.type="MagDirShader",this.rotationGeographic=!1,this.dataRange=!1,this.tiled=!1}vertex(o){const{position:t,offset:e,vv:i}=o,{dataRange:r,rotation:p,symbolSize:s,symbolPercentRange:a,colors:n,coordScale:l}=this.config;let d,y=e.y.add(p);if(this.rotationGeographic||(y=F.multiply(new c(2)).subtract(y).subtract(F.divide(new c(2)))),this.dataRange){const o=m(i.y.subtract(r.x).divide(r.y.subtract(r.x)),new c(0),new c(1)),t=a.x.add(o.multiply(a.y.subtract(a.x)));d=m(t,a.x,a.y)}else d=a.x.add(a.y).divide(new c(2));const x=new v(f(y),g(y)).multiply(e.x),w=t.add(x.multiply(d.multiply(s))),b=n.get(new h(i.x)),R=j(this.tiled,w.multiply(l),this.view,this.tileContainer,this.tile,this.rasterVF,this.localTransform);return{glPosition:new u(R,1),color:b}}fragment(o){const t=new i;return t.fragColor=o.color.multiply(this.config.opacity),t}}o([s],P.prototype,"rotationGeographic",void 0),o([s],P.prototype,"dataRange",void 0),o([s],P.prototype,"tiled",void 0),o([p(R)],P.prototype,"view",void 0),o([a(b)],P.prototype,"tileContainer",void 0),o([a(w)],P.prototype,"tile",void 0),o([a(S)],P.prototype,"rasterVF",void 0),o([a(T)],P.prototype,"localTransform",void 0),o([p(C)],P.prototype,"config",void 0),o([t(0,n(G))],P.prototype,"vertex",null),o([t(0,n(V))],P.prototype,"fragment",null);export{P as MagDirShader};
2
+ import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as p,define as s,option as a,input as n,VertexInput as l,UniformGroup as d,FragmentInput as y}from"../../../GraphShaderModule.js";import{Float as c,clamp as m,Vec2 as v,cos as f,sin as g,Int as h,Vec4 as u,FixedArray as x}from"../../../graph/glsl.js";import{Tile as w}from"../Tile.js";import{TileInfo as b}from"../TileInfo.js";import{ViewInfo as R}from"../ViewInfo.js";import{transformRasterVFPosition as j,RasterVFSampling as S,RasterVFLocalTransform as T}from"./RasterVFTransform.js";class G extends l{}o([r(0,v)],G.prototype,"position",void 0),o([r(1,v)],G.prototype,"offset",void 0),o([r(2,v)],G.prototype,"vv",void 0);class I extends y{}const V=12;class F extends d{}o([p(v)],F.prototype,"coordScale",void 0),o([p(v)],F.prototype,"symbolSize",void 0),o([p(v)],F.prototype,"symbolPercentRange",void 0),o([p(v)],F.prototype,"dataRange",void 0),o([p(c)],F.prototype,"rotation",void 0),o([p(x.ofType(u,V))],F.prototype,"colors",void 0),o([p(c)],F.prototype,"opacity",void 0);const P=new c(3.14159265359);class z extends e{constructor(){super(...arguments),this.type="MagDirShader",this.rotationGeographic=!1,this.dataRange=!1,this.tiled=!1}vertex(o){const{position:t,offset:e,vv:i}=o,{dataRange:r,rotation:p,symbolSize:s,symbolPercentRange:a,colors:n,coordScale:l}=this.config;let d,y=e.y.add(p);if(this.rotationGeographic||(y=P.multiply(new c(2)).subtract(y).subtract(P.divide(new c(2)))),this.dataRange){const o=m(i.y.subtract(r.x).divide(r.y.subtract(r.x)),new c(0),new c(1)),t=a.x.add(o.multiply(a.y.subtract(a.x)));d=m(t,a.x,a.y)}else d=a.x.add(a.y).divide(new c(2));const x=new v(f(y),g(y)).multiply(e.x),w=t.add(x.multiply(d.multiply(s))),b=n.get(new h(i.x)),R=j(this.tiled,w.multiply(l),this.view,this.tileInfo,this.tile,this.rasterVF,this.localTransform);return{glPosition:new u(R,1),color:b}}fragment(o){const t=new i;return t.fragColor=o.color.multiply(this.config.opacity),t}}o([s],z.prototype,"rotationGeographic",void 0),o([s],z.prototype,"dataRange",void 0),o([s],z.prototype,"tiled",void 0),o([p(R)],z.prototype,"view",void 0),o([a(b)],z.prototype,"tileInfo",void 0),o([a(w)],z.prototype,"tile",void 0),o([a(S)],z.prototype,"rasterVF",void 0),o([a(T)],z.prototype,"localTransform",void 0),o([p(F)],z.prototype,"config",void 0),o([t(0,n(G))],z.prototype,"vertex",null),o([t(0,n(I))],z.prototype,"fragment",null);export{z as MagDirShader,V as magDirColorCount};
@@ -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{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as p,define as n,option as s,input as d,VertexInput as l,UniformGroup as a,FragmentInput as y}from"../../../GraphShaderModule.js";import{clamp as m,Float as c,Vec4 as v,length as f,smoothstep as w,ifElse as u,lessThan as h,abs as g,Vec2 as x}from"../../../graph/glsl.js";import{Tile as b}from"../Tile.js";import{TileInfo as j}from"../TileInfo.js";import{oneMinus as R}from"../utils.js";import{ViewInfo as S}from"../ViewInfo.js";import{transformRasterVFPosition as C,RasterVFSampling as T,RasterVFLocalTransform as V}from"./RasterVFTransform.js";class F extends l{}t([r(0,x)],F.prototype,"position",void 0),t([r(1,x)],F.prototype,"offset",void 0),t([r(2,x)],F.prototype,"vv",void 0);class P extends y{}class z extends a{}t([p(x)],z.prototype,"coordScale",void 0),t([p(x)],z.prototype,"symbolSize",void 0),t([p(x)],z.prototype,"symbolPercentRange",void 0),t([p(x)],z.prototype,"dataRange",void 0),t([p(c)],z.prototype,"opacity",void 0);const I=new v(new c(.2),new c(.2),new c(.2),new c(1)),G=new c(.02),M=new c(.25),k=new c(.42),q=new c(.15);class A extends e{constructor(){super(...arguments),this.type="ScalarShader",this.innerCircle=!1,this.dataRange=!1,this.tiled=!1}vertex(t){const{position:o,offset:e,vv:i}=t,{dataRange:r,symbolSize:p,symbolPercentRange:n,coordScale:s}=this.config;let d;if(r){const t=m(i.y.subtract(r.x).divide(r.y.subtract(r.x)),new c(0),new c(1)),o=n.y.subtract(n.x).multiply(t).add(n.x);d=m(o,n.x,n.y)}else d=n.x.add(n.y).divide(new c(2));const l=p.multiply(d),a=o.add(e.multiply(l)),y=C(this.tiled,a.multiply(s),this.view,this.tileContainer,this.tile,this.rasterVF,this.localTransform);return{glPosition:new v(y,1),pos:e}}fragment(t){const o=new i,{opacity:e}=this.config,{pos:r}=t,p=f(r);let n,s=w(k,k.add(G),p);return s=s.multiply(R(w(k.add(G),k.add(new c(.1).add(G)),p))),this.innerCircle?(n=w(M,M.add(G),p),n=n.multiply(R(w(M.add(G),M.add(new c(.1).add(G)),p)))):n=u(h(g(r.x),q),new c(1),new c(0)).multiply(u(h(g(r.y),q),new c(1),new c(0))),o.fragColor=I.multiply(e).multiply(n.add(s)),o}}t([n],A.prototype,"innerCircle",void 0),t([n],A.prototype,"dataRange",void 0),t([n],A.prototype,"tiled",void 0),t([p(S)],A.prototype,"view",void 0),t([s(j)],A.prototype,"tileContainer",void 0),t([s(b)],A.prototype,"tile",void 0),t([s(T)],A.prototype,"rasterVF",void 0),t([s(V)],A.prototype,"localTransform",void 0),t([p(z)],A.prototype,"config",void 0),t([o(0,d(F))],A.prototype,"vertex",null),t([o(0,d(P))],A.prototype,"fragment",null);export{A as ScalarShader};
2
+ import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as p,define as n,option as s,input as d,VertexInput as l,UniformGroup as a,FragmentInput as y}from"../../../GraphShaderModule.js";import{clamp as m,Float as c,Vec4 as v,length as f,smoothstep as w,ifElse as u,lessThan as h,abs as g,Vec2 as x}from"../../../graph/glsl.js";import{Tile as b}from"../Tile.js";import{TileInfo as j}from"../TileInfo.js";import{oneMinus as R}from"../utils.js";import{ViewInfo as S}from"../ViewInfo.js";import{transformRasterVFPosition as T,RasterVFSampling as C,RasterVFLocalTransform as I}from"./RasterVFTransform.js";class V extends l{}t([r(0,x)],V.prototype,"position",void 0),t([r(1,x)],V.prototype,"offset",void 0),t([r(2,x)],V.prototype,"vv",void 0);class F extends y{}class P extends a{}t([p(x)],P.prototype,"coordScale",void 0),t([p(x)],P.prototype,"symbolSize",void 0),t([p(x)],P.prototype,"symbolPercentRange",void 0),t([p(x)],P.prototype,"dataRange",void 0),t([p(c)],P.prototype,"opacity",void 0);const z=new v(new c(.2),new c(.2),new c(.2),new c(1)),G=new c(.02),M=new c(.25),k=new c(.42),q=new c(.15);class A extends e{constructor(){super(...arguments),this.type="ScalarShader",this.innerCircle=!1,this.dataRange=!1,this.tiled=!1}vertex(t){const{position:o,offset:e,vv:i}=t,{dataRange:r,symbolSize:p,symbolPercentRange:n,coordScale:s}=this.config;let d;if(r){const t=m(i.y.subtract(r.x).divide(r.y.subtract(r.x)),new c(0),new c(1)),o=n.y.subtract(n.x).multiply(t).add(n.x);d=m(o,n.x,n.y)}else d=n.x.add(n.y).divide(new c(2));const l=p.multiply(d),a=o.add(e.multiply(l)),y=T(this.tiled,a.multiply(s),this.view,this.tileInfo,this.tile,this.rasterVF,this.localTransform);return{glPosition:new v(y,1),pos:e}}fragment(t){const o=new i,{opacity:e}=this.config,{pos:r}=t,p=f(r);let n,s=w(k,k.add(G),p);return s=s.multiply(R(w(k.add(G),k.add(new c(.1).add(G)),p))),this.innerCircle?(n=w(M,M.add(G),p),n=n.multiply(R(w(M.add(G),M.add(new c(.1).add(G)),p)))):n=u(h(g(r.x),q),new c(1),new c(0)).multiply(u(h(g(r.y),q),new c(1),new c(0))),o.fragColor=z.multiply(e).multiply(n.add(s)),o}}t([n],A.prototype,"innerCircle",void 0),t([n],A.prototype,"dataRange",void 0),t([n],A.prototype,"tiled",void 0),t([p(S)],A.prototype,"view",void 0),t([s(j)],A.prototype,"tileInfo",void 0),t([s(b)],A.prototype,"tile",void 0),t([s(C)],A.prototype,"rasterVF",void 0),t([s(I)],A.prototype,"localTransform",void 0),t([p(P)],A.prototype,"config",void 0),t([o(0,d(V))],A.prototype,"vertex",null),t([o(0,d(F))],A.prototype,"fragment",null);export{A as ScalarShader};
@@ -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{GraphShaderModule as e,FragmentOutput as r,location as i,uniform as p,define as l,option as s,texture as n,input as d,FragmentInput as a,VertexInput as y,UniformGroup as c}from"../../../GraphShaderModule.js";import{Vec3 as h,Vec4 as m,Vec2 as v,fract as u,mix as x,texture2D as f,Float as g,Mat3 as w,Sampler2D as C}from"../../../graph/glsl.js";import{Tile as b}from"../Tile.js";import{TileInfo as M}from"../TileInfo.js";import{ViewInfo as S}from"../ViewInfo.js";class T extends y{}t([i(0,v)],T.prototype,"position",void 0);class j extends c{}t([p(g)],j.prototype,"coordRange",void 0),t([p(g)],j.prototype,"depth",void 0);class I extends c{}t([p(m)],I.prototype,"tlbr",void 0),t([p(v)],I.prototype,"mosaicSize",void 0),t([p(g)],I.prototype,"opacity",void 0);class z extends c{}t([p(w)],z.prototype,"mat",void 0);class V extends c{}t([p(m)],V.prototype,"color",void 0);class k extends e{constructor(){super(...arguments),this.type="VTLShaderBackground"}vertex(t){const o=new h(this.layerInfo.coordRange.multiply(t.position),1),e=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(o).xy,r=new m(e,this.layerInfo.depth,1);let i,p=null;if(1===this.renderMode){const o=this.pattern,{tlbr:e,mosaicSize:r}=o;p=this.patternMat.mat.multiply(new h(t.position,1)).xy,i=e.divide(r.xyxy)}else i=new m(0),p=new v(0);return{glPosition:r,tlbr:i,tileTextureCoord:p}}fragment(t){const o=new r;switch(this.renderMode){case 1:{const e=u(t.tileTextureCoord),{opacity:r}=this.pattern,i=x(t.tlbr.xy,t.tlbr.zw,e),p=f(this.patternTexture,i);o.fragColor=r.multiply(p);break}default:o.fragColor=this.getSolidColor()}return o}getSolidColor(){return null!=this.solidColor?this.solidColor.color:new m(1,0,0,1)}}t([l],k.prototype,"renderMode",void 0),t([p(j)],k.prototype,"layerInfo",void 0),t([p(S)],k.prototype,"view",void 0),t([p(M)],k.prototype,"tileContainer",void 0),t([p(b)],k.prototype,"tile",void 0),t([s(V)],k.prototype,"solidColor",void 0),t([s(I)],k.prototype,"pattern",void 0),t([s(z)],k.prototype,"patternMat",void 0),t([n(C)],k.prototype,"patternTexture",void 0),t([o(0,d(T))],k.prototype,"vertex",null),t([o(0,d(a))],k.prototype,"fragment",null);export{k as VTLShaderBackground};
2
+ import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as i,uniform as p,define as l,option as s,texture as n,input as d,FragmentInput as a,VertexInput as y,UniformGroup as c}from"../../../GraphShaderModule.js";import{Vec3 as h,Vec4 as m,Vec2 as v,fract as u,mix as f,texture2D as x,Float as g,Mat3 as w,Sampler2D as C}from"../../../graph/glsl.js";import{Tile as b}from"../Tile.js";import{TileInfo as I}from"../TileInfo.js";import{ViewInfo as M}from"../ViewInfo.js";class S extends y{}t([i(0,v)],S.prototype,"position",void 0);class T extends c{}t([p(g)],T.prototype,"coordRange",void 0),t([p(g)],T.prototype,"depth",void 0);class j extends c{}t([p(m)],j.prototype,"tlbr",void 0),t([p(v)],j.prototype,"mosaicSize",void 0),t([p(g)],j.prototype,"opacity",void 0);class z extends c{}t([p(w)],z.prototype,"mat",void 0);class V extends c{}t([p(m)],V.prototype,"color",void 0);class k extends e{constructor(){super(...arguments),this.type="VTLShaderBackground"}vertex(t){const o=new h(this.layerInfo.coordRange.multiply(t.position),1),e=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(o).xy,r=new m(e,this.layerInfo.depth,1);let i,p=null;if(1===this.renderMode){const o=this.pattern,{tlbr:e,mosaicSize:r}=o;p=this.patternMat.mat.multiply(new h(t.position,1)).xy,i=e.divide(r.xyxy)}else i=new m(0),p=new v(0);return{glPosition:r,tlbr:i,tileTextureCoord:p}}fragment(t){const o=new r;switch(this.renderMode){case 1:{const e=u(t.tileTextureCoord),{opacity:r}=this.pattern,i=f(t.tlbr.xy,t.tlbr.zw,e),p=x(this.patternTexture,i);o.fragColor=r.multiply(p);break}default:o.fragColor=this.getSolidColor()}return o}getSolidColor(){return null!=this.solidColor?this.solidColor.color:new m(1,0,0,1)}}t([l],k.prototype,"renderMode",void 0),t([p(T)],k.prototype,"layerInfo",void 0),t([p(M)],k.prototype,"view",void 0),t([p(I)],k.prototype,"tileInfo",void 0),t([p(b)],k.prototype,"tile",void 0),t([s(V)],k.prototype,"solidColor",void 0),t([s(j)],k.prototype,"pattern",void 0),t([s(z)],k.prototype,"patternMat",void 0),t([n(C)],k.prototype,"patternTexture",void 0),t([o(0,d(S))],k.prototype,"vertex",null),t([o(0,d(a))],k.prototype,"fragment",null);export{k as VTLShaderBackground};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as s,define as p,option as l,input as a,VertexInput as d,UniformGroup as y,FragmentInput as u}from"../../../GraphShaderModule.js";import{max as v,mod as c,Vec2 as n,Float as h,Vec3 as k,Vec4 as x,length as w,smoothstep as g,negate as T,cond as M,lessThan as m,mix as C}from"../../../graph/glsl.js";import{Tile as b}from"../Tile.js";import{TileInfo as f}from"../TileInfo.js";import{ViewInfo as W}from"../ViewInfo.js";class O extends d{}o([r(0,n)],O.prototype,"position",void 0),o([r(1,h)],O.prototype,"radius",void 0),o([r(2,x)],O.prototype,"color",void 0),o([r(3,h)],O.prototype,"opacity",void 0),o([r(4,h)],O.prototype,"strokeWidth",void 0),o([r(5,x)],O.prototype,"strokeColor",void 0),o([r(6,h)],O.prototype,"strokeOpacity",void 0),o([r(7,h)],O.prototype,"blur",void 0),o([r(8,h)],O.prototype,"radiusTo",void 0),o([r(9,x)],O.prototype,"colorTo",void 0),o([r(10,h)],O.prototype,"opacityTo",void 0),o([r(11,h)],O.prototype,"strokeWidthTo",void 0),o([r(12,x)],O.prototype,"strokeColorTo",void 0),o([r(13,h)],O.prototype,"strokeOpacityTo",void 0),o([r(14,h)],O.prototype,"blurTo",void 0);class S extends u{}class V extends y{}o([s(n)],V.prototype,"circleTranslation",void 0),o([s(h)],V.prototype,"depth",void 0),o([s(h)],V.prototype,"antialiasingWidth",void 0),o([s(h)],V.prototype,"tileOpacity",void 0);class j extends y{}o([s(h)],j.prototype,"value",void 0);class A extends y{}o([s(h)],A.prototype,"value",void 0);class B extends y{}o([s(h)],B.prototype,"value",void 0);class I extends y{}o([s(h)],I.prototype,"value",void 0);class R extends y{}o([s(h)],R.prototype,"value",void 0);class D extends y{}o([s(h)],D.prototype,"value",void 0);class G extends y{}o([s(h)],G.prototype,"value",void 0);class L extends y{}o([s(h)],L.prototype,"value",void 0);class P extends y{}o([s(h)],P.prototype,"value",void 0);class q extends y{}o([s(h)],q.prototype,"value",void 0);class z extends y{}o([s(x)],z.prototype,"value",void 0);class E extends y{}o([s(h)],E.prototype,"value",void 0);class F extends y{}o([s(x)],F.prototype,"value",void 0);class H extends y{}o([s(h)],H.prototype,"value",void 0);class J extends e{constructor(){super(...arguments),this.type="VTLShaderCircle"}vertex(o){const t=this.getColor(o).multiply(this.getOpacity(o)),e=this.getStrokeColor(o).multiply(this.getStrokeOpacity(o)),i=this.getStrokeWidth(o),r=this.getRadius(o),s=this.getBlur(o),p=r.add(i),l=v(s,this.config.antialiasingWidth.divide(p)),a=c(o.position,new n(2)).multiply(new h(2)).subtract(new h(1)),d=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,y=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new k(o.position.multiply(.5),new h(1))).add(d.multiply(new k(a.multiply(p).add(this.config.circleTranslation),new h(0))));return{glPosition:new x(y.xy,this.config.depth,1),strokeWidth:i,radius:r,blur:l,color:t,offset:a,strokeColor:e}}fragment(o){const t=new i,e=w(o.offset),r=g(new h(0),T(o.blur),e.subtract(new h(1))),s=M([m(o.strokeWidth,new h(.01)),()=>new h(0)],[!0,g(T(o.blur),new h(0),e.subtract(o.radius.divide(o.radius.add(o.strokeWidth))))]);return t.fragColor=C(o.color,o.strokeColor,s).multiply(r).multiply(this.config.tileOpacity),t}getRadius(o){return this.radiusMix?.value&&o.radius&&o.radiusTo?C(o.radius,o.radiusTo,this.radiusMix.value):o.radius?o.radius:this.radius?.value||new h(0)}getBlur(o){return this.blurMix?.value&&o.blur&&o.blurTo?C(o.blur,o.blurTo,this.blurMix.value):o.blur?o.blur:this.blur?.value||new h(0)}getOpacity(o){return this.opacityMix?.value&&o.opacity&&o.opacityTo?C(o.opacity,o.opacityTo,this.opacityMix.value):o.opacity?o.opacity:this.opacity?.value||new h(1)}getStrokeWidth(o){return this.strokeWidthMix?.value&&o.strokeWidth&&o.strokeWidthTo?C(o.strokeWidth,o.strokeWidthTo,this.strokeWidthMix.value):o.strokeWidth?o.strokeWidth:this.strokeWidth?.value||new h(0)}getColor(o){return this.colorMix?.value&&o.color&&o.colorTo?C(o.color,o.colorTo,this.colorMix.value):o.color?o.color:this.color?.value||new x(0)}getStrokeColor(o){return this.strokeColorMix?.value&&o.strokeColor&&o.strokeColorTo?C(o.strokeColor,o.strokeColorTo,this.strokeColorMix.value):o.strokeColor?o.strokeColor:this.strokeColor?.value||new x(0)}getStrokeOpacity(o){return this.strokeOpacityMix?.value&&o.strokeOpacity&&o.strokeOpacityTo?C(o.strokeOpacity,o.strokeOpacityTo,this.strokeOpacityMix.value):o.strokeOpacity?o.strokeOpacity:this.strokeOpacity?.value||new h(0)}}o([s(W)],J.prototype,"view",void 0),o([s(f)],J.prototype,"tileContainer",void 0),o([s(b)],J.prototype,"tile",void 0),o([s(V)],J.prototype,"config",void 0),o([p],J.prototype,"translateAnchorViewport",void 0),o([l(j)],J.prototype,"radius",void 0),o([l(A)],J.prototype,"radiusMix",void 0),o([l(B)],J.prototype,"blur",void 0),o([l(I)],J.prototype,"blurMix",void 0),o([l(R)],J.prototype,"opacity",void 0),o([l(D)],J.prototype,"opacityMix",void 0),o([l(G)],J.prototype,"strokeOpacity",void 0),o([l(L)],J.prototype,"strokeOpacityMix",void 0),o([l(P)],J.prototype,"strokeWidth",void 0),o([l(q)],J.prototype,"strokeWidthMix",void 0),o([l(z)],J.prototype,"color",void 0),o([l(E)],J.prototype,"colorMix",void 0),o([l(F)],J.prototype,"strokeColor",void 0),o([l(H)],J.prototype,"strokeColorMix",void 0),o([t(0,a(O))],J.prototype,"vertex",null),o([t(0,a(S))],J.prototype,"fragment",null);export{J as VTLShaderCircle};
2
+ import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as s,define as p,option as l,input as a,VertexInput as d,UniformGroup as y,FragmentInput as u}from"../../../GraphShaderModule.js";import{max as v,mod as c,Vec2 as n,Float as h,Vec3 as k,Vec4 as x,length as w,smoothstep as g,negate as T,cond as M,lessThan as m,mix as f}from"../../../graph/glsl.js";import{Tile as C}from"../Tile.js";import{TileInfo as b}from"../TileInfo.js";import{ViewInfo as W}from"../ViewInfo.js";class O extends d{}o([r(0,n)],O.prototype,"position",void 0),o([r(1,h)],O.prototype,"radius",void 0),o([r(2,x)],O.prototype,"color",void 0),o([r(3,h)],O.prototype,"opacity",void 0),o([r(4,h)],O.prototype,"strokeWidth",void 0),o([r(5,x)],O.prototype,"strokeColor",void 0),o([r(6,h)],O.prototype,"strokeOpacity",void 0),o([r(7,h)],O.prototype,"blur",void 0),o([r(8,h)],O.prototype,"radiusTo",void 0),o([r(9,x)],O.prototype,"colorTo",void 0),o([r(10,h)],O.prototype,"opacityTo",void 0),o([r(11,h)],O.prototype,"strokeWidthTo",void 0),o([r(12,x)],O.prototype,"strokeColorTo",void 0),o([r(13,h)],O.prototype,"strokeOpacityTo",void 0),o([r(14,h)],O.prototype,"blurTo",void 0);class S extends u{}class V extends y{}o([s(n)],V.prototype,"circleTranslation",void 0),o([s(h)],V.prototype,"depth",void 0),o([s(h)],V.prototype,"antialiasingWidth",void 0),o([s(h)],V.prototype,"tileOpacity",void 0);class j extends y{}o([s(h)],j.prototype,"value",void 0);class I extends y{}o([s(h)],I.prototype,"value",void 0);class A extends y{}o([s(h)],A.prototype,"value",void 0);class B extends y{}o([s(h)],B.prototype,"value",void 0);class R extends y{}o([s(h)],R.prototype,"value",void 0);class D extends y{}o([s(h)],D.prototype,"value",void 0);class G extends y{}o([s(h)],G.prototype,"value",void 0);class L extends y{}o([s(h)],L.prototype,"value",void 0);class P extends y{}o([s(h)],P.prototype,"value",void 0);class q extends y{}o([s(h)],q.prototype,"value",void 0);class z extends y{}o([s(x)],z.prototype,"value",void 0);class E extends y{}o([s(h)],E.prototype,"value",void 0);class F extends y{}o([s(x)],F.prototype,"value",void 0);class H extends y{}o([s(h)],H.prototype,"value",void 0);class J extends e{constructor(){super(...arguments),this.type="VTLShaderCircle"}vertex(o){const t=this.getColor(o).multiply(this.getOpacity(o)),e=this.getStrokeColor(o).multiply(this.getStrokeOpacity(o)),i=this.getStrokeWidth(o),r=this.getRadius(o),s=this.getBlur(o),p=r.add(i),l=v(s,this.config.antialiasingWidth.divide(p)),a=c(o.position,new n(2)).multiply(new h(2)).subtract(new h(1)),d=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,y=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new k(o.position.multiply(.5),new h(1))).add(d.multiply(new k(a.multiply(p).add(this.config.circleTranslation),new h(0))));return{glPosition:new x(y.xy,this.config.depth,1),strokeWidth:i,radius:r,blur:l,color:t,offset:a,strokeColor:e}}fragment(o){const t=new i,e=w(o.offset),r=g(new h(0),T(o.blur),e.subtract(new h(1))),s=M([m(o.strokeWidth,new h(.01)),()=>new h(0)],[!0,g(T(o.blur),new h(0),e.subtract(o.radius.divide(o.radius.add(o.strokeWidth))))]);return t.fragColor=f(o.color,o.strokeColor,s).multiply(r).multiply(this.config.tileOpacity),t}getRadius(o){return this.radiusMix?.value&&o.radius&&o.radiusTo?f(o.radius,o.radiusTo,this.radiusMix.value):o.radius?o.radius:this.radius?.value||new h(0)}getBlur(o){return this.blurMix?.value&&o.blur&&o.blurTo?f(o.blur,o.blurTo,this.blurMix.value):o.blur?o.blur:this.blur?.value||new h(0)}getOpacity(o){return this.opacityMix?.value&&o.opacity&&o.opacityTo?f(o.opacity,o.opacityTo,this.opacityMix.value):o.opacity?o.opacity:this.opacity?.value||new h(1)}getStrokeWidth(o){return this.strokeWidthMix?.value&&o.strokeWidth&&o.strokeWidthTo?f(o.strokeWidth,o.strokeWidthTo,this.strokeWidthMix.value):o.strokeWidth?o.strokeWidth:this.strokeWidth?.value||new h(0)}getColor(o){return this.colorMix?.value&&o.color&&o.colorTo?f(o.color,o.colorTo,this.colorMix.value):o.color?o.color:this.color?.value||new x(0)}getStrokeColor(o){return this.strokeColorMix?.value&&o.strokeColor&&o.strokeColorTo?f(o.strokeColor,o.strokeColorTo,this.strokeColorMix.value):o.strokeColor?o.strokeColor:this.strokeColor?.value||new x(0)}getStrokeOpacity(o){return this.strokeOpacityMix?.value&&o.strokeOpacity&&o.strokeOpacityTo?f(o.strokeOpacity,o.strokeOpacityTo,this.strokeOpacityMix.value):o.strokeOpacity?o.strokeOpacity:this.strokeOpacity?.value||new h(0)}}o([s(W)],J.prototype,"view",void 0),o([s(b)],J.prototype,"tileInfo",void 0),o([s(C)],J.prototype,"tile",void 0),o([s(V)],J.prototype,"config",void 0),o([p],J.prototype,"translateAnchorViewport",void 0),o([l(j)],J.prototype,"radius",void 0),o([l(I)],J.prototype,"radiusMix",void 0),o([l(A)],J.prototype,"blur",void 0),o([l(B)],J.prototype,"blurMix",void 0),o([l(R)],J.prototype,"opacity",void 0),o([l(D)],J.prototype,"opacityMix",void 0),o([l(G)],J.prototype,"strokeOpacity",void 0),o([l(L)],J.prototype,"strokeOpacityMix",void 0),o([l(P)],J.prototype,"strokeWidth",void 0),o([l(q)],J.prototype,"strokeWidthMix",void 0),o([l(z)],J.prototype,"color",void 0),o([l(E)],J.prototype,"colorMix",void 0),o([l(F)],J.prototype,"strokeColor",void 0),o([l(H)],J.prototype,"strokeColorMix",void 0),o([t(0,a(O))],J.prototype,"vertex",null),o([t(0,a(S))],J.prototype,"fragment",null);export{J as VTLShaderCircle};
@@ -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{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as p,option as l,texture as s,define as n,input as a,VertexInput as y,UniformGroup as c,FragmentInput as d}from"../../../GraphShaderModule.js";import{Vec2 as v,Float as u,Mat3 as h,negate as w,Vec3 as x,Vec4 as f,fract as m,mix as g,texture2D as T,pow as b,ceil as C,log2 as M,abs as O,Sampler2D as V}from"../../../graph/glsl.js";import{Tile as j}from"../Tile.js";import{TileInfo as S}from"../TileInfo.js";import{ViewInfo as z}from"../ViewInfo.js";class F extends y{}t([r(0,v)],F.prototype,"position",void 0),t([r(1,f)],F.prototype,"color",void 0),t([r(2,u)],F.prototype,"opacity",void 0),t([r(3,f)],F.prototype,"tlbr",void 0),t([r(4,f)],F.prototype,"colorTo",void 0),t([r(5,u)],F.prototype,"opacityTo",void 0);class L extends d{}class A extends c{}t([p(u)],A.prototype,"depth",void 0),t([p(v)],A.prototype,"fillTranslation",void 0),t([p(u)],A.prototype,"tileOpacity",void 0);class B extends c{}t([p(v)],B.prototype,"mosaicSize",void 0),t([p(u)],B.prototype,"patternFactor",void 0),t([p(f)],B.prototype,"tlbr",void 0);class I extends c{}t([p(u)],I.prototype,"value",void 0);class R extends c{}t([p(u)],R.prototype,"value",void 0);class D extends c{}t([p(f)],D.prototype,"value",void 0);class G extends c{}t([p(u)],G.prototype,"value",void 0);class P extends e{constructor(){super(...arguments),this.type="VTLShaderFill"}vertex(t){const o=this.getColor(t).multiply(this.getOpacity(t));let e=new v(0),i=this.getTLBR(t);if(1===this.fillType){const{mosaicSize:o,patternFactor:r}=this.patternOptions,p=k(i.z.subtract(i.x)),l=k(i.w.subtract(i.y)),s=new u(1).divide(p.multiply(r)),n=new u(1).divide(l.multiply(r));e=new h(s,new u(0),new u(0),new u(0),w(n),new u(0),new u(0),new u(0),new u(1)).multiply(new x(t.position,new u(1))).xy,i=i.divide(o.xyxy)}const r=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,p=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new x(t.position,1)).add(r.multiply(new x(this.config.fillTranslation,0)));return{glPosition:new f(p.xy,this.config.depth,1),color:o,tlbr:i,tileTextureCoord:e}}fragment(t){const o=new i;if(1===this.fillType){const{tlbr:e,tileTextureCoord:i}=t,r=m(i),p=g(e.xy,e.zw,r),l=T(this.patternTexture,p);o.fragColor=t.color.a.multiply(l)}else o.fragColor=t.color;return o.fragColor=this.config.tileOpacity.multiply(o.fragColor),o}getColor(t){return this.colorMix?.value&&t.color&&t.colorTo?g(t.color,t.colorTo,this.colorMix.value):t.color?t.color:this.color?.value||new f(0)}getOpacity(t){return this.opacityMix?.value&&t.opacity&&t.opacityTo?g(t.opacity,t.opacityTo,this.opacityMix.value):t.opacity?t.opacity:this.opacity?.value||new u(1)}getTLBR(t){return t.tlbr?t.tlbr:this.patternOptions?.tlbr||new f(0)}}function k(t){return b(new u(2),C(M(O(t))))}t([p(z)],P.prototype,"view",void 0),t([p(S)],P.prototype,"tileContainer",void 0),t([p(j)],P.prototype,"tile",void 0),t([p(A)],P.prototype,"config",void 0),t([l(B)],P.prototype,"patternOptions",void 0),t([l(I)],P.prototype,"opacity",void 0),t([l(R)],P.prototype,"opacityMix",void 0),t([l(D)],P.prototype,"color",void 0),t([l(G)],P.prototype,"colorMix",void 0),t([s(V)],P.prototype,"patternTexture",void 0),t([n],P.prototype,"fillType",void 0),t([n],P.prototype,"translateAnchorViewport",void 0),t([o(0,a(F))],P.prototype,"vertex",null),t([o(0,a(L))],P.prototype,"fragment",null);export{P as VTLShaderFill};
2
+ import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as p,option as l,texture as s,define as n,input as a,VertexInput as y,UniformGroup as c,FragmentInput as d}from"../../../GraphShaderModule.js";import{Vec2 as v,Float as u,Mat3 as h,negate as w,Vec3 as f,Vec4 as x,fract as m,mix as g,texture2D as T,pow as b,ceil as M,log2 as C,abs as O,Sampler2D as V}from"../../../graph/glsl.js";import{Tile as j}from"../Tile.js";import{TileInfo as S}from"../TileInfo.js";import{ViewInfo as z}from"../ViewInfo.js";class I extends y{}t([r(0,v)],I.prototype,"position",void 0),t([r(1,x)],I.prototype,"color",void 0),t([r(2,u)],I.prototype,"opacity",void 0),t([r(3,x)],I.prototype,"tlbr",void 0),t([r(4,x)],I.prototype,"colorTo",void 0),t([r(5,u)],I.prototype,"opacityTo",void 0);class F extends d{}class L extends c{}t([p(u)],L.prototype,"depth",void 0),t([p(v)],L.prototype,"fillTranslation",void 0),t([p(u)],L.prototype,"tileOpacity",void 0);class A extends c{}t([p(v)],A.prototype,"mosaicSize",void 0),t([p(u)],A.prototype,"patternFactor",void 0),t([p(x)],A.prototype,"tlbr",void 0);class B extends c{}t([p(u)],B.prototype,"value",void 0);class R extends c{}t([p(u)],R.prototype,"value",void 0);class D extends c{}t([p(x)],D.prototype,"value",void 0);class G extends c{}t([p(u)],G.prototype,"value",void 0);class P extends e{constructor(){super(...arguments),this.type="VTLShaderFill"}vertex(t){const o=this.getColor(t).multiply(this.getOpacity(t));let e=new v(0),i=this.getTLBR(t);if(1===this.fillType){const{mosaicSize:o,patternFactor:r}=this.patternOptions,p=k(i.z.subtract(i.x)),l=k(i.w.subtract(i.y)),s=new u(1).divide(p.multiply(r)),n=new u(1).divide(l.multiply(r));e=new h(s,new u(0),new u(0),new u(0),w(n),new u(0),new u(0),new u(0),new u(1)).multiply(new f(t.position,new u(1))).xy,i=i.divide(o.xyxy)}const r=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,p=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new f(t.position,1)).add(r.multiply(new f(this.config.fillTranslation,0)));return{glPosition:new x(p.xy,this.config.depth,1),color:o,tlbr:i,tileTextureCoord:e}}fragment(t){const o=new i;if(1===this.fillType){const{tlbr:e,tileTextureCoord:i}=t,r=m(i),p=g(e.xy,e.zw,r),l=T(this.patternTexture,p);o.fragColor=t.color.a.multiply(l)}else o.fragColor=t.color;return o.fragColor=this.config.tileOpacity.multiply(o.fragColor),o}getColor(t){return this.colorMix?.value&&t.color&&t.colorTo?g(t.color,t.colorTo,this.colorMix.value):t.color?t.color:this.color?.value||new x(0)}getOpacity(t){return this.opacityMix?.value&&t.opacity&&t.opacityTo?g(t.opacity,t.opacityTo,this.opacityMix.value):t.opacity?t.opacity:this.opacity?.value||new u(1)}getTLBR(t){return t.tlbr?t.tlbr:this.patternOptions?.tlbr||new x(0)}}function k(t){return b(new u(2),M(C(O(t))))}t([p(z)],P.prototype,"view",void 0),t([p(S)],P.prototype,"tileInfo",void 0),t([p(j)],P.prototype,"tile",void 0),t([p(L)],P.prototype,"config",void 0),t([l(A)],P.prototype,"patternOptions",void 0),t([l(B)],P.prototype,"opacity",void 0),t([l(R)],P.prototype,"opacityMix",void 0),t([l(D)],P.prototype,"color",void 0),t([l(G)],P.prototype,"colorMix",void 0),t([s(V)],P.prototype,"patternTexture",void 0),t([n],P.prototype,"fillType",void 0),t([n],P.prototype,"translateAnchorViewport",void 0),t([o(0,a(I))],P.prototype,"vertex",null),t([o(0,a(F))],P.prototype,"fragment",null);export{P as VTLShaderFill};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as l,uniform as p,texture as r,option as a,define as s,input as n,VertexInput as d,UniformGroup as y,FragmentInput as c}from"../../../GraphShaderModule.js";import{mod as h,Float as v,unpackVec4 as u,clamp as w,step as m,abs as x,Vec3 as g,Vec4 as f,texture2D as T,max as C,ifElse as M,greaterThan as z,and as W,lessThan as b,equal as S,min as O,mix as I,Vec2 as V,Sampler2D as j}from"../../../graph/glsl.js";import{Tile as A}from"../Tile.js";import{TileInfo as B}from"../TileInfo.js";import{oneMinus as H,rgba2float as D}from"../utils.js";import{ViewInfo as P}from"../ViewInfo.js";const k=new v(1/8),U=new v(120/86),G=new v(256/360),L=new v(1/255.5),q=new v(16/86),E=new v(.248062016);class F extends d{}o([l(0,f)],F.prototype,"positionAndOffset",void 0),o([l(1,f)],F.prototype,"iconInfo",void 0),o([l(2,f)],F.prototype,"color",void 0),o([l(3,v)],F.prototype,"opacity",void 0),o([l(4,f)],F.prototype,"haloColor",void 0),o([l(5,v)],F.prototype,"haloWidth",void 0),o([l(6,v)],F.prototype,"haloBlur",void 0),o([l(7,v)],F.prototype,"size",void 0),o([l(8,f)],F.prototype,"colorTo",void 0),o([l(9,v)],F.prototype,"opacityTo",void 0),o([l(10,f)],F.prototype,"haloColorTo",void 0),o([l(11,v)],F.prototype,"haloWidthTo",void 0),o([l(12,v)],F.prototype,"haloBlurTo",void 0),o([l(13,v)],F.prototype,"sizeTo",void 0),o([l(14,v)],F.prototype,"opacityInfo",void 0);class J extends c{}class K extends y{}o([p(V)],K.prototype,"mosaicSize",void 0);class N extends y{}o([p(V)],N.prototype,"iconTranslation",void 0),o([p(v)],N.prototype,"depth",void 0),o([p(v)],N.prototype,"level",void 0),o([p(v)],N.prototype,"keepUpright",void 0),o([p(v)],N.prototype,"fadeDuration",void 0),o([p(v)],N.prototype,"time",void 0),o([p(v)],N.prototype,"isStencilPass",void 0),o([p(v)],N.prototype,"tileOpacity",void 0);class Q extends y{}o([p(v)],Q.prototype,"value",void 0);class R extends y{}o([p(v)],R.prototype,"value",void 0);class X extends y{}o([p(v)],X.prototype,"value",void 0);class Y extends y{}o([p(v)],Y.prototype,"value",void 0);class Z extends y{}o([p(f)],Z.prototype,"value",void 0);class $ extends y{}o([p(v)],$.prototype,"value",void 0);class _ extends y{}o([p(f)],_.prototype,"value",void 0);class oo extends y{}o([p(v)],oo.prototype,"value",void 0);class to extends y{}o([p(v)],to.prototype,"value",void 0);class eo extends y{}o([p(v)],eo.prototype,"value",void 0);class io extends e{constructor(){super(...arguments),this.type="VTLShaderIcon",this.iconType=0}vertex(o){const t=this.getSize(o),e=this.getColor(o),i=this.getHaloColor(o),l=this.getHaloWidth(o);let p=this.getOpacity(o);const{iconInfo:r,opacityInfo:a,positionAndOffset:s}=o,{depth:n,fadeDuration:d,iconTranslation:y,keepUpright:c,level:T,time:C}=this.config,{mosaicSize:M}=this.page,z=this.rotationAlignmentMap?this.view.displayViewMat3:this.view.displayMat3,W=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,b=h(a,new v(128)),S=a.subtract(b).divide(new v(128)),O=b.divide(new v(127)),[I,V]=u(r,8),j=w(O.add(new v(2).multiply(S.subtract(new v(.5)).multiply(C.divide(d)))),new v(0),new v(1));p=p.multiply(j);const A=V[1],B=V[2],D=V[3],P=I.xy.divide(M);let L=new v(0);const q=h(this.view.rotation.multiply(G),new v(256)),E=h(A.add(q),new v(256));L=L.add(new v(1).subtract(m(c,new v(0))).multiply(m(new v(64),E).multiply(H(m(new v(192),E))))),L=L.add(H(m(B,T))),L=L.add(m(D,T)),L=L.add(m(p,new v(0)));let F=k.multiply(s.zw);const J=x(F);1===this.iconType&&(F=F.multiply(U));const K=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new g(s.xy,new v(1))).add(z.multiply(new g(t.multiply(F),0))).add(W.multiply(new g(y,0)));return{glPosition:new f(K.xy,n.add(L),new v(1)),color:e,opacity:p,haloWidth:l,haloColor:i,size:J,tex:P}}fragment(o){const t=new i,{color:e,tex:l,opacity:p,size:r,haloWidth:a,haloColor:s}=o,{isStencilPass:n,tileOpacity:d}=this.config;if(1===this.iconType){let o=e;const i=D(T(this.pageTexture,l)).subtract(new v(.5)).multiply(E).multiply(C(r.x,r.y));o=o.multiply(w(new v(.5).subtract(i),new v(0),new v(1))),t.fragColor=M(z(a,new v(.25)),this.getColorWithOutline(i,r,a,o,s,p),o.multiply(p)).multiply(d)}else{const o=T(this.pageTexture,l);W(S(n,new v(1)),b(o.a,L)),t.discard=W(S(n,new v(1)),b(o.a,L)),t.fragColor=o.multiply(p).multiply(d)}return t}getColorWithOutline(o,t,e,i,l,p){const r=E.multiply(O(e,q.multiply(C(t.x,t.y))));let a=l;return a=a.multiply(w(new v(.5).subtract(x(o).subtract(r)),new v(0),new v(1))),p.multiply(lo(i,a))}getSize(o){return this.sizeMix?.value&&o.size&&o.sizeTo?I(o.size,o.sizeTo,this.sizeMix.value):o.size?o.size:this.size?.value||new v(0)}getColor(o){return this.colorMix?.value&&o.color&&o.colorTo?I(o.color,o.colorTo,this.colorMix.value):o.color?o.color:this.color?.value||new f(0)}getOpacity(o){return this.opacityMix?.value&&o.opacity&&o.opacityTo?I(o.opacity,o.opacityTo,this.opacityMix.value):o.opacity?o.opacity:this.opacity?.value||new v(1)}getHaloColor(o){return this.haloColorMix?.value&&o.haloColor&&o.haloColorTo?I(o.haloColor,o.haloColorTo,this.haloColorMix.value):o.haloColor?o.haloColor:this.haloColor?.value||new f(1)}getHaloWidth(o){if(1===this.iconType){if(this.opacityMix?.value&&o.haloWidth&&o.haloWidthTo)return I(o.haloWidth,o.haloWidthTo,this.opacityMix.value);if(o.haloWidth)return o.haloWidth}return new v(0)}}function lo(o,t){const e=t.a.add(o.a.multiply(H(t.a))),i=t.rgb.add(o.rgb.multiply(H(t.a)));return new f(i,e)}o([p(P)],io.prototype,"view",void 0),o([p(B)],io.prototype,"tileContainer",void 0),o([p(A)],io.prototype,"tile",void 0),o([p(K)],io.prototype,"page",void 0),o([r(j)],io.prototype,"pageTexture",void 0),o([p(N)],io.prototype,"config",void 0),o([a(Q)],io.prototype,"size",void 0),o([a(R)],io.prototype,"sizeMix",void 0),o([a(X)],io.prototype,"opacity",void 0),o([a(Y)],io.prototype,"opacityMix",void 0),o([a(Z)],io.prototype,"color",void 0),o([a($)],io.prototype,"colorMix",void 0),o([a(_)],io.prototype,"haloColor",void 0),o([a(oo)],io.prototype,"haloColorMix",void 0),o([a(to)],io.prototype,"haloBlur",void 0),o([a(eo)],io.prototype,"haloBlurMix",void 0),o([s],io.prototype,"iconType",void 0),o([s],io.prototype,"rotationAlignmentMap",void 0),o([s],io.prototype,"translateAnchorViewport",void 0),o([t(0,n(F))],io.prototype,"vertex",null),o([t(0,n(J))],io.prototype,"fragment",null);export{io as VTLShaderIcon};
2
+ import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as l,uniform as p,texture as r,option as a,define as s,input as n,VertexInput as d,UniformGroup as y,FragmentInput as c}from"../../../GraphShaderModule.js";import{mod as h,Float as v,unpackVec4 as u,clamp as w,step as m,abs as x,Vec3 as g,Vec4 as f,texture2D as T,max as C,ifElse as M,greaterThan as z,and as W,lessThan as b,equal as I,min as S,mix as O,Vec2 as V,Sampler2D as j}from"../../../graph/glsl.js";import{Tile as A}from"../Tile.js";import{TileInfo as B}from"../TileInfo.js";import{oneMinus as H,rgba2float as D}from"../utils.js";import{ViewInfo as P}from"../ViewInfo.js";const k=new v(1/8),U=new v(120/86),G=new v(256/360),L=new v(1/255.5),q=new v(16/86),E=new v(.248062016);class F extends d{}o([l(0,f)],F.prototype,"positionAndOffset",void 0),o([l(1,f)],F.prototype,"iconInfo",void 0),o([l(2,f)],F.prototype,"color",void 0),o([l(3,v)],F.prototype,"opacity",void 0),o([l(4,f)],F.prototype,"haloColor",void 0),o([l(5,v)],F.prototype,"haloWidth",void 0),o([l(6,v)],F.prototype,"haloBlur",void 0),o([l(7,v)],F.prototype,"size",void 0),o([l(8,f)],F.prototype,"colorTo",void 0),o([l(9,v)],F.prototype,"opacityTo",void 0),o([l(10,f)],F.prototype,"haloColorTo",void 0),o([l(11,v)],F.prototype,"haloWidthTo",void 0),o([l(12,v)],F.prototype,"haloBlurTo",void 0),o([l(13,v)],F.prototype,"sizeTo",void 0),o([l(14,v)],F.prototype,"opacityInfo",void 0);class J extends c{}class K extends y{}o([p(V)],K.prototype,"mosaicSize",void 0);class N extends y{}o([p(V)],N.prototype,"iconTranslation",void 0),o([p(v)],N.prototype,"depth",void 0),o([p(v)],N.prototype,"level",void 0),o([p(v)],N.prototype,"keepUpright",void 0),o([p(v)],N.prototype,"fadeDuration",void 0),o([p(v)],N.prototype,"time",void 0),o([p(v)],N.prototype,"isStencilPass",void 0),o([p(v)],N.prototype,"tileOpacity",void 0);class Q extends y{}o([p(v)],Q.prototype,"value",void 0);class R extends y{}o([p(v)],R.prototype,"value",void 0);class X extends y{}o([p(v)],X.prototype,"value",void 0);class Y extends y{}o([p(v)],Y.prototype,"value",void 0);class Z extends y{}o([p(f)],Z.prototype,"value",void 0);class $ extends y{}o([p(v)],$.prototype,"value",void 0);class _ extends y{}o([p(f)],_.prototype,"value",void 0);class oo extends y{}o([p(v)],oo.prototype,"value",void 0);class to extends y{}o([p(v)],to.prototype,"value",void 0);class eo extends y{}o([p(v)],eo.prototype,"value",void 0);class io extends e{constructor(){super(...arguments),this.type="VTLShaderIcon",this.iconType=0}vertex(o){const t=this.getSize(o),e=this.getColor(o),i=this.getHaloColor(o),l=this.getHaloWidth(o);let p=this.getOpacity(o);const{iconInfo:r,opacityInfo:a,positionAndOffset:s}=o,{depth:n,fadeDuration:d,iconTranslation:y,keepUpright:c,level:T,time:C}=this.config,{mosaicSize:M}=this.page,z=this.rotationAlignmentMap?this.view.displayViewMat3:this.view.displayMat3,W=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,b=h(a,new v(128)),I=a.subtract(b).divide(new v(128)),S=b.divide(new v(127)),[O,V]=u(r,8),j=w(S.add(new v(2).multiply(I.subtract(new v(.5)).multiply(C.divide(d)))),new v(0),new v(1));p=p.multiply(j);const A=V[1],B=V[2],D=V[3],P=O.xy.divide(M);let L=new v(0);const q=h(this.view.rotation.multiply(G),new v(256)),E=h(A.add(q),new v(256));L=L.add(new v(1).subtract(m(c,new v(0))).multiply(m(new v(64),E).multiply(H(m(new v(192),E))))),L=L.add(H(m(B,T))),L=L.add(m(D,T)),L=L.add(m(p,new v(0)));let F=k.multiply(s.zw);const J=x(F);1===this.iconType&&(F=F.multiply(U));const K=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new g(s.xy,new v(1))).add(z.multiply(new g(t.multiply(F),0))).add(W.multiply(new g(y,0)));return{glPosition:new f(K.xy,n.add(L),new v(1)),color:e,opacity:p,haloWidth:l,haloColor:i,size:J,tex:P}}fragment(o){const t=new i,{color:e,tex:l,opacity:p,size:r,haloWidth:a,haloColor:s}=o,{isStencilPass:n,tileOpacity:d}=this.config;if(1===this.iconType){let o=e;const i=D(T(this.pageTexture,l)).subtract(new v(.5)).multiply(E).multiply(C(r.x,r.y));o=o.multiply(w(new v(.5).subtract(i),new v(0),new v(1))),t.fragColor=M(z(a,new v(.25)),this.getColorWithOutline(i,r,a,o,s,p),o.multiply(p)).multiply(d)}else{const o=T(this.pageTexture,l);W(I(n,new v(1)),b(o.a,L)),t.discard=W(I(n,new v(1)),b(o.a,L)),t.fragColor=o.multiply(p).multiply(d)}return t}getColorWithOutline(o,t,e,i,l,p){const r=E.multiply(S(e,q.multiply(C(t.x,t.y))));let a=l;return a=a.multiply(w(new v(.5).subtract(x(o).subtract(r)),new v(0),new v(1))),p.multiply(lo(i,a))}getSize(o){return this.sizeMix?.value&&o.size&&o.sizeTo?O(o.size,o.sizeTo,this.sizeMix.value):o.size?o.size:this.size?.value||new v(0)}getColor(o){return this.colorMix?.value&&o.color&&o.colorTo?O(o.color,o.colorTo,this.colorMix.value):o.color?o.color:this.color?.value||new f(0)}getOpacity(o){return this.opacityMix?.value&&o.opacity&&o.opacityTo?O(o.opacity,o.opacityTo,this.opacityMix.value):o.opacity?o.opacity:this.opacity?.value||new v(1)}getHaloColor(o){return this.haloColorMix?.value&&o.haloColor&&o.haloColorTo?O(o.haloColor,o.haloColorTo,this.haloColorMix.value):o.haloColor?o.haloColor:this.haloColor?.value||new f(1)}getHaloWidth(o){if(1===this.iconType){if(this.opacityMix?.value&&o.haloWidth&&o.haloWidthTo)return O(o.haloWidth,o.haloWidthTo,this.opacityMix.value);if(o.haloWidth)return o.haloWidth}return new v(0)}}function lo(o,t){const e=t.a.add(o.a.multiply(H(t.a))),i=t.rgb.add(o.rgb.multiply(H(t.a)));return new f(i,e)}o([p(P)],io.prototype,"view",void 0),o([p(B)],io.prototype,"tileInfo",void 0),o([p(A)],io.prototype,"tile",void 0),o([p(K)],io.prototype,"page",void 0),o([r(j)],io.prototype,"pageTexture",void 0),o([p(N)],io.prototype,"config",void 0),o([a(Q)],io.prototype,"size",void 0),o([a(R)],io.prototype,"sizeMix",void 0),o([a(X)],io.prototype,"opacity",void 0),o([a(Y)],io.prototype,"opacityMix",void 0),o([a(Z)],io.prototype,"color",void 0),o([a($)],io.prototype,"colorMix",void 0),o([a(_)],io.prototype,"haloColor",void 0),o([a(oo)],io.prototype,"haloColorMix",void 0),o([a(to)],io.prototype,"haloBlur",void 0),o([a(eo)],io.prototype,"haloBlurMix",void 0),o([s],io.prototype,"iconType",void 0),o([s],io.prototype,"rotationAlignmentMap",void 0),o([s],io.prototype,"translateAnchorViewport",void 0),o([t(0,n(F))],io.prototype,"vertex",null),o([t(0,n(J))],io.prototype,"fragment",null);export{io as VTLShaderIcon};
@@ -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{GraphShaderModule as o,FragmentOutput as i,location as l,uniform as r,define as p,option as a,texture as s,input as d,FragmentInput as n,VertexInput as y,UniformGroup as u}from"../../../GraphShaderModule.js";import{Vec2 as v,Float as c,Vec3 as h,Vec4 as w,dot as f,length as m,clamp as x,fract as g,mix as T,texture2D as b,Sampler2D as M}from"../../../graph/glsl.js";import{Tile as C}from"../Tile.js";import{TileInfo as z}from"../TileInfo.js";import{rgba2float as L}from"../utils.js";import{ViewInfo as O}from"../ViewInfo.js";const S=1/31,V=15.5,W=8;class j extends y{}t([l(0,v)],j.prototype,"position",void 0),t([l(1,w)],j.prototype,"extrudeOffset",void 0),t([l(2,w)],j.prototype,"directionNormal",void 0),t([l(3,v)],j.prototype,"accumulatedDistance",void 0),t([l(4,w)],j.prototype,"color",void 0),t([l(5,c)],j.prototype,"width",void 0),t([l(6,c)],j.prototype,"opacity",void 0),t([l(7,c)],j.prototype,"blur",void 0),t([l(8,c)],j.prototype,"offset",void 0),t([l(9,w)],j.prototype,"tlbr",void 0),t([l(10,w)],j.prototype,"colorTo",void 0),t([l(11,c)],j.prototype,"widthTo",void 0),t([l(12,c)],j.prototype,"opacityTo",void 0),t([l(13,c)],j.prototype,"blurTo",void 0),t([l(14,c)],j.prototype,"offsetTo",void 0);class D extends u{}t([r(v)],D.prototype,"lineTranslation",void 0),t([r(c)],D.prototype,"depth",void 0);class R extends u{}t([r(v)],R.prototype,"mosaicSize",void 0);class I extends u{}t([r(c)],I.prototype,"tileOpacity",void 0);class B extends u{}t([r(w)],B.prototype,"value",void 0);class N extends u{}t([r(c)],N.prototype,"value",void 0);class A extends u{}t([r(c)],A.prototype,"value",void 0);class F extends u{}t([r(c)],F.prototype,"value",void 0);class G extends u{}t([r(c)],G.prototype,"value",void 0);class P extends u{}t([r(c)],P.prototype,"value",void 0);class Z extends u{}t([r(c)],Z.prototype,"value",void 0);class k extends u{}t([r(c)],k.prototype,"value",void 0);class q extends u{}t([r(c)],q.prototype,"value",void 0);class E extends u{}t([r(c)],E.prototype,"value",void 0);class H extends u{}t([r(w)],H.prototype,"value",void 0);class J extends o{constructor(){super(...arguments),this.type="VTLShaderLine"}vertex(t){const e=this.getColor(t).multiply(this.getOpacity(t)),o=this.getBlur(t).add(this.view.antialiasing),i=t.directionNormal.zw.multiply(S);let l=this.getTLBR(t);const r=this.getWidth(t);let p=new v(0),a=new c(1);1!==this.lineType&&2!==this.lineType||(p=new v(l.z.subtract(l.x),l.y.subtract(l.w)),l=l.divide(this.page.mosaicSize.xyxy),a=1===this.lineType?r.divide(p.y):r.divide(V).multiply(.5));const s=new c(r.add(this.view.antialiasing)).multiply(.5),d=t.directionNormal.xy.multiply(S),n=t.extrudeOffset.zw.multiply(S).multiply(this.getOffset(t)),y=s.multiply(S).multiply(t.extrudeOffset.xy),u=this.tile.getZoomFactor(this.view,this.tileContainer),m=new c(W).divide(u),x=this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new h(t.position.add(n.multiply(m)),1)),g=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,T=new h(this.view.displayViewMat3.multiply(new h(y,0))).add(g.multiply(new h(this.layerInfo.lineTranslation,0))),b=x.add(T),M=new w(b.xy,this.layerInfo.depth,1);let C=new c(0);return 1!==this.lineType&&2!==this.lineType||(C=t.accumulatedDistance.x.multiply(u.divide(new c(W))).add(f(d,y.add(n)))),{glPosition:M,color:e,tlbr:l,normal:i,patternSize:p,widthRatio:a,halfLineWidth:s,blur:o,accumulatedDistance:C}}fragment(t){const e=new i,o=m(t.normal).multiply(t.halfLineWidth),l=new c(t.halfLineWidth.subtract(o)).divide(t.blur),r=x(l,new c(0),new c(1));if(1===this.lineType){const o=g(t.accumulatedDistance.divide(t.patternSize.x.multiply(t.widthRatio))),i=new c(.5).add(t.normal.y.multiply(t.halfLineWidth.divide(t.patternSize.y.multiply(t.widthRatio)))),l=T(t.tlbr.xy,t.tlbr.zw,new v(o,i)),p=b(this.pageTexture,l);e.fragColor=p.multiply(r).multiply(t.color.a)}else if(2===this.lineType){const o=g(t.accumulatedDistance.multiply(.5).divide(t.patternSize.x.multiply(t.widthRatio))),i=new c(.5).add(new c(.25).multiply(t.normal.y)),l=T(t.tlbr.xy,t.tlbr.zw,new v(o,i)),p=L(b(this.pageTexture,l)).subtract(new c(.5)).multiply(t.halfLineWidth.add(this.view.antialiasing.multiply(.5)));e.fragColor=r.multiply(x(new c(.5).subtract(p),new c(0),new c(1))).multiply(t.color)}else e.fragColor=t.color.multiply(r);return e.fragColor=this.tileConfig.tileOpacity.multiply(e.fragColor),e}getColor(t){return this.colorMix?.value&&t.color&&t.colorTo?T(t.color,t.colorTo,this.colorMix.value):t.color?t.color:this.color?.value||new w(0)}getWidth(t){return this.widthMix?.value&&t.width&&t.widthTo?T(t.width,t.widthTo,this.widthMix.value):t.width?t.width:this.width?.value||new c(0)}getBlur(t){return this.blurMix?.value&&t.blur&&t.blurTo?T(t.blur,t.blurTo,this.blurMix.value):t.blur?t.blur:this.blur?.value||new c(0)}getOpacity(t){return this.opacityMix?.value&&t.opacity&&t.opacityTo?T(t.opacity,t.opacityTo,this.opacityMix.value):t.opacity?t.opacity:this.opacity?.value||new c(1)}getOffset(t){return this.offsetMix?.value&&t.offset&&t.offsetTo?T(t.offset,t.offsetTo,this.offsetMix.value):t.offset?t.offset:this.offset?.value||new c(0)}getTLBR(t){return t.tlbr?t.tlbr:this.tlbr?.value||new w(0)}}t([p],J.prototype,"lineType",void 0),t([p],J.prototype,"translateAnchorViewport",void 0),t([r(O)],J.prototype,"view",void 0),t([r(z)],J.prototype,"tileContainer",void 0),t([r(C)],J.prototype,"tile",void 0),t([r(D)],J.prototype,"layerInfo",void 0),t([r(I)],J.prototype,"tileConfig",void 0),t([a(R)],J.prototype,"page",void 0),t([a(B)],J.prototype,"color",void 0),t([a(N)],J.prototype,"colorMix",void 0),t([a(A)],J.prototype,"width",void 0),t([a(F)],J.prototype,"widthMix",void 0),t([a(G)],J.prototype,"opacity",void 0),t([a(P)],J.prototype,"opacityMix",void 0),t([a(Z)],J.prototype,"blur",void 0),t([a(k)],J.prototype,"blurMix",void 0),t([a(q)],J.prototype,"offset",void 0),t([a(E)],J.prototype,"offsetMix",void 0),t([a(H)],J.prototype,"tlbr",void 0),t([s(M)],J.prototype,"pageTexture",void 0),t([e(0,d(j))],J.prototype,"vertex",null),t([e(0,d(n))],J.prototype,"fragment",null);export{J as VTLShaderLine};
2
+ import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as o,FragmentOutput as i,location as l,uniform as p,define as r,option as s,texture as a,input as d,FragmentInput as n,VertexInput as y,UniformGroup as u}from"../../../GraphShaderModule.js";import{Vec2 as v,Float as c,Vec3 as h,Vec4 as w,dot as f,length as m,clamp as x,fract as g,mix as T,texture2D as b,Sampler2D as M}from"../../../graph/glsl.js";import{Tile as z}from"../Tile.js";import{TileInfo as C}from"../TileInfo.js";import{rgba2float as L}from"../utils.js";import{ViewInfo as O}from"../ViewInfo.js";const S=1/31,I=15.5,V=8;class W extends y{}t([l(0,v)],W.prototype,"position",void 0),t([l(1,w)],W.prototype,"extrudeOffset",void 0),t([l(2,w)],W.prototype,"directionNormal",void 0),t([l(3,v)],W.prototype,"accumulatedDistance",void 0),t([l(4,w)],W.prototype,"color",void 0),t([l(5,c)],W.prototype,"width",void 0),t([l(6,c)],W.prototype,"opacity",void 0),t([l(7,c)],W.prototype,"blur",void 0),t([l(8,c)],W.prototype,"offset",void 0),t([l(9,w)],W.prototype,"tlbr",void 0),t([l(10,w)],W.prototype,"colorTo",void 0),t([l(11,c)],W.prototype,"widthTo",void 0),t([l(12,c)],W.prototype,"opacityTo",void 0),t([l(13,c)],W.prototype,"blurTo",void 0),t([l(14,c)],W.prototype,"offsetTo",void 0);class j extends u{}t([p(v)],j.prototype,"lineTranslation",void 0),t([p(c)],j.prototype,"depth",void 0);class D extends u{}t([p(v)],D.prototype,"mosaicSize",void 0);class R extends u{}t([p(c)],R.prototype,"tileOpacity",void 0);class B extends u{}t([p(w)],B.prototype,"value",void 0);class N extends u{}t([p(c)],N.prototype,"value",void 0);class A extends u{}t([p(c)],A.prototype,"value",void 0);class F extends u{}t([p(c)],F.prototype,"value",void 0);class G extends u{}t([p(c)],G.prototype,"value",void 0);class P extends u{}t([p(c)],P.prototype,"value",void 0);class Z extends u{}t([p(c)],Z.prototype,"value",void 0);class k extends u{}t([p(c)],k.prototype,"value",void 0);class q extends u{}t([p(c)],q.prototype,"value",void 0);class E extends u{}t([p(c)],E.prototype,"value",void 0);class H extends u{}t([p(w)],H.prototype,"value",void 0);class J extends o{constructor(){super(...arguments),this.type="VTLShaderLine"}vertex(t){const e=this.getColor(t).multiply(this.getOpacity(t)),o=this.getBlur(t).add(this.view.antialiasing),i=t.directionNormal.zw.multiply(S);let l=this.getTLBR(t);const p=this.getWidth(t);let r=new v(0),s=new c(1);1!==this.lineType&&2!==this.lineType||(r=new v(l.z.subtract(l.x),l.y.subtract(l.w)),l=l.divide(this.page.mosaicSize.xyxy),s=1===this.lineType?p.divide(r.y):p.divide(I).multiply(.5));const a=new c(p.add(this.view.antialiasing)).multiply(.5),d=t.directionNormal.xy.multiply(S),n=t.extrudeOffset.zw.multiply(S).multiply(this.getOffset(t)),y=a.multiply(S).multiply(t.extrudeOffset.xy),u=this.tile.getZoomFactor(this.view,this.tileInfo),m=new c(V).divide(u),x=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new h(t.position.add(n.multiply(m)),1)),g=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,T=new h(this.view.displayViewMat3.multiply(new h(y,0))).add(g.multiply(new h(this.layerInfo.lineTranslation,0))),b=x.add(T),M=new w(b.xy,this.layerInfo.depth,1);let z=new c(0);return 1!==this.lineType&&2!==this.lineType||(z=t.accumulatedDistance.x.multiply(u.divide(new c(V))).add(f(d,y.add(n)))),{glPosition:M,color:e,tlbr:l,normal:i,patternSize:r,widthRatio:s,halfLineWidth:a,blur:o,accumulatedDistance:z}}fragment(t){const e=new i,o=m(t.normal).multiply(t.halfLineWidth),l=new c(t.halfLineWidth.subtract(o)).divide(t.blur),p=x(l,new c(0),new c(1));if(1===this.lineType){const o=g(t.accumulatedDistance.divide(t.patternSize.x.multiply(t.widthRatio))),i=new c(.5).add(t.normal.y.multiply(t.halfLineWidth.divide(t.patternSize.y.multiply(t.widthRatio)))),l=T(t.tlbr.xy,t.tlbr.zw,new v(o,i)),r=b(this.pageTexture,l);e.fragColor=r.multiply(p).multiply(t.color.a)}else if(2===this.lineType){const o=g(t.accumulatedDistance.multiply(.5).divide(t.patternSize.x.multiply(t.widthRatio))),i=new c(.5).add(new c(.25).multiply(t.normal.y)),l=T(t.tlbr.xy,t.tlbr.zw,new v(o,i)),r=L(b(this.pageTexture,l)).subtract(new c(.5)).multiply(t.halfLineWidth.add(this.view.antialiasing.multiply(.5)));e.fragColor=p.multiply(x(new c(.5).subtract(r),new c(0),new c(1))).multiply(t.color)}else e.fragColor=t.color.multiply(p);return e.fragColor=this.tileConfig.tileOpacity.multiply(e.fragColor),e}getColor(t){return this.colorMix?.value&&t.color&&t.colorTo?T(t.color,t.colorTo,this.colorMix.value):t.color?t.color:this.color?.value||new w(0)}getWidth(t){return this.widthMix?.value&&t.width&&t.widthTo?T(t.width,t.widthTo,this.widthMix.value):t.width?t.width:this.width?.value||new c(0)}getBlur(t){return this.blurMix?.value&&t.blur&&t.blurTo?T(t.blur,t.blurTo,this.blurMix.value):t.blur?t.blur:this.blur?.value||new c(0)}getOpacity(t){return this.opacityMix?.value&&t.opacity&&t.opacityTo?T(t.opacity,t.opacityTo,this.opacityMix.value):t.opacity?t.opacity:this.opacity?.value||new c(1)}getOffset(t){return this.offsetMix?.value&&t.offset&&t.offsetTo?T(t.offset,t.offsetTo,this.offsetMix.value):t.offset?t.offset:this.offset?.value||new c(0)}getTLBR(t){return t.tlbr?t.tlbr:this.tlbr?.value||new w(0)}}t([r],J.prototype,"lineType",void 0),t([r],J.prototype,"translateAnchorViewport",void 0),t([p(O)],J.prototype,"view",void 0),t([p(C)],J.prototype,"tileInfo",void 0),t([p(z)],J.prototype,"tile",void 0),t([p(j)],J.prototype,"layerInfo",void 0),t([p(R)],J.prototype,"tileConfig",void 0),t([s(D)],J.prototype,"page",void 0),t([s(B)],J.prototype,"color",void 0),t([s(N)],J.prototype,"colorMix",void 0),t([s(A)],J.prototype,"width",void 0),t([s(F)],J.prototype,"widthMix",void 0),t([s(G)],J.prototype,"opacity",void 0),t([s(P)],J.prototype,"opacityMix",void 0),t([s(Z)],J.prototype,"blur",void 0),t([s(k)],J.prototype,"blurMix",void 0),t([s(q)],J.prototype,"offset",void 0),t([s(E)],J.prototype,"offsetMix",void 0),t([s(H)],J.prototype,"tlbr",void 0),t([a(M)],J.prototype,"pageTexture",void 0),t([e(0,d(W))],J.prototype,"vertex",null),t([e(0,d(n))],J.prototype,"fragment",null);export{J as VTLShaderLine};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as p,uniform as r,option as l,define as s,input as a,VertexInput as n,UniformGroup as y,FragmentInput as c}from"../../../GraphShaderModule.js";import{Float as d,Vec3 as v,Vec4 as u,length as h,smoothstep as m,mix as w,Vec2 as f}from"../../../graph/glsl.js";import{Tile as x}from"../Tile.js";import{TileInfo as g}from"../TileInfo.js";import{ViewInfo as T}from"../ViewInfo.js";const M=new d(1/15);class V extends n{}o([p(0,f)],V.prototype,"position",void 0),o([p(1,f)],V.prototype,"offset",void 0),o([p(2,f)],V.prototype,"normal",void 0),o([p(3,u)],V.prototype,"color",void 0),o([p(4,d)],V.prototype,"opacity",void 0),o([p(5,u)],V.prototype,"colorTo",void 0),o([p(6,d)],V.prototype,"opacityTo",void 0);class j extends c{}class C extends y{}o([r(f)],C.prototype,"fillTranslation",void 0),o([r(d)],C.prototype,"depth",void 0),o([r(d)],C.prototype,"outlineWidth",void 0);class O extends y{}o([r(d)],O.prototype,"value",void 0);class S extends y{}o([r(d)],S.prototype,"value",void 0);class A extends y{}o([r(u)],A.prototype,"value",void 0);class I extends y{}o([r(d)],I.prototype,"value",void 0);class W extends e{constructor(){super(...arguments),this.type="VTLShaderOutline"}vertex(o){const t=this.getColor(o).multiply(this.getOpacity(o)),{normal:e,offset:i}=o,{depth:p,outlineWidth:r,fillTranslation:l}=this.config,s=r.multiply(M).multiply(i),a=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,n=new v(this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(new v(o.position,1))).add(a.multiply(new v(s.add(l),0)));return{glPosition:new u(n.xy,p,new d(1)),color:t,normal:e}}fragment(o){const t=new i,{color:e,normal:p}=o,r=h(p),l=m(new d(1),new d(0),r);return t.fragColor=e.multiply(l),t}getColor(o){return this.colorMix?.value&&o.color&&o.colorTo?w(o.color,o.colorTo,this.colorMix.value):o.color?o.color:this.color?.value||new u(0)}getOpacity(o){return this.opacityMix?.value&&o.opacity&&o.opacityTo?w(o.opacity,o.opacityTo,this.opacityMix.value):o.opacity?o.opacity:this.opacity?.value||new d(1)}}o([r(T)],W.prototype,"view",void 0),o([r(g)],W.prototype,"tileContainer",void 0),o([r(x)],W.prototype,"tile",void 0),o([r(C)],W.prototype,"config",void 0),o([l(O)],W.prototype,"opacity",void 0),o([l(S)],W.prototype,"opacityMix",void 0),o([l(A)],W.prototype,"color",void 0),o([l(I)],W.prototype,"colorMix",void 0),o([s],W.prototype,"translateAnchorViewport",void 0),o([t(0,a(V))],W.prototype,"vertex",null),o([t(0,a(j))],W.prototype,"fragment",null);export{W as VTLShaderOutline};
2
+ import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as p,uniform as r,option as l,define as s,input as a,VertexInput as n,UniformGroup as y,FragmentInput as c}from"../../../GraphShaderModule.js";import{Float as d,Vec3 as v,Vec4 as u,length as h,smoothstep as m,mix as f,Vec2 as w}from"../../../graph/glsl.js";import{Tile as x}from"../Tile.js";import{TileInfo as g}from"../TileInfo.js";import{ViewInfo as T}from"../ViewInfo.js";const M=new d(1/15);class V extends n{}o([p(0,w)],V.prototype,"position",void 0),o([p(1,w)],V.prototype,"offset",void 0),o([p(2,w)],V.prototype,"normal",void 0),o([p(3,u)],V.prototype,"color",void 0),o([p(4,d)],V.prototype,"opacity",void 0),o([p(5,u)],V.prototype,"colorTo",void 0),o([p(6,d)],V.prototype,"opacityTo",void 0);class j extends c{}class I extends y{}o([r(w)],I.prototype,"fillTranslation",void 0),o([r(d)],I.prototype,"depth",void 0),o([r(d)],I.prototype,"outlineWidth",void 0);class C extends y{}o([r(d)],C.prototype,"value",void 0);class O extends y{}o([r(d)],O.prototype,"value",void 0);class S extends y{}o([r(u)],S.prototype,"value",void 0);class A extends y{}o([r(d)],A.prototype,"value",void 0);class W extends e{constructor(){super(...arguments),this.type="VTLShaderOutline"}vertex(o){const t=this.getColor(o).multiply(this.getOpacity(o)),{normal:e,offset:i}=o,{depth:p,outlineWidth:r,fillTranslation:l}=this.config,s=r.multiply(M).multiply(i),a=this.translateAnchorViewport?this.view.displayMat3:this.view.displayViewMat3,n=new v(this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new v(o.position,1))).add(a.multiply(new v(s.add(l),0)));return{glPosition:new u(n.xy,p,new d(1)),color:t,normal:e}}fragment(o){const t=new i,{color:e,normal:p}=o,r=h(p),l=m(new d(1),new d(0),r);return t.fragColor=e.multiply(l),t}getColor(o){return this.colorMix?.value&&o.color&&o.colorTo?f(o.color,o.colorTo,this.colorMix.value):o.color?o.color:this.color?.value||new u(0)}getOpacity(o){return this.opacityMix?.value&&o.opacity&&o.opacityTo?f(o.opacity,o.opacityTo,this.opacityMix.value):o.opacity?o.opacity:this.opacity?.value||new d(1)}}o([r(T)],W.prototype,"view",void 0),o([r(g)],W.prototype,"tileInfo",void 0),o([r(x)],W.prototype,"tile",void 0),o([r(I)],W.prototype,"config",void 0),o([l(C)],W.prototype,"opacity",void 0),o([l(O)],W.prototype,"opacityMix",void 0),o([l(S)],W.prototype,"color",void 0),o([l(A)],W.prototype,"colorMix",void 0),o([s],W.prototype,"translateAnchorViewport",void 0),o([t(0,a(V))],W.prototype,"vertex",null),o([t(0,a(j))],W.prototype,"fragment",null);export{W as VTLShaderOutline};