@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.
- package/dist/district-analytics.js +36 -488
- package/dist/district-analytics.js.map +1 -1
- package/dist/src/_api.d.ts +5 -5
- package/dist/src/compact.d.ts +0 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/score.d.ts +5 -8
- package/dist/src/types.d.ts +0 -1
- package/package.json +2 -3
package/dist/src/_api.d.ts
CHANGED
|
@@ -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?:
|
|
16
|
-
_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):
|
|
30
|
-
getPlanScorecard(bLog?: boolean):
|
|
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;
|
package/dist/src/compact.d.ts
CHANGED
package/dist/src/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/src/score.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import * as
|
|
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
|
-
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
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;
|
package/dist/src/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dra2020/district-analytics",
|
|
3
|
-
"version": "
|
|
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.
|
|
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
|
}
|