@procore/bim-webviewer-sdk 6.6.0 → 6.7.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 +34 -0
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ 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
|
+
## [6.7.0] - 2022-02-13
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Added a new `gui` namespace:
|
|
13
|
+
- `gui.addContextMenuItem(...)`: Appends a new entry in the Context Menu;
|
|
14
|
+
- `gui.removeContextMenuItems(...)`: Removes a set of entries from the Context Menu;
|
|
15
|
+
- Added `this.viewer.model.getObject` to the Web Viewer SDK which takes a object id as a parameter and returns a node object.
|
|
16
|
+
- Added Hidden Objects api to the Web Viewer SDK and adds the following
|
|
17
|
+
- `model.hideObjects` to hide objects by id
|
|
18
|
+
- `model.unhideAllObjects` to unhide all objects
|
|
19
|
+
- `model.unhideObjects` to unhide objects by id
|
|
20
|
+
- `model.getHiddenObjects` to get an array of object ids that are hidden
|
|
21
|
+
- Added Selected Objects api to the Web Viewer SDK and adds the following
|
|
22
|
+
- `model.selectObjects` to select objects by id
|
|
23
|
+
- `model.selectAllObjects` to select all objects
|
|
24
|
+
- `model.deselectObjects` to deselect objects by id
|
|
25
|
+
- `model.deselectAllObjects` to deselect all objects
|
|
26
|
+
- `model.getSelectedObjects` to get an array of object ids that are selected
|
|
27
|
+
- Added `model.getNumObjectsSelected` which returns number of selected objects. The number is determined by the selection method passed in (defaulting to `FirstObject`)
|
|
28
|
+
- `getNumObjectsSelected("FirstObject")` => number of first objects
|
|
29
|
+
- `getNumObjectsSelected("Object")` => number of objects
|
|
30
|
+
- getNumObjectsSelected("Geometry")` => number of geometries
|
|
31
|
+
- Added `model.getRootObject` which returns the root object.
|
|
32
|
+
- Added `objectDeselect` event that includes object ids of all objects that were deselected
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- Changed `selectedUpdated` event to include the object ids of the currently selected objects
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- `camera.getBcfCamera` was returning a wonky `camera_up_vector` value. It now returns the correct value.
|
|
41
|
+
|
|
8
42
|
## [6.6.0] - 2022-01-23
|
|
9
43
|
|
|
10
44
|
### Changed
|