@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 874 B
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import{FeatureTechnique as e}from"../FeatureTechnique.js";import{resolveDynamicUniforms as t,getFeatureUniforms as r,getSelectionDefines as s,isHittest as i,getFeaturePipelineState as o}from"../featureTechniqueUtils.js";import{TechniqueType as n}from"../TechniqueType.js";import{FillShader as a}from"../shaders/FillShader.js";class u extends e{constructor(){super(...arguments),this.type=n.Fill,this.shaders={geometry:new a}}render(e,n){const{painter:a}=e,u=n.instance.getInput();a.setShader({shader:this.shaders.geometry,uniforms:{...t(e,n.target,u.uniforms),...r(e,n.target)},defines:s(e),optionalAttributes:u.optionalAttributes,useComputeBuffer:i(e)}),a.setPipelineState(o(e)),a.submitDraw(e,n)}}export{u as FillTechnique};