@dra2020/dra-types 1.8.59 → 1.8.62
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/LICENSE +1 -1
- package/dist/all.d.ts +2 -0
- package/dist/dra-types.js +367 -3
- package/dist/dra-types.js.map +1 -1
- package/lib/all.ts +2 -0
- package/lib/colordata.ts +321 -0
- package/lib/gencolor.ts +26 -0
- package/lib/schemas.ts +11 -0
- package/lib/stateinfo.ts +2 -3
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2019-
|
|
3
|
+
Copyright (c) 2019-2022 Dave's Redistricting, LLC.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/all.d.ts
CHANGED
package/dist/dra-types.js
CHANGED
|
@@ -33,6 +33,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
33
33
|
__exportStar(__webpack_require__(/*! ./dra-types */ "./lib/dra-types.ts"), exports);
|
|
34
34
|
__exportStar(__webpack_require__(/*! ./schemas */ "./lib/schemas.ts"), exports);
|
|
35
35
|
__exportStar(__webpack_require__(/*! ./bucketmap */ "./lib/bucketmap.ts"), exports);
|
|
36
|
+
__exportStar(__webpack_require__(/*! ./colordata */ "./lib/colordata.ts"), exports);
|
|
37
|
+
__exportStar(__webpack_require__(/*! ./gencolor */ "./lib/gencolor.ts"), exports);
|
|
36
38
|
__exportStar(__webpack_require__(/*! ./vfeature */ "./lib/vfeature.ts"), exports);
|
|
37
39
|
__exportStar(__webpack_require__(/*! ./csv */ "./lib/csv.ts"), exports);
|
|
38
40
|
__exportStar(__webpack_require__(/*! ./stats */ "./lib/stats.ts"), exports);
|
|
@@ -87,6 +89,326 @@ exports.BucketMap = {
|
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
|
|
92
|
+
/***/ }),
|
|
93
|
+
|
|
94
|
+
/***/ "./lib/colordata.ts":
|
|
95
|
+
/*!**************************!*\
|
|
96
|
+
!*** ./lib/colordata.ts ***!
|
|
97
|
+
\**************************/
|
|
98
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
102
|
+
exports.IntensityBackgroundColor = exports.ElectionLabel = exports.ElectionTextColor = exports.ElectionBackgroundColor = exports.ColorByGreatD = exports.ColorByGoodD = exports.ColorByFairD = exports.ColorByEven = exports.ColorByFairR = exports.ColorByGoodR = exports.ColorByGreatR = exports.EthnicLabel = exports.EthnicTextColor = exports.EthnicBackgroundColor = exports.ColorByBlackAsian = exports.ColorByAsianHispanic = exports.ColorByAsianWhite = exports.ColorByHispanicBlack = exports.ColorByBlackWhite = exports.ColorByHispanicWhite = exports.ColorByMix = exports.ColorByMostlyNative = exports.ColorByMostlyAsian = exports.ColorByMostlyHispanic = exports.ColorByMostlyBlack = exports.ColorByMostlyWhite = exports.ColorBySolidAsian = exports.ColorBySolidHispanic = exports.ColorBySolidBlack = exports.ColorBySolidWhite = exports.ColorValues = exports.DefaultColorNames = void 0;
|
|
103
|
+
exports.DefaultColorNames = [
|
|
104
|
+
'GhostWhite',
|
|
105
|
+
'Blue',
|
|
106
|
+
'Green',
|
|
107
|
+
'DarkMagenta',
|
|
108
|
+
'Red',
|
|
109
|
+
'Gold',
|
|
110
|
+
'Teal',
|
|
111
|
+
'Chocolate',
|
|
112
|
+
'SlateBlue',
|
|
113
|
+
'Cyan',
|
|
114
|
+
'DeepPink',
|
|
115
|
+
'Chartreuse',
|
|
116
|
+
'CornflowerBlue',
|
|
117
|
+
'DarkSalmon',
|
|
118
|
+
'Olive',
|
|
119
|
+
'DarkOrange',
|
|
120
|
+
'Lime',
|
|
121
|
+
'DarkSlateBlue',
|
|
122
|
+
'Yellow',
|
|
123
|
+
'YellowGreen',
|
|
124
|
+
'Pink',
|
|
125
|
+
'Maroon',
|
|
126
|
+
'Sienna',
|
|
127
|
+
'Aquamarine',
|
|
128
|
+
'Indigo',
|
|
129
|
+
'PaleVioletRed',
|
|
130
|
+
'Navy',
|
|
131
|
+
'SpringGreen',
|
|
132
|
+
'Plum',
|
|
133
|
+
'DarkSeaGreen',
|
|
134
|
+
'LightCoral',
|
|
135
|
+
'Khaki',
|
|
136
|
+
'OrangeRed',
|
|
137
|
+
'RoyalBlue',
|
|
138
|
+
'LimeGreen',
|
|
139
|
+
'DarkOrchid',
|
|
140
|
+
'Orange',
|
|
141
|
+
'DodgerBlue',
|
|
142
|
+
'MediumAquamarine',
|
|
143
|
+
'Moccasin',
|
|
144
|
+
'Firebrick',
|
|
145
|
+
'LightSteelBlue',
|
|
146
|
+
'LawnGreen',
|
|
147
|
+
'Magenta',
|
|
148
|
+
'MediumVioletRed',
|
|
149
|
+
'Turquoise',
|
|
150
|
+
'Tomato',
|
|
151
|
+
'Thistle',
|
|
152
|
+
'SandyBrown',
|
|
153
|
+
'IndianRed',
|
|
154
|
+
'PowderBlue',
|
|
155
|
+
'SaddleBrown',
|
|
156
|
+
'OliveDrab',
|
|
157
|
+
'Fuchsia',
|
|
158
|
+
'PeachPuff',
|
|
159
|
+
'RosyBrown',
|
|
160
|
+
];
|
|
161
|
+
exports.ColorValues = {
|
|
162
|
+
'AliceBlue': '#F0F8FF',
|
|
163
|
+
'AntiqueWhite': '#FAEBD7',
|
|
164
|
+
'Aqua': '#00FFFF',
|
|
165
|
+
'Aquamarine': '#7FFFD4',
|
|
166
|
+
'Azure': '#F0FFFF',
|
|
167
|
+
'Beige': '#F5F5DC',
|
|
168
|
+
'Bisque': '#FFE4C4',
|
|
169
|
+
'Black': '#000000',
|
|
170
|
+
'BlanchedAlmond': '#FFEBCD',
|
|
171
|
+
'Blue': '#0000FF',
|
|
172
|
+
'BlueViolet': '#8A2BE2',
|
|
173
|
+
'Brown': '#A52A2A',
|
|
174
|
+
'BurlyWood': '#DEB887',
|
|
175
|
+
'CadetBlue': '#5F9EA0',
|
|
176
|
+
'Chartreuse': '#7FFF00',
|
|
177
|
+
'Chocolate': '#D2691E',
|
|
178
|
+
'Coral': '#FF7F50',
|
|
179
|
+
'CornflowerBlue': '#6495ED',
|
|
180
|
+
'Cornsilk': '#FFF8DC',
|
|
181
|
+
'Crimson': '#DC143C',
|
|
182
|
+
'Cyan': '#00FFFF',
|
|
183
|
+
'DarkBlue': '#00008B',
|
|
184
|
+
'DarkCyan': '#008B8B',
|
|
185
|
+
'DarkGoldenrod': '#B8860B',
|
|
186
|
+
'DarkGray': '#A9A9A9',
|
|
187
|
+
'DarkGreen': '#006400',
|
|
188
|
+
'DarkKhaki': '#BDB76B',
|
|
189
|
+
'DarkMagenta': '#8B008B',
|
|
190
|
+
'DarkOliveGreen': '#556B2F',
|
|
191
|
+
'DarkOrange': '#FF8C00',
|
|
192
|
+
'DarkOrchid': '#9932CC',
|
|
193
|
+
'DarkRed': '#8B0000',
|
|
194
|
+
'DarkSalmon': '#E9967A',
|
|
195
|
+
'DarkSeaGreen': '#8FBC8F',
|
|
196
|
+
'DarkSlateBlue': '#483D8B',
|
|
197
|
+
'DarkSlateGray': '#2F4F4F',
|
|
198
|
+
'DarkTurquoise': '#00CED1',
|
|
199
|
+
'DarkViolet': '#9400D3',
|
|
200
|
+
'DeepPink': '#FF1493',
|
|
201
|
+
'DeepSkyBlue': '#00BFFF',
|
|
202
|
+
'DimGray': '#696969',
|
|
203
|
+
'DodgerBlue': '#1E90FF',
|
|
204
|
+
'Firebrick': '#B22222',
|
|
205
|
+
'FloralWhite': '#FFFAF0',
|
|
206
|
+
'ForestGreen': '#228B22',
|
|
207
|
+
'Fuchsia': '#FF00FF',
|
|
208
|
+
'Gainsboro': '#DCDCDC',
|
|
209
|
+
'GhostWhite': '#F8F8FF',
|
|
210
|
+
'Gold': '#FFD700',
|
|
211
|
+
'Goldenrod': '#DAA520',
|
|
212
|
+
'Gray': '#808080',
|
|
213
|
+
'Green': '#008000',
|
|
214
|
+
'GreenYellow': '#ADFF2F',
|
|
215
|
+
'Honeydew': '#F0FFF0',
|
|
216
|
+
'HotPink': '#FF69B4',
|
|
217
|
+
'IndianRed': '#CD5C5C',
|
|
218
|
+
'Indigo': '#4B0082',
|
|
219
|
+
'Ivory': '#FFFFF0',
|
|
220
|
+
'Khaki': '#F0E68C',
|
|
221
|
+
'Lavender': '#E6E6FA',
|
|
222
|
+
'LavenderBlush': '#FFF0F5',
|
|
223
|
+
'LawnGreen': '#7CFC00',
|
|
224
|
+
'LemonChiffon': '#FFFACD',
|
|
225
|
+
'LightBlue': '#ADD8E6',
|
|
226
|
+
'LightCoral': '#F08080',
|
|
227
|
+
'LightCyan': '#E0FFFF',
|
|
228
|
+
'LightGoldenrodYellow': '#FAFAD2',
|
|
229
|
+
'LightGray': '#D3D3D3',
|
|
230
|
+
'LightGreen': '#90EE90',
|
|
231
|
+
'LightPink': '#FFB6C1',
|
|
232
|
+
'LightSalmon': '#FFA07A',
|
|
233
|
+
'LightSeaGreen': '#20B2AA',
|
|
234
|
+
'LightSkyBlue': '#87CEFA',
|
|
235
|
+
'LightSlateGray': '#778899',
|
|
236
|
+
'LightSteelBlue': '#B0C4DE',
|
|
237
|
+
'LightYellow': '#FFFFE0',
|
|
238
|
+
'Lime': '#00FF00',
|
|
239
|
+
'LimeGreen': '#32CD32',
|
|
240
|
+
'Linen': '#FAF0E6',
|
|
241
|
+
'Magenta': '#FF00FF',
|
|
242
|
+
'Maroon': '#800000',
|
|
243
|
+
'MediumAquamarine': '#66CDAA',
|
|
244
|
+
'MediumBlue': '#0000CD',
|
|
245
|
+
'MediumOrchid': '#BA55D3',
|
|
246
|
+
'MediumPurple': '#9370DB',
|
|
247
|
+
'MediumSeaGreen': '#3CB371',
|
|
248
|
+
'MediumSlateBlue': '#7B68EE',
|
|
249
|
+
'MediumSpringGreen': '#00FA9A',
|
|
250
|
+
'MediumTurquoise': '#48D1CC',
|
|
251
|
+
'MediumVioletRed': '#C71585',
|
|
252
|
+
'MidnightBlue': '#191970',
|
|
253
|
+
'MintCream': '#F5FFFA',
|
|
254
|
+
'MistyRose': '#FFE4E1',
|
|
255
|
+
'Moccasin': '#FFE4B5',
|
|
256
|
+
'NavajoWhite': '#FFDEAD',
|
|
257
|
+
'Navy': '#000080',
|
|
258
|
+
'OldLace': '#FDF5E6',
|
|
259
|
+
'Olive': '#808000',
|
|
260
|
+
'OliveDrab': '#6B8E23',
|
|
261
|
+
'Orange': '#FFA500',
|
|
262
|
+
'OrangeRed': '#FF4500',
|
|
263
|
+
'Orchid': '#DA70D6',
|
|
264
|
+
'PaleGoldenrod': '#EEE8AA',
|
|
265
|
+
'PaleGreen': '#98FB98',
|
|
266
|
+
'PaleTurquoise': '#AFEEEE',
|
|
267
|
+
'PaleVioletRed': '#DB7093',
|
|
268
|
+
'PapayaWhip': '#FFEFD5',
|
|
269
|
+
'PeachPuff': '#FFDAB9',
|
|
270
|
+
'Peru': '#CD853F',
|
|
271
|
+
'Pink': '#FFC0CB',
|
|
272
|
+
'Plum': '#DDA0DD',
|
|
273
|
+
'PowderBlue': '#B0E0E6',
|
|
274
|
+
'Purple': '#800080',
|
|
275
|
+
'Red': '#FF0000',
|
|
276
|
+
'RosyBrown': '#BC8F8F',
|
|
277
|
+
'RoyalBlue': '#4169E1',
|
|
278
|
+
'SaddleBrown': '#8B4513',
|
|
279
|
+
'Salmon': '#FA8072',
|
|
280
|
+
'SandyBrown': '#F4A460',
|
|
281
|
+
'SeaGreen': '#2E8B57',
|
|
282
|
+
'SeaShell': '#FFF5EE',
|
|
283
|
+
'Sienna': '#A0522D',
|
|
284
|
+
'Silver': '#C0C0C0',
|
|
285
|
+
'SkyBlue': '#87CEEB',
|
|
286
|
+
'SlateBlue': '#6A5ACD',
|
|
287
|
+
'SlateGray': '#708090',
|
|
288
|
+
'Snow': '#FFFAFA',
|
|
289
|
+
'SpringGreen': '#00FF7F',
|
|
290
|
+
'SteelBlue': '#4682B4',
|
|
291
|
+
'Tan': '#D2B48C',
|
|
292
|
+
'Teal': '#008080',
|
|
293
|
+
'Thistle': '#D8BFD8',
|
|
294
|
+
'Tomato': '#FF6347',
|
|
295
|
+
'Turquoise': '#40E0D0',
|
|
296
|
+
'Violet': '#EE82EE',
|
|
297
|
+
'Wheat': '#F5DEB3',
|
|
298
|
+
'White': '#FFFFFF',
|
|
299
|
+
'WhiteSmoke': '#F5F5F5',
|
|
300
|
+
'Yellow': '#FFFF00',
|
|
301
|
+
'YellowGreen': '#9ACD32',
|
|
302
|
+
};
|
|
303
|
+
exports.ColorBySolidWhite = 0;
|
|
304
|
+
exports.ColorBySolidBlack = 1;
|
|
305
|
+
exports.ColorBySolidHispanic = 2;
|
|
306
|
+
exports.ColorBySolidAsian = 3;
|
|
307
|
+
exports.ColorByMostlyWhite = 4;
|
|
308
|
+
exports.ColorByMostlyBlack = 5;
|
|
309
|
+
exports.ColorByMostlyHispanic = 6;
|
|
310
|
+
exports.ColorByMostlyAsian = 7;
|
|
311
|
+
exports.ColorByMostlyNative = 8;
|
|
312
|
+
exports.ColorByMix = 9;
|
|
313
|
+
exports.ColorByHispanicWhite = 10;
|
|
314
|
+
exports.ColorByBlackWhite = 11;
|
|
315
|
+
exports.ColorByHispanicBlack = 12;
|
|
316
|
+
exports.ColorByAsianWhite = 13;
|
|
317
|
+
exports.ColorByAsianHispanic = 14;
|
|
318
|
+
exports.ColorByBlackAsian = 15;
|
|
319
|
+
exports.EthnicBackgroundColor = [
|
|
320
|
+
'#c0392b',
|
|
321
|
+
'#3498db',
|
|
322
|
+
'#2ecc71',
|
|
323
|
+
'#9b59b6',
|
|
324
|
+
'#d98880',
|
|
325
|
+
'#aed6f1',
|
|
326
|
+
'#abebc6',
|
|
327
|
+
'#bb8fce',
|
|
328
|
+
'#f1c40f',
|
|
329
|
+
'#aab7b8',
|
|
330
|
+
'#d5f5e3',
|
|
331
|
+
'#d6eaf8',
|
|
332
|
+
'#186a3b',
|
|
333
|
+
'#e8daef',
|
|
334
|
+
'#45b39d',
|
|
335
|
+
'#4a235a', // black / asian
|
|
336
|
+
];
|
|
337
|
+
exports.EthnicTextColor = [
|
|
338
|
+
'#ffffff',
|
|
339
|
+
'#ffffff',
|
|
340
|
+
'#ffffff',
|
|
341
|
+
'#ffffff',
|
|
342
|
+
'#000000',
|
|
343
|
+
'#000000',
|
|
344
|
+
'#000000',
|
|
345
|
+
'#000000',
|
|
346
|
+
'#000000',
|
|
347
|
+
'#000000',
|
|
348
|
+
'#000000',
|
|
349
|
+
'#000000',
|
|
350
|
+
'#ffffff',
|
|
351
|
+
'#000000',
|
|
352
|
+
'#000000',
|
|
353
|
+
'#ffffff',
|
|
354
|
+
];
|
|
355
|
+
exports.EthnicLabel = [
|
|
356
|
+
'Solid White',
|
|
357
|
+
'Solid Black',
|
|
358
|
+
'Solid Hispanic',
|
|
359
|
+
'Solid Asian',
|
|
360
|
+
'Mostly White',
|
|
361
|
+
'Mostly Black',
|
|
362
|
+
'Mostly Hispanic',
|
|
363
|
+
'Mostly Asian',
|
|
364
|
+
'Mostly Native',
|
|
365
|
+
'Mixed',
|
|
366
|
+
'Hispanic / White Mix',
|
|
367
|
+
'Black / White Mix',
|
|
368
|
+
'Hispanic / Black Mix',
|
|
369
|
+
'Asian / White Mix',
|
|
370
|
+
'Asian / Hispanic Mix',
|
|
371
|
+
'Black / Asian Mix'
|
|
372
|
+
];
|
|
373
|
+
exports.ColorByGreatR = 0;
|
|
374
|
+
exports.ColorByGoodR = 1;
|
|
375
|
+
exports.ColorByFairR = 2;
|
|
376
|
+
exports.ColorByEven = 3;
|
|
377
|
+
exports.ColorByFairD = 4;
|
|
378
|
+
exports.ColorByGoodD = 5;
|
|
379
|
+
exports.ColorByGreatD = 6;
|
|
380
|
+
exports.ElectionBackgroundColor = [
|
|
381
|
+
'#CF0000',
|
|
382
|
+
'#FF4555',
|
|
383
|
+
'#FFB0CB',
|
|
384
|
+
'#9932CC',
|
|
385
|
+
'#87CEEB',
|
|
386
|
+
'#1E90FF',
|
|
387
|
+
'#0000CF', // greatD
|
|
388
|
+
];
|
|
389
|
+
exports.ElectionTextColor = [
|
|
390
|
+
'#ffffff',
|
|
391
|
+
'#000000',
|
|
392
|
+
'#000000',
|
|
393
|
+
'#ffffff',
|
|
394
|
+
'#000000',
|
|
395
|
+
'#000000',
|
|
396
|
+
'#ffffff',
|
|
397
|
+
];
|
|
398
|
+
exports.ElectionLabel = [
|
|
399
|
+
'Great Republican',
|
|
400
|
+
'Good Republican',
|
|
401
|
+
'Fair Republican',
|
|
402
|
+
'Even',
|
|
403
|
+
'Fair Democrat',
|
|
404
|
+
'Good Democrat',
|
|
405
|
+
'Great Democrat'
|
|
406
|
+
];
|
|
407
|
+
const lum = [0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 255];
|
|
408
|
+
exports.IntensityBackgroundColor = [];
|
|
409
|
+
lum.forEach((n) => { exports.IntensityBackgroundColor.push(`rgba(${n}, ${n}, ${n}, 1.0)`); });
|
|
410
|
+
|
|
411
|
+
|
|
90
412
|
/***/ }),
|
|
91
413
|
|
|
92
414
|
/***/ "./lib/csv.ts":
|
|
@@ -716,6 +1038,39 @@ exports.StateNameMap = {
|
|
|
716
1038
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
717
1039
|
|
|
718
1040
|
|
|
1041
|
+
/***/ }),
|
|
1042
|
+
|
|
1043
|
+
/***/ "./lib/gencolor.ts":
|
|
1044
|
+
/*!*************************!*\
|
|
1045
|
+
!*** ./lib/gencolor.ts ***!
|
|
1046
|
+
\*************************/
|
|
1047
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1051
|
+
exports.genColor = void 0;
|
|
1052
|
+
const ColorData = __webpack_require__(/*! ./colordata */ "./lib/colordata.ts");
|
|
1053
|
+
let ColorTable = null;
|
|
1054
|
+
const MaxColors = 100;
|
|
1055
|
+
function genColor(i, useFirstColor) {
|
|
1056
|
+
// i is district number, 0 => District[0] (unassigned), so subtract 1 to access ColorTable
|
|
1057
|
+
function gen_table() {
|
|
1058
|
+
ColorTable = [];
|
|
1059
|
+
for (let i = 0; i < MaxColors; i++) {
|
|
1060
|
+
// A little funky math below to skip the first (white) color
|
|
1061
|
+
let j = (i % (ColorData.DefaultColorNames.length - 1)) + 1;
|
|
1062
|
+
ColorTable.push(ColorData.ColorValues[ColorData.DefaultColorNames[j]]);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
if (ColorTable == null)
|
|
1066
|
+
gen_table();
|
|
1067
|
+
if (i == 0)
|
|
1068
|
+
return ColorData.ColorValues[ColorData.DefaultColorNames[0]];
|
|
1069
|
+
return ColorTable[((i - 1) + (useFirstColor ? 0 : 1)) % MaxColors];
|
|
1070
|
+
}
|
|
1071
|
+
exports.genColor = genColor;
|
|
1072
|
+
|
|
1073
|
+
|
|
719
1074
|
/***/ }),
|
|
720
1075
|
|
|
721
1076
|
/***/ "./lib/groups.ts":
|
|
@@ -1101,6 +1456,16 @@ exports.Schemas = {
|
|
|
1101
1456
|
},
|
|
1102
1457
|
KeySchema: { createdBy: 'HASH', id: 'RANGE' },
|
|
1103
1458
|
},
|
|
1459
|
+
'cull': {
|
|
1460
|
+
FileOptions: { map: true },
|
|
1461
|
+
Schema: {
|
|
1462
|
+
id: 'S',
|
|
1463
|
+
key: 'S',
|
|
1464
|
+
bucket: 'S',
|
|
1465
|
+
expires: 'S',
|
|
1466
|
+
},
|
|
1467
|
+
KeySchema: { id: 'HASH' },
|
|
1468
|
+
},
|
|
1104
1469
|
};
|
|
1105
1470
|
|
|
1106
1471
|
|
|
@@ -1158,7 +1523,6 @@ exports.splitToGeoFeature = splitToGeoFeature;
|
|
|
1158
1523
|
|
|
1159
1524
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1160
1525
|
exports.inferPlanType = exports.getStateYearTotalPop = exports.getPlanDistrictCount = exports.hasOneLegislativePlanBothHouses = exports.hasPlanType = exports.StatePlanInfoMap = void 0;
|
|
1161
|
-
// TODO: 2020 Congress nDistricts are apportionment estimates (https://www.electiondataservices.com/wp-content/uploads/2020/12/2020ApportionmentTablesMaps.pdf) Update when apportionment happens
|
|
1162
1526
|
exports.StatePlanInfoMap = {
|
|
1163
1527
|
"AL": { "2010_VD": { population: 4779736, congress: { nDistricts: 7 }, upper: { nDistricts: 35 }, lower: { nDistricts: 105 } }, "2020_VD": { population: 0, congress: { nDistricts: 7 }, upper: { nDistricts: 35 }, lower: { nDistricts: 105 } } },
|
|
1164
1528
|
"AK": { "2010_VD": { population: 710231, congress: { nDistricts: 1 }, upper: { nDistricts: 20 }, lower: { nDistricts: 40 } }, "2020_VD": { population: 0, congress: { nDistricts: 1 }, upper: { nDistricts: 20 }, lower: { nDistricts: 40 } } },
|
|
@@ -1188,7 +1552,7 @@ exports.StatePlanInfoMap = {
|
|
|
1188
1552
|
"MT": { "2010_VD": { population: 989415, congress: { nDistricts: 1 }, upper: { nDistricts: 50 }, lower: { nDistricts: 100 } }, "2020_VD": { population: 6, congress: { nDistricts: 2 }, upper: { nDistricts: 50 }, lower: { nDistricts: 100 } } },
|
|
1189
1553
|
"NE": { "2010_VD": { population: 1826341, congress: { nDistricts: 3 }, upper: { nDistricts: 49 } }, "2020_VD": { population: 6, congress: { nDistricts: 3 }, upper: { nDistricts: 49 } } },
|
|
1190
1554
|
"NV": { "2010_VD": { population: 2700551, congress: { nDistricts: 4 }, upper: { nDistricts: 21 }, lower: { nDistricts: 42 } }, "2020_VD": { population: 6, congress: { nDistricts: 4 }, upper: { nDistricts: 21 }, lower: { nDistricts: 42 } } },
|
|
1191
|
-
"NH": { "2010_VD": { population: 1316470, congress: { nDistricts: 2 }, upper: { nDistricts: 24 }, lower: { nDistricts: 161 } }, "2020_VD": { population: 6, congress: { nDistricts: 2 }, upper: { nDistricts: 24 }, lower: { nDistricts:
|
|
1555
|
+
"NH": { "2010_VD": { population: 1316470, congress: { nDistricts: 2 }, upper: { nDistricts: 24 }, lower: { nDistricts: 161 } }, "2020_VD": { population: 6, congress: { nDistricts: 2 }, upper: { nDistricts: 24 }, lower: { nDistricts: 164 } } },
|
|
1192
1556
|
"NJ": { "2010_VD": { population: 8791894, congress: { nDistricts: 12 }, upper: { nDistricts: 40 } }, "2020_VD": { population: 6, congress: { nDistricts: 12 }, upper: { nDistricts: 40 } } },
|
|
1193
1557
|
"NM": { "2010_VD": { population: 2059179, congress: { nDistricts: 3 }, upper: { nDistricts: 42 }, lower: { nDistricts: 70 } }, "2020_VD": { population: 6, congress: { nDistricts: 3 }, upper: { nDistricts: 42 }, lower: { nDistricts: 70 } } },
|
|
1194
1558
|
"NY": { "2010_VD": { population: 19378102, congress: { nDistricts: 27 }, upper: { nDistricts: 63 }, lower: { nDistricts: 150 } }, "2020_VD": { population: 6, congress: { nDistricts: 26 }, upper: { nDistricts: 63 }, lower: { nDistricts: 150 } } },
|
|
@@ -1209,7 +1573,7 @@ exports.StatePlanInfoMap = {
|
|
|
1209
1573
|
"WA": { "2010_VD": { population: 6724540, congress: { nDistricts: 10 }, upper: { nDistricts: 49 } }, "2020_VD": { population: 6, congress: { nDistricts: 10 }, upper: { nDistricts: 49 } } },
|
|
1210
1574
|
"WV": { "2010_VD": { population: 1852994, congress: { nDistricts: 3 }, upper: { nDistricts: 17 }, lower: { nDistricts: 67 } }, "2020_VD": { population: 6, congress: { nDistricts: 2 }, upper: { nDistricts: 17 }, lower: { nDistricts: 100 } } },
|
|
1211
1575
|
"WI": { "2010_VD": { population: 5686986, congress: { nDistricts: 8 }, upper: { nDistricts: 33 }, lower: { nDistricts: 99 } }, "2020_VD": { population: 6, congress: { nDistricts: 8 }, upper: { nDistricts: 33 }, lower: { nDistricts: 99 } } },
|
|
1212
|
-
"WY": { "2010_VD": { population: 563626, congress: { nDistricts: 1 }, upper: { nDistricts: 30 }, lower: { nDistricts: 60 } }, "2020_VD": { population: 6, congress: { nDistricts: 1 }, upper: { nDistricts:
|
|
1576
|
+
"WY": { "2010_VD": { population: 563626, congress: { nDistricts: 1 }, upper: { nDistricts: 30 }, lower: { nDistricts: 60 } }, "2020_VD": { population: 6, congress: { nDistricts: 1 }, upper: { nDistricts: 31 }, lower: { nDistricts: 62 } } },
|
|
1213
1577
|
"DC": { "2010_VD": { population: 601723, congress: { nDistricts: 1 }, upper: { nDistricts: 8 } }, "2020_VD": { population: 6, congress: { nDistricts: 1 }, upper: { nDistricts: 8 } } },
|
|
1214
1578
|
"PR": { "2010_VD": { population: 0, congress: { nDistricts: 1 }, upper: { nDistricts: 1 } }, "2020_VD": { population: 0, congress: { nDistricts: 1 }, upper: { nDistricts: 1 } } },
|
|
1215
1579
|
};
|