@procore/bim-webviewer-sdk 17.3.0-rc.13 → 17.3.0-rc.15
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 +1 -0
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +0 -1
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +0 -3
- package/dist/types/src/{navigation → hotkeys}/Hotkeys.d.ts +8 -5
- package/dist/types/src/hotkeys/__tests__/Hotkeys.test.d.ts +1 -0
- package/dist/types/src/measuring/MeasurementManager.d.ts +2 -0
- package/dist/types/src/types/setMeasurementSchema.d.ts +21 -0
- package/package.json +1 -1
|
@@ -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 '
|
|
1
|
+
import type { NavigationManager } from '../navigation/NavigationManager';
|
|
2
2
|
import type { RenderControllerProxy } from '../controllers/RenderControllerProxy';
|
|
3
|
-
import { KeyboardControl } from '
|
|
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 {};
|
|
@@ -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
|
+
};
|