@smarterplan/ngx-smarterplan-core 1.4.10 → 1.4.11

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.
@@ -15,6 +15,7 @@ declare global {
15
15
  }
16
16
  }
17
17
  export declare class MatterportImportService {
18
+ private readonly sdkKey;
18
19
  private navigationService;
19
20
  private zoneService;
20
21
  private viewerService;
@@ -36,7 +37,7 @@ export declare class MatterportImportService {
36
37
  importingImages: Subject<boolean>;
37
38
  sweepProcessedCount: Subject<number>;
38
39
  totalSweepsCount: Subject<number>;
39
- constructor(navigationService: NavigationService, zoneService: ZoneService, viewerService: ViewerService, layerService: LayerService, userService: BaseUserService, planService: PlanService);
40
+ constructor(sdkKey: string, navigationService: NavigationService, zoneService: ZoneService, viewerService: ViewerService, layerService: LayerService, userService: BaseUserService, planService: PlanService);
40
41
  initSdkForModel(modelID: string): Promise<boolean>;
41
42
  importData(spaceID: string, surface: number, reloading?: boolean, node?: Node, overrideExisting?: boolean): Promise<boolean>;
42
43
  createZone(name: string, layerID: string, surface?: number, parentID?: string, sweeps?: string[], node?: Node, metadata?: string): Promise<Zone>;
@@ -43,6 +43,7 @@ declare global {
43
43
  }
44
44
  }
45
45
  export declare class MatterportService {
46
+ private readonly sdkKey;
46
47
  private router;
47
48
  private activeRoute;
48
49
  private visibilityService;
@@ -126,7 +127,7 @@ export declare class MatterportService {
126
127
  pointerLeftClickHandler: (evt: MouseEvent) => void;
127
128
  pointerRightClickHandler: (e: any) => void;
128
129
  pointerMiddleClickHandler: (e: any) => void;
129
- constructor(config: Config, router: Router, activeRoute: ActivatedRoute, visibilityService: BaseVisibilityService, ngZone: NgZone, measurementService: MatterportMeasurementService, navigationService: MatterportNavigationService, pointerService: MatterportPointerService, object3DService: MatterportObject3DService, matterportTagService: MatterportTagService);
130
+ constructor(config: Config, sdkKey: string, router: Router, activeRoute: ActivatedRoute, visibilityService: BaseVisibilityService, ngZone: NgZone, measurementService: MatterportMeasurementService, navigationService: MatterportNavigationService, pointerService: MatterportPointerService, object3DService: MatterportObject3DService, matterportTagService: MatterportTagService);
130
131
  /**
131
132
  * Initializes the Matterport SDK, sets up event listeners, and configures assets.
132
133
  * @param tagService Service used to generate and inject HTML into tags.
@@ -5,6 +5,7 @@ import { DbObjectType, POI, PoiType, Comment, Equipment, Ticket, Feature, SpModu
5
5
  import { PoiService } from './models/poi.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ViewerService {
8
+ private readonly sdkKey;
8
9
  private poiService;
9
10
  private matterportService;
10
11
  private viewerMode;
@@ -49,7 +50,7 @@ export declare class ViewerService {
49
50
  };
50
51
  };
51
52
  private isObjectLoaded;
52
- constructor(poiService: PoiService, matterportService: MatterportService);
53
+ constructor(sdkKey: string, poiService: PoiService, matterportService: MatterportService);
53
54
  checkMode(indexMode: string): boolean;
54
55
  setMode(indexMode: string): void;
55
56
  setTourUrl(options: {
@@ -0,0 +1,7 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Injection token holding the Matterport SDK application key.
4
+ * Each consuming app must provide its own value via its environment file
5
+ * (see app.module.ts of each app for the provider registration).
6
+ */
7
+ export declare const MATTERPORT_SDK_KEY: InjectionToken<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smarterplan/ngx-smarterplan-core",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },
package/public-api.d.ts CHANGED
@@ -62,3 +62,4 @@ export * from './lib/validators/email.directive';
62
62
  export * from './lib/validators/no-empty.directive';
63
63
  export * from './lib/validators/text.directive';
64
64
  export * from './lib/validators/number.directive';
65
+ export * from './lib/tokens/matterport-sdk-key.token';