@dra2020/baseclient 1.0.103 → 1.0.106

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.
@@ -9,6 +9,7 @@ interface UseItem {
9
9
  }
10
10
  export declare class DataFlow {
11
11
  usesList: UseItem[];
12
+ inCompute: boolean;
12
13
  constructor();
13
14
  dfid(): any;
14
15
  compute(): void;
@@ -26,10 +26,12 @@ interface UseItem
26
26
  export class DataFlow
27
27
  {
28
28
  usesList: UseItem[];
29
+ inCompute: boolean;
29
30
 
30
31
  constructor()
31
32
  {
32
33
  this.usesList = [];
34
+ this.inCompute = false;
33
35
  }
34
36
 
35
37
  // override in subclass
@@ -70,8 +72,12 @@ export class DataFlow
70
72
  {
71
73
  if (this.stale())
72
74
  {
75
+ if (this.inCompute)
76
+ console.log(`DataFlow compute reentrancy: ${this.constructor?.name}`);
77
+ this.inCompute = true;
73
78
  this.remember();
74
79
  this.compute();
80
+ this.inCompute = false;
75
81
  }
76
82
  }
77
83
  }
package/lib/poly/topo.ts CHANGED
@@ -74,7 +74,7 @@ export function topoContiguity(topo: Topo): any
74
74
  let objects: any[] = Object.values(topo.objects);
75
75
  let geoid = getGEOID(objects);
76
76
  objects.forEach((o: any) => { o.properties.id = o.properties[geoid] });
77
- let neighbors = TopoClient.neighbors(objects, true);
77
+ let neighbors = TopoClient.neighbors(topo, objects, true);
78
78
  let result: any = {};
79
79
  result['OUT_OF_STATE'] = [];
80
80
  objects.forEach((o: any, i: number) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.103",
3
+ "version": "1.0.106",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",
@@ -40,7 +40,7 @@
40
40
  "webpack-cli": "^4.9.1"
41
41
  },
42
42
  "dependencies": {
43
- "@dra2020/topojson-client": "^3.2.7",
43
+ "@dra2020/topojson-client": "^3.2.9",
44
44
  "@dra2020/topojson-server": "^3.0.103",
45
45
  "@dra2020/topojson-simplify": "^3.0.102",
46
46
  "diff-match-patch": "^1.0.5",