UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.08 kB
import{_ as t}from"../../../../../chunks/tslib.es6.js";import{property as o}from"../../../../../core/accessorSupport/decorators/property.js";import"../../../../../core/accessorSupport/ensureType.js";import"../../../../../core/arrayUtils.js";import{subclass as r}from"../../../../../core/accessorSupport/decorators/subclass.js";import{g as s,b as e}from"../../../../../chunks/vec3.js";import{c as n}from"../../../../../chunks/vec3f64.js";import{InteractionType as m}from"../../../camera/constraintUtils/InteractionType.js";import{MomentumController as c}from"./MomentumController.js";let i=class extends c{constructor(t){super(t),this.interactionType=m.PAN,this._tmpPan=n()}momentumStep(t,o){const r=this.momentum.value(t);s(this._tmpPan,this.momentum.direction,r),o.eye=e(p,o.eye,this._tmpPan),o.center=e(p,o.center,this._tmpPan),this.constraintOptions.interactionDirection=this._tmpPan}};t([o({constructOnly:!0})],i.prototype,"momentum",void 0),i=t([r("esri.views.3d.state.controllers.momentum.PanPlanarMomentumController")],i);const p=n();export{i as PanPlanarMomentumController};