@mailwoman/tiger 5.8.0 → 5.10.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/block-group.ts +4 -4
- package/class-code.ts +168 -166
- package/constants.ts +35 -28
- package/county-subdivision.ts +4 -4
- package/county.ts +4 -4
- package/files.ts +41 -32
- package/functional-status.ts +16 -14
- package/geoid.ts +13 -11
- package/index.ts +12 -12
- package/legal-statistical-area.ts +140 -137
- package/out/block-group.d.ts +4 -4
- package/out/class-code.d.ts +167 -166
- package/out/class-code.d.ts.map +1 -1
- package/out/class-code.js +166 -167
- package/out/class-code.js.map +1 -1
- package/out/constants.d.ts +31 -28
- package/out/constants.d.ts.map +1 -1
- package/out/constants.js +23 -26
- package/out/constants.js.map +1 -1
- package/out/county-subdivision.d.ts +4 -4
- package/out/county.d.ts +4 -4
- package/out/files.d.ts +35 -33
- package/out/files.d.ts.map +1 -1
- package/out/files.js +19 -21
- package/out/files.js.map +1 -1
- package/out/functional-status.d.ts +15 -14
- package/out/functional-status.d.ts.map +1 -1
- package/out/functional-status.js +14 -15
- package/out/functional-status.js.map +1 -1
- package/out/geoid.d.ts +20 -19
- package/out/geoid.d.ts.map +1 -1
- package/out/geoid.js +10 -11
- package/out/geoid.js.map +1 -1
- package/out/index.d.ts +12 -12
- package/out/legal-statistical-area.d.ts +138 -137
- package/out/legal-statistical-area.d.ts.map +1 -1
- package/out/legal-statistical-area.js +137 -138
- package/out/legal-statistical-area.js.map +1 -1
- package/out/sdk/index.d.ts +4 -4
- package/out/sdk/state/TIGERTabulatedBlockEntity.d.ts +1 -2
- package/out/sdk/state/TIGERTabulatedBlockEntity.d.ts.map +1 -1
- package/out/sdk/state/index.d.ts +3 -3
- package/out/state.d.ts +302 -297
- package/out/state.d.ts.map +1 -1
- package/out/state.js +181 -186
- package/out/state.js.map +1 -1
- package/out/tabulation-block.d.ts +3 -3
- package/out/tabulation-block.d.ts.map +1 -1
- package/out/tools/index.d.ts +15 -0
- package/out/tools/index.d.ts.map +1 -0
- package/out/tools/index.js +15 -0
- package/out/tools/index.js.map +1 -0
- package/out/tools/race-dots-map.d.ts +29 -5
- package/out/tools/race-dots-map.d.ts.map +1 -1
- package/out/tools/race-dots-map.js +53 -64
- package/out/tools/race-dots-map.js.map +1 -1
- package/out/tools/race-dots.d.ts +27 -7
- package/out/tools/race-dots.d.ts.map +1 -1
- package/out/tools/race-dots.js +85 -89
- package/out/tools/race-dots.js.map +1 -1
- package/out/tools/serve-range.d.ts +23 -4
- package/out/tools/serve-range.d.ts.map +1 -1
- package/out/tools/serve-range.js +47 -36
- package/out/tools/serve-range.js.map +1 -1
- package/out/tract.d.ts +3 -3
- package/out/tract.d.ts.map +1 -1
- package/out/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -6
- package/sdk/fetch.ts +2 -2
- package/sdk/index.ts +4 -4
- package/sdk/redistricting.ts +2 -2
- package/sdk/state/index.ts +3 -3
- package/state.ts +193 -183
- package/tabulation-block.ts +20 -20
- package/tools/index.ts +15 -0
- package/tools/race-dots-map.ts +79 -70
- package/tools/race-dots.ts +127 -104
- package/tools/serve-range.ts +69 -38
- package/tract.ts +12 -12
- package/tsconfig.json +2 -1
package/tract.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { type GeoFeature, type MultiPolygonLiteral } from "@mailwoman/spatial"
|
|
8
8
|
|
|
9
|
-
import { TIGERProperty, type TIGERPropertyRecord } from "./constants.
|
|
10
|
-
import type { FIPSTractGeoID, GeoIDPart, ParsedGeoIDTractLevel } from "./geoid.
|
|
9
|
+
import { TIGERProperty, type TIGERPropertyRecord } from "./constants.ts"
|
|
10
|
+
import type { FIPSTractGeoID, GeoIDPart, ParsedGeoIDTractLevel } from "./geoid.ts"
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @title TIGER Tract
|
|
@@ -35,16 +35,16 @@ export interface TIGERTract extends ParsedGeoIDTractLevel {
|
|
|
35
35
|
*/
|
|
36
36
|
export type TIGERTractProperties = Pick<
|
|
37
37
|
TIGERPropertyRecord<FIPSTractGeoID>,
|
|
38
|
-
| TIGERProperty.GeoID
|
|
39
|
-
| GeoIDPart.State
|
|
40
|
-
| GeoIDPart.County
|
|
41
|
-
| GeoIDPart.Tract
|
|
42
|
-
| TIGERProperty.ClassCode
|
|
43
|
-
| TIGERProperty.FunctionalStatus
|
|
44
|
-
| TIGERProperty.LandAreaSqm
|
|
45
|
-
| TIGERProperty.WaterAreaSqm
|
|
46
|
-
| TIGERProperty.CentroidLongitude
|
|
47
|
-
| TIGERProperty.CentroidLatitude
|
|
38
|
+
| typeof TIGERProperty.GeoID
|
|
39
|
+
| typeof GeoIDPart.State
|
|
40
|
+
| typeof GeoIDPart.County
|
|
41
|
+
| typeof GeoIDPart.Tract
|
|
42
|
+
| typeof TIGERProperty.ClassCode
|
|
43
|
+
| typeof TIGERProperty.FunctionalStatus
|
|
44
|
+
| typeof TIGERProperty.LandAreaSqm
|
|
45
|
+
| typeof TIGERProperty.WaterAreaSqm
|
|
46
|
+
| typeof TIGERProperty.CentroidLongitude
|
|
47
|
+
| typeof TIGERProperty.CentroidLatitude
|
|
48
48
|
>
|
|
49
49
|
|
|
50
50
|
/**
|
package/tsconfig.json
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"allowSyntheticDefaultImports": true,
|
|
5
5
|
"emitDecoratorMetadata": true,
|
|
6
6
|
"emitDeclarationOnly": false,
|
|
7
|
-
"
|
|
7
|
+
"rewriteRelativeImportExtensions": true,
|
|
8
|
+
"erasableSyntaxOnly": true,
|
|
8
9
|
"experimentalDecorators": true
|
|
9
10
|
},
|
|
10
11
|
"exclude": ["./out/**/*"],
|