@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.14 kB
JavaScript
import{_ as o}from"../../../../../chunks/tslib.es6.js";import{property as t}from"../../../../../core/accessorSupport/decorators/property.js";import"../../../../../core/accessorSupport/ensureType.js";import"../../../../../core/arrayUtils.js";import{subclass as s}from"../../../../../core/accessorSupport/decorators/subclass.js";import{c as r,n as e,f as m}from"../../../../../chunks/vec3.js";import{c as i}from"../../../../../chunks/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),e(u,u),m(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};