@wemap/geo 4.0.10 → 4.0.13

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.10",
15
+ "version": "4.0.13",
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": "684e1328f164054572b32f241e3e3b85cc3b1362"
33
+ "gitHead": "938eca06514ecc7ee1f4388866bbf7f174d51a9b"
34
34
  }
package/src/graph/Node.js CHANGED
@@ -16,6 +16,9 @@ class Node {
16
16
  /** @type {boolean} */
17
17
  subwayEntrance = false;
18
18
 
19
+ /** @type {string} */
20
+ subwayEntranceRef = null;
21
+
19
22
  /** @type {Edge[]} */
20
23
  edges = [];
21
24
 
@@ -227,6 +230,9 @@ class Node {
227
230
  if (this.subwayEntrance !== null) {
228
231
  output.subwayEntrance = this.subwayEntrance;
229
232
  }
233
+ if (this.subwayEntranceRef !== null) {
234
+ output.subwayEntranceRef = this.subwayEntranceRef;
235
+ }
230
236
  return output;
231
237
  }
232
238
 
@@ -240,6 +246,9 @@ class Node {
240
246
  if (properties.subwayEntrance) {
241
247
  this.subwayEntrance = properties.subwayEntrance;
242
248
  }
249
+ if (properties.subwayEntranceRef) {
250
+ this.subwayEntranceRef = properties.subwayEntranceRef;
251
+ }
243
252
  return this;
244
253
  }
245
254
  }
@@ -53,7 +53,7 @@ class StepsGeneration {
53
53
  const splitStepCondition = splitByAngle || splitByLevel;
54
54
 
55
55
  // New step creation
56
- if (isFirstStep || splitStepCondition || node.isSubwayEntrance()) {
56
+ if (isFirstStep || splitStepCondition || node.subwayEntrance) {
57
57
 
58
58
  previousStep = currentStep;
59
59