@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.18 kB
JavaScript
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{a as s}from"../../../../../chunks/vec3f64.js";import{wrapAxisAngle as e}from"../../../../../geometry/support/axisAngle.js";import{InteractionType as m}from"../../../camera/constraintUtils/InteractionType.js";import{MomentumController as n}from"./MomentumController.js";import{applyRotation as c}from"../../utils/navigationUtils.js";let i=class extends n{set center(t){this._set("center",s(t))}set axis(t){this._set("axis",s(t))}constructor(t){super(t),this.interactionType=m.TUMBLE}momentumStep(t,o){const r=this.momentum.value(t);c(o,this.center,e(this.axis,r))}};t([o({constructOnly:!0})],i.prototype,"momentum",void 0),t([o({constructOnly:!0})],i.prototype,"center",null),t([o({constructOnly:!0})],i.prototype,"axis",null),i=t([r("esri.views.3d.state.controllers.momentum.MomentumController")],i);export{i as RotationMomentumController};