@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.27 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import{_ as t}from"../../../../../chunks/tslib.es6.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{h as s,d as e}from"../../../../../chunks/vec32.js";import{create as m}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{InteractionType as n}from"../../../camera/constraintUtils/InteractionType.js";import{MomentumController as i}from"./MomentumController.js";let c=class extends i{constructor(t){super(t),this.interactionType=n.PAN,this._tmpPan=m()}momentumStep(t,o){const r=this.momentum.value(t);s(this._tmpPan,this.momentum.direction,r),o.eye=e(a,o.eye,this._tmpPan),o.center=e(a,o.center,this._tmpPan),this.constraintOptions.interactionDirection=this._tmpPan}};t([o({constructOnly:!0})],c.prototype,"momentum",void 0),c=t([r("esri.views.3d.state.controllers.momentum.PanPlanarMomentumController")],c);const a=m();export{c as PanPlanarMomentumController};