@pilotdev/pilot-web-3d 24.22.0 → 24.24.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 +298 -257
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export class Color {
|
|
|
44
44
|
fromArray(array: ArrayLike<number>, offset?: number): Color;
|
|
45
45
|
toArray(array: Array<number>, offset?: number): Array<number>;
|
|
46
46
|
clone(): Color;
|
|
47
|
+
equal(color: Color): boolean;
|
|
47
48
|
}
|
|
48
49
|
export interface ViewObjectEventMap extends THREE.Object3DEventMap {
|
|
49
50
|
dispose: object;
|
|
@@ -267,6 +268,8 @@ export class SettingChangedEvent extends Event {
|
|
|
267
268
|
providedData: any;
|
|
268
269
|
}
|
|
269
270
|
export class LoadingSpinner {
|
|
271
|
+
set loadingTextKey(value: string);
|
|
272
|
+
get loadingTextKey(): string;
|
|
270
273
|
addToDOM(container: HTMLElement): void;
|
|
271
274
|
removeFromDOM(container: HTMLElement): void;
|
|
272
275
|
}
|
|
@@ -685,6 +688,7 @@ export class RenderViewSettings {
|
|
|
685
688
|
orthoNavigationCube?: boolean;
|
|
686
689
|
hideSmallElements?: boolean;
|
|
687
690
|
smallObjectSize?: number;
|
|
691
|
+
frustumCulling?: boolean;
|
|
688
692
|
/** Desired render framerate */
|
|
689
693
|
desiredFramerate?: number;
|
|
690
694
|
/** Allocated time for rendering operations, excluding scene rendering */
|
|
@@ -828,11 +832,23 @@ export interface ICameraControl {
|
|
|
828
832
|
*/
|
|
829
833
|
setCameraMode(mode: CameraMode): boolean;
|
|
830
834
|
}
|
|
835
|
+
export enum LoadingSteps {
|
|
836
|
+
cancelled = 0,
|
|
837
|
+
prepareDataPart = 1,
|
|
838
|
+
loadFile = 2,
|
|
839
|
+
loadModelPart = 4,
|
|
840
|
+
storeModelPart = 8,
|
|
841
|
+
initModelPart = 16,
|
|
842
|
+
initViewObject = 32,
|
|
843
|
+
placeOnScene = 64,
|
|
844
|
+
riseOnLoadEvent = 128
|
|
845
|
+
}
|
|
831
846
|
export class EventTypes extends CoreEventTypes {
|
|
832
847
|
static MODEL_PART_LOADED: string;
|
|
833
848
|
static MODEL_PART_UPDATED: string;
|
|
834
849
|
static MODEL_PART_UNLOADED: string;
|
|
835
850
|
static VIRTUAL_ORIGIN_CHANGED: string;
|
|
851
|
+
static MODEL_PART_LOADING: string;
|
|
836
852
|
static SELECTION_CHANGED_EVENT: string;
|
|
837
853
|
static VISIBILITY_CHANGED_EVENT: string;
|
|
838
854
|
static DELETE_OBJECTS_EVENT: string;
|
|
@@ -850,6 +866,12 @@ export class ModelPartUpdateEvent extends ModelPartEvent {
|
|
|
850
866
|
removedElementIds?: string[];
|
|
851
867
|
addedElementIds?: string[];
|
|
852
868
|
}
|
|
869
|
+
export class ModelPartLoadingProgressEvent extends ModelPartEvent {
|
|
870
|
+
loadingProgress: {
|
|
871
|
+
current: LoadingSteps;
|
|
872
|
+
all: LoadingSteps;
|
|
873
|
+
};
|
|
874
|
+
}
|
|
853
875
|
export class VirtualOriginEvent extends Event {
|
|
854
876
|
virtualOrigin: Point3;
|
|
855
877
|
delta: Point3;
|
|
@@ -925,6 +947,270 @@ export class TPair<TKey, TValue> {
|
|
|
925
947
|
get key(): TKey;
|
|
926
948
|
get value(): TValue;
|
|
927
949
|
}
|
|
950
|
+
export interface MergeableMaterial extends THREE.ShaderMaterial {
|
|
951
|
+
readonly isMergeable?: boolean;
|
|
952
|
+
color?: THREE.Color;
|
|
953
|
+
mergeableHash?: number;
|
|
954
|
+
hash?: number;
|
|
955
|
+
}
|
|
956
|
+
export abstract class CustomMaterial extends THREE.ShaderMaterial {
|
|
957
|
+
|
|
958
|
+
constructor();
|
|
959
|
+
get hash(): number;
|
|
960
|
+
copy(source: CustomMaterial): this;
|
|
961
|
+
protected refreshUniforms(uniforms: {
|
|
962
|
+
[uniform: string]: THREE.IUniform;
|
|
963
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
964
|
+
protected onBeforeCompileCallback(parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer): void;
|
|
965
|
+
protected refreshTransformUniform(map: THREE.Texture, uniform: THREE.IUniform): void;
|
|
966
|
+
protected onBeforeRender(renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera, geometry: THREE.BufferGeometry, material: THREE.Material, group: THREE.Group): void;
|
|
967
|
+
protected materialHash(opacity?: number, color?: THREE.Color): number;
|
|
968
|
+
}
|
|
969
|
+
export interface CustomMeshLambertMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
970
|
+
instancing?: boolean | undefined;
|
|
971
|
+
instancingColor?: boolean | undefined;
|
|
972
|
+
color?: THREE.ColorRepresentation | undefined;
|
|
973
|
+
}
|
|
974
|
+
export class CustomMeshLambertMaterial extends CustomMaterial implements MergeableMaterial {
|
|
975
|
+
type: string;
|
|
976
|
+
isMergeable: boolean;
|
|
977
|
+
|
|
978
|
+
constructor(parameters?: CustomMeshLambertMaterialParameters);
|
|
979
|
+
get mergeableHash(): number;
|
|
980
|
+
/**
|
|
981
|
+
* @default false
|
|
982
|
+
*/
|
|
983
|
+
get instancing(): boolean;
|
|
984
|
+
set instancing(value: boolean);
|
|
985
|
+
/**
|
|
986
|
+
* @default false
|
|
987
|
+
*/
|
|
988
|
+
get instancingColor(): boolean;
|
|
989
|
+
set instancingColor(value: boolean);
|
|
990
|
+
/**
|
|
991
|
+
* @default new THREE.Color( 0xffffff )
|
|
992
|
+
*/
|
|
993
|
+
color: THREE.Color;
|
|
994
|
+
protected refreshUniformsCommon(uniforms: {
|
|
995
|
+
[uniform: string]: THREE.IUniform;
|
|
996
|
+
}, material: CustomMeshLambertMaterial, renderer: THREE.WebGLRenderer): void;
|
|
997
|
+
protected refreshUniforms(uniforms: {
|
|
998
|
+
[uniform: string]: THREE.IUniform;
|
|
999
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1000
|
+
copy(source: CustomMeshLambertMaterial): this;
|
|
1001
|
+
}
|
|
1002
|
+
export interface CustomLineMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1003
|
+
instancing?: boolean | undefined;
|
|
1004
|
+
instancingColor?: boolean | undefined;
|
|
1005
|
+
color?: THREE.ColorRepresentation | undefined;
|
|
1006
|
+
}
|
|
1007
|
+
export class CustomLineMaterial extends CustomMaterial implements MergeableMaterial {
|
|
1008
|
+
type: string;
|
|
1009
|
+
isMergeable: boolean;
|
|
1010
|
+
|
|
1011
|
+
constructor(parameters?: CustomLineMaterialParameters);
|
|
1012
|
+
get mergeableHash(): number;
|
|
1013
|
+
/**
|
|
1014
|
+
* @default false
|
|
1015
|
+
*/
|
|
1016
|
+
get instancing(): boolean;
|
|
1017
|
+
set instancing(value: boolean);
|
|
1018
|
+
/**
|
|
1019
|
+
* @default false
|
|
1020
|
+
*/
|
|
1021
|
+
get instancingColor(): boolean;
|
|
1022
|
+
set instancingColor(value: boolean);
|
|
1023
|
+
/**
|
|
1024
|
+
* @default 0xffffff
|
|
1025
|
+
*/
|
|
1026
|
+
color: THREE.Color;
|
|
1027
|
+
copy(source: CustomLineMaterial): this;
|
|
1028
|
+
protected refreshUniforms(uniforms: {
|
|
1029
|
+
[uniform: string]: THREE.IUniform;
|
|
1030
|
+
}, material: CustomLineMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1031
|
+
}
|
|
1032
|
+
export interface MeshLineMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1033
|
+
color?: THREE.ColorRepresentation | undefined;
|
|
1034
|
+
dashed?: boolean | undefined;
|
|
1035
|
+
dashScale?: number | undefined;
|
|
1036
|
+
dashSize?: number | undefined;
|
|
1037
|
+
dashOffset?: number | undefined;
|
|
1038
|
+
gapSize?: number | undefined;
|
|
1039
|
+
worldUnits?: boolean | undefined;
|
|
1040
|
+
}
|
|
1041
|
+
export class MeshLineMaterial extends CustomMaterial {
|
|
1042
|
+
type: string;
|
|
1043
|
+
|
|
1044
|
+
constructor(parameters: MeshLineMaterialParameters);
|
|
1045
|
+
/**
|
|
1046
|
+
* @default false
|
|
1047
|
+
*/
|
|
1048
|
+
get worldUnits(): boolean;
|
|
1049
|
+
set worldUnits(value: boolean);
|
|
1050
|
+
/**
|
|
1051
|
+
* @default false
|
|
1052
|
+
*/
|
|
1053
|
+
get dashed(): boolean;
|
|
1054
|
+
set dashed(value: boolean);
|
|
1055
|
+
get resolution(): THREE.Vector2;
|
|
1056
|
+
/**
|
|
1057
|
+
* @default 0xffffff
|
|
1058
|
+
*/
|
|
1059
|
+
color: THREE.Color;
|
|
1060
|
+
/**
|
|
1061
|
+
* @default 1
|
|
1062
|
+
*/
|
|
1063
|
+
dashScale: number;
|
|
1064
|
+
/**
|
|
1065
|
+
* @default 1
|
|
1066
|
+
*/
|
|
1067
|
+
dashSize: number;
|
|
1068
|
+
/**
|
|
1069
|
+
* @default 0
|
|
1070
|
+
*/
|
|
1071
|
+
dashOffset: number;
|
|
1072
|
+
/**
|
|
1073
|
+
* @default 1
|
|
1074
|
+
*/
|
|
1075
|
+
gapSize: number;
|
|
1076
|
+
copy(source: MeshLineMaterial): this;
|
|
1077
|
+
protected refreshUniforms(uniforms: {
|
|
1078
|
+
[uniform: string]: THREE.IUniform;
|
|
1079
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1080
|
+
}
|
|
1081
|
+
export interface CustomPointMaterialParameters extends THREE.ShaderMaterialParameters, THREE.PointsMaterialParameters {
|
|
1082
|
+
}
|
|
1083
|
+
export class CustomPointMaterial extends CustomMaterial {
|
|
1084
|
+
type: string;
|
|
1085
|
+
|
|
1086
|
+
constructor(parameters?: CustomPointMaterialParameters);
|
|
1087
|
+
/**
|
|
1088
|
+
* @default new THREE.Color( 0xffffff )
|
|
1089
|
+
*/
|
|
1090
|
+
color: THREE.Color;
|
|
1091
|
+
/**
|
|
1092
|
+
* @default null
|
|
1093
|
+
*/
|
|
1094
|
+
map: THREE.Texture | null;
|
|
1095
|
+
/**
|
|
1096
|
+
* @default null
|
|
1097
|
+
*/
|
|
1098
|
+
alphaMap: THREE.Texture | null;
|
|
1099
|
+
/**
|
|
1100
|
+
* @default 1
|
|
1101
|
+
*/
|
|
1102
|
+
size: number;
|
|
1103
|
+
/**
|
|
1104
|
+
* @default true
|
|
1105
|
+
*/
|
|
1106
|
+
sizeAttenuation: boolean;
|
|
1107
|
+
copy(source: CustomPointMaterial): this;
|
|
1108
|
+
protected refreshUniformsCommon(uniforms: {
|
|
1109
|
+
[uniform: string]: THREE.IUniform;
|
|
1110
|
+
}, material: CustomPointMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1111
|
+
protected refreshUniforms(uniforms: {
|
|
1112
|
+
[uniform: string]: THREE.IUniform;
|
|
1113
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1114
|
+
}
|
|
1115
|
+
export interface CloudPointMaterialParameters extends THREE.ShaderMaterialParameters, THREE.PointsMaterialParameters {
|
|
1116
|
+
color?: THREE.ColorRepresentation | undefined;
|
|
1117
|
+
size?: number | undefined;
|
|
1118
|
+
sizeAttenuation?: boolean | undefined;
|
|
1119
|
+
}
|
|
1120
|
+
export class CloudPointMaterial extends CustomMaterial {
|
|
1121
|
+
type: string;
|
|
1122
|
+
|
|
1123
|
+
constructor(parameters?: CloudPointMaterialParameters);
|
|
1124
|
+
/**
|
|
1125
|
+
* @default true
|
|
1126
|
+
*/
|
|
1127
|
+
sizeAttenuation: boolean;
|
|
1128
|
+
/**
|
|
1129
|
+
* @default new THREE.Color( 0xffffff )
|
|
1130
|
+
*/
|
|
1131
|
+
color: THREE.Color;
|
|
1132
|
+
/**
|
|
1133
|
+
* @default 1
|
|
1134
|
+
*/
|
|
1135
|
+
size: number;
|
|
1136
|
+
copy(source: CloudPointMaterial): this;
|
|
1137
|
+
protected refreshUniformsCommon(uniforms: {
|
|
1138
|
+
[uniform: string]: THREE.IUniform;
|
|
1139
|
+
}, material: CloudPointMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1140
|
+
protected refreshUniforms(uniforms: {
|
|
1141
|
+
[uniform: string]: THREE.IUniform;
|
|
1142
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1143
|
+
}
|
|
1144
|
+
export interface IBatchedMaterial extends CustomMaterial {
|
|
1145
|
+
textureSize: number;
|
|
1146
|
+
blockPosTexture: THREE.DataTexture;
|
|
1147
|
+
colorTexture: THREE.DataTexture;
|
|
1148
|
+
useBlockPosTexture: boolean;
|
|
1149
|
+
useBlockColorTexture: boolean;
|
|
1150
|
+
}
|
|
1151
|
+
export interface BatchedMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1152
|
+
textureSize?: number;
|
|
1153
|
+
useBlockColorTexture: boolean;
|
|
1154
|
+
useBlockPosTexture: boolean;
|
|
1155
|
+
}
|
|
1156
|
+
class BatchedMaterialBase extends CustomMaterial implements IBatchedMaterial {
|
|
1157
|
+
|
|
1158
|
+
constructor(parameters?: BatchedMaterialParameters);
|
|
1159
|
+
/**
|
|
1160
|
+
* @default 64
|
|
1161
|
+
*/
|
|
1162
|
+
textureSize: number;
|
|
1163
|
+
/**
|
|
1164
|
+
* @default null
|
|
1165
|
+
*/
|
|
1166
|
+
blockPosTexture: THREE.DataTexture;
|
|
1167
|
+
/**
|
|
1168
|
+
* @default null
|
|
1169
|
+
*/
|
|
1170
|
+
colorTexture: THREE.DataTexture;
|
|
1171
|
+
/**
|
|
1172
|
+
* @default true
|
|
1173
|
+
*/
|
|
1174
|
+
get useBlockPosTexture(): boolean;
|
|
1175
|
+
set useBlockPosTexture(value: boolean);
|
|
1176
|
+
/**
|
|
1177
|
+
* @default true
|
|
1178
|
+
*/
|
|
1179
|
+
get useBlockColorTexture(): boolean;
|
|
1180
|
+
set useBlockColorTexture(value: boolean);
|
|
1181
|
+
protected refreshUniformsCommon(uniforms: {
|
|
1182
|
+
[uniform: string]: THREE.IUniform;
|
|
1183
|
+
}, material: BatchedMaterialBase, renderer: THREE.WebGLRenderer): void;
|
|
1184
|
+
protected refreshUniforms(uniforms: {
|
|
1185
|
+
[uniform: string]: THREE.IUniform;
|
|
1186
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1187
|
+
copy(source: BatchedMaterialBase): this;
|
|
1188
|
+
protected materialHash(): number;
|
|
1189
|
+
dispose(): void;
|
|
1190
|
+
}
|
|
1191
|
+
export class BatchedMeshMaterial extends BatchedMaterialBase {
|
|
1192
|
+
type: string;
|
|
1193
|
+
|
|
1194
|
+
constructor(parameters?: BatchedMaterialParameters);
|
|
1195
|
+
static fromMaterial(material: THREE.Material, textureSize: number, useBlockColorTexture: boolean, useBlockPosTexture: boolean): BatchedMeshMaterial;
|
|
1196
|
+
}
|
|
1197
|
+
export class BatchedLineMaterial extends BatchedMaterialBase {
|
|
1198
|
+
type: string;
|
|
1199
|
+
|
|
1200
|
+
constructor(parameters?: BatchedMaterialParameters);
|
|
1201
|
+
static fromMaterial(material: THREE.Material, textureSize: number, useBlockColorTexture: boolean, useBlockPosTexture: boolean): BatchedLineMaterial;
|
|
1202
|
+
}
|
|
1203
|
+
export {};
|
|
1204
|
+
export type MemoryInfo = {
|
|
1205
|
+
objects3D: number;
|
|
1206
|
+
meshes: number;
|
|
1207
|
+
edges: number;
|
|
1208
|
+
points: number;
|
|
1209
|
+
geometries: number;
|
|
1210
|
+
attributes: number;
|
|
1211
|
+
bBoxes: number;
|
|
1212
|
+
memory: number;
|
|
1213
|
+
};
|
|
928
1214
|
export interface SceneCheckOptions {
|
|
929
1215
|
/** specify whether intersections should be filtered by clippings */
|
|
930
1216
|
filterByClipping?: boolean;
|
|
@@ -934,6 +1220,10 @@ export interface ModelCheckOptions extends SceneCheckOptions {
|
|
|
934
1220
|
sceneNames?: string[];
|
|
935
1221
|
}
|
|
936
1222
|
export interface IIntersectionChecker<TOptions> {
|
|
1223
|
+
/**
|
|
1224
|
+
* Gets info about used memory
|
|
1225
|
+
*/
|
|
1226
|
+
get memoryInfo(): MemoryInfo;
|
|
937
1227
|
/**
|
|
938
1228
|
* Gets {@link THREE.Intersection} between a casted {@link ray} and model object.
|
|
939
1229
|
* @param ray
|
|
@@ -1144,6 +1434,8 @@ export interface IUserScene extends THREE.Scene {
|
|
|
1144
1434
|
set clippingEnable(value: boolean);
|
|
1145
1435
|
/** Indicates whether the scene should be clipped */
|
|
1146
1436
|
get clippingEnable(): boolean;
|
|
1437
|
+
/** Gets info about used memory */
|
|
1438
|
+
get memoryInfo(): MemoryInfo;
|
|
1147
1439
|
/** Place objects on scene */
|
|
1148
1440
|
addRange(objects: THREE.Object3D[]): void;
|
|
1149
1441
|
/** Update objects on scene */
|
|
@@ -1349,7 +1641,8 @@ export interface GizmoEventMap extends ViewObjectEventMap {
|
|
|
1349
1641
|
}
|
|
1350
1642
|
export class GizmoControl extends THREE.Object3D<GizmoEventMap> {
|
|
1351
1643
|
|
|
1352
|
-
constructor(
|
|
1644
|
+
constructor(cameraControl: THREE.Camera | ICameraControl, navAgent: INavigationAgent);
|
|
1645
|
+
get camera(): THREE.Camera;
|
|
1353
1646
|
attachTo(object: THREE.Object3D, asChild?: boolean): void;
|
|
1354
1647
|
detach(): void;
|
|
1355
1648
|
addAxis(axis: GizmoAxis): void;
|
|
@@ -1368,205 +1661,11 @@ export enum GizmoAxisDir {
|
|
|
1368
1661
|
XYZ = 7
|
|
1369
1662
|
}
|
|
1370
1663
|
export class GizmoBuilder {
|
|
1371
|
-
static build(
|
|
1664
|
+
static build(cameraControl: THREE.Camera | ICameraControl, navAgent: INavigationAgent, translation?: GizmoAxisDir, rotation?: GizmoAxisDir, scale?: GizmoAxisDir): GizmoControl;
|
|
1372
1665
|
static buildTranslationAxis(axisDir: THREE.Vector3, handleBaseMatrial?: THREE.Material, handleHoveredMaterial?: THREE.Material, handleSelectedMaterial?: THREE.Material, pickerBaseMatrial?: THREE.Material, pickerHoveredMaterial?: THREE.Material, pickerSelectedMaterial?: THREE.Material): GizmoAxis;
|
|
1373
1666
|
static buildRotationAxis(axisDir: THREE.Vector3, handleBaseMatrial?: THREE.Material, handleHoveredMaterial?: THREE.Material, handleSelectedMaterial?: THREE.Material, pickerBaseMatrial?: THREE.Material, pickerHoveredMaterial?: THREE.Material, pickerSelectedMaterial?: THREE.Material): GizmoAxis;
|
|
1374
1667
|
static buildScaleAxis(axisDir: THREE.Vector3, handleBaseMatrial?: THREE.Material, handleHoveredMaterial?: THREE.Material, handleSelectedMaterial?: THREE.Material): GizmoAxis;
|
|
1375
1668
|
}
|
|
1376
|
-
export interface MergeableMaterial extends THREE.ShaderMaterial {
|
|
1377
|
-
readonly isMergeable?: boolean;
|
|
1378
|
-
color?: THREE.Color;
|
|
1379
|
-
mergeableHash?: number;
|
|
1380
|
-
hash?: number;
|
|
1381
|
-
}
|
|
1382
|
-
export abstract class CustomMaterial extends THREE.ShaderMaterial {
|
|
1383
|
-
|
|
1384
|
-
constructor();
|
|
1385
|
-
get hash(): number;
|
|
1386
|
-
copy(source: CustomMaterial): this;
|
|
1387
|
-
protected refreshUniforms(uniforms: {
|
|
1388
|
-
[uniform: string]: THREE.IUniform;
|
|
1389
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1390
|
-
protected onBeforeCompileCallback(parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer): void;
|
|
1391
|
-
protected refreshTransformUniform(map: THREE.Texture, uniform: THREE.IUniform): void;
|
|
1392
|
-
protected onBeforeRender(renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera, geometry: THREE.BufferGeometry, material: THREE.Material, group: THREE.Group): void;
|
|
1393
|
-
protected materialHash(opacity?: number, color?: THREE.Color): number;
|
|
1394
|
-
}
|
|
1395
|
-
export interface CustomMeshLambertMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1396
|
-
instancing?: boolean | undefined;
|
|
1397
|
-
instancingColor?: boolean | undefined;
|
|
1398
|
-
color?: THREE.ColorRepresentation | undefined;
|
|
1399
|
-
}
|
|
1400
|
-
export class CustomMeshLambertMaterial extends CustomMaterial implements MergeableMaterial {
|
|
1401
|
-
type: string;
|
|
1402
|
-
isMergeable: boolean;
|
|
1403
|
-
|
|
1404
|
-
constructor(parameters?: CustomMeshLambertMaterialParameters);
|
|
1405
|
-
get mergeableHash(): number;
|
|
1406
|
-
/**
|
|
1407
|
-
* @default false
|
|
1408
|
-
*/
|
|
1409
|
-
get instancing(): boolean;
|
|
1410
|
-
set instancing(value: boolean);
|
|
1411
|
-
/**
|
|
1412
|
-
* @default false
|
|
1413
|
-
*/
|
|
1414
|
-
get instancingColor(): boolean;
|
|
1415
|
-
set instancingColor(value: boolean);
|
|
1416
|
-
/**
|
|
1417
|
-
* @default new THREE.Color( 0xffffff )
|
|
1418
|
-
*/
|
|
1419
|
-
color: THREE.Color;
|
|
1420
|
-
protected refreshUniformsCommon(uniforms: {
|
|
1421
|
-
[uniform: string]: THREE.IUniform;
|
|
1422
|
-
}, material: CustomMeshLambertMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1423
|
-
protected refreshUniforms(uniforms: {
|
|
1424
|
-
[uniform: string]: THREE.IUniform;
|
|
1425
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1426
|
-
copy(source: CustomMeshLambertMaterial): this;
|
|
1427
|
-
}
|
|
1428
|
-
export interface CustomLineMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1429
|
-
instancing?: boolean | undefined;
|
|
1430
|
-
instancingColor?: boolean | undefined;
|
|
1431
|
-
color?: THREE.ColorRepresentation | undefined;
|
|
1432
|
-
}
|
|
1433
|
-
export class CustomLineMaterial extends CustomMaterial implements MergeableMaterial {
|
|
1434
|
-
type: string;
|
|
1435
|
-
isMergeable: boolean;
|
|
1436
|
-
|
|
1437
|
-
constructor(parameters?: CustomLineMaterialParameters);
|
|
1438
|
-
get mergeableHash(): number;
|
|
1439
|
-
/**
|
|
1440
|
-
* @default false
|
|
1441
|
-
*/
|
|
1442
|
-
get instancing(): boolean;
|
|
1443
|
-
set instancing(value: boolean);
|
|
1444
|
-
/**
|
|
1445
|
-
* @default false
|
|
1446
|
-
*/
|
|
1447
|
-
get instancingColor(): boolean;
|
|
1448
|
-
set instancingColor(value: boolean);
|
|
1449
|
-
/**
|
|
1450
|
-
* @default 0xffffff
|
|
1451
|
-
*/
|
|
1452
|
-
color: THREE.Color;
|
|
1453
|
-
copy(source: CustomLineMaterial): this;
|
|
1454
|
-
protected refreshUniforms(uniforms: {
|
|
1455
|
-
[uniform: string]: THREE.IUniform;
|
|
1456
|
-
}, material: CustomLineMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1457
|
-
}
|
|
1458
|
-
export interface MeshLineMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1459
|
-
color?: THREE.ColorRepresentation | undefined;
|
|
1460
|
-
dashed?: boolean | undefined;
|
|
1461
|
-
dashScale?: number | undefined;
|
|
1462
|
-
dashSize?: number | undefined;
|
|
1463
|
-
dashOffset?: number | undefined;
|
|
1464
|
-
gapSize?: number | undefined;
|
|
1465
|
-
worldUnits?: boolean | undefined;
|
|
1466
|
-
}
|
|
1467
|
-
export class MeshLineMaterial extends CustomMaterial {
|
|
1468
|
-
type: string;
|
|
1469
|
-
|
|
1470
|
-
constructor(parameters: MeshLineMaterialParameters);
|
|
1471
|
-
/**
|
|
1472
|
-
* @default false
|
|
1473
|
-
*/
|
|
1474
|
-
get worldUnits(): boolean;
|
|
1475
|
-
set worldUnits(value: boolean);
|
|
1476
|
-
/**
|
|
1477
|
-
* @default false
|
|
1478
|
-
*/
|
|
1479
|
-
get dashed(): boolean;
|
|
1480
|
-
set dashed(value: boolean);
|
|
1481
|
-
get resolution(): THREE.Vector2;
|
|
1482
|
-
/**
|
|
1483
|
-
* @default 0xffffff
|
|
1484
|
-
*/
|
|
1485
|
-
color: THREE.Color;
|
|
1486
|
-
/**
|
|
1487
|
-
* @default 1
|
|
1488
|
-
*/
|
|
1489
|
-
dashScale: number;
|
|
1490
|
-
/**
|
|
1491
|
-
* @default 1
|
|
1492
|
-
*/
|
|
1493
|
-
dashSize: number;
|
|
1494
|
-
/**
|
|
1495
|
-
* @default 0
|
|
1496
|
-
*/
|
|
1497
|
-
dashOffset: number;
|
|
1498
|
-
/**
|
|
1499
|
-
* @default 1
|
|
1500
|
-
*/
|
|
1501
|
-
gapSize: number;
|
|
1502
|
-
copy(source: MeshLineMaterial): this;
|
|
1503
|
-
protected refreshUniforms(uniforms: {
|
|
1504
|
-
[uniform: string]: THREE.IUniform;
|
|
1505
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1506
|
-
}
|
|
1507
|
-
export interface CustomPointMaterialParameters extends THREE.ShaderMaterialParameters, THREE.PointsMaterialParameters {
|
|
1508
|
-
}
|
|
1509
|
-
export class CustomPointMaterial extends CustomMaterial {
|
|
1510
|
-
type: string;
|
|
1511
|
-
|
|
1512
|
-
constructor(parameters?: CustomPointMaterialParameters);
|
|
1513
|
-
/**
|
|
1514
|
-
* @default new THREE.Color( 0xffffff )
|
|
1515
|
-
*/
|
|
1516
|
-
color: THREE.Color;
|
|
1517
|
-
/**
|
|
1518
|
-
* @default null
|
|
1519
|
-
*/
|
|
1520
|
-
map: THREE.Texture | null;
|
|
1521
|
-
/**
|
|
1522
|
-
* @default null
|
|
1523
|
-
*/
|
|
1524
|
-
alphaMap: THREE.Texture | null;
|
|
1525
|
-
/**
|
|
1526
|
-
* @default 1
|
|
1527
|
-
*/
|
|
1528
|
-
size: number;
|
|
1529
|
-
/**
|
|
1530
|
-
* @default true
|
|
1531
|
-
*/
|
|
1532
|
-
sizeAttenuation: boolean;
|
|
1533
|
-
copy(source: CustomPointMaterial): this;
|
|
1534
|
-
protected refreshUniformsCommon(uniforms: {
|
|
1535
|
-
[uniform: string]: THREE.IUniform;
|
|
1536
|
-
}, material: CustomPointMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1537
|
-
protected refreshUniforms(uniforms: {
|
|
1538
|
-
[uniform: string]: THREE.IUniform;
|
|
1539
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1540
|
-
}
|
|
1541
|
-
export interface CloudPointMaterialParameters extends THREE.ShaderMaterialParameters, THREE.PointsMaterialParameters {
|
|
1542
|
-
color?: THREE.ColorRepresentation | undefined;
|
|
1543
|
-
size?: number | undefined;
|
|
1544
|
-
sizeAttenuation?: boolean | undefined;
|
|
1545
|
-
}
|
|
1546
|
-
export class CloudPointMaterial extends CustomMaterial {
|
|
1547
|
-
type: string;
|
|
1548
|
-
|
|
1549
|
-
constructor(parameters?: CloudPointMaterialParameters);
|
|
1550
|
-
/**
|
|
1551
|
-
* @default true
|
|
1552
|
-
*/
|
|
1553
|
-
sizeAttenuation: boolean;
|
|
1554
|
-
/**
|
|
1555
|
-
* @default new THREE.Color( 0xffffff )
|
|
1556
|
-
*/
|
|
1557
|
-
color: THREE.Color;
|
|
1558
|
-
/**
|
|
1559
|
-
* @default 1
|
|
1560
|
-
*/
|
|
1561
|
-
size: number;
|
|
1562
|
-
copy(source: CloudPointMaterial): this;
|
|
1563
|
-
protected refreshUniformsCommon(uniforms: {
|
|
1564
|
-
[uniform: string]: THREE.IUniform;
|
|
1565
|
-
}, material: CloudPointMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1566
|
-
protected refreshUniforms(uniforms: {
|
|
1567
|
-
[uniform: string]: THREE.IUniform;
|
|
1568
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1569
|
-
}
|
|
1570
1669
|
export interface CustomSpriteMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1571
1670
|
color?: THREE.ColorRepresentation | undefined;
|
|
1572
1671
|
map?: THREE.Texture | null | undefined;
|
|
@@ -3027,6 +3126,7 @@ export class SettingsNames {
|
|
|
3027
3126
|
static ANTI_ALIASING: string;
|
|
3028
3127
|
static HIDE_SMALL_ELEMENTS: string;
|
|
3029
3128
|
static SMALL_ELEMENT_SIZE: string;
|
|
3129
|
+
static FRUSTUM_CULLING: string;
|
|
3030
3130
|
static LABEL_LINE_LENGTH: string;
|
|
3031
3131
|
static HIDE_EDGES_WHEN_NAVIGATING: string;
|
|
3032
3132
|
static DISPLAY_MODE: string;
|
|
@@ -3052,66 +3152,6 @@ export class Viewer3DConfiguration extends ViewerConfiguration {
|
|
|
3052
3152
|
constructor(appearance?: ViewerSettings, render?: ViewerSettings);
|
|
3053
3153
|
}
|
|
3054
3154
|
export const defaultViewer3DSettings: ViewerSettings;
|
|
3055
|
-
export interface IBatchedMaterial extends CustomMaterial {
|
|
3056
|
-
textureSize: number;
|
|
3057
|
-
blockPosTexture: THREE.DataTexture;
|
|
3058
|
-
colorTexture: THREE.DataTexture;
|
|
3059
|
-
useBlockPosTexture: boolean;
|
|
3060
|
-
useBlockColorTexture: boolean;
|
|
3061
|
-
}
|
|
3062
|
-
export interface BatchedMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
3063
|
-
textureSize?: number;
|
|
3064
|
-
useBlockColorTexture: boolean;
|
|
3065
|
-
useBlockPosTexture: boolean;
|
|
3066
|
-
}
|
|
3067
|
-
class BatchedMaterialBase extends CustomMaterial implements IBatchedMaterial {
|
|
3068
|
-
|
|
3069
|
-
constructor(parameters?: BatchedMaterialParameters);
|
|
3070
|
-
/**
|
|
3071
|
-
* @default 64
|
|
3072
|
-
*/
|
|
3073
|
-
textureSize: number;
|
|
3074
|
-
/**
|
|
3075
|
-
* @default null
|
|
3076
|
-
*/
|
|
3077
|
-
blockPosTexture: THREE.DataTexture;
|
|
3078
|
-
/**
|
|
3079
|
-
* @default null
|
|
3080
|
-
*/
|
|
3081
|
-
colorTexture: THREE.DataTexture;
|
|
3082
|
-
/**
|
|
3083
|
-
* @default true
|
|
3084
|
-
*/
|
|
3085
|
-
get useBlockPosTexture(): boolean;
|
|
3086
|
-
set useBlockPosTexture(value: boolean);
|
|
3087
|
-
/**
|
|
3088
|
-
* @default true
|
|
3089
|
-
*/
|
|
3090
|
-
get useBlockColorTexture(): boolean;
|
|
3091
|
-
set useBlockColorTexture(value: boolean);
|
|
3092
|
-
protected refreshUniformsCommon(uniforms: {
|
|
3093
|
-
[uniform: string]: THREE.IUniform;
|
|
3094
|
-
}, material: BatchedMaterialBase, renderer: THREE.WebGLRenderer): void;
|
|
3095
|
-
protected refreshUniforms(uniforms: {
|
|
3096
|
-
[uniform: string]: THREE.IUniform;
|
|
3097
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
3098
|
-
copy(source: BatchedMaterialBase): this;
|
|
3099
|
-
protected materialHash(): number;
|
|
3100
|
-
dispose(): void;
|
|
3101
|
-
}
|
|
3102
|
-
export class BatchedMeshMaterial extends BatchedMaterialBase {
|
|
3103
|
-
type: string;
|
|
3104
|
-
|
|
3105
|
-
constructor(parameters?: BatchedMaterialParameters);
|
|
3106
|
-
static fromMaterial(material: THREE.Material, textureSize: number, useBlockColorTexture: boolean, useBlockPosTexture: boolean): BatchedMeshMaterial;
|
|
3107
|
-
}
|
|
3108
|
-
export class BatchedLineMaterial extends BatchedMaterialBase {
|
|
3109
|
-
type: string;
|
|
3110
|
-
|
|
3111
|
-
constructor(parameters?: BatchedMaterialParameters);
|
|
3112
|
-
static fromMaterial(material: THREE.Material, textureSize: number, useBlockColorTexture: boolean, useBlockPosTexture: boolean): BatchedLineMaterial;
|
|
3113
|
-
}
|
|
3114
|
-
export {};
|
|
3115
3155
|
export class ModelLoadingOptions {
|
|
3116
3156
|
guid: string;
|
|
3117
3157
|
isConsolidatedModel?: boolean;
|
|
@@ -3119,6 +3159,7 @@ export class ModelLoadingOptions {
|
|
|
3119
3159
|
scaling?: number;
|
|
3120
3160
|
origin?: Point3;
|
|
3121
3161
|
hideLoadingSpinner?: boolean;
|
|
3162
|
+
useCachedData?: boolean;
|
|
3122
3163
|
}
|
|
3123
3164
|
export interface DeleteEventListener extends EventListener {
|
|
3124
3165
|
(evt: DeleteEvent): void;
|
|
@@ -3343,7 +3384,7 @@ export interface INavigation {
|
|
|
3343
3384
|
getCameraControl(): ICameraControl;
|
|
3344
3385
|
/**
|
|
3345
3386
|
* Fits camera to objects by IDs. It fits the entire model if no ID is provided.
|
|
3346
|
-
* @param {string[] | string} elementIds - element or array of elements
|
|
3387
|
+
* @param {string[] | string | ModelElementIds[]} elementIds - element or array of elements
|
|
3347
3388
|
* @param {string | ModelPart} modelPart - the model part id or the model part instance containing the elements.
|
|
3348
3389
|
* @param {boolean} immediate - true to avoid the default transition.
|
|
3349
3390
|
* @param {CameraOrientation} cameraOrientation - final orientation of the camera after fitting.
|