@procore/bim-webviewer-sdk 15.0.0-rc.0 → 15.0.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
@@ -9,9 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Added
11
11
 
12
- - `model.getSnapshot` and `model.getSnapshotDataUrl` now take an optional `size` parameter, e.g. `model.getSnapshot({ size: { width: 640, height: 480 } })`
13
- - When no `size` parameter is present, it will return an image with the dimensions of the canvas
14
- - When a `size` parameter is present, it will return an image with the maximum dimensions that fit in the current canvas that match the aspect ratio of the requested size. This may be smaller or larger than the requested size depending on the size of the canvas.
12
+ - `model.getSnapshot` and `model.getSnapshotDataUrl` now take an optional `aspectRatio` parameter, e.g. `model.getSnapshot({ aspectRatio: { width: 640, height: 480 } })`
13
+ - When no `aspectRatio` parameter is present, it will return an image with the dimensions of the canvas
14
+ - When a `aspectRatio` parameter is present, it will return an image with the maximum dimensions that fit in the current canvas that match the aspect ratio. This may be smaller or larger than the values passed depending on the size of the canvas.
15
15
  - Added a Beta pill in loading screen when model is a large partitioned model.
16
16
 
17
17
  ### Changed