@procore/bim-webviewer-sdk 14.0.0-beta.0 → 14.0.0-lana.1

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.
@@ -13,6 +13,7 @@ export class RootComponent {
13
13
  component_options: {};
14
14
  window_components: any[];
15
15
  disabled: any[];
16
+ statsJS: StatsJS;
16
17
  init(): void;
17
18
  addComponent(ComponentType: any): void;
18
19
  close(): void;
@@ -21,3 +22,4 @@ export class RootComponent {
21
22
  DisableComponent(component: any): void;
22
23
  }
23
24
  import { SectionToolDropdown } from "./DropdownComponent";
25
+ import { StatsJS } from "./StatsJS";
@@ -0,0 +1,11 @@
1
+ export declare class StatsJS {
2
+ private attached;
3
+ private statsFPS;
4
+ private statsTime;
5
+ private statsMemory;
6
+ private static FpsCss;
7
+ private static TimeCss;
8
+ private static MemCss;
9
+ attach(document: Document): void;
10
+ 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.1",
4
4
  "description": "Procore BIM Webviewer SDK",
5
5
  "main": "dist/Procore.Bim.Webviewer.js",
6
6
  "types": "dist/Procore.Bim.Webviewer.d.ts",