@dra2020/district-analytics 5.7.0 → 6.0.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 +6 -3
- package/dist/cli.js.map +1 -1
- package/dist/district-analytics.js +3 -4
- package/dist/district-analytics.js.map +1 -1
- package/dist/src/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1872,9 +1872,11 @@ function scorePlan(s, p, bLog = false, overridesJSON) {
|
|
|
1872
1872
|
// Populate the N+1 summary "district" in district.statistics
|
|
1873
1873
|
let totalPop = s.districts.statistics[D.DistrictField.TotalPop];
|
|
1874
1874
|
let popDevPct = s.districts.statistics[D.DistrictField.PopDevPct];
|
|
1875
|
-
let
|
|
1875
|
+
let totalVAP = s.districts.statistics[D.DistrictField.TotalVAP];
|
|
1876
|
+
const summaryRow = s.districts.numberOfRows() - 1;
|
|
1876
1877
|
totalPop[summaryRow] = p.populationProfile.targetSize;
|
|
1877
1878
|
popDevPct[summaryRow] = popDev;
|
|
1879
|
+
totalVAP[summaryRow] = Math.round(totalVAP[summaryRow] / p.nDistricts);
|
|
1878
1880
|
// Add minority notes
|
|
1879
1881
|
scorecard.minority.details['majorityMinority'] = M.getMajorityMinority(s);
|
|
1880
1882
|
scorecard.minority.details['vraPreclearance'] = M.getVRASection5(s);
|
|
@@ -1935,9 +1937,6 @@ exports.SHAPES = "2010 VTD shapes";
|
|
|
1935
1937
|
// TYPE DEFINITIONS
|
|
1936
1938
|
//
|
|
1937
1939
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1938
|
-
var dra_score_1 = __webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score");
|
|
1939
|
-
exports.sampleProfile = dra_score_1.sampleProfile;
|
|
1940
|
-
exports.sampleScorecard = dra_score_1.sampleScorecard;
|
|
1941
1940
|
// END
|
|
1942
1941
|
|
|
1943
1942
|
|