// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../chunks/tslib.es6 ../core/lang ../core/Logger ../core/urlUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/colors ./support/IconSymbol3DLayerResource ./support/materialUtils ./support/Symbol3DAnchorPosition2D ./support/Symbol3DIconOutline ./support/Symbol3DMaterial".split(" "),function(c,h,t,u,f,b,m,v,w,k,x,y,n,z,A){function p(a){const d="width"in a?a.width:a.size, e="height"in a?a.height:a.size,l=q(a.xoffset);a=q(a.yoffset);return(l||a)&&d&&e?{x:-l/d,y:a/e}:null}function q(a){return isFinite(a)?a:0}var g;b=g=class extends w{constructor(a){super(a);this.resource=this.material=null;this.type="icon";this.size=12;this.anchor="center";this.outline=this.anchorPosition=null}clone(){return new g({anchor:this.anchor,anchorPosition:h.clone(this.anchorPosition),enabled:this.enabled,material:h.clone(this.material),outline:h.clone(this.outline),resource:h.clone(this.resource), size:this.size})}static fromSimpleMarkerSymbol(a){const d=a.color||k.white,e=p(a),l=a.outline&&0new n.Symbol3DAnchorPosition2D({x:a[0],y:a[1]})},write:{writer:(a,d)=>{d.anchorPosition=[a.x,a.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],b.prototype,"anchorPosition",void 0);c.__decorate([f.property({type:z.Symbol3DIconOutline,json:{write:!0}})],b.prototype,"outline",void 0);b=g=c.__decorate([v.subclass("esri.symbols.IconSymbol3DLayer")],b);const D={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle", path:null};return b});