/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{multiplyOpacity as e,getContrast as o}from"../../../../core/colorUtils.js";import r from"../../../../symbols/CIMSymbol.js";function t(o){const t=e(o,.2);return new r({data:{type:"CIMSymbolReference",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",color:t.toArray()}]}}})}function y(e){return new r({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",capStyle:"Butt",width:2,color:e.toArray()}]}}})}function l(t){const y=e(o(t,160),.5);return new r({data:{type:"CIMSymbolReference",primitiveOverrides:[{type:"CIMPrimitiveOverride",primitiveName:"textOverride",propertyName:"TextString",valueExpressionInfo:{type:"CIMExpressionInfo",title:"Custom",expression:"$feature.areaText",returnType:"Default"}}],symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMVectorMarker",colorLocked:!0,frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",fontFamilyName:"sans-serif",height:14,horizontalAlignment:"Center",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",color:t.toArray()}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",color:y.toArray()}]},haloSize:1.5,verticalAlignment:"Center"},primitiveName:"textOverride"}],scaleSymbolsProportionally:!0,respectFrame:!0,markerPlacement:{type:"CIMMarkerPlacementPolygonCenter"}}]}}})}export{t as getAreaMeasurementFillSymbol,y as getAreaMeasurementOutlineSymbol,l as getAreaMeasurementTextSymbol};
