Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
3.1 KiB

// 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/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../widgets/support/widgetUtils ../../widgets/support/jsxFactory".split(" "),function(b,a,c,u,v,w,t,x,g){a=class extends a{constructor(d){super(d);this.strokeDash=[];this.strokeWidth=2;this.strokeColor=[0,0,0,1];this.strokeBackgroundColor=[0,0,0,0];this.fillColor=[0,0,0,0];this.backgroundFillColor=[0,
0,0,.5];this.visible=!0;this.isDecoration=!1;this.backgroundHeight=this.backgroundWidth=this.boxHeight=this.boxWidth=0;this.padding={left:0,top:0,right:0,bottom:0}}get _strokeStyle(){return`rgba(${this.strokeColor.join()})`}get _strokeBackgroundStyle(){return`rgba(${this.strokeBackgroundColor.join()})`}get _fillStyle(){return`rgba(${this.fillColor.join()})`}get _backgroundFillStyle(){return`rgba(${this.backgroundFillColor.join()})`}render(){const {backgroundWidth:d,backgroundHeight:l,boxWidth:m,boxHeight:n,
padding:p}=this,e=p.left,f=p.top,h=this.x??e+d/2-m/2,k=this.y??f+l/2-n/2,q=h+m,r=k+n;return g.tsx("div",{classes:{"esri-box-overlay-item":!0},styles:{left:"0px",top:"0px",width:"100%",height:"100%",visibility:this.visible?"visible":"hidden"}},g.tsx("svg",{styles:{width:"100%",height:"100%"}},g.tsx("path",{d:`M ${e} ${f} L ${d+e} ${f} L ${d+e} ${l+f} L ${e} ${l+f} Z M ${h} ${k} L ${h} ${r} L ${q} ${r} L ${q} ${k} Z`,fill:this._backgroundFillStyle,stroke:this._strokeBackgroundStyle,"stroke-width":this.strokeWidth}),
g.tsx("rect",{fill:this._fillStyle,height:n,stroke:this._strokeStyle,"stroke-dasharray":this.strokeDash.join(" ")||void 0,"stroke-width":this.strokeWidth,width:m,x:h,y:k})))}renderCanvas(){}};b.__decorate([c.property()],a.prototype,"strokeDash",void 0);b.__decorate([c.property()],a.prototype,"strokeWidth",void 0);b.__decorate([c.property()],a.prototype,"strokeColor",void 0);b.__decorate([c.property()],a.prototype,"strokeBackgroundColor",void 0);b.__decorate([c.property()],a.prototype,"fillColor",
void 0);b.__decorate([c.property()],a.prototype,"backgroundFillColor",void 0);b.__decorate([c.property()],a.prototype,"visible",void 0);b.__decorate([c.property()],a.prototype,"isDecoration",void 0);b.__decorate([c.property()],a.prototype,"boxWidth",void 0);b.__decorate([c.property()],a.prototype,"boxHeight",void 0);b.__decorate([c.property()],a.prototype,"backgroundWidth",void 0);b.__decorate([c.property()],a.prototype,"backgroundHeight",void 0);b.__decorate([c.property()],a.prototype,"x",void 0);
b.__decorate([c.property()],a.prototype,"y",void 0);b.__decorate([c.property()],a.prototype,"padding",void 0);b.__decorate([c.property({readOnly:!0})],a.prototype,"_strokeStyle",null);b.__decorate([c.property({readOnly:!0})],a.prototype,"_strokeBackgroundStyle",null);b.__decorate([c.property({readOnly:!0})],a.prototype,"_fillStyle",null);b.__decorate([c.property({readOnly:!0})],a.prototype,"_backgroundFillStyle",null);return a=b.__decorate([t.subclass("esri.views.overlay.BoxOverlayItem")],a)});