@pilotdev/pilot-web-3d 24.2.0 → 24.4.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/index.d.ts +12 -20
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -218,6 +218,7 @@ export namespace Viewer3DIcons {
|
|
|
218
218
|
const VIEWER_ADD_REMARK_ICON: string;
|
|
219
219
|
const VIEWER_MEASUREMENT_EDGE_ICON: string;
|
|
220
220
|
const VIEWER_MEASUREMENT_PLANE_ICON: string;
|
|
221
|
+
const VIEWER_MEASUREMENT_PERPENDICULAR_ICON: string;
|
|
221
222
|
const VIEWER_MEASUREMENT_DIMENSION_ICON: string;
|
|
222
223
|
}
|
|
223
224
|
export namespace ViewerGeneralIcons {
|
|
@@ -455,7 +456,7 @@ export abstract class ViewerBase {
|
|
|
455
456
|
/**
|
|
456
457
|
*
|
|
457
458
|
*/
|
|
458
|
-
finish(): void
|
|
459
|
+
finish(): Promise<void>;
|
|
459
460
|
onPostExtensionLoad(extension: ExtensionBase): void;
|
|
460
461
|
onExtensionUnloading(extension: ExtensionBase): void;
|
|
461
462
|
onPostExtensionUnload(extension: ExtensionBase): void;
|
|
@@ -757,7 +758,7 @@ export interface ICameraControl {
|
|
|
757
758
|
* @param iOrientation - camera orientation after zooming (optional)
|
|
758
759
|
* @param isAnimationEnabled - is animated zoom enabled
|
|
759
760
|
*/
|
|
760
|
-
zoomToFit(
|
|
761
|
+
zoomToFit(boundingBox: THREE.Box3, iOrientation?: CameraOrientation, iAnimationEnabled?: boolean): void;
|
|
761
762
|
/**
|
|
762
763
|
* Gets the navigation mode.
|
|
763
764
|
*/
|
|
@@ -1052,6 +1053,7 @@ export interface I3DRenderer {
|
|
|
1052
1053
|
render(scene: THREE.Object3D, camera: THREE.Camera): void;
|
|
1053
1054
|
getSize(target: THREE.Vector2): THREE.Vector2;
|
|
1054
1055
|
setSize(width: number, height: number, updateStyle?: boolean): void;
|
|
1056
|
+
setPixelRatio(value: number): void;
|
|
1055
1057
|
setViewport(x: THREE.Vector4 | number, y?: number, width?: number, height?: number): void;
|
|
1056
1058
|
getViewport(target: THREE.Vector4): THREE.Vector4;
|
|
1057
1059
|
dispose(): void;
|
|
@@ -1066,13 +1068,15 @@ export interface IRenderViewer3D {
|
|
|
1066
1068
|
* An object can only be placed on one scene.
|
|
1067
1069
|
* @param iObj - object to place.
|
|
1068
1070
|
* @param sceneID - (optional) scene name. `MainScene` by default.
|
|
1071
|
+
* @param redraw - (optional) force a redraw of the scene after adding an object. False by default.
|
|
1069
1072
|
*/
|
|
1070
|
-
placeObjectOnScene(iObj: THREE.Object3D, sceneID?: string): Promise<void>;
|
|
1073
|
+
placeObjectOnScene(iObj: THREE.Object3D, sceneID?: string, redraw?: boolean): Promise<void>;
|
|
1071
1074
|
/**
|
|
1072
1075
|
* Remove object from scene.
|
|
1073
|
-
* @param iObj
|
|
1076
|
+
* @param iObj - object to remove.
|
|
1077
|
+
* @param redraw - (optional) force a redraw of the scene after removing an object. False by default.
|
|
1074
1078
|
*/
|
|
1075
|
-
removeObjectFromScene(iObj: THREE.Object3D): Promise<void>;
|
|
1079
|
+
removeObjectFromScene(iObj: THREE.Object3D, redraw?: boolean): Promise<void>;
|
|
1076
1080
|
/**
|
|
1077
1081
|
* Set clipping planes for rendering.
|
|
1078
1082
|
* @param planes - array of clipping planes.
|
|
@@ -3184,30 +3188,18 @@ export interface INavigation {
|
|
|
3184
3188
|
* Gets navigation area rectangle
|
|
3185
3189
|
*/
|
|
3186
3190
|
getNavigationArea(): DOMRect;
|
|
3187
|
-
/**
|
|
3188
|
-
* Sets the camera parameters.
|
|
3189
|
-
*/
|
|
3190
|
-
setCameraParameters(params: CameraParameters): void;
|
|
3191
|
-
/**
|
|
3192
|
-
* Gets the camera parameters.
|
|
3193
|
-
*/
|
|
3194
|
-
getCameraParameters(): CameraParameters;
|
|
3195
3191
|
/**
|
|
3196
3192
|
* Gets the camera control.
|
|
3197
3193
|
*/
|
|
3198
3194
|
getCameraControl(): ICameraControl;
|
|
3199
3195
|
/**
|
|
3200
|
-
*
|
|
3201
|
-
*/
|
|
3202
|
-
getCamera(): THREE.Camera;
|
|
3203
|
-
/**
|
|
3204
|
-
* Fits camera to objects by IDs.
|
|
3196
|
+
* Fits camera to objects by IDs. It fits the entire model if no ID is provided.
|
|
3205
3197
|
* @param {string[] | string} elementIds - element or array of elements
|
|
3206
3198
|
* @param {string | ModelPart} modelPart - the model part id or the model part instance containing the elements.
|
|
3207
3199
|
* @param {boolean} immediate - true to avoid the default transition.
|
|
3208
3200
|
* @returns
|
|
3209
3201
|
*/
|
|
3210
|
-
fitToView(elementIds
|
|
3202
|
+
fitToView(elementIds?: string[] | string, modelPart?: string | ModelPart, immediate?: boolean): void;
|
|
3211
3203
|
/**
|
|
3212
3204
|
* Sets the camera pivot point.
|
|
3213
3205
|
*/
|
|
@@ -3241,7 +3233,7 @@ export class Viewer3D extends ViewerBase {
|
|
|
3241
3233
|
get navigation(): INavigation;
|
|
3242
3234
|
getConfiguration(): Viewer3DConfiguration;
|
|
3243
3235
|
start(): Promise<number>;
|
|
3244
|
-
finish(): void
|
|
3236
|
+
finish(): Promise<void>;
|
|
3245
3237
|
/**
|
|
3246
3238
|
* Loads new model part to the viewer
|
|
3247
3239
|
* @param buffer
|