UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.32 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 o}from"../../../../../chunks/tslib.es6.js";import{property as t}from"../../../../../core/accessorSupport/decorators/property.js";import"../../../../../core/has.js";import"../../../../../core/Logger.js";import"../../../../../core/RandomLCG.js";import{subclass as s}from"../../../../../core/accessorSupport/decorators/subclass.js";import{c as r,n as m,e}from"../../../../../chunks/vec32.js";import{create as i}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{InteractionType as n}from"../../../camera/constraintUtils/InteractionType.js";import{MomentumController as c}from"./MomentumController.js";import{applyRotationWithTwoAxes as a}from"../../utils/navigationUtils.js";const p=i(),u=i();let l=class extends c{constructor(o){super(o),this.interactionType=n.PAN}momentumStep(o,t){const s=this.momentum.value1(o),i=this.momentum.value2(o);r(u,t.eye),m(u,u),e(this.momentum.axis2,u,this.momentum.axis1),a(t,p,this.momentum.axis1,s,this.momentum.axis2,i)}};o([t({constructOnly:!0})],l.prototype,"momentum",void 0),l=o([s("esri.views.3d.state.controllers.momentum.PanSphericalMomentumController")],l);export{l as PanSphericalMomentumController};