@procore/bim-webviewer-sdk 15.0.0-rc.0 → 15.1.0-rc.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +13 -3
  2. package/dist/Procore.Bim.Webviewer.d.ts +70 -50
  3. package/dist/Procore.Bim.Webviewer.js +1 -1
  4. package/dist/types/src/Webviewer.d.ts +6 -1
  5. package/dist/types/src/api/HttpClient.d.ts +1 -0
  6. package/dist/types/src/api/analytic_events/analyticKeys.d.ts +7 -6
  7. package/dist/types/src/api/analytic_events/index.d.ts +1 -1
  8. package/dist/types/src/api/analytic_events/payloadFactories.d.ts +6 -1
  9. package/dist/types/src/api/types/Model.d.ts +8 -0
  10. package/dist/types/src/components/Markup/SvgRenderer.d.ts +3 -3
  11. package/dist/types/src/components/RootComponent.d.ts +3 -3
  12. package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +4 -3
  13. package/dist/types/src/components/{HomeViewpointManager/HomeViewpointManager.d.ts → ViewpointManager/ViewpointManager.d.ts} +5 -3
  14. package/dist/types/src/components/ViewpointManager/index.d.ts +1 -0
  15. package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts +1 -1
  16. package/dist/types/src/components/WindowSettingsComponent.d.ts +1 -1
  17. package/dist/types/src/components/WindowTreeViewComponent.d.ts +1 -1
  18. package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +1 -1
  19. package/dist/types/src/controllers/PubSubController.d.ts +1 -0
  20. package/dist/types/src/controllers/RenderController.d.ts +11 -8
  21. package/dist/types/src/controllers/RenderControllerProxy.d.ts +20 -5
  22. package/dist/types/src/controllers/RenderControllerWorker.d.ts +5 -3
  23. package/dist/types/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +6 -1
  24. package/dist/types/src/procoregl/HiddenNodeServices/__tests__/rangify.test.d.ts +1 -0
  25. package/dist/types/src/procoregl/HiddenNodeServices/rangify.d.ts +14 -0
  26. package/dist/types/src/procoregl/PartitionsRenderer.d.ts +2 -2
  27. package/dist/types/src/procoregl/PartitionsRendererImpl.d.ts +3 -2
  28. package/dist/types/src/procoregl/StandardRenderer.d.ts +2 -2
  29. package/dist/types/src/procoregl/StandardRendererImpl.d.ts +3 -2
  30. package/dist/types/src/procoregl/ViewerRenderer.d.ts +3 -2
  31. package/dist/types/src/pwfreader/PWF.d.ts +3 -0
  32. package/dist/types/src/pwfreader/shared/NodeServices.d.ts +2 -0
  33. package/dist/types/src/pwfreader/streaming/PartitionProxy.d.ts +6 -1
  34. package/dist/types/src/sdk.d.ts +15 -1
  35. package/dist/types/src/sectioning/SectionController.d.ts +3 -3
  36. package/dist/types/src/types/WebviewerOptions.d.ts +4 -5
  37. package/dist/types/src/utils/ApiMetaData/index.d.ts +1 -0
  38. package/dist/types/src/utils/Stack.d.ts +6 -4
  39. package/dist/types/src/utils/constants.d.ts +9 -4
  40. package/package.json +1 -1
  41. package/dist/types/src/components/HomeViewpointManager/index.d.ts +0 -1
  42. /package/dist/types/src/components/{HomeViewpointManager/__tests__/HomeViewpointManager.test.d.ts → ViewpointManager/__tests__/ViewpointManager.test.d.ts} +0 -0
  43. /package/dist/types/src/components/{HomeViewpointManager → ViewpointManager}/__tests__/fixtures.d.ts +0 -0
@@ -1,13 +1,13 @@
1
1
  import type { Vector2, Vector3, BoundingBox } from '../types/Math';
2
2
  import type { StandardRenderer } from '../procoregl/StandardRenderer';
3
- type AutodeskFormatClipPlane = {
3
+ export type AutodeskFormatClipPlane = {
4
4
  Type: 'ClipPlane';
5
5
  Version: 1;
6
6
  Normal: [number, number, number];
7
7
  Distance: number;
8
8
  Enabled: boolean;
9
9
  };
10
- type AutodeskFormatClipBox = {
10
+ export type AutodeskFormatClipBox = {
11
11
  Type: 'OrientedBox3D';
12
12
  Version: 1;
13
13
  Box: [[number, number, number], [number, number, number]];
@@ -22,7 +22,7 @@ export type SectionDataAutodeskFormat = {
22
22
  Linked: boolean;
23
23
  Enabled: boolean;
24
24
  };
25
- type ProcoreFormatClipPlane = {
25
+ export type ProcoreFormatClipPlane = {
26
26
  unit?: string;
27
27
  direction: Vector3;
28
28
  location: Vector3;
@@ -2,10 +2,10 @@ import { Project } from '../api/types/Project';
2
2
  import { FileExtraction, GeometryFile } from '../api/types/FileExtraction';
3
3
  import { Model, ModelRevision } from '../api/types/Model';
4
4
  export type Tool = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
5
- type FeatureFlags = Partial<{
5
+ export type FeatureFlags = Partial<{
6
6
  enableObjectTreeSearch: boolean;
7
7
  }>;
8
- type CommonOptions = {
8
+ export type CommonOptions = {
9
9
  /**
10
10
  * Always required
11
11
  */
@@ -62,13 +62,13 @@ export type GeometryBundle = {
62
62
  meshUrl?: GeometryFile['url'];
63
63
  manifestUrl?: GeometryFile['url'];
64
64
  };
65
- type PwfV2Bundle = {
65
+ export type PwfV2Bundle = {
66
66
  nodeUrl: GeometryFile['url'];
67
67
  meshnodeUrl: GeometryFile['url'];
68
68
  meshUrl: GeometryFile['url'];
69
69
  manifestUrl: GeometryFile['url'];
70
70
  };
71
- type PwfV1Bundle = {
71
+ export type PwfV1Bundle = {
72
72
  nodeUrl: GeometryFile['url'];
73
73
  meshnodeUrl: GeometryFile['url'];
74
74
  meshUrl: GeometryFile['url'];
@@ -96,7 +96,6 @@ export declare const isModelRevisionModePwfV2Options: (options: Options) => opti
96
96
  export declare const isFileExtractionModePwfV1OverrideOptions: (options: Options) => options is FileExtractionModePwfV1OverrideOptions;
97
97
  export declare const isFileExtractionModePwfV2OverrideOptions: (options: Options) => options is FileExtractionModePwfV2OverrideOptions;
98
98
  export declare const isFileExtractionModeOptions: (options: Options) => options is FileExtractionModeOptions;
99
- export {};
100
99
  /**
101
100
  * Type Testing
102
101
  *
@@ -4,4 +4,5 @@ export { API_MODE, ApiMode } from './ApiMetaData';
4
4
  export declare namespace ApiMetaData {
5
5
  let store: _ApiMetaData;
6
6
  const init: (initOptions: Options) => void;
7
+ const dispose: () => void;
7
8
  }
@@ -1,6 +1,8 @@
1
- export class Stack {
2
- stack: any[];
3
- push(element: any): void;
4
- pop(): any;
1
+ export declare class Stack<T = any> {
2
+ private stack;
3
+ constructor();
4
+ push(element: T): void;
5
+ pop(): T | undefined;
5
6
  isEmpty(): boolean;
7
+ length(): number;
6
8
  }
@@ -1,4 +1,9 @@
1
- export const EMPTY_SPACE_MESHNODE_INDEX: -1;
2
- export const EMPTY_SPACE_OBJECT_ID: -1;
3
- export const DEFAULT_FOV: 65;
4
- export const NO_CURRENT_NODE: -1;
1
+ export declare const EMPTY_SPACE_MESHNODE_INDEX = -1;
2
+ export declare const EMPTY_SPACE_OBJECT_ID = -1;
3
+ export declare const DEFAULT_FOV = 65;
4
+ export declare const NO_CURRENT_NODE = -1;
5
+ export declare const RENDER_MODE: {
6
+ readonly SHADED: "shaded";
7
+ readonly XRAY: "xray";
8
+ };
9
+ export type RenderMode = (typeof RENDER_MODE)[keyof typeof RENDER_MODE];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/bim-webviewer-sdk",
3
- "version": "15.0.0-rc.0",
3
+ "version": "15.1.0-rc.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",
@@ -1 +0,0 @@
1
- export { HomeViewpointManager } from './HomeViewpointManager';