@procore/bim-webviewer-sdk 2.0.0-rc.1 → 2.1.0-BIM-1700.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,13 +5,47 @@ 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
+ ### Changed
11
+
12
+ - BREAKING CHANGE - Static method Cache.removeModel use to return false if a model could not be removed from cache. It will now throw an error.
13
+
14
+ ### Added
15
+
16
+ - Added mechanism to only cache the most recently viewed version of a model when the model was loaded with a `fileExtractionId`.
17
+ - This behavior already existed for models loaded with a `modelId` and `modelRevisionId`.
18
+ - `Cache.removeModel(options)` now removes models loaded with a `fileExtractionId` when `options` contains that `fileExtractionId`.
19
+ - This behavior already existed for models loaded with a `modelId` and `modelRevisionId` when `options` contains `modelId`.
20
+ - Enhancements to Object Tree tool
21
+ - Single click on objects that are not already selected
22
+ - Single click on already selected objects will deselect the object
23
+ - Double click on an object will expand children and select the object
24
+ - Double click an already expanded object will collapse the object
25
+ - Selected objects in the model will reflect in the Object Tree
26
+ - Select an object in the model will select, expand and scroll to that object in the Object Tree
27
+ - Hover states for mouse over
28
+ - Selected state for objects selected in the model
29
+
30
+ ## [2.1.0] - 2022-04-18
31
+
32
+ ### Changed
33
+
34
+ - Improve accuracy of transparency once at rest
35
+
36
+ ### Added
37
+
38
+ - Added loading states out of the box. These can be enabled by adding the `LOADING` tool to the `tools` array when initializing the Webviewer. For example: `tools: [Webviewer.tools.LOADING]`.
39
+
40
+ ### Fixed
41
+
42
+ - Fixed CSS issue in Model Objects tree window involving alignment of the show/hide toggles.
43
+
8
44
  ## [2.0.0] - 2022-03-25
9
45
 
10
46
  ### Added
11
47
 
12
- - Cache models in the Webviewer SDK. Up till now the only way we allowed for cached models was through a Service Worker provided separately from this npm package (or implementing one yourself).
13
- - Cache object names in the Webviewer SDK. Again, this was done through a Service Worker.
14
- - Use `npm run cy:start-app-server` to start a local server for running Cypress tests against. Running this instead of `npm run dev` will allow Cypress tests to be tracked by our code coverage report.
48
+ - Caching is now handled internally by the Webviewer SDK. Prior to this release, the only way we allowed for cached models was through a Service Worker provided separately from this npm package (or implementing one yourself). If you were using a service worker in this way, it will no longer be registered by the SDK and from the SDK's perspective is useless and can be deleted.
15
49
 
16
50
  ### Changed
17
51
 
@@ -23,7 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
57
  - [BREAKING CHANGE] Removed `rest_version` option. If you were previously using the `/vapid/` endpoints specifically with this option, you will now be using the `rest/v1.0` endpoints. This option defaulted to use the `rest/v1.0` endpoints so no change necessary if you were not using it.
24
58
  - Removed `improved_modeltree` option. This was unused as we were already always using the Improved Modeltree
25
59
  - Removed `enableClipping` option. This was not doing anything.
26
- - Removed registration of the Service Worker.
60
+ - Removed Service Worker options: `swEnable`, `swScope`, and `swUrl`. This is not a breaking change and caching will continue to work. See note on caching changes in 'Added' section of this release
27
61
 
28
62
  ## [1.10.0] - 2022-03-11
29
63