@procore/bim-webviewer-sdk 16.1.0 → 16.2.0-BIM-4799.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 +39 -0
- package/dist/Procore.Bim.Webviewer.d.ts +131 -104
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +12 -0
- package/dist/types/src/api/types/BimObject.d.ts +3 -0
- package/dist/types/src/components/CoachmarkManagerComponent/CoachmarkComponent.d.ts +2 -0
- package/dist/types/src/components/CoachmarkManagerComponent/CoachmarkManagerComponent.d.ts +9 -0
- package/dist/types/src/components/CoachmarkManagerComponent/Coachmarks.d.ts +2 -0
- package/dist/types/src/components/Markup/SvgRenderer.d.ts +5 -2
- package/dist/types/src/components/Markup/__tests__/fixtures.d.ts +1 -1
- package/dist/types/src/components/ShortestDistanceComponent.d.ts +1 -0
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/types/src/components/Tooltip/index.d.ts +1 -0
- package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +3 -2
- package/dist/types/src/components/WindowViewPropertiesComponent/__tests__/formatUoms.test.d.ts +1 -0
- package/dist/types/src/components/WindowViewPropertiesComponent/formatUoms.d.ts +3 -0
- package/dist/types/src/controllers/RenderController.d.ts +3 -20
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +3 -19
- package/dist/types/src/controllers/SettingsController.d.ts +2 -0
- package/dist/types/src/controllers/ShortestDistanceController.d.ts +2 -2
- package/dist/types/src/measuring/MeasureToolUtils.d.ts +11 -3
- package/dist/types/src/measuring/PointToPointController.d.ts +7 -6
- package/dist/types/src/measuring/PointToPointManager.d.ts +26 -5
- package/dist/types/src/measuring/__tests__/PointToPointFixtures.d.ts +165 -6
- package/dist/types/src/measuring/createPointToPointManagerDebugGui.d.ts +7 -0
- package/dist/types/src/navigation/DefaultControl.d.ts +7 -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 +11 -10
- package/dist/types/src/pwfreader/PWF.d.ts +2 -2
- package/dist/types/src/pwfreader/pwf/{PWFMeshObject.d.ts → MeshObject.d.ts} +4 -3
- package/dist/types/src/pwfreader/pwf/MeshnodeObject.d.ts +12 -0
- package/dist/types/src/pwfreader/pwf/NodeObject.d.ts +17 -0
- package/dist/types/src/pwfreader/shared/Mesh.d.ts +2 -1
- package/dist/types/src/pwfreader/shared/MeshServices.d.ts +4 -8
- package/dist/types/src/pwfreader/shared/Meshnode.d.ts +2 -12
- package/dist/types/src/pwfreader/shared/Node.d.ts +3 -20
- package/dist/types/src/pwfreader/streaming/StreamedMeshServices.d.ts +3 -2
- package/dist/types/src/pwfreader/streaming/StreamedMeshnode.d.ts +3 -2
- package/dist/types/src/sdk.d.ts +3 -1
- package/dist/types/src/types/PublicNode.d.ts +2 -2
- package/dist/types/src/unit_util.d.ts +46 -0
- package/dist/types/src/utils/MathHelper/MathHelper.d.ts +19 -0
- package/dist/types/src/utils/MathHelper/__tests__/MathHelper.test.d.ts +1 -0
- package/dist/types/src/utils/MathHelper/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/src/pwfreader/pwf/PWFMeshnodeObject.d.ts +0 -11
- package/dist/types/src/pwfreader/pwf/PWFModelObject.d.ts +0 -14
- package/dist/types/src/pwfreader/pwf/PWFNodeObject.d.ts +0 -10
- /package/dist/types/src/{procoregl/MeshTopology/__tests__/Position.test.d.ts → components/Tooltip/__tests__/Tooltip.test.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- ([#1336](https://github.com/procore/bim-webviewer/pull/1336)) [Internal][QA Ignore] Update PR template to include testing notes.
|
|
13
|
+
|
|
14
|
+
## [16.2.0] 2024-09-27
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Add `gui.showCoachmark` and `gui.hideCoachmark` to allow for showing and hiding custom coachmarks.
|
|
19
|
+
- Add new methods for converting and formatting values with units
|
|
20
|
+
- Add `gui.getEquivalentUnitForDisplayUnit(unit: Uom, displayUnit: displayUnit): Uom`
|
|
21
|
+
- gets the equivalent unit (either the length, area, or volume version) based on the display unit
|
|
22
|
+
- example: `getEquivalentUnitForDisplayUnit('ft²', 'mm')` returns `'mm²'`
|
|
23
|
+
- example: `getEquivalentUnitForDisplayUnit('ft²', 'ftin')` returns `'ft²'`
|
|
24
|
+
- Add `gui.convertUnit(value: number, from: Uom, to: Uom): number`
|
|
25
|
+
- converts a value from one unit to another
|
|
26
|
+
- example: `convertUnit(1, 'ft', 'm')` returns `0.3048`
|
|
27
|
+
- Add `gui.formatUnit(value: number, unit: Uom): string`
|
|
28
|
+
- formats a value with the correct unit and locale
|
|
29
|
+
- example: `formatUnit(1000.12345, 'ft')` when Webviewer is initialized with `options.locale` as `de-DE` returns `'1.000,1235 ft'`
|
|
30
|
+
- example: `formatUnit(1000.12345, 'ft')` when Webviewer is not initialized with a locale (defaults to `'en'`) returns `'1,000.1235 ft'`
|
|
31
|
+
- [Internal] `MeasureToolUtils` now has a function that returns the extremities of a boundary passing through a halfedge.
|
|
32
|
+
- [Internal] Ensures that we have the proper `midpoints` on boundaries made up of several collinear halfedges.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- Improved formatting of properties data that has a unit of measure in the Properties window.
|
|
37
|
+
- Properties data will now be displayed in a unit that matches the "Measurement Unit" set in the Settings window. Also known as `displayUnit` when queried via `gui.getSettings`
|
|
38
|
+
- Properties data will now include thousands and decimals separators that are based on the locale provided to `Webviewer` on instantiation
|
|
39
|
+
- For example, when the configured `displayUnit` is `'m'` and the locale is `'de-DE'`, the value `'1,000.1234 mi'` would display as `'1.609.542,6844 m'`
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- Fixes issues w/ Bootstrapper
|
|
44
|
+
- The"steps counts" was off by one, impacting the proper behavior of the Loading screen
|
|
45
|
+
- Fixes potential issue w/ the order of NodeServices and MeshnodeServices in Bootstrapper
|
|
46
|
+
- Fix svg render display not correct issue when the anchor point is behind camera.
|
|
47
|
+
- Fix the issue when window is resized, the svg render not update with correct aspect ratio.
|
|
48
|
+
|
|
10
49
|
## [16.1.0] 2024-09-13
|
|
11
50
|
|
|
12
51
|
### Fixed
|
|
@@ -250,6 +250,14 @@ export declare type CssColor = RGB | RGBA | HEX | string;
|
|
|
250
250
|
|
|
251
251
|
declare type CssFont = string;
|
|
252
252
|
|
|
253
|
+
export declare const DISPLAY_UNIT: {
|
|
254
|
+
readonly Meters: "m";
|
|
255
|
+
readonly Millimeters: "mm";
|
|
256
|
+
readonly FeetInches: "ftin";
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
export declare type DisplayUnit = (typeof DISPLAY_UNIT)[keyof typeof DISPLAY_UNIT];
|
|
260
|
+
|
|
253
261
|
declare type DownloadMetaData = {
|
|
254
262
|
modelCached: boolean;
|
|
255
263
|
timeToDownload: number;
|
|
@@ -452,6 +460,8 @@ declare type Line = {
|
|
|
452
460
|
end: Vector2;
|
|
453
461
|
stroke: CssColor;
|
|
454
462
|
strokeWidth: number;
|
|
463
|
+
strokeDasharray?: string;
|
|
464
|
+
opacity?: number;
|
|
455
465
|
zIndex?: number;
|
|
456
466
|
};
|
|
457
467
|
|
|
@@ -483,7 +493,7 @@ declare class Mesh {
|
|
|
483
493
|
lenFaces(): number;
|
|
484
494
|
vertices(): Float32Array;
|
|
485
495
|
faces(): Uint16Array;
|
|
486
|
-
asObject():
|
|
496
|
+
asObject(): MeshObject;
|
|
487
497
|
}
|
|
488
498
|
|
|
489
499
|
declare class MeshData {
|
|
@@ -523,6 +533,7 @@ declare class Meshnode {
|
|
|
523
533
|
private centerValue?;
|
|
524
534
|
private meshDataValue?;
|
|
525
535
|
private meshGeometriesValue?;
|
|
536
|
+
private matrixWorldValue?;
|
|
526
537
|
protected pwf: PWF;
|
|
527
538
|
selected: boolean;
|
|
528
539
|
private _parent?;
|
|
@@ -560,11 +571,10 @@ declare type MeshnodeObject = {
|
|
|
560
571
|
matrix: Float32Array;
|
|
561
572
|
numChild: number;
|
|
562
573
|
childRefs: Uint32Array;
|
|
563
|
-
meshData:
|
|
574
|
+
meshData: MeshObject[];
|
|
564
575
|
nodeId: number;
|
|
565
576
|
meshnodeIndex: number;
|
|
566
577
|
hidden: boolean;
|
|
567
|
-
type: string;
|
|
568
578
|
selected: boolean;
|
|
569
579
|
};
|
|
570
580
|
|
|
@@ -595,13 +605,22 @@ declare class MeshnodeServices_3 extends MeshnodeServices_2 {
|
|
|
595
605
|
};
|
|
596
606
|
}
|
|
597
607
|
|
|
608
|
+
declare type MeshObject = {
|
|
609
|
+
color: number;
|
|
610
|
+
faces: Uint16Array;
|
|
611
|
+
offset: number;
|
|
612
|
+
opacity: number;
|
|
613
|
+
vertices: Float32Array;
|
|
614
|
+
drawType: number;
|
|
615
|
+
};
|
|
616
|
+
|
|
598
617
|
declare class MeshServices {
|
|
599
618
|
protected pwf: PWF;
|
|
600
619
|
protected geometryFactory?: GeometryFactory;
|
|
601
620
|
private meshGeometryMap;
|
|
602
|
-
private pwfMeshes;
|
|
621
|
+
private readonly pwfMeshes;
|
|
603
622
|
private pwfMeshOffsetMap;
|
|
604
|
-
private meshCount;
|
|
623
|
+
private readonly meshCount;
|
|
605
624
|
private currentIndex;
|
|
606
625
|
static maxChunkSize: number;
|
|
607
626
|
constructor(pwfMeshes: PWFMesh[], pwf: PWF);
|
|
@@ -614,7 +633,7 @@ declare class MeshServices {
|
|
|
614
633
|
isComplete: boolean;
|
|
615
634
|
};
|
|
616
635
|
private loadToGPU;
|
|
617
|
-
|
|
636
|
+
getMeshObject(meshOffset: number): MeshObject;
|
|
618
637
|
private loadMeshGeometryToGPU;
|
|
619
638
|
}
|
|
620
639
|
|
|
@@ -626,12 +645,6 @@ declare class MeshServices_3 extends MeshServices_2 {
|
|
|
626
645
|
constructor(_buffer: ArrayBuffer, pwf: PWF, manifest: Manifest);
|
|
627
646
|
}
|
|
628
647
|
|
|
629
|
-
declare type MeshVerticesAndFaces = {
|
|
630
|
-
meshOffset: number;
|
|
631
|
-
vertices: number[];
|
|
632
|
-
faces: number[];
|
|
633
|
-
};
|
|
634
|
-
|
|
635
648
|
declare type MetricId = string;
|
|
636
649
|
|
|
637
650
|
export declare type Model = {
|
|
@@ -702,14 +715,14 @@ declare class Models {
|
|
|
702
715
|
private static PREFETCHING_PARTITIONS;
|
|
703
716
|
private geometryFactory?;
|
|
704
717
|
private objectTrees;
|
|
705
|
-
private selectionOption;
|
|
706
|
-
private startTimestamp;
|
|
707
|
-
private startTime;
|
|
718
|
+
private readonly selectionOption;
|
|
719
|
+
private readonly startTimestamp;
|
|
720
|
+
private readonly startTime;
|
|
708
721
|
private partitionProxiesLoaded;
|
|
709
|
-
private sceneGraph;
|
|
722
|
+
private readonly sceneGraph;
|
|
710
723
|
private tempVirtualizedMeshnodes;
|
|
711
724
|
private detailsParams?;
|
|
712
|
-
private isLogging;
|
|
725
|
+
private readonly isLogging;
|
|
713
726
|
constructor(params: {
|
|
714
727
|
sceneGraphName: SceneGraphName;
|
|
715
728
|
isLogging: boolean;
|
|
@@ -750,10 +763,10 @@ declare class Models {
|
|
|
750
763
|
resourceId: number;
|
|
751
764
|
meshnodeIndex: number;
|
|
752
765
|
}): number;
|
|
753
|
-
|
|
766
|
+
getMeshObject(params: {
|
|
754
767
|
resourceId: number;
|
|
755
768
|
meshRef: number;
|
|
756
|
-
}):
|
|
769
|
+
}): MeshObject;
|
|
757
770
|
globalOffset(resourceId: number): {
|
|
758
771
|
offsetX: number;
|
|
759
772
|
offsetY: number;
|
|
@@ -946,7 +959,7 @@ declare class NavigationModel {
|
|
|
946
959
|
declare class Node_2 {
|
|
947
960
|
private pwfNode;
|
|
948
961
|
private pwf;
|
|
949
|
-
private box3Value;
|
|
962
|
+
private readonly box3Value;
|
|
950
963
|
isFirstObjectValue: boolean;
|
|
951
964
|
private _parent?;
|
|
952
965
|
constructor(pwfNode: PWFNode, pwf: PWF);
|
|
@@ -970,10 +983,17 @@ declare class Node_2 {
|
|
|
970
983
|
isFirstObject(): boolean;
|
|
971
984
|
hasMeshnodeChildren(): boolean;
|
|
972
985
|
numMeshnodeChildren(): number;
|
|
973
|
-
asObject():
|
|
986
|
+
asObject(): NodeObject;
|
|
974
987
|
}
|
|
975
988
|
|
|
976
|
-
declare type
|
|
989
|
+
export declare type NodeBoundingBox = {
|
|
990
|
+
min: number[];
|
|
991
|
+
max: number[];
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
declare type NodeId = ReturnType<Node_2['nodeId']>;
|
|
995
|
+
|
|
996
|
+
declare type NodeObject = {
|
|
977
997
|
offset: number;
|
|
978
998
|
nodeId: number;
|
|
979
999
|
parentOff: number;
|
|
@@ -983,18 +1003,10 @@ declare type NodeAsObject = {
|
|
|
983
1003
|
hasChildren: boolean;
|
|
984
1004
|
hasMeshnodeChildren: boolean;
|
|
985
1005
|
bbox: NodeBoundingBox;
|
|
986
|
-
type: string;
|
|
987
1006
|
parentId: number | undefined;
|
|
988
1007
|
children: number[];
|
|
989
1008
|
};
|
|
990
1009
|
|
|
991
|
-
export declare type NodeBoundingBox = {
|
|
992
|
-
min: number[];
|
|
993
|
-
max: number[];
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
declare type NodeId = ReturnType<Node_2['nodeId']>;
|
|
997
|
-
|
|
998
1010
|
declare class NodeServices {
|
|
999
1011
|
private nodes;
|
|
1000
1012
|
private nodeIdToOffsetMap;
|
|
@@ -1288,27 +1300,27 @@ declare type Point = {
|
|
|
1288
1300
|
declare class PointToPointController {
|
|
1289
1301
|
private pickingController;
|
|
1290
1302
|
private models;
|
|
1291
|
-
private camera;
|
|
1303
|
+
private readonly camera;
|
|
1292
1304
|
private currentHoverMeshnodeIndex;
|
|
1293
1305
|
private meshTopologyCache;
|
|
1294
1306
|
private _enabled;
|
|
1295
|
-
private globalOffset;
|
|
1307
|
+
private readonly globalOffset;
|
|
1296
1308
|
private prevLastWorldIntersectionSnapResult;
|
|
1297
1309
|
private lastWorldIntersectionSnapResult;
|
|
1298
1310
|
private debugGui;
|
|
1311
|
+
private viewerRenderer;
|
|
1299
1312
|
constructor(params: {
|
|
1300
1313
|
pickingController: PickingController;
|
|
1301
1314
|
models: Models;
|
|
1302
1315
|
camera: THREE.PerspectiveCamera;
|
|
1303
1316
|
globalOffset: THREE.Vector3;
|
|
1317
|
+
viewerRenderer: ViewerRenderer;
|
|
1304
1318
|
});
|
|
1305
1319
|
get enabled(): boolean;
|
|
1306
1320
|
set enabled(value: boolean);
|
|
1307
1321
|
handleMouseClick(): void;
|
|
1308
1322
|
handleMouseMove(event: MouseEvent): void;
|
|
1309
1323
|
private getWorldIntersectionSnapResult;
|
|
1310
|
-
private calculateViewProjectionMatrix;
|
|
1311
|
-
private applyGlobalOffset;
|
|
1312
1324
|
private publishIntersectionSnapResult;
|
|
1313
1325
|
private getMeshTopology;
|
|
1314
1326
|
private meshnodeTooComplex;
|
|
@@ -1319,18 +1331,41 @@ declare class PointToPointManager {
|
|
|
1319
1331
|
private svgRenderer;
|
|
1320
1332
|
private renderControllerProxy;
|
|
1321
1333
|
private static pointToPointEnabled;
|
|
1334
|
+
private firstMeasurePoint;
|
|
1335
|
+
private secondMeasurePoint;
|
|
1336
|
+
private outlines;
|
|
1337
|
+
private intersection;
|
|
1338
|
+
private pivot;
|
|
1339
|
+
private dist;
|
|
1340
|
+
private xDist;
|
|
1341
|
+
private yDist;
|
|
1342
|
+
private zDist;
|
|
1343
|
+
private gui;
|
|
1344
|
+
private globalOffset;
|
|
1322
1345
|
constructor(params: {
|
|
1323
1346
|
renderControllerProxy: RenderControllerProxy;
|
|
1324
1347
|
svgRenderer: SvgRenderer;
|
|
1348
|
+
globalOffset: {
|
|
1349
|
+
offsetX: number;
|
|
1350
|
+
offsetY: number;
|
|
1351
|
+
offsetZ: number;
|
|
1352
|
+
};
|
|
1325
1353
|
});
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1354
|
+
private onSelectTool;
|
|
1355
|
+
private onNavigationChanged;
|
|
1356
|
+
private onMeasurementObjectMove;
|
|
1357
|
+
private onMeasurementObjectLeave;
|
|
1358
|
+
private onMeasurementObjectClick;
|
|
1359
|
+
private resetMeasurement;
|
|
1360
|
+
private calculateDistances;
|
|
1329
1361
|
static isEnabled(): boolean;
|
|
1330
1362
|
togglePointToPoint(params: {
|
|
1331
1363
|
enable: boolean;
|
|
1332
1364
|
}): void;
|
|
1365
|
+
private setCameraAndNavigationControls;
|
|
1366
|
+
private updateSvg;
|
|
1333
1367
|
private createLine;
|
|
1368
|
+
private createEllipse;
|
|
1334
1369
|
}
|
|
1335
1370
|
|
|
1336
1371
|
export declare type ProcoreFormatClipPlane = {
|
|
@@ -1586,9 +1621,9 @@ declare class PWF {
|
|
|
1586
1621
|
root(): Node_2;
|
|
1587
1622
|
forEachMeshnode(callback: any): void;
|
|
1588
1623
|
forEachNode(callback: any): void;
|
|
1589
|
-
|
|
1624
|
+
getMeshObject(meshRef: any): MeshObject;
|
|
1590
1625
|
findFirstObject(meshnodeIndex: any): Node_2;
|
|
1591
|
-
captureModelStats(): number;
|
|
1626
|
+
captureModelStats(): number | undefined;
|
|
1592
1627
|
captureStandardModelStats(pwfModel: any): number;
|
|
1593
1628
|
capturePartitionedModelStats(pwfModel: any): number | undefined;
|
|
1594
1629
|
numFirstObjects(): number;
|
|
@@ -1964,15 +1999,7 @@ declare class RenderController {
|
|
|
1964
1999
|
y: number;
|
|
1965
2000
|
z: number;
|
|
1966
2001
|
};
|
|
1967
|
-
ToScreenPosition(params: any):
|
|
1968
|
-
x: any;
|
|
1969
|
-
y: any;
|
|
1970
|
-
z: any;
|
|
1971
|
-
} | {
|
|
1972
|
-
x: any;
|
|
1973
|
-
y: any;
|
|
1974
|
-
z: any;
|
|
1975
|
-
}[];
|
|
2002
|
+
ToScreenPosition(params: any): Vector3 | Vector3[];
|
|
1976
2003
|
ConvertScreenPosition(vector: any): {
|
|
1977
2004
|
x: any;
|
|
1978
2005
|
y: any;
|
|
@@ -2048,7 +2075,6 @@ declare class RenderController {
|
|
|
2048
2075
|
unit: string;
|
|
2049
2076
|
};
|
|
2050
2077
|
};
|
|
2051
|
-
applyGlobalOffset(vector: any): any;
|
|
2052
2078
|
refreshScene(): void;
|
|
2053
2079
|
setHiddenSet(params: any): void;
|
|
2054
2080
|
refreshLighting(): void;
|
|
@@ -2067,15 +2093,7 @@ declare class RenderController {
|
|
|
2067
2093
|
onUndo(): void;
|
|
2068
2094
|
onRedo(): void;
|
|
2069
2095
|
getOrbitTranslate(event: any): {
|
|
2070
|
-
translate:
|
|
2071
|
-
x: any;
|
|
2072
|
-
y: any;
|
|
2073
|
-
z: any;
|
|
2074
|
-
} | {
|
|
2075
|
-
x: any;
|
|
2076
|
-
y: any;
|
|
2077
|
-
z: any;
|
|
2078
|
-
}[];
|
|
2096
|
+
translate: Vector3 | Vector3[];
|
|
2079
2097
|
orbitPoint: Vector3;
|
|
2080
2098
|
};
|
|
2081
2099
|
setMeasureEnabled(enabled: any): void;
|
|
@@ -2328,26 +2346,10 @@ declare class RenderControllerProxy {
|
|
|
2328
2346
|
setVisibility(...params: any[]): void | Promise<any>;
|
|
2329
2347
|
getVisibility(...params: any[]): Promise<any> | Visibility;
|
|
2330
2348
|
getOrbitTranslate(...params: any[]): Promise<any> | {
|
|
2331
|
-
translate:
|
|
2332
|
-
x: any;
|
|
2333
|
-
y: any;
|
|
2334
|
-
z: any;
|
|
2335
|
-
} | {
|
|
2336
|
-
x: any;
|
|
2337
|
-
y: any;
|
|
2338
|
-
z: any;
|
|
2339
|
-
}[];
|
|
2349
|
+
translate: Vector3 | Vector3[];
|
|
2340
2350
|
orbitPoint: Vector3;
|
|
2341
2351
|
};
|
|
2342
|
-
ToScreenPosition(...params: any[]): Promise<any> |
|
|
2343
|
-
x: any;
|
|
2344
|
-
y: any;
|
|
2345
|
-
z: any;
|
|
2346
|
-
} | {
|
|
2347
|
-
x: any;
|
|
2348
|
-
y: any;
|
|
2349
|
-
z: any;
|
|
2350
|
-
}[];
|
|
2352
|
+
ToScreenPosition(...params: any[]): Promise<any> | Vector3 | Vector3[];
|
|
2351
2353
|
ModelToMapSpace(...params: any[]): Promise<any> | {
|
|
2352
2354
|
x?: undefined;
|
|
2353
2355
|
y?: undefined;
|
|
@@ -2787,15 +2789,6 @@ declare class ShortestDistanceController {
|
|
|
2787
2789
|
getMeasureObjectMeshes(): MeshnodeObject[];
|
|
2788
2790
|
}
|
|
2789
2791
|
|
|
2790
|
-
declare const SNAP_TYPE: {
|
|
2791
|
-
readonly surface: "surface";
|
|
2792
|
-
readonly midpoint: "midpoint";
|
|
2793
|
-
readonly edge: "edge";
|
|
2794
|
-
readonly endpoint: "endpoint";
|
|
2795
|
-
};
|
|
2796
|
-
|
|
2797
|
-
declare type SnapType = (typeof SNAP_TYPE)[keyof typeof SNAP_TYPE];
|
|
2798
|
-
|
|
2799
2792
|
declare function StatusTrackingController(camera: any, renderController: any): void;
|
|
2800
2793
|
|
|
2801
2794
|
declare class StatusTrackingController {
|
|
@@ -2852,7 +2845,7 @@ declare class StreamedMeshnode extends Meshnode {
|
|
|
2852
2845
|
setMeshGeometry(meshIndex: number, meshGeometry: StreamedMeshGeometry): void;
|
|
2853
2846
|
getMeshGeometry(meshIndex: number): StreamedMeshGeometry | undefined;
|
|
2854
2847
|
asObject(): MeshnodeObject;
|
|
2855
|
-
private
|
|
2848
|
+
private getMeshObject;
|
|
2856
2849
|
}
|
|
2857
2850
|
|
|
2858
2851
|
declare class StreamedMeshnodeServices extends MeshnodeServices {
|
|
@@ -2861,7 +2854,7 @@ declare class StreamedMeshnodeServices extends MeshnodeServices {
|
|
|
2861
2854
|
|
|
2862
2855
|
declare class StreamedMeshServices extends MeshServices {
|
|
2863
2856
|
constructor(pwf: PWF);
|
|
2864
|
-
|
|
2857
|
+
getMeshObject(meshOffset: number): MeshObject;
|
|
2865
2858
|
loadPartitionContainingMeshnode(streamedMeshnode: StreamedMeshnode): Promise<void>;
|
|
2866
2859
|
getMeshGeometryForOffsets(meshOffset: number, meshnodeOffset: number): StreamedMeshGeometry | undefined;
|
|
2867
2860
|
}
|
|
@@ -2902,6 +2895,7 @@ declare class SvgRenderer {
|
|
|
2902
2895
|
drawArrow(arrow: Arrow): void;
|
|
2903
2896
|
drawText(text: Text_2): void;
|
|
2904
2897
|
drawRect(rect: Rect): void;
|
|
2898
|
+
private clipLine;
|
|
2905
2899
|
private _clear;
|
|
2906
2900
|
clear(): void;
|
|
2907
2901
|
hasContent(): boolean;
|
|
@@ -2967,6 +2961,45 @@ export declare const TOOL_BAR_TOOLS: {
|
|
|
2967
2961
|
|
|
2968
2962
|
export declare type ToolBarTools = (typeof TOOL_BAR_TOOLS)[keyof typeof TOOL_BAR_TOOLS];
|
|
2969
2963
|
|
|
2964
|
+
export declare const UOM: {
|
|
2965
|
+
readonly cdsqm: "cd/m²";
|
|
2966
|
+
readonly cuum: "um³";
|
|
2967
|
+
readonly cumm: "mm³";
|
|
2968
|
+
readonly cucm: "cm³";
|
|
2969
|
+
readonly cum: "m³";
|
|
2970
|
+
readonly cukm: "km³";
|
|
2971
|
+
readonly cuuin: "uin³";
|
|
2972
|
+
readonly cumil: "mil³";
|
|
2973
|
+
readonly cuin: "in³";
|
|
2974
|
+
readonly cuft: "ft³";
|
|
2975
|
+
readonly cuyd: "yd³";
|
|
2976
|
+
readonly cumi: "mi³";
|
|
2977
|
+
readonly squm: "um²";
|
|
2978
|
+
readonly sqmm: "mm²";
|
|
2979
|
+
readonly sqcm: "cm²";
|
|
2980
|
+
readonly sqm: "m²";
|
|
2981
|
+
readonly sqkm: "km²";
|
|
2982
|
+
readonly squin: "uin²";
|
|
2983
|
+
readonly sqmil: "mil²";
|
|
2984
|
+
readonly sqin: "in²";
|
|
2985
|
+
readonly sqft: "ft²";
|
|
2986
|
+
readonly sqyd: "yd²";
|
|
2987
|
+
readonly sqmi: "mi²";
|
|
2988
|
+
readonly um: "um";
|
|
2989
|
+
readonly mm: "mm";
|
|
2990
|
+
readonly cm: "cm";
|
|
2991
|
+
readonly m: "m";
|
|
2992
|
+
readonly km: "km";
|
|
2993
|
+
readonly uin: "uin";
|
|
2994
|
+
readonly mil: "mil";
|
|
2995
|
+
readonly in: "in";
|
|
2996
|
+
readonly ft: "ft";
|
|
2997
|
+
readonly yd: "yd";
|
|
2998
|
+
readonly mi: "mi";
|
|
2999
|
+
};
|
|
3000
|
+
|
|
3001
|
+
export declare type Uom = (typeof UOM)[keyof typeof UOM];
|
|
3002
|
+
|
|
2970
3003
|
declare namespace V1 {
|
|
2971
3004
|
export {
|
|
2972
3005
|
MeshnodeServices_2 as MeshnodeServices,
|
|
@@ -3313,11 +3346,22 @@ export declare class Webviewer {
|
|
|
3313
3346
|
removeContextMenuItems: ({ contextMenuItemIds, }: {
|
|
3314
3347
|
contextMenuItemIds: string[];
|
|
3315
3348
|
}) => void;
|
|
3349
|
+
showCoachmark: (params: {
|
|
3350
|
+
id: string;
|
|
3351
|
+
label: string;
|
|
3352
|
+
buttonLabel: string;
|
|
3353
|
+
buttonOnClick: () => void;
|
|
3354
|
+
tooltipMessage?: string;
|
|
3355
|
+
}) => void;
|
|
3356
|
+
hideCoachmark: (coachmarkId: string) => void;
|
|
3316
3357
|
getSettings: () => {
|
|
3317
3358
|
displayUnits: string;
|
|
3318
3359
|
};
|
|
3319
3360
|
setToolbarHidden: (hidden: boolean) => void;
|
|
3320
3361
|
setHotkeysEnabled: (enabled: boolean) => void;
|
|
3362
|
+
getEquivalentUnitForDisplayUnit: (unit: Uom, displayUnit: DisplayUnit) => Uom;
|
|
3363
|
+
convertUnit: (value: number, from: Uom, to: Uom) => number;
|
|
3364
|
+
formatUnit: (value: number, unit: Uom) => string;
|
|
3321
3365
|
};
|
|
3322
3366
|
constructor(options: Options);
|
|
3323
3367
|
/**
|
|
@@ -3338,21 +3382,4 @@ declare type WheelControl = {
|
|
|
3338
3382
|
dispose: () => void;
|
|
3339
3383
|
};
|
|
3340
3384
|
|
|
3341
|
-
declare type WorldIntersectionSnapResult = {
|
|
3342
|
-
intersection: Vector3;
|
|
3343
|
-
viewProjectionMatrix: number[];
|
|
3344
|
-
snapType: SnapType;
|
|
3345
|
-
snapPosition: Vector3;
|
|
3346
|
-
snapEdge: {
|
|
3347
|
-
start: Vector3;
|
|
3348
|
-
end: Vector3;
|
|
3349
|
-
} | null;
|
|
3350
|
-
faceNormal: Vector3;
|
|
3351
|
-
boundaryEdges: {
|
|
3352
|
-
start: Vector3;
|
|
3353
|
-
end: Vector3;
|
|
3354
|
-
}[];
|
|
3355
|
-
meshnodeIndex: number;
|
|
3356
|
-
};
|
|
3357
|
-
|
|
3358
3385
|
export { }
|