UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.33 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as r}from"../../../../chunks/tslib.es6.js";import t from"../../../../core/JSONSupport.js";import{property as o}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{reader as e}from"../../../../core/accessorSupport/decorators/reader.js";import{subclass as s}from"../../../../core/accessorSupport/decorators/subclass.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,numUnits:r.end-r.start+1,isGap:!0}))),...t.unitIdentifiers.map((r=>({firstUnit:r.firstUnit,numUnits:r.numUnits,isGap:!1,content:{sourceId:r.sourceId,globalId:r.globalId}})))]}};r([o({type:Object})],n.prototype,"container",void 0),r([e("container",["sourceId","globalId"])],n.prototype,"readContainer",null),r([o({type:[Object]})],n.prototype,"ranges",void 0),r([e("ranges",["gaps","unitIdentifiers"])],n.prototype,"readRanges",null),n=r([s("esri.rest.networks.unitIdentifiers.support.UnitQueryResult")],n);export{n as default};