@dra2020/baseclient 1.0.93 → 1.0.94
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 +24 -0
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -2573,6 +2573,25 @@ class GeoMultiCollection {
|
|
|
2573
2573
|
this._onChange();
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
|
+
// Add the "all" collection from the passed in multi, but do not force compute of any things not computed yet.
|
|
2577
|
+
addAll(tag, multi) {
|
|
2578
|
+
let nEntries = Util.countKeys(multi.entries);
|
|
2579
|
+
if (nEntries) {
|
|
2580
|
+
// Make sure all collection is created
|
|
2581
|
+
if (!multi.all.topo && !multi.all.col && !multi.all.map) {
|
|
2582
|
+
// Create cheapest one (collection if I need to create, otherwise copy from single entry)
|
|
2583
|
+
if (nEntries > 1)
|
|
2584
|
+
multi.allCol();
|
|
2585
|
+
else {
|
|
2586
|
+
let e = multi.nthEntry(0);
|
|
2587
|
+
multi.all.topo = e.topo;
|
|
2588
|
+
multi.all.col = e.col;
|
|
2589
|
+
multi.all.map = e.map;
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
this.add(tag, multi.all.topo, multi.all.col, multi.all.map);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2576
2595
|
remove(tag) {
|
|
2577
2596
|
let entry = this.entries[tag];
|
|
2578
2597
|
if (entry) {
|