UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 1.12 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{_ as r}from"../../chunks/tslib.es6.js";import{isSome as o}from"../../core/arrayUtils.js";import e from"../../core/JSONSupport.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{ensureType as s}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import{subclass as i}from"../../core/accessorSupport/decorators/subclass.js";import{fromJSON as p}from"../../geometry/support/jsonUtils.js";let a=class extends e{constructor(r){super(r),this.deviationUnit=null,this.geometries=null,this.maxDeviation=null}};r([t({type:String,json:{write:!0}})],a.prototype,"deviationUnit",void 0),r([t({json:{read:{reader:r=>r?r.map((r=>p(r))).filter(o):null},write:{writer:(r,o)=>{o.geometries=r?.map((r=>r.toJSON()))??null}}}})],a.prototype,"geometries",void 0),r([t({type:Number,json:{write:!0}})],a.prototype,"maxDeviation",void 0),a=r([i("esri.rest.support.GeneralizeParameters")],a),a.from=s(a);const m=a;export{m as default};