@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/geo/geo.d.ts CHANGED
@@ -70,6 +70,7 @@ export declare class GeoMultiCollection {
70
70
  allCol(): GeoFeatureCollection;
71
71
  allMap(): GeoFeatureMap;
72
72
  allTopo(): Poly.Topo;
73
+ allNewTopo(): Poly.Topo;
73
74
  hideSetAll(hm: HideMap): void;
74
75
  hide(id: any): void;
75
76
  show(id: any): void;
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.110",
3
+ "version": "1.0.111",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",