@smarterplan/ngx-smarterplan-core 1.4.8 → 1.4.10

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.
@@ -41,6 +41,16 @@ export declare class MatterportImportService {
41
41
  importData(spaceID: string, surface: number, reloading?: boolean, node?: Node, overrideExisting?: boolean): Promise<boolean>;
42
42
  createZone(name: string, layerID: string, surface?: number, parentID?: string, sweeps?: string[], node?: Node, metadata?: string): Promise<Zone>;
43
43
  import360images(overrideExisting?: boolean): Promise<boolean>;
44
+ captureEquirectangularWithRetry(options: any, renderOptions: any, { maxAttempts, initialBackoffMs, perAttemptTimeoutMs, sweepIdForReadyCheck, waitForSweepTimeoutMs }?: {
45
+ maxAttempts?: number;
46
+ initialBackoffMs?: number;
47
+ perAttemptTimeoutMs?: number;
48
+ sweepIdForReadyCheck?: any;
49
+ waitForSweepTimeoutMs?: number;
50
+ }): Promise<any>;
51
+ waitForSweepReady(targetId: string, timeoutMs?: number): Promise<void>;
52
+ sleep(ms: number): Promise<void>;
53
+ timeoutPromise(ms: number, message: string): Promise<never>;
44
54
  getUploadedImageCount(modelID: any): Promise<any>;
45
55
  moveToFloor(floorName: string, matterportFloorSequence?: number): Promise<void>;
46
56
  importFloorData(defautZoneID: string, node: Node): Promise<Zone[]>;
@@ -20,17 +20,47 @@ export declare class MatterportNavigationService {
20
20
  currentRooms: any[];
21
21
  /** Sequence number of the floor currently visible in sdk.Floor.current (null = single-floor or unknown). */
22
22
  currentFloorSequence: number | null;
23
+ private sidToUuid;
24
+ private uuidToSid;
23
25
  constructor();
26
+ /**
27
+ * Builds the bidirectional sid ↔ uuid maps from the sweep collection.
28
+ * Must be called every time the sweep collection is updated.
29
+ */
30
+ buildSweepIdMaps(collection: any): void;
31
+ /**
32
+ * Resolves any sweep identifier (sid or uuid) to the SDK runtime **sid**.
33
+ * This is what sdk.Sweep.moveTo() and sdk.Sweep.disable() expect.
34
+ * Falls back to the input if no mapping exists.
35
+ */
36
+ resolveSweepSid(idOrUuid: string): string;
37
+ /**
38
+ * Resolves any sweep identifier (sid or uuid) to the persistent **uuid**.
39
+ * This is what the database stores (zone.sweepIDs, poi.matterportSweepID).
40
+ * Falls back to the input if no mapping exists.
41
+ */
42
+ resolveSweepUuid(sidOrUuid: string): string;
24
43
  action_toolbox_floorplan(sdk: any): Promise<void>;
25
44
  action_toolbox_inside_view(sdk: any): void;
26
45
  actionShowAllFloors(sdk: any): void;
27
46
  action_toolbox_dollhouse(sdk: any): Promise<void>;
28
47
  action_go_to_floor(sdk: any, floorName: string, matterportFloorSequence?: number): Promise<void>;
48
+ /**
49
+ * Navigate to a sweep. The caller can pass either a sid or a uuid;
50
+ * this method resolves it to the SDK sid before calling Sweep.moveTo().
51
+ */
29
52
  action_go_to_sweep(sdk: any, sweep: string, rotation?: {
30
53
  x: number;
31
54
  y: number;
32
55
  } | null): Promise<void>;
56
+ /**
57
+ * Disable forbidden sweeps. Resolves each sweep ID to sid before calling SDK.
58
+ */
33
59
  removeForbiddenSweeps(sdk: any, forbiddenSweeps: string[]): Promise<void>;
60
+ /**
61
+ * Returns the current sweep as a **uuid** (for database matching).
62
+ * The SDK's poseCamera.sweep is a sid; we translate it.
63
+ */
34
64
  getCurrentSweep(poseCamera: any): string | null;
35
65
  setCameraMode(mode: string): void;
36
66
  static ɵfac: i0.ɵɵFactoryDeclaration<MatterportNavigationService, never>;
@@ -134,6 +134,10 @@ export declare class MatterportService {
134
134
  * @returns Promise resolving to true when initialization is complete.
135
135
  */
136
136
  initSdk(tagService: BaseTagService, module?: SpModule): Promise<boolean>;
137
+ /**
138
+ * @deprecated Use navigationService.resolveSweepUuid() instead.
139
+ * Kept temporarily for backwards compatibility.
140
+ */
137
141
  getSweepUUIDForSid(sid: string): string | null;
138
142
  setLightingOff(): void;
139
143
  getDistanceForLastMeasurement(): void;
@@ -51,7 +51,7 @@ export declare class TicketsService extends BaseObjectService {
51
51
  awsKinesisAnalytics: any;
52
52
  isMuseumUser: boolean;
53
53
  navSubscription: Subscription;
54
- filetrSubscription: Subscription;
54
+ filterSubscription: Subscription;
55
55
  floorsPerSpace: Zone[];
56
56
  selectedFloor: Zone;
57
57
  private destroy$;
@@ -52,7 +52,18 @@ export declare class ViewerService {
52
52
  constructor(poiService: PoiService, matterportService: MatterportService);
53
53
  checkMode(indexMode: string): boolean;
54
54
  setMode(indexMode: string): void;
55
- setTourUrl(model3d: string, showIconPlan?: boolean, showIconDollhouse?: boolean, showIconFloors?: boolean, showQuickStart?: boolean, showFullscreen?: boolean, showGuidedTour?: boolean, showHighlightReel?: boolean): void;
55
+ setTourUrl(options: {
56
+ model3d: string;
57
+ showIconPlan?: boolean;
58
+ showIconDollhouse?: boolean;
59
+ showIconFloors?: boolean;
60
+ showQuickStart?: boolean;
61
+ showFullscreen?: boolean;
62
+ showGuidedTour?: boolean;
63
+ showHighlightReel?: boolean;
64
+ showDefurnish?: boolean;
65
+ showRoomMeasurements?: boolean;
66
+ }): void;
56
67
  clearAll(): Promise<void>;
57
68
  getMode(): string;
58
69
  getViewerSelectedService(): MatterportService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smarterplan/ngx-smarterplan-core",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },