@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 993 B
JavaScript
import{_ as r}from"../../chunks/tslib.es6.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{isSome as e}from"../../core/maybe.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{ensureType as s}from"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import{subclass as i}from"../../core/accessorSupport/decorators/subclass.js";import{fromJSON as p}from"../../geometry/support/jsonUtils.js";let m=class extends o{constructor(r){super(r),this.deviationUnit=null,this.geometries=null,this.maxDeviation=null}};r([t({type:String,json:{write:!0}})],m.prototype,"deviationUnit",void 0),r([t({json:{read:{reader:r=>r?r.map((r=>p(r))).filter(e):null},write:{writer:(r,o)=>{o.geometries=r?.map((r=>r.toJSON()))??null}}}})],m.prototype,"geometries",void 0),r([t({type:Number,json:{write:!0}})],m.prototype,"maxDeviation",void 0),m=r([i("esri.rest.support.GeneralizeParameters")],m),m.from=s(m);const a=m;export{a as default};