@arcgis/core 5.2.0-next.72 → 5.2.0-next.73

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 (196) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/00cbff0b785e24e87d97.js +1 -0
  3. package/assets/esri/core/workers/chunks/{359584a8fb5687a7d098.js → 014f9fd2818e2c9d9a3b.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{3b3a8a6167f2e1eeb828.js → 0823961e5d0bdedbf8cf.js} +2 -2
  5. package/assets/esri/core/workers/chunks/{a62f1b8ed065b2a38f1a.js → 0dbf31a663b5220a3136.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{fe10a95ebe1da2322af6.js → 0df660dfd941cff3ea1d.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{d93d0cb69f3a9a722510.js → 1418c03c4ab87f7ab5f4.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{c03da138651ac53cadcb.js → 186bedc377cc97731ca2.js} +2 -2
  9. package/assets/esri/core/workers/chunks/{fff23b2682590c4b21e3.js → 2a2ed7bd44010f24c2dd.js} +1 -1
  10. package/assets/esri/core/workers/chunks/2e44978ee677aa23163d.js +256 -0
  11. package/assets/esri/core/workers/chunks/{fc2cae359d571690d754.js → 35fd2f765d2cb3f59a22.js} +4 -4
  12. package/assets/esri/core/workers/chunks/{6b208bac120bcfecd9e4.js → 3e2b4e734aa20a308f3e.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{fa19d5923276418096da.js → 44b50d4716a2567ab6f1.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{50e0dd74795978468625.js → 4cf2b0558a4acc141429.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{2d3a18d56e2e5669c562.js → 64176f7ae719289a2f79.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{9684ab5e8254fdfcb7bb.js → 67f54586156d1ab80257.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{2cfe6f41865ffb3a4645.js → 7e373d9c98ce910db9d2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{4da993c79b373b9d304e.js → 8302bffd28cc6720e0fe.js} +2 -2
  19. package/assets/esri/core/workers/chunks/{9dda9414104f585560a4.js → ad1d06a91121ebfe9162.js} +2 -2
  20. package/assets/esri/core/workers/chunks/{065e3353124fc5ac44ce.js → b33d870cbfa238762c5e.js} +1 -1
  21. package/assets/esri/core/workers/chunks/ba4f419f46be09a9a55c.js +1 -0
  22. package/assets/esri/core/workers/chunks/{684d3cb4fb233180b2d0.js → cd892c9603710d6130a9.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{fa5d27e47d47ff8fcb96.js → d03e7be74c57c3dbf003.js} +2 -2
  24. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  25. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  26. package/chunks/Component.glsl.js +3 -3
  27. package/chunks/HUDMaterial.glsl.js +8 -8
  28. package/chunks/lyr3DMain.js +1 -1
  29. package/config.js +1 -1
  30. package/kernel.js +1 -1
  31. package/layers/ILyr3DWasmPerSceneView.js +1 -1
  32. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  33. package/layers/support/tiles3DUtils.js +1 -1
  34. package/layers/video/VideoController.js +1 -1
  35. package/package.json +3 -3
  36. package/support/revision.js +1 -1
  37. package/views/2d/engine/Bitmap.js +1 -1
  38. package/views/2d/engine/BitmapTile.js +1 -1
  39. package/views/2d/engine/BitmapTileContainer.js +1 -1
  40. package/views/2d/engine/flow/FlowContainer.js +1 -1
  41. package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
  42. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  43. package/views/2d/engine/flow/styles/Particles.js +1 -1
  44. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  45. package/views/2d/engine/imagery/RasterBitmap.js +1 -1
  46. package/views/2d/engine/imagery/RasterTile.js +1 -1
  47. package/views/2d/engine/imagery/RasterTileContainer.js +1 -1
  48. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  49. package/views/2d/engine/imagery/RasterVFTile.js +1 -1
  50. package/views/2d/engine/imagery/RasterVFTileContainer.js +1 -1
  51. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  52. package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
  53. package/views/2d/engine/webgl/Overlay.js +1 -1
  54. package/views/2d/engine/webgl/OverlayContainer.js +1 -1
  55. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  56. package/views/2d/engine/webgl/TileContainer.js +1 -1
  57. package/views/2d/engine/webgl/normalizedTileUtils.js +2 -0
  58. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  59. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  60. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
  61. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  62. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  63. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimationUniformInfo.js +1 -1
  64. package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
  66. package/views/2d/engine/webgl/shaderGraph/techniques/createGraphicSymbolMeshSchemas.js +1 -1
  67. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  68. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
  69. package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
  70. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  71. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  72. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
  73. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  74. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
  75. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  76. package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
  77. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  78. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  79. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
  80. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  81. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  82. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  83. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  84. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
  85. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  86. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
  87. package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
  88. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ReprojectTechnique.js +1 -1
  89. package/views/2d/engine/webgl/shaderGraph/techniques/raster/rasterVFUtils.js +2 -0
  90. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  91. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
  92. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ClipShader.js +1 -1
  93. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  94. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  95. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DebugOverlayShader.js +1 -1
  96. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +1 -1
  97. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  98. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
  99. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  100. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  101. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  102. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  103. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  104. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
  105. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternOutlineFillShader.js +1 -1
  106. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  107. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/Tile.js +2 -0
  108. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
  109. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileInfo.js +2 -0
  110. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
  111. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
  112. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowImageryShader.js +1 -1
  113. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowParticlesShader.js +1 -1
  114. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowStreamlinesShader.js +1 -1
  115. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowUtils.js +1 -1
  116. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  117. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
  118. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterHighlightShader.js +1 -1
  119. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +1 -1
  120. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterVFTransform.js +2 -0
  121. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +1 -1
  122. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ReprojectShader.js +1 -1
  123. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
  124. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
  125. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
  126. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
  127. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
  128. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  131. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  132. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  133. package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +1 -1
  134. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  139. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  140. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  141. package/views/2d/layers/MediaLayerView2D.js +1 -1
  142. package/views/2d/layers/TileLayerView2D.js +1 -1
  143. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  144. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  145. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  146. package/views/2d/layers/support/DebugOverlay.js +1 -1
  147. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  148. package/views/3d/analysis/LineOfSight/LineOfSightAggregateManipulatedObject3D.js +1 -1
  149. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  150. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +1 -1
  151. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  152. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  153. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  154. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  155. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  156. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  157. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  158. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  159. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  160. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  161. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  162. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  163. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  164. package/views/3d/interactive/editingTools/settings.js +1 -1
  165. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  166. package/views/3d/interactive/manipulatorUtils.js +1 -1
  167. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  168. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  169. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  170. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  171. package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
  172. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  173. package/views/3d/webgl-engine/core/shaderLibrary/NormalFromDepth.glsl.js +1 -1
  174. package/views/3d/webgl-engine/core/shaderLibrary/output/DepthConversion.glsl.js +14 -0
  175. package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js +3 -15
  176. package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepthLastFrame.glsl.js +1 -1
  177. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  178. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  179. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  180. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  181. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  182. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  183. package/views/3d/webgl.js +1 -1
  184. package/views/VideoView.js +1 -1
  185. package/views/View.js +1 -1
  186. package/views/draw/DrawOperation.js +1 -1
  187. package/views/support/imageReprojection.js +1 -1
  188. package/assets/esri/core/workers/chunks/6357c7cac401aee9fe77.js +0 -1
  189. package/assets/esri/core/workers/chunks/d2faac81142586cf7509.js +0 -1
  190. package/assets/esri/core/workers/chunks/fd6107f95082e05f016a.js +0 -256
  191. package/views/2d/engine/webgl/shaderGraph/techniques/line/utils.js +0 -2
  192. /package/assets/esri/core/workers/chunks/{3b3a8a6167f2e1eeb828.js.LICENSE.txt → 0823961e5d0bdedbf8cf.js.LICENSE.txt} +0 -0
  193. /package/assets/esri/core/workers/chunks/{c03da138651ac53cadcb.js.LICENSE.txt → 186bedc377cc97731ca2.js.LICENSE.txt} +0 -0
  194. /package/assets/esri/core/workers/chunks/{4da993c79b373b9d304e.js.LICENSE.txt → 8302bffd28cc6720e0fe.js.LICENSE.txt} +0 -0
  195. /package/assets/esri/core/workers/chunks/{9dda9414104f585560a4.js.LICENSE.txt → ad1d06a91121ebfe9162.js.LICENSE.txt} +0 -0
  196. /package/assets/esri/core/workers/chunks/{fa5d27e47d47ff8fcb96.js.LICENSE.txt → d03e7be74c57c3dbf003.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 o}from"tslib";import{GraphShaderModule as i,FragmentOutput as e,location as r,uniform as p,texture as s,define as c,input as l,VertexInput as n,UniformGroup as a,FragmentInput as d}from"../../GraphShaderModule.js";import{Vec3 as y,Vec4 as m,texture2D as u,Vec2 as f,Mat3 as g,Float as h,Sampler2D as x}from"../../graph/glsl.js";import{sampleBicubicBSpline as v}from"./bitmapUtils.js";class b extends n{}t([r(0,f)],b.prototype,"position",void 0);class S extends d{}class w extends a{}t([p(g)],w.prototype,"dvsMat3",void 0),t([p(f)],w.prototype,"coordScale",void 0),t([p(h)],w.prototype,"opacity",void 0);class j extends i{constructor(){super(...arguments),this.type="BitmapShader"}vertex(t){const o=this.config.dvsMat3.multiply(new y(t.position.multiply(this.config.coordScale),1));return{glPosition:new m(o,1),texcoord:t.position}}fragment(t){const o=new e;let i;return i=this.bicubic?v(this.texture,t.texcoord,this.config.coordScale):u(this.texture,t.texcoord),o.fragColor=new m(i.rgb.multiply(this.config.opacity),i.a.multiply(this.config.opacity)),o}}t([p(w)],j.prototype,"config",void 0),t([s(x)],j.prototype,"texture",void 0),t([c],j.prototype,"bicubic",void 0),t([o(0,l(b))],j.prototype,"vertex",null),t([o(0,l(S))],j.prototype,"fragment",null);export{j as BitmapShader};
2
+ import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as i,FragmentOutput as e,location as r,uniform as p,option as l,texture as s,define as n,input as c,VertexInput as a,UniformGroup as d,FragmentInput as m}from"../../GraphShaderModule.js";import{Vec3 as y,Vec4 as f,texture2D as h,Vec2 as u,Float as v,Mat3 as x,Sampler2D as g}from"../../graph/glsl.js";import{sampleBicubicBSpline as w}from"./bitmapUtils.js";import{Tile as S}from"./Tile.js";import{TileInfo as b}from"./TileInfo.js";import{ViewInfo as j}from"./ViewInfo.js";class T extends a{}t([r(0,u)],T.prototype,"position",void 0);class M extends m{}class C extends d{}t([p(u)],C.prototype,"coordScale",void 0),t([p(v)],C.prototype,"opacity",void 0);class V extends d{}t([p(x)],V.prototype,"localToScreenMat3",void 0);class I extends i{constructor(){super(...arguments),this.type="BitmapShader",this.tiled=!1}vertex(t){const o=new y(t.position.multiply(this.config.coordScale),1),i=this.tiled?this.tile.getDisplayViewScreenMat3(this.view,this.tileContainer).multiply(o):this.view.displayViewMat3.multiply(this.localTransform.localToScreenMat3.multiply(o));return{glPosition:new f(i,1),texcoord:t.position}}fragment(t){const o=new e;let i;return i=this.bicubic?w(this.texture,t.texcoord,this.config.coordScale):h(this.texture,t.texcoord),o.fragColor=new f(i.rgb.multiply(this.config.opacity),i.a.multiply(this.config.opacity)),o}}t([p(j)],I.prototype,"view",void 0),t([l(b)],I.prototype,"tileContainer",void 0),t([l(S)],I.prototype,"tile",void 0),t([l(V)],I.prototype,"localTransform",void 0),t([p(C)],I.prototype,"config",void 0),t([s(g)],I.prototype,"texture",void 0),t([n],I.prototype,"bicubic",void 0),t([n],I.prototype,"tiled",void 0),t([o(0,c(T))],I.prototype,"vertex",null),t([o(0,c(M))],I.prototype,"fragment",null);export{I as BitmapShader};
@@ -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,input as p,FragmentInput as s,VertexInput as i,UniformGroup as n,GraphShaderModule as l,FragmentOutput as a}from"../../GraphShaderModule.js";import{Vec2 as d,Mat3 as y,Vec3 as m,Vec4 as u}from"../../graph/glsl.js";class x extends i{}t([e(0,d)],x.prototype,"pos",void 0);class c extends n{}t([r(y)],c.prototype,"displayViewMat3",void 0);class f extends l{constructor(){super(...arguments),this.type="ClipShader"}vertex(t){const o=this.options.displayViewMat3.multiply(new m(t.pos.xy,1));return{glPosition:new u(o.xy,0,1)}}fragment(t){const o=new a;return o.fragColor=new u(1,0,0,1),o}}t([r(c)],f.prototype,"options",void 0),t([o(0,p(x))],f.prototype,"vertex",null),t([o(0,p(s))],f.prototype,"fragment",null);export{x as ClipInput,f as ClipShader};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as r,uniform as e,input as p,FragmentInput as s,VertexInput as i,GraphShaderModule as n,FragmentOutput as l}from"../../GraphShaderModule.js";import{Vec2 as a,Vec3 as m,Vec4 as y}from"../../graph/glsl.js";import{ViewInfo as d}from"./ViewInfo.js";class f extends i{}t([r(0,a)],f.prototype,"pos",void 0);class u extends n{constructor(){super(...arguments),this.type="ClipShader"}vertex(t){const o=this.view.displayMat3.multiply(new m(t.pos.xy,1));return{glPosition:new y(o.xy,0,1)}}fragment(t){const o=new l;return o.fragColor=new y(1,0,0,1),o}}t([e(d)],u.prototype,"view",void 0),t([o(0,p(f))],u.prototype,"vertex",null),t([o(0,p(s))],u.prototype,"fragment",null);export{f as ClipInput,u as ClipShader};
@@ -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 d,Sampler2D as a,sin as n,cos as m,Vec3 as u,ifElse as f,mod as y,mix as c,texture2D as v,greaterThan as x,equal as h,float as g,mat3 as b,negate as w,vec2 as j}from"../../graph/glsl.js";import{BaseHittestVertexInput as O,FeatureFragmentInput as T}from"./AFeatureShader.js";import{c256ToRad as C,bitsetGenericConsiderAlphaOnly as F,bitsetFillRandomPatternOffset as A}from"./constants.js";import{FillVertexInput as S,FillShader as I}from"./FillShader.js";import{LocalTileOffset as z}from"./LocalTileOffset.js";import{MosaicInfo as M}from"./MosaicInfo.js";import{getBit as V,isNan as q,rgba2float as G,rand as L}from"./utils.js";class P extends S{}t([o(5,s)],P.prototype,"tlbr",void 0),t([o(6,p)],P.prototype,"width",void 0),t([o(7,p)],P.prototype,"height",void 0),t([o(8,d)],P.prototype,"offset",void 0),t([o(9,d)],P.prototype,"scale",void 0),t([o(10,p)],P.prototype,"angle",void 0);class Z extends T{}function k(t,e,o,i,r){const l=h(V(r,A),g(1)),p=G(new s(t,0));return f(l,b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,L(j(p,0)),L(j(0,p)),1),b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,0,0,1))}function B(t,e){const o=t.view.requiredZoomFactor,i=new d(e.width,e.height),r=i.multiply(e.scale).multiply(o),l=e.angle.multiply(C),s=n(l),a=m(l),y=k(e.id,r,s,a,e.bitset),c=t.localTileOffset.getPatternOffsetAtTileOrigin(i,s,a),v=o.multiply(e.scale).multiply(e.offset.subtract(c)).divide(r),x=new u(e.pos,1),h=y.multiply(x).xy.subtract(v),g=e.tlbr.divide(t.mosaicInfo.size.xyxy);let b=V(e.bitset,F);return null!=t.visualVariableColor&&(b=f(q(t.getColorValue(e.id)),new p(0),b)),{tileTextureCoord:h,tlbr:g,sampleAlphaOnly:b}}function D(t,e){const o=y(e.tileTextureCoord,new p(1)),i=c(e.tlbr.xy,e.tlbr.zw,o);let r=v(t.mosaicTexture,i);return r=f(x(e.sampleAlphaOnly,new p(.5)),r.aaaa,r),e.color.multiply(r)}class E extends I{constructor(){super(...arguments),this.type="ComplexFillShader"}vertex(t,e){return{...super.vertex(t,e),...B(this,t)}}fragment(t){const e=D(this,t);return this.getFragmentOutput(e,t,new p(0))}}t([i(M)],E.prototype,"mosaicInfo",void 0),t([r(a)],E.prototype,"mosaicTexture",void 0),t([i(z)],E.prototype,"localTileOffset",void 0),t([e(0,l(P)),e(1,l(O))],E.prototype,"vertex",null),t([e(0,l(Z))],E.prototype,"fragment",null);export{Z as ComplexFillFragmentInput,E as ComplexFillShader,P as ComplexFillVertexInput,D as getComplexFillFragmentColor,B as getComplexFillVertexData,k as getPatternMatrix};
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};
@@ -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 r,texture as s,input as i}from"../../GraphShaderModule.js";import{Vec4 as p,Float as l,Vec2 as n,Sampler2D as a,greaterThan as m,ifElse as u,or as h}from"../../graph/glsl.js";import{BaseHittestVertexInput as f,FeatureVertexInput as d}from"./AFeatureShader.js";import{getComplexFillVertexData as c,getComplexFillFragmentColor as x}from"./ComplexFillShader.js";import{signedToUnsignedByte as y,noHit as v,trueHit as g,packPrecision as j}from"./constants.js";import{isRectHittest as O,hittestFill as b,hittestScreenRect as w}from"./hittestUtils.js";import{getLineFragmentColor as S}from"./LineShader.js";import{LocalTileOffset as F}from"./LocalTileOffset.js";import{MosaicInfo as R}from"./MosaicInfo.js";import{AOutlineFillShader as T,getOutlineFillVertexData as q}from"./OutlineFillShader.js";import{PatternOutlineFillFragmentInput as C}from"./PatternOutlineFillShader.js";const H=1/j;class I extends d{}t([o(3,p)],I.prototype,"color",void 0),t([o(4,p)],I.prototype,"tlbr",void 0),t([o(5,l)],I.prototype,"angle",void 0),t([o(6,l)],I.prototype,"aux1",void 0),t([o(7,l)],I.prototype,"aux2",void 0),t([o(8,n)],I.prototype,"aux3",void 0),t([o(9,n)],I.prototype,"aux4",void 0),t([o(10,n)],I.prototype,"zoomRange",void 0);class L extends C{}class M extends T{constructor(){super(...arguments),this.type="ComplexOutlineFillShader"}vertex(t,e){const{aux1:o,aux2:r,aux3:s,aux4:i}=t,p={...t,width:o,height:r,offset:s,scale:i.multiply(H)},n={...t,halfWidth:o,referenceHalfWidth:r,offset:s,normal:i.subtract(y).multiply(H)},a=q(this,n),u=c(this,p),h=m(a.isOutline,new l(.5));return{...a,...u,...Object.assign({},this.maybeRunHittest(t,e,h))}}fragment(t){const{isOutline:e}=t,o=m(e,new l(.5)),r=S(t,this.antialiasingControls.blur),s=x(this,t),i=u(o,r,s),p=u(o,new l(1/255),new l(0));return this.getFragmentOutput(i,t,p)}hittest(t,e,o){const{pos0:r,pos1:s,pos2:i}=this.computeHittestTriangle(t,e,null),p=O(this.hittestRequest);return u(p,()=>{const{tlbr:t}=this.hittestRequest;return w(r,s,i,t)},()=>{const r=b(this,t,e);return u(h(o,m(r,this.hittestRequest.distance)),new l(v),new l(g))})}}t([r(R)],M.prototype,"mosaicInfo",void 0),t([s(a)],M.prototype,"mosaicTexture",void 0),t([r(F)],M.prototype,"localTileOffset",void 0),t([e(0,i(I)),e(1,i(f))],M.prototype,"vertex",null),t([e(0,i(L))],M.prototype,"fragment",null);export{M as ComplexOutlineFillShader,I as ComplexOutlineFillVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as o,uniform as r,texture as i,input as s}from"../../GraphShaderModule.js";import{Vec4 as p,Float as l,Vec2 as n,Sampler2D as a,greaterThan as m,ifElse as u,or as h}from"../../graph/glsl.js";import{BaseHittestVertexInput as f,FeatureVertexInput as d}from"./AFeatureShader.js";import{getComplexFillVertexData as c,getComplexFillFragmentColor as x}from"./ComplexFillShader.js";import{signedToUnsignedByte as y,noHit as v,trueHit as g,packPrecision as j}from"./constants.js";import{isRectHittest as O,hittestFill as w,hittestScreenRect as S}from"./hittestUtils.js";import{getLineFragmentColor as b}from"./LineShader.js";import{LocalTileOffset as F}from"./LocalTileOffset.js";import{MosaicInfo as R}from"./MosaicInfo.js";import{AOutlineFillShader as T,getOutlineFillVertexData as q}from"./OutlineFillShader.js";import{PatternOutlineFillFragmentInput as H}from"./PatternOutlineFillShader.js";const C=1/j;class I extends d{}t([o(3,p)],I.prototype,"color",void 0),t([o(4,p)],I.prototype,"tlbr",void 0),t([o(5,l)],I.prototype,"angle",void 0),t([o(6,l)],I.prototype,"aux1",void 0),t([o(7,l)],I.prototype,"aux2",void 0),t([o(8,n)],I.prototype,"aux3",void 0),t([o(9,n)],I.prototype,"aux4",void 0),t([o(10,n)],I.prototype,"zoomRange",void 0);class L extends H{}class M extends T{constructor(){super(...arguments),this.type="ComplexOutlineFillShader"}vertex(t,e){const{aux1:o,aux2:r,aux3:i,aux4:s}=t,p={...t,width:o,height:r,offset:i,scale:s.multiply(C)},n={...t,halfWidth:o,referenceHalfWidth:r,offset:i,normal:s.subtract(y).multiply(C)},a=q(this,n),u=c(this,p),h=m(a.isOutline,new l(.5));return{...a,...u,...Object.assign({},this.maybeRunHittest(t,e,h))}}fragment(t){const{isOutline:e}=t,o=m(e,new l(.5)),r=b(t,this.view.antialiasing),i=x(this,t),s=u(o,r,i),p=u(o,new l(1/255),new l(0));return this.getFragmentOutput(s,t,p)}hittest(t,e,o){const{pos0:r,pos1:i,pos2:s}=this.computeHittestTriangle(t,e,null),p=O(this.hittestRequest);return u(p,()=>{const{tlbr:t}=this.hittestRequest;return S(r,i,s,t)},()=>{const r=w(this,t,e);return u(h(o,m(r,this.hittestRequest.distance)),new l(v),new l(g))})}}t([r(R)],M.prototype,"mosaicInfo",void 0),t([i(a)],M.prototype,"mosaicTexture",void 0),t([r(F)],M.prototype,"localTileOffset",void 0),t([e(0,s(I)),e(1,s(f))],M.prototype,"vertex",null),t([e(0,s(L))],M.prototype,"fragment",null);export{M as ComplexOutlineFillShader,I as ComplexOutlineFillVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as o,__param as t}from"tslib";import{location as e,uniform as s,input as r,VertexInput as i,UniformGroup as n,GraphShaderModule as p,FragmentOutput as l,FragmentInput as a}from"../../GraphShaderModule.js";import{Vec3 as d,Mat3 as c,FixedArray as g,Vec4 as y,Float as f,Int as v,mod as m,floor as u}from"../../graph/glsl.js";class x extends i{}o([e(0,d)],x.prototype,"positionAndFlags",void 0);class h extends a{}class w extends n{}o([s(c)],w.prototype,"dvsMat3",void 0),o([s(g.ofType(y,4))],w.prototype,"colors",void 0),o([s(g.ofType(f,4))],w.prototype,"opacities",void 0);class A extends p{constructor(){super(...arguments),this.type="DebugOverlayShader"}vertex(o){const t=o.positionAndFlags.z,e=new v(m(t,new f(4))),s=new v(m(u(t.divide(4)),new f(4))),r=this.config.colors.get(e).multiply(this.config.opacities.get(s)),i=this.config.dvsMat3.multiply(new d(o.positionAndFlags.xy,1));return{glPosition:new y(i.xy,0,1),color:r}}fragment(o){const t=new l;return t.fragColor=o.color,t}}o([s(w)],A.prototype,"config",void 0),o([t(0,r(x))],A.prototype,"vertex",null),o([t(0,r(h))],A.prototype,"fragment",null);export{A as DebugOverlayShader};
2
+ import{__decorate as o,__param as t}from"tslib";import{location as e,uniform as r,input as i,VertexInput as s,UniformGroup as p,GraphShaderModule as n,FragmentOutput as l,FragmentInput as a}from"../../GraphShaderModule.js";import{Vec3 as d,FixedArray as c,Vec4 as y,Float as g,Int as f,mod as m,floor as v}from"../../graph/glsl.js";import{ViewInfo as u}from"./ViewInfo.js";class w extends s{}o([e(0,d)],w.prototype,"positionAndFlags",void 0);class x extends a{}class h extends p{}o([r(c.ofType(y,4))],h.prototype,"colors",void 0),o([r(c.ofType(g,4))],h.prototype,"opacities",void 0);class j extends n{constructor(){super(...arguments),this.type="DebugOverlayShader"}vertex(o){const t=o.positionAndFlags.z,e=new f(m(t,new g(4))),r=new f(m(v(t.divide(4)),new g(4))),i=this.config.colors.get(e).multiply(this.config.opacities.get(r)),s=this.view.displayMat3.multiply(new d(o.positionAndFlags.xy,1));return{glPosition:new y(s.xy,0,1),color:i}}fragment(o){const t=new l;return t.fragColor=o.color,t}}o([r(u)],j.prototype,"view",void 0),o([r(h)],j.prototype,"config",void 0),o([t(0,i(w))],j.prototype,"vertex",null),o([t(0,i(x))],j.prototype,"fragment",null);export{j as DebugOverlayShader};
@@ -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{uniform as e,texture as r,input as s,UniformGroup as p,FragmentOutput as i}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as l,Mat3 as d,Sampler2D as u,Vec3 as m,Float as y,texture2D as n}from"../../graph/glsl.js";import{PostProcessingFragmentInput as f,PostProcessingShader as h}from"./PostProcessingShader.js";class c extends p{}o([e(a)],c.prototype,"shadowColor",void 0),o([e(l)],c.prototype,"shadowOffset",void 0),o([e(d)],c.prototype,"displayViewMat3",void 0);class w extends h{constructor(){super(...arguments),this.type="CompositeShader"}fragment(o){const t=new i,{shadowColor:e,shadowOffset:r,displayViewMat3:s}=this.compositeConfig,p=s.multiply(new m(r,new y(0))),a=n(this.layerFBOTexture,o.uv),l=n(this.blurTexture,o.uv.subtract(p.xy.divide(2)));return t.fragColor=l.a.multiply(e).multiply(new y(1).subtract(a.a)).add(a),t}}o([e(c)],w.prototype,"compositeConfig",void 0),o([r(u)],w.prototype,"layerFBOTexture",void 0),o([r(u)],w.prototype,"blurTexture",void 0),o([t(0,s(f))],w.prototype,"fragment",null);export{w as DropShadowCompositeShader};
2
+ import{__decorate as o,__param as t}from"tslib";import{uniform as e,texture as r,input as s,UniformGroup as i,FragmentOutput as p}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as l,Sampler2D as d,Vec3 as m,Float as u,texture2D as n}from"../../graph/glsl.js";import{PostProcessingFragmentInput as f,PostProcessingShader as y}from"./PostProcessingShader.js";import{ViewInfo as h}from"./ViewInfo.js";class v extends i{}o([e(a)],v.prototype,"shadowColor",void 0),o([e(l)],v.prototype,"shadowOffset",void 0);class w extends y{constructor(){super(...arguments),this.type="CompositeShader"}fragment(o){const t=new p,{shadowColor:e,shadowOffset:r}=this.compositeConfig,s=this.view.displayMat3.multiply(new m(r,new u(0))),i=n(this.layerFBOTexture,o.uv),a=n(this.blurTexture,o.uv.subtract(s.xy.divide(2)));return t.fragColor=a.a.multiply(e).multiply(new u(1).subtract(i.a)).add(i),t}}o([e(h)],w.prototype,"view",void 0),o([e(v)],w.prototype,"compositeConfig",void 0),o([r(d)],w.prototype,"layerFBOTexture",void 0),o([r(d)],w.prototype,"blurTexture",void 0),o([t(0,s(f))],w.prototype,"fragment",null);export{w as DropShadowCompositeShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as o}from"tslib";import{location as e,option as s,input as r}from"../../GraphShaderModule.js";import{Vec4 as i,Vec2 as l,Vec3 as p,Float as n,ifElse as a,greaterThan as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as u,FeatureFragmentInput as h,FeatureVertexInput as c,AFeatureShader as d}from"./AFeatureShader.js";import{noHit as y,trueHit as f}from"./constants.js";import{isRectHittest as v,hittestFill as g,hittestScreenRect as x}from"./hittestUtils.js";import{VisualVariableColor as b}from"./VisualVariableColor.js";import{VisualVariableOpacity as j}from"./VisualVariableOpacity.js";import{getVisualVariableOpacity as w,getVisualVariableColor as V}from"./vvUtils.js";class R extends c{}t([e(3,i)],R.prototype,"color",void 0),t([e(4,l)],R.prototype,"zoomRange",void 0);class S extends d{constructor(){super(...arguments),this.type="FillShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,o){const e=w(this,t.id),s=V(this,t.id,t.color).multiply(e),r=this.view.displayViewScreenMat3.multiply(new p(t.pos.xy,1)),l=this.clip(t.id,t.zoomRange);return{glPosition:new i(r.xy,l,1),color:s,...this.maybeRunHittest(t,o,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new n(0))}hittest(t,o){const{pos0:e,pos1:s,pos2:r}=this.computeHittestTriangle(t,o,null),i=v(this.hittestRequest);return a(i,()=>{const{tlbr:t}=this.hittestRequest;return x(e,s,r,t)},()=>{const e=g(this,t,o);return a(m(e,this.hittestRequest.distance),new n(y),new n(f))})}}t([s(b)],S.prototype,"visualVariableColor",void 0),t([s(j)],S.prototype,"visualVariableOpacity",void 0),t([o(0,r(R)),o(1,r(u))],S.prototype,"vertex",null),t([o(0,r(h))],S.prototype,"fragment",null);export{S as FillShader,R as FillVertexInput};
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};
@@ -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 x,abs as h,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 G}from"./MosaicInfo.js";import{getBitBool as P,getBit as D,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 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(P(t.bitset,b.isAbsolute),this.view.displayZoomFactor,new d(1));return{...super.vertex(t,e),tlbr:i,relativePosition:r,gradientMethod:o,gradientSize:s.multiply(a),isDiscrete:D(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=h(i).add(a).divide(o);return I(f(t.x,t.y))}],[u(r,new d(S.circular)),I(v(x(i,i)).add(a.x).divide(o.x))],[!0,I(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(G)],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};
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};
@@ -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 L,getLineVertexData as j,getLineAntialiasing as A,LineFragmentInput as D}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 D{}class q extends n{}t([o(a)],q.prototype,"isColorPass",void 0);class M extends L{constructor(){super(...arguments),this.type="GradientStrokeShader"}vertex(t,e){const{totalLength:i,gradientSize:o,segmentDirection:r,tlbr:s}=t,n=j(this,t),l=C(t.bitset,b.isAlongLine),d=i.divide(this.view.displayZoomFactor),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=A(t,this.antialiasingControls.blur),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 L=g(n.xy,n.zw,new l(v(S,new a(0),new a(1)),.5)),j=w(this.mosaicTexture,L),D=t.opacity.multiply(d),z=this.getFragmentOutput(j.multiply(D),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 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};
@@ -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 s,uniform as i,define as o,input as l,UniformGroup as r}from"../../GraphShaderModule.js";import{Vec2 as p,Float as n,Vec3 as a,Vec4 as u,length as m,step as d,ifElse as h,greaterThan as y}from"../../graph/glsl.js";import{FeatureVertexInput as c,AFeatureShader as f,FeatureFragmentInput as w}from"./AFeatureShader.js";import{trueHit as v,noHit as x}from"./constants.js";import{getHeatmapCompressionFactor as g}from"./heatmapUtils.js";import{hittestMarker as F}from"./hittestUtils.js";class j extends c{}t([s(5,p)],j.prototype,"offset",void 0);class V extends w{}class H extends r{}t([i(n)],H.prototype,"radius",void 0),t([i(n)],H.prototype,"isFieldActive",void 0);class M extends f{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:s}=this.kernelControls,i=t.offset,o=s.multiply(this.getVVData(t.id).x).add(new n(1).subtract(s)),l=this.view.displayViewScreenMat3.multiply(new a(t.pos,1)).add(this.view.displayViewMat3.multiply(new a(i,0)).multiply(e)),r=this.clip(t.id);return{glPosition:new u(l.xy,r,1),offset:i,fieldValue:o,color:new u(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:s}=t,i=m(e),o=d(i,new n(1)),l=new n(1).subtract(i.multiply(i)),r=l.multiply(l),p=o.multiply(r).multiply(s).multiply(new n(g(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new u(p),t)}hittest(t){const{viewMat3:e,tileMat3:s}=this.view,i=e.multiply(s).multiply(new a(t.pos,1)),o=F(i.xy,this.kernelControls.radius,this.hittestRequest.position);return h(y(o,this.hittestRequest.distance),new n(x),new n(v))}}t([o],M.prototype,"usesHalfFloatPrecision",void 0),t([i(H)],M.prototype,"kernelControls",void 0),t([e(0,l(j))],M.prototype,"vertex",null),t([e(0,l(V))],M.prototype,"fragment",null);export{V as HeatmapAccumulateFragmentInput,M as HeatmapAccumulateShader,j as HeatmapAccumulateVertexInput};
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};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as i}from"tslib";import{location as e,uniform as o,option as l,input as r,UniformGroup as a}from"../../GraphShaderModule.js";import{Vec4 as s,Vec2 as n,Float as p,step as u,min as m,ifElse as d,greaterThan as y,max as c,Vec3 as f,length as h,clamp as v}from"../../graph/glsl.js";import{BaseHittestVertexInput as w,FeatureVertexInput as b,AFeatureShader as V,FeatureFragmentInput as S}from"./AFeatureShader.js";import{noHit as g,trueHit as x,epsilon as j,thinLineWidthFactor as z,thinLineHalfWidth as W}from"./constants.js";import{isRectHittest as M,distPointSegment as R,hittestScreenRect as C}from"./hittestUtils.js";import{VisualVariableColor as H}from"./VisualVariableColor.js";import{VisualVariableOpacity as O}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as U}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as q}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as F}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as P}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as A,getVisualVariableOpacity as T,hasVisualVariableSize as D,getVisualVariableSize as G}from"./vvUtils.js";class L extends b{}t([e(3,s)],L.prototype,"color",void 0),t([e(4,n)],L.prototype,"offset",void 0),t([e(5,n)],L.prototype,"normal",void 0),t([e(6,p)],L.prototype,"halfWidth",void 0),t([e(7,p)],L.prototype,"referenceHalfWidth",void 0),t([e(8,n)],L.prototype,"zoomRange",void 0);class k extends S{}class B extends a{}function E(t){return c(new p(z).multiply(u(t,new p(W))),new p(1))}function I(t,i){const{halfWidth:e,normal:o}=t,l=E(e),r=h(o).multiply(e);return v(l.multiply(e.subtract(r)).divide(i.add(l).subtract(new p(1))),new p(0),new p(1))}function J(t,i){const{id:e,halfWidth:o,referenceHalfWidth:l}=i;if(D(t)){const i=new p(2).multiply(l),r=G(t,e,i),a=new p(j),s=d(y(o,a),o.divide(c(l,a)),new p(1));return new p(.5).multiply(s).multiply(r)}return o}function K(t,i){const{id:e,offset:o,pos:l,normal:r,zoomRange:a}=i,{displayViewScreenMat3:n,displayViewMat3:m}=t.view,d=A(t,e,i.color),y=T(t,e),h=J(t,i),v=new p(.5).multiply(t.antialiasingControls.antialiasing),w=c(h.add(v),new p(.45)).add(new p(.1).multiply(v)),b=E(w).multiply(w).multiply(o).multiply(t.view.scaleFactor),V=m.multiply(new f(b,new p(0))),S=n.multiply(new f(l,new p(1))).add(V),g=new p(2).multiply(u(h,new p(0))).add(t.clip(e,a)),x=new s(S.xy,g,1);return{color:d,opacity:y,halfWidth:w,normal:r,scaledOffset:b,scaledHalfWidth:h,glPosition:new s(x.xy,g,1)}}function N(t,i){const{opacity:e,color:o}=t,l=I(t,i);return e.multiply(o).multiply(l)}t([o(p)],B.prototype,"antialiasing",void 0),t([o(p)],B.prototype,"blur",void 0);class Q extends V{constructor(){super(...arguments),this.type="LineShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,i){const e=K(this,t);return{...e,...this.maybeRunHittest(t,i,e.halfWidth)}}fragment(t){const i=N(t,this.antialiasingControls.blur);return this.getFragmentOutput(i,t)}hittest(t,i,e){const{pos0:o,pos1:l,pos2:r}=this.computeHittestTriangle(t,i,null),a=M(this.hittestRequest),{distance:s,smallSymbolDistance:n,smallSymbolSizeThreshold:c,tlbr:f}=this.hittestRequest,h=u(e,c.multiply(.5)).multiply(s.subtract(n)),v=this.hittestRequest.position,w=m(R(v,o,l),R(v,o,r)).subtract(e).add(h);return d(a,C(o,l,r,f),d(y(w,s),new p(g),new p(x)))}}t([o(B)],Q.prototype,"antialiasingControls",void 0),t([l(H)],Q.prototype,"visualVariableColor",void 0),t([l(O)],Q.prototype,"visualVariableOpacity",void 0),t([l(U)],Q.prototype,"visualVariableSizeMinMaxValue",void 0),t([l(q)],Q.prototype,"visualVariableSizeScaleStops",void 0),t([l(F)],Q.prototype,"visualVariableSizeStops",void 0),t([l(P)],Q.prototype,"visualVariableSizeUnitValue",void 0),t([i(0,r(L)),i(1,r(w))],Q.prototype,"vertex",null),t([i(0,r(k))],Q.prototype,"fragment",null);export{B as AntialiasingControls,k as LineFragmentInput,Q as LineShader,L as LineVertexInput,I as getLineAntialiasing,N as getLineFragmentColor,E as getLineThinFactor,K as getLineVertexData};
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};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as o}from"tslib";import{location as i,uniform as e,option as r,input as s}from"../../GraphShaderModule.js";import{Vec2 as a,Vec4 as l,Float as p,greaterThan as n,ifElse as u,or as m,Vec3 as c}from"../../graph/glsl.js";import{BaseHittestVertexInput as d,FeatureVertexInput as h,AFeatureShader as f}from"./AFeatureShader.js";import{noHit as y,trueHit as v,bitsetTypeFillOutline as V,bitsetOutlineUsesColorVV as S}from"./constants.js";import{isRectHittest as b,hittestFill as j,hittestScreenRect as x}from"./hittestUtils.js";import{AntialiasingControls as g,getLineFragmentColor as w,LineFragmentInput as z,getLineVertexData as M}from"./LineShader.js";import{getBit as O,getBitBool as R}from"./utils.js";import{VisualVariableColor as C}from"./VisualVariableColor.js";import{VisualVariableOpacity as P}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as U}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as W}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as q}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as F}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as H,getVisualVariableColor as A}from"./vvUtils.js";class G extends h{}t([i(3,a)],G.prototype,"offset",void 0),t([i(4,l)],G.prototype,"color",void 0),t([i(5,a)],G.prototype,"normal",void 0),t([i(6,p)],G.prototype,"halfWidth",void 0),t([i(7,p)],G.prototype,"referenceHalfWidth",void 0),t([i(8,a)],G.prototype,"zoomRange",void 0);class L extends z{}function T(t,o,i){const{id:e,bitset:r}=o,s=O(r,V),a=n(s,new p(.5)),m=M(t,o),d=u(a,m.halfWidth,new p(0)),h=H(t,e),f=A(t,e,o.color),y=u(a,u(R(r,S),f,o.color),f.multiply(h)),v=t.view.displayViewScreenMat3.multiply(new c(o.pos.xy,1)),b=t.clip(o.id),j=new l(v.xy,b,1),x=u(a,m.glPosition,j),g=i&&t.maybeRunHittest(o,i,a);return{isOutline:s,color:y,opacity:new p(1),halfWidth:d,normal:m.normal,glPosition:x,...g}}class k extends f{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([e(g)],k.prototype,"antialiasingControls",void 0),t([r(C)],k.prototype,"visualVariableColor",void 0),t([r(P)],k.prototype,"visualVariableOpacity",void 0),t([r(U)],k.prototype,"visualVariableSizeMinMaxValue",void 0),t([r(W)],k.prototype,"visualVariableSizeScaleStops",void 0),t([r(q)],k.prototype,"visualVariableSizeStops",void 0),t([r(F)],k.prototype,"visualVariableSizeUnitValue",void 0);class B extends k{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,o){return T(this,t,o)}fragment(t){const{color:o,isOutline:i}=t,e=n(i,new p(.5)),r=w(t,this.antialiasingControls.blur),s=u(e,r,o),a=u(e,new p(1/255),new p(0));return this.getFragmentOutput(s,t,a)}hittest(t,o,i){const{pos0:e,pos1:r,pos2:s}=this.computeHittestTriangle(t,o,null),a=b(this.hittestRequest);return u(a,()=>{const{tlbr:t}=this.hittestRequest;return x(e,r,s,t)},()=>{const e=j(this,t,o);return u(m(i,n(e,this.hittestRequest.distance)),new p(y),new p(v))})}}t([o(0,s(G)),o(1,s(d))],B.prototype,"vertex",null),t([o(0,s(L))],B.prototype,"fragment",null);export{k as AOutlineFillShader,L as OutlineFillFragmentInput,B as OutlineFillShader,G as OutlineFillVertexInput,T as getOutlineFillVertexData};
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};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as r,texture as p,input as i,VertexInput as s,UniformGroup as n,GraphShaderModule as d,FragmentOutput as l,FragmentInput as v}from"../../GraphShaderModule.js";import{Vec2 as a,Mat3 as y,Float as c,Sampler2D as u,dot as f,Vec3 as h,Vec4 as m,texture2D as x}from"../../graph/glsl.js";class g extends s{}t([e(0,a)],g.prototype,"pos",void 0),t([e(1,a)],g.prototype,"uv",void 0);class w extends v{}class S extends n{}t([r(y)],S.prototype,"dvs",void 0);class j extends n{}t([r(a)],j.prototype,"perspective",void 0),t([r(a)],j.prototype,"texSize",void 0),t([r(c)],j.prototype,"wrapAroundShift",void 0),t([r(c)],j.prototype,"opacity",void 0);class z extends d{constructor(){super(...arguments),this.type="OverlayShader"}vertex(t){const o=t.uv.divide(this.config.texSize),e=new c(1).add(f(o,this.config.perspective)),r=new h(t.pos.add(new a(this.config.wrapAroundShift,0)),1),p=this.transform.dvs.multiply(r);return{uv:o,glPosition:new m(p.xy.multiply(e),0,e)}}fragment(t){const o=x(this.texture,t.uv).multiply(this.config.opacity),e=new l;return e.fragColor=o,e}}t([r(S)],z.prototype,"transform",void 0),t([r(j)],z.prototype,"config",void 0),t([p(u)],z.prototype,"texture",void 0),t([o(0,i(g))],z.prototype,"vertex",null),t([o(0,i(w))],z.prototype,"fragment",null);export{z as OverlayShader};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as i,texture as r,input as p,VertexInput as s,UniformGroup as n,GraphShaderModule as d,FragmentOutput as l,FragmentInput as v}from"../../GraphShaderModule.js";import{Vec2 as y,Float as a,Sampler2D as u,dot as c,Vec3 as f,Vec4 as h,texture2D as m}from"../../graph/glsl.js";import{ViewInfo as w}from"./ViewInfo.js";class x extends s{}t([e(0,y)],x.prototype,"pos",void 0),t([e(1,y)],x.prototype,"uv",void 0);class g extends v{}class S extends n{}t([i(y)],S.prototype,"perspective",void 0),t([i(y)],S.prototype,"texSize",void 0),t([i(a)],S.prototype,"wrapAroundShift",void 0),t([i(a)],S.prototype,"opacity",void 0);class j extends d{constructor(){super(...arguments),this.type="OverlayShader"}vertex(t){const o=t.uv.divide(this.config.texSize),e=new a(1).add(c(o,this.config.perspective)),i=t.pos.add(new y(this.config.wrapAroundShift,0)),r=new y(i.x,i.y.multiply(-1)).divide(this.view.resolution),p=this.view.displayViewMat3.multiply(new f(r,0));return{uv:o,glPosition:new h(p.xy.multiply(e),0,e)}}fragment(t){const o=m(this.texture,t.uv).multiply(this.config.opacity),e=new l;return e.fragColor=o,e}}t([i(w)],j.prototype,"view",void 0),t([i(S)],j.prototype,"config",void 0),t([r(u)],j.prototype,"texture",void 0),t([o(0,p(x))],j.prototype,"vertex",null),t([o(0,p(g))],j.prototype,"fragment",null);export{j as OverlayShader};
@@ -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 s}from"../../GraphShaderModule.js";import{Vec4 as l,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 w}from"./LocalTileOffset.js";import{MosaicInfo as g}from"./MosaicInfo.js";class T extends b{}t([r(5,l)],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),s=r.y.subtract(o.y),l=new p(i,s).multiply(e.inverseRasterizationScale),n=l.multiply(t.view.requiredZoomFactor),a=O(n),d=t.localTileOffset.getPatternOffsetAtTileOrigin(l).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(g)],F.prototype,"mosaicInfo",void 0),t([i(a)],F.prototype,"mosaicTexture",void 0),t([o(w)],F.prototype,"localTileOffset",void 0),t([e(0,s(T)),e(1,s(x))],F.prototype,"vertex",null),t([e(0,s(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.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};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t,__param as r}from"tslib";import{location as e,uniform as o,texture as i,input as s}from"../../GraphShaderModule.js";import{Vec4 as l,Float as p,Sampler2D as a,greaterThan as n,ifElse as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as f}from"./AFeatureShader.js";import{getLineFragmentColor as d}from"./LineShader.js";import{LocalTileOffset as u}from"./LocalTileOffset.js";import{MosaicInfo as h}from"./MosaicInfo.js";import{OutlineFillVertexInput as c,OutlineFillShader as j,getOutlineFillVertexData as v,OutlineFillFragmentInput as y}from"./OutlineFillShader.js";import{getPatternFillVertexData as g,getPatternFillFragmentColor as x}from"./PatternFillShader.js";class S extends c{}t([e(9,l)],S.prototype,"tlbr",void 0),t([e(10,p)],S.prototype,"inverseRasterizationScale",void 0);class O extends y{}class F extends j{constructor(){super(...arguments),this.type="PatternOutlineFillShader"}vertex(t,r){return{...v(this,t,r),...g(this,t)}}fragment(t){const{isOutline:r}=t,e=n(r,new p(.5)),o=d(t,this.antialiasingControls.blur),i=x(t,this),s=m(e,o,i),l=m(e,new p(1/255),new p(0));return this.getFragmentOutput(s,t,l)}}t([o(h)],F.prototype,"mosaicInfo",void 0),t([i(a)],F.prototype,"mosaicTexture",void 0),t([o(u)],F.prototype,"localTileOffset",void 0),t([r(0,s(S)),r(1,s(f))],F.prototype,"vertex",null),t([r(0,s(O))],F.prototype,"fragment",null);export{O as PatternOutlineFillFragmentInput,F as PatternOutlineFillShader,S as PatternOutlineFillVertexInput};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as r,uniform as o,texture as i,input as s}from"../../GraphShaderModule.js";import{Vec4 as p,Float as a,Sampler2D as l,greaterThan as n,ifElse as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as f}from"./AFeatureShader.js";import{getLineFragmentColor as d}from"./LineShader.js";import{LocalTileOffset as h}from"./LocalTileOffset.js";import{MosaicInfo as u}from"./MosaicInfo.js";import{OutlineFillVertexInput as c,OutlineFillShader as v,getOutlineFillVertexData as j,OutlineFillFragmentInput as y}from"./OutlineFillShader.js";import{getPatternFillVertexData as g,getPatternFillFragmentColor as x}from"./PatternFillShader.js";class S extends c{}t([r(9,p)],S.prototype,"tlbr",void 0),t([r(10,a)],S.prototype,"inverseRasterizationScale",void 0);class O extends y{}class F extends v{constructor(){super(...arguments),this.type="PatternOutlineFillShader"}vertex(t,e){return{...j(this,t,e),...g(this,t)}}fragment(t){const{isOutline:e}=t,r=n(e,new a(.5)),o=d(t,this.view.antialiasing),i=x(t,this),s=m(r,o,i),p=m(r,new a(1/255),new a(0));return this.getFragmentOutput(s,t,p)}}t([o(u)],F.prototype,"mosaicInfo",void 0),t([i(l)],F.prototype,"mosaicTexture",void 0),t([o(h)],F.prototype,"localTileOffset",void 0),t([e(0,s(S)),e(1,s(f))],F.prototype,"vertex",null),t([e(0,s(O))],F.prototype,"fragment",null);export{O as PatternOutlineFillFragmentInput,F as PatternOutlineFillShader,S as PatternOutlineFillVertexInput};
@@ -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 r,uniform as a,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 b,sqrt as x,pow as g,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([r(9,p)],H.prototype,"accumulatedDistance",void 0),t([r(10,c)],H.prototype,"segmentDirection",void 0),t([r(11,p)],H.prototype,"offsetAlongLine",void 0),t([r(12,p)],H.prototype,"capType",void 0),t([r(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:r,patternSize:a,accumulatedDistance:l,offsetAlongLine:n,dashToPx:u,capType:D}=t,S=a.x.divide(o).multiply(u),T=y(l.add(n).divide(S)),j=h(r.xy,r.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([b(D,new p(1)),A.subtract(e)],[b(D,new p(2)),x(g(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:r,sampleAlphaOnly:a,tlbr:l}=t,n=r.y.multiply(new p(2).multiply(e).divide(r.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 b=f(this.mosaicTexture,w);return null!=this.visualVariableColor&&(b=D(S(a,new p(.5)),new m(o.a),o)),b}vertex(t,e){const{segmentDirection:i,tlbr:o,bitset:s}=t,r=C(this,t),a=t.accumulatedDistance.divide(this.view.displayZoomFactor).add(T(i,r.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,r.scaledHalfWidth),new p(1));return{...r,tlbr:n,patternSize:l,accumulatedDistance:a,isSDF:m,sampleAlphaOnly:u,dashToPx:d,offsetAlongLine:t.offsetAlongLine,capType:t.capType,...this.maybeRunHittest(t,e,r.halfWidth)}}fragment(t){const{color:e,opacity:i,isSDF:o}=t,s=O(t,this.antialiasingControls.blur),r=D(S(o,new p(.5)),this._getSDFAlpha(t),this._getPatternColor(t)),a=e.multiply(i).multiply(s).multiply(r);return this.getFragmentOutput(a,t)}}t([a(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 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};
@@ -0,0 +1,2 @@
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};
@@ -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{location as e,uniform as i,input as r,FragmentInput as p,texture as n,VertexInput as s,UniformGroup as d,GraphShaderModule as l,FragmentOutput as c}from"../../GraphShaderModule.js";import{Vec2 as a,Mat3 as y,Float as g,Vec4 as u,Sampler2D as v,Vec3 as f,texture2D as h}from"../../graph/glsl.js";class m extends s{}o([e(0,a)],m.prototype,"position",void 0);class x extends p{}class w extends d{}o([i(y)],w.prototype,"dvsMat3",void 0),o([i(a)],w.prototype,"coordRange",void 0),o([i(g)],w.prototype,"depth",void 0),o([i(u)],w.prototype,"color",void 0);class M extends d{}o([i(y)],M.prototype,"dvsMat3",void 0),o([i(g)],M.prototype,"depth",void 0),o([i(a)],M.prototype,"coordRatio",void 0),o([i(a)],M.prototype,"delta",void 0),o([i(a)],M.prototype,"dimensions",void 0);class b extends l{constructor(){super(...arguments),this.type="TileDebugInfoOutlineShader"}vertex(o){const t=this.config.dvsMat3.multiply(new f(o.position.multiply(this.config.coordRange),1));return{glPosition:new u(t.xy,this.config.depth,1)}}fragment(o){const t=new c;return t.fragColor=this.config.color,t}}o([i(w)],b.prototype,"config",void 0),o([t(0,r(m))],b.prototype,"vertex",null),o([t(0,r(p))],b.prototype,"fragment",null);class R extends l{constructor(){super(...arguments),this.type="TileDebugInfoShader"}vertex(o){const t=this.config.coordRatio.multiply(this.config.delta.add(o.position.multiply(this.config.dimensions))),e=this.config.dvsMat3.multiply(new f(t,1));return{glPosition:new u(e.xy,this.config.depth,1),uv:o.position}}fragment(o){const t=new c,e=h(this.texture,o.uv);return t.fragColor=new u(e.rgb.multiply(e.a),e.a),t}}o([i(M)],R.prototype,"config",void 0),o([n(v)],R.prototype,"texture",void 0),o([t(0,r(m))],R.prototype,"vertex",null),o([t(0,r(x))],R.prototype,"fragment",null);export{b as TileDebugInfoOutlineShader,R 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 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};
@@ -0,0 +1,2 @@
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};
@@ -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{location as e,uniform as r,input as i,FragmentInput as p,VertexInput as s,UniformGroup as n,GraphShaderModule as l,FragmentOutput as d}from"../../GraphShaderModule.js";import{Vec2 as c,Mat3 as a,Float as g,Vec4 as y,Vec3 as f}from"../../graph/glsl.js";class h extends s{}o([e(0,c)],h.prototype,"position",void 0);class m extends n{}o([r(a)],m.prototype,"dvsMat3",void 0),o([r(c)],m.prototype,"coordRange",void 0),o([r(g)],m.prototype,"depth",void 0),o([r(y)],m.prototype,"color",void 0);class v extends l{constructor(){super(...arguments),this.type="TileStencilShader"}vertex(o){const t=this.config.dvsMat3.multiply(new f(o.position.multiply(this.config.coordRange),1));return{glPosition:new y(t.xy,this.config.depth,1)}}fragment(o){const t=new d;return t.fragColor=this.config.color,t}}o([r(m)],v.prototype,"config",void 0),o([t(0,i(h))],v.prototype,"vertex",null),o([t(0,i(p))],v.prototype,"fragment",null);export{v 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 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};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as o}from"tslib";import{uniform as t,UniformGroup as p}from"../../GraphShaderModule.js";import{Mat3 as e,Float as r,Vec2 as i}from"../../graph/glsl.js";class d extends p{}o([t(e)],d.prototype,"displayViewScreenMat3",void 0),o([t(e)],d.prototype,"displayViewMat3",void 0),o([t(e)],d.prototype,"displayMat3",void 0),o([t(e)],d.prototype,"viewMat3",void 0),o([t(e)],d.prototype,"tileMat3",void 0),o([t(r)],d.prototype,"displayZoomFactor",void 0),o([t(r)],d.prototype,"requiredZoomFactor",void 0),o([t(i)],d.prototype,"tileOffset",void 0),o([t(r)],d.prototype,"currentScale",void 0),o([t(r)],d.prototype,"currentZoom",void 0),o([t(r)],d.prototype,"metersPerSRUnit",void 0),o([t(r)],d.prototype,"rotation",void 0),o([t(r)],d.prototype,"pixelRatio",void 0),o([t(r)],d.prototype,"scaleFactor",void 0);export{d as ViewInfo};
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};
@@ -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 r,define as e,uniform as i,texture as p,input as s,VertexInput as l,GraphShaderModule as a,FragmentOutput as n,FragmentInput as v}from"../../../GraphShaderModule.js";import{Vec2 as c,Sampler2D as y,Vec3 as d,Vec4 as m,texture2D as u}from"../../../graph/glsl.js";import{FlowAnimationState as h,FlowImageryConfig as x,FlowColorValue as g,FlowFloatValue as f,getFlowPremultipliedColor as w}from"./FlowUtils.js";class C extends l{}t([r(0,c)],C.prototype,"position",void 0),t([r(1,c)],C.prototype,"texcoord",void 0);class j extends v{}class O extends a{constructor(){super(...arguments),this.type="FlowImageryShader",this.vvColor=null,this.vvOpacity=null}vertex(t){const o=this.state.dvsMat3.multiply(new d(t.position,1)).xy;return{glPosition:new m(o,0,1),texcoord:t.texcoord}}fragment(t){const o=u(this.texture,t.texcoord),r=this.config.min.add(o.r.multiply(this.config.max.subtract(this.config.min))),e=this.color.getValue(r,this.vvColor),i=e.a.multiply(this.opacity.getValue(o.r,this.vvOpacity)).multiply(o.a),p=new n;return p.fragColor=w(e,i),p}}t([e],O.prototype,"vvColor",void 0),t([e],O.prototype,"vvOpacity",void 0),t([i(h)],O.prototype,"state",void 0),t([i(x)],O.prototype,"config",void 0),t([p(y)],O.prototype,"texture",void 0),t([i(g)],O.prototype,"color",void 0),t([i(f)],O.prototype,"opacity",void 0),t([o(0,s(C))],O.prototype,"vertex",null),t([o(0,s(j))],O.prototype,"fragment",null);export{O as FlowImageryShader};
2
+ import{__decorate as o,__param as t}from"tslib";import{location as r,define as i,uniform as e,texture as p,input as s,VertexInput as l,GraphShaderModule as a,FragmentOutput as n,FragmentInput as v}from"../../../GraphShaderModule.js";import{Vec2 as y,Sampler2D as c,Vec3 as d,Vec4 as m,texture2D as u}from"../../../graph/glsl.js";import{ViewInfo as h}from"../ViewInfo.js";import{FlowAnimationState as f,FlowTransform as x,FlowImageryConfig as g,FlowColorValue as w,FlowFloatValue as j,getFlowPremultipliedColor as C}from"./FlowUtils.js";class V extends l{}o([r(0,y)],V.prototype,"position",void 0),o([r(1,y)],V.prototype,"texcoord",void 0);class M extends v{}class O extends a{constructor(){super(...arguments),this.type="FlowImageryShader",this.vvColor=null,this.vvOpacity=null}vertex(o){const t=this.transform.localToScreenMat3.multiply(new d(o.position,1)),r=this.view.displayViewMat3.multiply(t).xy;return{glPosition:new m(r,0,1),texcoord:o.texcoord}}fragment(o){const t=u(this.texture,o.texcoord),r=this.config.min.add(t.r.multiply(this.config.max.subtract(this.config.min))),i=this.color.getValue(r,this.vvColor),e=i.a.multiply(this.opacity.getValue(t.r,this.vvOpacity)).multiply(t.a),p=new n;return p.fragColor=C(i,e),p}}o([i],O.prototype,"vvColor",void 0),o([i],O.prototype,"vvOpacity",void 0),o([e(f)],O.prototype,"state",void 0),o([e(h)],O.prototype,"view",void 0),o([e(x)],O.prototype,"transform",void 0),o([e(g)],O.prototype,"config",void 0),o([p(c)],O.prototype,"texture",void 0),o([e(w)],O.prototype,"color",void 0),o([e(j)],O.prototype,"opacity",void 0),o([t(0,s(V))],O.prototype,"vertex",null),o([t(0,s(M))],O.prototype,"fragment",null);export{O as FlowImageryShader};
@@ -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,define as o,uniform as s,input as r,VertexInput as n,GraphShaderModule as a,FragmentOutput as l,FragmentInput as p}from"../../../GraphShaderModule.js";import{Vec4 as y,Float as d,mod as c,clamp as h,mix as u,normalize as v,equal as w,or as f,ifElse as g,lessThan as m,and as x,notEqual as z,greaterThan as T,cond as b,Vec2 as L,exp as F,length as I}from"../../../graph/glsl.js";import{FlowAnimationState as S,FlowLineConfig as O,FlowColorValue as C,FlowFloatValue as j,getFadeOpacity as R,getFlowSize as V,getFlowExtrudedPosition as Z,getFlowPremultipliedColor as P,getFragmentColor as G}from"./FlowUtils.js";class M extends n{}t([i(0,y)],M.prototype,"xyts0",void 0),t([i(1,y)],M.prototype,"xyts1",void 0),t([i(2,y)],M.prototype,"typeIdFirstTimeLastTime",void 0),t([i(3,y)],M.prototype,"extrudeInfo",void 0);class U extends p{}class k extends a{constructor(){super(...arguments),this.type="FlowParticlesShader",this.vvColor=null,this.vvOpacity=null,this.vvSize=null}vertex(t){const e=t.typeIdFirstTimeLastTime.z,i=t.typeIdFirstTimeLastTime.w.subtract(e),o=t.xyts0.xy,s=t.xyts0.z.subtract(e),r=t.xyts0.w,n=t.xyts1.xy,a=t.xyts1.z.subtract(e),l=t.xyts1.w,p=t.typeIdFirstTimeLastTime.x,I=t.typeIdFirstTimeLastTime.y,S=new d(2),O=new d(1),C=new d(2),j=new d(3),G=t.extrudeInfo.xy,M=t.extrudeInfo.zw,U=i.add(this.config.trailLength),k=c(this.state.time.multiply(this.config.flowSpeed),U),q=k.subtract(s).divide(a.subtract(s)),A=h(q,new d(0),new d(1)),B=u(s,a,A),D=u(r,l,A),E=u(G,M,A),H=v(n.subtract(o)).multiply(new d(.5)),J=w(p,S),K=f(w(I,O),w(I,C)),N=g(J,f(m(q,new d(0)),x(T(q,new d(1)),z(a,i))),m(q,new d(0))),Q=g(J,b([w(I,O),E],[w(I,C),E.multiply(new d(-1))],[w(I,j),E.add(H)],[!0,E.multiply(new d(-1)).add(H)]),b([w(I,O),G],[w(I,C),G.multiply(new d(-1))],[w(I,j),E],[!0,E.multiply(new d(-1))])),W=g(J,b([w(I,O),new L(.5,0)],[w(I,C),new L(.5,1)],[w(I,j),new L(1,0)],[!0,new L(1,1)]),b([w(I,O),new L(.5,0)],[w(I,C),new L(.5,1)],[w(I,j),new L(.5,0)],[!0,new L(.5,1)])),X=g(J,B,g(K,s,B)),Y=g(J,D,g(K,r,D)),$=g(J,R(k.subtract(B).divide(this.config.trailLength),this.config.decayRate,this.config.fadeToZero),g(K,R(k.subtract(s).divide(this.config.trailLength),this.config.decayRate,this.config.fadeToZero),R(k.subtract(B).divide(this.config.trailLength),this.config.decayRate,this.config.fadeToZero))),_=new d(1).subtract(F(X.multiply(new d(-1)))),tt=V(this.size.getValue(Y,this.vvSize),this.config.featheringSize,this.config.featheringOffset),et=this.color.getValue(Y,this.vvColor),it=et.a.multiply(this.opacity.getValue(Y,this.vvOpacity)).multiply($).multiply(u(new d(1),_,this.config.introFade)).multiply(this.state.displayOpacity),ot=g(J,u(o,n,A),g(K,o,u(o,n,A))),st=Z(this.state,ot,Q,tt);return{glPosition:g(N,new y(0,0,-2,1),new y(st,0,1)),color:P(et,it),texcoord:W,size:tt}}fragment(t){const e=new l;return e.fragColor=G(t.color,I(t.texcoord.subtract(new L(.5))),t.size,this.config.featheringSize),e}}t([o],k.prototype,"vvColor",void 0),t([o],k.prototype,"vvOpacity",void 0),t([o],k.prototype,"vvSize",void 0),t([s(S)],k.prototype,"state",void 0),t([s(O)],k.prototype,"config",void 0),t([s(C)],k.prototype,"color",void 0),t([s(j)],k.prototype,"opacity",void 0),t([s(j)],k.prototype,"size",void 0),t([e(0,r(M))],k.prototype,"vertex",null),t([e(0,r(U))],k.prototype,"fragment",null);export{k as FlowParticlesShader};
2
+ import{__decorate as t,__param as e}from"tslib";import{location as i,define as o,uniform as s,input as r,VertexInput as n,GraphShaderModule as p,FragmentOutput as a,FragmentInput as l}from"../../../GraphShaderModule.js";import{Vec4 as y,Float as d,mod as c,clamp as h,mix as v,normalize as f,equal as w,or as u,ifElse as m,lessThan as g,and as x,notEqual as z,greaterThan as T,cond as b,Vec2 as I,exp as L,length as F}from"../../../graph/glsl.js";import{ViewInfo as S}from"../ViewInfo.js";import{FlowAnimationState as O,FlowTransform as j,FlowLineConfig as C,FlowColorValue as V,FlowFloatValue as R,getFadeOpacity as Z,getFlowSize as P,getFlowExtrudedPosition as G,getFlowPremultipliedColor as M,getFragmentColor as U}from"./FlowUtils.js";class k extends n{}t([i(0,y)],k.prototype,"xyts0",void 0),t([i(1,y)],k.prototype,"xyts1",void 0),t([i(2,y)],k.prototype,"typeIdFirstTimeLastTime",void 0),t([i(3,y)],k.prototype,"extrudeInfo",void 0);class q extends l{}class A extends p{constructor(){super(...arguments),this.type="FlowParticlesShader",this.vvColor=null,this.vvOpacity=null,this.vvSize=null}vertex(t){const e=t.typeIdFirstTimeLastTime.z,i=t.typeIdFirstTimeLastTime.w.subtract(e),o=t.xyts0.xy,s=t.xyts0.z.subtract(e),r=t.xyts0.w,n=t.xyts1.xy,p=t.xyts1.z.subtract(e),a=t.xyts1.w,l=t.typeIdFirstTimeLastTime.x,F=t.typeIdFirstTimeLastTime.y,S=new d(2),O=new d(1),j=new d(2),C=new d(3),V=t.extrudeInfo.xy,R=t.extrudeInfo.zw,U=i.add(this.config.trailLength),k=c(this.state.time.multiply(this.config.flowSpeed),U),q=k.subtract(s).divide(p.subtract(s)),A=h(q,new d(0),new d(1)),B=v(s,p,A),D=v(r,a,A),E=v(V,R,A),H=f(n.subtract(o)).multiply(new d(.5)),J=w(l,S),K=u(w(F,O),w(F,j)),N=m(J,u(g(q,new d(0)),x(T(q,new d(1)),z(p,i))),g(q,new d(0))),Q=m(J,b([w(F,O),E],[w(F,j),E.multiply(new d(-1))],[w(F,C),E.add(H)],[!0,E.multiply(new d(-1)).add(H)]),b([w(F,O),V],[w(F,j),V.multiply(new d(-1))],[w(F,C),E],[!0,E.multiply(new d(-1))])),W=m(J,b([w(F,O),new I(.5,0)],[w(F,j),new I(.5,1)],[w(F,C),new I(1,0)],[!0,new I(1,1)]),b([w(F,O),new I(.5,0)],[w(F,j),new I(.5,1)],[w(F,C),new I(.5,0)],[!0,new I(.5,1)])),X=m(J,B,m(K,s,B)),Y=m(J,D,m(K,r,D)),$=m(J,Z(k.subtract(B).divide(this.config.trailLength),this.config.decayRate,this.config.fadeToZero),m(K,Z(k.subtract(s).divide(this.config.trailLength),this.config.decayRate,this.config.fadeToZero),Z(k.subtract(B).divide(this.config.trailLength),this.config.decayRate,this.config.fadeToZero))),_=new d(1).subtract(L(X.multiply(new d(-1)))),tt=P(this.size.getValue(Y,this.vvSize),this.config.featheringSize,this.config.featheringOffset),et=this.color.getValue(Y,this.vvColor),it=et.a.multiply(this.opacity.getValue(Y,this.vvOpacity)).multiply($).multiply(v(new d(1),_,this.config.introFade)).multiply(this.state.displayOpacity),ot=m(J,v(o,n,A),m(K,o,v(o,n,A))),st=G(this.view,this.transform,ot,Q,tt);return{glPosition:m(N,new y(0,0,-2,1),new y(st,0,1)),color:M(et,it),texcoord:W,size:tt}}fragment(t){const e=new a;return e.fragColor=U(t.color,F(t.texcoord.subtract(new I(.5))),t.size,this.config.featheringSize),e}}t([o],A.prototype,"vvColor",void 0),t([o],A.prototype,"vvOpacity",void 0),t([o],A.prototype,"vvSize",void 0),t([s(O)],A.prototype,"state",void 0),t([s(S)],A.prototype,"view",void 0),t([s(j)],A.prototype,"transform",void 0),t([s(C)],A.prototype,"config",void 0),t([s(V)],A.prototype,"color",void 0),t([s(R)],A.prototype,"opacity",void 0),t([s(R)],A.prototype,"size",void 0),t([e(0,r(k))],A.prototype,"vertex",null),t([e(0,r(q))],A.prototype,"fragment",null);export{A as FlowParticlesShader};
@@ -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,define as i,uniform as s,input as r,VertexInput as p,GraphShaderModule as n,FragmentOutput as l,FragmentInput as d}from"../../../GraphShaderModule.js";import{Vec3 as a,Vec2 as v,Float as f,Vec4 as y,mod as h,ifElse as c,lessThan as m,abs as g}from"../../../graph/glsl.js";import{FlowAnimationState as u,FlowLineConfig as z,FlowColorValue as S,FlowFloatValue as x,getFlowSize as I,getFlowExtrudedPosition as w,getFlowPremultipliedColor as O,getTimeSeed as C,getFadeOpacity as b,getFragmentColor as j}from"./FlowUtils.js";class A extends p{}t([o(0,a)],A.prototype,"positionAndSide",void 0),t([o(1,a)],A.prototype,"timeInfo",void 0),t([o(2,v)],A.prototype,"extrude",void 0),t([o(3,f)],A.prototype,"speed",void 0);class V extends d{}class F extends n{constructor(){super(...arguments),this.type="FlowStreamlinesShader",this.vvColor=null,this.vvOpacity=null,this.vvSize=null}vertex(t){const e=t.positionAndSide.xy,o=this.color.getValue(t.speed,this.vvColor),i=this.opacity.getValue(t.speed,this.vvOpacity),s=I(this.size.getValue(t.speed,this.vvSize),this.config.featheringSize,this.config.featheringOffset),r=w(this.state,e,t.extrude,s),p=o.a.multiply(i);return{glPosition:new y(r,0,1),side:t.positionAndSide.z,timeInfo:t.timeInfo,color:O(o,p),size:s}}fragment(t){const e=t.timeInfo.z.subtract(t.timeInfo.y).add(this.config.trailLength),o=C(t.timeInfo.y,t.timeInfo.z),i=h(o.multiply(e).add(this.state.time.multiply(this.config.flowSpeed)),e).add(t.timeInfo.y).subtract(t.timeInfo.x).divide(this.config.trailLength),s=t.color.multiply(this.state.displayOpacity).multiply(c(m(i,new f(0)),new f(0),b(i,this.config.decayRate,this.config.fadeToZero))),r=new l;return r.fragColor=j(s,g(t.side).divide(new f(2)),t.size,this.config.featheringSize),r}}t([i],F.prototype,"vvColor",void 0),t([i],F.prototype,"vvOpacity",void 0),t([i],F.prototype,"vvSize",void 0),t([s(u)],F.prototype,"state",void 0),t([s(z)],F.prototype,"config",void 0),t([s(S)],F.prototype,"color",void 0),t([s(x)],F.prototype,"opacity",void 0),t([s(x)],F.prototype,"size",void 0),t([e(0,r(A))],F.prototype,"vertex",null),t([e(0,r(V))],F.prototype,"fragment",null);export{F as FlowStreamlinesShader};
2
+ import{__decorate as t,__param as o}from"tslib";import{location as i,define as e,uniform as r,input as s,VertexInput as p,GraphShaderModule as n,FragmentOutput as d,FragmentInput as l}from"../../../GraphShaderModule.js";import{Vec3 as a,Vec2 as v,Float as f,Vec4 as y,mod as h,ifElse as m,lessThan as c,abs as g}from"../../../graph/glsl.js";import{ViewInfo as u}from"../ViewInfo.js";import{FlowAnimationState as z,FlowTransform as S,FlowLineConfig as w,FlowColorValue as x,FlowFloatValue as I,getFlowSize as O,getFlowExtrudedPosition as j,getFlowPremultipliedColor as C,getTimeSeed as V,getFadeOpacity as b,getFragmentColor as A}from"./FlowUtils.js";class F extends p{}t([i(0,a)],F.prototype,"positionAndSide",void 0),t([i(1,a)],F.prototype,"timeInfo",void 0),t([i(2,v)],F.prototype,"extrude",void 0),t([i(3,f)],F.prototype,"speed",void 0);class L extends l{}class G extends n{constructor(){super(...arguments),this.type="FlowStreamlinesShader",this.vvColor=null,this.vvOpacity=null,this.vvSize=null}vertex(t){const o=t.positionAndSide.xy,i=this.color.getValue(t.speed,this.vvColor),e=this.opacity.getValue(t.speed,this.vvOpacity),r=O(this.size.getValue(t.speed,this.vvSize),this.config.featheringSize,this.config.featheringOffset),s=j(this.view,this.transform,o,t.extrude,r),p=i.a.multiply(e);return{glPosition:new y(s,0,1),side:t.positionAndSide.z,timeInfo:t.timeInfo,color:C(i,p),size:r}}fragment(t){const o=t.timeInfo.z.subtract(t.timeInfo.y).add(this.config.trailLength),i=V(t.timeInfo.y,t.timeInfo.z),e=h(i.multiply(o).add(this.state.time.multiply(this.config.flowSpeed)),o).add(t.timeInfo.y).subtract(t.timeInfo.x).divide(this.config.trailLength),r=t.color.multiply(this.state.displayOpacity).multiply(m(c(e,new f(0)),new f(0),b(e,this.config.decayRate,this.config.fadeToZero))),s=new d;return s.fragColor=A(r,g(t.side).divide(new f(2)),t.size,this.config.featheringSize),s}}t([e],G.prototype,"vvColor",void 0),t([e],G.prototype,"vvOpacity",void 0),t([e],G.prototype,"vvSize",void 0),t([r(z)],G.prototype,"state",void 0),t([r(u)],G.prototype,"view",void 0),t([r(S)],G.prototype,"transform",void 0),t([r(w)],G.prototype,"config",void 0),t([r(x)],G.prototype,"color",void 0),t([r(I)],G.prototype,"opacity",void 0),t([r(I)],G.prototype,"size",void 0),t([o(0,s(F))],G.prototype,"vertex",null),t([o(0,s(L))],G.prototype,"fragment",null);export{G as FlowStreamlinesShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{uniform as e,UniformGroup as o}from"../../../GraphShaderModule.js";import{Float as s,Mat3 as i,Vec4 as p,FixedArray as r,Int as n,cond as u,greaterThan as d,mix as a,greaterThanEqual as l,lessThanEqual as y,exp as c,Vec3 as v,clamp as h,ifElse as f,mod as m}from"../../../graph/glsl.js";class g extends o{}t([e(s)],g.prototype,"time",void 0),t([e(i)],g.prototype,"dvsMat3",void 0),t([e(i)],g.prototype,"displayViewMat3",void 0),t([e(s)],g.prototype,"displayOpacity",void 0),t([e(s)],g.prototype,"startTime",void 0),t([e(s)],g.prototype,"endTime",void 0);class b extends o{}t([e(s)],b.prototype,"trailLength",void 0),t([e(s)],b.prototype,"flowSpeed",void 0),t([e(s)],b.prototype,"featheringSize",void 0),t([e(s)],b.prototype,"featheringOffset",void 0),t([e(s)],b.prototype,"introFade",void 0),t([e(s)],b.prototype,"fadeToZero",void 0),t([e(s)],b.prototype,"decayRate",void 0);class w extends o{}t([e(s)],w.prototype,"min",void 0),t([e(s)],w.prototype,"max",void 0);class x extends o{getValue(t,e){return e?u([y(t,this.stops.first()),this.values.first()],[l(t,this.stops.get(this.count.subtract(1))),this.values.get(this.count.subtract(1))],[!0,()=>{const e=this.stops.findIndex(e=>d(e,t)),o=this.stops.get(e),s=e.subtract(1),i=this.stops.get(s),p=t.subtract(i).divide(o.subtract(i));return a(this.values.get(s),this.values.get(e),p)}]):this.constant}}t([e(p)],x.prototype,"constant",void 0),t([e(r.ofType(s,8))],x.prototype,"stops",void 0),t([e(r.ofType(p,8))],x.prototype,"values",void 0),t([e(n)],x.prototype,"count",void 0);class T extends o{getValue(t,e){return e?u([y(t,this.stops.first()),this.values.first()],[l(t,this.stops.get(this.count.subtract(1))),this.values.get(this.count.subtract(1))],[!0,()=>{const e=this.stops.findIndex(e=>d(e,t)),o=this.stops.get(e),s=e.subtract(1),i=this.stops.get(s),p=t.subtract(i).divide(o.subtract(i));return a(this.values.get(s),this.values.get(e),p)}]):this.constant}}function M(t,e,o){return t.add(e.multiply(new s(2)).multiply(o))}function V(t,e,o,s){return t.dvsMat3.multiply(new v(e,1)).add(t.displayViewMat3.multiply(new v(o.multiply(s),0))).xy}function S(t,e,o){const i=a(new s(0),c(e.multiply(new s(-1))),o);return c(e.multiply(t).multiply(new s(-1))).subtract(i).divide(new s(1).subtract(i))}function j(t,e,o,i){const p=h(new s(.5).subtract(i.divide(o)),new s(0),new s(.5)),r=f(d(e,p),new s(1).subtract(e.subtract(p).divide(new s(.5).subtract(p))),new s(1));return t.multiply(r)}function I(t,e){return new p(t.rgb.multiply(e),e)}function O(t,e){return m(t.multiply(3.634).add(e.multiply(5.153)).add(7.381),new s(1))}t([e(s)],T.prototype,"constant",void 0),t([e(r.ofType(s,8))],T.prototype,"stops",void 0),t([e(r.ofType(s,8))],T.prototype,"values",void 0),t([e(n)],T.prototype,"count",void 0);export{g as FlowAnimationState,x as FlowColorValue,T as FlowFloatValue,w as FlowImageryConfig,b as FlowLineConfig,S as getFadeOpacity,V as getFlowExtrudedPosition,I as getFlowPremultipliedColor,M as getFlowSize,j as getFragmentColor,O as getTimeSeed};
2
+ import{__decorate as t}from"tslib";import{uniform as e,UniformGroup as o}from"../../../GraphShaderModule.js";import{Float as s,Mat3 as i,Vec4 as p,FixedArray as r,Int as n,cond as u,greaterThan as a,mix as d,greaterThanEqual as l,lessThanEqual as c,exp as y,Vec3 as v,clamp as h,ifElse as f,mod as m}from"../../../graph/glsl.js";class g extends o{}t([e(s)],g.prototype,"time",void 0),t([e(s)],g.prototype,"displayOpacity",void 0),t([e(s)],g.prototype,"startTime",void 0),t([e(s)],g.prototype,"endTime",void 0);class b extends o{}t([e(i)],b.prototype,"localToScreenMat3",void 0);class w extends o{}t([e(s)],w.prototype,"trailLength",void 0),t([e(s)],w.prototype,"flowSpeed",void 0),t([e(s)],w.prototype,"featheringSize",void 0),t([e(s)],w.prototype,"featheringOffset",void 0),t([e(s)],w.prototype,"introFade",void 0),t([e(s)],w.prototype,"fadeToZero",void 0),t([e(s)],w.prototype,"decayRate",void 0);class x extends o{}t([e(s)],x.prototype,"min",void 0),t([e(s)],x.prototype,"max",void 0);class T extends o{getValue(t,e){return e?u([c(t,this.stops.first()),this.values.first()],[l(t,this.stops.get(this.count.subtract(1))),this.values.get(this.count.subtract(1))],[!0,()=>{const e=this.stops.findIndex(e=>a(e,t)),o=this.stops.get(e),s=e.subtract(1),i=this.stops.get(s),p=t.subtract(i).divide(o.subtract(i));return d(this.values.get(s),this.values.get(e),p)}]):this.constant}}t([e(p)],T.prototype,"constant",void 0),t([e(r.ofType(s,8))],T.prototype,"stops",void 0),t([e(r.ofType(p,8))],T.prototype,"values",void 0),t([e(n)],T.prototype,"count",void 0);class S extends o{getValue(t,e){return e?u([c(t,this.stops.first()),this.values.first()],[l(t,this.stops.get(this.count.subtract(1))),this.values.get(this.count.subtract(1))],[!0,()=>{const e=this.stops.findIndex(e=>a(e,t)),o=this.stops.get(e),s=e.subtract(1),i=this.stops.get(s),p=t.subtract(i).divide(o.subtract(i));return d(this.values.get(s),this.values.get(e),p)}]):this.constant}}function M(t,e,o){return t.add(e.multiply(new s(2)).multiply(o))}function V(t,e,o,s,i){const p=e.localToScreenMat3.multiply(new v(o,1)).add(new v(s.multiply(i),0));return t.displayViewMat3.multiply(p).xy}function j(t,e,o){const i=d(new s(0),y(e.multiply(new s(-1))),o);return y(e.multiply(t).multiply(new s(-1))).subtract(i).divide(new s(1).subtract(i))}function I(t,e,o,i){const p=h(new s(.5).subtract(i.divide(o)),new s(0),new s(.5)),r=f(a(e,p),new s(1).subtract(e.subtract(p).divide(new s(.5).subtract(p))),new s(1));return t.multiply(r)}function O(t,e){return new p(t.rgb.multiply(e),e)}function z(t,e){return m(t.multiply(3.634).add(e.multiply(5.153)).add(7.381),new s(1))}t([e(s)],S.prototype,"constant",void 0),t([e(r.ofType(s,8))],S.prototype,"stops",void 0),t([e(r.ofType(s,8))],S.prototype,"values",void 0),t([e(n)],S.prototype,"count",void 0);export{g as FlowAnimationState,T as FlowColorValue,S as FlowFloatValue,x as FlowImageryConfig,w as FlowLineConfig,b as FlowTransform,j as getFadeOpacity,V as getFlowExtrudedPosition,O as getFlowPremultipliedColor,M as getFlowSize,I as getFragmentColor,z as getTimeSeed};
@@ -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 l,min as x,not as c,Vec2 as a,max as w,equal as o,clamp as d,length as b,distance as m,Mat3 as p,abs as f,step as g,lessThanEqual as v,dot as I,normalize as h}from"../../graph/glsl.js";import{noHit as R,trueHit as j,epsilonHitTest as z,candidateHit as C}from"./constants.js";import{cross2 as S}from"./utils.js";function T(t,n){return I(t,h(n))}function V(t,n,y){const r=y.subtract(n),u=T(t.subtract(n),r),i=d(u.divide(b(r)),new e(0),new e(1));return m(t,n.add(i.multiply(y.subtract(n))))}function M(t){const n=f(t);return g(n.x.add(n.y).add(n.z),new e(1.05))}function P(t,n,r,u){const i=new p(r.x.multiply(u.y).subtract(u.x.multiply(r.y)),u.x.multiply(n.y).subtract(n.x.multiply(u.y)),n.x.multiply(r.y).subtract(r.x.multiply(n.y)),r.y.subtract(u.y),u.y.subtract(n.y),n.y.subtract(r.y),u.x.subtract(r.x),n.x.subtract(u.x),r.x.subtract(n.x)),s=n.x.multiply(r.y.subtract(u.y)),l=r.x.multiply(u.y.subtract(n.y)),x=u.x.multiply(n.y.subtract(r.y)),c=s.add(l).add(x);return new e(1).divide(c).multiply(i.multiply(new y(1,t)))}function q(t,n,y,r){return o(M(P(t,n,y,r)),new e(1))}function k(n,y,r,u){const a=r.subtract(y),w=u.subtract(y),o=S(a,w),d=t(s(o,new e(z)),i(o,new e(-z)));return l([t(c(d),q(n.xy,y,r,u)),new e(-1)],[!0,()=>{const t=V(n,y,r),e=V(n,r,u),i=V(n,u,y);return x(x(t,e),i)}])}function A(t,n,e){const{viewMat3:r,tileMat3:u}=t.view,i=r.multiply(u),s=i.multiply(new y(n.pos,1)),l=i.multiply(new y(e.nextPos1,1)),x=i.multiply(new y(e.nextPos2,1));return k(t.hittestRequest.position,s.xy,l.xy,x.xy)}function B(t,n,e){return m(t,e).subtract(n)}function D(y,u,i,s){const l=y.x,x=y.y,a=u.x,w=u.y,d=i.x,b=i.y,m=s.x,p=s.y,f=m.subtract(d),g=l.subtract(d),I=a.subtract(l),h=p.subtract(b),R=x.subtract(b),j=w.subtract(x),z=h.multiply(I).subtract(f.multiply(j)),C=f.multiply(R).subtract(h.multiply(g)).divide(z),S=I.multiply(R).subtract(j.multiply(g)).divide(z),T=t(c(o(z,new e(0))),t(t(n(C,new e(0)),v(C,new e(1))),t(n(S,new e(0)),v(S,new e(1)))));return r(T,new e(1),new e(0))}function E(e,y,r,u,i){return t(t(n(e.x,y),n(e.y,r)),t(s(e.x,u),v(e.y,i)))}function F(n,y,r,s){const l=s.xy,c=s.zw,d=new a(c.x,l.y),b=new a(l.x,c.y),m=x(l.x,c.x),p=x(l.y,c.y),f=w(l.x,c.x),g=w(l.y,c.y),v=P(new a(m,p),n,y,r),I=P(new a(f,g),n,y,r),h=P(new a(m,g),n,y,r),R=P(new a(f,p),n,y,r),j=t(o(M(v),new e(1)),t(o(M(I),new e(1)),t(o(M(h),new e(1)),o(M(R),new e(1))))),z=D(l,d,n.xy,y.xy).add(D(d,c,n.xy,y.xy)).add(D(b,c,n.xy,y.xy)).add(D(b,l,n.xy,y.xy)),C=D(l,d,n.xy,r.xy).add(D(d,c,n.xy,r.xy)).add(D(b,c,n.xy,r.xy)).add(D(b,l,n.xy,r.xy)),S=D(l,d,y.xy,r.xy).add(D(d,c,y.xy,r.xy)).add(D(b,c,y.xy,r.xy)).add(D(b,l,y.xy,r.xy)),T=E(n.xy,m,p,f,g),V=E(y.xy,m,p,f,g),q=E(r.xy,m,p,f,g),k=t(T,t(V,q));return{hasIntersectingSegments:u(i(z,new e(0)),u(i(C,new e(0)),i(S,new e(0)))),allTriangleVerticesInside:k,triangleContainsRect:j}}function G(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:l,triangleContainsRect:x}=F(t,n,y,i);return r(s,new e(C),r(u(l,x),new e(j),new e(R)))}function H(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:l,triangleContainsRect:x}=F(t,n,y,i);return r(u(s,u(l,x)),new e(j),new e(R))}function J(y){return t(n(y.tlbr.x,new e(0)),n(y.tlbr.y,new e(0)),n(y.tlbr.z,new e(0)),n(y.tlbr.w,new e(0)))}export{V as distPointSegment,k as distPointTriangle,A as hittestFill,B as hittestMarker,G as hittestMarkerScreenRect,H as hittestScreenRect,M as inTriangle,F as intersectsScreenRect,J as isRectHittest,E as pointInRect,T as projectScalar,D as segmentIntersects,P as xyToBarycentric};
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};
@@ -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 p,uniform as r,define as s,option as l,texture as n,input as a,VertexInput as c,UniformGroup as h,FragmentInput as g}from"../../../GraphShaderModule.js";import{Vec3 as y,Vec4 as u,ifElse as d,texture2D as v,sign as x,mix as P,Vec2 as m,Mat3 as j,Float as b,Sampler2D as f}from"../../../graph/glsl.js";import{getPixelLocation as k,isOutside as M,getPixel as S,ProjectionConfig as T,ProjectionTextures as _}from"./projection.js";class w extends c{}t([p(0,m)],w.prototype,"position",void 0);class z extends g{}class E extends h{}t([r(j)],E.prototype,"dvsMat3",void 0),t([r(m)],E.prototype,"coordScale",void 0),t([r(m)],E.prototype,"srcImageSize",void 0),t([r(b)],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}vertex(t){const o=t.position,{dvsMat3:i,coordScale:e}=this.config,p=i.multiply(new y(o.multiply(e),1));return{uv:o,glPosition:new u(p,1)}}fragment(t){const o=new e,i=k(t.uv,this.applyProjection?this.projectionConfig:void 0,this.applyProjection?this.projectionTextures:void 0,this.lookupProjection);let p=this._colorize(i,t.uv);this.applyPixelHighlights&&(p=this._highlightPixels(t.uv,p));const r=d(M(i),new u(0),p);let s=r.a.multiply(this.config.opacity);if(this.applyPixelMask){const o=this._getPixelMask(t.uv);s=s.multiply(o)}return o.fragColor=new u(r.rgb,1).multiply(s),o}_getPixel(t){const{config:o,bicubic:i,bilinear:e,nearestOnEdge:p}=this;return S(t,{texture:this.texture,srcImageSize:o.srcImageSize},{bicubic:i,bilinear:e,nearestOnEdge:p})}_getPixelMask(t){const o=v(this.pixelMaskTexture,t);return x(o.a)}_highlightPixels(t,o){const i=v(this.highlightTexture,t),e=x(i.a);return P(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([r(E)],O.prototype,"config",void 0),t([l(T)],O.prototype,"projectionConfig",void 0),t([n(f)],O.prototype,"texture",void 0),t([n(_)],O.prototype,"projectionTextures",void 0),t([n(f)],O.prototype,"pixelMaskTexture",void 0),t([n(f)],O.prototype,"highlightTexture",void 0),t([o(0,a(w))],O.prototype,"vertex",null),t([o(0,a(z))],O.prototype,"fragment",null);export{O as BaseRasterColorizerShader,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 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};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{define as i}from"../../../GraphShaderModule.js";import{mix as r,Vec4 as s,texture2D as o}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as h}from"./BaseRasterColorizerShader.js";class e extends h{constructor(){super(...arguments),this.hasExistingHighlights=!1}_computeHighlightedColor(t,i,h){const e=r(new s(0),i,t);if(this.hasExistingHighlights){const i=o(this.highlightTexture,h);return r(i,e,t)}return e}}t([i],e.prototype,"hasExistingHighlights",void 0);export{e as BaseRasterHighlightShader};
2
+ import{__decorate as t}from"tslib";import{define as i}from"../../../GraphShaderModule.js";import{mix as r,Vec4 as s,texture2D as o}from"../../../graph/glsl.js";import{BaseRasterFullscreenShader as h}from"./BaseRasterColorizerShader.js";class e extends h{constructor(){super(...arguments),this.hasExistingHighlights=!1}_computeHighlightedColor(t,i,h){const e=r(new s(0),i,t);if(this.hasExistingHighlights){const i=o(this.highlightTexture,h);return r(i,e,t)}return e}}t([i],e.prototype,"hasExistingHighlights",void 0);export{e as BaseRasterHighlightShader};
@@ -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 a,input as n,VertexInput as s,UniformGroup as l,FragmentInput as d}from"../../../GraphShaderModule.js";import{Float as y,clamp as c,Vec2 as v,cos as u,sin as g,Int as m,Vec4 as f,Vec3 as x,Mat3 as h,FixedArray as w}from"../../../graph/glsl.js";class b extends s{}t([r(0,v)],b.prototype,"position",void 0),t([r(1,v)],b.prototype,"offset",void 0),t([r(2,v)],b.prototype,"vv",void 0);class R extends d{}class S extends l{}t([p(h)],S.prototype,"dvsMat3",void 0),t([p(v)],S.prototype,"coordScale",void 0),t([p(v)],S.prototype,"symbolSize",void 0),t([p(v)],S.prototype,"symbolPercentRange",void 0),t([p(v)],S.prototype,"dataRange",void 0),t([p(y)],S.prototype,"rotation",void 0),t([p(w.ofType(f,48))],S.prototype,"colors",void 0),t([p(y)],S.prototype,"opacity",void 0);const G=new y(3.14159265359);class M extends e{constructor(){super(...arguments),this.type="MagDirShader",this.rotationGeographic=null,this.dataRange=null}vertex(t){const{position:o,offset:e,vv:i}=t,{dataRange:r,rotation:p,symbolSize:a,symbolPercentRange:n,colors:s,coordScale:l,dvsMat3:d}=this.config;let h,w=e.y.add(p);if(this.rotationGeographic||(w=G.multiply(new y(2)).subtract(w).subtract(G.divide(new y(2)))),this.dataRange){const t=c(i.y.subtract(r.x).divide(r.y.subtract(r.x)),new y(0),new y(1)),o=n.x.add(t.multiply(n.y.subtract(n.x)));h=c(o,n.x,n.y)}else h=n.x.add(n.y).divide(new y(2));const b=new v(u(w),g(w)).multiply(e.x),R=o.add(b.multiply(h.multiply(a))),S=s.get(new m(i.x));return{glPosition:new f(d.multiply(new x(R.multiply(l),new y(1))),new y(1)),color:S}}fragment(t){const o=new i;return o.fragColor=t.color.multiply(this.config.opacity),o}}t([a],M.prototype,"rotationGeographic",void 0),t([a],M.prototype,"dataRange",void 0),t([p(S)],M.prototype,"config",void 0),t([o(0,n(b))],M.prototype,"vertex",null),t([o(0,n(R))],M.prototype,"fragment",null);export{M 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 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};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{__decorate as t}from"tslib";import{uniform as e,UniformGroup as l}from"../../../GraphShaderModule.js";import{Vec2 as o,Mat3 as p,Vec3 as i}from"../../../graph/glsl.js";class a extends l{}t([e(o)],a.prototype,"samplingOffset",void 0),t([e(o)],a.prototype,"samplingScale",void 0);class r extends l{}function s(t,e,l,o,p,a,r){if(t){const t=e.multiply(a.samplingScale).add(a.samplingOffset);return p.getDisplayViewScreenMat3(l,o).multiply(new i(t,1))}const s=r.localToScreenMat3.multiply(new i(e,1));return l.displayViewMat3.multiply(s)}t([e(p)],r.prototype,"localToScreenMat3",void 0);export{r as RasterVFLocalTransform,a as RasterVFSampling,s as transformRasterVFPosition};
@@ -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 n,location as i,uniform as d,define as r,input as p,VertexInput as l,UniformGroup as a,FragmentInput as s}from"../../../GraphShaderModule.js";import{clamp as y,Float as c,Vec4 as m,Vec3 as u,length as w,smoothstep as v,ifElse as f,lessThan as g,abs as x,Vec2 as h,Mat3 as b}from"../../../graph/glsl.js";import{oneMinus as S}from"../utils.js";class R extends l{}t([i(0,h)],R.prototype,"position",void 0),t([i(1,h)],R.prototype,"offset",void 0),t([i(2,h)],R.prototype,"vv",void 0);class C extends s{}class j extends a{}t([d(b)],j.prototype,"dvsMat3",void 0),t([d(h)],j.prototype,"coordScale",void 0),t([d(h)],j.prototype,"symbolSize",void 0),t([d(h)],j.prototype,"symbolPercentRange",void 0),t([d(h)],j.prototype,"dataRange",void 0),t([d(c)],j.prototype,"opacity",void 0);const M=new m(new c(.2),new c(.2),new c(.2),new c(1)),P=new c(.02),z=new c(.25),G=new c(.42),k=new c(.15);class q extends o{constructor(){super(...arguments),this.type="ScalarShader",this.innerCircle=null,this.dataRange=null}vertex(t){const{position:e,offset:o,vv:n}=t,{dataRange:i,symbolSize:d,symbolPercentRange:r,coordScale:p,dvsMat3:l}=this.config;let a;if(i){const t=y(n.y.subtract(i.x).divide(i.y.subtract(i.x)),new c(0),new c(1)),e=r.y.subtract(r.x).multiply(t).add(r.x);a=y(e,r.x,r.y)}else a=r.x.add(r.y).divide(new c(2));const s=d.multiply(a),w=e.add(o.multiply(s));return{glPosition:new m(l.multiply(new u(w.multiply(p),new c(1))),new c(1)),pos:o}}fragment(t){const e=new n,{opacity:o}=this.config,{pos:i}=t,d=w(i);let r,p=v(G,G.add(P),d);return p=p.multiply(S(v(G.add(P),G.add(new c(.1).add(P)),d))),this.innerCircle?(r=v(z,z.add(P),d),r=r.multiply(S(v(z.add(P),z.add(new c(.1).add(P)),d)))):r=f(g(x(i.x),k),new c(1),new c(0)).multiply(f(g(x(i.y),k),new c(1),new c(0))),e.fragColor=M.multiply(o).multiply(r.add(p)),e}}t([r],q.prototype,"innerCircle",void 0),t([r],q.prototype,"dataRange",void 0),t([d(j)],q.prototype,"config",void 0),t([e(0,p(R))],q.prototype,"vertex",null),t([e(0,p(C))],q.prototype,"fragment",null);export{q 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 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};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{BaseRasterColorizerShader as e}from"../BaseRasterColorizerShader.js";class r extends e{constructor(){super(...arguments),this.type="ReprojectShader"}_colorize(e){return this._getPixel(e)}}export{r as ReprojectShader};
2
+ import{BaseRasterFullscreenShader as e}from"../BaseRasterColorizerShader.js";class r extends e{constructor(){super(...arguments),this.type="ReprojectShader"}_colorize(e){return this._getPixel(e)}}export{r as ReprojectShader};