/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as t,__param as r}from"tslib";import{location as e,uniform as o,texture as i,input as s}from"../../GraphShaderModule.js";import{Vec4 as l,Float as p,Sampler2D as a,greaterThan as n,ifElse as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as f}from"./AFeatureShader.js";import{getLineFragmentColor as d}from"./LineShader.js";import{LocalTileOffset as u}from"./LocalTileOffset.js";import{MosaicInfo as h}from"./MosaicInfo.js";import{OutlineFillVertexInput as c,OutlineFillShader as j,getOutlineFillVertexData as v,OutlineFillFragmentInput as y}from"./OutlineFillShader.js";import{getPatternFillVertexData as g,getPatternFillFragmentColor as x}from"./PatternFillShader.js";class S extends c{}t([e(9,l)],S.prototype,"tlbr",void 0),t([e(10,p)],S.prototype,"inverseRasterizationScale",void 0);class O extends y{}class F extends j{constructor(){super(...arguments),this.type="PatternOutlineFillShader"}vertex(t,r){return{...v(this,t,r),...g(this,t)}}fragment(t){const{isOutline:r}=t,e=n(r,new p(.5)),o=d(t,this.antialiasingControls.blur),i=x(t,this),s=m(e,o,i),l=m(e,new p(1/255),new p(0));return this.getFragmentOutput(s,t,l)}}t([o(h)],F.prototype,"mosaicInfo",void 0),t([i(a)],F.prototype,"mosaicTexture",void 0),t([o(u)],F.prototype,"localTileOffset",void 0),t([r(0,s(S)),r(1,s(f))],F.prototype,"vertex",null),t([r(0,s(O))],F.prototype,"fragment",null);export{O as PatternOutlineFillFragmentInput,F as PatternOutlineFillShader,S as PatternOutlineFillVertexInput};
