@dra2020/baseclient 1.0.89 → 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.
- package/dist/baseclient.js +6 -3
- package/dist/baseclient.js.map +1 -1
- package/dist/geo/geo.d.ts +1 -0
- package/lib/geo/geo.ts +9 -5
- package/package.json +1 -1
package/dist/geo/geo.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare class GeoMultiCollection {
|
|
|
72
72
|
forEach(cb: FeatureFunc): void;
|
|
73
73
|
map(cb: (f: GeoFeature) => GeoFeature): GeoFeature[];
|
|
74
74
|
isHidden(id: string): boolean;
|
|
75
|
+
findNoHide(id: string): GeoFeature;
|
|
75
76
|
find(id: string): GeoFeature;
|
|
76
77
|
filter(test: (f: GeoFeature) => boolean): GeoMultiCollection;
|
|
77
78
|
}
|
package/lib/geo/geo.ts
CHANGED
|
@@ -519,11 +519,8 @@ export class GeoMultiCollection
|
|
|
519
519
|
return this.hidden[id] !== undefined;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
|
|
522
|
+
findNoHide(id: string): GeoFeature
|
|
523
523
|
{
|
|
524
|
-
if (this.hidden[id] !== undefined)
|
|
525
|
-
return undefined;
|
|
526
|
-
|
|
527
524
|
let entries = Object.values(this.entries);
|
|
528
525
|
for (let i = 0; i < entries.length; i++)
|
|
529
526
|
{
|
|
@@ -531,10 +528,17 @@ export class GeoMultiCollection
|
|
|
531
528
|
if (map[id])
|
|
532
529
|
return map[id];
|
|
533
530
|
}
|
|
534
|
-
|
|
535
531
|
return undefined;
|
|
536
532
|
}
|
|
537
533
|
|
|
534
|
+
find(id: string): GeoFeature
|
|
535
|
+
{
|
|
536
|
+
if (this.hidden[id] !== undefined)
|
|
537
|
+
return undefined;
|
|
538
|
+
|
|
539
|
+
return this.findNoHide(id);
|
|
540
|
+
}
|
|
541
|
+
|
|
538
542
|
filter(test: (f: GeoFeature) => boolean): GeoMultiCollection
|
|
539
543
|
{
|
|
540
544
|
let m = new GeoMultiCollection();
|