UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 2.32 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/Clonable.js";import e from"../../../core/JSONSupport.js";import{property as r}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 s from"./CameraOrientation.js";let n=class extends(t.ClonableMixin(e.JSONSupportMixin(s))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:o,focalLength:t,principalOffsetPoint:e,radialDistortionCoefficients:r,tangentialDistortionCoefficients:i}=this;return o?.length>1||!Number.isNaN(t)||e?.length>1||r?.length>1||i?.length>1}toString(){const{type:o,horizontalWKID:t,verticalWKID:e,x:r,y:i,z:s,yaw:n,pitch:p,roll:a,affineTransformations:c,focalLength:f,principalOffsetPoint:m,radialDistortionCoefficients:y,tangentialDistortionCoefficients:l}=this,u=[o,t,e,r,i,s,n,p,a];return this.isAdvanced&&(c?.forEach((o=>u.push(o))),u.push(f),m?.forEach((o=>u.push(o))),m?.forEach((o=>u.push(o))),y?.forEach((o=>u.push(o))),l?.forEach((o=>u.push(o)))),u.map((o=>Number.isNaN(o)?"":o)).join("|")}};o([r({json:{write:!0}})],n.prototype,"type",void 0),o([r({type:[Number],json:{write:!0}})],n.prototype,"affineTransformations",void 0),o([r({type:Number,json:{write:!0}})],n.prototype,"focalLength",void 0),o([r({type:[Number],json:{write:!0}})],n.prototype,"principalOffsetPoint",void 0),o([r({type:[Number],json:{write:!0}})],n.prototype,"radialDistortionCoefficients",void 0),o([r({type:[Number],json:{write:!0}})],n.prototype,"tangentialDistortionCoefficients",void 0),o([r({type:Number,json:{write:!0}})],n.prototype,"yaw",void 0),o([r({type:Number,json:{write:!0}})],n.prototype,"pitch",void 0),o([r({type:Number,json:{write:!0}})],n.prototype,"roll",void 0),o([r({type:Number,json:{write:!0}})],n.prototype,"x",void 0),o([r({type:Number,json:{write:!0}})],n.prototype,"y",void 0),o([r({type:Number,json:{write:!0}})],n.prototype,"z",void 0),n=o([i("esri.layers.orientedImagery.core.CameraOrientationYPR")],n);const p=n;export{p as default};