UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 2.07 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{EncodingType as t}from"./enums.js";import{VTLMaterial as o}from"./VTLMaterial.js";import{DataType as e}from"../../../../webgl/enums.js";import{VertexElementDescriptor as r}from"../../../../webgl/VertexElementDescriptor.js";const i=[new r("a_pos",2,e.SHORT,0,16),new r("a_vertexOffset",2,e.SHORT,4,16),new r("a_texAngleRange",4,e.UNSIGNED_BYTE,8,16),new r("a_levelInfo",4,e.UNSIGNED_BYTE,12,16)],a=[new r("a_opacityInfo",1,e.UNSIGNED_BYTE,0,1)];class n extends o{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:t.R8G8B8A8_COLOR},"icon-opacity":{name:"opacity",type:t.R8_UNSIGNED,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:t.R8G8B8A8_COLOR},"icon-halo-width":{name:"halo_width",type:t.R8_UNSIGNED,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:t.R8_UNSIGNED,precisionFactor:4},"icon-size":{name:"size",type:t.R8_UNSIGNED,precisionFactor:32,isLayout:!0}}}constructor(t){super(t)}geometryInfo(){return i}opacityInfo(){return a}attributes(){return n.ATTRIBUTES}attributesInfo(){return n.ATTRIBUTES_INFO}}class c extends o{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:t.R8G8B8A8_COLOR},"text-opacity":{name:"opacity",type:t.R8_UNSIGNED,precisionFactor:100},"text-halo-color":{name:"halo_color",type:t.R8G8B8A8_COLOR},"text-halo-width":{name:"halo_width",type:t.R8_UNSIGNED,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:t.R8_UNSIGNED,precisionFactor:4},"text-size":{name:"size",type:t.R8_UNSIGNED,isLayout:!0}}}constructor(t){super(t)}geometryInfo(){return i}opacityInfo(){return a}attributes(){return c.ATTRIBUTES}attributesInfo(){return c.ATTRIBUTES_INFO}}export{n as VTLIconMaterial,c as VTLTextMaterial};