// 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/symbols/SimpleMarkerSymbol","dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./MarkerSymbol ./SimpleLineSymbol".split(" "),function(d,e,t,u,n,p,q,v,r){var f={STYLE_CIRCLE:"circle",STYLE_SQUARE:"square",STYLE_CROSS:"cross",STYLE_X:"x",STYLE_DIAMOND:"diamond",STYLE_PATH:"path",STYLE_TARGET:"target"},m={style:f.STYLE_CIRCLE,color:[255,255,255,.25],size:12,angle:0,xoffset:0,yoffset:0};d=d(v,{declaredClass:"esri.symbol.SimpleMarkerSymbol",type:"simplemarkersymbol",
_styles:{circle:"esriSMSCircle",square:"esriSMSSquare",cross:"esriSMSCross",x:"esriSMSX",diamond:"esriSMSDiamond",path:"esriSMSPath"},constructor:function(a,c,b,d){a?e.isString(a)?(this.style=a,c&&(this.size=c),b&&(this.outline=b),d&&(this.color=d)):(this.style=q.valueOf(this._styles,this.style),a.outline&&(this.outline=new r(a.outline))):(e.mixin(this,m),this.size=n.pt2px(this.size),this.outline=new r(this.outline),this.color=new t(this.color));this.style||(this.style=f.STYLE_CIRCLE)},setStyle:function(a){this.style=
a;return this},setPath:function(a){this.path=a;this.setStyle(f.STYLE_PATH);return this},setOutline:function(a){this.outline=a;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){return this.color},_setDim:function(a,c,b){this._targetWidth=a;this._targetHeight=c;this._spikeSize=b},getShapeDescriptors:function(){var a,c,b,d=this.style,e=(this.size||n.pt2px(m.size))/2,g=0-e,k=0+e,l=0-e,h=0+e;switch(d){case f.STYLE_CIRCLE:a={type:"circle",cx:0,cy:0,r:e};
c=this.getFill();if(b=this.getStroke())b.style=b.style||"Solid";break;case f.STYLE_CROSS:a={type:"path",path:"M "+g+",0 L "+k+",0 M 0,"+l+" L 0,"+h+" E"};c=null;b=this.getStroke();break;case f.STYLE_DIAMOND:a={type:"path",path:"M "+g+",0 L 0,"+l+" L "+k+",0 L 0,"+h+" L "+g+",0 Z"};c=this.getFill();b=this.getStroke();break;case f.STYLE_SQUARE:a={type:"path",path:"M "+g+","+h+" L "+g+","+l+" L "+k+","+l+" L "+k+","+h+" L "+g+","+h+" Z"};c=this.getFill();b=this.getStroke();break;case f.STYLE_X:a={type:"path",
path:"M "+g+","+h+" L "+k+","+l+" M "+g+","+l+" L "+k+","+h+" E"};c=null;b=this.getStroke();break;case f.STYLE_PATH:a={type:"path",path:this.path||""},c=this.getFill(),b=this.getStroke()}return{defaultShape:a,fill:c,stroke:b}},toJson:function(){var a=this.style,c=this.outline,b=e.mixin(this.inherited("toJson",arguments),{type:"esriSMS",style:this._styles[a]||"esriSMSCircle"});c&&(b.outline=c.toJson());"x"===a||"cross"===a?delete b.color:"target"===a&&(b.style="esriSMSSquare",delete b.color,0<this._targetHeight&&
0<this._targetWidth&&(b.size=n.px2pt(Math.max(this._targetHeight,this._targetWidth))));b.path=this.path;return q.fixJson(b)}});e.mixin(d,f);d.defaultProps=m;u("extend-esri")&&(e.setObject("symbol.SimpleMarkerSymbol",d,p),p.symbol.defaultSimpleMarkerSymbol=m);return d});