@procore/bim-webviewer-sdk 16.5.0-rc.1 → 16.5.0-rc.10

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,16 +5,13 @@ 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]
8
+ ## [16.5.0] 2024-11-08
9
9
 
10
10
  ### Added
11
11
 
12
12
  - ([#1371](https://github.com/procore/bim-webviewer/pull/1371)) The zoom in gets limited and blocked when the camera gets really close to the Point to Point measurement midpoint (distance label's pivot point).
13
-
14
- ### Changed
15
-
16
- - ([#1361](https://github.com/procore/bim-webviewer/pull/1361)) [Internal][QA Ignore] Publish packages to npm in circle ci
17
- - ([#1339](https://github.com/procore/bim-webviewer/pull/1339)) [Internal]Refactoring PWF to support multiple versions
13
+ - ([#1378](https://github.com/procore/bim-webviewer/pull/1378)) Point to Point is disabled if the model loaded is a partitioned model.
14
+ - ([#1376](https://github.com/procore/bim-webviewer/pull/1376)) The zoom functionality gets limited when a shortest distance measurement is created. The user is able to zoom in really close to the midpoint of the measurement but not zoom past it.
18
15
 
19
16
  ## [16.4.0] 2024-10-25
20
17
 
@@ -24,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
21
  - ([#1346](https://github.com/procore/bim-webviewer/pull/1346)) Point To Point now displays two tooltips, One that follows the mouse cursor and one that displays the name of a snap feature.
25
22
  - ([#1363](https://github.com/procore/bim-webviewer/pull/1363)) When Point to Point is enabled, the bottom toolbar will now display a split button that allows the user to switch between different measurement modes for the Measure Tool.
26
23
  - ([#1362](https://github.com/procore/bim-webviewer/pull/1362)) Point To Point distance labels now dynamically disappear or appear when they are positioned behind or in front of the camera, respectively.
24
+ - ([#1375](https://github.com/procore/bim-webviewer/pull/1375)) Tooltip has been added to the new split button for Measurement Tool.
27
25
 
28
26
  ## [16.3.0] 2024-10-11
29
27
 
@@ -62,6 +62,31 @@ declare type AnchoredSvgData = {
62
62
 
63
63
  declare type AnchoredText = Omit<Text_2, 'origin'> & Anchorable;
64
64
 
65
+ declare function ApiController(apiMethod?: {
66
+ ModelRevisions: typeof ModelRevisions;
67
+ FileExtractions: typeof FileExtractions;
68
+ }): void;
69
+
70
+ declare class ApiController {
71
+ constructor(apiMethod?: {
72
+ ModelRevisions: typeof ModelRevisions;
73
+ FileExtractions: typeof FileExtractions;
74
+ });
75
+ modelRevisions: typeof ModelRevisions;
76
+ fileExtractions: typeof FileExtractions;
77
+ CheckBimPropertyService(): void;
78
+ GetBimObjectsFor(ids: any): Promise<any>;
79
+ GetBimModelRevisionViewpoints(): void;
80
+ GetBimFileViewFolders(bimfileId: any): void;
81
+ GetBimProperties({ firstObjectId, objectIds, curatedList, }: {
82
+ firstObjectId: any;
83
+ objectIds: any;
84
+ curatedList?: boolean | undefined;
85
+ }): void;
86
+ GetSimilarObjects(query: any): Promise<Response>;
87
+ trackEvent(key: any, properties?: {}): Promise<void>;
88
+ }
89
+
65
90
  declare type Arrow = {
66
91
  start: Vector2;
67
92
  end: Vector2;
@@ -131,6 +156,19 @@ export declare type BimFileUpload = {
131
156
  attachment: Attachment;
132
157
  };
133
158
 
159
+ declare function BimPropertyServiceCheck({ projectId, modelRevisionId }: {
160
+ projectId: any;
161
+ modelRevisionId: any;
162
+ }): Promise<Response>;
163
+
164
+ declare const BimPropertyServiceCheck_2: ({ projectId, propertyFileId, holderType, }: BimPropertyServiceCheckParams) => Promise<Response>;
165
+
166
+ declare type BimPropertyServiceCheckParams = {
167
+ projectId: Project['id'];
168
+ propertyFileId: PropertiesFile['id'];
169
+ holderType: HolderType;
170
+ };
171
+
134
172
  declare type BootstrapperResult = {
135
173
  isComplete: boolean;
136
174
  };
@@ -314,6 +352,16 @@ export declare type FileExtractionModeResource = {
314
352
  fileExtractionId: FileExtraction['id'];
315
353
  };
316
354
 
355
+ declare namespace FileExtractions {
356
+ export {
357
+ GetBimFileExtraction,
358
+ GetBimObjectsFor_2 as GetBimObjectsFor,
359
+ GetSimilarBimObjects_2 as GetSimilarBimObjects,
360
+ BimPropertyServiceCheck_2 as BimPropertyServiceCheck,
361
+ GetBimProperties_2 as GetBimProperties
362
+ }
363
+ }
364
+
317
365
  export declare type FileVersion = {
318
366
  id: number;
319
367
  file_id: number;
@@ -362,6 +410,65 @@ export declare type GeometryFile = {
362
410
  url: string;
363
411
  };
364
412
 
413
+ declare const GetBimFileExtraction: ({ projectId, fileExtractionId, }: GetBimFileExtractionParams) => Promise<Response>;
414
+
415
+ declare type GetBimFileExtractionParams = {
416
+ projectId: Project['id'];
417
+ fileExtractionId: FileExtraction['id'];
418
+ };
419
+
420
+ declare function GetBimModelRevision({ projectId, modelRevisionId }: {
421
+ projectId: any;
422
+ modelRevisionId: any;
423
+ }): Promise<Response>;
424
+
425
+ declare function GetBimObjectsFor({ ids, projectId, modelRevisionId }: {
426
+ ids: any;
427
+ projectId: any;
428
+ modelRevisionId: any;
429
+ }, method?: string): Promise<Response>;
430
+
431
+ declare const GetBimObjectsFor_2: ({ projectId, propertyFileId, ids, holderType, }: GetBimObjectsForParams) => Promise<Response>;
432
+
433
+ declare type GetBimObjectsForParams = {
434
+ projectId: Project['id'];
435
+ propertyFileId: PropertiesFile['id'];
436
+ holderType: HolderType;
437
+ ids: number[];
438
+ };
439
+
440
+ declare function GetBimProperties({ objectIds, projectId, modelRevisionId, curatedList, }: {
441
+ objectIds: any;
442
+ projectId: any;
443
+ modelRevisionId: any;
444
+ curatedList?: boolean | undefined;
445
+ }): Promise<Response>;
446
+
447
+ declare const GetBimProperties_2: (params: GetBimPropertiesParams) => Promise<Response>;
448
+
449
+ declare type GetBimPropertiesParams = {
450
+ projectId: Project['id'];
451
+ propertyFileId: PropertiesFile['id'];
452
+ holderType: HolderType;
453
+ objectIds: Array<number>;
454
+ curatedList?: boolean;
455
+ };
456
+
457
+ declare function GetSimilarBimObjects({ name, projectId, modelRevisionId }: {
458
+ name: any;
459
+ projectId: any;
460
+ modelRevisionId: any;
461
+ }): Promise<Response>;
462
+
463
+ declare const GetSimilarBimObjects_2: ({ name, projectId, propertyFileId, holderType, }: GetSimilarBimObjectsParams) => Promise<Response>;
464
+
465
+ declare type GetSimilarBimObjectsParams = {
466
+ name: string;
467
+ projectId: Project['id'];
468
+ propertyFileId: PropertiesFile['id'];
469
+ holderType: HolderType;
470
+ };
471
+
365
472
  declare type GlobalOffset = {
366
473
  offsetX: number;
367
474
  offsetY: number;
@@ -410,6 +517,8 @@ declare class HiddenNodeServices {
410
517
  updateHiddenAncestry: (nodeId: number, hidden: boolean, resourceId: number) => void;
411
518
  }
412
519
 
520
+ declare type HolderType = 'FileVersion' | 'BimModelRevision';
521
+
413
522
  declare class Hotkeys implements KeyboardControl {
414
523
  private renderControllerProxy;
415
524
  private navigationManager;
@@ -902,6 +1011,16 @@ export declare type ModelRevisionModePwfV2Resource = PwfV2Bundle & {
902
1011
  modelRevisionId: ModelRevision['id'];
903
1012
  };
904
1013
 
1014
+ declare namespace ModelRevisions {
1015
+ export {
1016
+ GetBimObjectsFor,
1017
+ GetSimilarBimObjects,
1018
+ BimPropertyServiceCheck,
1019
+ GetBimProperties,
1020
+ GetBimModelRevision
1021
+ }
1022
+ }
1023
+
905
1024
  export declare type ModelRevisionViewpoint = Viewpoint & {
906
1025
  primary: boolean;
907
1026
  };
@@ -1625,6 +1744,7 @@ declare class PointToPointManager implements MeasurementInterface {
1625
1744
  private readonly renderControllerProxy;
1626
1745
  private readonly settingsController;
1627
1746
  private readonly measurementRenderer;
1747
+ private readonly apiController;
1628
1748
  private firstMeasurePoint;
1629
1749
  private secondMeasurePoint;
1630
1750
  private snapPosition;
@@ -1639,6 +1759,7 @@ declare class PointToPointManager implements MeasurementInterface {
1639
1759
  private cursorTooltip;
1640
1760
  private featureTooltip;
1641
1761
  constructor(params: {
1762
+ apiController: ApiController;
1642
1763
  renderControllerProxy: RenderControllerProxy;
1643
1764
  settingsController: SettingsController;
1644
1765
  svgRenderer: SvgRenderer;