@procore/bim-webviewer-sdk 14.0.0-beta.0 → 14.0.0-lana.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,11 @@
1
+ export declare class StatsJS {
2
+ private static attached;
3
+ private static statsFPS;
4
+ private static statsTime;
5
+ private static statsMemory;
6
+ private static FpsCss;
7
+ private static TimeCss;
8
+ private static MemCss;
9
+ static attach(document: Document): void;
10
+ static update(): void;
11
+ }
@@ -111,6 +111,7 @@ export class RenderController {
111
111
  } | null | undefined;
112
112
  getInitEventPayload(params: any): import("../api/analytic_events/analyticKeys").ModelInitializationPayload;
113
113
  launchAnimationLoop(): void;
114
+ captureModelStats(): void;
114
115
  init(meshnodeAB: any, nodeAB: any, meshAB: any, manifest: any): Promise<void>;
115
116
  nodeAB: any;
116
117
  meshnodeAB: any;
@@ -110,6 +110,12 @@ export class PWF {
110
110
  forEachNode(callback: any): void;
111
111
  getMeshVerticesAndFaces(meshRef: any, meshnodeOffset: any): import("./shared/MeshServices").MeshVerticesAndFaces;
112
112
  findFirstObject(meshnodeIndex: any): import("./shared/Node").Node;
113
+ captureModelStats(): void;
114
+ captureStandardModelStats(pwfModel: any): void;
115
+ modelStats: {
116
+ [key: string]: any;
117
+ } | undefined;
118
+ capturePartitionedModelStats(pwfModel: any): void;
113
119
  #private;
114
120
  }
115
121
  import { NodeServices } from "./shared";
@@ -7,4 +7,5 @@ export declare class PartitionProxyBufferReader {
7
7
  parse(): PWFPartitionProxy[];
8
8
  static isPartitionProxiesAB(buffer: ArrayBuffer): boolean;
9
9
  private forEach;
10
+ static numProxies(partitionProxiesAB: ArrayBuffer): number;
10
11
  }
@@ -22,6 +22,7 @@ export declare class MeshServices {
22
22
  getMeshGeometryForOffsets(meshOffset: number, _meshnodeOffset: number | undefined): MeshGeometry | undefined;
23
23
  meshFromOffset(offset: number): Mesh;
24
24
  numMeshes(): number;
25
+ meshes(): PWFMesh[];
25
26
  loadAllMeshGeometryToGPU(): {
26
27
  isComplete: boolean;
27
28
  };
@@ -22,6 +22,12 @@ export declare class PartitionProxy {
22
22
  offsetTop: number;
23
23
  offsetLeft: number;
24
24
  };
25
+ static Stats: {
26
+ PartitionsLoaded: number;
27
+ MeshesLoaded: number;
28
+ VerticesLoaded: number;
29
+ FacesLoaded: number;
30
+ };
25
31
  constructor(pwfPartitionProxy: PWFPartitionProxy);
26
32
  partitionId(): number;
27
33
  partitionUrl(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/bim-webviewer-sdk",
3
- "version": "14.0.0-beta.0",
3
+ "version": "14.0.0-lana.0",
4
4
  "description": "Procore BIM Webviewer SDK",
5
5
  "main": "dist/Procore.Bim.Webviewer.js",
6
6
  "types": "dist/Procore.Bim.Webviewer.d.ts",