@procore/bim-webviewer-sdk 5.0.0-rc.0 → 5.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.
package/CHANGELOG.md CHANGED
@@ -5,8 +5,41 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
7
7
 
8
+ ## [5.1.0] - 2022-08-22
9
+
10
+ ### Added
11
+
12
+ - `Isolate` in the Context Menu is now enabled when multiple objects are selected.
13
+
14
+ ### Changed
15
+
16
+ - Decreased load time, especially for larger models, by optimizing the way we construct object bounding boxes.
17
+ - Improves mouse control:
18
+ - Eliminates the drift when clicking and dragging on the default tool;
19
+ - Improves handling of the mouse leaving the browser and coming back in, by terminating the interaction.
20
+ - Eliminate "space junk" when zooming to global view
21
+ - This change only occurs in some situations depending on whether a `bcfCamera` option was provided. More specifically:
22
+ - When a home viewpoint is defined (i.e. a `bcfCamera` option is passed)
23
+ - The model is loaded with the camera at the home viewpoint
24
+ - Clicking the Home button zooms to the home viewpoint
25
+ - `ProcoreBim.camera.zoomToGlobal()` zooms to the refined global bounding box, which is calculated the first time and cached in JS memory for the remainder of the browser session (i.e. it is lost on page reload).
26
+ - When a home viewpoint is NOT defined (i.e. no `bcfCamera` option is passed)
27
+ - The model loads with the camera with the refined global bounding box in view. The refined global bounding box is calculated here, adding to the load time of the model, and then cached in JS memory for the remainder of the browser session (i.e. it is lost on page reload).
28
+ - Clicking the Home button zooms to have the refined global bounding box in view. The refined global bounding box will be cached from when the model was opened.
29
+ - `ProcoreBim.camera.zoomToGlobal()` zooms to the refined global bounding box, which will be cached from when the model was opened.
30
+ - Performance Note: the execution time for eliminating space junk scales with the number of meshnodes in the model. Mostly this cost is incurred at load time, but will be incurred the first time `ProcoreBim.camera.zoomToGlobal()` is called if a `bcfCamera` option was provided.
31
+
32
+ ### Fixed
33
+
34
+ - The loading tool (`ProcoreBim.Webviewer.tools.LOADING`) now shows an error message when a model is too large instead of crashing silently.
35
+
8
36
  ## [5.0.0] - 2022-08-08
9
37
 
38
+ ### Removed
39
+
40
+ - [BREAKING CHANGE] removes `camera.zoomExtents` method.
41
+ - You can safely replace this with `camera.zoomToBoundingBox` which has the same signature and behavior.
42
+
10
43
  ### Fixed
11
44
 
12
45
  - Fixed click behaviours for the Model Tree.
@@ -29,15 +62,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
29
62
  - Right-click an object from the Object Tree then select "Zoom to Selection" to move the camera in front of that object.
30
63
  - Select an object, click the "Object Actions" dropdown in the Object Tree, and then select "Zoom to Selection" to move the camera in front of that object.
31
64
 
32
- ### Changed
33
-
34
- - [Internal] Refactored hide/unhide logic from RenderController and ProcoreRenderer into HiddenNodeServices. These changes should be transparent to third parties and does not break any public facing calls.
35
-
36
- ## Removed
37
-
38
- - [BREAKING CHANGE] removes `camera.zoomExtents` method.
39
- - You can safely replace this with `camera.zoomToBoundingBox` which has the same signature and behavior.
40
-
41
65
  ## [4.0.0] - 2022-07-21
42
66
 
43
67
  ### Changed