// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define(["exports","./Theme"],function(p,c){class k extends c.Rectangle{_beforeChanged(){super._beforeChanged();if(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))this._clear=!0}_draw(){let b=this.width(),a=this.height(),l=b/Math.abs(b),m=a/Math.abs(a);if(c.isNumber(b)&&c.isNumber(a)){var e=Math.min(b,a)/2;let f=c.relativeToValue(this.get("cornerRadiusTL",8),e),g=c.relativeToValue(this.get("cornerRadiusTR",8),e),h=c.relativeToValue(this.get("cornerRadiusBR", 8),e);e=c.relativeToValue(this.get("cornerRadiusBL",8),e);var d=Math.min(Math.abs(b/2),Math.abs(a/2));f=c.fitToRange(f,0,d);g=c.fitToRange(g,0,d);h=c.fitToRange(h,0,d);e=c.fitToRange(e,0,d);d=this._display;d.moveTo(f*l,0);d.lineTo(b-g*l,0);0