@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.01 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as o}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";let a=class extends(t(e)){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([r({type:Boolean,readOnly:!0})],a.prototype,"canZoomIn",null),o([r({type:Boolean,readOnly:!0})],a.prototype,"canZoomOut",null),o([r({type:Number})],a.prototype,"maxFOV",void 0),o([r({type:Number})],a.prototype,"minFOV",void 0),o([r()],a.prototype,"view",void 0),o([r({type:Number})],a.prototype,"zoomFactor",void 0),a=o([i("esri.widgets.PanoramicViewer.PanoramicZoomConditions")],a);const m=a;export{m as default};