/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../core/Clonable.js";import{cyclicalDegrees as i}from"../core/Cyclical.js";import{JSONSupport as o}from"../core/JSONSupport.js";import{equalsMaybe as r}from"../core/maybe.js";import{property as s,cast as n,subclass as p}from"../core/accessorSupport/decorators.js";import{ensureNumber as l}from"../core/accessorSupport/ensureType.js";import a from"../geometry/Point.js";let m=class extends(t(o)){constructor(e){super(e),this.type="plane",this.position=null,this.heading=0,this.tilt=0,this.width=10,this.height=10}equals(e){return this.heading===e.heading&&this.tilt===e.tilt&&this.width===e.width&&this.height===e.height&&r(this.position,e.position)}};e([s({type:["plane"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],m.prototype,"type",void 0),e([s({type:a,json:{write:{isRequired:!0}}})],m.prototype,"position",void 0),e([s({type:Number,nonNullable:!0,range:{min:0,max:360},json:{write:{isRequired:!0}}}),n(e=>i.normalize(l(e),0,!0))],m.prototype,"heading",void 0),e([s({type:Number,nonNullable:!0,range:{min:0,max:360},json:{write:{isRequired:!0}}}),n(e=>i.normalize(l(e),0,!0))],m.prototype,"tilt",void 0),e([s({type:Number,nonNullable:!0,range:{min:0},json:{write:{isRequired:!0}}})],m.prototype,"width",void 0),e([s({type:Number,nonNullable:!0,range:{min:0},json:{write:{isRequired:!0}}})],m.prototype,"height",void 0),m=e([p("esri.analysis.SlicePlane")],m);const h=m;export{h as default};
