@dra2020/district-analytics 6.0.1 → 6.3.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/cli.js +177 -96
- package/dist/cli.js.map +1 -1
- package/dist/district-analytics.js +13 -0
- package/dist/district-analytics.js.map +1 -1
- package/dist/src/_api.d.ts +1 -0
- package/dist/src/types.d.ts +8 -1
- package/package.json +2 -2
package/dist/src/_api.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare class AnalyticsSession {
|
|
|
25
25
|
getDistrictStatistics(bLog?: boolean): DistrictStatistics;
|
|
26
26
|
getPlanProfile(bLog?: boolean): Score.Profile;
|
|
27
27
|
getPlanScorecard(bLog?: boolean): Score.Scorecard;
|
|
28
|
+
getRatings(bLog?: boolean): T.Ratings;
|
|
28
29
|
getRequirementsChecklist(bLog?: boolean): RequirementsChecklist;
|
|
29
30
|
getDiscontiguousDistrictFeatures(bLog?: boolean): T.GeoFeatureCollection;
|
|
30
31
|
getTest(testID: T.Test): T.TestEntry;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -108,4 +108,11 @@ export declare type Datasets = {
|
|
|
108
108
|
vap?: string;
|
|
109
109
|
election?: string;
|
|
110
110
|
};
|
|
111
|
-
export
|
|
111
|
+
export declare type Ratings = {
|
|
112
|
+
proportionality: number;
|
|
113
|
+
competitiveness: number;
|
|
114
|
+
minorityRights: number;
|
|
115
|
+
compactness: number;
|
|
116
|
+
splitting: number;
|
|
117
|
+
};
|
|
118
|
+
export { Profile, Scorecard, DemographicRow, PivotField, estSeatProbability } from '@dra2020/dra-score';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dra2020/district-analytics",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "District analytics TypeScript package",
|
|
5
5
|
"main": "dist/district-analytics.js",
|
|
6
6
|
"files": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"yargs": "^12.0.5"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@dra2020/dra-score": "^
|
|
52
|
+
"@dra2020/dra-score": "^7.1.0",
|
|
53
53
|
"@dra2020/dra-types": "^1.4.9",
|
|
54
54
|
"@dra2020/poly": "^1.0.48",
|
|
55
55
|
"@dra2020/util": "^1.0.50",
|