@dra2020/district-analytics 3.3.0 → 4.2.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.
@@ -21,96 +21,6 @@ export declare type RequirementsChecklist = {
21
21
  stateReqs: string;
22
22
  };
23
23
  };
24
- export declare type RequirementsCategory = {
25
- score: T.TriState;
26
- metrics: {
27
- complete: T.TriState;
28
- contiguous: T.TriState;
29
- freeOfHoles: T.TriState;
30
- equalPopulation: T.TriState;
31
- };
32
- details: {
33
- unassignedFeatures: string[];
34
- emptyDistricts: number[];
35
- discontiguousDistricts: number[];
36
- embeddedDistricts: number[];
37
- populationDeviation: number;
38
- deviationThreshold: number;
39
- };
40
- datasets: T.Datasets;
41
- resources: {
42
- stateReqs: string;
43
- };
44
- };
45
- export declare type CompactnessCategory = {
46
- score: number;
47
- metrics: {
48
- reock: number;
49
- polsby: number;
50
- };
51
- details: {};
52
- datasets: T.Datasets;
53
- resources: {};
54
- };
55
- export declare type SplittingCategory = {
56
- score: number;
57
- metrics: {
58
- sqEnt_DCreduced: number;
59
- sqEnt_CDreduced: number;
60
- };
61
- details: {
62
- countiesSplitUnexpectedly: string[];
63
- unexpectedAffected: number;
64
- nSplitVTDs: number;
65
- splitVTDs: string[];
66
- };
67
- datasets: T.Datasets;
68
- resources: {};
69
- };
70
- export declare type PartisanCategory = {
71
- score: number;
72
- metrics: {
73
- partisanBias: 0.15;
74
- responsiveness: 2.0;
75
- };
76
- details: {};
77
- datasets: T.Datasets;
78
- resources: {
79
- planScore?: string;
80
- };
81
- };
82
- export declare type MinorityCategory = {
83
- score: null;
84
- metrics: {
85
- nBlack37to50: number;
86
- nBlackMajority: number;
87
- nHispanic37to50: number;
88
- nHispanicMajority: number;
89
- nPacific37to50: number;
90
- nPacificMajority: number;
91
- nAsian37to50: number;
92
- nAsianMajority: number;
93
- nNative37to50: number;
94
- nNativeMajority: number;
95
- nMinority37to50: number;
96
- nMinorityMajority: number;
97
- averageDVoteShare: number;
98
- };
99
- details: {
100
- vap: true;
101
- comboCategories: true;
102
- };
103
- datasets: T.Datasets;
104
- resources: {};
105
- };
106
- export declare type PlanAnalytics = {
107
- requirements: RequirementsCategory;
108
- compactness: CompactnessCategory;
109
- splitting: SplittingCategory;
110
- partisan: PartisanCategory;
111
- minority: MinorityCategory;
112
- };
113
- export declare const samplePlanAnalytics: PlanAnalytics;
114
24
  export declare function prepareRequirementsChecklist(s: AnalyticsSession, bLog?: boolean): RequirementsChecklist;
115
25
  export declare const enum DistrictColumn {
116
26
  DistrictID = 0,
@@ -6,3 +6,4 @@ export declare const OUT_OF_STATE: string;
6
6
  export declare const EQUAL_TOLERANCE: number;
7
7
  export declare const COUNTY_SPLITTING_WEIGHT = 0.8;
8
8
  export declare const DISTRICT_SPLITTING_WEIGHT: number;
9
+ export declare const SHAPES = "2010 VTD shapes";
@@ -121,4 +121,4 @@ export declare type Datasets = {
121
121
  vap?: string;
122
122
  election?: string;
123
123
  };
124
- export { Profile, Scorecard, PopulationProfile, ShapeProfile, SplittingProfile, PartisanProfile, sampleProfile, sampleScorecard } from '@dra2020/dra-score';
124
+ export { Profile, Scorecard, sampleProfile, sampleScorecard } from '@dra2020/dra-score';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/district-analytics",
3
- "version": "3.3.0",
3
+ "version": "4.2.0",
4
4
  "description": "District analytics TypeScript package",
5
5
  "main": "dist/district-analytics.js",
6
6
  "files": [
@@ -48,7 +48,7 @@
48
48
  "yargs": "^12.0.5"
49
49
  },
50
50
  "dependencies": {
51
- "@dra2020/dra-score": "^2.0.1",
51
+ "@dra2020/dra-score": "^4.0.2",
52
52
  "@dra2020/dra-types": "^1.2.0",
53
53
  "@dra2020/poly": "1.0.9",
54
54
  "@dra2020/util": "1.0.24",