@dra2020/district-analytics 4.2.0 → 4.3.2

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.
@@ -10,7 +10,6 @@ export declare class AnalyticsSession {
10
10
  bOneTimeProcessingDone: boolean;
11
11
  bPlanAnalyzed: boolean;
12
12
  bPostProcessingDone: boolean;
13
- testScales: T.TestScales;
14
13
  tests: T.TestEntries;
15
14
  _profile?: Score.Profile;
16
15
  _scorecard?: Score.Scorecard;
@@ -22,7 +21,6 @@ export declare class AnalyticsSession {
22
21
  districts: D.Districts;
23
22
  constructor(SessionRequest: T.SessionRequest);
24
23
  processConfig(config: T.Dict): T.Dict;
25
- useLegacy(): boolean;
26
24
  analyzePlan(bLog?: boolean, overridesJSON?: any): boolean;
27
25
  getDistrictStatistics(bLog?: boolean): DistrictStatistics;
28
26
  getPlanProfile(bLog?: boolean): Score.Profile;
@@ -1,6 +1,4 @@
1
1
  import * as T from './types';
2
2
  import { AnalyticsSession } from './_api';
3
- export declare function doCountySplitting(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
4
- export declare function doDistrictSplitting(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
5
3
  export declare function doFindCountiesSplitUnexpectedly(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
6
4
  export declare function doFindSplitVTDs(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
@@ -1,5 +1,2 @@
1
- import * as T from './types';
2
1
  import { AnalyticsSession } from './_api';
3
- export declare function doReock(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
4
- export declare function doPolsbyPopper(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
5
2
  export declare function extractDistrictProperties(s: AnalyticsSession, bLog?: boolean): void;
@@ -1,4 +1,3 @@
1
1
  import * as T from './types';
2
2
  import { AnalyticsSession } from './_api';
3
- export declare function doPopulationDeviation(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
4
3
  export declare function doHasEqualPopulations(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
@@ -1,3 +0,0 @@
1
- import * as T from './types';
2
- import { AnalyticsSession } from './_api';
3
- export declare function doMajorityMinorityDistricts(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
@@ -1,8 +1 @@
1
- import * as T from './types';
2
- import { AnalyticsSession } from './_api';
3
- export declare function doSeatsBias(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
4
- export declare function doVotesBias(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
5
- export declare function doResponsiveness(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
6
- export declare function doResponsiveDistricts(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
7
- export declare function doEfficiencyGap(s: AnalyticsSession, bLog?: boolean): T.TestEntry;
8
1
  export declare function fptpWin(demPct: number): number;
@@ -68,5 +68,4 @@ export declare type DistrictStatistics = {
68
68
  };
69
69
  export declare const sampleDistrictStatistics: DistrictStatistics;
70
70
  export declare function prepareDistrictStatistics(s: AnalyticsSession, bLog?: boolean): DistrictStatistics;
71
- export declare function doConfigureScales(s: AnalyticsSession): void;
72
71
  export declare function doAnalyzePostProcessing(s: AnalyticsSession, bLog?: boolean): void;
@@ -56,9 +56,6 @@ export declare type TestScale = {
56
56
  bInvertRaw?: boolean;
57
57
  bInvertScaled?: boolean;
58
58
  };
59
- export declare type TestScales = {
60
- [test: number]: TestScale;
61
- };
62
59
  export declare type TestEntry = {
63
60
  score?: number | boolean;
64
61
  details: Dict;
@@ -73,18 +70,8 @@ export declare const enum Test {
73
70
  FreeOfHoles = 2,
74
71
  EqualPopulation = 3,
75
72
  PopulationDeviation = 4,
76
- Reock = 5,
77
- PolsbyPopper = 6,
78
- UnexpectedCountySplits = 7,
79
- CountySplitting = 8,
80
- DistrictSplitting = 9,
81
- VTDSplits = 10,
82
- SeatsBias = 11,
83
- VotesBias = 12,
84
- Responsiveness = 13,
85
- ResponsiveDistricts = 14,
86
- EfficiencyGap = 15,
87
- MajorityMinorityDistricts = 16
73
+ UnexpectedCountySplits = 5,
74
+ VTDSplits = 6
88
75
  }
89
76
  export declare type TestEntries = {
90
77
  [test: number]: TestEntry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/district-analytics",
3
- "version": "4.2.0",
3
+ "version": "4.3.2",
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": "^4.0.2",
51
+ "@dra2020/dra-score": "^4.1.2",
52
52
  "@dra2020/dra-types": "^1.2.0",
53
53
  "@dra2020/poly": "1.0.9",
54
54
  "@dra2020/util": "1.0.24",