@dra2020/baseclient 1.0.110 → 1.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/baseclient.js +19 -0
- package/dist/baseclient.js.map +1 -1
- package/dist/geo/geo.d.ts +1 -0
- package/lib/geo/geo.ts +23 -0
- package/package.json +1 -1
package/dist/geo/geo.d.ts
CHANGED
package/lib/geo/geo.ts
CHANGED
|
@@ -475,6 +475,29 @@ export class GeoMultiCollection
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
allTopo(): Poly.Topo
|
|
478
|
+
{
|
|
479
|
+
if (this.nEntries == 0) return null;
|
|
480
|
+
if (! this.all.topo)
|
|
481
|
+
{
|
|
482
|
+
// optimise case where one entry
|
|
483
|
+
let n = this.nEntries;
|
|
484
|
+
if (n == 1)
|
|
485
|
+
{
|
|
486
|
+
let e = this.nthEntry(0);
|
|
487
|
+
this.all.topo = this._topo(e);
|
|
488
|
+
this.all.col = this.all.col || e.col;
|
|
489
|
+
this.all.map = this.all.map || e.map;
|
|
490
|
+
}
|
|
491
|
+
else
|
|
492
|
+
{
|
|
493
|
+
// Old-style, goes through map (to filter hidden) and then collection
|
|
494
|
+
this.all.topo = geoCollectionToTopoNonNull(this.allCol());
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
return this.all.topo;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
allNewTopo(): Poly.Topo
|
|
478
501
|
{
|
|
479
502
|
if (this.nEntries == 0) return null;
|
|
480
503
|
if (! this.all.topo)
|