UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 2.13 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as o}from"../../../chunks/tslib.es6.js";import t from"../../../core/JSONSupport.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import{Integer as e}from"../../../core/accessorSupport/ensureType.js";import"../../../core/has.js";import"../../../core/RandomLCG.js";import{subclass as i}from"../../../core/accessorSupport/decorators/subclass.js";import{getExifValue as n}from"../../../layers/support/exifUtils.js";var s;const p={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let d=s=class extends t{constructor(o){super(o),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:o}=this,t=n({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:o});return p[t]||null}clone(){return new s({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};o([r({type:String})],d.prototype,"contentType",void 0),o([r()],d.prototype,"exifInfo",void 0),o([r({readOnly:!0})],d.prototype,"orientationInfo",null),o([r({type:e})],d.prototype,"id",void 0),o([r({type:String})],d.prototype,"globalId",void 0),o([r({type:String})],d.prototype,"keywords",void 0),o([r({type:String})],d.prototype,"name",void 0),o([r({json:{read:!1}})],d.prototype,"parentGlobalId",void 0),o([r({json:{read:!1}})],d.prototype,"parentObjectId",void 0),o([r({type:e})],d.prototype,"size",void 0),o([r({json:{read:!1}})],d.prototype,"url",void 0),d=s=o([i("esri.rest.query.support.AttachmentInfo")],d);export{d as default};