@wemap/routers 12.10.3 → 12.10.5

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/dist/index.js CHANGED
@@ -2259,6 +2259,7 @@ const _GraphRouterOptionsBuilder = class _GraphRouterOptionsBuilder {
2259
2259
  __publicField(this, "avoidElevators", false);
2260
2260
  __publicField(this, "avoidMovingWalkways", false);
2261
2261
  __publicField(this, "avoidTicketRestrictedAreas", false);
2262
+ __publicField(this, "useMultiLevelSegments", false);
2262
2263
  __publicField(this, "projectionMaxDistance");
2263
2264
  }
2264
2265
  setAvoidStairs(avoidStairs) {
@@ -2281,6 +2282,10 @@ const _GraphRouterOptionsBuilder = class _GraphRouterOptionsBuilder {
2281
2282
  this.avoidTicketRestrictedAreas = avoidTicketRestrictedAreas;
2282
2283
  return this;
2283
2284
  }
2285
+ setUseMultiLevelSegments(useMultiLevelSegments) {
2286
+ this.useMultiLevelSegments = useMultiLevelSegments;
2287
+ return this;
2288
+ }
2284
2289
  static fromJson(options) {
2285
2290
  const builder = new _GraphRouterOptionsBuilder();
2286
2291
  Object.assign(builder, options);
@@ -2325,7 +2330,8 @@ const _GraphRouterOptionsBuilder = class _GraphRouterOptionsBuilder {
2325
2330
  },
2326
2331
  weightEdgeFn,
2327
2332
  acceptEdgeFn,
2328
- projectionMaxDistance: this.projectionMaxDistance
2333
+ projectionMaxDistance: this.projectionMaxDistance,
2334
+ useMultiLevelSegments: this.useMultiLevelSegments
2329
2335
  };
2330
2336
  }
2331
2337
  };
@@ -2596,7 +2602,8 @@ class GraphRouter extends GraphRouterEngine {
2596
2602
  const createdVerticesByOriginalEdges = [];
2597
2603
  const projectionsOptions = {
2598
2604
  maxDistance: options.projectionMaxDistance,
2599
- acceptEdgeFn: options.acceptEdgeFn
2605
+ acceptEdgeFn: options.acceptEdgeFn,
2606
+ useMultiLevelSegments: options.useMultiLevelSegments
2600
2607
  };
2601
2608
  const getOrCreateVertex = (coords) => {
2602
2609
  const projection = this.graph.getProjection(coords, projectionsOptions);