import e from"@arcgis/core/renderers/ClassBreaksRenderer";import r from"@arcgis/core/renderers/HeatmapRenderer";import o from"@arcgis/core/renderers/SimpleRenderer";import s from"@arcgis/core/renderers/UniqueValueRenderer";import i from"@arcgis/core/renderers/VectorFieldRenderer";import{checkArg as t}from"../utilities/checkArg.js";export var Renderer;!function(n){n.toEsriApiRenderer=function(n){let l;t("rendererJson",n).isNotMissing();const{type:c}=n;switch(c){case"simple":l=o.fromJSON(n);break;case"classBreaks":l=e.fromJSON(n);break;case"uniqueValue":l=s.fromJSON(n);break;case"heatmap":l=r.fromJSON(n);break;case"vectorField":l=i.fromJSON(n);break;default:return}return l},n.fromEsriApiRenderer=function(e){return t("renderer",e).isNotMissing(),e.toJSON()}}(Renderer||(Renderer={}));export const defaultPointRenderer={symbol:{color:[227,139,79,255],size:9,angle:0,xoffset:0,yoffset:0,type:"esriSMS",style:"esriSMSCircle",outline:{color:[255,255,255,255],width:.75,type:"esriSLS",style:"esriSLSSolid"}},type:"simple"};export const defaultLineRenderer={symbol:{color:[227,139,79,255],width:3,type:"esriSLS",style:"esriSLSSolid"},type:"simple"};export const defaultPolygonRenderer={symbol:{color:[227,139,79,255],type:"esriSFS",style:"esriSFSSolid",outline:{color:[255,255,255,255],width:.75,type:"esriSLS",style:"esriSLSSolid"}},type:"simple"};