@dra2020/district-analytics 11.5.2 → 12.0.0
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/district-analytics.js +174 -89
- package/dist/district-analytics.js.map +1 -1
- package/dist/src/_data.d.ts +3 -3
- package/dist/src/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/src/_data.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export declare class Districts {
|
|
|
50
50
|
getCountyIndex(geoID: string): number;
|
|
51
51
|
extractVotesByDemographic(districtID: number, groups: RPV.MinorityFilter, bLog?: boolean): RPV.DemographicVotingByFeature | undefined;
|
|
52
52
|
}
|
|
53
|
+
export declare function inferSelectedMinority(groups: RPV.MinorityFilter): string;
|
|
53
54
|
export declare class Features {
|
|
54
55
|
_session: AnalyticsSession;
|
|
55
56
|
_data: T.GeoFeatureCollection;
|
|
@@ -58,13 +59,12 @@ export declare class Features {
|
|
|
58
59
|
constructor(s: AnalyticsSession, data: T.GeoFeatureCollection, keys: T.DatasetKeys);
|
|
59
60
|
nFeatures(): number;
|
|
60
61
|
featureByIndex(i: number): T.GeoFeature;
|
|
61
|
-
geoIDForFeature(f: any): string;
|
|
62
|
-
fieldForFeature(f: any, dt: T.Dataset, fk: string): any;
|
|
63
62
|
resetDataset(d: T.Dataset, k: string): void;
|
|
64
63
|
mapGeoIDsToFeatureIDs(): void;
|
|
65
64
|
featureID(i: string): number;
|
|
66
65
|
}
|
|
67
|
-
export declare function
|
|
66
|
+
export declare function geoIDForFeature(f: any): string;
|
|
67
|
+
export declare function fieldForFeature(f: any, dk: string, fk: string): any;
|
|
68
68
|
export declare class Counties {
|
|
69
69
|
_session: AnalyticsSession;
|
|
70
70
|
_data: T.GeoFeatureCollection;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './_api';
|
|
2
|
+
export { geoIDForFeature, fieldForFeature, inferSelectedMinority } from './_data';
|
|
2
3
|
export * from './results';
|
|
3
4
|
export * from './types';
|
|
4
|
-
export
|
|
5
|
+
export * from './utils';
|
|
5
6
|
export { MinorityFilter, Point, DemographicVotingByFeature, RPVFactor, RPVAnalysis } from '@dra2020/racial-voting';
|