@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.9 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as t}from"tslib";import{JSONSupport as o}from"../../../core/JSONSupport.js";import{property as r,subclass as e}from"../../../core/accessorSupport/decorators.js";import{Integer as i}from"../../../core/accessorSupport/ensureType.js";import{getExifValue as n}from"../../../layers/support/exifUtils.js";var p;const s={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=p=class extends o{constructor(t){super(t),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:t}=this,o=n({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:t});return s[o]||null}clone(){return new p({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})}};t([r({type:String})],d.prototype,"contentType",void 0),t([r()],d.prototype,"exifInfo",void 0),t([r({readOnly:!0})],d.prototype,"orientationInfo",null),t([r({type:i})],d.prototype,"id",void 0),t([r({type:String})],d.prototype,"globalId",void 0),t([r({type:String})],d.prototype,"keywords",void 0),t([r({type:String})],d.prototype,"name",void 0),t([r({json:{read:!1}})],d.prototype,"parentGlobalId",void 0),t([r({json:{read:!1}})],d.prototype,"parentObjectId",void 0),t([r({type:i})],d.prototype,"size",void 0),t([r({json:{read:!1}})],d.prototype,"url",void 0),d=p=t([e("esri.rest.query.support.AttachmentInfo")],d);export{d as default};