@procore/bim-webviewer-sdk 15.2.0-pl-rmns-scenegraph.2 → 15.2.0-pl-rmns-scenegraph.3

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 (28) hide show
  1. package/CHANGELOG.md +20 -3
  2. package/dist/Procore.Bim.Webviewer.d.ts +767 -6
  3. package/dist/Procore.Bim.Webviewer.js +1 -1
  4. package/dist/types/src/Webviewer.d.ts +21 -5
  5. package/dist/types/src/components/ViewpointManager/ViewpointManager.d.ts +6 -2
  6. package/dist/types/src/controllers/RenderController.d.ts +4 -5
  7. package/dist/types/src/controllers/RenderControllerProxy.d.ts +100 -99
  8. package/dist/types/src/controllers/RenderControllerWorker.d.ts +95 -95
  9. package/dist/types/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +3 -1
  10. package/dist/types/src/pwfreader/PWF.d.ts +1 -1
  11. package/dist/types/src/pwfreader/shared/Meshnode.d.ts +0 -3
  12. package/dist/types/src/sdk.d.ts +4 -1
  13. package/dist/types/src/types/Palette.d.ts +1 -1
  14. package/dist/types/src/types/WebviewerOptions.d.ts +28 -1
  15. package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +18 -12
  16. package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +25 -1
  17. package/dist/types/src/utils/Error/CustomError.d.ts +3 -0
  18. package/dist/types/src/utils/Error/ErrorLogger.d.ts +12 -0
  19. package/dist/types/src/utils/Error/ExternalError.d.ts +5 -0
  20. package/dist/types/src/utils/Error/__tests__/CustomError.test.d.ts +1 -0
  21. package/dist/types/src/utils/Error/__tests__/ErrorLogger.test.d.ts +1 -0
  22. package/dist/types/src/utils/Error/__tests__/ExternalError.test.d.ts +1 -0
  23. package/dist/types/src/utils/Error/index.d.ts +3 -0
  24. package/dist/types/src/utils/Logger/BugsnagLogger.d.ts +8 -0
  25. package/dist/types/src/utils/Logger/Logger.d.ts +3 -0
  26. package/dist/types/src/utils/Logger/__tests__/BugsnagLogger.test.d.ts +1 -0
  27. package/dist/types/src/utils/Logger/index.d.ts +2 -0
  28. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,9 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Changed
11
+
12
+ - [Internal] Add viewpoint fixtures to viewpoints demo page
13
+ - Loading progress bar will not show percentage number.
14
+ - [Internal] Make changes to `DebugGui` from the gui not persistent.
15
+
10
16
  ### Added
11
17
 
12
18
  - [Internal] Added `file_extraction_id` to `project.3d_models.client_loading.initialization` and `project.3d_models.client_loading.download_completed` payload
19
+ - Added ability to instantiate Webviewer with new `resources` option. Multiple models is not yet implemented so passing two models in as resources will not work in this ticket. However, you should be able to pass in a single model as an array of one `Resource` either as just a `fileExtractionId`, `fileExtractionId` with url overrides, or `modelId` + `modelRevisionId` with urls for local development
20
+ - Added `options.resource` argument to address multiple models with `model.setObjectColor`, `model.clearObjectColor`, and `model.clearAllObjectColor`.
21
+ - [Internal] `ApiMetaData` no longer operates on singular model data, but on multiple models. This facilitates the new `resources` option in support of loading multiple models.
22
+ - Added `ErrorLogger` namespace to the SDK. The `ErrorLogger` currently only supports Bugsnag configurations and will log errors to Bugsnag if the `bugsnagConfig` key is found in the params object of `ErrorLogger.init`. The `bugsnagConfig` object requires an `apiKey` key to be set, and optionally a `releaseStage` key.
23
+ - Added `defaultVisibilityAlwaysTrue` argument to `model.getVisibility` and `model.getViewpoint`
24
+ - When either method is called with `{ defaultVisibilityAlwaysTrue: true }` they will return a `visibility` object with `default_visibility: true` regardless of the number of hidden objects.
25
+ - When either method is called with `{ defaultVisibilityAlwaysTrue: false }` or not provided they will return a `visibility` object whose `default_visibility` field varies based on the amount of hidden objects.
26
+
27
+ ### Removed
28
+
29
+ - [Internal] Removed `@procore/core-scripts` dev dependency to reduce our Dependbot alerts. This package was only used for configuring TypeScript and prettier. We now use our own configuration files instead.
13
30
 
14
31
  ### Changed
15
32
 
@@ -19,7 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
36
 
20
37
  ## [15.2.0] - 2024-05-24
21
38
 
22
- ## Changed
39
+ ### Changed
23
40
 
24
41
  - Changed `model.getViewpoint` and `model.setViewpoint` to include `visibility` and `render_mode`.
25
42
  - Viewpoints selected in the Views tool now respect visibility and render mode if the views contain them.
@@ -28,13 +45,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
45
  - `TOOL_BAR_TOOLS` and its type `ToolBarTools`. Used for enabling tools within the toolbar and for some events.
29
46
  - `ACTION` and its type `Action`. Used in some events to describe type of camera movement.
30
47
 
31
- ## Fixed
48
+ ### Fixed
32
49
 
33
50
  - Fixed `initialization` event will always set `success` to true even loading partition model is failed.
34
51
 
35
52
  ## [15.1.0] - 2024-05-13
36
53
 
37
- ## Added
54
+ ### Added
38
55
 
39
56
  - Add `model.getVisibility` and `model.setVisibility` methods.
40
57
  - These methods interact with the visibility portion of the viewpoints schema defined by the `bim_viewpoints` endpoint (https://developers.procore.com/reference/rest/v1/bim-viewpoints?version=1.0)