UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 994 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as o}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as e,subclass as r}from"../../core/accessorSupport/decorators.js";import{ensureType as s}from"../../core/accessorSupport/ensureType.js";import p from"../../geometry/Polyline.js";import{fromJSON as i}from"../../geometry/support/jsonUtils.js";let l=class extends t{constructor(o){super(o),this.calculationType=null,this.geodesic=null,this.lengthUnit=null,this.polylines=null}};o([e({type:String,json:{write:!0}})],l.prototype,"calculationType",void 0),o([e({type:Boolean,json:{write:!0}})],l.prototype,"geodesic",void 0),o([e({json:{write:!0}})],l.prototype,"lengthUnit",void 0),o([e({type:[p],json:{read:{reader:o=>o?o.map(o=>i(o)):null},write:{writer:(o,t)=>{t.polylines=o.map(o=>o.toJSON())}}}})],l.prototype,"polylines",void 0),l=o([r("esri.rest.support.LengthsParameters")],l),l.from=s(l);const n=l;export{n as default};