@procore/bim-webviewer-sdk 17.3.0-rc.3 → 17.3.0-rc.4
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 +4 -0
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +9 -5
- package/dist/types/src/components/ContextMenuComponent/__tests__/ContextMenuComponent.test.d.ts +1 -0
- package/dist/types/src/controllers/RenderController.d.ts +1 -8
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +5 -3
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export function ContextMenuComponent(id: any, options: any, render: any, sectionBoxDisplayManager: any): void;
|
|
1
|
+
export function ContextMenuComponent(id: any, options: any, render: any, sectionBoxDisplayManager: any, measurementManager: any): void;
|
|
2
2
|
export class ContextMenuComponent {
|
|
3
|
-
constructor(id: any, options: any, render: any, sectionBoxDisplayManager: any);
|
|
3
|
+
constructor(id: any, options: any, render: any, sectionBoxDisplayManager: any, measurementManager: any);
|
|
4
4
|
id: any;
|
|
5
5
|
options: any;
|
|
6
6
|
render: any;
|
|
7
7
|
sectionBoxDisplayManager: any;
|
|
8
|
+
measurementManager: any;
|
|
8
9
|
dom: any;
|
|
9
10
|
contextMenu: HTMLDivElement | null;
|
|
10
11
|
objectNameHeader: HTMLDivElement | null;
|
|
@@ -18,14 +19,17 @@ export class ContextMenuComponent {
|
|
|
18
19
|
tooltipDuration: number;
|
|
19
20
|
currentSimilarName: any;
|
|
20
21
|
contextMenuOrigin: CONTEXT_MENU_ORIGIN;
|
|
22
|
+
currentCameraPosition: any;
|
|
21
23
|
namedNodeId: number;
|
|
22
24
|
similarNodeId: number;
|
|
25
|
+
globalOffset: any;
|
|
23
26
|
objectCount: number;
|
|
24
27
|
contextMenuMeshnodeIndex: number;
|
|
28
|
+
isContextMenuBlocked(): Promise<any>;
|
|
25
29
|
OnSelectedUpdated(): void;
|
|
26
30
|
OnGetPropertyName(response: any): void;
|
|
27
|
-
HandleCameraUpdated(): void;
|
|
28
|
-
onContextMenu(event: any): void
|
|
31
|
+
HandleCameraUpdated(payload: any): void;
|
|
32
|
+
onContextMenu(event: any): Promise<void>;
|
|
29
33
|
setContextMenuContents(): void;
|
|
30
34
|
OnHideObject(): void;
|
|
31
35
|
OnHideSimilar(): Promise<void>;
|
|
@@ -33,7 +37,7 @@ export class ContextMenuComponent {
|
|
|
33
37
|
OnIsolate(): Promise<void>;
|
|
34
38
|
OnViewProperties(): void;
|
|
35
39
|
ClearContextMenu(): void;
|
|
36
|
-
OnRenderReady(): void
|
|
40
|
+
OnRenderReady(): Promise<void>;
|
|
37
41
|
CreateComponent(): void;
|
|
38
42
|
onZoomToSelection(): Promise<void>;
|
|
39
43
|
onXRayMode(): Promise<void>;
|
package/dist/types/src/components/ContextMenuComponent/__tests__/ContextMenuComponent.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -165,16 +165,9 @@ export class RenderController {
|
|
|
165
165
|
getCamera(): import("three").PerspectiveCamera;
|
|
166
166
|
getRenderer(): import("../procoregl/ViewerRenderer").ViewerRenderer | undefined;
|
|
167
167
|
resizeScene(params: any): void;
|
|
168
|
-
getContextMenuData(evt: any): {
|
|
169
|
-
intersection: import("../sdk").Vector3 | null;
|
|
170
|
-
meshnodeIndex: number;
|
|
171
|
-
faceNormal: import("../sdk").Vector3 | null;
|
|
172
|
-
} | {
|
|
173
|
-
meshnodeIndex: number;
|
|
174
|
-
};
|
|
175
168
|
onContextMenu(evt: any): void;
|
|
176
169
|
isSectionBlockingClick(): boolean;
|
|
177
|
-
|
|
170
|
+
getRayIntersectPoint(evt: any, returnOnEdgeHitFailure?: string): {
|
|
178
171
|
intersection: import("../sdk").Vector3 | null;
|
|
179
172
|
meshnodeIndex: number;
|
|
180
173
|
faceNormal: import("../sdk").Vector3 | null;
|
|
@@ -123,9 +123,6 @@ export class RenderControllerProxy {
|
|
|
123
123
|
getMeshnodeFromIndex(...params: any[]): Promise<any> | import("../pwfreader/PWFTypes").Meshnode | null;
|
|
124
124
|
getMeasureObjectMeshes(...params: any[]): Promise<any> | import("../pwfreader/PWFTypes").MeshnodeObject[];
|
|
125
125
|
onContextMenu(...params: any[]): void | Promise<any>;
|
|
126
|
-
getContextMenuData(...params: any[]): Promise<any> | {
|
|
127
|
-
meshnodeIndex: number;
|
|
128
|
-
};
|
|
129
126
|
onSingleClick(...params: any[]): void | Promise<any>;
|
|
130
127
|
onMouseMove(...params: any[]): void | Promise<any>;
|
|
131
128
|
onWheel(...params: any[]): void | Promise<any>;
|
|
@@ -280,6 +277,11 @@ export class RenderControllerProxy {
|
|
|
280
277
|
setHotkeysEnabled(enabled: any): void;
|
|
281
278
|
isPartitionedModel(...params: any[]): boolean | Promise<any>;
|
|
282
279
|
getMeasureObjectMeshesPartition(...params: any[]): Promise<any>;
|
|
280
|
+
getRayIntersectPoint(...params: any[]): Promise<any> | {
|
|
281
|
+
intersection: import("../sdk").Vector3 | null;
|
|
282
|
+
meshnodeIndex: number;
|
|
283
|
+
faceNormal: import("../sdk").Vector3 | null;
|
|
284
|
+
};
|
|
283
285
|
}
|
|
284
286
|
export namespace RenderControllerProxy {
|
|
285
287
|
namespace NAVIGATION_MODE {
|
|
@@ -37,7 +37,6 @@ export class RenderControllerWorker {
|
|
|
37
37
|
offsetY: any;
|
|
38
38
|
};
|
|
39
39
|
onContextMenu(evt: any): Promise<any>;
|
|
40
|
-
getContextMenuData(evt: any): Promise<any>;
|
|
41
40
|
onSingleClick(evt: any): Promise<any>;
|
|
42
41
|
onMouseMove(evt: any): Promise<any>;
|
|
43
42
|
onWheel(evt: any): Promise<any>;
|
|
@@ -122,4 +121,5 @@ export class RenderControllerWorker {
|
|
|
122
121
|
partitionUrlsFromMeshnodeIndices(...params: any[]): Promise<any>;
|
|
123
122
|
isPartitionedModel(...params: any[]): Promise<any>;
|
|
124
123
|
getMeasureObjectMeshesPartition(...params: any[]): Promise<any>;
|
|
124
|
+
getRayIntersectPoint(evt: any, returnOnEdgeHitFailure: any): Promise<any>;
|
|
125
125
|
}
|