UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 1.21 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as o}from"tslib";import e from"../../core/Accessor.js";import{property as r,subclass as t}from"../../core/accessorSupport/decorators.js";import s from"../../geometry/Polygon.js";import{projectOrLoad as n}from"../../geometry/projectionUtils.js";import{fromExtent as l}from"../../geometry/support/aaBoundingRect.js";import{normalizeCentralMeridianSync as i}from"../../geometry/support/normalizeUtilsSync.js";let p=class extends e{constructor(o){super(o)}get bounds(){const o=this.coords;return null==o?.extent?null:l(o.extent)}get coords(){const o=this.element.georeference?.coords;return n(o,this.spatialReference).geometry}get normalizedCoords(){return s.fromJSON(i(this.coords))}get normalizedBounds(){const o=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=o?l(o):null}};o([r()],p.prototype,"spatialReference",void 0),o([r()],p.prototype,"element",void 0),o([r()],p.prototype,"bounds",null),o([r()],p.prototype,"coords",null),o([r()],p.prototype,"normalizedCoords",null),o([r()],p.prototype,"normalizedBounds",null),p=o([t("esri.layers.support.MediaElementView")],p);export{p as MediaElementView};