@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.25 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 r from"../../core/Clonable.js";import t 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";let s=class extends(r.ClonableMixin(t)){constructor(o){super(o),this.maxFOV=0,this.minFOV=0,this.view=null,this.zoomFactor=5}get canZoomIn(){return!!this.view?.ready&&(0===this.minFOV||this.view.camera.fov>this.minFOV)}get canZoomOut(){return!!this.view?.ready&&(0===this.maxFOV||this.view.camera.fov<this.maxFOV)}};o([e({type:Boolean,readOnly:!0})],s.prototype,"canZoomIn",null),o([e({type:Boolean,readOnly:!0})],s.prototype,"canZoomOut",null),o([e({type:Number})],s.prototype,"maxFOV",void 0),o([e({type:Number})],s.prototype,"minFOV",void 0),o([e()],s.prototype,"view",void 0),o([e({type:Number})],s.prototype,"zoomFactor",void 0),s=o([i("esri.widgets.PanoramicViewer.PanoramicZoomConditions")],s);const a=s;export{a as default};