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