@procore/bim-webviewer-sdk 12.0.0-rc.0 → 13.0.0-BIM-3885.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,26 @@ 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
+ ### Fixed
11
+
12
+ - The `intersectPointClick` event now returns `null` in some edge cases (literally) where the click is very close to the edge, but does not actually intersect. Previously it would return the center of the object in this case even though there was no actual intersection. This was most reproducible when clicking on the edges of objects that are very far away where a single pixel could partially contain an object.
13
+
14
+ ## [13.0.0] - 2024-03-04
15
+
16
+ ### Changed
17
+
18
+ - [Breaking Change] `companyId` is now a required property of the common Web Viewer options object. This is a breaking change because it was previously optional. The company id is used to set the `Procore-Company-Id` header to be in compliance with the MPR Request Header Requirement. See more info here: https://developers.procore.com/documentation/mpz-headers. Options will now validate against the existence of a company id and throw and error if one does not exist in the options object.
19
+ - [Breaking Change] `projectId` is now a required property of the common Web Viewer options object. Project id was not explicitly stated as being required but many Web Viewer features require the project id to hit API endpoints. Options will now validate against the existence of a project id and throw and error if one does not exist in the options object.
20
+
21
+ ### Fixed
22
+
23
+ - Fixed crash when calling terminate while the Web Viewer is downloading a model.
24
+ - Fixed bug that caused Web Viewer to continue to download models even after terminate was called.
25
+ - Fixed bug that when sections_data has 6 planes will cause create section box return [Infinity] box
26
+ - Fixed bug with Model Objects `Hide All` and `Select All` on a filtered Object Tree that would hide and select all the objects rather than the objects contained by the filtered object tree.
27
+
8
28
  ## [12.0.0] - 2024-02-20
9
29
 
10
30
  ### Changed
@@ -17,7 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
37
  - 'objectSingleClick`
18
38
  - `objectSelect`
19
39
  - Changes the Loading Screen by switching to a single progress bar that goes from 0 to 100 once, before opening the fully rendered modeled.
20
- - `model.configureSectionBoxDisplay` now takes a new new option `overrideSectionBoxSetup` that determines whether or not `model.toggleSectionBoxDisplay` will apply or clear the section box applied to the model. This configuration affects all following calls to `model.toggleSectionBoxDisplay`.
40
+ - `model.configureSectionBoxDisplay` now takes a new new option `overrideSectionBoxSetup` that determines whether or not `model.toggleSectionBoxDisplay` will apply or clear the section box applied to the model. This configuration affects all following calls to `model.toggleSectionBoxDisplay`.
21
41
  - `model.configureSectionBoxDisplay({ overrideSectionBoxSetup: true })` will prevent `model.toggleSectionBoxDisplay` from applying or clearing the section box, requiring callers to set the section box themselves.
22
42
  - `model.configureSectionBoxDisplay({ overrideSectionBoxSetup: false })` will allow `model.toggleSectionBoxDisplay` to apply or clear the section box. This is the default behavior.
23
43
  - `model.toggleSectionBoxDisplay` now conditionally applies or clears the section box based on an `overrideSectionBoxSetup` value.