@dra2020/district-analytics 14.2.0 → 15.0.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.
@@ -1,9 +1,9 @@
1
- import * as Score from '@dra2020/dra-score';
2
1
  import { Types } from '@dra2020/dra-analytics';
3
2
  import { RequirementsChecklist } from './results';
4
3
  import { DistrictStatistics } from './results';
5
4
  import * as D from './_data';
6
5
  import * as T from './types';
6
+ import * as L from './legacy-types';
7
7
  export declare class AnalyticsSession {
8
8
  title: string;
9
9
  legislativeDistricts: boolean;
@@ -12,8 +12,8 @@ export declare class AnalyticsSession {
12
12
  bPlanAnalyzed: boolean;
13
13
  bPostProcessingDone: boolean;
14
14
  tests: T.TestEntries;
15
- _profile?: Score.Profile;
16
- _scorecard?: Score.Scorecard;
15
+ _profile?: L.Profile;
16
+ _scorecard?: L.Scorecard;
17
17
  state: D.State;
18
18
  counties: D.Counties;
19
19
  graph: D.GraphClass;
@@ -26,8 +26,8 @@ export declare class AnalyticsSession {
26
26
  getGoodShapes(): T.GeoFeatureCollection;
27
27
  analyzeRacialPolarization(districtID: number, groups: Types.MinorityFilter, bLog?: boolean): Types.RPVAnalysis | undefined;
28
28
  getDistrictStatistics(bLog?: boolean): DistrictStatistics;
29
- getPlanProfile(bLog?: boolean): Score.Profile;
30
- getPlanScorecard(bLog?: boolean): Score.Scorecard;
29
+ getPlanProfile(bLog?: boolean): L.Profile;
30
+ getPlanScorecard(bLog?: boolean): L.Scorecard;
31
31
  getRatings(bLog?: boolean): T.Ratings;
32
32
  getRequirementsChecklist(bLog?: boolean): RequirementsChecklist;
33
33
  getDiscontiguousDistrictFeatures(bLog?: boolean): T.GeoFeatureCollection;
@@ -1,3 +1,2 @@
1
1
  import { AnalyticsSession } from './_api';
2
2
  export declare function extractDistrictProperties(s: AnalyticsSession, bLog?: boolean): void;
3
- export declare function scoreKIWYSICompactness(s: AnalyticsSession, bLog?: boolean): number[];
@@ -2,6 +2,7 @@ export * from './_api';
2
2
  export { geoIDForFeature, fieldForFeature, inferSelectedMinority } from './_data';
3
3
  export * from './results';
4
4
  export * from './types';
5
+ export { Profile, Scorecard } from './legacy-types';
5
6
  export * from './utils';
6
7
  import { Partisan, Rate, Splitting, Types } from '@dra2020/dra-analytics';
7
8
  export declare type MinorityFilter = Types.MinorityFilter;
@@ -1,12 +1,9 @@
1
- import * as Score from '@dra2020/dra-score';
1
+ import * as L from './legacy-types';
2
2
  import * as T from './types';
3
3
  import { AnalyticsSession } from './_api';
4
4
  import { Types } from '@dra2020/dra-analytics';
5
- import * as L from './legacy-types';
6
- export declare function profilePlan(s: AnalyticsSession, bLog?: boolean): Score.Profile;
7
- export declare function getStatewideDemographics(s: AnalyticsSession, bLog?: boolean): Score.Demographics;
8
- export declare function scorePlan(s: AnalyticsSession, p: Score.Profile, bLog?: boolean, overridesJSON?: any): Score.Scorecard;
9
- export declare function computeMetrics(p: Score.Profile, districtShapes: T.GeoFeatureCollection, bLog?: boolean): Types.Scorecard;
10
- export declare function rateKeyDimensions(scorecard: Types.Scorecard, p: Score.Profile, bLog?: boolean): Types.Scorecard;
5
+ export declare function profilePlan(s: AnalyticsSession, bLog?: boolean): L.Profile;
6
+ export declare function getStatewideDemographics(s: AnalyticsSession, bLog?: boolean): L.Demographics;
7
+ export declare function computeMetrics(p: L.Profile, districtShapes: T.GeoFeatureCollection, bLog?: boolean): Types.Scorecard;
8
+ export declare function rateKeyDimensions(scorecard: Types.Scorecard, p: L.Profile, bLog?: boolean): Types.Scorecard;
11
9
  export declare function thunkScorecard(newScorecard: Types.Scorecard, bLog?: boolean): L.Scorecard;
12
- export declare function compareScorecards(altLegacyScorecard: Score.Scorecard, legacyScorecard: Score.Scorecard, bLog?: boolean): void;
@@ -122,4 +122,3 @@ export declare type Ratings = {
122
122
  compactness: number;
123
123
  splitting: number;
124
124
  };
125
- export { Profile, Scorecard, } from '@dra2020/dra-score';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/district-analytics",
3
- "version": "14.2.0",
3
+ "version": "15.0.2",
4
4
  "description": "District analytics TypeScript package",
5
5
  "main": "dist/district-analytics.js",
6
6
  "files": [
@@ -48,8 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@dra2020/baseclient": "^1.0.38",
51
- "@dra2020/dra-analytics": "^0.6.0",
52
- "@dra2020/dra-score": "^11.1.3",
51
+ "@dra2020/dra-analytics": "^2.0.0",
53
52
  "@dra2020/dra-types": "^1.8.28",
54
53
  "geojson": "^0.5.0"
55
54
  }