@dra2020/baseclient 1.0.88 → 1.0.90

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.
@@ -2754,9 +2754,7 @@ class GeoMultiCollection {
2754
2754
  isHidden(id) {
2755
2755
  return this.hidden[id] !== undefined;
2756
2756
  }
2757
- find(id) {
2758
- if (this.hidden[id] !== undefined)
2759
- return undefined;
2757
+ findNoHide(id) {
2760
2758
  let entries = Object.values(this.entries);
2761
2759
  for (let i = 0; i < entries.length; i++) {
2762
2760
  let map = this._map(entries[i]);
@@ -2765,6 +2763,11 @@ class GeoMultiCollection {
2765
2763
  }
2766
2764
  return undefined;
2767
2765
  }
2766
+ find(id) {
2767
+ if (this.hidden[id] !== undefined)
2768
+ return undefined;
2769
+ return this.findNoHide(id);
2770
+ }
2768
2771
  filter(test) {
2769
2772
  let m = new GeoMultiCollection();
2770
2773
  this.forEachEntry(e => {
@@ -2878,6 +2881,10 @@ class MultiBlockMapping {
2878
2881
  }
2879
2882
  return undefined;
2880
2883
  }
2884
+ bmOf(tag) {
2885
+ let e = this.entries.find(e => e.tag === tag);
2886
+ return e ? e.bm : null;
2887
+ }
2881
2888
  mapmain(blockid) {
2882
2889
  return this.entries.length ? this.entries[0].bm[blockid] : undefined;
2883
2890
  }