@procore/bim-webviewer-sdk 16.6.0-rc.14 → 16.6.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.d.ts +135 -2334
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +4 -3
- package/dist/types/src/api/analytic_events/analyticKeys.d.ts +1 -0
- package/dist/types/src/api/analytic_events/index.d.ts +1 -1
- package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +1 -0
- package/dist/types/src/components/ToolBarComponent/ToolbarButton/SplitButton.d.ts +7 -5
- package/dist/types/src/measuring/MeasurementManager.d.ts +5 -4
- package/dist/types/src/sdk.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10,8 +10,8 @@ import { SectionDataAutodeskFormat, SectionDataProcoreFormat } from './sectionin
|
|
|
10
10
|
import type { Viewpoint, Visibility } from './api/types/Viewpoint';
|
|
11
11
|
import type { CssColor } from './components/Markup/SvgRenderer';
|
|
12
12
|
import { RenderMode } from './utils/constants';
|
|
13
|
-
import { PointToPointManager } from './measuring';
|
|
14
13
|
import { Uom, DisplayUnit } from './unit_util';
|
|
14
|
+
import { MeasureMode } from './measuring/MeasurementManager';
|
|
15
15
|
export type ResourceDiscriminator = {
|
|
16
16
|
fileExtractionId: number;
|
|
17
17
|
} | {
|
|
@@ -19,7 +19,6 @@ export type ResourceDiscriminator = {
|
|
|
19
19
|
};
|
|
20
20
|
export declare class Webviewer {
|
|
21
21
|
options: Options;
|
|
22
|
-
pointToPointManager: PointToPointManager;
|
|
23
22
|
private readonly measurementRenderer;
|
|
24
23
|
private readonly measurementManager;
|
|
25
24
|
static readonly tools: {
|
|
@@ -216,7 +215,9 @@ export declare class Webviewer {
|
|
|
216
215
|
deselectObjects: (objectIds: number[], objectTreeName?: string) => Promise<boolean>;
|
|
217
216
|
selectAllObjects: (objectTreeName?: string) => Promise<boolean>;
|
|
218
217
|
getSelectedObjects: () => Promise<number[]>;
|
|
219
|
-
setMeasurement: (enable: boolean
|
|
218
|
+
setMeasurement: (enable: boolean, options?: {
|
|
219
|
+
measurementMode?: MeasureMode;
|
|
220
|
+
}) => void;
|
|
220
221
|
setObjectColor: (palettes: PaletteParams[], options?: {
|
|
221
222
|
resourceId?: number;
|
|
222
223
|
}) => void;
|
|
@@ -148,6 +148,7 @@ export declare const MEASUREMENT_ORIGIN: {
|
|
|
148
148
|
readonly ESC: "esc";
|
|
149
149
|
readonly HOTKEY: "hotkey";
|
|
150
150
|
};
|
|
151
|
+
export type MeasurementOrigin = (typeof MEASUREMENT_ORIGIN)[keyof typeof MEASUREMENT_ORIGIN];
|
|
151
152
|
export declare const measurements: {
|
|
152
153
|
readonly enabled: "project.3d_models.measure.enabled";
|
|
153
154
|
readonly disabled: "project.3d_models.measure.disabled";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { model, clientLoadings, webviewers, bimToolbars, sectionBoxes, SECTION_BOX_ORIGIN, SectionBoxOrigin, SectionBoxDisplayPlanesPayload, bimObjects, BIM_OBJECT_ORIGIN, renderings, RENDER_MODE_ORIGIN, measurements, MEASUREMENT_ORIGIN, } from './analyticKeys';
|
|
1
|
+
export { model, clientLoadings, webviewers, bimToolbars, sectionBoxes, SECTION_BOX_ORIGIN, SectionBoxOrigin, SectionBoxDisplayPlanesPayload, bimObjects, BIM_OBJECT_ORIGIN, renderings, RENDER_MODE_ORIGIN, measurements, MEASUREMENT_ORIGIN, MeasurementOrigin, } from './analyticKeys';
|
|
2
2
|
export { trackEvent } from './analyticEvents';
|
|
3
3
|
export { AnalyticEventPayload } from './types/AnalyticEventPayload';
|
|
@@ -61,6 +61,7 @@ export class ToolBarComponent {
|
|
|
61
61
|
createToolBarButton(tool: any, clickFunction?: null): HTMLDivElement;
|
|
62
62
|
createDividerLine(id: any): HTMLDivElement;
|
|
63
63
|
createOptionalTools(toolbar: any): void;
|
|
64
|
+
measureButton: any;
|
|
64
65
|
onResize(): void;
|
|
65
66
|
createNavTools(toolbar: any): void;
|
|
66
67
|
onMeasurementToggled(data: any): void;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import './styles.css';
|
|
2
2
|
type FlyOutMenuItem = {
|
|
3
|
+
key: string;
|
|
3
4
|
content: string;
|
|
4
5
|
onMenuItemClick: () => void;
|
|
5
6
|
cssIconClass: string;
|
|
6
7
|
};
|
|
7
8
|
export declare class SplitButton {
|
|
8
9
|
element: HTMLElement;
|
|
9
|
-
flyOutMenu
|
|
10
|
-
button
|
|
11
|
-
buttonIcon
|
|
12
|
-
flyOutClickAreaButton
|
|
13
|
-
|
|
10
|
+
private readonly flyOutMenu;
|
|
11
|
+
private readonly button;
|
|
12
|
+
private readonly buttonIcon;
|
|
13
|
+
private readonly flyOutClickAreaButton;
|
|
14
|
+
private readonly flyOutMenuItems;
|
|
14
15
|
onFlyOutMenuOpen: () => void;
|
|
15
16
|
onFlyOutMenuClose: () => void;
|
|
16
17
|
constructor(params: {
|
|
@@ -25,6 +26,7 @@ export declare class SplitButton {
|
|
|
25
26
|
};
|
|
26
27
|
});
|
|
27
28
|
private createFlyOutMenuItem;
|
|
29
|
+
setSelectedItem: (key: string) => void;
|
|
28
30
|
private setMenuItemSelected;
|
|
29
31
|
private flyOutClickZoneOnClick;
|
|
30
32
|
private setFlyOutMenuVisibility;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MeasurementInterface } from './MeasurementInterface';
|
|
2
2
|
import { Vector3 } from '../types/Math';
|
|
3
3
|
import type { ApiController } from '../controllers/ApiController';
|
|
4
|
+
import { MeasurementOrigin } from '../api/analytic_events';
|
|
4
5
|
export declare const MEASURE_MODES: {
|
|
5
6
|
POINT_TO_POINT: string;
|
|
6
7
|
SHORTEST_DISTANCE: string;
|
|
@@ -20,16 +21,16 @@ export declare class MeasurementManager {
|
|
|
20
21
|
});
|
|
21
22
|
setGlobalOffset(params: Vector3): void;
|
|
22
23
|
setMeasurementEnabled(params: {
|
|
23
|
-
measurementMode
|
|
24
|
+
measurementMode?: MeasureMode;
|
|
24
25
|
enable: boolean;
|
|
25
|
-
origin:
|
|
26
|
+
origin: MeasurementOrigin;
|
|
26
27
|
}): void;
|
|
27
28
|
toggleMeasurement(params: {
|
|
28
29
|
measurementMode: MeasureMode;
|
|
29
|
-
origin:
|
|
30
|
+
origin: MeasurementOrigin;
|
|
30
31
|
}): void;
|
|
31
32
|
toggleCurrentMeasurement(params: {
|
|
32
|
-
origin:
|
|
33
|
+
origin: MeasurementOrigin;
|
|
33
34
|
}): void;
|
|
34
35
|
handleKeydown(curKey: number): void;
|
|
35
36
|
private handleESC;
|
package/dist/types/src/sdk.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type { PaletteParams } from './types/Palette';
|
|
|
34
34
|
export type { Uom, DisplayUnit } from './unit_util';
|
|
35
35
|
export { UOM, DISPLAY_UNIT_ABBREVIATIONS as DISPLAY_UNIT } from './unit_util';
|
|
36
36
|
export type { ProjectSettings } from './controllers/SettingsController';
|
|
37
|
+
export { MEASURE_MODES, type MeasureMode, } from './measuring/MeasurementManager';
|
|
37
38
|
declare const version: string;
|
|
38
39
|
export { version };
|
|
39
40
|
export { ErrorLogger } from './utils/Error';
|