/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as o,subclass as e}from"../../../../../core/accessorSupport/decorators.js";import{scale as r,subtract as m}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as n}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{MomentumController as s}from"./MomentumController.js";let i=class extends s{constructor(t){super(t),this.interactionType=4,this._tmpPan=n()}momentumStep(t,o){const e=this.momentum.value(t);r(this._tmpPan,this.momentum.direction,e),o.eye=m(c,o.eye,this._tmpPan),o.center=m(c,o.center,this._tmpPan),this.constraintOptions.interactionDirection=this._tmpPan}};t([o({constructOnly:!0})],i.prototype,"momentum",void 0),i=t([e("esri.views.3d.state.controllers.momentum.PanPlanarMomentumController")],i);const c=n();export{i as PanPlanarMomentumController};
