@wemap/geo 4.0.4 → 4.0.10

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
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/geo"
13
13
  },
14
14
  "name": "@wemap/geo",
15
- "version": "4.0.4",
15
+ "version": "4.0.10",
16
16
  "bugs": {
17
17
  "url": "https://github.com/wemap/wemap-modules-js/issues"
18
18
  },
@@ -30,5 +30,5 @@
30
30
  "@wemap/logger": "^4.0.0",
31
31
  "@wemap/maths": "^4.0.3"
32
32
  },
33
- "gitHead": "8cb2140ad039f1e12b9834effb7cef467ade7549"
33
+ "gitHead": "684e1328f164054572b32f241e3e3b85cc3b1362"
34
34
  }
package/src/graph/Node.js CHANGED
@@ -13,6 +13,9 @@ class Node {
13
13
  /** @type {string} */
14
14
  name = null;
15
15
 
16
+ /** @type {boolean} */
17
+ subwayEntrance = false;
18
+
16
19
  /** @type {Edge[]} */
17
20
  edges = [];
18
21
 
@@ -221,6 +224,9 @@ class Node {
221
224
  if (this.name !== null) {
222
225
  output.name = this.name;
223
226
  }
227
+ if (this.subwayEntrance !== null) {
228
+ output.subwayEntrance = this.subwayEntrance;
229
+ }
224
230
  return output;
225
231
  }
226
232
 
@@ -231,6 +237,9 @@ class Node {
231
237
  if (properties.name) {
232
238
  this.name = properties.name;
233
239
  }
240
+ if (properties.subwayEntrance) {
241
+ this.subwayEntrance = properties.subwayEntrance;
242
+ }
234
243
  return this;
235
244
  }
236
245
  }
@@ -53,7 +53,7 @@ class StepsGeneration {
53
53
  const splitStepCondition = splitByAngle || splitByLevel;
54
54
 
55
55
  // New step creation
56
- if (isFirstStep || splitStepCondition) {
56
+ if (isFirstStep || splitStepCondition || node.isSubwayEntrance()) {
57
57
 
58
58
  previousStep = currentStep;
59
59