@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.16 kB
JavaScript
import r from"../../../../core/Logger.js";import{Graphics3DExtrudeSymbolLayer as o}from"./Graphics3DExtrudeSymbolLayer.js";import{Graphics3DIconSymbolLayer as e}from"./Graphics3DIconSymbolLayer.js";import{Graphics3DLineSymbolLayer as t}from"./Graphics3DLineSymbolLayer.js";import{Graphics3DMeshFillSymbolLayer as i}from"./Graphics3DMeshFillSymbolLayer.js";import{Graphics3DObjectSymbolLayer as m}from"./Graphics3DObjectSymbolLayer.js";import{Graphics3DPathSymbolLayer as y}from"./Graphics3DPathSymbolLayer.js";import{Graphics3DPolygonFillSymbolLayer as a}from"./Graphics3DPolygonFillSymbolLayer.js";import{Graphics3DTextSymbolLayer as s}from"./Graphics3DTextSymbolLayer.js";import{Graphics3DWaterSymbolLayer as p}from"./Graphics3DWaterSymbolLayer.js";function c(o,e,t,i){const m=h[o.type]&&h[o.type][e.type]||l[e.type];return m?new m(o,e,t,i):(r.getLogger("esri.views.3d.layers.graphics.Graphics3DSymbolLayerFactory").error("GraphicsLayerFactory#make",`unknown symbol type ${e.type}`),null)}const l={icon:e,object:m,line:t,path:y,fill:a,extrude:o,text:s,water:p};function n(r,o){l[r]=o}const h={"mesh-3d":{fill:i}};export{c as make,n as setSymbolClass};