/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{minMaxZoomPrecisionFactor as t}from"../../../definitions.js";import{AFillMeshWriter as o}from"./AFillMeshWriter.js";import{processColorInput as e,getMinMaxZoom as r}from"./meshWriterUtils.js";import{DataType as s}from"../../../../../../webgl/enums.js";const i={createComputedParams:t=>t,optionalAttributes:{zoomRange:{type:s.SHORT,count:2,packPrecisionFactor:t,pack:({scaleInfo:t},{tileInfo:o})=>r(t,o)}},attributes:{id:{type:s.UNSIGNED_BYTE,count:3,pack:"id"},bitset:{type:s.UNSIGNED_BYTE,count:1},pos:{type:s.SHORT,count:2,pack:"position",packPrecisionFactor:10},color:{type:s.UNSIGNED_BYTE,count:4,normalized:!0,pack:({color:t})=>e(t)}}};class c extends o{constructor(){super(...arguments),this.vertexSpec=i}createTesselationParams(t){return null}}export{c as FillMeshWriter,i as fillVertexSpec};
