@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 2.07 kB
JavaScript
/*
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/Clonable.js";import r from"../../../core/JSONSupport.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 i}from"../../../core/accessorSupport/decorators/subclass.js";import p from"./CameraOrientation.js";let s=class extends(t.ClonableMixin(r.JSONSupportMixin(p))){constructor(){super(...arguments),this.type=1}toString(){const{type:o,horizontalWKID:t,verticalWKID:r,x:e,y:i,z:p,heading:s,pitch:n,roll:a,affineTransformations:c,focalLength:m,principalOffsetPoint:f,radialDistortionCoefficients:y,tangentialDistortionCoefficients:u}=this,d=[o,t,r,e,i,p,s,n,a];return this.isAdvanced&&(c?.forEach((o=>d.push(o))),d.push(m),f?.forEach((o=>d.push(o))),y?.forEach((o=>d.push(o))),u?.forEach((o=>d.push(o)))),d.map((o=>Number.isNaN(o)?"":o)).join("|")}};o([e({json:{write:!0}})],s.prototype,"type",void 0),o([e({type:[Number],json:{write:!0}})],s.prototype,"affineTransformations",void 0),o([e({type:Number,json:{write:!0}})],s.prototype,"focalLength",void 0),o([e({type:[Number],json:{write:!0}})],s.prototype,"principalOffsetPoint",void 0),o([e({type:[Number],json:{write:!0}})],s.prototype,"radialDistortionCoefficients",void 0),o([e({type:[Number],json:{write:!0}})],s.prototype,"tangentialDistortionCoefficients",void 0),o([e({type:Number,json:{write:!0}})],s.prototype,"heading",void 0),o([e({type:Number,json:{write:!0}})],s.prototype,"pitch",void 0),o([e({type:Number,json:{write:!0}})],s.prototype,"roll",void 0),o([e({type:Number,json:{write:!0}})],s.prototype,"x",void 0),o([e({type:Number,json:{write:!0}})],s.prototype,"y",void 0),o([e({type:Number,json:{write:!0}})],s.prototype,"z",void 0),s=o([i("esri.layers.orientedImagery.core.CameraOrientationHPR")],s);const n=s;export{n as default};