UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.84 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 t}from"../../../chunks/tslib.es6.js";import o from"../../../core/Accessor.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 r}from"../../../core/accessorSupport/decorators/subclass.js";import{isValid as i}from"../../../geometry/support/spatialReferenceUtils.js";let s=class extends o{set horizontalWKID(t){t?i({wkid:+t})?this._set("horizontalWKID",+t):this._set("horizontalWKID",t):this._set("horizontalWKID",null)}set verticalWKID(t){t?this._set("verticalWKID",isFinite(t)&&i({wkid:+t})?+t:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:t,focalLength:o,principalOffsetPoint:e,radialDistortionCoefficients:r,tangentialDistortionCoefficients:i}=this;return t?.length>1&&!Number.isNaN(o)&&e?.length>1&&r?.length>1&&i?.length>1}};t([e({json:{write:!0}})],s.prototype,"affineTransformations",void 0),t([e({json:{write:!0}})],s.prototype,"focalLength",void 0),t([e({json:{write:!0}})],s.prototype,"principalOffsetPoint",void 0),t([e({json:{write:!0}})],s.prototype,"radialDistortionCoefficients",void 0),t([e({json:{write:!0}})],s.prototype,"tangentialDistortionCoefficients",void 0),t([e({json:{write:!0}})],s.prototype,"horizontalWKID",null),t([e({json:{write:!0}})],s.prototype,"verticalWKID",null),t([e({json:{write:!0}})],s.prototype,"x",void 0),t([e({json:{write:!0}})],s.prototype,"y",void 0),t([e({json:{write:!0}})],s.prototype,"z",void 0),t([e({json:{write:!0}})],s.prototype,"type",void 0),s=t([r("esri.layers.orientedImagery.core.CameraOrientation")],s);const n=s;export{n as default};