UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 3.04 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"../Camera.js";import{property as o}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 i from"./Widget.js";import a from"./PanoramicViewer/PanoramicViewerViewModel.js";import{globalCss as s}from"./support/globalCss.js";import"./support/widgetUtils.js";import{vmEvent as l}from"./support/decorators/vmEvent.js";import{tsx as p}from"./support/jsxFactory.js";const c="esri-panoramic-viewer";let n=class extends i{constructor(e){super(e),this.viewModel=new a,this._afterContainerCreate=e=>{this.imageRenderer.container=e},this.addGraphic=(e,t)=>{this.viewModel.addGraphic(e,t)},this.addManyGraphics=e=>{this.viewModel.addManyGraphics(e)},this.clearGraphics=()=>{this.viewModel.clearGraphics()},this.clearImage=()=>{this.viewModel.clearImage()},this.loadImage=e=>this.viewModel.loadImage(e),this.removeGraphic=e=>{this.viewModel.removeGraphic(e)},this.removeManyGraphics=e=>{this.viewModel.removeManyGraphics(e)}}get autoLoad(){return this.viewModel.autoLoad}set autoLoad(e){this.viewModel.autoLoad=e}get camera(){return this.viewModel.camera}set camera(e){e&&(this.viewModel.camera=e)}get clickAction(){return this.viewModel.clickAction}set clickAction(e){this.viewModel.clickAction=e}get fov(){return this.camera.fov}set fov(e){this.viewModel.fov=e}get hfov(){return this.viewModel.hfov}get icon(){return"i360-view"}set icon(e){this._overrideIfSome("icon",e)}get imageRenderer(){return this.viewModel.imageRenderer}get imageSize(){return this.viewModel.imageSize}get imageSource(){return this.viewModel.imageSource}set imageSource(e){this.viewModel.imageSource=e}get pitch(){return this.viewModel.pitch}set pitch(e){this.viewModel.pitch=e}get state(){return this.viewModel.state}get vfov(){return this.viewModel.vfov}get yaw(){return this.viewModel.yaw}set yaw(e){this.viewModel.yaw=e}render(){return p("div",{afterCreate:this._afterContainerCreate,bind:this,class:this.classes(s.widget,c)})}};e([o({type:Boolean})],n.prototype,"autoLoad",null),e([o({type:t})],n.prototype,"camera",null),e([o()],n.prototype,"clickAction",null),e([o({type:Number})],n.prototype,"fov",null),e([o({readOnly:!0,type:Number})],n.prototype,"hfov",null),e([o()],n.prototype,"icon",null),e([o({readOnly:!0})],n.prototype,"imageRenderer",null),e([o({readOnly:!0})],n.prototype,"imageSize",null),e([o()],n.prototype,"imageSource",null),e([o({type:Number})],n.prototype,"pitch",null),e([o({readOnly:!0})],n.prototype,"state",null),e([o({readOnly:!0,type:Number})],n.prototype,"vfov",null),e([l(["click","hittest-response","pixel-location"]),o({type:a})],n.prototype,"viewModel",void 0),e([o({type:Number})],n.prototype,"yaw",null),n=e([r("esri.widgets.PanoramicViewer")],n);const d=n;export{d as default};