@dra2020/district-analytics 2.0.0 → 2.0.1

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.
@@ -36,7 +36,7 @@ export declare class Districts {
36
36
  _geoProperties: T.DistrictProperties;
37
37
  statistics: any[][];
38
38
  constructor(s: AnalyticsSession, ds: T.GeoFeatureCollection);
39
- getShape(i: number): T.GeoFeature;
39
+ getDistrictShapeByID(id: number): T.GeoFeature | undefined;
40
40
  getGeoProperties(i: number): any;
41
41
  setGeoProperties(i: number, p: T.DistrictShapeProperties): void;
42
42
  numberOfColumns(): number;
@@ -39,11 +39,12 @@ export interface GeoFeatureMap {
39
39
  [geoID: string]: GeoFeature;
40
40
  }
41
41
  export declare type ContiguityGraph = {
42
- [geoID: string]: Neighbors;
42
+ [geoID: string]: UnweightedNeighbors | WeightedNeighbors;
43
43
  };
44
- export declare type Neighbors = {
44
+ export declare type WeightedNeighbors = {
45
45
  [geoID: string]: number;
46
46
  };
47
+ export declare type UnweightedNeighbors = string[];
47
48
  export declare type VoteTriple = [number, number, number];
48
49
  export declare const enum VoteType {
49
50
  Democratic = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/district-analytics",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "District analytics TypeScript package",
5
5
  "main": "dist/district-analytics.js",
6
6
  "files": [