/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import e from"../../Color.js";import o from"../../core/Collection.js";import{multiplyOpacity as l,getContrast as r}from"../../core/colorUtils.js";import t from"../../symbols/CIMSymbol.js";import n from"../../symbols/FillSymbol3DLayer.js";import i from"../../symbols/IconSymbol3DLayer.js";import s from"../../symbols/LineSymbol3D.js";import m from"../../symbols/MeshSymbol3D.js";import y from"../../symbols/ObjectSymbol3DLayer.js";import c from"../../symbols/PathSymbol3DLayer.js";import a from"../../symbols/PointSymbol3D.js";import w from"../../symbols/SimpleFillSymbol.js";import p from"../../symbols/SimpleLineSymbol.js";import b from"../../symbols/SimpleMarkerSymbol.js";const u=new b({size:15,style:"circle",color:[255,102,102,.5],outline:null}),d=new b({size:10,style:"circle",color:[0,128,192,.5],outline:null}),h=new w({style:"solid",color:[0,128,192,.5],outline:null}),S=new w({style:"solid",color:[255,102,102,.5],outline:null}),f=new b({size:10,style:"diamond",color:[255,102,102],outline:null}),j=new a({symbolLayers:new o([new i({size:10,material:{color:"red"},resource:{primitive:"x"},outline:{color:"black",size:1}})])}),L=new a({symbolLayers:new o([new y({width:9,height:9,depth:9,material:{color:[255,102,102]},resource:{primitive:"diamond"},castShadows:!1})])}),M=new t({data:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,size:10,frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[0,1.4142135623730951],[3.585786437626905,5],[5,3.585786437626905],[1.4142135623730951,0],[5,-3.585786437626905],[3.585786437626905,-5],[0,-1.4142135623730951],[-3.585786437626905,-5],[-5,-3.585786437626905],[-1.4142135623730951,0],[-5,3.585786437626905],[-3.585786437626905,5],[0,1.4142135623730951]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,width:1,color:[0,0,0,100]},{type:"CIMSolidFill",enable:!0,color:[255,0,0,255]}]}}]}]}}}),C=new m({symbolLayers:new o([new n({material:{color:[255,102,102,.5]},edges:null})])}),I=new m({symbolLayers:new o([new n({material:{color:[0,128,192,.25]},edges:null})])}),g=new b({size:8,style:"triangle",color:[255,165,0],outline:{color:[0,0,0],width:.5}}),k=new a({symbolLayers:new o([new y({width:12,height:12,depth:12,material:{color:[255,165,0]},resource:{primitive:"tetrahedron"},outline:{color:"black",size:1},castShadows:!1})])}),z=(e,o=3.5)=>new t({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",effects:[{type:"CIMGeometricEffectDashes",dashTemplate:[14,12],lineDashEnding:"FullGap",controlPointEnding:"NoConstraint"}],enable:!0,capStyle:"Butt",joinStyle:"Round",width:o,color:r(e).toArray()},{type:"CIMSolidStroke",enable:!0,capStyle:"Butt",joinStyle:"Round",width:o,color:e.toArray()}]}}}),D=new s({symbolLayers:new o([new c({profile:"circle",width:7,material:{color:"orange"},cap:"round"})])}),x=e=>new w({color:l(e,.3),outline:{color:e,width:2}});function P(e){switch(e){case"point":return e=>new b({size:10,style:"circle",color:e??v(),outline:new p({color:[0,0,0],width:2})});case"polygon":return e=>new w({color:null,outline:F(e),style:"none"});case"polyline":return e=>F(e)}}function v(){return new e([255,0,0])}function F(e){return new p({color:e??v(),width:2})}function G(e){return new w({color:null,outline:F(e),style:"none"})}function R(e,o,l){return e===o?l:"polyline"===e?F(l?.color):G(l?.color)}function E(){return new a({symbolLayers:new o([new y({anchor:"center",material:{color:new e([0,128,192,.65])},resource:{primitive:"sphere"},width:20,height:20,depth:20})])})}function A(){const e=d.clone();return e.outline=new p({color:[0,0,0],width:1}),e}export{C as activeFrustumSymbol,S as activePolygonSymbol,u as activeSourcePointSymbol,I as additionalFrustumSymbol,A as cameraOverlaySymbol,E as cameraOverlaySymbol3D,R as createGraphicSymbol,M as crossSymbol,j as crossSymbol3D,G as dataCaptureBoundingBoxSymbol,v as dataCaptureBoundingColor,F as dataCaptureBoundingLineSymbol,P as dataCaptureFeatureSymbol,f as diamondSymbol,L as diamondSymbol3D,g as locationSymbol,k as locationSymbol3D,x as measurementPolygonSymbol,z as measurementPolylineSymbol,h as polygonSymbol,D as polylineSymbolPanoramic,d as sourcePointSymbol};
