UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.46 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{_ as o}from"../../chunks/tslib.es6.js";import r from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";import s from"../../geometry/Polygon.js";import{projectOrLoad as n}from"../../geometry/projection.js";import{fromExtent as p}from"../../geometry/support/aaBoundingRect.js";import{normalizeCentralMeridianSync as l}from"../../geometry/support/normalizeUtilsSync.js";let m=class extends r{constructor(o){super(o)}get bounds(){const o=this.coords;return null==o?.extent?null:p(o.extent)}get coords(){const o=this.element.georeference?.coords;return n(o,this.spatialReference).geometry}get normalizedCoords(){return s.fromJSON(l(this.coords))}get normalizedBounds(){const o=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=o?p(o):null}};o([e()],m.prototype,"spatialReference",void 0),o([e()],m.prototype,"element",void 0),o([e()],m.prototype,"bounds",null),o([e()],m.prototype,"coords",null),o([e()],m.prototype,"normalizedCoords",null),o([e()],m.prototype,"normalizedBounds",null),m=o([t("esri.layers.support.MediaElementView")],m);export{m as MediaElementView};