/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{Clonable as o}from"../../../core/Clonable.js";import{clamp as a,rad2deg as s}from"../../../core/mathUtils.js";import{property as e,cast as m,subclass as r}from"../../../core/accessorSupport/decorators.js";import{TiltRange as i}from"../state/Constraints.js";const n={min:s(i.min),max:s(i.max)};let p=class extends o{constructor(t){super(t),this.mode="auto"}get max(){return this._get("max")}set max(t){this._set("max",t),this.mode="manual"}castMax(t){return a(t,n.min,n.max)}autoUpdate(t){"auto"===this.mode&&this._get("max")!==t&&this._set("max",t)}};t([e({type:["auto","manual"]})],p.prototype,"mode",void 0),t([e({type:Number,value:n.max})],p.prototype,"max",null),t([m("max")],p.prototype,"castMax",null),p=t([r("esri.views.3d.constraints.TiltConstraint")],p);const u=p;export{u as default};
