@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 518 B
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
class t{constructor(t=0,e=0){this.from=t,this.to=e}get numElements(){return this.to-this.from}}function e(t){if(t.length<2)return;const e=new Map;t.forAll((t=>e.set(t.from,t)));let o=!0;for(;o;){o=!1;for(let r=0;r<t.length;++r){const n=t.data[r],s=e.get(n.to);s&&(n.to=s.to,e.delete(s.from),t.removeUnordered(s),o=!0)}}}export{t as BufferRange,e as mergeAdjacentRanges};