UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.45 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{_ as e}from"../chunks/tslib.es6.js";import t from"../Viewpoint.js";import o from"../core/JSONSupport.js";import{property as i}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 n from"../geometry/SpatialReference.js";import{timeExtent as s}from"../webdoc/support/timeProperties.js";import p from"./Environment.js";var l;let c=l=class extends o{constructor(e){super(e),this.environment=new p,this.spatialReference=null,this.viewpoint=null,this.timeExtent=null}set viewingMode(e){this._set("viewingMode",e)}clone(){return new l({environment:this.environment.clone(),spatialReference:this.spatialReference?.clone()??null,viewingMode:this.viewingMode,viewpoint:this.viewpoint?.clone()??null,timeExtent:this.timeExtent?.clone()??null})}};e([i({type:p,json:{write:{isRequired:!0}}})],c.prototype,"environment",void 0),e([i({type:n})],c.prototype,"spatialReference",void 0),e([i({type:["local","global"]})],c.prototype,"viewingMode",null),e([i({type:t,json:{write:{isRequired:!0}}})],c.prototype,"viewpoint",void 0),e([i(s)],c.prototype,"timeExtent",void 0),c=l=e([r("esri.webscene.InitialViewProperties")],c);const m=c;export{m as default};