@procore/bim-webviewer-sdk 16.2.0 → 16.3.0-BIM-4503.0
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 +26 -0
- package/dist/Procore.Bim.Webviewer.d.ts +99 -32
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +4 -4
- package/dist/types/src/components/CoachmarkManagerComponent/CoachmarkManagerComponent.d.ts +12 -1
- package/dist/types/src/components/CoachmarkManagerComponent/Coachmarks.d.ts +0 -9
- package/dist/types/src/components/RootComponent.d.ts +8 -2
- package/dist/types/src/components/ShortestDistanceComponent.d.ts +36 -35
- package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +8 -9
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +16 -10
- package/dist/types/src/components/Tooltip/TooltipManager.d.ts +16 -0
- package/dist/types/src/components/Tooltip/__tests__/Tooltip.test.d.ts +2 -1
- package/dist/types/src/components/Tooltip/index.d.ts +1 -0
- package/dist/types/src/controllers/SettingsController.d.ts +5 -3
- package/dist/types/src/measuring/CursorTooltip/CursorToolip.d.ts +15 -0
- package/dist/types/src/measuring/CursorTooltip/__tests__/CursorToolip.test.d.ts +1 -0
- package/dist/types/src/measuring/CursorTooltip/index.d.ts +1 -0
- package/dist/types/src/measuring/DistanceLabel.d.ts +41 -0
- package/dist/types/src/measuring/FeatureTooltip/FeatureTooltip.d.ts +20 -0
- package/dist/types/src/measuring/FeatureTooltip/__tests__/FeatureTooltip.test.d.ts +1 -0
- package/dist/types/src/measuring/FeatureTooltip/index.d.ts +1 -0
- package/dist/types/src/measuring/MeasureToolUtils.d.ts +3 -2
- package/dist/types/src/measuring/MeasurementRenderer.d.ts +66 -0
- package/dist/types/src/measuring/PointToPointController.d.ts +9 -9
- package/dist/types/src/measuring/PointToPointManager.d.ts +29 -20
- package/dist/types/src/measuring/__tests__/DistanceLabel.test.d.ts +1 -0
- package/dist/types/src/measuring/__tests__/MeasurementRenderer.test.d.ts +1 -0
- package/dist/types/src/measuring/__tests__/MeasurementRendererFixtures.d.ts +3 -0
- package/dist/types/src/measuring/__tests__/PointToPointFixtures.d.ts +1 -19
- package/dist/types/src/measuring/button/SplitButton.d.ts +28 -0
- package/dist/types/src/measuring/createMeasureToolDebugGui.d.ts +2 -0
- package/dist/types/src/measuring/{createPointToPointManagerDebugGui.d.ts → createPointToPointLineDrawingDebugGui.d.ts} +1 -1
- package/dist/types/src/measuring/index.d.ts +2 -0
- package/dist/types/src/procoregl/MeshTopology/HalfEdge.d.ts +8 -0
- package/dist/types/src/procoregl/MeshTopology/MeshTopology.d.ts +6 -3
- package/dist/types/src/procoregl/MeshTopology/Position.d.ts +6 -7
- package/dist/types/src/procoregl/Models/Models.d.ts +2 -1
- package/dist/types/src/pwfreader/PWF.d.ts +2 -2
- package/dist/types/src/sdk.d.ts +1 -0
- package/dist/types/src/unit_util.d.ts +20 -6
- package/dist/types/src/utils/MathHelper/MathHelper.d.ts +2 -0
- package/dist/types/src/utils/MathHelper/index.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/types/src/{procoregl/MeshTopology/__tests__/Position.test.d.ts → components/Tooltip/__tests__/TooltipManager.test.d.ts} +0 -0
|
@@ -26,25 +26,7 @@ export declare const measurementObjectClickPayloadSecondAnchor: {
|
|
|
26
26
|
z: number;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
export declare const
|
|
30
|
-
boundaryEdges: {
|
|
31
|
-
start: {
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
z: number;
|
|
35
|
-
};
|
|
36
|
-
end: {
|
|
37
|
-
x: number;
|
|
38
|
-
y: number;
|
|
39
|
-
z: number;
|
|
40
|
-
};
|
|
41
|
-
}[];
|
|
42
|
-
intersection: {
|
|
43
|
-
x: number;
|
|
44
|
-
y: number;
|
|
45
|
-
z: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
29
|
+
export declare const measurementObjectMovePayload: WorldIntersectionSnapResult;
|
|
48
30
|
export declare const svgDataObjectOutline: {
|
|
49
31
|
lines: {
|
|
50
32
|
stroke: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { PointToPointManager } from '../PointToPointManager';
|
|
2
|
+
import type { ShortestDistanceComponent } from '../../components/ShortestDistanceComponent';
|
|
3
|
+
import './styles.css';
|
|
4
|
+
export declare const MEASURE_MODES: {
|
|
5
|
+
POINT_TO_POINT: string;
|
|
6
|
+
SHORTEST_DISTANCE: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class SplitButton {
|
|
9
|
+
element: HTMLElement;
|
|
10
|
+
private button;
|
|
11
|
+
private buttonIcon;
|
|
12
|
+
private flyOutClickAreaButton;
|
|
13
|
+
private flyOutMenu;
|
|
14
|
+
private modeToMenuItem;
|
|
15
|
+
private currentMode;
|
|
16
|
+
private enabled;
|
|
17
|
+
private pointToPointManager;
|
|
18
|
+
private shortestDistanceComponent;
|
|
19
|
+
constructor(params: {
|
|
20
|
+
content: string;
|
|
21
|
+
pointToPointManager: PointToPointManager;
|
|
22
|
+
shortestDistanceComponent: ShortestDistanceComponent;
|
|
23
|
+
});
|
|
24
|
+
private onSelectTool;
|
|
25
|
+
private toggleMeasurement;
|
|
26
|
+
private setMenuItemSelected;
|
|
27
|
+
private flyOutClickZoneOnClick;
|
|
28
|
+
}
|
|
@@ -4,4 +4,4 @@ export declare const pointToPointCursorSize: {
|
|
|
4
4
|
edgeCursorSize: number;
|
|
5
5
|
endpointCursorSize: number;
|
|
6
6
|
};
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const createPointToPointLineDrawingDebugGui: () => ReturnType<typeof DebugGui.add>;
|
|
@@ -19,6 +19,14 @@ export declare class HalfEdge {
|
|
|
19
19
|
isCrease(): boolean;
|
|
20
20
|
isBorder(): boolean;
|
|
21
21
|
isOrphan(): boolean;
|
|
22
|
+
asObject(): {
|
|
23
|
+
id: number;
|
|
24
|
+
org: number;
|
|
25
|
+
dest: number;
|
|
26
|
+
next: number | undefined;
|
|
27
|
+
prev: number | undefined;
|
|
28
|
+
sym: number | undefined;
|
|
29
|
+
};
|
|
22
30
|
private constructor();
|
|
23
31
|
private compareFaces;
|
|
24
32
|
private signedVolumeOfTetrahedron;
|
|
@@ -2,6 +2,9 @@ import { Position } from './Position';
|
|
|
2
2
|
import { Centroid } from './Centroid';
|
|
3
3
|
import { HalfEdge } from './HalfEdge';
|
|
4
4
|
import { PWFMesh } from '../../pwfreader/pwf/PWFMesh';
|
|
5
|
+
export declare class MeshTopologyError extends Error {
|
|
6
|
+
constructor(message: string);
|
|
7
|
+
}
|
|
5
8
|
export declare class MeshTopology {
|
|
6
9
|
private positions;
|
|
7
10
|
private edges;
|
|
@@ -15,9 +18,9 @@ export declare class MeshTopology {
|
|
|
15
18
|
intersect(ray: THREE.Ray): Centroid | null;
|
|
16
19
|
isManifold(): boolean;
|
|
17
20
|
isEuler(): boolean;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
21
|
+
private extractFaces;
|
|
22
|
+
private extractPositions;
|
|
20
23
|
private findOrphan;
|
|
21
24
|
private addOrphan;
|
|
22
|
-
private
|
|
25
|
+
private dedupePositionsAndFaces;
|
|
23
26
|
}
|
|
@@ -6,13 +6,12 @@ export declare class Position {
|
|
|
6
6
|
id: number;
|
|
7
7
|
private static _nextId;
|
|
8
8
|
constructor(vertex: THREE.Vector3, normal: THREE.Vector3);
|
|
9
|
-
isPit(): boolean;
|
|
10
|
-
isPeak(): boolean;
|
|
11
|
-
isClosed(): boolean;
|
|
12
|
-
isCorner(): boolean;
|
|
13
9
|
isOrphan(): boolean;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
asObject(): {
|
|
11
|
+
id: number;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
z: number;
|
|
15
|
+
};
|
|
17
16
|
private static nextId;
|
|
18
17
|
}
|
|
@@ -32,7 +32,7 @@ export declare class Models {
|
|
|
32
32
|
private pwfs;
|
|
33
33
|
private currentParsingPwfIndex;
|
|
34
34
|
private streaming;
|
|
35
|
-
private
|
|
35
|
+
private prefetchingPartitions;
|
|
36
36
|
private geometryFactory?;
|
|
37
37
|
private objectTrees;
|
|
38
38
|
private readonly selectionOption;
|
|
@@ -52,6 +52,7 @@ export declare class Models {
|
|
|
52
52
|
selectionOption: SelectMethod;
|
|
53
53
|
startTimestamp: number;
|
|
54
54
|
startTime: number;
|
|
55
|
+
prefetchingPartitions?: boolean;
|
|
55
56
|
});
|
|
56
57
|
private sceneGraphFactory;
|
|
57
58
|
getResourceId: (resource: ResourceDiscriminator) => number;
|
|
@@ -99,9 +99,9 @@ export class PWF {
|
|
|
99
99
|
forEachNode(callback: any): void;
|
|
100
100
|
getMeshObject(meshRef: any): import("./pwf/MeshObject").MeshObject;
|
|
101
101
|
findFirstObject(meshnodeIndex: any): import("./shared/Node").Node;
|
|
102
|
-
captureModelStats(): number
|
|
102
|
+
captureModelStats(): number;
|
|
103
103
|
captureStandardModelStats(pwfModel: any): number;
|
|
104
|
-
capturePartitionedModelStats(pwfModel: any): number
|
|
104
|
+
capturePartitionedModelStats(pwfModel: any): number;
|
|
105
105
|
numFirstObjects(): number;
|
|
106
106
|
#private;
|
|
107
107
|
}
|
package/dist/types/src/sdk.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export type { Action } from './utils/Enums';
|
|
|
33
33
|
export type { PaletteParams } from './types/Palette';
|
|
34
34
|
export type { Uom, DisplayUnit } from './unit_util';
|
|
35
35
|
export { UOM, DISPLAY_UNIT_ABBREVIATIONS as DISPLAY_UNIT } from './unit_util';
|
|
36
|
+
export type { ProjectSettings } from './controllers/SettingsController';
|
|
36
37
|
declare const version: string;
|
|
37
38
|
export { version };
|
|
38
39
|
export { ErrorLogger } from './utils/Error';
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
declare const UOM_US_CUSTOMARY_LENGTH: {
|
|
2
|
+
readonly uin: "uin";
|
|
3
|
+
readonly mil: "mil";
|
|
4
|
+
readonly in: "in";
|
|
5
|
+
readonly ft: "ft";
|
|
6
|
+
readonly yd: "yd";
|
|
7
|
+
readonly mi: "mi";
|
|
8
|
+
};
|
|
9
|
+
declare const UOM_METRIC_LENGTH: {
|
|
10
|
+
readonly um: "um";
|
|
11
|
+
readonly mm: "mm";
|
|
12
|
+
readonly cm: "cm";
|
|
13
|
+
readonly m: "m";
|
|
14
|
+
readonly km: "km";
|
|
15
|
+
};
|
|
1
16
|
export declare const UOM: {
|
|
2
17
|
readonly cdsqm: "cd/m²";
|
|
3
18
|
readonly cuum: "um³";
|
|
@@ -34,6 +49,8 @@ export declare const UOM: {
|
|
|
34
49
|
readonly yd: "yd";
|
|
35
50
|
readonly mi: "mi";
|
|
36
51
|
};
|
|
52
|
+
type UomUsCustomaryLength = (typeof UOM_US_CUSTOMARY_LENGTH)[keyof typeof UOM_US_CUSTOMARY_LENGTH];
|
|
53
|
+
type UomMetricLength = (typeof UOM_METRIC_LENGTH)[keyof typeof UOM_METRIC_LENGTH];
|
|
37
54
|
export type Uom = (typeof UOM)[keyof typeof UOM];
|
|
38
55
|
export declare const PROBLEM_UOMS: readonly ["uin", "mil", "uin²", "mil²", "uin³", "mil³", "um", "um²", "um³"];
|
|
39
56
|
export declare const DISPLAY_UNIT_ABBREVIATIONS: {
|
|
@@ -63,14 +80,10 @@ export declare const UnitUtil: {
|
|
|
63
80
|
};
|
|
64
81
|
ScaleFactors: readonly [readonly [1, 100, 1000, 3.28084, 39.37008, 1.0936133333333, 0.0010000000319999695, 0.0006213712121211932, 1000000.0319999696, 39370.08, 2.54e-8], readonly [0.01, 1, 10, 0.0328084, 0.393701, 0.0109361, 0.00001, 0.0000062137119224, 10000, 393.701, 393700.7874], readonly [0.001, 0.1, 1, 0.00328084, 0.0393701, 0.00109361, 0.000001, 6.2137e-7, 1000, 39.3701, 39370.1], readonly [0.3048, 30.48, 304.8, 1, 12, 0.333333, 0.0003048, 0.000189394, 304800, 12000, 12000000], readonly [0.0254, 2.54, 25.4, 0.0833333, 1, 0.0277778, 0.0000254, 0.0000157828283, 25400, 1000, 1000000], readonly [0.9144, 91.44, 914.4, 3, 36, 1, 0.0009144, 0.000568182, 914400, 36000, 36000000], readonly [1000, 100000, 1000000, 3280.84, 39370.1, 1093.61, 1, 0.621371, 1000000000, 0.621371, 39370078740.157], readonly [1609.34, 160934, 1609344, 5280, 63360, 1760, 1.60934, 1, 1609344000, 63360000, 63360000000], readonly [0.000001, 0.0001, 0.001, 0.00000328084, 0.000039370079, 0.000001093613, 1e-9, 6.214e-10, 1, 0.0393701, 39.37007874], readonly [0.0000254, 0.00254, 0.0254, 0.0000833333, 0.001, 0.0000277778, 2.54e-8, 1.57e-8, 25.4, 1, 1000], readonly [2.54e-8, 0.00000254, 0.0000254, 8.33e-8, 0.000001, 2.77e-8, 2.54e-11, 1.57e-11, 0.03, 0.001, 1]];
|
|
65
82
|
unitFromAbbreviation: (abbv: string) => number;
|
|
66
|
-
abbreviationFromDisplayUnit: (displayUnit: number) =>
|
|
83
|
+
abbreviationFromDisplayUnit: (displayUnit: number) => DisplayUnit;
|
|
67
84
|
unitConvert: (value: number, targetUnit: number, sourceUnit: number, pow: number) => number;
|
|
68
85
|
vulgarFraction: (frac: number) => string;
|
|
69
|
-
|
|
70
|
-
entire: string;
|
|
71
|
-
whole: string;
|
|
72
|
-
fraction: string;
|
|
73
|
-
};
|
|
86
|
+
formatFeetInches: (value: number, unit: UomMetricLength | UomUsCustomaryLength) => string;
|
|
74
87
|
getEquivalentUnitForDisplayUnit: (fromUnit: Uom, displayUnit: DisplayUnit) => Uom;
|
|
75
88
|
convertUnit: (value: number, fromUnit: Uom, toUnit: Uom) => number;
|
|
76
89
|
formatUnit: (value: number, unit: Uom, options?: {
|
|
@@ -79,3 +92,4 @@ export declare const UnitUtil: {
|
|
|
79
92
|
locale?: string | undefined;
|
|
80
93
|
}) => string;
|
|
81
94
|
};
|
|
95
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { normalizeLine, serializeVector, toScreenPosition, translateToLocalCoord, translateToWorldCoord, } from './MathHelper';
|
package/package.json
CHANGED