@arcgis/core 4.33.0-next.20250226 → 4.33.0-next.20250228

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 (139) hide show
  1. package/WebLinkChart.js +1 -1
  2. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +2 -0
  3. package/applications/KnowledgeStudio/generalSharedKgUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/{3170552a6310725d7730.js → 05b7c739115be0490583.js} +1 -1
  6. package/assets/esri/core/workers/chunks/2c227d97d00b3849f441.js +1 -0
  7. package/assets/esri/core/workers/chunks/2ce80c764cca9e6a20cd.js +1 -0
  8. package/assets/esri/core/workers/chunks/{2716394f121804d93b4e.js → 4253438dd3045566892d.js} +1 -1
  9. package/assets/esri/core/workers/chunks/6f9bfa6ed34ef6efcc6f.js +1 -0
  10. package/assets/esri/core/workers/chunks/8abd2235aa702d8b239f.js +1 -0
  11. package/assets/esri/core/workers/chunks/a288c2474ef193f9fbd3.js +1 -0
  12. package/assets/esri/core/workers/chunks/{e118245566be994a53da.js → a901c445d36f1a9e7df8.js} +1 -1
  13. package/assets/esri/core/workers/chunks/a91f2d1deb950f46ad09.js +1 -0
  14. package/assets/esri/core/workers/chunks/ae25c6108918d37e61bf.js +1 -0
  15. package/assets/esri/core/workers/chunks/{feb656f172ec9fe64752.js → af005704f23088db3ded.js} +1 -1
  16. package/assets/esri/core/workers/chunks/b8416f2560710258c239.js +1 -0
  17. package/assets/esri/core/workers/chunks/{dea40706ca4e37d5c6e2.js → d4d011eea16a89a5aad9.js} +1 -1
  18. package/assets/esri/core/workers/chunks/f45ef721d21388846101.js +1 -0
  19. package/assets/esri/core/workers/chunks/{2d4bfd747580ed3b6f4d.js → fdab6921d007929ab288.js} +1 -1
  20. package/assets/esri/themes/base/widgets/_Sketch.scss +4 -4
  21. package/assets/esri/themes/dark/main.css +1 -1
  22. package/assets/esri/themes/light/main.css +1 -1
  23. package/assets/esri/themes/light/view.css +1 -1
  24. package/chunks/chartUtilsAm5.js +1 -1
  25. package/core/sql/StandardizedFunctions.js +1 -1
  26. package/core/sql/WhereClause.js +1 -1
  27. package/core/sql/sqlCompareUtils.js +1 -1
  28. package/geometry/SpatialReference.js +1 -1
  29. package/interfaces.d.ts +17 -15
  30. package/intl/duration.js +1 -1
  31. package/intl/locale.js +1 -1
  32. package/intl/messages.js +1 -1
  33. package/layers/BingMapsLayer.js +1 -1
  34. package/layers/LinkChartLayer.js +1 -1
  35. package/layers/SubtypeGroupLayer.js +1 -1
  36. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  37. package/layers/mixins/SublayersOwner.js +1 -1
  38. package/layers/support/rasterDatasets/covJSONParser.js +1 -1
  39. package/package.json +1 -1
  40. package/support/popupUtils.js +1 -1
  41. package/support/revision.js +1 -1
  42. package/symbols/cim/animationUtils.js +1 -1
  43. package/symbols/support/previewSymbol2D.js +1 -1
  44. package/views/2d/engine/webgl/animations/utils.js +1 -1
  45. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  46. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  47. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  48. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  49. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  50. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
  51. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  52. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  53. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  54. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  55. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
  56. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  57. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js +1 -1
  58. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  59. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
  60. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  61. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
  62. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
  63. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  64. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
  66. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternOutlineFillShader.js +1 -1
  67. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TestShader.js +1 -1
  68. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  69. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerLUTShader.js +1 -1
  70. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerShadedReliefShader.js +1 -1
  71. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerStretchShader.js +1 -1
  72. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/AspectShader.js +1 -1
  73. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/BandArithmeticShader.js +1 -1
  74. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ColormapToRGBShader.js +1 -1
  75. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CompositeBandShader.js +1 -1
  76. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ComputeChangeShader.js +1 -1
  77. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ContrastBrightnessShader.js +1 -1
  78. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ConvolutionShader.js +1 -1
  79. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CurvatureShader.js +1 -1
  80. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ExtractBandShader.js +1 -1
  81. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/FocalStatisticsShader.js +1 -1
  82. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/GrayscaleShader.js +1 -1
  83. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/HillshadeShader.js +1 -1
  84. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/LocalShader.js +1 -1
  85. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MaskShader.js +1 -1
  86. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/NDVIShader.js +1 -1
  87. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/RemapShader.js +1 -1
  88. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ReprojectShader.js +1 -1
  89. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ShadedReliefShader.js +1 -1
  90. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/SlopeShader.js +1 -1
  91. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/StretchShader.js +1 -1
  92. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  93. package/views/3d/environment/CloudsRenderer.js +1 -1
  94. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  95. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  96. package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
  97. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +11 -11
  98. package/views/3d/webgl-engine/core/shaderLibrary/util/LookupCubemapFromTextureArray.glsl.js +39 -0
  99. package/views/3d/webgl-engine/core/shaderModules/Texture2DArrayBindUniform.js +5 -0
  100. package/views/3d/webgl-engine/lib/ComponentUtils.js +1 -1
  101. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  102. package/views/View.js +1 -1
  103. package/views/webgl/FramebufferObject.js +1 -1
  104. package/views/webgl/ShaderBuilder.js +1 -1
  105. package/views/webgl/capabilities.js +1 -1
  106. package/webdoc/support/webdocSaveUtils.js +1 -1
  107. package/webdoc/support/writeUtils.js +1 -1
  108. package/widgets/Feature/FeatureRelationship.js +1 -1
  109. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  110. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  111. package/widgets/Feature.js +1 -1
  112. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  113. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  114. package/widgets/FeatureTable.js +1 -1
  115. package/widgets/Features/FeaturesDrillIn.js +1 -1
  116. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  117. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  118. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  119. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  120. package/widgets/OrientedImageryViewer/dataCaptureUtils.js +1 -1
  121. package/widgets/OrientedImageryViewer/symbols.js +1 -1
  122. package/widgets/OrientedImageryViewer.js +1 -1
  123. package/widgets/Print/PrintViewModel.js +1 -1
  124. package/widgets/ScaleRangeSlider/scalePreviewUtils.js +1 -1
  125. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  126. package/widgets/support/SelectionToolbar.js +1 -1
  127. package/widgets/support/Selector2D/SelectionOperation.js +1 -1
  128. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  129. package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +1 -1
  130. package/widgets/support/chartUtilsAm5.js +1 -1
  131. package/assets/esri/core/workers/chunks/22e7db720724f2426d74.js +0 -1
  132. package/assets/esri/core/workers/chunks/2515ace848cf078c6263.js +0 -1
  133. package/assets/esri/core/workers/chunks/2c348d0e8131f08391cb.js +0 -1
  134. package/assets/esri/core/workers/chunks/380128e2cb74798478c1.js +0 -1
  135. package/assets/esri/core/workers/chunks/66338f008ff0992ffca2.js +0 -1
  136. package/assets/esri/core/workers/chunks/68ac336f7384bbca85ab.js +0 -1
  137. package/assets/esri/core/workers/chunks/84e50d3ff298b7b66070.js +0 -1
  138. package/assets/esri/core/workers/chunks/aa98a6c38e82d384403c.js +0 -1
  139. package/assets/esri/core/workers/chunks/d5ebe6b7cd9c8e40b386.js +0 -1
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as l}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as n,define as i,VertexInput as a,UniformGroup as o,FragmentOutput as u,input as p,FragmentInput as s}from"../../GraphShaderModule.js";import{Vec4 as c,texture2D as y,ifElse as d,equal as m,Float as w,clamp as b,Vec3 as g,abs as f,max as k,min as C,step as v,cond as h,sqrt as x,lessThanEqual as j,greaterThan as T,dot as F,lessThan as M,Vec2 as O,Sampler2D as G}from"../../graph/glsl.js";import{uvToClip as P,oneMinus as S,minusOne as _,minusScalar as q}from"./utils.js";class z extends a{}t([e(0,O)],z.prototype,"position",void 0);class A extends s{}class B extends o{}t([r(G)],B.prototype,"layerTexture",void 0),t([r(G)],B.prototype,"backbufferTexture",void 0),t([r(w)],B.prototype,"opacity",void 0),t([r(w)],B.prototype,"inFadeOpacity",void 0);class D extends n{vertex(t){return{uv:t.position,glPosition:new c(P(t.position),0,1)}}fragment(t){const l=new u,e=y(this.config.layerTexture,t.uv),r=y(this.config.backbufferTexture,t.uv),n=d(m(e.a,new w(0)),e.rgb,e.rgb.divide(e.a)),i=d(m(r.a,new w(0)),r.rgb,r.rgb.divide(r.a)),a=this.config.opacity.multiply(e.a),o=r.a;switch(this.blendMode){case"destination-over":l.fragColor=new c(n.multiply(a).multiply(S(o)).add(i.multiply(o)),a.add(o).subtract(a.multiply(o)));break;case"source-in":{const t=new c(n.multiply(a).multiply(o),a.multiply(o)),e=new c(i.multiply(o),o).multiply(S(this.config.opacity)).multiply(this.config.inFadeOpacity);l.fragColor=t.add(e)}break;case"destination-in":{const t=new c(i.multiply(o).multiply(a),o.multiply(a)),e=new c(i.multiply(o),o).multiply(new c(S(this.config.opacity).multiply(this.config.inFadeOpacity)));l.fragColor=t.add(e)}break;case"source-out":l.fragColor=new c(n.multiply(a).multiply(S(o)),a.multiply(S(o)));break;case"destination-out":l.fragColor=new c(i.multiply(o).multiply(S(a)),o.multiply(S(a)));break;case"source-atop":l.fragColor=new c(n.multiply(a).multiply(o).add(i.multiply(o.multiply(S(a)))),o);break;case"destination-atop":l.fragColor=new c(n.multiply(a.multiply(S(o))).add(i.multiply(o).multiply(a)),a);break;case"xor":l.fragColor=new c(n.multiply(a.multiply(S(o))).add(i.multiply(o.multiply(S(a)))),a.multiply(S(o)).add(o.multiply(S(a))));break;case"multiply":l.fragColor=new c(n.multiply(a).multiply(i.multiply(o)).add(n.multiply(a).multiply(S(o))).add(i.multiply(o).multiply(S(a))),a.add(o.multiply(S(a))));break;case"screen":l.fragColor=new c(n.add(i).subtract(n.multiply(i)).multiply(a.multiply(o)).add(n.multiply(a).multiply(S(o))).add(i.multiply(o).multiply(S(a))),a.add(o.multiply(S(a))));break;case"overlay":{const t=new g(H(i.r,n.r),H(i.g,n.g),H(i.b,n.b));l.fragColor=E(t,n,i,a,o)}break;case"darken":{const t=C(n,i);l.fragColor=E(t,n,i,a,o)}break;case"lighter":l.fragColor=new c(n.multiply(a).add(i.multiply(o)),a.add(o));break;case"lighten":{const t=k(n,i);l.fragColor=E(t,n,i,a,o)}break;case"color-dodge":{const t=b(new g(I(i.r,n.r),I(i.g,n.g),I(i.b,n.b)),new g(0),new g(1));l.fragColor=E(t,n,i,a,o)}break;case"color-burn":{const t=new g(J(i.r,n.r),J(i.g,n.g),J(i.b,n.b));l.fragColor=E(t,n,i,a,o)}break;case"hard-light":{const t=new g(K(i.r,n.r),K(i.g,n.g),K(i.b,n.b));l.fragColor=E(t,n,i,a,o)}break;case"soft-light":{const t=new g(L(i.r,n.r),L(i.g,n.g),L(i.b,n.b));l.fragColor=E(t,n,i,a,o)}break;case"difference":{const t=f(i.subtract(n));l.fragColor=E(t,n,i,a,o)}break;case"exclusion":{const t=n.add(i).subtract(new w(2).multiply(n).multiply(i));l.fragColor=E(t,n,i,a,o)}break;case"invert":l.fragColor=new c(new g(1).subtract(i).multiply(a).multiply(o).add(i.multiply(o).multiply(S(a))),o);break;case"vivid-light":{const t=new g(b(N(i.r,n.r),new w(0),new w(1)),b(N(i.g,n.g),new w(0),new w(1)),b(N(i.b,n.b),new w(0),new w(1)));l.fragColor=E(t,n,i,a,o)}break;case"hue":{const t=Y(n,i,i);l.fragColor=E(t,n,i,a,o)}break;case"saturation":{const t=Y(i,n,i);l.fragColor=E(t,n,i,a,o)}break;case"color":{const t=X(n,i);l.fragColor=E(t,n,i,a,o)}break;case"luminosity":{const t=X(i,n);l.fragColor=E(t,n,i,a,o)}break;case"plus":l.fragColor=b(new c(e.r.add(i.r),e.g.add(i.g),e.b.add(i.b),a.add(o)),new c(0),new c(1));break;case"minus":l.fragColor=new c(b(new g(i.r.subtract(e.r),i.g.subtract(e.g),i.b.subtract(e.b)),new g(0),new g(1)),o.multiply(a));break;case"average":{const t=i.add(n).divide(2);l.fragColor=E(t,n,i,a,o)}break;case"reflect":{const t=b(new g(Z(i.r,n.r),Z(i.g,n.g),Z(i.b,n.b)),new g(0),new g(1));l.fragColor=E(t,n,i,a,o)}break;default:l.fragColor=e.multiply(this.config.opacity)}return l}}function E(t,l,e,r,n){return new c(t.multiply(r).multiply(n).add(l.multiply(r).multiply(S(n))).add(e.multiply(n).multiply(S(r))),r.add(n.multiply(S(r))))}function H(t,l){return new w(1).subtract(v(new w(.5),l)).multiply(S(new w(2).multiply(S(l).multiply(S(t))))).add(v(new w(.5),l).multiply(new w(2).multiply(l).multiply(t)))}function I(t,l){return d(m(t,new w(0)),new w(0),d(m(l,new w(1)),new w(1),C(new w(1),t.divide(new w(1).subtract(l)))))}function J(t,l){return d(m(t,new w(1)),new w(1),d(m(l,new w(0)),new w(0),S(C(new w(1),S(t).divide(l)))))}function K(t,l){return new w(1).subtract(v(new w(.5),l)).multiply(new w(2).multiply(l).multiply(t)).add(v(new w(.5),l).multiply(S(new w(2).multiply(S(l).multiply(S(t))))))}function L(t,l){return h([j(l,new w(.5)),()=>{const e=new w(2).multiply(l),r=S(e),n=S(t);return t.subtract(r.multiply(t).multiply(n))}],[j(t,new w(.25)),()=>{const e=new w(2).multiply(l),r=_(e).multiply(t),n=new w(16).multiply(t).subtract(new w(12)).multiply(t).add(new w(3));return t.add(r.multiply(n))}],[!0,()=>{const e=new w(2).multiply(l),r=_(e),n=x(t).subtract(t);return t.add(r.multiply(n))}])}function N(t,l){const e=S(v(new w(.5),l)).multiply(J(t,new w(2).multiply(l))),r=v(new w(.5),l).multiply(I(t,new w(2).multiply(q(l,.5))));return e.add(r)}function Q(t){return C(C(t.r,t.g),t.b)}function R(t){return k(k(t.r,t.g),t.b)}function U(t){return F(t,new g(.3,.59,.11))}function V(t){return R(t).subtract(Q(t))}function W(t){const l=U(t),e=Q(t),r=R(t);return h([M(e,new w(0)),()=>{const r=t.subtract(l).multiply(l),n=l.subtract(e);return l.add(r.divide(n))}],[T(r,new w(1)),()=>{const e=t.subtract(l),n=S(l),i=e.multiply(n),a=r.subtract(l);return l.add(i.divide(a))}],[!0,t])}function X(t,l){const e=U(t),r=U(l).subtract(e);return W(t.add(new g(r)))}function Y(t,l,e){const r=Q(t),n=V(t),i=V(l);return X(d(T(n,new w(0)),(()=>t.subtract(r).multiply(i).divide(n)),new g(0)),e)}function Z(t,l){return d(m(l,new w(1)),l,(()=>{const e=S(l),r=t.multiply(t).divide(e);return C(r,new w(1))}))}t([i],D.prototype,"blendMode",void 0),t([r(B)],D.prototype,"config",void 0),t([l(0,p(z))],D.prototype,"vertex",null),t([l(0,p(A))],D.prototype,"fragment",null);export{D as BlendShader};
5
+ import{_ as t,a as l}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as n,define as i,VertexInput as a,UniformGroup as o,FragmentOutput as u,input as p,FragmentInput as s}from"../../GraphShaderModule.js";import{Vec4 as c,texture2D as d,ifElse as y,equal as m,Float as w,clamp as b,Vec3 as g,abs as f,max as k,min as C,step as v,cond as h,sqrt as x,lessThanEqual as j,greaterThan as T,dot as F,lessThan as M,Vec2 as O,Sampler2D as S}from"../../graph/glsl.js";import{uvToClip as B,oneMinus as G,minusOne as P,minusScalar as _}from"./utils.js";class q extends a{}t([e(0,O)],q.prototype,"position",void 0);class z extends s{}class A extends o{}t([r(S)],A.prototype,"layerTexture",void 0),t([r(S)],A.prototype,"backbufferTexture",void 0),t([r(w)],A.prototype,"opacity",void 0),t([r(w)],A.prototype,"inFadeOpacity",void 0);class D extends n{constructor(){super(...arguments),this.type="BlendShader"}vertex(t){return{uv:t.position,glPosition:new c(B(t.position),0,1)}}fragment(t){const l=new u,e=d(this.config.layerTexture,t.uv),r=d(this.config.backbufferTexture,t.uv),n=y(m(e.a,new w(0)),e.rgb,e.rgb.divide(e.a)),i=y(m(r.a,new w(0)),r.rgb,r.rgb.divide(r.a)),a=this.config.opacity.multiply(e.a),o=r.a;switch(this.blendMode){case"destination-over":l.fragColor=new c(n.multiply(a).multiply(G(o)).add(i.multiply(o)),a.add(o).subtract(a.multiply(o)));break;case"source-in":{const t=new c(n.multiply(a).multiply(o),a.multiply(o)),e=new c(i.multiply(o),o).multiply(G(this.config.opacity)).multiply(this.config.inFadeOpacity);l.fragColor=t.add(e)}break;case"destination-in":{const t=new c(i.multiply(o).multiply(a),o.multiply(a)),e=new c(i.multiply(o),o).multiply(new c(G(this.config.opacity).multiply(this.config.inFadeOpacity)));l.fragColor=t.add(e)}break;case"source-out":l.fragColor=new c(n.multiply(a).multiply(G(o)),a.multiply(G(o)));break;case"destination-out":l.fragColor=new c(i.multiply(o).multiply(G(a)),o.multiply(G(a)));break;case"source-atop":l.fragColor=new c(n.multiply(a).multiply(o).add(i.multiply(o.multiply(G(a)))),o);break;case"destination-atop":l.fragColor=new c(n.multiply(a.multiply(G(o))).add(i.multiply(o).multiply(a)),a);break;case"xor":l.fragColor=new c(n.multiply(a.multiply(G(o))).add(i.multiply(o.multiply(G(a)))),a.multiply(G(o)).add(o.multiply(G(a))));break;case"multiply":l.fragColor=new c(n.multiply(a).multiply(i.multiply(o)).add(n.multiply(a).multiply(G(o))).add(i.multiply(o).multiply(G(a))),a.add(o.multiply(G(a))));break;case"screen":l.fragColor=new c(n.add(i).subtract(n.multiply(i)).multiply(a.multiply(o)).add(n.multiply(a).multiply(G(o))).add(i.multiply(o).multiply(G(a))),a.add(o.multiply(G(a))));break;case"overlay":{const t=new g(H(i.r,n.r),H(i.g,n.g),H(i.b,n.b));l.fragColor=E(t,n,i,a,o)}break;case"darken":{const t=C(n,i);l.fragColor=E(t,n,i,a,o)}break;case"lighter":l.fragColor=new c(n.multiply(a).add(i.multiply(o)),a.add(o));break;case"lighten":{const t=k(n,i);l.fragColor=E(t,n,i,a,o)}break;case"color-dodge":{const t=b(new g(I(i.r,n.r),I(i.g,n.g),I(i.b,n.b)),new g(0),new g(1));l.fragColor=E(t,n,i,a,o)}break;case"color-burn":{const t=new g(J(i.r,n.r),J(i.g,n.g),J(i.b,n.b));l.fragColor=E(t,n,i,a,o)}break;case"hard-light":{const t=new g(K(i.r,n.r),K(i.g,n.g),K(i.b,n.b));l.fragColor=E(t,n,i,a,o)}break;case"soft-light":{const t=new g(L(i.r,n.r),L(i.g,n.g),L(i.b,n.b));l.fragColor=E(t,n,i,a,o)}break;case"difference":{const t=f(i.subtract(n));l.fragColor=E(t,n,i,a,o)}break;case"exclusion":{const t=n.add(i).subtract(new w(2).multiply(n).multiply(i));l.fragColor=E(t,n,i,a,o)}break;case"invert":l.fragColor=new c(new g(1).subtract(i).multiply(a).multiply(o).add(i.multiply(o).multiply(G(a))),o);break;case"vivid-light":{const t=new g(b(N(i.r,n.r),new w(0),new w(1)),b(N(i.g,n.g),new w(0),new w(1)),b(N(i.b,n.b),new w(0),new w(1)));l.fragColor=E(t,n,i,a,o)}break;case"hue":{const t=Y(n,i,i);l.fragColor=E(t,n,i,a,o)}break;case"saturation":{const t=Y(i,n,i);l.fragColor=E(t,n,i,a,o)}break;case"color":{const t=X(n,i);l.fragColor=E(t,n,i,a,o)}break;case"luminosity":{const t=X(i,n);l.fragColor=E(t,n,i,a,o)}break;case"plus":l.fragColor=b(new c(e.r.add(i.r),e.g.add(i.g),e.b.add(i.b),a.add(o)),new c(0),new c(1));break;case"minus":l.fragColor=new c(b(new g(i.r.subtract(e.r),i.g.subtract(e.g),i.b.subtract(e.b)),new g(0),new g(1)),o.multiply(a));break;case"average":{const t=i.add(n).divide(2);l.fragColor=E(t,n,i,a,o)}break;case"reflect":{const t=b(new g(Z(i.r,n.r),Z(i.g,n.g),Z(i.b,n.b)),new g(0),new g(1));l.fragColor=E(t,n,i,a,o)}break;default:l.fragColor=e.multiply(this.config.opacity)}return l}}function E(t,l,e,r,n){return new c(t.multiply(r).multiply(n).add(l.multiply(r).multiply(G(n))).add(e.multiply(n).multiply(G(r))),r.add(n.multiply(G(r))))}function H(t,l){return new w(1).subtract(v(new w(.5),l)).multiply(G(new w(2).multiply(G(l).multiply(G(t))))).add(v(new w(.5),l).multiply(new w(2).multiply(l).multiply(t)))}function I(t,l){return y(m(t,new w(0)),new w(0),y(m(l,new w(1)),new w(1),C(new w(1),t.divide(new w(1).subtract(l)))))}function J(t,l){return y(m(t,new w(1)),new w(1),y(m(l,new w(0)),new w(0),G(C(new w(1),G(t).divide(l)))))}function K(t,l){return new w(1).subtract(v(new w(.5),l)).multiply(new w(2).multiply(l).multiply(t)).add(v(new w(.5),l).multiply(G(new w(2).multiply(G(l).multiply(G(t))))))}function L(t,l){return h([j(l,new w(.5)),()=>{const e=new w(2).multiply(l),r=G(e),n=G(t);return t.subtract(r.multiply(t).multiply(n))}],[j(t,new w(.25)),()=>{const e=new w(2).multiply(l),r=P(e).multiply(t),n=new w(16).multiply(t).subtract(new w(12)).multiply(t).add(new w(3));return t.add(r.multiply(n))}],[!0,()=>{const e=new w(2).multiply(l),r=P(e),n=x(t).subtract(t);return t.add(r.multiply(n))}])}function N(t,l){const e=G(v(new w(.5),l)).multiply(J(t,new w(2).multiply(l))),r=v(new w(.5),l).multiply(I(t,new w(2).multiply(_(l,.5))));return e.add(r)}function Q(t){return C(C(t.r,t.g),t.b)}function R(t){return k(k(t.r,t.g),t.b)}function U(t){return F(t,new g(.3,.59,.11))}function V(t){return R(t).subtract(Q(t))}function W(t){const l=U(t),e=Q(t),r=R(t);return h([M(e,new w(0)),()=>{const r=t.subtract(l).multiply(l),n=l.subtract(e);return l.add(r.divide(n))}],[T(r,new w(1)),()=>{const e=t.subtract(l),n=G(l),i=e.multiply(n),a=r.subtract(l);return l.add(i.divide(a))}],[!0,t])}function X(t,l){const e=U(t),r=U(l).subtract(e);return W(t.add(new g(r)))}function Y(t,l,e){const r=Q(t),n=V(t),i=V(l);return X(y(T(n,new w(0)),(()=>t.subtract(r).multiply(i).divide(n)),new g(0)),e)}function Z(t,l){return y(m(l,new w(1)),l,(()=>{const e=G(l),r=t.multiply(t).divide(e);return C(r,new w(1))}))}t([i],D.prototype,"blendMode",void 0),t([r(A)],D.prototype,"config",void 0),t([l(0,p(q))],D.prototype,"vertex",null),t([l(0,p(z))],D.prototype,"fragment",null);export{D as BlendShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{location as o,uniform as i,input as r}from"../../GraphShaderModule.js";import{Vec2 as l,sin as s,cos as p,Vec3 as a,ifElse as n,Float as d,mod as m,mix as u,texture2D as f,greaterThan as y,equal as c,float as v,Vec4 as x,mat3 as h,negate as g,vec2 as b}from"../../graph/glsl.js";import{FeatureFragmentInput as w,BaseHittestVertexInput as j}from"./AFeatureShader.js";import{c256ToRad as O,bitsetGenericConsiderAlphaOnly as T,bitsetFillRandomPatternOffset as A}from"./constants.js";import{FillVertexInput as C,FillShader as F}from"./FillShader.js";import{LocalTileOffset as I}from"./LocalTileOffset.js";import{MosaicInfo as S}from"./MosaicInfo.js";import{getBit as z,isNan as M,rgba2float as V,rand as k}from"./utils.js";class q extends C{}t([o(5,x)],q.prototype,"tlbr",void 0),t([o(6,d)],q.prototype,"width",void 0),t([o(7,d)],q.prototype,"height",void 0),t([o(8,l)],q.prototype,"offset",void 0),t([o(9,l)],q.prototype,"scale",void 0),t([o(10,d)],q.prototype,"angle",void 0);class G extends w{}function L(t,e,o,i,r){const l=c(z(r,A),v(1)),s=V(new x(t,0));return n(l,h(i.divide(e.x),o.divide(e.y),0,g(o.divide(e.x)),i.divide(e.y),0,k(b(s,0)),k(b(0,s)),1),h(i.divide(e.x),o.divide(e.y),0,g(o.divide(e.x)),i.divide(e.y),0,0,0,1))}function P(t,e){const o=t.view.requiredZoomFactor,i=new l(e.width,e.height),r=i.multiply(e.scale).multiply(o),m=e.angle.multiply(O),u=s(m),f=p(m),y=L(e.id,r,u,f,e.bitset),c=t.localTileOffset.getPatternOffsetAtTileOrigin(i,u,f),v=o.multiply(e.scale).multiply(e.offset.subtract(c)).divide(r),x=new a(e.pos,1),h=y.multiply(x).xy.subtract(v),g=e.tlbr.divide(t.mosaicInfo.size.xyxy);let b=z(e.bitset,T);return null!=t.visualVariableColor&&(b=n(M(t.storage.getColorValue(e.id)),new d(0),b)),{tileTextureCoord:h,tlbr:g,sampleAlphaOnly:b}}function Z(t,e){const o=m(e.tileTextureCoord,new d(1)),i=u(e.tlbr.xy,e.tlbr.zw,o);let r=f(t.mosaicInfo.texture,i);return r=n(y(e.sampleAlphaOnly,new d(.5)),r.aaaa,r),e.color.multiply(r)}class _ extends F{vertex(t,e){return{...super.vertex(t,e),...P(this,t)}}fragment(t){const e=Z(this,t);return this.getFragmentOutput(e,t,new d(0))}}t([i(S)],_.prototype,"mosaicInfo",void 0),t([i(I)],_.prototype,"localTileOffset",void 0),t([e(0,r(q)),e(1,r(j))],_.prototype,"vertex",null),t([e(0,r(G))],_.prototype,"fragment",null);export{G as ComplexFillFragmentInput,_ as ComplexFillShader,q as ComplexFillVertexInput,Z as getComplexFillFragmentColor,P as getComplexFillVertexData};
5
+ import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{location as o,uniform as i,input as r}from"../../GraphShaderModule.js";import{Vec2 as l,sin as s,cos as p,Vec3 as a,ifElse as n,Float as d,mod as m,mix as u,texture2D as f,greaterThan as c,equal as y,float as v,Vec4 as h,mat3 as x,negate as g,vec2 as b}from"../../graph/glsl.js";import{FeatureFragmentInput as w,BaseHittestVertexInput as j}from"./AFeatureShader.js";import{c256ToRad as O,bitsetGenericConsiderAlphaOnly as T,bitsetFillRandomPatternOffset as C}from"./constants.js";import{FillVertexInput as F,FillShader as A}from"./FillShader.js";import{LocalTileOffset as I}from"./LocalTileOffset.js";import{MosaicInfo as S}from"./MosaicInfo.js";import{getBit as z,isNan as M,rgba2float as V,rand as k}from"./utils.js";class q extends F{}t([o(5,h)],q.prototype,"tlbr",void 0),t([o(6,d)],q.prototype,"width",void 0),t([o(7,d)],q.prototype,"height",void 0),t([o(8,l)],q.prototype,"offset",void 0),t([o(9,l)],q.prototype,"scale",void 0),t([o(10,d)],q.prototype,"angle",void 0);class G extends w{}function L(t,e,o,i,r){const l=y(z(r,C),v(1)),s=V(new h(t,0));return n(l,x(i.divide(e.x),o.divide(e.y),0,g(o.divide(e.x)),i.divide(e.y),0,k(b(s,0)),k(b(0,s)),1),x(i.divide(e.x),o.divide(e.y),0,g(o.divide(e.x)),i.divide(e.y),0,0,0,1))}function P(t,e){const o=t.view.requiredZoomFactor,i=new l(e.width,e.height),r=i.multiply(e.scale).multiply(o),m=e.angle.multiply(O),u=s(m),f=p(m),c=L(e.id,r,u,f,e.bitset),y=t.localTileOffset.getPatternOffsetAtTileOrigin(i,u,f),v=o.multiply(e.scale).multiply(e.offset.subtract(y)).divide(r),h=new a(e.pos,1),x=c.multiply(h).xy.subtract(v),g=e.tlbr.divide(t.mosaicInfo.size.xyxy);let b=z(e.bitset,T);return null!=t.visualVariableColor&&(b=n(M(t.storage.getColorValue(e.id)),new d(0),b)),{tileTextureCoord:x,tlbr:g,sampleAlphaOnly:b}}function Z(t,e){const o=m(e.tileTextureCoord,new d(1)),i=u(e.tlbr.xy,e.tlbr.zw,o);let r=f(t.mosaicInfo.texture,i);return r=n(c(e.sampleAlphaOnly,new d(.5)),r.aaaa,r),e.color.multiply(r)}class _ extends A{constructor(){super(...arguments),this.type="ComplexFillShader"}vertex(t,e){return{...super.vertex(t,e),...P(this,t)}}fragment(t){const e=Z(this,t);return this.getFragmentOutput(e,t,new d(0))}}t([i(S)],_.prototype,"mosaicInfo",void 0),t([i(I)],_.prototype,"localTileOffset",void 0),t([e(0,r(q)),e(1,r(j))],_.prototype,"vertex",null),t([e(0,r(G))],_.prototype,"fragment",null);export{G as ComplexFillFragmentInput,_ as ComplexFillShader,q as ComplexFillVertexInput,Z as getComplexFillFragmentColor,P as getComplexFillVertexData};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,input as i}from"../../GraphShaderModule.js";import{greaterThan as s,Float as a,ifElse as l,Vec4 as p,Vec2 as n}from"../../graph/glsl.js";import{FeatureVertexInput as m,BaseHittestVertexInput as u}from"./AFeatureShader.js";import{getComplexFillVertexData as f,getComplexFillFragmentColor as h}from"./ComplexFillShader.js";import{hittestFill as d,failHittest as c}from"./hittestUtils.js";import{getLineFragmentColor as x}from"./LineShader.js";import{LocalTileOffset as y}from"./LocalTileOffset.js";import{MosaicInfo as v}from"./MosaicInfo.js";import{AOutlineFillShader as j,getOutlineFillVertexData as g}from"./OutlineFillShader.js";import{PatternOutlineFillFragmentInput as O}from"./PatternOutlineFillShader.js";const S=16,b=1/S,w=128;class F extends m{}t([e(3,p)],F.prototype,"color",void 0),t([e(4,p)],F.prototype,"tlbr",void 0),t([e(5,a)],F.prototype,"angle",void 0),t([e(6,a)],F.prototype,"aux1",void 0),t([e(7,a)],F.prototype,"aux2",void 0),t([e(8,n)],F.prototype,"aux3",void 0),t([e(9,n)],F.prototype,"aux4",void 0),t([e(10,n)],F.prototype,"zoomRange",void 0);class R extends O{}class C extends j{vertex(t,o){const{aux1:e,aux2:r,aux3:i,aux4:l}=t,p={...t,width:e,height:r,offset:i,scale:l.multiply(b)},n={...t,halfWidth:e,referenceHalfWidth:r,offset:i,normal:l.subtract(w).multiply(b)},m=g(this,n),u=f(this,p),h=s(m.isOutline,new a(.5));return{...m,...u,...this.maybeRunHittest(t,o,h)}}fragment(t){const{isOutline:o}=t,e=s(o,new a(.5)),r=x(t,this.antialiasingControls.blur),i=h(this,t),p=l(e,r,i),n=l(e,new a(1/255),new a(0));return this.getFragmentOutput(p,t,n)}hittest(t,o,e){return l(e,c(this.hittestRequest),d(this,t,o))}}t([r(v)],C.prototype,"mosaicInfo",void 0),t([r(y)],C.prototype,"localTileOffset",void 0),t([o(0,i(F)),o(1,i(u))],C.prototype,"vertex",null),t([o(0,i(R))],C.prototype,"fragment",null);export{C as ComplexOutlineFillShader,F as ComplexOutlineFillVertexInput,S as packPrecision,w as signedToUnsignedByte};
5
+ import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,input as i}from"../../GraphShaderModule.js";import{greaterThan as s,Float as l,ifElse as p,Vec4 as a,Vec2 as n}from"../../graph/glsl.js";import{FeatureVertexInput as m,BaseHittestVertexInput as u}from"./AFeatureShader.js";import{getComplexFillVertexData as h,getComplexFillFragmentColor as f}from"./ComplexFillShader.js";import{hittestFill as d,failHittest as c}from"./hittestUtils.js";import{getLineFragmentColor as x}from"./LineShader.js";import{LocalTileOffset as y}from"./LocalTileOffset.js";import{MosaicInfo as v}from"./MosaicInfo.js";import{AOutlineFillShader as j,getOutlineFillVertexData as g}from"./OutlineFillShader.js";import{PatternOutlineFillFragmentInput as O}from"./PatternOutlineFillShader.js";const S=16,F=1/S,b=128;class w extends m{}t([e(3,a)],w.prototype,"color",void 0),t([e(4,a)],w.prototype,"tlbr",void 0),t([e(5,l)],w.prototype,"angle",void 0),t([e(6,l)],w.prototype,"aux1",void 0),t([e(7,l)],w.prototype,"aux2",void 0),t([e(8,n)],w.prototype,"aux3",void 0),t([e(9,n)],w.prototype,"aux4",void 0),t([e(10,n)],w.prototype,"zoomRange",void 0);class C extends O{}class R extends j{constructor(){super(...arguments),this.type="ComplexOutlineFillShader"}vertex(t,o){const{aux1:e,aux2:r,aux3:i,aux4:p}=t,a={...t,width:e,height:r,offset:i,scale:p.multiply(F)},n={...t,halfWidth:e,referenceHalfWidth:r,offset:i,normal:p.subtract(b).multiply(F)},m=g(this,n),u=h(this,a),f=s(m.isOutline,new l(.5));return{...m,...u,...this.maybeRunHittest(t,o,f)}}fragment(t){const{isOutline:o}=t,e=s(o,new l(.5)),r=x(t,this.antialiasingControls.blur),i=f(this,t),a=p(e,r,i),n=p(e,new l(1/255),new l(0));return this.getFragmentOutput(a,t,n)}hittest(t,o,e){return p(e,c(this.hittestRequest),d(this,t,o))}}t([r(v)],R.prototype,"mosaicInfo",void 0),t([r(y)],R.prototype,"localTileOffset",void 0),t([o(0,i(w)),o(1,i(u))],R.prototype,"vertex",null),t([o(0,i(C))],R.prototype,"fragment",null);export{R as ComplexOutlineFillShader,w as ComplexOutlineFillVertexInput,S as packPrecision,b as signedToUnsignedByte};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as r,option as e,input as i}from"../../GraphShaderModule.js";import{Vec3 as s,Vec4 as l,Float as p,Vec2 as a}from"../../graph/glsl.js";import{FeatureVertexInput as m,AFeatureShader as n,BaseHittestVertexInput as u,FeatureFragmentInput as c}from"./AFeatureShader.js";import{hittestFill as h}from"./hittestUtils.js";import{VisualVariableColor as y}from"./VisualVariableColor.js";import{VisualVariableOpacity as d}from"./VisualVariableOpacity.js";import{getVisualVariableOpacity as v,getVisualVariableColor as f}from"./vvUtils.js";class g extends m{}t([r(3,l)],g.prototype,"color",void 0),t([r(4,a)],g.prototype,"zoomRange",void 0);class x extends n{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,o){const r=v(this,t.id),e=f(this,t.id,t.color).multiply(r),i=this.view.displayViewScreenMat3.multiply(new s(t.pos.xy,1)),p=this.clip(t.id,t.zoomRange);return{glPosition:new l(i.xy,p,1),color:e,...this.maybeRunHittest(t,o,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new p(0))}hittest(t,o){return h(this,t,o)}}t([e(y)],x.prototype,"visualVariableColor",void 0),t([e(d)],x.prototype,"visualVariableOpacity",void 0),t([o(0,i(g)),o(1,i(u))],x.prototype,"vertex",null),t([o(0,i(c))],x.prototype,"fragment",null);export{x as FillShader,g as FillVertexInput};
5
+ import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as r,option as e,input as i}from"../../GraphShaderModule.js";import{Vec3 as s,Vec4 as l,Float as p,Vec2 as a}from"../../graph/glsl.js";import{FeatureVertexInput as m,AFeatureShader as n,BaseHittestVertexInput as u,FeatureFragmentInput as h}from"./AFeatureShader.js";import{hittestFill as c}from"./hittestUtils.js";import{VisualVariableColor as y}from"./VisualVariableColor.js";import{VisualVariableOpacity as d}from"./VisualVariableOpacity.js";import{getVisualVariableOpacity as v,getVisualVariableColor as f}from"./vvUtils.js";class g extends m{}t([r(3,l)],g.prototype,"color",void 0),t([r(4,a)],g.prototype,"zoomRange",void 0);class x extends n{constructor(){super(...arguments),this.type="FillShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,o){const r=v(this,t.id),e=f(this,t.id,t.color).multiply(r),i=this.view.displayViewScreenMat3.multiply(new s(t.pos.xy,1)),p=this.clip(t.id,t.zoomRange);return{glPosition:new l(i.xy,p,1),color:e,...this.maybeRunHittest(t,o,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new p(0))}hittest(t,o){return c(this,t,o)}}t([e(y)],x.prototype,"visualVariableColor",void 0),t([e(d)],x.prototype,"visualVariableOpacity",void 0),t([o(0,i(g)),o(1,i(u))],x.prototype,"vertex",null),t([o(0,i(h))],x.prototype,"fragment",null);export{x as FillShader,g as FillVertexInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{location as i,uniform as r,input as o}from"../../GraphShaderModule.js";import{ifElse as s,Float as a,Vec2 as n,greaterThan as d,cond as l,equal as p,sqrt as m,dot as c,abs as u,max as v,clamp as f,mix as x,texture2D as g,Vec4 as h}from"../../graph/glsl.js";import{bitset as y,gradientFillMethods as w}from"../fill/gradientFillConstants.js";import{FeatureFragmentInput as b,BaseHittestVertexInput as j}from"./AFeatureShader.js";import{FillVertexInput as S,FillShader as z}from"./FillShader.js";import{MosaicInfo as M}from"./MosaicInfo.js";import{getBitBool as F,getBit as I,oneMinus as P}from"./utils.js";class D extends S{}t([i(5,h)],D.prototype,"tlbr",void 0),t([i(6,n)],D.prototype,"relativePosition",void 0),t([i(7,a)],D.prototype,"gradientMethod",void 0),t([i(8,n)],D.prototype,"relativeGradientSize",void 0);class G extends b{}class A extends z{vertex(t,e){const{tlbr:i,relativePosition:r,gradientMethod:o,relativeGradientSize:n}=t,d=s(F(t.bitset,y.isAbsolute),this.view.displayZoomFactor,new a(1));return{...super.vertex(t,e),tlbr:i,relativePosition:r,gradientMethod:o,gradientSize:n.multiply(d),isDiscrete:I(t.bitset,y.isDiscrete)}}fragment(t){const{tlbr:e,relativePosition:i,gradientMethod:r,gradientSize:o,isDiscrete:h}=t,y=s(d(h,new a(.5)),o.subtract(1),new n(0)),b=l([p(r,new a(w.rectangular)),()=>{const t=u(i).add(y).divide(o);return P(v(t.x,t.y))}],[p(r,new a(w.circular)),P(m(c(i,i)).add(y.x).divide(o.x))],[!0,P(i.x.add(y.x).divide(o.x))]),j=new n(f(b,new a(0),new a(1)),.5),S=x(e.xy,e.zw,j).divide(this.mosaicInfo.size),z=g(this.mosaicInfo.texture,S),M=t.color.a;return this.getFragmentOutput(z.multiply(M),t,new a(0))}}t([r(M)],A.prototype,"mosaicInfo",void 0),t([e(0,o(D)),e(1,o(j))],A.prototype,"vertex",null),t([e(0,o(G))],A.prototype,"fragment",null);export{G as GradientFillFragmentInput,A as GradientFillShader,D as GradientFillVertexInput};
5
+ import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{location as i,uniform as r,input as o}from"../../GraphShaderModule.js";import{ifElse as s,Float as a,Vec2 as n,greaterThan as d,cond as l,equal as p,sqrt as m,dot as c,abs as u,max as v,clamp as h,mix as f,texture2D as x,Vec4 as g}from"../../graph/glsl.js";import{bitset as y,gradientFillMethods as w}from"../fill/gradientFillConstants.js";import{FeatureFragmentInput as b,BaseHittestVertexInput as j}from"./AFeatureShader.js";import{FillVertexInput as S,FillShader as z}from"./FillShader.js";import{MosaicInfo as F}from"./MosaicInfo.js";import{getBitBool as M,getBit as G,oneMinus as I}from"./utils.js";class P extends S{}t([i(5,g)],P.prototype,"tlbr",void 0),t([i(6,n)],P.prototype,"relativePosition",void 0),t([i(7,a)],P.prototype,"gradientMethod",void 0),t([i(8,n)],P.prototype,"relativeGradientSize",void 0);class D extends b{}class A extends z{constructor(){super(...arguments),this.type="GradientFillShader"}vertex(t,e){const{tlbr:i,relativePosition:r,gradientMethod:o,relativeGradientSize:n}=t,d=s(M(t.bitset,y.isAbsolute),this.view.displayZoomFactor,new a(1));return{...super.vertex(t,e),tlbr:i,relativePosition:r,gradientMethod:o,gradientSize:n.multiply(d),isDiscrete:G(t.bitset,y.isDiscrete)}}fragment(t){const{tlbr:e,relativePosition:i,gradientMethod:r,gradientSize:o,isDiscrete:g}=t,y=s(d(g,new a(.5)),o.subtract(1),new n(0)),b=l([p(r,new a(w.rectangular)),()=>{const t=u(i).add(y).divide(o);return I(v(t.x,t.y))}],[p(r,new a(w.circular)),I(m(c(i,i)).add(y.x).divide(o.x))],[!0,I(i.x.add(y.x).divide(o.x))]),j=new n(h(b,new a(0),new a(1)),.5),S=f(e.xy,e.zw,j).divide(this.mosaicInfo.size),z=x(this.mosaicInfo.texture,S),F=t.color.a;return this.getFragmentOutput(z.multiply(F),t,new a(0))}}t([r(F)],A.prototype,"mosaicInfo",void 0),t([e(0,o(P)),e(1,o(j))],A.prototype,"vertex",null),t([e(0,o(D))],A.prototype,"fragment",null);export{D as GradientFillFragmentInput,A as GradientFillShader,P as GradientFillVertexInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import has from"../../../../../../../core/has.js";import{location as i,uniform as o,UniformGroup as s,input as r}from"../../GraphShaderModule.js";import{ifElse as n,greaterThan as a,Float as l,dot as d,mix as p,Vec2 as m,clamp as c,texture2D as h,step as u,length as g,Vec4 as y}from"../../graph/glsl.js";import{bitset as v}from"../line/gradientStrokeConstants.js";import{BaseHittestVertexInput as f}from"./AFeatureShader.js";import{LineVertexInput as w,LineFragmentInput as b,LineShader as x,getLineVertexData as j,getLineAntialiasing as L}from"./LineShader.js";import{MosaicInfo as S}from"./MosaicInfo.js";import{getBit as A,getBitBool as D,oneMinus as z}from"./utils.js";class F extends w{}t([i(9,l)],F.prototype,"accumulatedDistance",void 0),t([i(10,l)],F.prototype,"totalLength",void 0),t([i(11,l)],F.prototype,"gradientSize",void 0),t([i(12,m)],F.prototype,"segmentDirection",void 0),t([i(13,y)],F.prototype,"tlbr",void 0);class C extends b{}class I extends s{}t([o(l)],I.prototype,"isColorPass",void 0);class P extends x{vertex(t,e){const{totalLength:i,gradientSize:o,segmentDirection:s,tlbr:r}=t,p=j(this,t),m=A(t.bitset,v.isAlongLine),c=i.divide(this.view.displayZoomFactor),h=n(D(t.bitset,v.isAbsoluteSize),(()=>{const t=n(a(m,new l(.5)),c,p.halfWidth);return o.divide(t)}),o),u=t.accumulatedDistance.divide(this.view.displayZoomFactor).add(d(s,p.scaledOffset)).divide(c),g=r.divide(this.mosaicInfo.size.xyxy);return{...p,tlbr:g,relativePositionAlongLine:u,relativeGradientSize:h,isAlongLine:A(t.bitset,v.isAlongLine),isDiscrete:A(t.bitset,v.isDiscrete),...this.maybeRunHittest(t,e,p.halfWidth)}}fragment(t){const{isAlongLine:e,isDiscrete:i,relativePositionAlongLine:o,relativeGradientSize:s,normal:r,tlbr:d}=t,y=L(t,this.antialiasingControls.blur),v=new l(.5).multiply(r.y).add(new l(.5)),f=n(a(e,new l(.5)),o,v),w=n(a(i,new l(.5)),s.subtract(1),new l(0)),b=z(f.add(w).divide(s)),x=p(d.xy,d.zw,new m(c(b,new l(0),new l(1)),.5)),j=h(this.mosaicInfo.texture,x),S=t.opacity.multiply(y),A=this.getFragmentOutput(j.multiply(S),t),D=u(new l(.5),this.technique.isColorPass).multiply(has("gradient-depth-epsilon")),F=u(new l(0),r.y).multiply(new l(has("gradient-depth-bias")).subtract(D));return A.glFragDepth=c(g(r).add(F),new l(0),new l(1)),A}}t([o(S)],P.prototype,"mosaicInfo",void 0),t([o(I)],P.prototype,"technique",void 0),t([e(0,r(F)),e(1,r(f))],P.prototype,"vertex",null);export{C as GradientStrokeFragmentInput,P as GradientStrokeShader,F as GradientStrokeVertexInput};
5
+ import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import has from"../../../../../../../core/has.js";import{location as i,uniform as o,UniformGroup as s,input as r}from"../../GraphShaderModule.js";import{ifElse as n,greaterThan as a,Float as d,dot as l,mix as p,Vec2 as m,clamp as c,texture2D as h,step as u,length as y,Vec4 as g}from"../../graph/glsl.js";import{bitset as v}from"../line/gradientStrokeConstants.js";import{BaseHittestVertexInput as f}from"./AFeatureShader.js";import{LineVertexInput as w,LineFragmentInput as b,LineShader as x,getLineVertexData as S,getLineAntialiasing as j}from"./LineShader.js";import{MosaicInfo as L}from"./MosaicInfo.js";import{getBit as A,getBitBool as D,oneMinus as z}from"./utils.js";class F extends w{}t([i(9,d)],F.prototype,"accumulatedDistance",void 0),t([i(10,d)],F.prototype,"totalLength",void 0),t([i(11,d)],F.prototype,"gradientSize",void 0),t([i(12,m)],F.prototype,"segmentDirection",void 0),t([i(13,g)],F.prototype,"tlbr",void 0);class C extends b{}class G extends s{}t([o(d)],G.prototype,"isColorPass",void 0);class I extends x{constructor(){super(...arguments),this.type="GradientStrokeShader"}vertex(t,e){const{totalLength:i,gradientSize:o,segmentDirection:s,tlbr:r}=t,p=S(this,t),m=A(t.bitset,v.isAlongLine),c=i.divide(this.view.displayZoomFactor),h=n(D(t.bitset,v.isAbsoluteSize),(()=>{const t=n(a(m,new d(.5)),c,p.halfWidth);return o.divide(t)}),o),u=t.accumulatedDistance.divide(this.view.displayZoomFactor).add(l(s,p.scaledOffset)).divide(c),y=r.divide(this.mosaicInfo.size.xyxy);return{...p,tlbr:y,relativePositionAlongLine:u,relativeGradientSize:h,isAlongLine:A(t.bitset,v.isAlongLine),isDiscrete:A(t.bitset,v.isDiscrete),...this.maybeRunHittest(t,e,p.halfWidth)}}fragment(t){const{isAlongLine:e,isDiscrete:i,relativePositionAlongLine:o,relativeGradientSize:s,normal:r,tlbr:l}=t,g=j(t,this.antialiasingControls.blur),v=new d(.5).multiply(r.y).add(new d(.5)),f=n(a(e,new d(.5)),o,v),w=n(a(i,new d(.5)),s.subtract(1),new d(0)),b=z(f.add(w).divide(s)),x=p(l.xy,l.zw,new m(c(b,new d(0),new d(1)),.5)),S=h(this.mosaicInfo.texture,x),L=t.opacity.multiply(g),A=this.getFragmentOutput(S.multiply(L),t),D=u(new d(.5),this.technique.isColorPass).multiply(has("gradient-depth-epsilon")),F=u(new d(0),r.y).multiply(new d(has("gradient-depth-bias")).subtract(D));return A.glFragDepth=c(y(r).add(F),new d(0),new d(1)),A}}t([o(L)],I.prototype,"mosaicInfo",void 0),t([o(G)],I.prototype,"technique",void 0),t([e(0,r(F)),e(1,r(f))],I.prototype,"vertex",null);export{C as GradientStrokeFragmentInput,I as GradientStrokeShader,F as GradientStrokeVertexInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o,a as t}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as i,GraphShaderModule as r,VertexInput as n,UniformGroup as s,FragmentOutput as a,input as p,FragmentInput as l}from"../../GraphShaderModule.js";import{Vec3 as d,Vec4 as c,abs as y,fract as h,min as m,Float as f,Vec2 as g,smoothstep as v,Int as x,round as u,intMod as w,ifElse as j,lessThan as C,greaterThan as L,multiply as b,step as W,mix as P,Mat3 as I}from"../../graph/glsl.js";class k extends n{}o([e(0,g)],k.prototype,"position",void 0);class G extends l{}class M extends s{}o([i(I)],M.prototype,"dvs",void 0);class S extends s{}o([i(f)],S.prototype,"halfWidth",void 0),o([i(f)],S.prototype,"aaWidth",void 0),o([i(f)],S.prototype,"pxPerCell",void 0),o([i(c)],S.prototype,"minorLineColor",void 0),o([i(c)],S.prototype,"majorLineColor",void 0),o([i(x)],S.prototype,"majorLineInterval",void 0);class _ extends r{vertex(o){const t=o.position.multiply(2).subtract(1);return{gridPos:this.transform.dvs.multiply(new d(t,1)).xy,glPosition:new c(t,0,1)}}fragment(o){const t=y(o.gridPos),e=h(t),i=m(e.x,new f(1).subtract(e.x)),r=m(e.y,new f(1).subtract(e.y)),n=new g(i,r).multiply(this.config.pxPerCell).subtract(this.config.halfWidth),s=m(n.x,n.y),p=new f(1).subtract(v(new f(0),this.config.aaWidth,s)),l=new x(u(t.x)),d=new x(u(t.y)),c=new f(w(l,this.config.majorLineInterval)),I=new f(w(d,this.config.majorLineInterval)),k=j(C(n.x,n.y),c,I),G=L(b(W(n.x,this.config.aaWidth),W(n.y,this.config.aaWidth)),new f(.5)),M=m(c,I),S=j(G,M,k),_=P(this.config.majorLineColor,this.config.minorLineColor,m(S,new f(1))),q=new a;return q.fragColor=_.multiply(p),q}}o([i(M)],_.prototype,"transform",void 0),o([i(S)],_.prototype,"config",void 0),o([t(0,p(k))],_.prototype,"vertex",null),o([t(0,p(G))],_.prototype,"fragment",null);export{_ as GridShader};
5
+ import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as i,VertexInput as n,UniformGroup as s,FragmentOutput as a,input as p,FragmentInput as l}from"../../GraphShaderModule.js";import{Vec3 as d,Vec4 as c,abs as h,fract as y,min as m,Float as f,Vec2 as g,smoothstep as u,Int as v,round as x,intMod as w,ifElse as j,lessThan as C,greaterThan as L,multiply as b,step as W,mix as P,Mat3 as I}from"../../graph/glsl.js";class G extends n{}t([e(0,g)],G.prototype,"position",void 0);class S extends l{}class k extends s{}t([r(I)],k.prototype,"dvs",void 0);class M extends s{}t([r(f)],M.prototype,"halfWidth",void 0),t([r(f)],M.prototype,"aaWidth",void 0),t([r(f)],M.prototype,"pxPerCell",void 0),t([r(c)],M.prototype,"minorLineColor",void 0),t([r(c)],M.prototype,"majorLineColor",void 0),t([r(v)],M.prototype,"majorLineInterval",void 0);class _ extends i{constructor(){super(...arguments),this.type="GridShader"}vertex(t){const o=t.position.multiply(2).subtract(1);return{gridPos:this.transform.dvs.multiply(new d(o,1)).xy,glPosition:new c(o,0,1)}}fragment(t){const o=h(t.gridPos),e=y(o),r=m(e.x,new f(1).subtract(e.x)),i=m(e.y,new f(1).subtract(e.y)),n=new g(r,i).multiply(this.config.pxPerCell).subtract(this.config.halfWidth),s=m(n.x,n.y),p=new f(1).subtract(u(new f(0),this.config.aaWidth,s)),l=new v(x(o.x)),d=new v(x(o.y)),c=new f(w(l,this.config.majorLineInterval)),I=new f(w(d,this.config.majorLineInterval)),G=j(C(n.x,n.y),c,I),S=L(b(W(n.x,this.config.aaWidth),W(n.y,this.config.aaWidth)),new f(.5)),k=m(c,I),M=j(S,k,G),_=P(this.config.majorLineColor,this.config.minorLineColor,m(M,new f(1))),q=new a;return q.fragColor=_.multiply(p),q}}t([r(k)],_.prototype,"transform",void 0),t([r(M)],_.prototype,"config",void 0),t([o(0,p(G))],_.prototype,"vertex",null),t([o(0,p(S))],_.prototype,"fragment",null);export{_ as GridShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{location as s,uniform as i,define as o,UniformGroup as l,input as r}from"../../GraphShaderModule.js";import{Float as p,Vec3 as a,Vec4 as n,length as u,step as m,Vec2 as d}from"../../graph/glsl.js";import{FeatureVertexInput as y,FeatureFragmentInput as f,AFeatureShader as h}from"./AFeatureShader.js";import{getHeatmapCompressionFactor as c}from"./heatmapUtils.js";import{hittestMarker as w}from"./hittestUtils.js";class v extends y{}t([s(5,d)],v.prototype,"offset",void 0);class x extends f{}class g extends l{}t([i(p)],g.prototype,"radius",void 0),t([i(p)],g.prototype,"isFieldActive",void 0);class F extends h{constructor(){super(...arguments),this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:s}=this.kernelControls,i=t.offset,o=s.multiply(this.storage.getVVData(t.id).x).add(new p(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 n(l.xy,r,1),offset:i,fieldValue:o,color:new n(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:s}=t,i=u(e),o=m(i,new p(1)),l=new p(1).subtract(i.multiply(i)),r=l.multiply(l),a=o.multiply(r).multiply(s).multiply(new p(c(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new n(a),t)}hittest(t){const{viewMat3:e,tileMat3:s}=this.view,i=e.multiply(s).multiply(new a(t.pos,1));return w(i.xy,this.kernelControls.radius,this.hittestRequest.position)}}t([o],F.prototype,"usesHalfFloatPrecision",void 0),t([i(g)],F.prototype,"kernelControls",void 0),t([e(0,r(v))],F.prototype,"vertex",null),t([e(0,r(x))],F.prototype,"fragment",null);export{x as HeatmapAccumulateFragmentInput,F as HeatmapAccumulateShader,v as HeatmapAccumulateVertexInput};
5
+ import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{location as s,uniform as i,define as l,UniformGroup as o,input as r}from"../../GraphShaderModule.js";import{Float as a,Vec3 as p,Vec4 as n,length as u,step as m,Vec2 as d}from"../../graph/glsl.js";import{FeatureVertexInput as y,FeatureFragmentInput as h,AFeatureShader as c}from"./AFeatureShader.js";import{getHeatmapCompressionFactor as f}from"./heatmapUtils.js";import{hittestMarker as w}from"./hittestUtils.js";class v extends y{}t([s(5,d)],v.prototype,"offset",void 0);class x extends h{}class g extends o{}t([i(a)],g.prototype,"radius",void 0),t([i(a)],g.prototype,"isFieldActive",void 0);class F extends c{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:s}=this.kernelControls,i=t.offset,l=s.multiply(this.storage.getVVData(t.id).x).add(new a(1).subtract(s)),o=this.view.displayViewScreenMat3.multiply(new p(t.pos,1)).add(this.view.displayViewMat3.multiply(new p(i,0)).multiply(e)),r=this.clip(t.id);return{glPosition:new n(o.xy,r,1),offset:i,fieldValue:l,color:new n(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:s}=t,i=u(e),l=m(i,new a(1)),o=new a(1).subtract(i.multiply(i)),r=o.multiply(o),p=l.multiply(r).multiply(s).multiply(new a(f(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new n(p),t)}hittest(t){const{viewMat3:e,tileMat3:s}=this.view,i=e.multiply(s).multiply(new p(t.pos,1));return w(i.xy,this.kernelControls.radius,this.hittestRequest.position)}}t([l],F.prototype,"usesHalfFloatPrecision",void 0),t([i(g)],F.prototype,"kernelControls",void 0),t([e(0,r(v))],F.prototype,"vertex",null),t([e(0,r(x))],F.prototype,"fragment",null);export{x as HeatmapAccumulateFragmentInput,F as HeatmapAccumulateShader,v as HeatmapAccumulateVertexInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{VertexInput as o,location as r,FragmentInput as s,UniformGroup as i,uniform as n,GraphShaderModule as a,define as p,FragmentOutput as l,input as u}from"../../GraphShaderModule.js";import{Vec4 as d,texture2D as m,Float as c,Vec2 as y,Sampler2D as v}from"../../graph/glsl.js";import{getHeatmapCompressionFactor as x}from"./heatmapUtils.js";class g extends o{}t([r(0,y)],g.prototype,"position",void 0);class f extends s{}class h extends i{}t([n(v)],h.prototype,"texture",void 0),t([n(y)],h.prototype,"minAndInvRange",void 0),t([n(c)],h.prototype,"normalization",void 0);class w extends i{}t([n(v)],w.prototype,"texture",void 0);class b extends a{constructor(){super(...arguments),this.usesHalfFloatPrecision=!1}vertex(t){return{glPosition:new d(t.position.multiply(2).subtract(1),1,1),uv:t.position}}fragment(t){const{accumulatedDensity:e,gradient:o}=this;let r=m(e.texture,t.uv).r.divide(new c(x(this.usesHalfFloatPrecision)));r=r.multiply(e.normalization),r=r.subtract(e.minAndInvRange.x).multiply(e.minAndInvRange.y);const s=m(o.texture,new y(r,.5)),i=new l;return i.fragColor=new d(s.rgb.multiply(s.a),s.a),i}}t([p],b.prototype,"usesHalfFloatPrecision",void 0),t([n(h)],b.prototype,"accumulatedDensity",void 0),t([n(w)],b.prototype,"gradient",void 0),t([e(0,u(g))],b.prototype,"vertex",null),t([e(0,u(f))],b.prototype,"fragment",null);export{h as AccumulatedDensity,w as Gradient,f as HeatmapResolveFragmentInput,b as HeatmapResolveShader,g as HeatmapResolveVertexInput};
5
+ import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{VertexInput as o,location as s,FragmentInput as r,UniformGroup as i,uniform as n,GraphShaderModule as a,define as p,FragmentOutput as l,input as u}from"../../GraphShaderModule.js";import{Vec4 as d,texture2D as m,Float as c,Vec2 as y,Sampler2D as v}from"../../graph/glsl.js";import{getHeatmapCompressionFactor as x}from"./heatmapUtils.js";class g extends o{}t([s(0,y)],g.prototype,"position",void 0);class f extends r{}class h extends i{}t([n(v)],h.prototype,"texture",void 0),t([n(y)],h.prototype,"minAndInvRange",void 0),t([n(c)],h.prototype,"normalization",void 0);class w extends i{}t([n(v)],w.prototype,"texture",void 0);class b extends a{constructor(){super(...arguments),this.type="HeatmapResolveShader",this.usesHalfFloatPrecision=!1}vertex(t){return{glPosition:new d(t.position.multiply(2).subtract(1),1,1),uv:t.position}}fragment(t){const{accumulatedDensity:e,gradient:o}=this;let s=m(e.texture,t.uv).r.divide(new c(x(this.usesHalfFloatPrecision)));s=s.multiply(e.normalization),s=s.subtract(e.minAndInvRange.x).multiply(e.minAndInvRange.y);const r=m(o.texture,new y(s,.5)),i=new l;return i.fragColor=new d(r.rgb.multiply(r.a),r.a),i}}t([p],b.prototype,"usesHalfFloatPrecision",void 0),t([n(h)],b.prototype,"accumulatedDensity",void 0),t([n(w)],b.prototype,"gradient",void 0),t([e(0,u(g))],b.prototype,"vertex",null),t([e(0,u(f))],b.prototype,"fragment",null);export{h as AccumulatedDensity,w as Gradient,f as HeatmapResolveFragmentInput,b as HeatmapResolveShader,g as HeatmapResolveVertexInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as i}from"../../../../../../../chunks/tslib.es6.js";import{location as e,UniformGroup as o,uniform as l,option as a,input as r}from"../../GraphShaderModule.js";import{length as s,clamp as n,Float as p,max as u,Vec3 as m,step as d,Vec4 as y,min as c,Vec2 as f}from"../../graph/glsl.js";import{FeatureVertexInput as h,FeatureFragmentInput as v,AFeatureShader as w,BaseHittestVertexInput as V}from"./AFeatureShader.js";import{thinLineWidthFactor as b,thinLineHalfWidth as S,epsilon as x}from"./constants.js";import{distPointSegment as g}from"./hittestUtils.js";import{VisualVariableColor as j}from"./VisualVariableColor.js";import{VisualVariableOpacity as z}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as M}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as W}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as C}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as P}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as R,getVisualVariableOpacity as H,hasVisualVariableSize as O,getVisualVariableSize as U}from"./vvUtils.js";class q extends h{}t([e(3,y)],q.prototype,"color",void 0),t([e(4,f)],q.prototype,"offset",void 0),t([e(5,f)],q.prototype,"normal",void 0),t([e(6,p)],q.prototype,"halfWidth",void 0),t([e(7,p)],q.prototype,"referenceHalfWidth",void 0),t([e(8,f)],q.prototype,"zoomRange",void 0);class A extends v{}class F extends o{}function k(t){return u(new p(b).multiply(d(t,new p(S))),new p(1))}function D(t,i){const{halfWidth:e,normal:o}=t,l=k(e),a=s(o).multiply(e);return n(l.multiply(e.subtract(a)).divide(i.add(l).subtract(new p(1))),new p(0),new p(1))}function G(t,i){const{id:e,halfWidth:o,referenceHalfWidth:l}=i;if(O(t)){const i=new p(2).multiply(l),a=U(t,e,i);return new p(.5).multiply(o.divide(u(l,new p(x)))).multiply(a)}return o}function T(t,i){const{id:e,offset:o,pos:l,normal:a,zoomRange:r}=i,{displayViewScreenMat3:s,displayViewMat3:n}=t.view,c=R(t,e,i.color),f=H(t,e),h=G(t,i),v=new p(.5).multiply(t.antialiasingControls.antialiasing),w=u(h.add(v),new p(.45)).add(new p(.1).multiply(v)),V=k(w).multiply(w).multiply(o),b=n.multiply(new m(V,new p(0))),S=s.multiply(new m(l,new p(1))).add(b),x=new p(2).multiply(d(h,new p(0))).add(t.clip(e,r)),g=new y(S.xy,x,1);return{color:c,opacity:f,halfWidth:w,normal:a,scaledOffset:V,scaledHalfWidth:h,glPosition:new y(g.xy,x,1)}}function _(t,i){const{opacity:e,color:o}=t,l=D(t,i);return e.multiply(o).multiply(l)}t([l(p)],F.prototype,"antialiasing",void 0),t([l(p)],F.prototype,"blur",void 0);class B extends w{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,i){const e=T(this,t);return{...e,...this.maybeRunHittest(t,i,e.halfWidth)}}fragment(t){const i=_(t,this.antialiasingControls.blur);return this.getFragmentOutput(i,t)}hittest(t,i,e){const{viewMat3:o,tileMat3:l}=this.view,a=o.multiply(l),r=a.multiply(new m(t.pos,1)),s=a.multiply(new m(i.nextPos1,1)),n=a.multiply(new m(i.nextPos2,1)),{distance:p,smallSymbolDistance:u,smallSymbolSizeThreshold:y}=this.hittestRequest,f=d(e,y.multiply(.5)).multiply(p.subtract(u)),h=this.hittestRequest.position;return c(g(h,r.xy,s.xy),g(h,r.xy,n.xy)).subtract(e).add(f)}}t([l(F)],B.prototype,"antialiasingControls",void 0),t([a(j)],B.prototype,"visualVariableColor",void 0),t([a(z)],B.prototype,"visualVariableOpacity",void 0),t([a(M)],B.prototype,"visualVariableSizeMinMaxValue",void 0),t([a(W)],B.prototype,"visualVariableSizeScaleStops",void 0),t([a(C)],B.prototype,"visualVariableSizeStops",void 0),t([a(P)],B.prototype,"visualVariableSizeUnitValue",void 0),t([i(0,r(q)),i(1,r(V))],B.prototype,"vertex",null),t([i(0,r(A))],B.prototype,"fragment",null);export{F as AntialiasingControls,A as LineFragmentInput,B as LineShader,q as LineVertexInput,D as getLineAntialiasing,_ as getLineFragmentColor,T as getLineVertexData};
5
+ import{_ as t,a as i}from"../../../../../../../chunks/tslib.es6.js";import{location as e,UniformGroup as o,uniform as l,option as a,input as r}from"../../GraphShaderModule.js";import{length as s,clamp as n,Float as p,max as u,Vec3 as m,step as d,Vec4 as y,min as c,Vec2 as f}from"../../graph/glsl.js";import{FeatureVertexInput as h,FeatureFragmentInput as v,AFeatureShader as w,BaseHittestVertexInput as V}from"./AFeatureShader.js";import{thinLineWidthFactor as b,thinLineHalfWidth as S,epsilon as x}from"./constants.js";import{distPointSegment as g}from"./hittestUtils.js";import{VisualVariableColor as j}from"./VisualVariableColor.js";import{VisualVariableOpacity as z}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as M}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as W}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as C}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as P}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as R,getVisualVariableOpacity as H,hasVisualVariableSize as O,getVisualVariableSize as U}from"./vvUtils.js";class q extends h{}t([e(3,y)],q.prototype,"color",void 0),t([e(4,f)],q.prototype,"offset",void 0),t([e(5,f)],q.prototype,"normal",void 0),t([e(6,p)],q.prototype,"halfWidth",void 0),t([e(7,p)],q.prototype,"referenceHalfWidth",void 0),t([e(8,f)],q.prototype,"zoomRange",void 0);class A extends v{}class F extends o{}function k(t){return u(new p(b).multiply(d(t,new p(S))),new p(1))}function D(t,i){const{halfWidth:e,normal:o}=t,l=k(e),a=s(o).multiply(e);return n(l.multiply(e.subtract(a)).divide(i.add(l).subtract(new p(1))),new p(0),new p(1))}function G(t,i){const{id:e,halfWidth:o,referenceHalfWidth:l}=i;if(O(t)){const i=new p(2).multiply(l),a=U(t,e,i);return new p(.5).multiply(o.divide(u(l,new p(x)))).multiply(a)}return o}function L(t,i){const{id:e,offset:o,pos:l,normal:a,zoomRange:r}=i,{displayViewScreenMat3:s,displayViewMat3:n}=t.view,c=R(t,e,i.color),f=H(t,e),h=G(t,i),v=new p(.5).multiply(t.antialiasingControls.antialiasing),w=u(h.add(v),new p(.45)).add(new p(.1).multiply(v)),V=k(w).multiply(w).multiply(o),b=n.multiply(new m(V,new p(0))),S=s.multiply(new m(l,new p(1))).add(b),x=new p(2).multiply(d(h,new p(0))).add(t.clip(e,r)),g=new y(S.xy,x,1);return{color:c,opacity:f,halfWidth:w,normal:a,scaledOffset:V,scaledHalfWidth:h,glPosition:new y(g.xy,x,1)}}function T(t,i){const{opacity:e,color:o}=t,l=D(t,i);return e.multiply(o).multiply(l)}t([l(p)],F.prototype,"antialiasing",void 0),t([l(p)],F.prototype,"blur",void 0);class _ extends w{constructor(){super(...arguments),this.type="LineShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,i){const e=L(this,t);return{...e,...this.maybeRunHittest(t,i,e.halfWidth)}}fragment(t){const i=T(t,this.antialiasingControls.blur);return this.getFragmentOutput(i,t)}hittest(t,i,e){const{viewMat3:o,tileMat3:l}=this.view,a=o.multiply(l),r=a.multiply(new m(t.pos,1)),s=a.multiply(new m(i.nextPos1,1)),n=a.multiply(new m(i.nextPos2,1)),{distance:p,smallSymbolDistance:u,smallSymbolSizeThreshold:y}=this.hittestRequest,f=d(e,y.multiply(.5)).multiply(p.subtract(u)),h=this.hittestRequest.position;return c(g(h,r.xy,s.xy),g(h,r.xy,n.xy)).subtract(e).add(f)}}t([l(F)],_.prototype,"antialiasingControls",void 0),t([a(j)],_.prototype,"visualVariableColor",void 0),t([a(z)],_.prototype,"visualVariableOpacity",void 0),t([a(M)],_.prototype,"visualVariableSizeMinMaxValue",void 0),t([a(W)],_.prototype,"visualVariableSizeScaleStops",void 0),t([a(C)],_.prototype,"visualVariableSizeStops",void 0),t([a(P)],_.prototype,"visualVariableSizeUnitValue",void 0),t([i(0,r(q)),i(1,r(V))],_.prototype,"vertex",null),t([i(0,r(A))],_.prototype,"fragment",null);export{F as AntialiasingControls,A as LineFragmentInput,_ as LineShader,q as LineVertexInput,D as getLineAntialiasing,T as getLineFragmentColor,L as getLineVertexData};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as n,VertexInput as s,UniformGroup as a,FragmentOutput as i,input as d,FragmentInput as p}from"../../GraphShaderModule.js";import{Vec2 as l,Vec4 as c,texture2D as u,Float as y,ifElse as m,equal as w,atan as x,pow as f,length as g,cos as v,sin as b,Sampler2D as h}from"../../graph/glsl.js";import{magnifierBarrelFactor as k}from"./constants.js";class T extends s{}t([e(0,l)],T.prototype,"position",void 0);class C extends p{}class j extends a{}t([r(h)],j.prototype,"readbackTexture",void 0),t([r(h)],j.prototype,"maskTexture",void 0),t([r(h)],j.prototype,"overlayTexture",void 0),t([r(c)],j.prototype,"background",void 0),t([r(c)],j.prototype,"drawPos",void 0),t([r(y)],j.prototype,"maskEnabled",void 0),t([r(y)],j.prototype,"overlayEnabled",void 0);class E extends n{vertex(t){const o=t.position,e=t.position.subtract(new l(.5)).multiply(this.config.drawPos.zw),r=this.config.drawPos.xy.add(e);return{glPosition:new c(r,0,1),texCoord:o}}fragment(t){let o=u(this.config.readbackTexture,P(t.texCoord));o=o.add(new y(1).subtract(o.a)).multiply(this.config.background);const e=m(w(this.config.maskEnabled,new y(1)),u(this.config.maskTexture,t.texCoord).a,new y(1));o=o.multiply(e);const r=m(w(this.config.overlayEnabled,new y(1)),u(this.config.overlayTexture,t.texCoord),new c(0)),n=new i;return n.fragColor=r.add(new y(1).subtract(r.a).multiply(o)),n}}function P(t){const o=t.multiply(new l(2)).subtract(1);return m(w(o.x,new y(0)).and(w(o.y,new y(0))),new l(.5),(()=>{const t=x(o.y,o.x),e=f(g(o),new y(k)),r=new l(v(t),b(t));return e.multiply(r).multiply(new l(.5)).add(new y(.5))}))}t([r(j)],E.prototype,"config",void 0),t([o(0,d(T))],E.prototype,"vertex",null),t([o(0,d(C))],E.prototype,"fragment",null);export{E as MagnifierShader};
5
+ import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as n,VertexInput as s,UniformGroup as i,FragmentOutput as a,input as p,FragmentInput as d}from"../../GraphShaderModule.js";import{Vec2 as l,Vec4 as c,texture2D as u,Float as y,ifElse as m,equal as w,atan as x,pow as f,length as g,cos as v,sin as h,Sampler2D as b}from"../../graph/glsl.js";import{magnifierBarrelFactor as k}from"./constants.js";class T extends s{}t([e(0,l)],T.prototype,"position",void 0);class C extends d{}class j extends i{}t([r(b)],j.prototype,"readbackTexture",void 0),t([r(b)],j.prototype,"maskTexture",void 0),t([r(b)],j.prototype,"overlayTexture",void 0),t([r(c)],j.prototype,"background",void 0),t([r(c)],j.prototype,"drawPos",void 0),t([r(y)],j.prototype,"maskEnabled",void 0),t([r(y)],j.prototype,"overlayEnabled",void 0);class E extends n{constructor(){super(...arguments),this.type="MagnifierShader"}vertex(t){const o=t.position,e=t.position.subtract(new l(.5)).multiply(this.config.drawPos.zw),r=this.config.drawPos.xy.add(e);return{glPosition:new c(r,0,1),texCoord:o}}fragment(t){let o=u(this.config.readbackTexture,P(t.texCoord));o=o.add(new y(1).subtract(o.a)).multiply(this.config.background);const e=m(w(this.config.maskEnabled,new y(1)),u(this.config.maskTexture,t.texCoord).a,new y(1));o=o.multiply(e);const r=m(w(this.config.overlayEnabled,new y(1)),u(this.config.overlayTexture,t.texCoord),new c(0)),n=new a;return n.fragColor=r.add(new y(1).subtract(r.a).multiply(o)),n}}function P(t){const o=t.multiply(new l(2)).subtract(1);return m(w(o.x,new y(0)).and(w(o.y,new y(0))),new l(.5),(()=>{const t=x(o.y,o.x),e=f(g(o),new y(k)),r=new l(v(t),h(t));return e.multiply(r).multiply(new l(.5)).add(new y(.5))}))}t([r(j)],E.prototype,"config",void 0),t([o(0,p(T))],E.prototype,"vertex",null),t([o(0,p(C))],E.prototype,"fragment",null);export{E as MagnifierShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as s,VertexInput as i,UniformGroup as p,FragmentOutput as n,input as l,FragmentInput as a}from"../../GraphShaderModule.js";import{Vec4 as u,Vec2 as c,texture2D as y,Sampler2D as d,Float as m}from"../../graph/glsl.js";class f extends i{}t([e(0,c)],f.prototype,"position",void 0);class g extends a{}class x extends p{}t([r(d)],x.prototype,"layerTexture",void 0),t([r(m)],x.prototype,"opacity",void 0);class v extends s{vertex(t){return{uv:t.position,glPosition:new u(t.position.subtract(new c(.5)).multiply(2),0,1)}}fragment(t){const o=new n;return o.fragColor=y(this.config.layerTexture,t.uv).multiply(this.config.opacity),o}}t([r(x)],v.prototype,"config",void 0),t([o(0,l(f))],v.prototype,"vertex",null),t([o(0,l(g))],v.prototype,"fragment",null);export{v as OpacityShader};
5
+ import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as s,VertexInput as p,UniformGroup as i,FragmentOutput as n,input as a,FragmentInput as l}from"../../GraphShaderModule.js";import{Vec4 as c,Vec2 as u,texture2D as y,Sampler2D as d,Float as m}from"../../graph/glsl.js";class f extends p{}t([e(0,u)],f.prototype,"position",void 0);class g extends l{}class x extends i{}t([r(d)],x.prototype,"layerTexture",void 0),t([r(m)],x.prototype,"opacity",void 0);class h extends s{constructor(){super(...arguments),this.type="OpacityShader"}vertex(t){return{uv:t.position,glPosition:new c(t.position.subtract(new u(.5)).multiply(2),0,1)}}fragment(t){const o=new n;return o.fragColor=y(this.config.layerTexture,t.uv).multiply(this.config.opacity),o}}t([r(x)],h.prototype,"config",void 0),t([o(0,a(f))],h.prototype,"vertex",null),t([o(0,a(g))],h.prototype,"fragment",null);export{h as OpacityShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as i,uniform as e,option as r,input as s}from"../../GraphShaderModule.js";import{greaterThan as a,Float as l,ifElse as p,Vec3 as n,Vec4 as m,Vec2 as u}from"../../graph/glsl.js";import{FeatureVertexInput as d,AFeatureShader as c,BaseHittestVertexInput as f}from"./AFeatureShader.js";import{bitsetTypeFillOutline as v}from"./constants.js";import{hittestFill as y,failHittest as V}from"./hittestUtils.js";import{LineFragmentInput as h,getLineVertexData as S,getLineFragmentColor as b,AntialiasingControls as j}from"./LineShader.js";import{getBit as x}from"./utils.js";import{VisualVariableColor as g}from"./VisualVariableColor.js";import{VisualVariableOpacity as w}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as z}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as M}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as O}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as C}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as P,getVisualVariableColor as U}from"./vvUtils.js";class W extends d{}t([i(3,u)],W.prototype,"offset",void 0),t([i(4,m)],W.prototype,"color",void 0),t([i(5,u)],W.prototype,"normal",void 0),t([i(6,l)],W.prototype,"halfWidth",void 0),t([i(7,l)],W.prototype,"referenceHalfWidth",void 0),t([i(8,u)],W.prototype,"zoomRange",void 0);class R extends h{}function A(t,o,i){const{id:e,bitset:r}=o,s=x(r,v),u=a(s,new l(.5)),d=S(t,o),c=p(u,d.halfWidth,new l(0)),f=P(t,e),y=U(t,e,o.color),V=p(u,o.color,y.multiply(f)),h=t.view.displayViewScreenMat3.multiply(new n(o.pos.xy,1)),b=t.clip(o.id),j=new m(h.xy,b,1),g=p(u,d.glPosition,j),w=i&&t.maybeRunHittest(o,i,u);return{isOutline:s,color:V,opacity:new l(1),halfWidth:c,normal:d.normal,glPosition:g,...w}}class F extends c{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([e(j)],F.prototype,"antialiasingControls",void 0),t([r(g)],F.prototype,"visualVariableColor",void 0),t([r(w)],F.prototype,"visualVariableOpacity",void 0),t([r(z)],F.prototype,"visualVariableSizeMinMaxValue",void 0),t([r(M)],F.prototype,"visualVariableSizeScaleStops",void 0),t([r(O)],F.prototype,"visualVariableSizeStops",void 0),t([r(C)],F.prototype,"visualVariableSizeUnitValue",void 0);class H extends F{vertex(t,o){return A(this,t,o)}fragment(t){const{color:o,isOutline:i}=t,e=a(i,new l(.5)),r=b(t,this.antialiasingControls.blur),s=p(e,r,o),n=p(e,new l(1/255),new l(0));return this.getFragmentOutput(s,t,n)}hittest(t,o,i){return p(i,V(this.hittestRequest),y(this,t,o))}}t([o(0,s(W)),o(1,s(f))],H.prototype,"vertex",null),t([o(0,s(R))],H.prototype,"fragment",null);export{F as AOutlineFillShader,R as OutlineFillFragmentInput,H as OutlineFillShader,W as OutlineFillVertexInput,A as getOutlineFillVertexData};
5
+ import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as i,uniform as e,option as r,input as s}from"../../GraphShaderModule.js";import{greaterThan as a,Float as l,ifElse as p,Vec3 as n,Vec4 as u,Vec2 as m}from"../../graph/glsl.js";import{FeatureVertexInput as d,AFeatureShader as c,BaseHittestVertexInput as f}from"./AFeatureShader.js";import{bitsetTypeFillOutline as y}from"./constants.js";import{hittestFill as h,failHittest as v}from"./hittestUtils.js";import{LineFragmentInput as V,getLineVertexData as S,getLineFragmentColor as b,AntialiasingControls as j}from"./LineShader.js";import{getBit as x}from"./utils.js";import{VisualVariableColor as g}from"./VisualVariableColor.js";import{VisualVariableOpacity as w}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as z}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as M}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as O}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as C}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as P,getVisualVariableColor as U}from"./vvUtils.js";class W extends d{}t([i(3,m)],W.prototype,"offset",void 0),t([i(4,u)],W.prototype,"color",void 0),t([i(5,m)],W.prototype,"normal",void 0),t([i(6,l)],W.prototype,"halfWidth",void 0),t([i(7,l)],W.prototype,"referenceHalfWidth",void 0),t([i(8,m)],W.prototype,"zoomRange",void 0);class F extends V{}function R(t,o,i){const{id:e,bitset:r}=o,s=x(r,y),m=a(s,new l(.5)),d=S(t,o),c=p(m,d.halfWidth,new l(0)),f=P(t,e),h=U(t,e,o.color),v=p(m,o.color,h.multiply(f)),V=t.view.displayViewScreenMat3.multiply(new n(o.pos.xy,1)),b=t.clip(o.id),j=new u(V.xy,b,1),g=p(m,d.glPosition,j),w=i&&t.maybeRunHittest(o,i,m);return{isOutline:s,color:v,opacity:new l(1),halfWidth:c,normal:d.normal,glPosition:g,...w}}class A extends c{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([e(j)],A.prototype,"antialiasingControls",void 0),t([r(g)],A.prototype,"visualVariableColor",void 0),t([r(w)],A.prototype,"visualVariableOpacity",void 0),t([r(z)],A.prototype,"visualVariableSizeMinMaxValue",void 0),t([r(M)],A.prototype,"visualVariableSizeScaleStops",void 0),t([r(O)],A.prototype,"visualVariableSizeStops",void 0),t([r(C)],A.prototype,"visualVariableSizeUnitValue",void 0);class H extends A{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,o){return R(this,t,o)}fragment(t){const{color:o,isOutline:i}=t,e=a(i,new l(.5)),r=b(t,this.antialiasingControls.blur),s=p(e,r,o),n=p(e,new l(1/255),new l(0));return this.getFragmentOutput(s,t,n)}hittest(t,o,i){return p(i,v(this.hittestRequest),h(this,t,o))}}t([o(0,s(W)),o(1,s(f))],H.prototype,"vertex",null),t([o(0,s(F))],H.prototype,"fragment",null);export{A as AOutlineFillShader,F as OutlineFillFragmentInput,H as OutlineFillShader,W as OutlineFillVertexInput,R as getOutlineFillVertexData};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as p,VertexInput as i,UniformGroup as s,FragmentOutput as n,input as d,FragmentInput as a}from"../../GraphShaderModule.js";import{Float as l,dot as v,Vec3 as c,Vec2 as y,Vec4 as u,texture2D as f,Mat3 as m,Sampler2D as x}from"../../graph/glsl.js";class g extends i{}t([e(0,y)],g.prototype,"pos",void 0),t([e(1,y)],g.prototype,"uv",void 0);class h extends a{}class w extends s{}t([r(m)],w.prototype,"dvs",void 0);class S extends s{}t([r(y)],S.prototype,"perspective",void 0),t([r(y)],S.prototype,"texSize",void 0),t([r(l)],S.prototype,"wrapAroundShift",void 0),t([r(l)],S.prototype,"opacity",void 0),t([r(x)],S.prototype,"texture",void 0);class j extends p{vertex(t){const o=t.uv.divide(this.config.texSize),e=new l(1).add(v(o,this.config.perspective)),r=new c(t.pos.add(new y(this.config.wrapAroundShift,0)),1),p=this.transform.dvs.multiply(r);return{uv:o,glPosition:new u(p.xy.multiply(e),0,e)}}fragment(t){const o=f(this.config.texture,t.uv).multiply(this.config.opacity),e=new n;return e.fragColor=o,e}}t([r(w)],j.prototype,"transform",void 0),t([r(S)],j.prototype,"config",void 0),t([o(0,d(g))],j.prototype,"vertex",null),t([o(0,d(h))],j.prototype,"fragment",null);export{j as OverlayShader};
5
+ import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as r,GraphShaderModule as p,VertexInput as s,UniformGroup as i,FragmentOutput as n,input as d,FragmentInput as a}from"../../GraphShaderModule.js";import{Float as l,dot as v,Vec3 as c,Vec2 as y,Vec4 as u,texture2D as f,Mat3 as h,Sampler2D as m}from"../../graph/glsl.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 a{}class w extends i{}t([r(h)],w.prototype,"dvs",void 0);class S extends i{}t([r(y)],S.prototype,"perspective",void 0),t([r(y)],S.prototype,"texSize",void 0),t([r(l)],S.prototype,"wrapAroundShift",void 0),t([r(l)],S.prototype,"opacity",void 0),t([r(m)],S.prototype,"texture",void 0);class j extends p{constructor(){super(...arguments),this.type="OverlayShader"}vertex(t){const o=t.uv.divide(this.config.texSize),e=new l(1).add(v(o,this.config.perspective)),r=new c(t.pos.add(new y(this.config.wrapAroundShift,0)),1),p=this.transform.dvs.multiply(r);return{uv:o,glPosition:new u(p.xy.multiply(e),0,e)}}fragment(t){const o=f(this.config.texture,t.uv).multiply(this.config.opacity),e=new n;return e.fragColor=o,e}}t([r(w)],j.prototype,"transform",void 0),t([r(S)],j.prototype,"config",void 0),t([o(0,d(x))],j.prototype,"vertex",null),t([o(0,d(g))],j.prototype,"fragment",null);export{j as OverlayShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{location as r,uniform as o,input as i}from"../../GraphShaderModule.js";import{Vec2 as s,Vec3 as l,mod as n,Float as a,mix as p,texture2D as u,Mat3 as d,negate as c,Vec4 as m}from"../../graph/glsl.js";import{FeatureFragmentInput as f,BaseHittestVertexInput as x}from"./AFeatureShader.js";import{FillVertexInput as y,FillShader as v}from"./FillShader.js";import{LocalTileOffset as b}from"./LocalTileOffset.js";import{MosaicInfo as w}from"./MosaicInfo.js";class h extends y{}t([r(5,m)],h.prototype,"tlbr",void 0),t([r(6,a)],h.prototype,"inverseRasterizationScale",void 0);class g extends f{}function j(t){const e=new a(1),r=new a(0);return new d(e.divide(t.x),r.divide(t.y),0,c(r.divide(t.x)),e.divide(t.y),0,0,0,1)}function O(t,e){const r=e.tlbr.xy,o=e.tlbr.zw,i=o.x.subtract(r.x),n=r.y.subtract(o.y),a=new s(i,n).multiply(e.inverseRasterizationScale),p=a.multiply(t.view.requiredZoomFactor),u=j(p),d=t.localTileOffset.getPatternOffsetAtTileOrigin(a).divide(p),c=new l(e.pos,1);return{tileTextureCoord:u.multiply(c).xy.subtract(d),tlbr:e.tlbr.divide(t.mosaicInfo.size.xyxy)}}function T(t,e){const r=n(t.tileTextureCoord,new a(1)),o=p(t.tlbr.xy,t.tlbr.zw,r),i=u(e.texture,o);return t.color.multiply(i)}class z extends v{vertex(t,e){return{...super.vertex(t,e),...O(this,t)}}fragment(t){const e=T(t,this.mosaicInfo);return this.getFragmentOutput(e,t,new a(0))}}t([o(w)],z.prototype,"mosaicInfo",void 0),t([o(b)],z.prototype,"localTileOffset",void 0),t([e(0,i(h)),e(1,i(x))],z.prototype,"vertex",null),t([e(0,i(g))],z.prototype,"fragment",null);export{g as PatternFillFragmentInput,z as PatternFillShader,h as PatternFillVertexInput,T as getPatternFillFragmentColor,O as getPatternFillVertexData};
5
+ import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{location as r,uniform as o,input as i}from"../../GraphShaderModule.js";import{Vec2 as s,Vec3 as l,mod as n,Float as a,mix as p,texture2D as u,Mat3 as c,negate as d,Vec4 as m}from"../../graph/glsl.js";import{FeatureFragmentInput as f,BaseHittestVertexInput as y}from"./AFeatureShader.js";import{FillVertexInput as x,FillShader as v}from"./FillShader.js";import{LocalTileOffset as b}from"./LocalTileOffset.js";import{MosaicInfo as h}from"./MosaicInfo.js";class w extends x{}t([r(5,m)],w.prototype,"tlbr",void 0),t([r(6,a)],w.prototype,"inverseRasterizationScale",void 0);class g extends f{}function j(t){const e=new a(1),r=new a(0);return new c(e.divide(t.x),r.divide(t.y),0,d(r.divide(t.x)),e.divide(t.y),0,0,0,1)}function O(t,e){const r=e.tlbr.xy,o=e.tlbr.zw,i=o.x.subtract(r.x),n=r.y.subtract(o.y),a=new s(i,n).multiply(e.inverseRasterizationScale),p=a.multiply(t.view.requiredZoomFactor),u=j(p),c=t.localTileOffset.getPatternOffsetAtTileOrigin(a).divide(p),d=new l(e.pos,1);return{tileTextureCoord:u.multiply(d).xy.subtract(c),tlbr:e.tlbr.divide(t.mosaicInfo.size.xyxy)}}function S(t,e){const r=n(t.tileTextureCoord,new a(1)),o=p(t.tlbr.xy,t.tlbr.zw,r),i=u(e.texture,o);return t.color.multiply(i)}class T extends v{constructor(){super(...arguments),this.type="PatternFillShader"}vertex(t,e){return{...super.vertex(t,e),...O(this,t)}}fragment(t){const e=S(t,this.mosaicInfo);return this.getFragmentOutput(e,t,new a(0))}}t([o(h)],T.prototype,"mosaicInfo",void 0),t([o(b)],T.prototype,"localTileOffset",void 0),t([e(0,i(w)),e(1,i(y))],T.prototype,"vertex",null),t([e(0,i(g))],T.prototype,"fragment",null);export{g as PatternFillFragmentInput,T as PatternFillShader,w as PatternFillVertexInput,S as getPatternFillFragmentColor,O as getPatternFillVertexData};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as o}from"../../../../../../../chunks/tslib.es6.js";import{location as r,uniform as e,input as s}from"../../GraphShaderModule.js";import{greaterThan as i,Float as a,ifElse as l,Vec4 as n}from"../../graph/glsl.js";import{BaseHittestVertexInput as p}from"./AFeatureShader.js";import{getLineFragmentColor as m}from"./LineShader.js";import{LocalTileOffset as f}from"./LocalTileOffset.js";import{MosaicInfo as d}from"./MosaicInfo.js";import{OutlineFillVertexInput as h,OutlineFillFragmentInput as u,OutlineFillShader as c,getOutlineFillVertexData as j}from"./OutlineFillShader.js";import{getPatternFillVertexData as g,getPatternFillFragmentColor as v}from"./PatternFillShader.js";class x extends h{}t([r(9,n)],x.prototype,"tlbr",void 0),t([r(10,a)],x.prototype,"inverseRasterizationScale",void 0);class y extends u{}class S extends c{vertex(t,o){return{...j(this,t,o),...g(this,t)}}fragment(t){const{isOutline:o}=t,r=i(o,new a(.5)),e=m(t,this.antialiasingControls.blur),s=v(t,this.mosaicInfo),n=l(r,e,s),p=l(r,new a(1/255),new a(0));return this.getFragmentOutput(n,t,p)}}t([e(d)],S.prototype,"mosaicInfo",void 0),t([e(f)],S.prototype,"localTileOffset",void 0),t([o(0,s(x)),o(1,s(p))],S.prototype,"vertex",null),t([o(0,s(y))],S.prototype,"fragment",null);export{y as PatternOutlineFillFragmentInput,S as PatternOutlineFillShader,x as PatternOutlineFillVertexInput};
5
+ import{_ as t,a as r}from"../../../../../../../chunks/tslib.es6.js";import{location as e,uniform as o,input as s}from"../../GraphShaderModule.js";import{greaterThan as i,Float as a,ifElse as l,Vec4 as n}from"../../graph/glsl.js";import{BaseHittestVertexInput as p}from"./AFeatureShader.js";import{getLineFragmentColor as m}from"./LineShader.js";import{LocalTileOffset as f}from"./LocalTileOffset.js";import{MosaicInfo as h}from"./MosaicInfo.js";import{OutlineFillVertexInput as u,OutlineFillFragmentInput as d,OutlineFillShader as c,getOutlineFillVertexData as j}from"./OutlineFillShader.js";import{getPatternFillVertexData as g,getPatternFillFragmentColor as v}from"./PatternFillShader.js";class y extends u{}t([e(9,n)],y.prototype,"tlbr",void 0),t([e(10,a)],y.prototype,"inverseRasterizationScale",void 0);class S extends d{}class x extends c{constructor(){super(...arguments),this.type="PatternOutlineFillShader"}vertex(t,r){return{...j(this,t,r),...g(this,t)}}fragment(t){const{isOutline:r}=t,e=i(r,new a(.5)),o=m(t,this.antialiasingControls.blur),s=v(t,this.mosaicInfo),n=l(e,o,s),p=l(e,new a(1/255),new a(0));return this.getFragmentOutput(n,t,p)}}t([o(h)],x.prototype,"mosaicInfo",void 0),t([o(f)],x.prototype,"localTileOffset",void 0),t([r(0,s(y)),r(1,s(p))],x.prototype,"vertex",null),t([r(0,s(S))],x.prototype,"fragment",null);export{S as PatternOutlineFillFragmentInput,x as PatternOutlineFillShader,y as PatternOutlineFillVertexInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o,a as t}from"../../../../../../../chunks/tslib.es6.js";import{uniform as e,UniformGroup as r,location as s,GraphShaderModule as l,option as p,define as i,VertexInput as d,FragmentOutput as n,input as a,FragmentInput as v}from"../../GraphShaderModule.js";import{FixedArray as c,Float as y,equal as f,ifElse as u,Int as x,Vec4 as h,and as m,lessThan as w,greaterThan as g,Vec2 as C,Vec3 as b}from"../../graph/glsl.js";class j extends r{}o([e(y)],j.prototype,"zoomLevel",void 0);class k extends r{getColor(o){const t=this.validValues.findIndex((t=>f(t,o)));return u(f(t,new x(-1)),this.colorFallback,this.color)}}o([e(h)],k.prototype,"color",void 0),o([e(h)],k.prototype,"colorFallback",void 0),o([e(c.ofType(y,4))],k.prototype,"validValues",void 0);class z extends d{}o([s(0,C)],z.prototype,"pos",void 0),o([s(1,b)],z.prototype,"id",void 0),o([s(2,y)],z.prototype,"bitset",void 0),o([s(3,C)],z.prototype,"offset",void 0),o([s(4,y)],z.prototype,"size",void 0),o([s(5,h)],z.prototype,"color",void 0);class D extends v{}class F extends l{vertex(o){const{size:t,offset:e,pos:r}=o;let s=o.color;this.dataDrivenColor&&(s=this.dataDrivenColor.getColor(new y(1)));const l=e.multiply(t);return{glPosition:new h(r.add(l),0,1),color:s,offset:e}}fragment(o){const t=new n,{offset:e}=o;return t.discard=m(g(e.x,new y(-.5)),g(e.y,new y(-.5)),w(e.x,new y(.5)),w(e.y,new y(.5))),this.returnRed?t.fragColor=new h(1,0,0,1):t.fragColor=o.color,t}}o([p(k)],F.prototype,"dataDrivenColor",void 0),o([e(j)],F.prototype,"view",void 0),o([i],F.prototype,"returnRed",void 0),o([t(0,a(z))],F.prototype,"vertex",null),o([t(0,a(D))],F.prototype,"fragment",null);export{k as DataDrivenColorByValueMatch,F as TestShader};
5
+ import{_ as o,a as t}from"../../../../../../../chunks/tslib.es6.js";import{uniform as e,UniformGroup as r,location as s,GraphShaderModule as p,option as l,define as i,VertexInput as d,FragmentOutput as n,input as a,FragmentInput as c}from"../../GraphShaderModule.js";import{FixedArray as v,Float as y,equal as f,ifElse as u,Int as h,Vec4 as x,and as m,lessThan as w,greaterThan as g,Vec2 as C,Vec3 as b}from"../../graph/glsl.js";class j extends r{}o([e(y)],j.prototype,"zoomLevel",void 0);class k extends r{getColor(o){const t=this.validValues.findIndex((t=>f(t,o)));return u(f(t,new h(-1)),this.colorFallback,this.color)}}o([e(x)],k.prototype,"color",void 0),o([e(x)],k.prototype,"colorFallback",void 0),o([e(v.ofType(y,4))],k.prototype,"validValues",void 0);class z extends d{}o([s(0,C)],z.prototype,"pos",void 0),o([s(1,b)],z.prototype,"id",void 0),o([s(2,y)],z.prototype,"bitset",void 0),o([s(3,C)],z.prototype,"offset",void 0),o([s(4,y)],z.prototype,"size",void 0),o([s(5,x)],z.prototype,"color",void 0);class D extends c{}class F extends p{constructor(){super(...arguments),this.type="TestShader"}vertex(o){const{size:t,offset:e,pos:r}=o;let s=o.color;this.dataDrivenColor&&(s=this.dataDrivenColor.getColor(new y(1)));const p=e.multiply(t);return{glPosition:new x(r.add(p),0,1),color:s,offset:e}}fragment(o){const t=new n,{offset:e}=o;return t.discard=m(g(e.x,new y(-.5)),g(e.y,new y(-.5)),w(e.x,new y(.5)),w(e.y,new y(.5))),this.returnRed?t.fragColor=new x(1,0,0,1):t.fragColor=o.color,t}}o([l(k)],F.prototype,"dataDrivenColor",void 0),o([e(j)],F.prototype,"view",void 0),o([i],F.prototype,"returnRed",void 0),o([t(0,a(z))],F.prototype,"vertex",null),o([t(0,a(D))],F.prototype,"fragment",null);export{k as DataDrivenColorByValueMatch,F as TestShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";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 l,input as n}from"../../GraphShaderModule.js";import{max as r,Float as p,fract as m,mix as c,Vec2 as u,texture2D as d,cond as y,equal as h,sqrt as f,pow as w,clamp as b,Vec4 as g,ifElse as x,greaterThan as v,dot as D}from"../../graph/glsl.js";import{BaseHittestVertexInput as j}from"./AFeatureShader.js";import{bitsetLineScaleDash as S,bitsetLineIsSdf as A,bitsetGenericConsiderAlphaOnly as z}from"./constants.js";import{LineVertexInput as F,LineFragmentInput as _,LineShader as T,getLineVertexData as I,getLineAntialiasing as L}from"./LineShader.js";import{MosaicInfo as C}from"./MosaicInfo.js";import{getBit as O,rgba2float as P}from"./utils.js";class W extends F{}t([a(9,p)],W.prototype,"accumulatedDistance",void 0),t([a(10,u)],W.prototype,"segmentDirection",void 0),t([a(11,p)],W.prototype,"offsetAlongLine",void 0),t([a(12,p)],W.prototype,"capType",void 0),t([a(13,g)],W.prototype,"tlbr",void 0);class R extends _{}class H extends T{_getDistanceRatio(t,e){const o=O(t.bitset,S);return o.multiply(r(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:l,accumulatedDistance:n,offsetAlongLine:x,dashToPx:v,capType:D}=t,j=l.x.divide(o).multiply(v),S=m(n.add(x).divide(j)),A=c(a.xy,a.zw,new u(S,.5)),z=P(d(this.mosaicInfo.texture,A)).multiply(2).subtract(1).multiply(s).multiply(v),F=i.y.multiply(e),_=y([h(D,new p(1)),z.subtract(e)],[h(D,new p(2)),f(w(r(z,new p(0)),new p(2)).add(F.multiply(F))).subtract(e)],[!0,z]),T=b(new p(.25).subtract(_),new p(0),new p(1));return new g(T)}_getPatternColor(t){const{halfWidth:e,normal:i,color:o,accumulatedDistance:s,patternSize:a,sampleAlphaOnly:l,tlbr:n}=t,r=a.y.multiply(new p(2).multiply(e).divide(a.x)),y=m(s.divide(r)),h=new p(.5).multiply(i.y).add(new p(.5)),f=c(n.xy,n.zw,new u(h,y));let w=d(this.mosaicInfo.texture,f);return null!=this.visualVariableColor&&(w=x(v(l,new p(.5)),new g(o.a),o)),w}vertex(t,e){const{segmentDirection:i,tlbr:o,bitset:s}=t,a=I(this,t),l=t.accumulatedDistance.divide(this.view.displayZoomFactor).add(D(i,a.scaledOffset)),n=new u(o.z.subtract(o.x),o.w.subtract(o.y)),r=o.divide(this.mosaicInfo.size.xyxy),m=O(s,A),c=O(s,z),d=x(v(m,new p(.5)),this._getDistanceRatio(t,a.scaledHalfWidth),new p(1));return{...a,tlbr:r,patternSize:n,accumulatedDistance:l,isSDF:m,sampleAlphaOnly:c,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=L(t,this.antialiasingControls.blur),a=x(v(o,new p(.5)),this._getSDFAlpha(t),this._getPatternColor(t)),l=e.multiply(i).multiply(s).multiply(a);return this.getFragmentOutput(l,t)}}t([l(C)],H.prototype,"mosaicInfo",void 0),t([e(0,n(W)),e(1,n(j))],H.prototype,"vertex",null);export{R as TexturedLineFragmentInput,H as TexturedLineShader,W as TexturedLineVertexInput};
5
+ import{_ as t,a as e}from"../../../../../../../chunks/tslib.es6.js";import{pt2px as i}from"../../../../../../../core/screenUtils.js";import{dashSdfRasterizationScale as s,dashSdfDistanceNormalization as o}from"../../../../../../../symbols/cim/constants.js";import{location as a,uniform as r,input as l}from"../../GraphShaderModule.js";import{max as n,Float as p,fract as c,mix as m,Vec2 as u,texture2D as d,cond as y,equal as h,sqrt as f,pow as w,clamp as b,Vec4 as g,ifElse as x,greaterThan as v,dot as D}from"../../graph/glsl.js";import{BaseHittestVertexInput as S}from"./AFeatureShader.js";import{bitsetLineScaleDash as j,bitsetLineIsSdf as A,bitsetGenericConsiderAlphaOnly as z}from"./constants.js";import{LineVertexInput as F,LineFragmentInput as T,LineShader as _,getLineVertexData as L,getLineAntialiasing as I}from"./LineShader.js";import{MosaicInfo as C}from"./MosaicInfo.js";import{getBit as O,rgba2float as P}from"./utils.js";class W extends F{}t([a(9,p)],W.prototype,"accumulatedDistance",void 0),t([a(10,u)],W.prototype,"segmentDirection",void 0),t([a(11,p)],W.prototype,"offsetAlongLine",void 0),t([a(12,p)],W.prototype,"capType",void 0),t([a(13,g)],W.prototype,"tlbr",void 0);class R extends T{}class H extends _{constructor(){super(...arguments),this.type="TexturedLineShader"}_getDistanceRatio(t,e){const s=O(t.bitset,j);return s.multiply(n(e,new p(.25)).multiply(new p(2))).add(new p(1).subtract(s).multiply(i(1)))}_getSDFAlpha(t){const{halfWidth:e,normal:i,tlbr:a,patternSize:r,accumulatedDistance:l,offsetAlongLine:x,dashToPx:v,capType:D}=t,S=r.x.divide(s).multiply(v),j=c(l.add(x).divide(S)),A=m(a.xy,a.zw,new u(j,.5)),z=P(d(this.mosaicInfo.texture,A)).multiply(2).subtract(1).multiply(o).multiply(v),F=i.y.multiply(e),T=y([h(D,new p(1)),z.subtract(e)],[h(D,new p(2)),f(w(n(z,new p(0)),new p(2)).add(F.multiply(F))).subtract(e)],[!0,z]),_=b(new p(.25).subtract(T),new p(0),new p(1));return new g(_)}_getPatternColor(t){const{halfWidth:e,normal:i,color:s,accumulatedDistance:o,patternSize:a,sampleAlphaOnly:r,tlbr:l}=t,n=a.y.multiply(new p(2).multiply(e).divide(a.x)),y=c(o.divide(n)),h=new p(.5).multiply(i.y).add(new p(.5)),f=m(l.xy,l.zw,new u(h,y));let w=d(this.mosaicInfo.texture,f);return null!=this.visualVariableColor&&(w=x(v(r,new p(.5)),new g(s.a),s)),w}vertex(t,e){const{segmentDirection:i,tlbr:s,bitset:o}=t,a=L(this,t),r=t.accumulatedDistance.divide(this.view.displayZoomFactor).add(D(i,a.scaledOffset)),l=new u(s.z.subtract(s.x),s.w.subtract(s.y)),n=s.divide(this.mosaicInfo.size.xyxy),c=O(o,A),m=O(o,z),d=x(v(c,new p(.5)),this._getDistanceRatio(t,a.scaledHalfWidth),new p(1));return{...a,tlbr:n,patternSize:l,accumulatedDistance:r,isSDF:c,sampleAlphaOnly:m,dashToPx:d,offsetAlongLine:t.offsetAlongLine,capType:t.capType,...this.maybeRunHittest(t,e,a.halfWidth)}}fragment(t){const{color:e,opacity:i,isSDF:s}=t,o=I(t,this.antialiasingControls.blur),a=x(v(s,new p(.5)),this._getSDFAlpha(t),this._getPatternColor(t)),r=e.multiply(i).multiply(o).multiply(a);return this.getFragmentOutput(r,t)}}t([r(C)],H.prototype,"mosaicInfo",void 0),t([e(0,l(W)),e(1,l(S))],H.prototype,"vertex",null);export{R as TexturedLineFragmentInput,H as TexturedLineShader,W as TexturedLineVertexInput};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../../../../../chunks/tslib.es6.js";import{uniform as r}from"../../../GraphShaderModule.js";import{Float as s}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as t}from"./BaseRasterColorizerShader.js";import{lookupColor as e,ColormapConfig as i}from"./lut.js";class m extends t{_colorize(o){const r=this._getPixel(o);return e(r,new s(1),this.colormapConfig,!1)}}o([r(i)],m.prototype,"colormapConfig",void 0);export{m as RasterColorizerLUTShader};
5
+ import{_ as r}from"../../../../../../../../chunks/tslib.es6.js";import{uniform as o}from"../../../GraphShaderModule.js";import{Float as s}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as t}from"./BaseRasterColorizerShader.js";import{lookupColor as e,ColormapConfig as i}from"./lut.js";class p extends t{constructor(){super(...arguments),this.type="RasterColorizerLUTShader"}_colorize(r){const o=this._getPixel(r);return e(o,new s(1),this.colormapConfig,!1)}}r([o(i)],p.prototype,"colormapConfig",void 0);export{p as RasterColorizerLUTShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../../../../../chunks/tslib.es6.js";import{define as i,uniform as r,option as t}from"../../../GraphShaderModule.js";import{Vec4 as e,clamp as s,Float as l,Vec3 as a}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as p}from"./BaseRasterColorizerShader.js";import{rgb2hsv as n,hsv2rgb as m}from"./colorConversion.js";import{lookupColor as h,ColormapConfig as c}from"./lut.js";import{getSurfaceValues as u,hillshade as d,HillshadeConfig as f}from"./surface.js";class g extends p{constructor(){super(...arguments),this.applyColormap=!1,this.isMultidirectional=!1}_colorize(o){const{texture:i}=this.config,r=u(i,o,this.config.srcImageSize),t=d(r,this.hillshadeConfig,this.isMultidirectional);if(!this.applyColormap)return new e(t.x,t.x,t.x,t.a);const{minValue:p,maxValue:c}=this.hillshadeConfig,f=this._getPixel(o),g=c.subtract(p),x=f.r.subtract(p),y=s(x.divide(g),new l(0),new l(1)),C=h(new e(y,y,y,1),new l(255),this.colormapConfig),j=n(C.xyz),w=m(new a(j.xy,t.x));return new e(w,C.a.multiply(t.a))}}o([i],g.prototype,"applyColormap",void 0),o([i],g.prototype,"isMultidirectional",void 0),o([r(f)],g.prototype,"hillshadeConfig",void 0),o([t(c)],g.prototype,"colormapConfig",void 0);export{g as RasterColorizerShadedReliefShader};
5
+ import{_ as o}from"../../../../../../../../chunks/tslib.es6.js";import{define as i,uniform as r,option as t}from"../../../GraphShaderModule.js";import{Vec4 as e,clamp as s,Float as l,Vec3 as a}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as p}from"./BaseRasterColorizerShader.js";import{rgb2hsv as n,hsv2rgb as h}from"./colorConversion.js";import{lookupColor as m,ColormapConfig as c}from"./lut.js";import{getSurfaceValues as d,hillshade as f,HillshadeConfig as u}from"./surface.js";class g extends p{constructor(){super(...arguments),this.type="RasterColorizerShadedReliefShader",this.applyColormap=!1,this.isMultidirectional=!1}_colorize(o){const{texture:i}=this.config,r=d(i,o,this.config.srcImageSize),t=f(r,this.hillshadeConfig,this.isMultidirectional);if(!this.applyColormap)return new e(t.x,t.x,t.x,t.a);const{minValue:p,maxValue:c}=this.hillshadeConfig,u=this._getPixel(o),g=c.subtract(p),x=u.r.subtract(p),y=s(x.divide(g),new l(0),new l(1)),C=m(new e(y,y,y,1),new l(255),this.colormapConfig),j=n(C.xyz),w=h(new a(j.xy,t.x));return new e(w,C.a.multiply(t.a))}}o([i],g.prototype,"applyColormap",void 0),o([i],g.prototype,"isMultidirectional",void 0),o([r(u)],g.prototype,"hillshadeConfig",void 0),o([t(c)],g.prototype,"colormapConfig",void 0);export{g as RasterColorizerShadedReliefShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../../../../../chunks/tslib.es6.js";import{define as t,uniform as r,option as s}from"../../../GraphShaderModule.js";import{Vec4 as i,Float as p}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as e}from"./BaseRasterColorizerShader.js";import{lookupColor as a,ColormapConfig as m}from"./lut.js";import{stretch as l,StretchConfig as h}from"./stretch.js";class n extends e{constructor(){super(...arguments),this.isMultiband=!0,this.applyColormap=!1,this.useGamma=!1,this.noOp=!1}_colorize(o){const t=this._getPixel(o);if(this.noOp)return t;let r=l(t,this.stretchConfig,this.useGamma);if(this.isMultiband)return r;if(r=new i(r.rrr,r.a),this.applyColormap){const o=this.useGamma?255:1;r=a(r,new p(o),this.colormapConfig)}return r}}o([t],n.prototype,"isMultiband",void 0),o([t],n.prototype,"applyColormap",void 0),o([t],n.prototype,"useGamma",void 0),o([t],n.prototype,"noOp",void 0),o([r(h)],n.prototype,"stretchConfig",void 0),o([s(m)],n.prototype,"colormapConfig",void 0);export{n as RasterColorizerStretchShader};
5
+ import{_ as o}from"../../../../../../../../chunks/tslib.es6.js";import{define as t,uniform as r,option as s}from"../../../GraphShaderModule.js";import{Vec4 as i,Float as e}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as p}from"./BaseRasterColorizerShader.js";import{lookupColor as a,ColormapConfig as m}from"./lut.js";import{stretch as h,StretchConfig as l}from"./stretch.js";class n extends p{constructor(){super(...arguments),this.type="RasterColorizerStretchShader",this.isMultiband=!0,this.applyColormap=!1,this.useGamma=!1,this.noOp=!1}_colorize(o){const t=this._getPixel(o);if(this.noOp)return t;let r=h(t,this.stretchConfig,this.useGamma);if(this.isMultiband)return r;if(r=new i(r.rrr,r.a),this.applyColormap){const o=this.useGamma?255:1;r=a(r,new e(o),this.colormapConfig)}return r}}o([t],n.prototype,"isMultiband",void 0),o([t],n.prototype,"applyColormap",void 0),o([t],n.prototype,"useGamma",void 0),o([t],n.prototype,"noOp",void 0),o([r(l)],n.prototype,"stretchConfig",void 0),o([s(m)],n.prototype,"colormapConfig",void 0);export{n as RasterColorizerStretchShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as t,UniformGroup as i}from"../../../../GraphShaderModule.js";import{Vec2 as s,negate as l,sign as o,abs as r,Float as p,step as m,mod as d,atan as a,mix as n,Vec4 as c}from"../../../../graph/glsl.js";import{getSurfaceValues as u,computeDeltaZ as y}from"../surface.js";import{BaseRasterProcessorShader as f}from"./BaseRasterProcessorShader.js";class h extends i{}e([t(s)],h.prototype,"cellSize",void 0);class g extends f{_process(e){const{texture:t}=this.config,i=u(t,e,this.config.srcImageSize),f=new s(1).divide(this.aspectConfig.cellSize.multiply(8)),{x:h,y:g}=y(i,f),w=l(g),j=i[9].multiply(o(r(h).add(r(w)))),x=r(o(h)),S=new p(3.14159265359),v=new p(0),z=m(v,w).multiply(.5).multiply(S).add(m(w,v).multiply(1.5).multiply(S)),C=d(new p(2.5).multiply(S).add(a(w,l(h))),new p(2).multiply(S)),_=n(z,C,x).multiply(180).divide(S);return new c(_,_,_,j)}}e([t(h)],g.prototype,"aspectConfig",void 0);export{g as AspectShader};
5
+ import{_ as e}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as t,UniformGroup as s}from"../../../../GraphShaderModule.js";import{Vec2 as i,negate as r,sign as l,abs as o,Float as p,step as m,mod as d,atan as a,mix as c,Vec4 as n}from"../../../../graph/glsl.js";import{getSurfaceValues as u,computeDeltaZ as y}from"../surface.js";import{BaseRasterProcessorShader as f}from"./BaseRasterProcessorShader.js";class h extends s{}e([t(i)],h.prototype,"cellSize",void 0);class g extends f{constructor(){super(...arguments),this.type="AspectShader"}_process(e){const{texture:t}=this.config,s=u(t,e,this.config.srcImageSize),f=new i(1).divide(this.aspectConfig.cellSize.multiply(8)),{x:h,y:g}=y(s,f),w=r(g),S=s[9].multiply(l(o(h).add(o(w)))),j=o(l(h)),x=new p(3.14159265359),v=new p(0),z=m(v,w).multiply(.5).multiply(x).add(m(w,v).multiply(1.5).multiply(x)),C=d(new p(2.5).multiply(x).add(a(w,r(h))),new p(2).multiply(x)),_=c(z,C,j).multiply(180).divide(x);return new n(_,_,_,S)}}e([t(h)],g.prototype,"aspectConfig",void 0);export{g as AspectShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as s,define as u,option as r,UniformGroup as l}from"../../../../GraphShaderModule.js";import{Vec4 as a,pow as i,Float as e,sqrt as d,Mat3 as p,Vec3 as c}from"../../../../graph/glsl.js";import{oneMinus as m}from"../../utils.js";import{BaseRasterProcessorShader as n}from"./BaseRasterProcessorShader.js";import{roundOutput as o,invertValue as y}from"./math.js";class b extends l{}t([s(p)],b.prototype,"bandIndexMat3",void 0);class h extends l{}t([s(c)],h.prototype,"adjustments",void 0);class x extends n{constructor(){super(...arguments),this.isOutputRounded=!1}_process(t){const s=this._getPixel(t),u=this.bandArithmeticConfig.bandIndexMat3.multiply(s.rgb),r=this._processIndex(u),l=new a(r,r,r,s.a);return this.isOutputRounded?o(l):l}_processIndex(t){const{r:s,g:u}=t,r=this.adjustmentConfig?.adjustments;switch(this.indexType){case"ndxi":{const t=s.subtract(u),r=s.add(u);return t.multiply(y(r))}case"sr":return s.multiply(y(u));case"ci":return s.multiply(y(u)).subtract(1);case"savi":{const{x:t}=r,l=s.subtract(u),a=s.add(u).add(t);return l.multiply(y(a)).multiply(t.add(1))}case"tsavi":{const{x:t,y:l,z:a}=r,i=a.multiply(t.multiply(t).add(1)).subtract(l.multiply(t)),e=t.multiply(s.subtract(t.multiply(u)).subtract(l)),d=l.multiply(s).add(u).add(i);return e.multiply(y(d))}case"msavi":{const t=s.multiply(2).add(1),r=t.multiply(t).subtract(s.subtract(u).multiply(8));return t.subtract(d(r)).multiply(.5)}case"gemi":{const t=s.multiply(s).subtract(u.multiply(u)).multiply(2).add(s.multiply(1.5)).add(u.multiply(.5)),r=s.add(u).add(.5),l=t.multiply(y(r)),a=l.multiply(m(l.multiply(.25))),i=u.subtract(.125).multiply(y(m(u)));return a.subtract(i)}case"pvi":{const{x:t,y:l}=r,a=d(t.multiply(t).add(1));return s.subtract(u.multiply(t)).subtract(l).multiply(y(a))}case"vari":{const s=t.g.subtract(t.r),u=t.g.add(t.r).subtract(t.b);return s.multiply(y(u))}case"rtvicore":return s.subtract(u).multiply(100).subtract(s.subtract(t.b).multiply(10));case"bai":{const t=i(new e(.1).subtract(u),new e(2)),r=i(new e(.06).subtract(s),new e(2));return y(t.add(r))}case"evi":{const r=t.b,l=s.add(u.multiply(6)).subtract(r.multiply(7.5)).add(1);return s.subtract(u).multiply(2.5).multiply(y(l))}case"wndwi":{const{r:s,g:u,b:l}=t,a=r.x,i=a.multiply(u),e=a.multiply(l),d=s.add(i).add(l).subtract(e);return s.subtract(i).subtract(l).add(e).multiply(y(d))}case"mtvi":{const r=t.b,l=i(s.multiply(2).add(1),new e(2)),a=s.multiply(6).subtract(d(u).multiply(5)),p=d(l.subtract(a).subtract(.5)),c=s.subtract(r).multiply(1.2),m=u.subtract(r).multiply(2.5);return c.subtract(m).multiply(1.5).multiply(y(p))}default:return s}}}t([u],x.prototype,"indexType",void 0),t([u],x.prototype,"isOutputRounded",void 0),t([s(b)],x.prototype,"bandArithmeticConfig",void 0),t([r(h)],x.prototype,"adjustmentConfig",void 0);export{x as BandArithmeticShader};
5
+ import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as s,define as u,option as r,UniformGroup as l}from"../../../../GraphShaderModule.js";import{Vec4 as i,pow as a,Float as e,sqrt as d,Mat3 as p,Vec3 as c}from"../../../../graph/glsl.js";import{oneMinus as m}from"../../utils.js";import{BaseRasterProcessorShader as n}from"./BaseRasterProcessorShader.js";import{roundOutput as o,invertValue as y}from"./math.js";class b extends l{}t([s(p)],b.prototype,"bandIndexMat3",void 0);class h extends l{}t([s(c)],h.prototype,"adjustments",void 0);class x extends n{constructor(){super(...arguments),this.type="BandArithmeticShader",this.isOutputRounded=!1}_process(t){const s=this._getPixel(t),u=this.bandArithmeticConfig.bandIndexMat3.multiply(s.rgb),r=this._processIndex(u),l=new i(r,r,r,s.a);return this.isOutputRounded?o(l):l}_processIndex(t){const{r:s,g:u}=t,r=this.adjustmentConfig?.adjustments;switch(this.indexType){case"ndxi":{const t=s.subtract(u),r=s.add(u);return t.multiply(y(r))}case"sr":return s.multiply(y(u));case"ci":return s.multiply(y(u)).subtract(1);case"savi":{const{x:t}=r,l=s.subtract(u),i=s.add(u).add(t);return l.multiply(y(i)).multiply(t.add(1))}case"tsavi":{const{x:t,y:l,z:i}=r,a=i.multiply(t.multiply(t).add(1)).subtract(l.multiply(t)),e=t.multiply(s.subtract(t.multiply(u)).subtract(l)),d=l.multiply(s).add(u).add(a);return e.multiply(y(d))}case"msavi":{const t=s.multiply(2).add(1),r=t.multiply(t).subtract(s.subtract(u).multiply(8));return t.subtract(d(r)).multiply(.5)}case"gemi":{const t=s.multiply(s).subtract(u.multiply(u)).multiply(2).add(s.multiply(1.5)).add(u.multiply(.5)),r=s.add(u).add(.5),l=t.multiply(y(r)),i=l.multiply(m(l.multiply(.25))),a=u.subtract(.125).multiply(y(m(u)));return i.subtract(a)}case"pvi":{const{x:t,y:l}=r,i=d(t.multiply(t).add(1));return s.subtract(u.multiply(t)).subtract(l).multiply(y(i))}case"vari":{const s=t.g.subtract(t.r),u=t.g.add(t.r).subtract(t.b);return s.multiply(y(u))}case"rtvicore":return s.subtract(u).multiply(100).subtract(s.subtract(t.b).multiply(10));case"bai":{const t=a(new e(.1).subtract(u),new e(2)),r=a(new e(.06).subtract(s),new e(2));return y(t.add(r))}case"evi":{const r=t.b,l=s.add(u.multiply(6)).subtract(r.multiply(7.5)).add(1);return s.subtract(u).multiply(2.5).multiply(y(l))}case"wndwi":{const{r:s,g:u,b:l}=t,i=r.x,a=i.multiply(u),e=i.multiply(l),d=s.add(a).add(l).subtract(e);return s.subtract(a).subtract(l).add(e).multiply(y(d))}case"mtvi":{const r=t.b,l=a(s.multiply(2).add(1),new e(2)),i=s.multiply(6).subtract(d(u).multiply(5)),p=d(l.subtract(i).subtract(.5)),c=s.subtract(r).multiply(1.2),m=u.subtract(r).multiply(2.5);return c.subtract(m).multiply(1.5).multiply(y(p))}default:return s}}}t([u],x.prototype,"indexType",void 0),t([u],x.prototype,"isOutputRounded",void 0),t([s(b)],x.prototype,"bandArithmeticConfig",void 0),t([r(h)],x.prototype,"adjustmentConfig",void 0);export{x as BandArithmeticShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as r}from"../../../../GraphShaderModule.js";import{Float as s,Vec4 as t}from"../../../../graph/glsl.js";import{lookupColor as e,ColormapConfig as p}from"../lut.js";import{BaseRasterProcessorShader as i}from"./BaseRasterProcessorShader.js";class m extends i{_process(o){const r=this._getPixel(o),p=e(r,new s(1),this.colormapConfig,!1);return new t(p.xyz.multiply(255),p.a)}}o([r(p)],m.prototype,"colormapConfig",void 0);export{m as ColormapToRGBShader};
5
+ import{_ as o}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as r}from"../../../../GraphShaderModule.js";import{Float as s,Vec4 as t}from"../../../../graph/glsl.js";import{lookupColor as e,ColormapConfig as p}from"../lut.js";import{BaseRasterProcessorShader as i}from"./BaseRasterProcessorShader.js";class m extends i{constructor(){super(...arguments),this.type="ColormapToRGBShader"}_process(o){const r=this._getPixel(o),p=e(r,new s(1),this.colormapConfig,!1);return new t(p.xyz.multiply(255),p.a)}}o([r(p)],m.prototype,"colormapConfig",void 0);export{m as ColormapToRGBShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{Vec4 as s}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as r}from"./BaseRasterProcessorShader.js";import{MultiRasterMixin as e}from"./MultiRasterMixin.js";class t extends(e(r)){_process(r){const{a:e,b:t,c:a,alpha:o}=this._getRasterValues(r);return new s(e,t,a,o)}}export{t as CompositeBandShader};
5
+ import{Vec4 as s}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as r}from"./BaseRasterProcessorShader.js";import{MultiRasterMixin as e}from"./MultiRasterMixin.js";class t extends(e(r)){constructor(){super(...arguments),this.type="CompositeBandShader"}_process(r){const{a:e,b:t,c:o,alpha:a}=this._getRasterValues(r);return new s(e,t,o,a)}}export{t as CompositeBandShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{define as o,uniform as r}from"../../../../GraphShaderModule.js";import{max as s,abs as e,Vec4 as i}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";import{DomainRangeConfig as p}from"./LocalShader.js";import{invertValue as m,getRangeClipFactor as d,roundOutput as n}from"./math.js";import{MultiRasterMixin as u}from"./MultiRasterMixin.js";class h extends(u(a)){constructor(){super(...arguments),this.isOutputRounded=!1}_process(t){const{a:o,b:r,alpha:a}=this._getRasterValues(t);let p=o.subtract(r);"relative-difference"===this.method&&(p=p.multiply(m(s(e(o),e(r)))));const u=d(p,this.domainRangeConfig.domainRange),h=new i(p,p,p,a).multiply(u);return this.isOutputRounded?n(h):h}}t([o],h.prototype,"method",void 0),t([o],h.prototype,"isOutputRounded",void 0),t([r(p)],h.prototype,"domainRangeConfig",void 0);export{h as ComputeChangeShader};
5
+ import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{define as o,uniform as e}from"../../../../GraphShaderModule.js";import{max as r,abs as s,Vec4 as i}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";import{DomainRangeConfig as p}from"./LocalShader.js";import{invertValue as m,getRangeClipFactor as d,roundOutput as n}from"./math.js";import{MultiRasterMixin as u}from"./MultiRasterMixin.js";class h extends(u(a)){constructor(){super(...arguments),this.type="ComputeChangeShader",this.isOutputRounded=!1}_process(t){const{a:o,b:e,alpha:a}=this._getRasterValues(t);let p=o.subtract(e);"relative-difference"===this.method&&(p=p.multiply(m(r(s(o),s(e)))));const u=d(p,this.domainRangeConfig.domainRange),h=new i(p,p,p,a).multiply(u);return this.isOutputRounded?n(h):h}}t([o],h.prototype,"method",void 0),t([o],h.prototype,"isOutputRounded",void 0),t([e(p)],h.prototype,"domainRangeConfig",void 0);export{h as ComputeChangeShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as s,UniformGroup as e}from"../../../../GraphShaderModule.js";import{Float as r,cond as i,greaterThan as o,equal as d,sign as n,Vec3 as a,Vec4 as p}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as l}from"./BaseRasterProcessorShader.js";import{roundOutput as m}from"./math.js";class f extends e{}t([s(r)],f.prototype,"contrastOffset",void 0),t([s(r)],f.prototype,"brightnessOffset",void 0);class c extends l{_process(t){const{rgb:s,a:e}=this._getPixel(t),{contrastOffset:l,brightnessOffset:f}=this.contrastBrightnessConfig,c=new r(255),h=new r(128),u=s.multiply(200),g=c.multiply(100),y=c.multiply(2).multiply(f),w=u.subtract(g).add(y),b=i([d(l,new r(-100)),new a(h)],[d(l,new r(100)),n(w).add(1).divide(2).multiply(c)],[o(l,new r(0)),w.divide(new r(100).subtract(l).multiply(2)).add(h)],[!0,w.multiply(l.add(100)).divide(2e4).add(h)]);return m(new p(b,e))}}t([s(f)],c.prototype,"contrastBrightnessConfig",void 0);export{c as ContrastBrightnessShader};
5
+ import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as s,UniformGroup as e}from"../../../../GraphShaderModule.js";import{Float as r,cond as o,greaterThan as i,equal as n,sign as d,Vec3 as a,Vec4 as p}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as l}from"./BaseRasterProcessorShader.js";import{roundOutput as m}from"./math.js";class f extends e{}t([s(r)],f.prototype,"contrastOffset",void 0),t([s(r)],f.prototype,"brightnessOffset",void 0);class h extends l{constructor(){super(...arguments),this.type="ContrastBrightnessShader"}_process(t){const{rgb:s,a:e}=this._getPixel(t),{contrastOffset:l,brightnessOffset:f}=this.contrastBrightnessConfig,h=new r(255),c=new r(128),u=s.multiply(200),g=h.multiply(100),y=h.multiply(2).multiply(f),w=u.subtract(g).add(y),b=o([n(l,new r(-100)),new a(c)],[n(l,new r(100)),d(w).add(1).divide(2).multiply(h)],[i(l,new r(0)),w.divide(new r(100).subtract(l).multiply(2)).add(c)],[!0,w.multiply(l.add(100)).divide(2e4).add(c)]);return m(new p(b,e))}}t([s(f)],h.prototype,"contrastBrightnessConfig",void 0);export{h as ContrastBrightnessShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as t,define as e,UniformGroup as r}from"../../../../GraphShaderModule.js";import{FixedArray2D as s,Float as i,Vec2 as n,reduce2D as l,Vec4 as a,texture2D as p,clamp as c}from"../../../../graph/glsl.js";import{mirror as m}from"../surface.js";import{BaseRasterProcessorShader as u}from"./BaseRasterProcessorShader.js";class d extends r{}o([t(s.ofType(i,5,5,!0))],d.prototype,"kernel",void 0),o([t(n)],d.prototype,"clampRange",void 0);class g extends u{constructor(){super(...arguments),this.rows=3,this.cols=3}_process(o){const{rows:t,cols:e}=this,r=new n(Math.floor(t/2),Math.floor(e/2)),{texture:s,srcImageSize:u}=this.config,d=new i(1).divide(u),{kernel:g}=this.convolutionConfig,f=l(g,{initialValue:new a(0,0,0,1),xRange:[0,t],yRange:[0,e],callback:(t,e,l,c)=>{const u=new n(new i(l),new i(c)).subtract(r).multiply(d),g=p(s,m(o.add(u))),f=g.rgb.multiply(e).add(t.rgb),h=g.a.multiply(t.a);return new a(f,h)}}),{clampRange:h}=this.convolutionConfig;return new a(c(f.rgb,h.x,h.y),1).multiply(f.a)}}o([e],g.prototype,"rows",void 0),o([e],g.prototype,"cols",void 0),o([t(d)],g.prototype,"convolutionConfig",void 0);export{g as ConvolutionShader};
5
+ import{_ as o}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as t,define as e,UniformGroup as r}from"../../../../GraphShaderModule.js";import{FixedArray2D as s,Float as i,Vec2 as n,reduce2D as l,Vec4 as a,texture2D as p,clamp as c}from"../../../../graph/glsl.js";import{mirror as u}from"../surface.js";import{BaseRasterProcessorShader as d}from"./BaseRasterProcessorShader.js";class m extends r{}o([t(s.ofType(i,5,5,!0))],m.prototype,"kernel",void 0),o([t(n)],m.prototype,"clampRange",void 0);class h extends d{constructor(){super(...arguments),this.type="ConvolutionShader",this.rows=3,this.cols=3}_process(o){const{rows:t,cols:e}=this,r=new n(Math.floor(t/2),Math.floor(e/2)),{texture:s,srcImageSize:d}=this.config,m=new i(1).divide(d),{kernel:h}=this.convolutionConfig,g=l(h,{initialValue:new a(0,0,0,1),xRange:[0,t],yRange:[0,e],callback:(t,e,l,c)=>{const d=new n(new i(l),new i(c)).subtract(r).multiply(m),h=p(s,u(o.add(d))),g=h.rgb.multiply(e).add(t.rgb),f=h.a.multiply(t.a);return new a(g,f)}}),{clampRange:f}=this.convolutionConfig;return new a(c(g.rgb,f.x,f.y),1).multiply(g.a)}}o([e],h.prototype,"rows",void 0),o([e],h.prototype,"cols",void 0),o([t(m)],h.prototype,"convolutionConfig",void 0);export{h as ConvolutionShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as r,define as e,UniformGroup as s}from"../../../../GraphShaderModule.js";import{negate as i,dot as o,Vec3 as a,Vec4 as d,Float as l}from"../../../../graph/glsl.js";import{getSurfaceValues as u}from"../surface.js";import{BaseRasterProcessorShader as p}from"./BaseRasterProcessorShader.js";class c extends s{}t([r(l)],c.prototype,"zlFactor",void 0);class m extends p{_process(t){const{texture:r}=this.config,e=u(r,t,this.config.srcImageSize),s=e[3].add(e[5]).multiply(.5).subtract(e[4]),l=e[1].add(e[7]).multiply(.5).subtract(e[4]),{zlFactor:p}=this.curvatureConfig,{curvatureType:c}=this;let m;if("standard"===c)m=i(p).multiply(s.add(l));else{const t=e[2].subtract(e[0]).add(e[6]).subtract(e[8]).divide(4),r=e[5].subtract(e[3]).divide(2),d=e[1].subtract(e[7]).divide(2),u=r.multiply(r),n=d.multiply(d),y=r.multiply(d),f=p.divide(u.add(n));m="profile"===c?o(new a(s,l,t),new a(u,n,y)).multiply(f):o(new a(s,l,i(t)),new a(n,u,y)).multiply(i(f))}return new d(m,m,m,e[9])}}t([e],m.prototype,"curvatureType",void 0),t([r(c)],m.prototype,"curvatureConfig",void 0);export{m as CurvatureShader};
5
+ import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as r,define as e,UniformGroup as s}from"../../../../GraphShaderModule.js";import{negate as i,dot as o,Vec3 as a,Vec4 as u,Float as d}from"../../../../graph/glsl.js";import{getSurfaceValues as p}from"../surface.js";import{BaseRasterProcessorShader as l}from"./BaseRasterProcessorShader.js";class c extends s{}t([r(d)],c.prototype,"zlFactor",void 0);class m extends l{constructor(){super(...arguments),this.type="CurvatureShader"}_process(t){const{texture:r}=this.config,e=p(r,t,this.config.srcImageSize),s=e[3].add(e[5]).multiply(.5).subtract(e[4]),d=e[1].add(e[7]).multiply(.5).subtract(e[4]),{zlFactor:l}=this.curvatureConfig,{curvatureType:c}=this;let m;if("standard"===c)m=i(l).multiply(s.add(d));else{const t=e[2].subtract(e[0]).add(e[6]).subtract(e[8]).divide(4),r=e[5].subtract(e[3]).divide(2),u=e[1].subtract(e[7]).divide(2),p=r.multiply(r),n=u.multiply(u),y=r.multiply(u),f=l.divide(p.add(n));m="profile"===c?o(new a(s,d,t),new a(p,n,y)).multiply(f):o(new a(s,d,i(t)),new a(n,p,y)).multiply(i(f))}return new u(m,m,m,e[9])}}t([e],m.prototype,"curvatureType",void 0),t([r(c)],m.prototype,"curvatureConfig",void 0);export{m as CurvatureShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as r,UniformGroup as s}from"../../../../GraphShaderModule.js";import{Vec4 as e,Mat3 as o}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";class n extends s{}t([r(o)],n.prototype,"bandIndexMat3",void 0);class d extends a{_process(t){const r=this._getPixel(t),s=this.extractBandConfig.bandIndexMat3.multiply(r.rgb);return new e(s,r.a)}}t([r(n)],d.prototype,"extractBandConfig",void 0);export{d as ExtractBandShader};
5
+ import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as r,UniformGroup as s}from"../../../../GraphShaderModule.js";import{Vec4 as e,Mat3 as o}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";class n extends s{}t([r(o)],n.prototype,"bandIndexMat3",void 0);class d extends a{constructor(){super(...arguments),this.type="ExtractBandShader"}_process(t){const r=this._getPixel(t),s=this.extractBandConfig.bandIndexMat3.multiply(r.rgb);return new e(s,r.a)}}t([r(n)],d.prototype,"extractBandConfig",void 0);export{d as ExtractBandShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as e,define as r,UniformGroup as s}from"../../../../GraphShaderModule.js";import{step as a,Float as n,mix as o,Vec4 as i,clamp as l,Vec2 as u,texture2D as c,sqrt as m,max as p,min as d,Int as w,block as b}from"../../../../graph/glsl.js";import{mirror as g}from"../surface.js";import{BaseRasterProcessorShader as h}from"./BaseRasterProcessorShader.js";import{invertValue as y}from"./math.js";class f extends s{}t([e(u)],f.prototype,"clampRange",void 0);class _ extends h{constructor(){super(...arguments),this.rows=3,this.cols=3,this.fill=!1}_process(t){const e=this._process1(t),r=a(new n(1),e.a);if(!this.fill)return this._clamp(e.rgb,r);const s=this._getPixel(t),i=o(e.rgb,s.rgb,s.a);return this._clamp(i,r)}_clamp(t,e){const{clampRange:r}=this.focalStatisticsConfig;return new i(l(t,r.x,r.y),1).multiply(e)}_process1(t){const{texture:e,srcImageSize:r}=this.config,{rows:s,cols:a}=this,o=new u(Math.floor(s/2),Math.floor(a/2)),l=new n(1).divide(r),w=this._getPixel(t),{statisticsType:b}=this,h="min"===b||"max"===b?new i(w.rgb,0):new i(0,0,0,0);switch(b){case"min":return this._stat(s,a,h,((r,s,a)=>{const m=new u(new n(s),new n(a)).subtract(o).multiply(l),p=c(e,g(t.add(m))),w=d(r.rgb,p.rgb);return new i(w,r.a.add(p.a))}));case"max":return this._stat(s,a,h,((r,s,a)=>{const m=new u(new n(s),new n(a)).subtract(o).multiply(l),d=c(e,g(t.add(m))),w=p(r.rgb,d.rgb);return new i(w,r.a.add(d.a))}));case"mean":{const r=this._stat(s,a,h,((r,s,a)=>{const m=new u(new n(s),new n(a)).subtract(o).multiply(l),p=c(e,g(t.add(m))),d=r.rgb.add(p.rgb.multiply(p.a));return new i(d,r.a.add(p.a))})),m=r.rgb.multiply(y(r.a));return new i(m,r.a)}case"stddev":{const r=this._stat(s,a,h,((r,s,a)=>{const m=new u(new n(s),new n(a)).subtract(o).multiply(l),p=c(e,g(t.add(m))),d=r.rgb.add(p.rgb.multiply(p.a));return new i(d,r.a.add(p.a))})),p=this._stat(s,a,h,((r,s,a)=>{const m=new u(new n(s),new n(a)).subtract(o).multiply(l),p=c(e,g(t.add(m))),d=r.rgb.add(p.a.multiply(p.rgb).multiply(p.rgb));return new i(d,r.a.add(p.a))})),d=y(p.a),w=m(p.subtract(r.multiply(r).multiply(d)).multiply(d));return new i(w.rgb,r.a)}default:return w}}_stat(t=3,e=3,r,s){const a=new w(0).setMutable().setDebugName("StatColIterator"),n=new w(0).setMutable().setDebugName("StatRowIterator"),o=r.setMutable().setDebugName("StatAccumulator"),l=s(o,a,n).setDebugName("StatPredicate"),u=b({iterX:a,iterY:n,accumulator:o},i,l,(({out:r,iterX:s,iterY:a,accumulator:n,subgraph:o})=>`\n for (${a} = 0; ${a} < ${t}; ${a}++) {\n for (${s} = 0; ${s} < ${e}; ${s}++) {\n \n ${o.body}\n \n ${n} = ${o.varName};\n }\n }\n ${r} = ${n};\n `)).setDebugName("statBody");return u}}t([r],_.prototype,"rows",void 0),t([r],_.prototype,"cols",void 0),t([r],_.prototype,"statisticsType",void 0),t([r],_.prototype,"fill",void 0),t([e(f)],_.prototype,"focalStatisticsConfig",void 0);export{_ as FocalStatisticsShader};
5
+ import{_ as t}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as e,define as r,UniformGroup as s}from"../../../../GraphShaderModule.js";import{step as a,Float as o,mix as n,Vec4 as i,clamp as l,Vec2 as c,texture2D as u,sqrt as p,max as m,min as d,Int as w,block as b}from"../../../../graph/glsl.js";import{mirror as g}from"../surface.js";import{BaseRasterProcessorShader as h}from"./BaseRasterProcessorShader.js";import{invertValue as y}from"./math.js";class f extends s{}t([e(c)],f.prototype,"clampRange",void 0);class _ extends h{constructor(){super(...arguments),this.type="FocalStatisticsShader",this.rows=3,this.cols=3,this.fill=!1}_process(t){const e=this._process1(t),r=a(new o(1),e.a);if(!this.fill)return this._clamp(e.rgb,r);const s=this._getPixel(t),i=n(e.rgb,s.rgb,s.a);return this._clamp(i,r)}_clamp(t,e){const{clampRange:r}=this.focalStatisticsConfig;return new i(l(t,r.x,r.y),1).multiply(e)}_process1(t){const{texture:e,srcImageSize:r}=this.config,{rows:s,cols:a}=this,n=new c(Math.floor(s/2),Math.floor(a/2)),l=new o(1).divide(r),w=this._getPixel(t),{statisticsType:b}=this,h="min"===b||"max"===b?new i(w.rgb,0):new i(0,0,0,0);switch(b){case"min":return this._stat(s,a,h,((r,s,a)=>{const p=new c(new o(s),new o(a)).subtract(n).multiply(l),m=u(e,g(t.add(p))),w=d(r.rgb,m.rgb);return new i(w,r.a.add(m.a))}));case"max":return this._stat(s,a,h,((r,s,a)=>{const p=new c(new o(s),new o(a)).subtract(n).multiply(l),d=u(e,g(t.add(p))),w=m(r.rgb,d.rgb);return new i(w,r.a.add(d.a))}));case"mean":{const r=this._stat(s,a,h,((r,s,a)=>{const p=new c(new o(s),new o(a)).subtract(n).multiply(l),m=u(e,g(t.add(p))),d=r.rgb.add(m.rgb.multiply(m.a));return new i(d,r.a.add(m.a))})),p=r.rgb.multiply(y(r.a));return new i(p,r.a)}case"stddev":{const r=this._stat(s,a,h,((r,s,a)=>{const p=new c(new o(s),new o(a)).subtract(n).multiply(l),m=u(e,g(t.add(p))),d=r.rgb.add(m.rgb.multiply(m.a));return new i(d,r.a.add(m.a))})),m=this._stat(s,a,h,((r,s,a)=>{const p=new c(new o(s),new o(a)).subtract(n).multiply(l),m=u(e,g(t.add(p))),d=r.rgb.add(m.a.multiply(m.rgb).multiply(m.rgb));return new i(d,r.a.add(m.a))})),d=y(m.a),w=p(m.subtract(r.multiply(r).multiply(d)).multiply(d));return new i(w.rgb,r.a)}default:return w}}_stat(t=3,e=3,r,s){const a=new w(0).setMutable().setDebugName("StatColIterator"),o=new w(0).setMutable().setDebugName("StatRowIterator"),n=r.setMutable().setDebugName("StatAccumulator"),l=s(n,a,o).setDebugName("StatPredicate"),c=b({iterX:a,iterY:o,accumulator:n},i,l,(({out:r,iterX:s,iterY:a,accumulator:o,subgraph:n})=>`\n for (${a} = 0; ${a} < ${t}; ${a}++) {\n for (${s} = 0; ${s} < ${e}; ${s}++) {\n \n ${n.body}\n \n ${o} = ${n.varName};\n }\n }\n ${r} = ${o};\n `)).setDebugName("statBody");return c}}t([r],_.prototype,"rows",void 0),t([r],_.prototype,"cols",void 0),t([r],_.prototype,"statisticsType",void 0),t([r],_.prototype,"fill",void 0),t([e(f)],_.prototype,"focalStatisticsConfig",void 0);export{_ as FocalStatisticsShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as s}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as r,UniformGroup as e}from"../../../../GraphShaderModule.js";import{dot as o,Vec4 as t,Vec3 as a}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as i}from"./BaseRasterProcessorShader.js";class p extends e{}s([r(a)],p.prototype,"weights",void 0);class g extends i{_process(s){const r=this._getPixel(s),{weights:e}=this.grayscaleConfig,a=o(e,r.rgb);return new t(a,a,a,r.a)}}s([r(p)],g.prototype,"grayscaleConfig",void 0);export{g as GrayscaleShader};
5
+ import{_ as s}from"../../../../../../../../../chunks/tslib.es6.js";import{uniform as r,UniformGroup as e}from"../../../../GraphShaderModule.js";import{dot as o,Vec4 as t,Vec3 as a}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as i}from"./BaseRasterProcessorShader.js";class p extends e{}s([r(a)],p.prototype,"weights",void 0);class c extends i{constructor(){super(...arguments),this.type="GrayscaleShader"}_process(s){const r=this._getPixel(s),{weights:e}=this.grayscaleConfig,a=o(e,r.rgb);return new t(a,a,a,r.a)}}s([r(p)],c.prototype,"grayscaleConfig",void 0);export{c as GrayscaleShader};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as s}from"../../../../../../../../../chunks/tslib.es6.js";import{define as i,uniform as r}from"../../../../GraphShaderModule.js";import{Vec4 as o}from"../../../../graph/glsl.js";import{getSurfaceValues as t,hillshade as e,HillshadeConfig as l}from"../surface.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";class p extends a{constructor(){super(...arguments),this.isMultidirectional=!1}_process(s){const{texture:i}=this.config,r=t(i,s,this.config.srcImageSize),l=e(r,this.hillshadeConfig,this.isMultidirectional);return new o(l.rgb.multiply(255),l.a)}}s([i],p.prototype,"isMultidirectional",void 0),s([r(l)],p.prototype,"hillshadeConfig",void 0);export{p as HillshadeShader};
5
+ import{_ as s}from"../../../../../../../../../chunks/tslib.es6.js";import{define as i,uniform as r}from"../../../../GraphShaderModule.js";import{Vec4 as t}from"../../../../graph/glsl.js";import{getSurfaceValues as o,hillshade as e,HillshadeConfig as l}from"../surface.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";class h extends a{constructor(){super(...arguments),this.type="HillshadeShader",this.isMultidirectional=!1}_process(s){const{texture:i}=this.config,r=o(i,s,this.config.srcImageSize),l=e(r,this.hillshadeConfig,this.isMultidirectional);return new t(l.rgb.multiply(255),l.a)}}s([i],h.prototype,"isMultidirectional",void 0),s([r(l)],h.prototype,"hillshadeConfig",void 0);export{h as HillshadeShader};