@procore/bim-webviewer-sdk 16.1.0 → 16.2.0-BIM-4755.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 +47 -0
- package/dist/Procore.Bim.Webviewer.d.ts +133 -105
- 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 +21 -1
- package/dist/types/src/components/CoachmarkManagerComponent/Coachmarks.d.ts +1 -8
- 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/RootComponent.d.ts +2 -0
- package/dist/types/src/components/ShortestDistanceComponent.d.ts +1 -0
- package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +6 -8
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +28 -0
- package/dist/types/src/components/Tooltip/TooltipManager.d.ts +16 -0
- package/dist/types/src/components/Tooltip/__tests__/Tooltip.test.d.ts +2 -0
- package/dist/types/src/components/Tooltip/index.d.ts +2 -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/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 +13 -11
- 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__/TooltipManager.test.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,53 @@ 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
|
+
- [Internal] `MeasureToolUtils` now has a function that returns the extremities of a boundary passing through a halfedge.
|
|
14
|
+
- [Internal] Ensures that we have the proper `midpoints` on boundaries made up of several collinear halfedges.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- ([#1343](https://github.com/procore/bim-webviewer/pull/1343)) [Internal] Fix details in motion interpolation for standard and prefetched partitions. Make it return the minimum amount for non-prefetched partitions (not in use in production).
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- ([#1344](https://github.com/procore/bim-webviewer/pull/1344)) Update toolbar button tooltips to share styles with tooltips on custom coachmarks
|
|
23
|
+
|
|
24
|
+
## [16.2.0] 2024-09-27
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Add `gui.showCoachmark` and `gui.hideCoachmark` to allow for showing and hiding custom coachmarks.
|
|
29
|
+
- Add new methods for converting and formatting values with units
|
|
30
|
+
- Add `gui.getEquivalentUnitForDisplayUnit(unit: Uom, displayUnit: displayUnit): Uom`
|
|
31
|
+
- gets the equivalent unit (either the length, area, or volume version) based on the display unit
|
|
32
|
+
- example: `getEquivalentUnitForDisplayUnit('ft²', 'mm')` returns `'mm²'`
|
|
33
|
+
- example: `getEquivalentUnitForDisplayUnit('ft²', 'ftin')` returns `'ft²'`
|
|
34
|
+
- Add `gui.convertUnit(value: number, from: Uom, to: Uom): number`
|
|
35
|
+
- converts a value from one unit to another
|
|
36
|
+
- example: `convertUnit(1, 'ft', 'm')` returns `0.3048`
|
|
37
|
+
- Add `gui.formatUnit(value: number, unit: Uom): string`
|
|
38
|
+
- formats a value with the correct unit and locale
|
|
39
|
+
- example: `formatUnit(1000.12345, 'ft')` when Webviewer is initialized with `options.locale` as `de-DE` returns `'1.000,1235 ft'`
|
|
40
|
+
- example: `formatUnit(1000.12345, 'ft')` when Webviewer is not initialized with a locale (defaults to `'en'`) returns `'1,000.1235 ft'`
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- Improved formatting of properties data that has a unit of measure in the Properties window.
|
|
45
|
+
- 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`
|
|
46
|
+
- Properties data will now include thousands and decimals separators that are based on the locale provided to `Webviewer` on instantiation
|
|
47
|
+
- 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'`
|
|
48
|
+
|
|
49
|
+
### Fixed
|
|
50
|
+
|
|
51
|
+
- Fixes issues w/ Bootstrapper
|
|
52
|
+
- The"steps counts" was off by one, impacting the proper behavior of the Loading screen
|
|
53
|
+
- Fixes potential issue w/ the order of NodeServices and MeshnodeServices in Bootstrapper
|
|
54
|
+
- Fix svg render display not correct issue when the anchor point is behind camera.
|
|
55
|
+
- Fix the issue when window is resized, the svg render not update with correct aspect ratio.
|
|
56
|
+
|
|
10
57
|
## [16.1.0] 2024-09-13
|
|
11
58
|
|
|
12
59
|
### 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 = {
|
|
@@ -699,17 +712,17 @@ declare class Models {
|
|
|
699
712
|
private pwfs;
|
|
700
713
|
private currentParsingPwfIndex;
|
|
701
714
|
private streaming;
|
|
702
|
-
private
|
|
715
|
+
private prefetchingPartitions;
|
|
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;
|
|
@@ -719,6 +732,7 @@ declare class Models {
|
|
|
719
732
|
selectionOption: SelectMethod;
|
|
720
733
|
startTimestamp: number;
|
|
721
734
|
startTime: number;
|
|
735
|
+
prefetchingPartitions?: boolean;
|
|
722
736
|
});
|
|
723
737
|
private sceneGraphFactory;
|
|
724
738
|
getResourceId: (resource: ResourceDiscriminator) => number;
|
|
@@ -750,10 +764,10 @@ declare class Models {
|
|
|
750
764
|
resourceId: number;
|
|
751
765
|
meshnodeIndex: number;
|
|
752
766
|
}): number;
|
|
753
|
-
|
|
767
|
+
getMeshObject(params: {
|
|
754
768
|
resourceId: number;
|
|
755
769
|
meshRef: number;
|
|
756
|
-
}):
|
|
770
|
+
}): MeshObject;
|
|
757
771
|
globalOffset(resourceId: number): {
|
|
758
772
|
offsetX: number;
|
|
759
773
|
offsetY: number;
|
|
@@ -946,7 +960,7 @@ declare class NavigationModel {
|
|
|
946
960
|
declare class Node_2 {
|
|
947
961
|
private pwfNode;
|
|
948
962
|
private pwf;
|
|
949
|
-
private box3Value;
|
|
963
|
+
private readonly box3Value;
|
|
950
964
|
isFirstObjectValue: boolean;
|
|
951
965
|
private _parent?;
|
|
952
966
|
constructor(pwfNode: PWFNode, pwf: PWF);
|
|
@@ -970,10 +984,17 @@ declare class Node_2 {
|
|
|
970
984
|
isFirstObject(): boolean;
|
|
971
985
|
hasMeshnodeChildren(): boolean;
|
|
972
986
|
numMeshnodeChildren(): number;
|
|
973
|
-
asObject():
|
|
987
|
+
asObject(): NodeObject;
|
|
974
988
|
}
|
|
975
989
|
|
|
976
|
-
declare type
|
|
990
|
+
export declare type NodeBoundingBox = {
|
|
991
|
+
min: number[];
|
|
992
|
+
max: number[];
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
declare type NodeId = ReturnType<Node_2['nodeId']>;
|
|
996
|
+
|
|
997
|
+
declare type NodeObject = {
|
|
977
998
|
offset: number;
|
|
978
999
|
nodeId: number;
|
|
979
1000
|
parentOff: number;
|
|
@@ -983,18 +1004,10 @@ declare type NodeAsObject = {
|
|
|
983
1004
|
hasChildren: boolean;
|
|
984
1005
|
hasMeshnodeChildren: boolean;
|
|
985
1006
|
bbox: NodeBoundingBox;
|
|
986
|
-
type: string;
|
|
987
1007
|
parentId: number | undefined;
|
|
988
1008
|
children: number[];
|
|
989
1009
|
};
|
|
990
1010
|
|
|
991
|
-
export declare type NodeBoundingBox = {
|
|
992
|
-
min: number[];
|
|
993
|
-
max: number[];
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
declare type NodeId = ReturnType<Node_2['nodeId']>;
|
|
997
|
-
|
|
998
1011
|
declare class NodeServices {
|
|
999
1012
|
private nodes;
|
|
1000
1013
|
private nodeIdToOffsetMap;
|
|
@@ -1288,27 +1301,27 @@ declare type Point = {
|
|
|
1288
1301
|
declare class PointToPointController {
|
|
1289
1302
|
private pickingController;
|
|
1290
1303
|
private models;
|
|
1291
|
-
private camera;
|
|
1304
|
+
private readonly camera;
|
|
1292
1305
|
private currentHoverMeshnodeIndex;
|
|
1293
1306
|
private meshTopologyCache;
|
|
1294
1307
|
private _enabled;
|
|
1295
|
-
private globalOffset;
|
|
1308
|
+
private readonly globalOffset;
|
|
1296
1309
|
private prevLastWorldIntersectionSnapResult;
|
|
1297
1310
|
private lastWorldIntersectionSnapResult;
|
|
1298
1311
|
private debugGui;
|
|
1312
|
+
private viewerRenderer;
|
|
1299
1313
|
constructor(params: {
|
|
1300
1314
|
pickingController: PickingController;
|
|
1301
1315
|
models: Models;
|
|
1302
1316
|
camera: THREE.PerspectiveCamera;
|
|
1303
1317
|
globalOffset: THREE.Vector3;
|
|
1318
|
+
viewerRenderer: ViewerRenderer;
|
|
1304
1319
|
});
|
|
1305
1320
|
get enabled(): boolean;
|
|
1306
1321
|
set enabled(value: boolean);
|
|
1307
1322
|
handleMouseClick(): void;
|
|
1308
1323
|
handleMouseMove(event: MouseEvent): void;
|
|
1309
1324
|
private getWorldIntersectionSnapResult;
|
|
1310
|
-
private calculateViewProjectionMatrix;
|
|
1311
|
-
private applyGlobalOffset;
|
|
1312
1325
|
private publishIntersectionSnapResult;
|
|
1313
1326
|
private getMeshTopology;
|
|
1314
1327
|
private meshnodeTooComplex;
|
|
@@ -1319,18 +1332,41 @@ declare class PointToPointManager {
|
|
|
1319
1332
|
private svgRenderer;
|
|
1320
1333
|
private renderControllerProxy;
|
|
1321
1334
|
private static pointToPointEnabled;
|
|
1335
|
+
private firstMeasurePoint;
|
|
1336
|
+
private secondMeasurePoint;
|
|
1337
|
+
private outlines;
|
|
1338
|
+
private intersection;
|
|
1339
|
+
private pivot;
|
|
1340
|
+
private dist;
|
|
1341
|
+
private xDist;
|
|
1342
|
+
private yDist;
|
|
1343
|
+
private zDist;
|
|
1344
|
+
private gui;
|
|
1345
|
+
private globalOffset;
|
|
1322
1346
|
constructor(params: {
|
|
1323
1347
|
renderControllerProxy: RenderControllerProxy;
|
|
1324
1348
|
svgRenderer: SvgRenderer;
|
|
1349
|
+
globalOffset: {
|
|
1350
|
+
offsetX: number;
|
|
1351
|
+
offsetY: number;
|
|
1352
|
+
offsetZ: number;
|
|
1353
|
+
};
|
|
1325
1354
|
});
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1355
|
+
private onSelectTool;
|
|
1356
|
+
private onNavigationChanged;
|
|
1357
|
+
private onMeasurementObjectMove;
|
|
1358
|
+
private onMeasurementObjectLeave;
|
|
1359
|
+
private onMeasurementObjectClick;
|
|
1360
|
+
private resetMeasurement;
|
|
1361
|
+
private calculateDistances;
|
|
1329
1362
|
static isEnabled(): boolean;
|
|
1330
1363
|
togglePointToPoint(params: {
|
|
1331
1364
|
enable: boolean;
|
|
1332
1365
|
}): void;
|
|
1366
|
+
private setCameraAndNavigationControls;
|
|
1367
|
+
private updateSvg;
|
|
1333
1368
|
private createLine;
|
|
1369
|
+
private createEllipse;
|
|
1334
1370
|
}
|
|
1335
1371
|
|
|
1336
1372
|
export declare type ProcoreFormatClipPlane = {
|
|
@@ -1586,11 +1622,11 @@ declare class PWF {
|
|
|
1586
1622
|
root(): Node_2;
|
|
1587
1623
|
forEachMeshnode(callback: any): void;
|
|
1588
1624
|
forEachNode(callback: any): void;
|
|
1589
|
-
|
|
1625
|
+
getMeshObject(meshRef: any): MeshObject;
|
|
1590
1626
|
findFirstObject(meshnodeIndex: any): Node_2;
|
|
1591
1627
|
captureModelStats(): number;
|
|
1592
1628
|
captureStandardModelStats(pwfModel: any): number;
|
|
1593
|
-
capturePartitionedModelStats(pwfModel: any): number
|
|
1629
|
+
capturePartitionedModelStats(pwfModel: any): number;
|
|
1594
1630
|
numFirstObjects(): number;
|
|
1595
1631
|
#private;
|
|
1596
1632
|
}
|
|
@@ -1964,15 +2000,7 @@ declare class RenderController {
|
|
|
1964
2000
|
y: number;
|
|
1965
2001
|
z: number;
|
|
1966
2002
|
};
|
|
1967
|
-
ToScreenPosition(params: any):
|
|
1968
|
-
x: any;
|
|
1969
|
-
y: any;
|
|
1970
|
-
z: any;
|
|
1971
|
-
} | {
|
|
1972
|
-
x: any;
|
|
1973
|
-
y: any;
|
|
1974
|
-
z: any;
|
|
1975
|
-
}[];
|
|
2003
|
+
ToScreenPosition(params: any): Vector3 | Vector3[];
|
|
1976
2004
|
ConvertScreenPosition(vector: any): {
|
|
1977
2005
|
x: any;
|
|
1978
2006
|
y: any;
|
|
@@ -2048,7 +2076,6 @@ declare class RenderController {
|
|
|
2048
2076
|
unit: string;
|
|
2049
2077
|
};
|
|
2050
2078
|
};
|
|
2051
|
-
applyGlobalOffset(vector: any): any;
|
|
2052
2079
|
refreshScene(): void;
|
|
2053
2080
|
setHiddenSet(params: any): void;
|
|
2054
2081
|
refreshLighting(): void;
|
|
@@ -2067,15 +2094,7 @@ declare class RenderController {
|
|
|
2067
2094
|
onUndo(): void;
|
|
2068
2095
|
onRedo(): void;
|
|
2069
2096
|
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
|
-
}[];
|
|
2097
|
+
translate: Vector3 | Vector3[];
|
|
2079
2098
|
orbitPoint: Vector3;
|
|
2080
2099
|
};
|
|
2081
2100
|
setMeasureEnabled(enabled: any): void;
|
|
@@ -2328,26 +2347,10 @@ declare class RenderControllerProxy {
|
|
|
2328
2347
|
setVisibility(...params: any[]): void | Promise<any>;
|
|
2329
2348
|
getVisibility(...params: any[]): Promise<any> | Visibility;
|
|
2330
2349
|
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
|
-
}[];
|
|
2350
|
+
translate: Vector3 | Vector3[];
|
|
2340
2351
|
orbitPoint: Vector3;
|
|
2341
2352
|
};
|
|
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
|
-
}[];
|
|
2353
|
+
ToScreenPosition(...params: any[]): Promise<any> | Vector3 | Vector3[];
|
|
2351
2354
|
ModelToMapSpace(...params: any[]): Promise<any> | {
|
|
2352
2355
|
x?: undefined;
|
|
2353
2356
|
y?: undefined;
|
|
@@ -2787,15 +2790,6 @@ declare class ShortestDistanceController {
|
|
|
2787
2790
|
getMeasureObjectMeshes(): MeshnodeObject[];
|
|
2788
2791
|
}
|
|
2789
2792
|
|
|
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
2793
|
declare function StatusTrackingController(camera: any, renderController: any): void;
|
|
2800
2794
|
|
|
2801
2795
|
declare class StatusTrackingController {
|
|
@@ -2852,7 +2846,7 @@ declare class StreamedMeshnode extends Meshnode {
|
|
|
2852
2846
|
setMeshGeometry(meshIndex: number, meshGeometry: StreamedMeshGeometry): void;
|
|
2853
2847
|
getMeshGeometry(meshIndex: number): StreamedMeshGeometry | undefined;
|
|
2854
2848
|
asObject(): MeshnodeObject;
|
|
2855
|
-
private
|
|
2849
|
+
private getMeshObject;
|
|
2856
2850
|
}
|
|
2857
2851
|
|
|
2858
2852
|
declare class StreamedMeshnodeServices extends MeshnodeServices {
|
|
@@ -2861,7 +2855,7 @@ declare class StreamedMeshnodeServices extends MeshnodeServices {
|
|
|
2861
2855
|
|
|
2862
2856
|
declare class StreamedMeshServices extends MeshServices {
|
|
2863
2857
|
constructor(pwf: PWF);
|
|
2864
|
-
|
|
2858
|
+
getMeshObject(meshOffset: number): MeshObject;
|
|
2865
2859
|
loadPartitionContainingMeshnode(streamedMeshnode: StreamedMeshnode): Promise<void>;
|
|
2866
2860
|
getMeshGeometryForOffsets(meshOffset: number, meshnodeOffset: number): StreamedMeshGeometry | undefined;
|
|
2867
2861
|
}
|
|
@@ -2902,6 +2896,7 @@ declare class SvgRenderer {
|
|
|
2902
2896
|
drawArrow(arrow: Arrow): void;
|
|
2903
2897
|
drawText(text: Text_2): void;
|
|
2904
2898
|
drawRect(rect: Rect): void;
|
|
2899
|
+
private clipLine;
|
|
2905
2900
|
private _clear;
|
|
2906
2901
|
clear(): void;
|
|
2907
2902
|
hasContent(): boolean;
|
|
@@ -2967,6 +2962,45 @@ export declare const TOOL_BAR_TOOLS: {
|
|
|
2967
2962
|
|
|
2968
2963
|
export declare type ToolBarTools = (typeof TOOL_BAR_TOOLS)[keyof typeof TOOL_BAR_TOOLS];
|
|
2969
2964
|
|
|
2965
|
+
export declare const UOM: {
|
|
2966
|
+
readonly cdsqm: "cd/m²";
|
|
2967
|
+
readonly cuum: "um³";
|
|
2968
|
+
readonly cumm: "mm³";
|
|
2969
|
+
readonly cucm: "cm³";
|
|
2970
|
+
readonly cum: "m³";
|
|
2971
|
+
readonly cukm: "km³";
|
|
2972
|
+
readonly cuuin: "uin³";
|
|
2973
|
+
readonly cumil: "mil³";
|
|
2974
|
+
readonly cuin: "in³";
|
|
2975
|
+
readonly cuft: "ft³";
|
|
2976
|
+
readonly cuyd: "yd³";
|
|
2977
|
+
readonly cumi: "mi³";
|
|
2978
|
+
readonly squm: "um²";
|
|
2979
|
+
readonly sqmm: "mm²";
|
|
2980
|
+
readonly sqcm: "cm²";
|
|
2981
|
+
readonly sqm: "m²";
|
|
2982
|
+
readonly sqkm: "km²";
|
|
2983
|
+
readonly squin: "uin²";
|
|
2984
|
+
readonly sqmil: "mil²";
|
|
2985
|
+
readonly sqin: "in²";
|
|
2986
|
+
readonly sqft: "ft²";
|
|
2987
|
+
readonly sqyd: "yd²";
|
|
2988
|
+
readonly sqmi: "mi²";
|
|
2989
|
+
readonly um: "um";
|
|
2990
|
+
readonly mm: "mm";
|
|
2991
|
+
readonly cm: "cm";
|
|
2992
|
+
readonly m: "m";
|
|
2993
|
+
readonly km: "km";
|
|
2994
|
+
readonly uin: "uin";
|
|
2995
|
+
readonly mil: "mil";
|
|
2996
|
+
readonly in: "in";
|
|
2997
|
+
readonly ft: "ft";
|
|
2998
|
+
readonly yd: "yd";
|
|
2999
|
+
readonly mi: "mi";
|
|
3000
|
+
};
|
|
3001
|
+
|
|
3002
|
+
export declare type Uom = (typeof UOM)[keyof typeof UOM];
|
|
3003
|
+
|
|
2970
3004
|
declare namespace V1 {
|
|
2971
3005
|
export {
|
|
2972
3006
|
MeshnodeServices_2 as MeshnodeServices,
|
|
@@ -3313,11 +3347,22 @@ export declare class Webviewer {
|
|
|
3313
3347
|
removeContextMenuItems: ({ contextMenuItemIds, }: {
|
|
3314
3348
|
contextMenuItemIds: string[];
|
|
3315
3349
|
}) => void;
|
|
3350
|
+
showCoachmark: (params: {
|
|
3351
|
+
id: string;
|
|
3352
|
+
label: string;
|
|
3353
|
+
buttonLabel: string;
|
|
3354
|
+
buttonOnClick: () => void;
|
|
3355
|
+
tooltipMessage?: string;
|
|
3356
|
+
}) => void;
|
|
3357
|
+
hideCoachmark: (coachmarkId: string) => void;
|
|
3316
3358
|
getSettings: () => {
|
|
3317
3359
|
displayUnits: string;
|
|
3318
3360
|
};
|
|
3319
3361
|
setToolbarHidden: (hidden: boolean) => void;
|
|
3320
3362
|
setHotkeysEnabled: (enabled: boolean) => void;
|
|
3363
|
+
getEquivalentUnitForDisplayUnit: (unit: Uom, displayUnit: DisplayUnit) => Uom;
|
|
3364
|
+
convertUnit: (value: number, from: Uom, to: Uom) => number;
|
|
3365
|
+
formatUnit: (value: number, unit: Uom) => string;
|
|
3321
3366
|
};
|
|
3322
3367
|
constructor(options: Options);
|
|
3323
3368
|
/**
|
|
@@ -3338,21 +3383,4 @@ declare type WheelControl = {
|
|
|
3338
3383
|
dispose: () => void;
|
|
3339
3384
|
};
|
|
3340
3385
|
|
|
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
3386
|
export { }
|