@procore/bim-webviewer-sdk 5.0.0 → 5.1.0-BIM-2113.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,6 +5,53 @@ 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
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ - [Internal] Add rust test in CI build
13
+ - [Internal] Add unit test for the rust
14
+
15
+ ### Changed
16
+
17
+ - Make camera movement with WASDEQ and arrow keys independent of framerate. Less “getting bogged down” when in a model and less “blasting off” when moving outside of it.
18
+ - [Internal] Backport of the changes made to the `ShortestDistance` feature on the (now dead) 3JS upgrade branch.
19
+ - This is possible because the BufferGeometry construct is available in v0.111.0.
20
+ - And it is also advised because the Geometry and Face3 constructs have been deprecated a while ago, and are completely removed from ThreeJS in v.0.125.4.
21
+ - Contributes to making resuming the 3JS library upgrades less painful.
22
+ - [Internal] Refactors Meshnode and Mesh
23
+ - Removes the Procore.propertyIdMap, Procore.meshMap and Procore.meshnodeAttach from ProcoreRenderer;
24
+ - [Internal] Change relative_eq fuction into a trait
25
+
26
+ ## [5.1.0] - 2022-08-22
27
+
28
+ ### Added
29
+
30
+ - `Isolate` in the Context Menu is now enabled when multiple objects are selected.
31
+
32
+ ### Changed
33
+
34
+ - Decreased load time, especially for larger models, by optimizing the way we construct object bounding boxes.
35
+ - Improves mouse control:
36
+ - Eliminates the drift when clicking and dragging on the default tool;
37
+ - Improves handling of the mouse leaving the browser and coming back in, by terminating the interaction.
38
+ - Eliminate "space junk" when zooming to global view
39
+ - This change only occurs in some situations depending on whether a `bcfCamera` option was provided. More specifically:
40
+ - When a home viewpoint is defined (i.e. a `bcfCamera` option is passed)
41
+ - The model is loaded with the camera at the home viewpoint
42
+ - Clicking the Home button zooms to the home viewpoint
43
+ - `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).
44
+ - When a home viewpoint is NOT defined (i.e. no `bcfCamera` option is passed)
45
+ - 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).
46
+ - 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.
47
+ - `ProcoreBim.camera.zoomToGlobal()` zooms to the refined global bounding box, which will be cached from when the model was opened.
48
+ - 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.
49
+
50
+ ### Fixed
51
+
52
+ - The loading tool (`ProcoreBim.Webviewer.tools.LOADING`) now shows an error message when a model is too large instead of crashing silently.
53
+ - Fixed an issue where Markup, Views, and Home Viewpoints could be incorrectly rotated 90 degrees when the camera direction was straight up or down.
54
+
8
55
  ## [5.0.0] - 2022-08-08
9
56
 
10
57
  ### Removed