@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.28 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{c as s,r as e}from"../../../../../chunks/vec3.js";import{a as n,c as i}from"../../../../../chunks/vec3f64.js";import{InteractionType as m}from"../../../camera/constraintUtils/InteractionType.js";import{MomentumController as c}from"./MomentumController.js";import{applyZoomToPoint as a}from"../../utils/navigationUtils.js";let p=class extends c{set zoomCenter(t){this._set("zoomCenter",n(t))}constructor(t){super(t),this.interactionType=m.ZOOM,this.constraintOptions.interactionDirection=i()}momentumStep(t,o){const{interactionDirection:r}=this.constraintOptions;if(!r)return;s(r,o.eye);const n=this.momentum.valueDelta(0,t);a(o,this.zoomCenter,n,this.view.state.constraints.minimumPoiDistance),e(r,o.eye,r)}};t([o({constructOnly:!0})],p.prototype,"momentum",void 0),t([o({constructOnly:!0})],p.prototype,"zoomCenter",null),p=t([r("esri.views.3d.state.controllers.momentum.ZoomPlanarMomentumController")],p);export{p as ZoomPlanarMomentumController};