// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/dijit/geoenrichment/ReportPlayer/core/charts/chartUtils/plots/pictureUtil/Converter",["dojo/_base/lang","dojo/_base/Color"],function(k,e){return{DEFAULT_SHAPE:{isShape:!0,shapeJson:{id:"shape",g:[{name:"circle",cx:32,cy:32,r:32,fill:"#DDDDDD"},{name:"line",x1:32,y1:20,x2:32,y2:44,stroke:"#999999",strokeWidth:2},{name:"line",x1:20,y1:32,x2:44,y2:32,stroke:"#999999",strokeWidth:2}],viewBox:{xmin:0,ymin:0,width:64,height:64},style:{width:64,height:64,borderAlpha:0,fillAlpha:1,borderWidth:1}}},
shapeJsonToGFXJson:function(b){function c(a,c){return void 0!==b.style[a]?b.style[a]:b.themeStyle&&void 0!==b.themeStyle[a]?b.themeStyle[a]:c}var f=new e(c("fillColor","#000000"));f.a=c("fillAlpha",1);var g=new e(c("borderColor","#000000"));g.a=c("borderAlpha",0);for(var l=c("borderWidth",1),h=[],d=0;d<b.g.length;d++){var a=b.g[d],a={shape:k.mixin({type:a.name,path:a.d},a),fill:a.fill||f,stroke:{color:a.stroke||g,width:a.strokeWidth||l}};"polygon"===a.shape.type&&(a.shape.type="polyline",a.shape.points=
a.shape.points.trim().replace(/\s+/g," ").split(" ").map(function(a){a=a.split(",");return{x:Number(a[0]),y:Number(a[1])}}));h.push(a)}return{name:"gfxJson",children:h}}}});