@procore/bim-webviewer-sdk 16.6.0-rc.2 → 16.6.0-rc.21
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 +24 -0
- package/dist/Procore.Bim.Webviewer.d.ts +164 -2354
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +5 -8
- package/dist/types/src/api/analytic_events/analyticKeys.d.ts +52 -29
- package/dist/types/src/api/analytic_events/index.d.ts +1 -1
- package/dist/types/src/api/analytic_events/payloadFactories.d.ts +10 -9
- package/dist/types/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +1 -1
- package/dist/types/src/components/RootComponent.d.ts +3 -3
- package/dist/types/src/components/ShortestDistanceComponent.d.ts +7 -5
- 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/components/WindowModelObjectComponent/VirtualizedList.d.ts +1 -1
- package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts +3 -3
- package/dist/types/src/components/WindowTreeComponent.d.ts +0 -1
- package/dist/types/src/components/WindowTreeViewComponent.d.ts +2 -3
- package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +3 -3
- package/dist/types/src/components/__tests__/ShortestDisanceFixtures.d.ts +21 -0
- package/dist/types/src/controllers/ApiController/ApiController.d.ts +2 -2
- package/dist/types/src/controllers/CacheController.d.ts +3 -2
- package/dist/types/src/controllers/DatabaseController.d.ts +2 -1
- package/dist/types/src/controllers/DomController/DomController.d.ts +0 -1
- package/dist/types/src/controllers/PubSubController.d.ts +3 -1
- package/dist/types/src/controllers/RenderController.d.ts +20 -27
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +14 -16
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -0
- package/dist/types/src/controllers/RenderStatusType.d.ts +4 -4
- package/dist/types/src/controllers/__tests__/fixtures.d.ts +4 -1
- package/dist/types/src/measuring/MeasurementInterface.d.ts +10 -5
- package/dist/types/src/measuring/MeasurementManager.d.ts +9 -9
- package/dist/types/src/measuring/MeasurementRenderer.d.ts +1 -5
- package/dist/types/src/measuring/PointToPointController.d.ts +6 -0
- package/dist/types/src/measuring/PointToPointManager.d.ts +19 -8
- package/dist/types/src/measuring/__tests__/PointToPointFixtures.d.ts +5 -4
- package/dist/types/src/measuring/createPointToPointLineDrawingDebugGui.d.ts +0 -5
- package/dist/types/src/messages.d.ts +7 -7
- package/dist/types/src/navigation/DefaultControl.d.ts +0 -11
- package/dist/types/src/navigation/Orbit/calcNewPosition.d.ts +0 -1
- package/dist/types/src/navigation/Orbit/getQuatToCylinderSpace.d.ts +0 -1
- package/dist/types/src/navigation/__tests__/FixedOrbitControl.test.d.ts +1 -0
- package/dist/types/src/navigation/__tests__/ZoomControl.test.d.ts +1 -0
- package/dist/types/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +1 -1
- package/dist/types/src/procoregl/HiddenNodeServices/rangify.d.ts +2 -8
- package/dist/types/src/procoregl/Models/Models.d.ts +5 -6
- package/dist/types/src/procoregl/PartitionsRenderer.d.ts +3 -3
- package/dist/types/src/procoregl/ProcoreGeometries/ProcoreArrow.d.ts +0 -1
- package/dist/types/src/procoregl/ProcoreGeometries/StubbyArrow.d.ts +0 -1
- package/dist/types/src/procoregl/SectionDisplay/getCursorDirectionFromCameraToPlane.d.ts +1 -2
- package/dist/types/src/pwfreader/PWF.d.ts +4 -2
- package/dist/types/src/pwfreader/PWFCache.d.ts +1 -1
- package/dist/types/src/pwfreader/PWFProxy.d.ts +5 -2
- package/dist/types/src/pwfreader/PWFTypes.d.ts +0 -5
- package/dist/types/src/pwfreader/v1/PWFModelParser.d.ts +2 -5
- package/dist/types/src/pwfreader/v1/PWFV1.d.ts +9 -3
- package/dist/types/src/pwfreader/v1/impl/bufferReader/MeshnodeBufferReader.d.ts +2 -5
- package/dist/types/src/pwfreader/v1/standard/MeshServices.d.ts +1 -0
- package/dist/types/src/pwfreader/v1/streaming/MeshData.d.ts +1 -0
- package/dist/types/src/pwfreader/v1/streaming/OPFSFile/MainThreadSyncAccessHandleFallback.d.ts +14 -0
- package/dist/types/src/pwfreader/v1/streaming/OPFSFile/OPFSFile.d.ts +12 -0
- package/dist/types/src/pwfreader/v1/streaming/OPFSFile/index.d.ts +1 -0
- package/dist/types/src/pwfreader/v1/streaming/PartitionProxy.d.ts +7 -2
- package/dist/types/src/pwfreader/v1/streaming/StreamedMeshServices.d.ts +18 -2
- package/dist/types/src/pwfreader/v2/Manifest.d.ts +3 -3
- package/dist/types/src/pwfreader/v2/PWFV2.d.ts +4 -2
- package/dist/types/src/pwfreader/v2/standard/MeshServices.d.ts +1 -0
- package/dist/types/src/pwfreader/v2/streaming/StreamedMeshServices.d.ts +1 -0
- package/dist/types/src/sdk.d.ts +1 -0
- package/dist/types/src/sectioning/utils.d.ts +0 -1
- package/dist/types/src/threeShaking.d.ts +47 -47
- package/dist/types/src/types/WebviewerOptions.d.ts +8 -3
- package/dist/types/src/unit_util.d.ts +5 -3
- package/dist/types/src/utils/Benchmark/MainThreadBenchmark.d.ts +2 -2
- package/dist/types/src/utils/DebugGui/MainThreadDebugGui.d.ts +1 -1
- package/dist/types/src/utils/DebugGui/WorkerDebugGui.d.ts +1 -1
- package/dist/types/src/utils/ZoomExtents/__tests__/computePoseToFitBoxFromPosition.test.d.ts +0 -1
- package/dist/types/src/utils/ZoomExtents/computeRefinedBbox.d.ts +2 -3
- package/dist/types/src/utils/ZoomExtents/utils.d.ts +0 -1
- package/dist/types/src/utils/i18n.d.ts +1 -1
- package/dist/types/src/validateOptions/checkTools.d.ts +1 -1
- 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: {
|
|
@@ -192,11 +191,7 @@ export declare class Webviewer {
|
|
|
192
191
|
dir_x?: number;
|
|
193
192
|
dir_y?: number;
|
|
194
193
|
}>;
|
|
195
|
-
|
|
196
|
-
offsetX: number;
|
|
197
|
-
offsetY: number;
|
|
198
|
-
offsetZ: number;
|
|
199
|
-
} | null>;
|
|
194
|
+
getGlobalOffsetDoNotUse: () => Promise<Vector3 | null>;
|
|
200
195
|
setXRayMode: () => void;
|
|
201
196
|
setNormalMode: () => void;
|
|
202
197
|
setRenderMode: (mode: RenderMode) => void;
|
|
@@ -220,7 +215,9 @@ export declare class Webviewer {
|
|
|
220
215
|
deselectObjects: (objectIds: number[], objectTreeName?: string) => Promise<boolean>;
|
|
221
216
|
selectAllObjects: (objectTreeName?: string) => Promise<boolean>;
|
|
222
217
|
getSelectedObjects: () => Promise<number[]>;
|
|
223
|
-
setMeasurement: (enable: boolean
|
|
218
|
+
setMeasurement: (enable: boolean, options?: {
|
|
219
|
+
measurementMode?: MeasureMode;
|
|
220
|
+
}) => void;
|
|
224
221
|
setObjectColor: (palettes: PaletteParams[], options?: {
|
|
225
222
|
resourceId?: number;
|
|
226
223
|
}) => void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export declare const model: {
|
|
2
|
-
readonly initialization:
|
|
2
|
+
readonly initialization: "ux.web.bim_viewer.model.initialization";
|
|
3
3
|
};
|
|
4
4
|
export declare const bimToolbars: {
|
|
5
|
-
readonly home_tapped:
|
|
6
|
-
readonly settings_tapped:
|
|
7
|
-
readonly views_tapped:
|
|
8
|
-
readonly objects_tapped:
|
|
9
|
-
readonly properties_tapped:
|
|
10
|
-
readonly measure_tapped:
|
|
11
|
-
readonly section_box_tapped:
|
|
12
|
-
readonly xray_tapped:
|
|
13
|
-
readonly navigation_default_tapped:
|
|
14
|
-
readonly navigation_orbit_tapped:
|
|
15
|
-
readonly navigation_fly_tapped:
|
|
5
|
+
readonly home_tapped: "project.3d_models.bim_toolbar.home_tapped";
|
|
6
|
+
readonly settings_tapped: "project.3d_models.bim_toolbar.settings_tapped";
|
|
7
|
+
readonly views_tapped: "project.3d_models.bim_toolbar.views_tapped";
|
|
8
|
+
readonly objects_tapped: "project.3d_models.bim_toolbar.objects_tapped";
|
|
9
|
+
readonly properties_tapped: "project.3d_models.bim_toolbar.properties_tapped";
|
|
10
|
+
readonly measure_tapped: "project.3d_models.bim_toolbar.measure_tapped";
|
|
11
|
+
readonly section_box_tapped: "project.3d_models.bim_toolbar.section_box_tapped";
|
|
12
|
+
readonly xray_tapped: "project.3d_models.bim_toolbar.xray_tapped";
|
|
13
|
+
readonly navigation_default_tapped: "project.3d_models.bim_toolbar.navigation_default_tapped";
|
|
14
|
+
readonly navigation_orbit_tapped: "project.3d_models.bim_toolbar.navigation_orbit_tapped";
|
|
15
|
+
readonly navigation_fly_tapped: "project.3d_models.bim_toolbar.navigation_fly_tapped";
|
|
16
16
|
};
|
|
17
17
|
export declare const clientLoadings: {
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
18
|
+
readonly download_completed: "project.3d_models.client_loading.download_completed";
|
|
19
|
+
readonly initialization: "project.3d_models.client_loading.initialization";
|
|
20
20
|
};
|
|
21
21
|
export type ModelType = 'standard' | 'partitioned' | undefined;
|
|
22
22
|
export type BimModelsDownloadCompletedPayload = {
|
|
@@ -55,14 +55,36 @@ 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: "project.3d_models.webviewer.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
|
-
readonly enabled:
|
|
60
|
-
readonly disabled:
|
|
61
|
-
readonly optionbar_open:
|
|
62
|
-
readonly optionbar_close:
|
|
63
|
-
readonly display_planes:
|
|
64
|
-
readonly reset:
|
|
65
|
-
readonly zoom_extents:
|
|
81
|
+
readonly enabled: "project.3d_models.section_box.enabled";
|
|
82
|
+
readonly disabled: "project.3d_models.section_box.disabled";
|
|
83
|
+
readonly optionbar_open: "project.3d_models.section_box.optionbar_open";
|
|
84
|
+
readonly optionbar_close: "project.3d_models.section_box.optionbar_close";
|
|
85
|
+
readonly display_planes: "project.3d_models.section_box.display_planes";
|
|
86
|
+
readonly reset: "project.3d_models.section_box.reset";
|
|
87
|
+
readonly zoom_extents: "project.3d_models.section_box.zoom_extents";
|
|
66
88
|
};
|
|
67
89
|
export declare const SECTION_BOX_ORIGIN: {
|
|
68
90
|
readonly OBJECT: "object";
|
|
@@ -100,11 +122,11 @@ export declare const bimProperties: {
|
|
|
100
122
|
tab_changed: string;
|
|
101
123
|
};
|
|
102
124
|
export declare const modelObjectTrees: {
|
|
103
|
-
readonly hide_all:
|
|
104
|
-
readonly select_all:
|
|
105
|
-
readonly collapse_all:
|
|
106
|
-
readonly searched:
|
|
107
|
-
readonly search_cleared:
|
|
125
|
+
readonly hide_all: "project.3d_models.bim_object_tree.hide_all";
|
|
126
|
+
readonly select_all: "project.3d_models.bim_object_tree.select_all";
|
|
127
|
+
readonly collapse_all: "project.3d_models.bim_object_tree.collapse_all";
|
|
128
|
+
readonly searched: "project.3d_models.bim_object_tree.searched";
|
|
129
|
+
readonly search_cleared: "project.3d_models.bim_object_tree.search_cleared";
|
|
108
130
|
};
|
|
109
131
|
export declare const renderings: {
|
|
110
132
|
mode_changed: string;
|
|
@@ -126,8 +148,9 @@ export declare const MEASUREMENT_ORIGIN: {
|
|
|
126
148
|
readonly ESC: "esc";
|
|
127
149
|
readonly HOTKEY: "hotkey";
|
|
128
150
|
};
|
|
151
|
+
export type MeasurementOrigin = (typeof MEASUREMENT_ORIGIN)[keyof typeof MEASUREMENT_ORIGIN];
|
|
129
152
|
export declare const measurements: {
|
|
130
|
-
readonly enabled:
|
|
131
|
-
readonly disabled:
|
|
132
|
-
readonly completed:
|
|
153
|
+
readonly enabled: "project.3d_models.measure.enabled";
|
|
154
|
+
readonly disabled: "project.3d_models.measure.disabled";
|
|
155
|
+
readonly completed: "project.3d_models.measure.completed";
|
|
133
156
|
};
|
|
@@ -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, MeasurementOrigin, } from './analyticKeys';
|
|
2
2
|
export { trackEvent } from './analyticEvents';
|
|
3
3
|
export { AnalyticEventPayload } from './types/AnalyticEventPayload';
|
|
@@ -1,26 +1,27 @@
|
|
|
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;
|
|
6
6
|
input_file_size: number;
|
|
7
|
-
file_extraction_id?: string
|
|
7
|
+
file_extraction_id?: string;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const getInitializationEventPayload: (params: {
|
|
10
|
-
streaming?: boolean
|
|
11
|
-
pwf?: PWF
|
|
10
|
+
streaming?: boolean;
|
|
11
|
+
pwf?: PWF;
|
|
12
12
|
startTimestamp: number;
|
|
13
13
|
duration: number;
|
|
14
14
|
success: boolean;
|
|
15
|
-
stepFailed?: string
|
|
16
|
-
errorDescription?: string
|
|
15
|
+
stepFailed?: string;
|
|
16
|
+
errorDescription?: string;
|
|
17
17
|
}) => ModelInitializationPayload;
|
|
18
18
|
export declare const getInitializationTrackEventPayload: (eventPayload: ModelInitializationPayload) => Promise<InitializationTrackEventPayload>;
|
|
19
19
|
export declare const getDownloadCompletedTrackEventPayload: (params: {
|
|
20
20
|
timeToDownload: number;
|
|
21
21
|
modelType: ModelType;
|
|
22
22
|
modelCached: boolean;
|
|
23
|
-
totalPartitionsSize?: number
|
|
24
|
-
totalPartitionsSizeCompressed?: number
|
|
25
|
-
numPartitions?: number
|
|
23
|
+
totalPartitionsSize?: number;
|
|
24
|
+
totalPartitionsSizeCompressed?: number;
|
|
25
|
+
numPartitions?: number;
|
|
26
26
|
}) => Promise<BimModelsDownloadCompletedPayload>;
|
|
27
|
+
export declare const getEnvironmentTrackEventPayload: () => Promise<EnvironmentTrackEventPayload>;
|
|
@@ -22,6 +22,6 @@ export class RootComponent {
|
|
|
22
22
|
GetWindowComponents(): any[];
|
|
23
23
|
DisableComponent(component: any): void;
|
|
24
24
|
}
|
|
25
|
-
import { SectionToolDropdown } from
|
|
26
|
-
import { StatsJS } from
|
|
27
|
-
import { TooltipManager } from
|
|
25
|
+
import { SectionToolDropdown } from './DropdownComponent';
|
|
26
|
+
import { StatsJS } from './StatsJS';
|
|
27
|
+
import { TooltipManager } from './Tooltip';
|
|
@@ -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
|
-
import { CursorTooltip } from
|
|
34
|
+
import { CursorTooltip } from '../measuring/CursorTooltip';
|
|
@@ -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;
|
package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts
CHANGED
|
@@ -77,6 +77,6 @@ export class WindowModelObjectComponent {
|
|
|
77
77
|
getSelectedObjectCount(): Promise<any>;
|
|
78
78
|
getObjectTreeName(): "default" | "filtered";
|
|
79
79
|
}
|
|
80
|
-
import { VirtualizedList } from
|
|
81
|
-
import { SearchInput } from
|
|
82
|
-
import { WindowAlertComponent } from
|
|
80
|
+
import { VirtualizedList } from './VirtualizedList';
|
|
81
|
+
import { SearchInput } from '../SearchInput';
|
|
82
|
+
import { WindowAlertComponent } from '../WindowAlertComponent';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export function WindowTreeComponent(id: any, name: any, options: any, pubsub: any): void;
|
|
2
2
|
export class WindowTreeComponent {
|
|
3
3
|
constructor(id: any, name: any, options: any, pubsub: any);
|
|
4
|
-
constructor: typeof WindowTreeComponent;
|
|
5
4
|
CreateSubUnorderedList(subGroupId: any): HTMLUListElement;
|
|
6
5
|
GetUnorderedList(subGroupId?: null): HTMLElement | null;
|
|
7
6
|
CreateListItem(listItemId: any): HTMLLIElement;
|
|
@@ -13,7 +13,6 @@ export class WindowTreeViewComponent {
|
|
|
13
13
|
viewpoints: any[];
|
|
14
14
|
viewfolders: any[];
|
|
15
15
|
viewfoldersDict: {};
|
|
16
|
-
constructor: typeof WindowTreeViewComponent;
|
|
17
16
|
CreateForFolder(folderId?: null): void;
|
|
18
17
|
SetMarkupData(markupData: any, fov: any): void;
|
|
19
18
|
CreateViewpointItem(revisionViewpoint: any, level?: number): any;
|
|
@@ -33,7 +32,7 @@ export class WindowTreeViewComponent {
|
|
|
33
32
|
}
|
|
34
33
|
export namespace WindowTreeViewComponent {
|
|
35
34
|
namespace TypeEnum {
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
let VIEWPOINT: number;
|
|
36
|
+
let VIEWFOLDER: number;
|
|
38
37
|
}
|
|
39
38
|
}
|
package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts
CHANGED
|
@@ -38,6 +38,6 @@ export class WindowViewPropertiesComponent {
|
|
|
38
38
|
updateCurrentNodeProperties(nodeId: any): void;
|
|
39
39
|
fetchObjectProperties(): void;
|
|
40
40
|
}
|
|
41
|
-
import { SearchInput } from
|
|
42
|
-
import { PropertiesCardComponent } from
|
|
43
|
-
import { TabsComponent } from
|
|
41
|
+
import { SearchInput } from '../SearchInput';
|
|
42
|
+
import { PropertiesCardComponent } from '../PropertiesCardComponent';
|
|
43
|
+
import { TabsComponent } from '../TabsComponent';
|
|
@@ -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
|
+
};
|
|
@@ -22,5 +22,5 @@ export class ApiController {
|
|
|
22
22
|
trackEvent(key: any, properties?: {}): Promise<void>;
|
|
23
23
|
}
|
|
24
24
|
export const api: ApiController;
|
|
25
|
-
import * as ModelRevisions from
|
|
26
|
-
import * as FileExtractions from
|
|
25
|
+
import * as ModelRevisions from '../../api/bim_model_revisions';
|
|
26
|
+
import * as FileExtractions from '../../api/bim_file_extractions';
|
|
@@ -14,8 +14,9 @@ export type ModelRevisionStoreItem = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const LocalStoreItemDNE = "Local store item does not exist.";
|
|
16
16
|
export declare namespace Cache {
|
|
17
|
-
const
|
|
18
|
-
const
|
|
17
|
+
const clear: () => Promise<boolean>;
|
|
18
|
+
const updateAndPurgeFileVersion: (fileVersion: FileVersion, propertyFileId: PropertiesFile["id"], geometryBundle: GeometryBundle) => Promise<void>;
|
|
19
|
+
const updateAndPurgeModelRevision: (modelId: Model["id"], modelRevisionId: ModelRevision["id"], geometryBundle: GeometryBundle) => Promise<void>;
|
|
19
20
|
const removeModel: (options: any) => Promise<boolean>;
|
|
20
21
|
const hasModel: (geometryBundle: GeometryBundle) => Promise<boolean>;
|
|
21
22
|
}
|
|
@@ -9,9 +9,10 @@ export class DatabaseController {
|
|
|
9
9
|
getValue(objectStoreName: any, key: any): Promise<any>;
|
|
10
10
|
updateValue(objectStoreName: any, key: any, value: any): Promise<any>;
|
|
11
11
|
deleteValue(objectStoreName: any, key: any): Promise<any>;
|
|
12
|
+
clearObjectStore(objectStoreName: any): Promise<any>;
|
|
12
13
|
}
|
|
13
14
|
export namespace DatabaseController {
|
|
14
|
-
|
|
15
|
+
let OBJECT_STORES: Readonly<{
|
|
15
16
|
ModelVersion: "model_version";
|
|
16
17
|
Settings: "project_settings";
|
|
17
18
|
BrowserSettings: "browser_settings";
|
|
@@ -6,7 +6,7 @@ export class PubSubController {
|
|
|
6
6
|
clear: () => void;
|
|
7
7
|
}
|
|
8
8
|
export namespace PubSubController {
|
|
9
|
-
|
|
9
|
+
let EVENTS: Readonly<{
|
|
10
10
|
animate: "animate";
|
|
11
11
|
appResize: "appResize";
|
|
12
12
|
appStart: "appStart";
|
|
@@ -71,6 +71,7 @@ export namespace PubSubController {
|
|
|
71
71
|
objectTreeUpdated: "objectTreeUpdated";
|
|
72
72
|
objectUnhide: "objectUnhide";
|
|
73
73
|
optionsChanged: "optionsChanged";
|
|
74
|
+
allPartitionsDownloadComplete: "allPartitionsDownloadComplete";
|
|
74
75
|
projectSettingsLoaded: "projectSettingsLoaded";
|
|
75
76
|
projectSettingsUpdated: "projectSettingsUpdated";
|
|
76
77
|
propertiesReady: "propertiesReady";
|
|
@@ -99,6 +100,7 @@ export namespace PubSubController {
|
|
|
99
100
|
undo: "undo";
|
|
100
101
|
updatePivot: "updatePivot";
|
|
101
102
|
windowClose: "windowClose";
|
|
103
|
+
wheel: "wheel";
|
|
102
104
|
windowComponentChanged: "windowComponentChanged";
|
|
103
105
|
windowComponentShouldClose: "windowComponentShouldClose";
|
|
104
106
|
windowComponentShouldOpen: "windowComponentShouldOpen";
|
|
@@ -18,11 +18,7 @@ export class RenderController {
|
|
|
18
18
|
frameId: number | null;
|
|
19
19
|
measureEnabled: boolean;
|
|
20
20
|
canvasSelectionEnabled: boolean;
|
|
21
|
-
globalOffset:
|
|
22
|
-
offsetX: number;
|
|
23
|
-
offsetY: number;
|
|
24
|
-
offsetZ: number;
|
|
25
|
-
} | null;
|
|
21
|
+
globalOffset: import("../sdk").Vector3 | null;
|
|
26
22
|
clock: import("three").Clock;
|
|
27
23
|
delta: number;
|
|
28
24
|
webengine: import("../../webassembly/webengine/dist/webengine").InitOutput | null;
|
|
@@ -60,7 +56,7 @@ export class RenderController {
|
|
|
60
56
|
parsePwfNodes(): import("./Bootstrapper").BootstrapperResult;
|
|
61
57
|
parsePwfMeshnodes(): import("./Bootstrapper").BootstrapperResult;
|
|
62
58
|
parsePwfMeshes(): void;
|
|
63
|
-
initMeshServices():
|
|
59
|
+
initMeshServices(): import("./Bootstrapper").BootstrapperResult;
|
|
64
60
|
initNodeServices(): void;
|
|
65
61
|
initMeshnodeServices(): void;
|
|
66
62
|
initNodeTree(): import("./Bootstrapper").BootstrapperResult;
|
|
@@ -161,11 +157,7 @@ export class RenderController {
|
|
|
161
157
|
};
|
|
162
158
|
};
|
|
163
159
|
getModelItemBoundary(id: any): import("three").Box3;
|
|
164
|
-
getGlobalOffset():
|
|
165
|
-
offsetX: number;
|
|
166
|
-
offsetY: number;
|
|
167
|
-
offsetZ: number;
|
|
168
|
-
} | null;
|
|
160
|
+
getGlobalOffset(): import("../sdk").Vector3 | null;
|
|
169
161
|
getMeshnodeFromNodeId(nodeId: any): import("../pwfreader/PWFTypes").Meshnode | null;
|
|
170
162
|
getMeshnodeFromIndex(id: any): import("../pwfreader/PWFTypes").Meshnode | null;
|
|
171
163
|
getMeasureObjectMeshes(): import("../pwfreader/PWFTypes").MeshnodeObject[];
|
|
@@ -193,6 +185,7 @@ export class RenderController {
|
|
|
193
185
|
handleEmptySpaceClick(): void;
|
|
194
186
|
onSingleClick(evt: any, rightClick?: boolean): void;
|
|
195
187
|
onMouseMove(evt: any): void;
|
|
188
|
+
onWheel(evt: any): void;
|
|
196
189
|
setCanvasSelectionEnabled(enabled: any): void;
|
|
197
190
|
getSelectedSubtree(meshnodeIndex: any): {
|
|
198
191
|
objectId: number;
|
|
@@ -205,7 +198,7 @@ export class RenderController {
|
|
|
205
198
|
hidden?: boolean | undefined;
|
|
206
199
|
selected?: boolean | undefined;
|
|
207
200
|
partiallySelected?: boolean | undefined;
|
|
208
|
-
parentId?: number
|
|
201
|
+
parentId?: number;
|
|
209
202
|
}[];
|
|
210
203
|
};
|
|
211
204
|
onDoubleClick(evt: any): void;
|
|
@@ -399,9 +392,9 @@ export class RenderController {
|
|
|
399
392
|
}
|
|
400
393
|
export namespace RenderController {
|
|
401
394
|
namespace NullSelectedSubtree {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
395
|
+
let objectId: number;
|
|
396
|
+
let selectionContainerId: number;
|
|
397
|
+
let ancestry: never[];
|
|
405
398
|
}
|
|
406
399
|
function createCameras(options: any): {
|
|
407
400
|
default: import("three").PerspectiveCamera;
|
|
@@ -423,15 +416,15 @@ export namespace RenderController {
|
|
|
423
416
|
};
|
|
424
417
|
function sanitizeOptions(options: any): any;
|
|
425
418
|
}
|
|
426
|
-
import { StatusTrackingController } from
|
|
427
|
-
import { SectionController } from
|
|
428
|
-
import { EffectComposer } from
|
|
429
|
-
import { ProcoreRenderPass } from
|
|
430
|
-
import { SectionRenderPass } from
|
|
431
|
-
import { PickingController } from
|
|
432
|
-
import { PointToPointController } from
|
|
433
|
-
import { NavigationModel } from
|
|
434
|
-
import { Models } from
|
|
435
|
-
import { ShortestDistanceController } from
|
|
436
|
-
import { ColorServices } from
|
|
437
|
-
import { ObjectTree } from
|
|
419
|
+
import { StatusTrackingController } from './StatusTrackingController';
|
|
420
|
+
import { SectionController } from '../sectioning';
|
|
421
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
422
|
+
import { ProcoreRenderPass } from '../procoregl/ProcoreRenderPass';
|
|
423
|
+
import { SectionRenderPass } from '../procoregl/SectionDisplay';
|
|
424
|
+
import { PickingController } from '../picking/PickingController';
|
|
425
|
+
import { PointToPointController } from '../measuring';
|
|
426
|
+
import { NavigationModel } from '../navigation/NavigationModel';
|
|
427
|
+
import { Models } from '../procoregl/Models';
|
|
428
|
+
import { ShortestDistanceController } from './ShortestDistanceController';
|
|
429
|
+
import { ColorServices } from '../procoregl/ColorServices';
|
|
430
|
+
import { ObjectTree } from '../procoregl/ObjectTree';
|
|
@@ -28,6 +28,7 @@ export class RenderControllerProxy {
|
|
|
28
28
|
logInitializationTimes: any;
|
|
29
29
|
projectId: any;
|
|
30
30
|
baseUrl: any;
|
|
31
|
+
featureFlags: any;
|
|
31
32
|
nodeUrl: any;
|
|
32
33
|
meshnodeUrl: any;
|
|
33
34
|
meshUrl: any;
|
|
@@ -114,11 +115,7 @@ export class RenderControllerProxy {
|
|
|
114
115
|
};
|
|
115
116
|
};
|
|
116
117
|
setCameraRotation(...params: any[]): void | Promise<any>;
|
|
117
|
-
getGlobalOffset(...params: any[]): Promise<any> |
|
|
118
|
-
offsetX: number;
|
|
119
|
-
offsetY: number;
|
|
120
|
-
offsetZ: number;
|
|
121
|
-
} | null;
|
|
118
|
+
getGlobalOffset(...params: any[]): Promise<any> | import("../sdk").Vector3 | null;
|
|
122
119
|
getMeshnodeFromNodeId(...params: any[]): Promise<any> | import("../pwfreader/PWFTypes").Meshnode | null;
|
|
123
120
|
unhideNodeFromNodeIds(...params: any[]): boolean | Promise<any>;
|
|
124
121
|
hideNodesFromNodeIds(...params: any[]): boolean | Promise<any>;
|
|
@@ -131,6 +128,7 @@ export class RenderControllerProxy {
|
|
|
131
128
|
};
|
|
132
129
|
onSingleClick(...params: any[]): void | Promise<any>;
|
|
133
130
|
onMouseMove(...params: any[]): void | Promise<any>;
|
|
131
|
+
onWheel(...params: any[]): void | Promise<any>;
|
|
134
132
|
resizeScene(...params: any[]): void;
|
|
135
133
|
onDoubleClick(...params: any[]): void | Promise<any>;
|
|
136
134
|
onRightClick(...params: any[]): void | Promise<any>;
|
|
@@ -285,16 +283,16 @@ export class RenderControllerProxy {
|
|
|
285
283
|
}
|
|
286
284
|
export namespace RenderControllerProxy {
|
|
287
285
|
namespace NAVIGATION_MODE {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
286
|
+
let NONE: number;
|
|
287
|
+
let GENERAL: number;
|
|
288
|
+
let WALK: number;
|
|
289
|
+
let ORBIT: number;
|
|
290
|
+
let MEASURE: number;
|
|
293
291
|
}
|
|
294
292
|
}
|
|
295
|
-
import { PubSubController } from
|
|
296
|
-
import { NavigationManager } from
|
|
297
|
-
import { Hotkeys } from
|
|
298
|
-
import { RenderController } from
|
|
299
|
-
import { RenderControllerWorker } from
|
|
300
|
-
import { PWFCache } from
|
|
293
|
+
import { PubSubController } from './PubSubController';
|
|
294
|
+
import { NavigationManager } from '../navigation/NavigationManager';
|
|
295
|
+
import { Hotkeys } from '../navigation/Hotkeys';
|
|
296
|
+
import { RenderController } from './RenderController';
|
|
297
|
+
import { RenderControllerWorker } from './RenderControllerWorker';
|
|
298
|
+
import { PWFCache } from '../pwfreader/PWFCache';
|
|
@@ -40,6 +40,7 @@ export class RenderControllerWorker {
|
|
|
40
40
|
getContextMenuData(evt: any): Promise<any>;
|
|
41
41
|
onSingleClick(evt: any): Promise<any>;
|
|
42
42
|
onMouseMove(evt: any): Promise<any>;
|
|
43
|
+
onWheel(evt: any): Promise<any>;
|
|
43
44
|
resizeScene(...params: any[]): Promise<any>;
|
|
44
45
|
onDoubleClick(evt: any): Promise<any>;
|
|
45
46
|
onRightClick(evt: any): Promise<any>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MeshnodeObject } from '../../pwfreader/PWFTypes';
|
|
2
|
+
import type { PublicNode } from '../../types/PublicNode';
|
|
2
3
|
export declare const rootNode: PublicNode;
|
|
4
|
+
export declare const MESHNODE_WITH_INDEX_1: MeshnodeObject;
|
|
5
|
+
export declare const MESHNODE_WITH_NODE_ID_13: MeshnodeObject;
|
|
@@ -1,10 +1,15 @@
|
|
|
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];
|
|
1
8
|
export interface MeasurementInterface {
|
|
2
|
-
setGlobalOffset(params:
|
|
3
|
-
offsetX: number;
|
|
4
|
-
offsetY: number;
|
|
5
|
-
offsetZ: number;
|
|
6
|
-
}): void;
|
|
9
|
+
setGlobalOffset(params: Vector3): void;
|
|
7
10
|
toggle(params: {
|
|
8
11
|
enable: boolean;
|
|
9
12
|
}): void;
|
|
13
|
+
getMeasurementProgress(): MeasurementState;
|
|
14
|
+
resetMeasurement(): void;
|
|
10
15
|
}
|