UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.97 kB
import{_ as t}from"../../../chunks/tslib.es6.js";import{JSONSupport as o}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/arrayUtils.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 l=s=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 p[o]||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})}};t([r({type:String})],l.prototype,"contentType",void 0),t([r()],l.prototype,"exifInfo",void 0),t([r({readOnly:!0})],l.prototype,"orientationInfo",null),t([r({type:e})],l.prototype,"id",void 0),t([r({type:String})],l.prototype,"globalId",void 0),t([r({type:String})],l.prototype,"keywords",void 0),t([r({type:String})],l.prototype,"name",void 0),t([r({json:{read:!1}})],l.prototype,"parentGlobalId",void 0),t([r({json:{read:!1}})],l.prototype,"parentObjectId",void 0),t([r({type:e})],l.prototype,"size",void 0),t([r({json:{read:!1}})],l.prototype,"url",void 0),l=s=t([i("esri.layers.support.AttachmentInfo")],l);const a=l;export{a as default};