@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.31 kB
JavaScript
import{EncodingType as e}from"./enums.js";import{VTLMaterial as t}from"./VTLMaterial.js";import{DataType as r}from"../../../../webgl/enums.js";import{VertexElementDescriptor as n}from"../../../../webgl/VertexElementDescriptor.js";class i extends t{constructor(e){super(e)}geometryInfo(){return i.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return i.ATTRIBUTES}attributesInfo(){return i.ATTRIBUTES_INFO}}i.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"],i.GEOMETRY_LAYOUT=[new n("a_pos",2,r.SHORT,0,16),new n("a_extrude_offset",4,r.BYTE,4,16),new n("a_dir_normal",4,r.BYTE,8,16),new n("a_accumulatedDistance",2,r.UNSIGNED_SHORT,12,16)],i.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}};export{i as VTLLineMaterial};