@procore/bim-webviewer-sdk 16.6.0-rc.6 → 16.6.0-rc.8
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 +3 -0
- package/dist/Procore.Bim.Webviewer.d.ts +13 -2
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/api/analytic_events/analyticKeys.d.ts +23 -1
- package/dist/types/src/api/analytic_events/index.d.ts +1 -1
- package/dist/types/src/api/analytic_events/payloadFactories.d.ts +2 -1
- package/dist/types/src/components/ShortestDistanceComponent.d.ts +6 -4
- package/dist/types/src/components/__tests__/ShortestDisanceFixtures.d.ts +21 -0
- package/dist/types/src/measuring/MeasurementInterface.d.ts +8 -0
- package/dist/types/src/measuring/MeasurementManager.d.ts +2 -0
- package/dist/types/src/measuring/PointToPointManager.d.ts +4 -3
- package/package.json +1 -1
|
@@ -15,8 +15,8 @@ export declare const bimToolbars: {
|
|
|
15
15
|
readonly navigation_fly_tapped: `${string}.navigation_fly_tapped`;
|
|
16
16
|
};
|
|
17
17
|
export declare const clientLoadings: {
|
|
18
|
-
readonly initialization: `${string}.initialization`;
|
|
19
18
|
readonly download_completed: `${string}.download_completed`;
|
|
19
|
+
readonly initialization: `${string}.initialization`;
|
|
20
20
|
};
|
|
21
21
|
export type ModelType = 'standard' | 'partitioned' | undefined;
|
|
22
22
|
export type BimModelsDownloadCompletedPayload = {
|
|
@@ -55,6 +55,28 @@ export type InitializationTrackEventPayload = ModelInitializationPayload & {
|
|
|
55
55
|
input_file_size: number;
|
|
56
56
|
file_extraction_id?: string;
|
|
57
57
|
};
|
|
58
|
+
export declare const webviewers: {
|
|
59
|
+
readonly environment: `${string}.environment`;
|
|
60
|
+
};
|
|
61
|
+
export type EnvironmentTrackEventPayload = {
|
|
62
|
+
web_viewer_version: string;
|
|
63
|
+
storage_persisted: boolean;
|
|
64
|
+
storage_quota?: number;
|
|
65
|
+
storage_usage?: number;
|
|
66
|
+
storage_usage_details_caches?: number;
|
|
67
|
+
storage_usage_details_file_system?: number;
|
|
68
|
+
storage_usage_details_indexed_db?: number;
|
|
69
|
+
ua_browser_name?: string;
|
|
70
|
+
ua_browser_version?: string;
|
|
71
|
+
ua_device_model?: string;
|
|
72
|
+
ua_device_type?: string;
|
|
73
|
+
ua_device_vendor?: string;
|
|
74
|
+
ua_engine_name?: string;
|
|
75
|
+
ua_engine_version?: string;
|
|
76
|
+
ua_os_name?: string;
|
|
77
|
+
ua_os_version?: string;
|
|
78
|
+
ua_cpu_architecture?: string;
|
|
79
|
+
};
|
|
58
80
|
export declare const sectionBoxes: {
|
|
59
81
|
readonly enabled: `${string}.enabled`;
|
|
60
82
|
readonly disabled: `${string}.disabled`;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { model, clientLoadings, 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, } from './analyticKeys';
|
|
2
2
|
export { trackEvent } from './analyticEvents';
|
|
3
3
|
export { AnalyticEventPayload } from './types/AnalyticEventPayload';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PWF } from '../../pwfreader/PWF';
|
|
2
|
-
import { ModelInitializationPayload, BimModelsDownloadCompletedPayload, InitializationTrackEventPayload, ModelType } from './analyticKeys';
|
|
2
|
+
import { ModelInitializationPayload, BimModelsDownloadCompletedPayload, InitializationTrackEventPayload, ModelType, EnvironmentTrackEventPayload } from './analyticKeys';
|
|
3
3
|
export declare const getModelMetaData: () => Promise<{
|
|
4
4
|
file_name: string;
|
|
5
5
|
file_type: string;
|
|
@@ -24,3 +24,4 @@ export declare const getDownloadCompletedTrackEventPayload: (params: {
|
|
|
24
24
|
totalPartitionsSizeCompressed?: number | undefined;
|
|
25
25
|
numPartitions?: number | undefined;
|
|
26
26
|
}) => Promise<BimModelsDownloadCompletedPayload>;
|
|
27
|
+
export declare const getEnvironmentTrackEventPayload: () => Promise<EnvironmentTrackEventPayload>;
|
|
@@ -8,14 +8,16 @@ export class ShortestDistanceComponent {
|
|
|
8
8
|
bimMain: HTMLElement | null;
|
|
9
9
|
cursorTooltip: CursorTooltip | null;
|
|
10
10
|
center_lock: any;
|
|
11
|
-
|
|
11
|
+
measureObjectCount: number;
|
|
12
|
+
measurementShown: boolean;
|
|
12
13
|
pivot: import("three").Vector3;
|
|
13
14
|
onHideUpdated(): Promise<void>;
|
|
14
15
|
toggle(params: any): void;
|
|
15
|
-
|
|
16
|
+
clearDisplayElements(): void;
|
|
16
17
|
removeCursors(): void;
|
|
17
18
|
setGlobalOffset(params: any): void;
|
|
18
19
|
globalOffset: import("three").Vector3 | undefined;
|
|
20
|
+
getMeasurementProgress(): "initial" | "inProgress" | "completed";
|
|
19
21
|
getGlobalOffset(): import("three").Vector3;
|
|
20
22
|
onNavigationChanged(data: any): Promise<void>;
|
|
21
23
|
compute(modelItem1: any, modelItem2: any): Promise<void>;
|
|
@@ -26,7 +28,7 @@ export class ShortestDistanceComponent {
|
|
|
26
28
|
distance: number;
|
|
27
29
|
} | undefined;
|
|
28
30
|
resetMeasurement(): void;
|
|
29
|
-
onObjectMeasure(
|
|
30
|
-
handleMeasureObjectsSelected(measureObjectMeshes: any
|
|
31
|
+
onObjectMeasure(): Promise<void>;
|
|
32
|
+
handleMeasureObjectsSelected(measureObjectMeshes: any): Promise<void>;
|
|
31
33
|
}
|
|
32
34
|
import { CursorTooltip } from "../measuring/CursorTooltip";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MeshnodeObject } from '../../pwfreader/PWFTypes';
|
|
2
|
+
export declare const meshnodeIndex1 = 1604;
|
|
3
|
+
export declare const meshnodeObject1: MeshnodeObject;
|
|
4
|
+
export declare const meshnodeIndex2 = 2683;
|
|
5
|
+
export declare const meshnodeObject2: MeshnodeObject;
|
|
6
|
+
export declare const expectedResult: {
|
|
7
|
+
method: string;
|
|
8
|
+
start: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
z: number;
|
|
12
|
+
};
|
|
13
|
+
end: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
z: number;
|
|
17
|
+
};
|
|
18
|
+
distance: number;
|
|
19
|
+
reduced_by_1: string;
|
|
20
|
+
reduced_by_2: string;
|
|
21
|
+
};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { Vector3 } from '../types/Math';
|
|
2
|
+
export declare const MEASUREMENT_STATE: {
|
|
3
|
+
readonly initial: "initial";
|
|
4
|
+
readonly inProgress: "inProgress";
|
|
5
|
+
readonly completed: "completed";
|
|
6
|
+
};
|
|
7
|
+
export type MeasurementState = (typeof MEASUREMENT_STATE)[keyof typeof MEASUREMENT_STATE];
|
|
2
8
|
export interface MeasurementInterface {
|
|
3
9
|
setGlobalOffset(params: Vector3): void;
|
|
4
10
|
toggle(params: {
|
|
5
11
|
enable: boolean;
|
|
6
12
|
}): void;
|
|
13
|
+
getMeasurementProgress(): MeasurementState;
|
|
14
|
+
resetMeasurement(): void;
|
|
7
15
|
}
|
|
@@ -3,7 +3,7 @@ import type { Vector3 } from '../types/Math';
|
|
|
3
3
|
import type { MeasurementRenderer } from './MeasurementRenderer';
|
|
4
4
|
import type { SettingsController } from '../controllers/SettingsController';
|
|
5
5
|
import type { RenderControllerProxy } from '../controllers/RenderControllerProxy';
|
|
6
|
-
import type
|
|
6
|
+
import { type MeasurementInterface, type MeasurementState } from './MeasurementInterface';
|
|
7
7
|
import { ApiController } from '../controllers/ApiController';
|
|
8
8
|
export declare class PointToPointManager implements MeasurementInterface {
|
|
9
9
|
private readonly svgRenderer;
|
|
@@ -34,18 +34,19 @@ export declare class PointToPointManager implements MeasurementInterface {
|
|
|
34
34
|
});
|
|
35
35
|
setGlobalOffset(params: Vector3): void;
|
|
36
36
|
getGlobalOffset(): THREE.Vector3;
|
|
37
|
+
getMeasurementProgress(): MeasurementState;
|
|
37
38
|
private onCameraUpdated;
|
|
38
39
|
private onNavigationChanged;
|
|
39
40
|
private onMeasurementObjectMove;
|
|
40
41
|
private updateTemporaryDistanceLabel;
|
|
41
42
|
private onMeasurementObjectLeave;
|
|
42
43
|
private onMeasurementObjectClick;
|
|
43
|
-
|
|
44
|
+
resetMeasurement(): void;
|
|
44
45
|
static isEnabled(): boolean;
|
|
45
46
|
toggle(params: {
|
|
46
47
|
enable: boolean;
|
|
47
48
|
}): Promise<void>;
|
|
48
|
-
private
|
|
49
|
+
private clearDisplayElements;
|
|
49
50
|
private removeCursors;
|
|
50
51
|
private setCameraAndNavigationControls;
|
|
51
52
|
private updateSvg;
|