@procore/bim-webviewer-sdk 17.3.0-rc.4 → 17.3.0-rc.5
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.js +1 -1
- package/dist/types/src/measuring/DistanceLabel.d.ts +6 -0
- package/dist/types/src/measuring/MeasurementRenderer.d.ts +0 -1
- package/dist/types/src/utils/CameraHelper/CameraHelper.d.ts +8 -0
- package/dist/types/src/utils/CameraHelper/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8,12 +8,15 @@ export type DistanceLine = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare class DistanceLabel {
|
|
10
10
|
element: HTMLElement;
|
|
11
|
+
canvas: HTMLElement;
|
|
11
12
|
midpoint: THREE.Vector3;
|
|
12
13
|
private readonly line;
|
|
13
14
|
private readonly settingsController;
|
|
14
15
|
private readonly bimMeasureLabel;
|
|
15
16
|
private readonly labelElement;
|
|
16
17
|
private readonly prependLabel;
|
|
18
|
+
hiddenBehindCamera: boolean;
|
|
19
|
+
private globalOffset;
|
|
17
20
|
constructor(params: {
|
|
18
21
|
line: DistanceLine;
|
|
19
22
|
settingsController: SettingsController;
|
|
@@ -21,9 +24,11 @@ export declare class DistanceLabel {
|
|
|
21
24
|
prependLabel?: string;
|
|
22
25
|
backgroundColor?: CssColor;
|
|
23
26
|
textColor?: CssColor;
|
|
27
|
+
globalOffset: THREE.Vector3 | null;
|
|
24
28
|
});
|
|
25
29
|
show(): void;
|
|
26
30
|
hide(): void;
|
|
31
|
+
update(camera: THREE.PerspectiveCamera | null): void;
|
|
27
32
|
remove(): void;
|
|
28
33
|
calculateRectFromPosition(params: {
|
|
29
34
|
x: number;
|
|
@@ -40,4 +45,5 @@ export declare class DistanceLabel {
|
|
|
40
45
|
x: number;
|
|
41
46
|
y: number;
|
|
42
47
|
}): void;
|
|
48
|
+
setGlobalOffset(params: Vector3): void;
|
|
43
49
|
}
|
|
@@ -53,7 +53,6 @@ export declare class MeasurementRenderer {
|
|
|
53
53
|
private onResize;
|
|
54
54
|
private onCameraUpdated;
|
|
55
55
|
private updateDistanceLabelPosition;
|
|
56
|
-
private isDistanceLabelHidden;
|
|
57
56
|
private areRectsOverlapping;
|
|
58
57
|
private isOverlapping;
|
|
59
58
|
private stackElementsVerticallyToFirst;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isBehindCamera } from './CameraHelper';
|