@procore/bim-webviewer-sdk 16.5.0-rc.4 → 16.5.0-rc.6

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.
@@ -119,3 +119,15 @@ export declare const RENDER_MODE_ORIGIN: {
119
119
  readonly HOTKEY: "hotkey";
120
120
  };
121
121
  export type RenderModeOrigin = (typeof RENDER_MODE_ORIGIN)[keyof typeof RENDER_MODE_ORIGIN];
122
+ export declare const MEASUREMENT_ORIGIN: {
123
+ readonly SDK: "sdk";
124
+ readonly TOOLBAR: "toolbar";
125
+ readonly FLYOUT_MENU: "flyout_menu";
126
+ readonly ESC: "esc";
127
+ readonly HOTKEY: "hotkey";
128
+ };
129
+ export declare const measurements: {
130
+ readonly enabled: `${string}.enabled`;
131
+ readonly disabled: `${string}.disabled`;
132
+ readonly completed: `${string}.completed`;
133
+ };
@@ -1,3 +1,3 @@
1
- export { model, clientLoadings, bimToolbars, sectionBoxes, SECTION_BOX_ORIGIN, SectionBoxOrigin, SectionBoxDisplayPlanesPayload, bimObjects, BIM_OBJECT_ORIGIN, renderings, RENDER_MODE_ORIGIN, } from './analyticKeys';
1
+ export { model, clientLoadings, bimToolbars, sectionBoxes, SECTION_BOX_ORIGIN, SectionBoxOrigin, SectionBoxDisplayPlanesPayload, bimObjects, BIM_OBJECT_ORIGIN, renderings, RENDER_MODE_ORIGIN, measurements, MEASUREMENT_ORIGIN, } from './analyticKeys';
2
2
  export { trackEvent } from './analyticEvents';
3
3
  export { AnalyticEventPayload } from './types/AnalyticEventPayload';
@@ -1,7 +1,8 @@
1
- export function ShortestDistanceComponent(options: any, renderControllerProxy: any, measurementRenderer: any, componentOptions?: null): void;
1
+ export function ShortestDistanceComponent(options: any, renderControllerProxy: any, apiController: any, measurementRenderer: any, componentOptions?: null): void;
2
2
  export class ShortestDistanceComponent {
3
- constructor(options: any, renderControllerProxy: any, measurementRenderer: any, componentOptions?: null);
3
+ constructor(options: any, renderControllerProxy: any, apiController: any, measurementRenderer: any, componentOptions?: null);
4
4
  options: any;
5
+ apiController: any;
5
6
  renderControllerProxy: any;
6
7
  measurementRenderer: any;
7
8
  bimMain: HTMLElement | null;
@@ -11,15 +11,22 @@ export declare class SplitButton {
11
11
  buttonIcon: HTMLElement;
12
12
  flyOutClickAreaButton: HTMLElement;
13
13
  flyOutMenuItemsElements: HTMLElement[];
14
+ onFlyOutMenuOpen: () => void;
15
+ onFlyOutMenuClose: () => void;
14
16
  constructor(params: {
15
17
  mainButton: {
16
18
  content: string;
17
19
  onButtonClick: () => void;
18
20
  };
19
21
  flyOutMenuItems: FlyOutMenuItem[];
22
+ flyoutMenu: {
23
+ onOpen: () => void;
24
+ onClose: () => void;
25
+ };
20
26
  });
21
27
  private createFlyOutMenuItem;
22
28
  private setMenuItemSelected;
23
29
  private flyOutClickZoneOnClick;
30
+ private setFlyOutMenuVisibility;
24
31
  }
25
32
  export {};
@@ -1,17 +1,22 @@
1
1
  import { MeasurementInterface } from './MeasurementInterface';
2
+ import type { ApiController } from '../controllers/ApiController';
2
3
  export declare const MEASURE_MODES: {
3
4
  POINT_TO_POINT: string;
4
5
  SHORTEST_DISTANCE: string;
5
6
  };
6
- type MeasureMode = (typeof MEASURE_MODES)[keyof typeof MEASURE_MODES];
7
+ export type MeasureMode = (typeof MEASURE_MODES)[keyof typeof MEASURE_MODES];
7
8
  export declare class MeasurementManager {
8
9
  enabled: boolean;
10
+ private readonly apiController;
9
11
  private currentMode;
10
12
  private readonly measureModeToImplementationMap;
11
- constructor(measurements: {
12
- measurementMode: MeasureMode;
13
- implementation: MeasurementInterface;
14
- }[]);
13
+ constructor(params: {
14
+ apiController: ApiController;
15
+ measurements: {
16
+ measurementMode: MeasureMode;
17
+ implementation: MeasurementInterface;
18
+ }[];
19
+ });
15
20
  setGlobalOffset(params: {
16
21
  offsetX: number;
17
22
  offsetY: number;
@@ -20,9 +25,14 @@ export declare class MeasurementManager {
20
25
  setMeasurementEnabled(params: {
21
26
  measurementMode: MeasureMode;
22
27
  enable: boolean;
28
+ origin: string;
29
+ }): void;
30
+ toggleMeasurement(params: {
31
+ measurementMode: MeasureMode;
32
+ origin: string;
33
+ }): void;
34
+ toggleCurrentMeasurement(params: {
35
+ origin: string;
23
36
  }): void;
24
- toggleMeasurement(measurementMode: MeasureMode): void;
25
- toggleCurrentMeasurement(): void;
26
37
  private updateMeasurementState;
27
38
  }
28
- export {};
@@ -3,11 +3,13 @@ import type { MeasurementRenderer } from './MeasurementRenderer';
3
3
  import type { SettingsController } from '../controllers/SettingsController';
4
4
  import type { RenderControllerProxy } from '../controllers/RenderControllerProxy';
5
5
  import type { MeasurementInterface } from './MeasurementInterface';
6
+ import { ApiController } from '../controllers/ApiController';
6
7
  export declare class PointToPointManager implements MeasurementInterface {
7
8
  private readonly svgRenderer;
8
9
  private readonly renderControllerProxy;
9
10
  private readonly settingsController;
10
11
  private readonly measurementRenderer;
12
+ private readonly apiController;
11
13
  private firstMeasurePoint;
12
14
  private secondMeasurePoint;
13
15
  private snapPosition;
@@ -22,6 +24,7 @@ export declare class PointToPointManager implements MeasurementInterface {
22
24
  private cursorTooltip;
23
25
  private featureTooltip;
24
26
  constructor(params: {
27
+ apiController: ApiController;
25
28
  renderControllerProxy: RenderControllerProxy;
26
29
  settingsController: SettingsController;
27
30
  svgRenderer: SvgRenderer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/bim-webviewer-sdk",
3
- "version": "16.5.0-rc.4",
3
+ "version": "16.5.0-rc.6",
4
4
  "description": "Procore BIM Webviewer SDK",
5
5
  "main": "dist/Procore.Bim.Webviewer.js",
6
6
  "types": "dist/Procore.Bim.Webviewer.d.ts",