@procore/bim-webviewer-sdk 16.6.0-rc.15 → 16.6.0-rc.17
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 +5 -0
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/controllers/PubSubController.d.ts +1 -0
- package/dist/types/src/controllers/RenderController.d.ts +1 -0
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +1 -0
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -0
- package/dist/types/src/measuring/PointToPointController.d.ts +6 -0
- package/dist/types/src/measuring/PointToPointManager.d.ts +13 -0
- package/dist/types/src/measuring/__tests__/PointToPointFixtures.d.ts +4 -4
- package/dist/types/src/measuring/createPointToPointLineDrawingDebugGui.d.ts +0 -5
- package/dist/types/src/navigation/DefaultControl.d.ts +0 -11
- package/dist/types/src/navigation/__tests__/ZoomControl.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -100,6 +100,7 @@ export namespace PubSubController {
|
|
|
100
100
|
undo: "undo";
|
|
101
101
|
updatePivot: "updatePivot";
|
|
102
102
|
windowClose: "windowClose";
|
|
103
|
+
wheel: "wheel";
|
|
103
104
|
windowComponentChanged: "windowComponentChanged";
|
|
104
105
|
windowComponentShouldClose: "windowComponentShouldClose";
|
|
105
106
|
windowComponentShouldOpen: "windowComponentShouldOpen";
|
|
@@ -185,6 +185,7 @@ export class RenderController {
|
|
|
185
185
|
handleEmptySpaceClick(): void;
|
|
186
186
|
onSingleClick(evt: any, rightClick?: boolean): void;
|
|
187
187
|
onMouseMove(evt: any): void;
|
|
188
|
+
onWheel(evt: any): void;
|
|
188
189
|
setCanvasSelectionEnabled(enabled: any): void;
|
|
189
190
|
getSelectedSubtree(meshnodeIndex: any): {
|
|
190
191
|
objectId: number;
|
|
@@ -128,6 +128,7 @@ export class RenderControllerProxy {
|
|
|
128
128
|
};
|
|
129
129
|
onSingleClick(...params: any[]): void | Promise<any>;
|
|
130
130
|
onMouseMove(...params: any[]): void | Promise<any>;
|
|
131
|
+
onWheel(...params: any[]): void | Promise<any>;
|
|
131
132
|
resizeScene(...params: any[]): void;
|
|
132
133
|
onDoubleClick(...params: any[]): void | Promise<any>;
|
|
133
134
|
onRightClick(...params: any[]): void | Promise<any>;
|
|
@@ -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>;
|
|
@@ -2,6 +2,7 @@ import type { PickingController } from '../picking/PickingController';
|
|
|
2
2
|
import type { Models } from '../procoregl/Models';
|
|
3
3
|
import type { SnapType } from './MeasureToolUtils';
|
|
4
4
|
import type { ViewerRenderer } from '../procoregl/ViewerRenderer';
|
|
5
|
+
import type { RenderController } from '../controllers/RenderController';
|
|
5
6
|
import { Vector3 } from '../types/Math';
|
|
6
7
|
export type WorldIntersectionSnapResult = {
|
|
7
8
|
intersection: Vector3;
|
|
@@ -18,6 +19,7 @@ export type WorldIntersectionSnapResult = {
|
|
|
18
19
|
meshnodeIndex: number;
|
|
19
20
|
cursorRotation: Vector3;
|
|
20
21
|
snapScreenPosition: Vector3;
|
|
22
|
+
relatedMeshnodeIndex?: number | null;
|
|
21
23
|
};
|
|
22
24
|
export declare class PointToPointController {
|
|
23
25
|
private readonly pickingController;
|
|
@@ -31,8 +33,10 @@ export declare class PointToPointController {
|
|
|
31
33
|
private lastWorldIntersectionSnapResult;
|
|
32
34
|
private readonly debugGui;
|
|
33
35
|
private readonly viewerRenderer;
|
|
36
|
+
private renderController;
|
|
34
37
|
constructor(params: {
|
|
35
38
|
pickingController: PickingController;
|
|
39
|
+
renderController: RenderController;
|
|
36
40
|
models: Models;
|
|
37
41
|
camera: THREE.PerspectiveCamera;
|
|
38
42
|
globalOffset: THREE.Vector3;
|
|
@@ -42,6 +46,8 @@ export declare class PointToPointController {
|
|
|
42
46
|
set enabled(value: boolean);
|
|
43
47
|
handleMouseClick(): void;
|
|
44
48
|
handleMouseMove(event: MouseEvent): void;
|
|
49
|
+
handleWheel(event: WheelEvent): Promise<void>;
|
|
50
|
+
private computeIntersectionSnapResult;
|
|
45
51
|
private getWorldIntersectionSnapResult;
|
|
46
52
|
private publishIntersectionSnapResult;
|
|
47
53
|
private getMeshTopology;
|
|
@@ -24,6 +24,11 @@ export declare class PointToPointManager implements MeasurementInterface {
|
|
|
24
24
|
private readonly locale;
|
|
25
25
|
private cursorTooltip;
|
|
26
26
|
private featureTooltip;
|
|
27
|
+
private surfaceCursor;
|
|
28
|
+
private edgeCursor;
|
|
29
|
+
private midPointCursor;
|
|
30
|
+
private endPointCursor;
|
|
31
|
+
private dom;
|
|
27
32
|
constructor(params: {
|
|
28
33
|
apiController: ApiController;
|
|
29
34
|
renderControllerProxy: RenderControllerProxy;
|
|
@@ -34,6 +39,8 @@ export declare class PointToPointManager implements MeasurementInterface {
|
|
|
34
39
|
});
|
|
35
40
|
setGlobalOffset(params: Vector3): void;
|
|
36
41
|
getGlobalOffset(): THREE.Vector3;
|
|
42
|
+
private onMouseMove;
|
|
43
|
+
private onWheel;
|
|
37
44
|
getMeasurementProgress(): MeasurementState;
|
|
38
45
|
private onCameraUpdated;
|
|
39
46
|
private onNavigationChanged;
|
|
@@ -50,4 +57,10 @@ export declare class PointToPointManager implements MeasurementInterface {
|
|
|
50
57
|
private removeCursors;
|
|
51
58
|
private setCameraAndNavigationControls;
|
|
52
59
|
private updateSvg;
|
|
60
|
+
private updateCursorPosition;
|
|
61
|
+
private updatePointToPointCursorSize;
|
|
62
|
+
private managePointToPointCursorElements;
|
|
63
|
+
private onMeasurementObjectEnter;
|
|
64
|
+
private updatePointToPointCursor;
|
|
65
|
+
private resetCursor;
|
|
53
66
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { WorldIntersectionSnapResult } from '../PointToPointController';
|
|
2
2
|
export declare const matrixWorld: import("three").Matrix4;
|
|
3
|
-
export declare const measurementObjectEnterObject1Payload: WorldIntersectionSnapResult;
|
|
4
|
-
export declare const measurementObjectEnterTooComplexPayload: WorldIntersectionSnapResult;
|
|
5
|
-
export declare const measurementObjectEnterObject2Payload: WorldIntersectionSnapResult;
|
|
6
|
-
export declare const measurementObjectMoveMidpointPayload: WorldIntersectionSnapResult;
|
|
7
3
|
export declare const measurementObjectLeaveMoveIntoObject2: {
|
|
8
4
|
meshnodeIndex: number;
|
|
9
5
|
relatedMeshnodeIndex: number;
|
|
@@ -26,6 +22,10 @@ export declare const measurementObjectClickPayloadSecondAnchor: {
|
|
|
26
22
|
z: number;
|
|
27
23
|
};
|
|
28
24
|
};
|
|
25
|
+
export declare const measurementObjectEnterObject1Payload: WorldIntersectionSnapResult;
|
|
26
|
+
export declare const measurementObjectEnterTooComplexPayload: WorldIntersectionSnapResult;
|
|
27
|
+
export declare const measurementObjectEnterObject2Payload: WorldIntersectionSnapResult;
|
|
28
|
+
export declare const measurementObjectMoveMidpointPayload: WorldIntersectionSnapResult;
|
|
29
29
|
export declare const measurementObjectMovePayload: WorldIntersectionSnapResult;
|
|
30
30
|
export declare const svgDataObjectOutline: {
|
|
31
31
|
lines: {
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { DebugGui } from '../utils/DebugGui';
|
|
2
|
-
export declare const pointToPointCursorSize: {
|
|
3
|
-
surfaceCursorSize: number;
|
|
4
|
-
edgeCursorSize: number;
|
|
5
|
-
endpointCursorSize: number;
|
|
6
|
-
};
|
|
7
2
|
export declare const createPointToPointLineDrawingDebugGui: () => ReturnType<typeof DebugGui.add>;
|
|
@@ -7,10 +7,6 @@ export declare class DefaultControl implements MouseControl {
|
|
|
7
7
|
private isRotating;
|
|
8
8
|
private startMouseDown?;
|
|
9
9
|
private lockRotation;
|
|
10
|
-
private surfaceCursor;
|
|
11
|
-
private edgeCursor;
|
|
12
|
-
private midPointCursor;
|
|
13
|
-
private endPointCursor;
|
|
14
10
|
private static COUNTS_AS_CLICK_THRESHOLD;
|
|
15
11
|
constructor(params: {
|
|
16
12
|
dom: HTMLElement;
|
|
@@ -23,12 +19,5 @@ export declare class DefaultControl implements MouseControl {
|
|
|
23
19
|
dispose(): void;
|
|
24
20
|
private updateSectionHover;
|
|
25
21
|
private onSectionBoxDisplayHoverUpdated;
|
|
26
|
-
private onMeasurementObjectMove;
|
|
27
|
-
private onMeasurementObjectLeave;
|
|
28
|
-
private onMeasurementObjectEnter;
|
|
29
|
-
private updatePointToPointCursor;
|
|
30
22
|
private resetCursor;
|
|
31
|
-
private updateCursorPosition;
|
|
32
|
-
private updatePointToPointCursorSize;
|
|
33
|
-
private addPointToPointCursorToDom;
|
|
34
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|