@dra2020/baseclient 1.0.110 → 1.0.112
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/baseclient.js
CHANGED
|
@@ -2727,6 +2727,25 @@ class GeoMultiCollection {
|
|
|
2727
2727
|
return this.all.map;
|
|
2728
2728
|
}
|
|
2729
2729
|
allTopo() {
|
|
2730
|
+
if (this.nEntries == 0)
|
|
2731
|
+
return null;
|
|
2732
|
+
if (!this.all.topo) {
|
|
2733
|
+
// optimise case where one entry
|
|
2734
|
+
let n = this.nEntries;
|
|
2735
|
+
if (n == 1) {
|
|
2736
|
+
let e = this.nthEntry(0);
|
|
2737
|
+
this.all.topo = this._topo(e);
|
|
2738
|
+
this.all.col = this.all.col || e.col;
|
|
2739
|
+
this.all.map = this.all.map || e.map;
|
|
2740
|
+
}
|
|
2741
|
+
else {
|
|
2742
|
+
// Old-style, goes through map (to filter hidden) and then collection
|
|
2743
|
+
this.all.topo = geoCollectionToTopoNonNull(this.allCol());
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
return this.all.topo;
|
|
2747
|
+
}
|
|
2748
|
+
allNewTopo() {
|
|
2730
2749
|
if (this.nEntries == 0)
|
|
2731
2750
|
return null;
|
|
2732
2751
|
if (!this.all.topo) {
|