@procore/bim-webviewer-sdk 17.6.0-rc.2 → 17.6.0-rc.21

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.
@@ -24,4 +24,6 @@ export declare const getDownloadCompletedTrackEventPayload: (params: {
24
24
  totalPartitionsSizeCompressed?: number;
25
25
  numPartitions?: number;
26
26
  }) => Promise<BimModelsDownloadCompletedPayload>;
27
- export declare const getEnvironmentTrackEventPayload: () => Promise<EnvironmentTrackEventPayload>;
27
+ export declare const getEnvironmentTrackEventPayload: (params: {
28
+ persisted: boolean;
29
+ }) => Promise<EnvironmentTrackEventPayload>;
@@ -12,13 +12,13 @@ export declare class LoadingComponent {
12
12
  private startTime;
13
13
  private readonly containerElement;
14
14
  private readonly modelInitializationElement;
15
- private propertyLoadingElement;
16
- private modelOpeningElement;
17
- private modelDownloadErrorElement;
18
- private modelInitializationFailedElement;
19
- private fileTooBigErrorElement;
15
+ private readonly allowPersistentStorageElement;
16
+ private readonly propertyLoadingElement;
17
+ private readonly modelOpeningElement;
18
+ private readonly modelDownloadErrorElement;
19
+ private readonly modelInitializationFailedElement;
20
+ private readonly fileTooBigErrorElement;
20
21
  constructor(props: LoadingComponentProps);
21
- private onAppStart;
22
22
  private onInitializationProgress;
23
23
  private getTimeEstimateMessage;
24
24
  private getEstimatedTimeLeft;
@@ -31,6 +31,8 @@ export declare class LoadingComponent {
31
31
  private onFileTooBigError;
32
32
  private onPropertyServiceCheck;
33
33
  private onModelTypeDetermined;
34
+ private onPersistentStorageRequestPending;
35
+ private onPersistentStorageRequestResolved;
34
36
  private updateModelOpening;
35
37
  private updateInitProgressBar;
36
38
  }
@@ -5,29 +5,35 @@ export type BootstrapperResult = {
5
5
  export declare class Bootstrapper {
6
6
  static partitionedMode: boolean;
7
7
  static logInitializationTimes: boolean;
8
+ static allStepsCompleted: boolean;
9
+ static startTime: number;
8
10
  static renderController: RenderController;
9
11
  static resolveFn: () => void;
10
12
  static stepsCompleted: number;
11
13
  static singleStepsCount: number;
12
- static parsePwfNodesCount: number;
13
- static parsePwfMeshnodesCount: number;
14
- static initNodeTreeCount: number;
15
- static initNodeTreeBoundingBoxesCount: number;
16
- static initSceneGraphCount: number;
17
- static initTreeServicesCount: number;
18
- static initGeometryCount: number;
19
14
  static initDownloadCount: number;
20
15
  static partitionStepsCount: number;
21
16
  static maxStepsPerPartition: number;
22
17
  static partitionUrlsToDownload: Set<string>;
23
18
  static estimatedInitializationSteps: number;
24
19
  static numPartitions: number;
20
+ static launchAnimationLoopExecuted: boolean;
21
+ static summary: Map<string, {
22
+ numCalls: number;
23
+ totalTime: number;
24
+ }>;
25
+ static STEPS_PLANNER: Record<string, number>;
26
+ static initBootstrappingSummary(): void;
25
27
  static bootstrap(renderController: RenderController): Promise<void>;
28
+ static recordStep(step: string, duration: number): void;
29
+ static summarizeStepsAsText(): void;
30
+ static summarizeStepsAsCSV(): void;
31
+ static printBootstrappingSummary(): void;
26
32
  static totalStepsCount(): number;
27
33
  static addDownloadSteps(count: number): void;
28
34
  static recordCompleteDownload(url: string, duration: number): void;
35
+ static handleIfLastStep(): void;
29
36
  static recordPartialDownload(url: string): void;
30
37
  static determineTotalStepsCount(): Promise<void>;
31
38
  private static measureDownloadSteps;
32
39
  }
33
- export declare function recordInitializationProgress(message: string): void;
@@ -42,7 +42,6 @@ export namespace PubSubController {
42
42
  initializationStart: "initializationStart";
43
43
  intersectPointClick: "intersectPointClick";
44
44
  isolateCompleted: "isolateCompleted";
45
- launchedAnimationLoop: "launchedAnimationLoop";
46
45
  mainThreadDebugGuiAdd: "mainThreadDebugGuiAdd";
47
46
  mainThreadDebugGuiDestroy: "mainThreadDebugGuiDestroy";
48
47
  markupDismissed: "markupDismissed";
@@ -72,6 +71,8 @@ export namespace PubSubController {
72
71
  objectUnhide: "objectUnhide";
73
72
  optionsChanged: "optionsChanged";
74
73
  allPartitionsDownloadComplete: "allPartitionsDownloadComplete";
74
+ persistentStorageRequestPending: "persistentStorageRequestPending";
75
+ persistentStorageRequestResolved: "persistentStorageRequestResolved";
75
76
  projectSettingsLoaded: "projectSettingsLoaded";
76
77
  projectSettingsUpdated: "projectSettingsUpdated";
77
78
  propertiesReady: "propertiesReady";
@@ -2,7 +2,6 @@ export function RenderControllerProxy(options: any): void;
2
2
  export class RenderControllerProxy {
3
3
  constructor(options: any);
4
4
  cache: Promise<Cache>;
5
- pubsub: PubSubController;
6
5
  options: any;
7
6
  worker: any;
8
7
  enableWebWorker: any;
@@ -289,7 +288,6 @@ export namespace RenderControllerProxy {
289
288
  let MEASURE: number;
290
289
  }
291
290
  }
292
- import { PubSubController } from './PubSubController';
293
291
  import { NavigationManager } from '../navigation/NavigationManager';
294
292
  import { RenderController } from './RenderController';
295
293
  import { RenderControllerWorker } from './RenderControllerWorker';
@@ -0,0 +1 @@
1
+ export { requestPersistentStorage } from './requestPersistentStorage';
@@ -0,0 +1 @@
1
+ export declare function requestPersistentStorage(quickResolveTimeout?: number): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/bim-webviewer-sdk",
3
- "version": "17.6.0-rc.2",
3
+ "version": "17.6.0-rc.21",
4
4
  "description": "Procore BIM Webviewer SDK",
5
5
  "main": "dist/Procore.Bim.Webviewer.js",
6
6
  "types": "dist/Procore.Bim.Webviewer.d.ts",