@dra2020/baseclient 1.0.93 → 1.0.95

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.
@@ -2573,6 +2573,29 @@ 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
+ if (multi == null || Util.isEmpty(multi.entries))
2579
+ this.remove(tag);
2580
+ else {
2581
+ let nEntries = Util.countKeys(multi.entries);
2582
+ if (nEntries) {
2583
+ // Make sure all collection is created
2584
+ if (!multi.all.topo && !multi.all.col && !multi.all.map) {
2585
+ // Create cheapest one (collection if I need to create, otherwise copy from single entry)
2586
+ if (nEntries > 1)
2587
+ multi.allCol();
2588
+ else {
2589
+ let e = multi.nthEntry(0);
2590
+ multi.all.topo = e.topo;
2591
+ multi.all.col = e.col;
2592
+ multi.all.map = e.map;
2593
+ }
2594
+ }
2595
+ this.add(tag, multi.all.topo, multi.all.col, multi.all.map);
2596
+ }
2597
+ }
2598
+ }
2576
2599
  remove(tag) {
2577
2600
  let entry = this.entries[tag];
2578
2601
  if (entry) {