@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.05 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */
import{__decorate as r}from"tslib";import{JSONSupport as t}from"../../../../core/JSONSupport.js";import{property as e,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{reader as s}from"../../../../core/accessorSupport/decorators/reader.js";let n=class extends t{constructor(r){super(r),this.container=null,this.ranges=null}readContainer(r,t){return{sourceId:t.sourceId,globalId:t.globalId}}readRanges(r,t){return[...t.gaps.map(r=>({firstUnit:r.start,lastUnit:r.end,isGap:!0})),...t.unitIdentifiers.map(r=>({firstUnit:r.firstUnit,lastUnit:r.numUnits,isGap:!1,content:{sourceId:r.sourceId,globalId:r.globalId}}))]}};r([e({type:Object})],n.prototype,"container",void 0),r([s("container",["sourceId","globalId"])],n.prototype,"readContainer",null),r([e({type:[Object]})],n.prototype,"ranges",void 0),r([s("ranges",["gaps","unitIdentifiers"])],n.prototype,"readRanges",null),n=r([o("esri.rest.networks.unitIdentifiers.support.UnitQueryResult")],n);export{n as default};