@pilotdev/pilot-web-3d 24.16.0 → 24.17.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 +40 -25
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -670,6 +670,36 @@ export class HoverEvent extends Event {
|
|
|
670
670
|
export class GlobalEvents {
|
|
671
671
|
static events: EventsDispatcherCore;
|
|
672
672
|
}
|
|
673
|
+
export class RenderViewSettings {
|
|
674
|
+
telemetry?: boolean;
|
|
675
|
+
hideEdgesWhenNavigation?: boolean;
|
|
676
|
+
antiAliasing?: boolean;
|
|
677
|
+
displayMode?: DisplayMode;
|
|
678
|
+
cameraMode?: CameraMode;
|
|
679
|
+
/** Desired render framerate */
|
|
680
|
+
desiredFramerate?: number;
|
|
681
|
+
/** Allocated time for rendering operations, excluding scene rendering */
|
|
682
|
+
manageTime?: number;
|
|
683
|
+
/** Number of scene updates managed at once */
|
|
684
|
+
chunkUpdateSize?: number;
|
|
685
|
+
/** Draw hovered meshes on the `selectionScene` */
|
|
686
|
+
hoverMeshes?: boolean;
|
|
687
|
+
/** Draw hovered edges on the `selectionScene` */
|
|
688
|
+
hoverEdges?: boolean;
|
|
689
|
+
/** Draw selected meshes on the `selectionScene` */
|
|
690
|
+
selectEdges?: boolean;
|
|
691
|
+
/** Draw selected edges on the `selectionScene` */
|
|
692
|
+
selectMeshes?: boolean;
|
|
693
|
+
}
|
|
694
|
+
export enum DisplayMode {
|
|
695
|
+
FACES_AND_EDGES = 0,
|
|
696
|
+
FACES = 1
|
|
697
|
+
}
|
|
698
|
+
export enum CameraMode {
|
|
699
|
+
ORTHOGRAPHIC = 0,
|
|
700
|
+
PERSPECTIVE = 1
|
|
701
|
+
}
|
|
702
|
+
export const defaultRenderViewSettings: RenderViewSettings;
|
|
673
703
|
export type Point3 = {
|
|
674
704
|
x: number;
|
|
675
705
|
y: number;
|
|
@@ -779,6 +809,15 @@ export interface ICameraControl {
|
|
|
779
809
|
* @param duration - (optional) navigation duration, used if {@link isEnable} is true. If defined: turns off navigation {@link mode} after {@link duration} delay.
|
|
780
810
|
*/
|
|
781
811
|
setNavigationMode(mode: CameraNavigationMode, isEnable: boolean, duration?: number): void;
|
|
812
|
+
/**
|
|
813
|
+
* Gets the camera projection mode
|
|
814
|
+
*/
|
|
815
|
+
getCameraMode(): CameraMode;
|
|
816
|
+
/**
|
|
817
|
+
* Sets the camera projection mode
|
|
818
|
+
* @param mode - projection mode: orthographic or perspective
|
|
819
|
+
*/
|
|
820
|
+
setCameraMode(mode: CameraMode): boolean;
|
|
782
821
|
}
|
|
783
822
|
export class EventTypes extends CoreEventTypes {
|
|
784
823
|
static MODEL_PART_LOADED: string;
|
|
@@ -871,31 +910,6 @@ export interface ModelElementTree {
|
|
|
871
910
|
*/
|
|
872
911
|
getChildLevelNumber(element: string | ModelElement): number;
|
|
873
912
|
}
|
|
874
|
-
export class RenderViewSettings {
|
|
875
|
-
telemetry?: boolean;
|
|
876
|
-
hideEdgesWhenNavigation?: boolean;
|
|
877
|
-
antiAliasing?: boolean;
|
|
878
|
-
displayMode?: DisplayMode;
|
|
879
|
-
/** Desired render framerate */
|
|
880
|
-
desiredFramerate?: number;
|
|
881
|
-
/** Allocated time for rendering operations, excluding scene rendering */
|
|
882
|
-
manageTime?: number;
|
|
883
|
-
/** Number of scene updates managed at once */
|
|
884
|
-
chunkUpdateSize?: number;
|
|
885
|
-
/** Draw hovered meshes on the `selectionScene` */
|
|
886
|
-
hoverMeshes?: boolean;
|
|
887
|
-
/** Draw hovered edges on the `selectionScene` */
|
|
888
|
-
hoverEdges?: boolean;
|
|
889
|
-
/** Draw selected meshes on the `selectionScene` */
|
|
890
|
-
selectEdges?: boolean;
|
|
891
|
-
/** Draw selected edges on the `selectionScene` */
|
|
892
|
-
selectMeshes?: boolean;
|
|
893
|
-
}
|
|
894
|
-
export enum DisplayMode {
|
|
895
|
-
FACES_AND_EDGES = 0,
|
|
896
|
-
FACES = 1
|
|
897
|
-
}
|
|
898
|
-
export const defaultRenderViewSettings: RenderViewSettings;
|
|
899
913
|
export class TPair<TKey, TValue> {
|
|
900
914
|
|
|
901
915
|
constructor(key: TKey, value: TValue);
|
|
@@ -2985,6 +2999,7 @@ export class SettingsNames {
|
|
|
2985
2999
|
static LABEL_LINE_LENGTH: string;
|
|
2986
3000
|
static HIDE_EDGES_WHEN_NAVIGATING: string;
|
|
2987
3001
|
static DISPLAY_MODE: string;
|
|
3002
|
+
static CAMERA_MODE: string;
|
|
2988
3003
|
static NAVIGATION_CUBE: string;
|
|
2989
3004
|
static DESIRED_FRAMERATE: string;
|
|
2990
3005
|
static MANAGE_TIME: string;
|