@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.37 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{clone as s}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{wrapAxisAngle as e}from"../../../../../geometry/support/axisAngle.js";import{InteractionType as i}from"../../../camera/constraintUtils/InteractionType.js";import{MomentumController as m}from"./MomentumController.js";import{applyRotation as n}from"../../utils/navigationUtils.js";let c=class extends m{set center(t){this._set("center",s(t))}set axis(t){this._set("axis",s(t))}constructor(t){super(t),this.interactionType=i.TUMBLE}momentumStep(t,o){const r=this.momentum.value(t);n(o,this.center,e(this.axis,r))}};t([o({constructOnly:!0})],c.prototype,"momentum",void 0),t([o({constructOnly:!0})],c.prototype,"center",null),t([o({constructOnly:!0})],c.prototype,"axis",null),c=t([r("esri.views.3d.state.controllers.momentum.RotationMomentumController")],c);export{c as RotationMomentumController};