UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.29 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ 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 a}from"./Graphics3DPathSymbolLayer.js";import{Graphics3DPolygonFillSymbolLayer as s}from"./Graphics3DPolygonFillSymbolLayer.js";import{Graphics3DTextSymbolLayer as y}from"./Graphics3DTextSymbolLayer.js";import{Graphics3DWaterSymbolLayer as p}from"./Graphics3DWaterSymbolLayer.js";function c(o,e,t,i){const m=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:a,fill:s,extrude:o,text:y,water:p};function n(r,o){l[r]=o}const h={"mesh-3d":{fill:i}};export{c as make,n as setSymbolClass};