@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.79 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{_ as e}from"../chunks/tslib.es6.js";import o from"../core/Clonable.js";import{cyclicalDegrees as t}from"../core/Cyclical.js";import r from"../core/JSONSupport.js";import{equalsMaybe as i}from"../core/maybe.js";import{property as s}from"../core/accessorSupport/decorators/property.js";import{cast as p}from"../core/accessorSupport/decorators/cast.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import{ensureNumber as a}from"../core/accessorSupport/ensureType.js";import l from"../geometry/Point.js";let m=class extends(o.ClonableMixin(r)){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&&i(this.position,e.position)}};e([s({type:["plane"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],m.prototype,"type",void 0),e([s({type:l,json:{write:{isRequired:!0}}})],m.prototype,"position",void 0),e([s({type:Number,nonNullable:!0,range:{min:0,max:360},json:{write:{isRequired:!0}}}),p((e=>t.normalize(a(e),0,!0)))],m.prototype,"heading",void 0),e([s({type:Number,nonNullable:!0,range:{min:0,max:360},json:{write:{isRequired:!0}}}),p((e=>t.normalize(a(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([n("esri.analysis.SlicePlane")],m);const c=m;export{c as default};