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.
 
 

4 lines
546 B

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define(function(){class b{constructor(a=0,c=0,d=0,e=0){this.x=a;this.y=c;this.width=d;this.height=e}static fromExtent(a){return new b(a.xmin,-a.ymax,a.xmax-a.xmin,a.ymax-a.ymin)}get isEmpty(){return 0>=this.width||0>=this.height}union(a){this.x=Math.min(this.x,a.x);this.y=Math.min(this.y,a.y);this.width=Math.max(this.width,a.width);this.height=Math.max(this.height,a.height)}}return b});