@mappedin/mappedin-js 5.33.0 → 5.34.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.
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-ZRT45YCM.js";var e,c=a((()=>{e={env:{NODE_ENV:"production",npm_package_version:"5.34.0"}}}));export{c as a,e as b};
@@ -5469,8 +5469,8 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocation' {
5469
5469
  }
5470
5470
 
5471
5471
  declare module '@mappedin/mappedin-js/get-venue/MappedinCoordinate' {
5472
- import { MappedinNode, Mappedin } from '@mappedin/mappedin-js/get-venue/internal';
5473
5472
  import type { MappedinMap } from '@mappedin/mappedin-js/get-venue/internal';
5473
+ import { Mappedin, MappedinNode } from '@mappedin/mappedin-js/get-venue/internal';
5474
5474
  export type TMappedinCoordinateOptions = {
5475
5475
  map: MappedinMap;
5476
5476
  mappedin: Mappedin;
@@ -5533,6 +5533,11 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCoordinate' {
5533
5533
  * Get Nearest Node to Coordinate, which can then be used for navigation
5534
5534
  */
5535
5535
  get nearestNode(): MappedinNode;
5536
+ /**
5537
+ * Get the {@link MappedinNode}s within a radius of the {@link MappedinCoordinate}.
5538
+ * @param radius - The radius in metres.
5539
+ */
5540
+ nodesInRadius(radius: number): MappedinNode[];
5536
5541
  toJSON(): {
5537
5542
  x: number;
5538
5543
  y: number;
@@ -6446,13 +6451,15 @@ declare module '@mappedin/mappedin-js/navigator/NavigationGraph' {
6446
6451
  * @param accessible boolean - optional, if true directions will only take accessible route, defaults to false
6447
6452
  * @param includedVortexIds set - optional, exclude all the vertexes matching the given IDs
6448
6453
  * @param excludedVortexIds set - optional, exclude all the vertexes matching the given IDs
6454
+ * @param excludedNodeIds set - optional, exclude all the nodes matching the given IDs
6449
6455
  */
6450
- aStar({ originIds, destinationNodeIds, accessible, includedVortexIds, excludedVortexIds, }: {
6456
+ aStar({ originIds, destinationNodeIds, accessible, includedVortexIds, excludedVortexIds, excludedNodeIds, }: {
6451
6457
  originIds: string[];
6452
6458
  destinationNodeIds: string[];
6453
6459
  accessible: boolean;
6454
6460
  includedVortexIds?: Set<string>;
6455
6461
  excludedVortexIds?: Set<string>;
6462
+ excludedNodeIds?: Set<string>;
6456
6463
  }): Edge[];
6457
6464
  getDistance(origin: INode, destination: INode): number;
6458
6465
  getShortestEuclideanDistance(origin: INode, destinations: INode[]): number;
@@ -6519,10 +6526,11 @@ declare module '@mappedin/mappedin-js/navigator/Navigator' {
6519
6526
  * @param includedVortexIds set - optional, exclude all the vertexes matching the given IDs
6520
6527
  * @param excludedVortexIds set - optional, exclude all the vertexes matching the given IDs
6521
6528
  */
6522
- getDirections({ originIds, destinationNodeIds, accessible, departFrom, arriveAt, includedVortexIds, excludedVortexIds, simplify, }: {
6529
+ getDirections({ originIds, destinationNodeIds, accessible, departFrom, arriveAt, includedVortexIds, excludedVortexIds, excludedNodeIds, simplify, }: {
6523
6530
  originIds: string[];
6524
6531
  includedVortexIds?: Set<string>;
6525
6532
  excludedVortexIds?: Set<string>;
6533
+ excludedNodeIds?: Set<string>;
6526
6534
  destinationNodeIds: string[];
6527
6535
  accessible: boolean;
6528
6536
  departFrom?: ILocation;
@@ -10316,6 +10324,10 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinNavigatable' {
10316
10324
  * Exclude all the vortexes matching the given IDs
10317
10325
  */
10318
10326
  excludedVortexIds?: string[];
10327
+ /**
10328
+ * Exclude all the nodes matching the given IDs
10329
+ */
10330
+ excludedNodeIds?: string[];
10319
10331
  /**
10320
10332
  * @experimental
10321
10333
  * Apply line-of-sight simplifying to directions. This will attempt to remove unnecessary nodes between turns.
@@ -11130,6 +11142,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.cache' {
11130
11142
  get polygonsByMapId(): Map<string, MappedinPolygon[]>;
11131
11143
  get nodesByMapId(): Map<string, MappedinNode[]>;
11132
11144
  findNearestNodeOnMap(mapId: string, coordinate: MappedinCoordinate): MappedinNode;
11145
+ findNodeWithinRadiusOnMap(mapId: string, coordinate: MappedinCoordinate, radius: number): MappedinNode[];
11133
11146
  get locationsByMapId(): Map<string, MappedinLocation[]>;
11134
11147
  static instances: Map<Mappedin, MappedinCache>;
11135
11148
  static create(mappedin: Mappedin): MappedinCache;