@procore/bim-webviewer-sdk 6.6.0-BIM-2377.0 → 6.6.0-estimating-dev.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 CHANGED
@@ -19,11 +19,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
  - `model.unhideAllObjects` to unhide all objects
20
20
  - `model.unhideObjects` to unhide objects by id
21
21
  - `model.getHiddenObjects` to get an array of object ids that are hidden
22
+ - Added Selected Objects api to the Web Viewer SDK and adds the following
23
+ - `model.selectObjects` to select objects by id
24
+ - `model.selectAllObjects` to select all objects
25
+ - `model.deselectObjects` to deselect objects by id
26
+ - `model.deselectAllObjects` to deselect all objects
27
+ - `model.getSelectedObjects` to get an array of object ids that are selected
22
28
  - [Internal] Added an Debug.gui option to set the background color used in the scene.
23
- - Added `this.viewer.model.getRootObject` to the Web Viewer SDK which returns a root node object.
29
+ - Added `model.getNumObjectsSelected` which returns number of selected objects. The number is determined by the selection method passed in (defaulting to `FirstObject`)
30
+ - `getNumObjectsSelected("FirstObject")` => number of first objects
31
+ - `getNumObjectsSelected("Object")` => number of objects
32
+ - getNumObjectsSelected("Geometry")` => number of geometries
33
+ - Added `model.getRootObject` which returns the root object.
34
+ - Added `objectDeselect` event that includes object ids of all objects that were deselected
35
+ - [Internal] Added `logViewerEvents` option to `devEnvironmentConfig.local` that when set to `true` will log some events to the console in our dev environment.
36
+ - [Internal] Added `events/apiObjectSelection.cy` to test events that should and shouldn't fire when selection occurs via the API
37
+ - [Internal] Added `events/canvasObjectSelection.cy` to test events that should and shouldn't fire when selection occurs via mouse clicks on the canvas
24
38
 
25
39
  ### Changed
26
40
 
41
+ - [Internal] Updates most of the viewer's dependencies.
42
+ - Changed `selectedUpdated` event to include the object ids of the currently selected objects
27
43
  - [Internal] `VisibleObjectsCache` was revamped in the following ways:
28
44
  - Renamed `RelevantMeshnodesSet`;
29
45
  - Uses a spatial index (`KDTree`) to store the meshnodes instead of arrays;