@mappedin/mappedin-js 5.39.2 → 5.40.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.
@@ -515,14 +515,14 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin' {
515
515
  * @param languageCode The language code to change to
516
516
  * @param cache Whether or not to cache the current language so it doesn't need to be re-fetched
517
517
  */
518
- changeLanguage(languageCode: string, cache?: boolean): Promise<void>;
518
+ changeLanguage: (languageCode: string, cache?: boolean) => Promise<void>;
519
519
  /**
520
520
  *
521
521
  * @experimental Hydrate the Mappedin instance using a response from either {@link Mappedin.toString}, {@link getVenueBundle} or by downloading the bundle manually
522
522
  * @param mappedinSerializableData Mappedin data that was serialized or exported as JSON
523
523
  * @param shouldPopulateBundledImagesAsBlobs Takes the scenes and images from a bundle and maps them as blobs to where they exist as URLs in the bundle. False by default
524
524
  */
525
- hydrate(mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean, updateInPlace?: boolean): Promise<undefined>;
525
+ hydrate: (mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean, updateInPlace?: boolean) => Promise<undefined>;
526
526
  images: any;
527
527
  imageBinaries?: Map<string, Uint8Array>;
528
528
  scenes: any;
@@ -539,11 +539,11 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin' {
539
539
  /**
540
540
  * Export venue data to JSON (for storage, encryption, etc)
541
541
  */
542
- toJSON(): any;
542
+ toJSON: () => any;
543
543
  /**
544
544
  * Export venue data to String
545
545
  */
546
- toString(): string;
546
+ toString: () => string;
547
547
  }
548
548
  }
549
549
 
@@ -2640,7 +2640,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinMap' {
2640
2640
  static hydrate(maps: any, mappedin: Mappedin): MappedinMap[];
2641
2641
  static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
2642
2642
  static fetch(mappedin: Mappedin): Promise<MappedinMap[]>;
2643
- get center(): any;
2643
+ get center(): MappedinCoordinate;
2644
2644
  toJSON(): any;
2645
2645
  }
2646
2646
  }