@procore/bim-webviewer-sdk 13.0.1 → 13.1.0-rc.1
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 +13 -0
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ 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
|
+
## [13.1.0] - 2024-03-18
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- New SDK method `camera.setPose` which sets the camera's position and look at point in one call. Alternatively, you can pass in a reference pose to `camera.setPose` to set the camera to a specific position and look at point relative to the model's global bounding box. Finally, an optional key `cameraUp` can be passed in to set the camera's up vector along with the pose.
|
|
13
|
+
- `camera.setPose({ pose: { position: { x: 0, y: 0, z: 0 }, lookAt: { x: 0, y: 0, z: 0 } } })` will set the camera to the origin of the model.
|
|
14
|
+
- `camera.setPose({ pose: 'top' })` will set the camera to the top of the model looking down.
|
|
15
|
+
- `camera.setPose({ pose: 'bottom', cameraUp: { x: 0.1, y: 0, z: 0} })` will set the camera position to the bottom of the model looking up and will set the camera up to a normalized version of the passed in `cameraUp` argument.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- 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.
|
|
20
|
+
|
|
8
21
|
## [13.0.1] - 2024-03-06
|
|
9
22
|
|
|
10
23
|
### Fixed
|