@procore/bim-webviewer-sdk 14.1.0-BIM-3945.0 → 14.1.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,19 +5,6 @@ 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
- ### Added
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.
15
-
16
- ### Changed
17
-
18
- - [Breaking Change] `model.getSnapshot` now expects a params object instead of individual params. It only had one optional argument so there is just one change:
19
- - `model.getSnapshot('#aabbcc')` must now be called as `model.getSnapshot({ color: '#aabbcc' })`
20
-
21
8
  ## [14.1.0] - 2024-04-15
22
9
 
23
10
  ### Fixed
@@ -122,8 +122,6 @@ declare type CommonOptions = {
122
122
  bimFileId?: number;
123
123
  };
124
124
 
125
- declare type CssColor = RGB | RGBA | HEX | string;
126
-
127
125
  declare type FeatureFlags = Partial<{
128
126
  enableObjectTreeSearch: boolean;
129
127
  }>;
@@ -177,8 +175,6 @@ declare type GeometryFile = {
177
175
  url: string;
178
176
  };
179
177
 
180
- declare type HEX = `#${string}`;
181
-
182
178
  declare type MetricId = string;
183
179
 
184
180
  declare type Model = {
@@ -283,10 +279,6 @@ declare type PwfV2Bundle = {
283
279
  manifestUrl: GeometryFile['url'];
284
280
  };
285
281
 
286
- declare type RGB = `rgb(${number}, ${number}, ${number})`;
287
-
288
- declare type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
289
-
290
282
  declare type SectionDataAutodeskFormat = {
291
283
  Type: 'ClipPlaneSet';
292
284
  Version: 1;
@@ -390,19 +382,9 @@ export declare class Webviewer {
390
382
  position: Vector3;
391
383
  direction: Vector3;
392
384
  }>;
393
- getSnapshot: (params?: {
394
- color?: string | undefined;
395
- size?: {
396
- width: number;
397
- height: number;
398
- } | undefined;
399
- }) => Promise<void>;
385
+ getSnapshot: (color: string) => Promise<void>;
400
386
  getSnapshotDataUrl: (params?: {
401
- color?: CssColor;
402
- size?: {
403
- width: number;
404
- height: number;
405
- };
387
+ color: unknown;
406
388
  }) => Promise<string>;
407
389
  setLookAt: (x: number, y: number, z: number) => Promise<{
408
390
  position: Vector3;