@wemap/geo 10.3.0 → 10.5.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/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "directory": "packages/geo"
14
14
  },
15
15
  "name": "@wemap/geo",
16
- "version": "10.3.0",
16
+ "version": "10.5.0",
17
17
  "bugs": {
18
18
  "url": "https://github.com/wemap/wemap-modules-js/issues"
19
19
  },
@@ -29,7 +29,7 @@
29
29
  "license": "ISC",
30
30
  "dependencies": {
31
31
  "@wemap/logger": "^10.0.0",
32
- "@wemap/maths": "^10.3.0"
32
+ "@wemap/maths": "^10.3.1"
33
33
  },
34
- "gitHead": "2435b4a1c0218f56a87ff1768e197f8cb738aa4d"
34
+ "gitHead": "da571076de6bd9f4f2653d097763ff1244a36ebb"
35
35
  }
@@ -20,6 +20,9 @@ class GraphRouter {
20
20
  /** @type {!(Network<T>)} */
21
21
  _network;
22
22
 
23
+ /** @type {GraphEdge<T>[]} */
24
+ disabledEdges = [];
25
+
23
26
  /**
24
27
  * @param {!(Network<T>)} network
25
28
  */
@@ -215,7 +218,7 @@ class GraphRouter {
215
218
  this._network.edges
216
219
  .filter(edge => {
217
220
 
218
- if (!acceptEdgeFn(edge)) {
221
+ if (!acceptEdgeFn(edge) || this.disabledEdges.includes(edge)) {
219
222
  return false;
220
223
  }
221
224