@procore/bim-webviewer-sdk 17.3.0-rc.12 → 17.3.0-rc.14

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.
@@ -68,7 +68,6 @@ export class ToolBarComponent {
68
68
  onSectionBoxDisplayToggled(data: any): void;
69
69
  onRenderModeChanged(data: any): void;
70
70
  onSelectTool(data: any): void;
71
- selectMeasurementTool(data: any): void;
72
71
  selectSectionBoxTool(): Promise<void>;
73
72
  ResetNavSelection(): void;
74
73
  createToolTipContent(elem: any, name: any): string | HTMLDivElement;
@@ -7,7 +7,6 @@ export class RenderControllerProxy {
7
7
  worker: any;
8
8
  enableWebWorker: any;
9
9
  navigationManager: NavigationManager;
10
- hotkeys: Hotkeys;
11
10
  renderController: RenderController | RenderControllerWorker | null;
12
11
  pwfCache: PWFCache | null;
13
12
  renderControllerParams: {
@@ -274,7 +273,6 @@ export class RenderControllerProxy {
274
273
  clearFilteredObjectTree(...params: any[]): void | Promise<any>;
275
274
  getSectionBoxDisplayBbox(...params: any[]): Promise<any> | import("../sdk").BoundingBox;
276
275
  getSectionsAsBox(...params: any[]): Promise<any> | import("../sectioning/SectionController").OrientedBox | null;
277
- setHotkeysEnabled(enabled: any): void;
278
276
  getRayIntersectPoint(...params: any[]): Promise<any> | {
279
277
  intersection: import("../sdk").Vector3 | null;
280
278
  meshnodeIndex: number;
@@ -292,7 +290,6 @@ export namespace RenderControllerProxy {
292
290
  }
293
291
  import { PubSubController } from './PubSubController';
294
292
  import { NavigationManager } from '../navigation/NavigationManager';
295
- import { Hotkeys } from '../navigation/Hotkeys';
296
293
  import { RenderController } from './RenderController';
297
294
  import { RenderControllerWorker } from './RenderControllerWorker';
298
295
  import { PWFCache } from '../pwfreader/PWFCache';
@@ -1,17 +1,20 @@
1
- import type { NavigationManager } from './NavigationManager';
1
+ import type { NavigationManager } from '../navigation/NavigationManager';
2
2
  import type { RenderControllerProxy } from '../controllers/RenderControllerProxy';
3
- import { KeyboardControl } from './types';
3
+ import { KeyboardControl } from '../navigation/types';
4
+ import type { MeasurementManager } from '../measuring';
4
5
  export declare class Hotkeys implements KeyboardControl {
5
- private renderControllerProxy;
6
- private navigationManager;
6
+ private readonly renderControllerProxy;
7
+ private readonly navigationManager;
8
+ private readonly measurementManager;
7
9
  private _enabled;
8
10
  constructor(params: {
9
11
  renderControllerProxy: RenderControllerProxy;
10
12
  navigationManager: NavigationManager;
13
+ measurementManager: MeasurementManager;
11
14
  });
12
15
  get enabled(): boolean;
13
16
  set enabled(value: boolean);
14
- onKeyDown: (event: KeyboardEvent) => void;
17
+ onKeyDown: (event: KeyboardEvent) => Promise<void>;
15
18
  onKeyUp: () => void;
16
19
  private publishSelectedToolEvent;
17
20
  dispose(): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -2,12 +2,14 @@ import './styles.css';
2
2
  export declare class FeatureTooltip {
3
3
  element: HTMLElement;
4
4
  private readonly bimMain;
5
+ private readonly canvas;
5
6
  private timerId;
6
7
  private readonly locale;
7
8
  constructor(params: {
8
9
  locale: string;
9
10
  });
10
11
  private onMouseMove;
12
+ private onWheel;
11
13
  private onMeasurementObjectLeave;
12
14
  private onMeasurementObjectMove;
13
15
  private showTooltip;
@@ -12,12 +12,14 @@ export declare class MeasurementManager {
12
12
  private readonly apiController;
13
13
  private currentMode;
14
14
  private readonly measureModeToImplementationMap;
15
+ private readonly toolEnabled;
15
16
  constructor(params: {
16
17
  apiController: ApiController;
17
18
  measurements: {
18
19
  measurementMode: MeasureMode;
19
20
  implementation: MeasurementInterface;
20
21
  }[];
22
+ toolEnabled: boolean;
21
23
  });
22
24
  setGlobalOffset(params: Vector3): void;
23
25
  setMeasurementEnabled(params: {
@@ -0,0 +1,21 @@
1
+ export declare const setMeasurementSchema: {
2
+ type: string;
3
+ properties: {
4
+ enable: {
5
+ type: string;
6
+ };
7
+ options: {
8
+ type: string;
9
+ properties: {
10
+ measurementMode: {
11
+ type: string;
12
+ enum: string[];
13
+ };
14
+ };
15
+ additionalProperties: boolean;
16
+ default: {};
17
+ };
18
+ };
19
+ required: string[];
20
+ additionalProperties: boolean;
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/bim-webviewer-sdk",
3
- "version": "17.3.0-rc.12",
3
+ "version": "17.3.0-rc.14",
4
4
  "description": "Procore BIM Webviewer SDK",
5
5
  "main": "dist/Procore.Bim.Webviewer.js",
6
6
  "types": "dist/Procore.Bim.Webviewer.d.ts",