UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.49 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 e}from"./enums.js";import{VTLMaterial as t}from"./VTLMaterial.js";import{DataType as i}from"../../../../webgl/enums.js";import{VertexElementDescriptor as r}from"../../../../webgl/VertexElementDescriptor.js";class n extends t{static{this.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new r("a_pos",2,i.SHORT,0,16),new r("a_extrude_offset",4,i.BYTE,4,16),new r("a_dir_normal",4,i.BYTE,8,16),new r("a_accumulatedDistance",2,i.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-width":{name:"width",type:e.R8_UNSIGNED,precisionFactor:2},"line-gap-width":{name:"gap_width",type:e.R8_UNSIGNED,precisionFactor:2},"line-offset":{name:"offset",type:e.R8_SIGNED,precisionFactor:2},"line-color":{name:"color",type:e.R8G8B8A8_COLOR},"line-opacity":{name:"opacity",type:e.R8_UNSIGNED,precisionFactor:100},"line-blur":{name:"blur",type:e.R8_UNSIGNED,precisionFactor:4},"line-pattern":{name:"tlbr",type:e.R16G16B16A16_PATTERN,isOptional:!0},"line-dasharray":{name:"tlbr",type:e.R16G16B16A16_DASHARRAY,isOptional:!0}}}constructor(e){super(e)}geometryInfo(){return n.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return n.ATTRIBUTES}attributesInfo(){return n.ATTRIBUTES_INFO}}export{n as VTLLineMaterial};