mx3d 2025.5.62 → 2025.6.1
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 +530 -1140
- package/mx3d.cjs.js +1 -0
- package/mx3d.esm.js +1 -0
- package/mx3d.min.js +1 -1
- package/package.json +27 -8
package/index.d.ts
CHANGED
|
@@ -1,148 +1,147 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { Scene } from '@babylonjs/core/scene';
|
|
3
|
+
import { Engine } from '@babylonjs/core/Engines/engine';
|
|
4
|
+
import { AdvancedDynamicTexture } from '@babylonjs/gui/2D/advancedDynamicTexture';
|
|
5
|
+
import { GlowLayer } from '@babylonjs/core/Layers/glowLayer';
|
|
6
|
+
import { PositionGizmo } from '@babylonjs/core/Gizmos/positionGizmo';
|
|
7
|
+
import { Vector3 } from '@babylonjs/core/Maths/math.vector';
|
|
8
|
+
import { Mesh } from '@babylonjs/core/Meshes/mesh';
|
|
9
|
+
import { InstancedMesh } from '@babylonjs/core/Meshes/instancedMesh';
|
|
10
|
+
import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera';
|
|
11
|
+
import { FreeCamera } from '@babylonjs/core/Cameras/freeCamera';
|
|
12
|
+
import { StandardMaterial } from '@babylonjs/core/Materials/standardMaterial';
|
|
13
|
+
import { Texture } from '@babylonjs/core/Materials/Textures/texture';
|
|
14
|
+
import { NodeMaterial } from '@babylonjs/core/Materials/Node/nodeMaterial';
|
|
15
|
+
import { AbstractMesh } from '@babylonjs/core/Meshes/abstractMesh';
|
|
16
|
+
import { AssetContainer } from '@babylonjs/core/assetContainer';
|
|
17
|
+
import { CustomMaterial } from '@babylonjs/materials/custom/customMaterial';
|
|
18
|
+
import { PointerInfo } from '@babylonjs/core/Events/pointerEvents';
|
|
19
|
+
import { KeyboardInfo } from '@babylonjs/core/Events/keyboardEvents';
|
|
20
|
+
import { HighlightLayer } from '@babylonjs/core/Layers/highlightLayer';
|
|
21
|
+
import { Color3 } from '@babylonjs/core/Maths/math.color';
|
|
22
|
+
import { TextBlock, MultiLine, Rectangle } from '@babylonjs/gui/2D/controls';
|
|
23
|
+
|
|
24
|
+
declare enum StatusType {
|
|
25
|
+
Opaque = 0,
|
|
26
|
+
Flash = 1,
|
|
27
|
+
Transparent = 2
|
|
28
|
+
}
|
|
7
29
|
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
30
|
+
declare class Sight {
|
|
31
|
+
alpha: number;
|
|
32
|
+
focus: Vector3;
|
|
33
|
+
radius: number;
|
|
34
|
+
beta: number;
|
|
35
|
+
minimumLimit: number;
|
|
36
|
+
maximumLimit: number;
|
|
37
|
+
minBeta: number;
|
|
38
|
+
maxBeta: number;
|
|
39
|
+
toJosn(_sightJson: any): void;
|
|
40
|
+
toString(): string;
|
|
41
|
+
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
42
|
+
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
43
|
+
}
|
|
23
44
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
declare enum ObjectType {
|
|
46
|
+
Cabinet = "Cabinet",
|
|
47
|
+
RackModel = "RackModel",
|
|
48
|
+
Corner = "Corner",
|
|
49
|
+
Other = "Other",
|
|
50
|
+
Door = "Door",
|
|
51
|
+
Floor = "Floor",
|
|
52
|
+
LeakWater = "LeakWater",
|
|
53
|
+
UI3D = "UI3D",
|
|
54
|
+
VirtualBox = "VirtualBox",
|
|
55
|
+
Wall = "Wall",
|
|
56
|
+
Window = "Window",
|
|
57
|
+
Conduit = "Conduit",
|
|
58
|
+
Building = "Building",
|
|
59
|
+
Storey = "Storey",
|
|
60
|
+
Campus = "Campus",
|
|
61
|
+
Project = "Project"
|
|
62
|
+
}
|
|
35
63
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
positionGizmo: Runtime.PositionGizmo;
|
|
51
|
-
private SM2;
|
|
52
|
-
constructor(_config: { container: HTMLElement; sl?: string; rl?: string });
|
|
53
|
-
load(_config: { pk?: string; fileUrl?: string; isDefaultLevel?: boolean; isDefaultMutual?: boolean; progress?: Function; complete?: Function; onError?: Function }): Promise<Error>;
|
|
54
|
-
isDefaultMutual: boolean;
|
|
55
|
-
set defaultMutual(value: boolean);
|
|
56
|
-
dispose(): void;
|
|
57
|
-
}
|
|
64
|
+
declare class BaseModel {
|
|
65
|
+
extension: string;
|
|
66
|
+
groupId: string;
|
|
67
|
+
heat: number;
|
|
68
|
+
height: number;
|
|
69
|
+
insertTime: string;
|
|
70
|
+
isTiling: boolean;
|
|
71
|
+
length: number;
|
|
72
|
+
modelId: string;
|
|
73
|
+
modelName: string;
|
|
74
|
+
modelType: ObjectType;
|
|
75
|
+
modelTypeName: string;
|
|
76
|
+
width: number;
|
|
77
|
+
}
|
|
58
78
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
max: number;
|
|
79
|
-
min: number;
|
|
80
|
-
};
|
|
81
|
-
}): HeatMap;
|
|
82
|
-
private static _getMatrixParticleTex;
|
|
83
|
-
static createPunctateCloud(_data: {
|
|
84
|
-
anchor: IObject;
|
|
85
|
-
value: number;
|
|
86
|
-
radius: number;
|
|
87
|
-
isLevelRender: boolean;
|
|
88
|
-
displayValues: boolean;
|
|
89
|
-
isAlpha: boolean;
|
|
90
|
-
isParticle: boolean;
|
|
91
|
-
range: {
|
|
92
|
-
max: number;
|
|
93
|
-
min: number;
|
|
94
|
-
};
|
|
95
|
-
}): HeatMap;
|
|
96
|
-
static createColumnCloud(_data: {
|
|
97
|
-
anchor: IObject;
|
|
98
|
-
data: Array<{
|
|
99
|
-
index: number;
|
|
100
|
-
value: number;
|
|
101
|
-
}>;
|
|
102
|
-
isLevelRender: boolean;
|
|
103
|
-
displayValues: boolean;
|
|
104
|
-
isAlpha: boolean;
|
|
105
|
-
isParticle: boolean;
|
|
106
|
-
radius: number;
|
|
107
|
-
range: {
|
|
108
|
-
max: number;
|
|
109
|
-
min: number;
|
|
110
|
-
};
|
|
111
|
-
}): HeatMap;
|
|
112
|
-
private static _getColumnarParticleTex;
|
|
113
|
-
private static createTempVlaue;
|
|
114
|
-
static createCapacity(obj: IObject, RATIO: number, _text: string, _fontSize?: string): Capacity;
|
|
115
|
-
static createTextMesh(obj: IObject, _text: string, RATIO: number, _fontSize?: string, _color?: string): Runtime.Mesh;
|
|
116
|
-
static create2DLine(
|
|
117
|
-
_id: string,
|
|
118
|
-
_objs: Array<IObject>,
|
|
119
|
-
_options?: {
|
|
120
|
-
width: number;
|
|
121
|
-
color: string;
|
|
122
|
-
isDotted: boolean;
|
|
123
|
-
},
|
|
124
|
-
): Line;
|
|
125
|
-
static create3DLine(
|
|
126
|
-
_id: string,
|
|
127
|
-
_objs: Array<IObject>,
|
|
128
|
-
_options?: {
|
|
129
|
-
width: number;
|
|
130
|
-
color: string;
|
|
131
|
-
},
|
|
132
|
-
): LineFromMesh;
|
|
133
|
-
}
|
|
79
|
+
interface IBase {
|
|
80
|
+
app: App;
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
parentId: string;
|
|
84
|
+
objectType: string;
|
|
85
|
+
customNumber: string;
|
|
86
|
+
customType: string;
|
|
87
|
+
baseModel: BaseModel | undefined;
|
|
88
|
+
instance: Mesh | InstancedMesh;
|
|
89
|
+
Sight: Sight;
|
|
90
|
+
loadProperties(_m: any): void;
|
|
91
|
+
bind(): any;
|
|
92
|
+
completed(): any;
|
|
93
|
+
setEnabled(isEnabled: boolean): any;
|
|
94
|
+
toJson(): any;
|
|
95
|
+
getInto(_isFocus?: boolean): any;
|
|
96
|
+
goBack(): any;
|
|
97
|
+
}
|
|
134
98
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
99
|
+
declare enum EventType {
|
|
100
|
+
leftClick = "leftClick",
|
|
101
|
+
rightClick = "rightClick",
|
|
102
|
+
doubleClick = "doubleClick",
|
|
103
|
+
eover = "eover",
|
|
104
|
+
longPress = "longPress",
|
|
105
|
+
out = "out",
|
|
106
|
+
click = "click"
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface IObject extends IBase {
|
|
110
|
+
statusType: StatusType;
|
|
111
|
+
showBoundingBox: boolean;
|
|
112
|
+
optimization(isOptimization: boolean): any;
|
|
113
|
+
setFlash(level: number): any;
|
|
114
|
+
setTransparent(): any;
|
|
115
|
+
setOpaque(): any;
|
|
116
|
+
addEventListener(type: EventType, callback: Function): any;
|
|
117
|
+
removeEventListener(type: EventType): any;
|
|
118
|
+
computeView(): any;
|
|
119
|
+
alwaysActive(): any;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare class CameraController {
|
|
123
|
+
app: App;
|
|
124
|
+
arcRotateCamera: ArcRotateCamera;
|
|
125
|
+
frustrum: number;
|
|
126
|
+
freeCamera: FreeCamera;
|
|
127
|
+
_isAutoRotation: boolean;
|
|
128
|
+
autoRotationSpeed: number;
|
|
129
|
+
constructor(_app: App);
|
|
130
|
+
orthographic(_object?: IBase): void;
|
|
131
|
+
startAutoRotation(_autoRotationSpeed?: number): void;
|
|
132
|
+
stopAutoRotation(): void;
|
|
133
|
+
perspective(_object?: IBase): Promise<void>;
|
|
134
|
+
flyTo(_Sight?: Sight, _sheep?: number): Promise<void>;
|
|
135
|
+
flyToObject(_object: IObject, _sheep?: number): void;
|
|
136
|
+
lookToTheFront(_object: IObject, _sheep?: number): Promise<void>;
|
|
137
|
+
getSightJson(): string;
|
|
138
|
+
private computeCameraView;
|
|
139
|
+
_wheel(p: any): void;
|
|
140
|
+
switchArcRotateCamera(): void;
|
|
141
|
+
switchFPSCamera(): void;
|
|
142
|
+
}
|
|
144
143
|
|
|
145
|
-
|
|
144
|
+
declare class Environment {
|
|
146
145
|
private app;
|
|
147
146
|
private lights;
|
|
148
147
|
private _color;
|
|
@@ -169,1055 +168,446 @@ declare module 'mx3d' {
|
|
|
169
168
|
showFps(cssText?: string): void;
|
|
170
169
|
hideFps(): void;
|
|
171
170
|
showDebug(): void;
|
|
172
|
-
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare class Dictionary<T> {
|
|
174
|
+
map: {
|
|
175
|
+
[key: string]: T;
|
|
176
|
+
};
|
|
177
|
+
constructor();
|
|
178
|
+
add(key: string, value: T): void;
|
|
179
|
+
find(key: string): T;
|
|
180
|
+
remove(key: string): void;
|
|
181
|
+
termRemove(callback: Function): void;
|
|
182
|
+
showAll(): void;
|
|
183
|
+
count(): number;
|
|
184
|
+
clear(): void;
|
|
185
|
+
}
|
|
173
186
|
|
|
174
|
-
|
|
187
|
+
declare class Project {
|
|
188
|
+
private app;
|
|
175
189
|
id: string;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
constructor(
|
|
181
|
-
|
|
182
|
-
|
|
190
|
+
current: IBase;
|
|
191
|
+
root: string;
|
|
192
|
+
levelEvent: Function;
|
|
193
|
+
objectDatas: Dictionary<IBase>;
|
|
194
|
+
constructor(_app: App);
|
|
195
|
+
clear(): void;
|
|
196
|
+
optimization(): void;
|
|
197
|
+
getChildsById(_id: string, _includeSub?: boolean): Array<IBase>;
|
|
198
|
+
getSceneTree(_id?: string, _excludeTypes?: Array<string>): any;
|
|
199
|
+
findObjectById(_id: string): IObject;
|
|
200
|
+
findObjectByCustomNumber(_customNumber: string): IBase;
|
|
201
|
+
findObjectsByCustomType(_customType: string, queryParameters?: {
|
|
202
|
+
isCurrent: boolean;
|
|
203
|
+
isEnabled: boolean;
|
|
204
|
+
}): Array<IObject>;
|
|
205
|
+
findObjectsByType(_type: ObjectType): Array<IBase>;
|
|
206
|
+
computeSight(_objs: Array<IBase>): any;
|
|
207
|
+
switchLevel(_id?: string, _isFocus?: boolean): Promise<void>;
|
|
208
|
+
goBack(): void;
|
|
209
|
+
getObjectTypes(_parentId?: string): Array<ObjectType>;
|
|
210
|
+
getCustomTypes(_parentId?: string): Array<ObjectType>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare class Resources {
|
|
214
|
+
app: App;
|
|
215
|
+
walls: Dictionary<AbstractMesh>;
|
|
216
|
+
resources: Dictionary<AssetContainer>;
|
|
217
|
+
ndoeMats: Dictionary<NodeMaterial>;
|
|
218
|
+
transparentBox: Mesh;
|
|
219
|
+
BOX: Mesh;
|
|
220
|
+
FogTex: Texture;
|
|
221
|
+
wallTop: StandardMaterial;
|
|
222
|
+
constructor(_app: App);
|
|
223
|
+
loadModelMesh(baseModel: any): Promise<AssetContainer>;
|
|
224
|
+
loadModelMeshAsync(baseModel: any, callback: Function): void;
|
|
225
|
+
Materials: Dictionary<StandardMaterial>;
|
|
226
|
+
Textures: Dictionary<Texture>;
|
|
227
|
+
GetMaterial(textureData: any): StandardMaterial;
|
|
228
|
+
GetTexture(textureData: any): Texture;
|
|
229
|
+
LoadLightMap(id: string, name: string): Texture;
|
|
230
|
+
MergeMaterials: Dictionary<CustomMaterial>;
|
|
231
|
+
GetMergeMaterial(textureData: any): CustomMaterial;
|
|
232
|
+
delete(isAll?: boolean): void;
|
|
233
|
+
GetWalls(url: string, projectId: string): Promise<void>;
|
|
234
|
+
setTransparent(_visibility?: number): void;
|
|
235
|
+
setTransparentById(modelId: string, _visibility?: number): void;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
declare class ToolTips {
|
|
239
|
+
app: App;
|
|
240
|
+
url: string;
|
|
241
|
+
ele: HTMLDivElement;
|
|
242
|
+
private _text;
|
|
243
|
+
set text(vlaue: string);
|
|
244
|
+
constructor(_app: App);
|
|
245
|
+
update(e: PointerInfo): void;
|
|
246
|
+
close(): void;
|
|
247
|
+
setBackground(_url: string): void;
|
|
183
248
|
dispose(): void;
|
|
184
|
-
|
|
249
|
+
}
|
|
185
250
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
251
|
+
interface IEvent {
|
|
252
|
+
runRender(): void;
|
|
253
|
+
onPointer(e: PointerInfo): void;
|
|
254
|
+
onKeyboard(e: KeyboardInfo): void;
|
|
255
|
+
registerAfterRender(): void;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare class App {
|
|
259
|
+
canvas: HTMLCanvasElement;
|
|
260
|
+
engine: Engine;
|
|
261
|
+
scene: Scene;
|
|
262
|
+
camera: CameraController;
|
|
263
|
+
iEvent: IEvent;
|
|
264
|
+
highlightLayer: HighlightLayer;
|
|
265
|
+
container: AdvancedDynamicTexture;
|
|
266
|
+
fps: HTMLDivElement;
|
|
267
|
+
resources: Resources;
|
|
268
|
+
environment: Environment;
|
|
269
|
+
project: Project;
|
|
270
|
+
toolTips: ToolTips;
|
|
271
|
+
gl: GlowLayer;
|
|
272
|
+
positionGizmo: PositionGizmo;
|
|
273
|
+
private SM2;
|
|
274
|
+
constructor(_config: {
|
|
275
|
+
container: HTMLElement;
|
|
276
|
+
sl?: string;
|
|
277
|
+
rl?: string;
|
|
278
|
+
});
|
|
279
|
+
load(_config: {
|
|
280
|
+
pk?: string;
|
|
281
|
+
fileUrl?: string;
|
|
282
|
+
isDefaultLevel?: boolean;
|
|
283
|
+
isDefaultMutual?: boolean;
|
|
284
|
+
progress?: Function;
|
|
285
|
+
complete?: Function;
|
|
286
|
+
onError?: Function;
|
|
287
|
+
}): Promise<Error>;
|
|
288
|
+
isDefaultMutual: boolean;
|
|
289
|
+
set defaultMutual(value: boolean);
|
|
290
|
+
dispose(): void;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare class AlarmFlashing {
|
|
294
|
+
static colors: {
|
|
295
|
+
1: Color3;
|
|
296
|
+
2: Color3;
|
|
297
|
+
3: Color3;
|
|
298
|
+
4: Color3;
|
|
299
|
+
5: Color3;
|
|
300
|
+
6: Color3;
|
|
197
301
|
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
color: string;
|
|
209
|
-
top: number;
|
|
210
|
-
left: number;
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
): void;
|
|
214
|
-
line(_line: { width: number; color: string }): void;
|
|
302
|
+
static init(): void;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare class Capacity {
|
|
306
|
+
anchor: IObject;
|
|
307
|
+
mesh: Mesh;
|
|
308
|
+
ratio: number;
|
|
309
|
+
color: string;
|
|
310
|
+
textMesh: Mesh;
|
|
311
|
+
constructor(_object: IObject, RATIO: number);
|
|
215
312
|
dispose(): void;
|
|
216
|
-
|
|
217
|
-
}
|
|
313
|
+
}
|
|
218
314
|
|
|
219
|
-
|
|
315
|
+
interface BaseNode {
|
|
220
316
|
id: string;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
},
|
|
233
|
-
];
|
|
234
|
-
constructor(_id: string, _anchor: Runtime.Vector3, _scaling: number, _height: number, _scene: Runtime.Scene);
|
|
235
|
-
setBackground(_url: string): Promise<unknown>;
|
|
236
|
-
addEventListener(_action: Function): void;
|
|
237
|
-
setColor(color: string): void;
|
|
238
|
-
setContents(
|
|
239
|
-
_textArr: [
|
|
240
|
-
{
|
|
241
|
-
text: string;
|
|
242
|
-
fontSize: string;
|
|
243
|
-
top: number;
|
|
244
|
-
left: number;
|
|
245
|
-
color?: string;
|
|
246
|
-
},
|
|
247
|
-
],
|
|
248
|
-
): Promise<unknown>;
|
|
249
|
-
dispose(): void;
|
|
317
|
+
dispose(): any;
|
|
318
|
+
isEnabled(bool: boolean): any;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare class HeatMap implements BaseNode {
|
|
322
|
+
id: string;
|
|
323
|
+
anchor: IObject;
|
|
324
|
+
mesh: Mesh;
|
|
325
|
+
displayValue: boolean;
|
|
326
|
+
texts: Array<TextBlock>;
|
|
327
|
+
constructor(_anchor: IObject);
|
|
250
328
|
isEnabled(_bool: boolean): void;
|
|
251
|
-
|
|
329
|
+
set displayValues(_value: boolean);
|
|
330
|
+
dispose(): void;
|
|
331
|
+
}
|
|
252
332
|
|
|
253
|
-
|
|
333
|
+
declare class LineFromMesh {
|
|
254
334
|
id: string;
|
|
255
335
|
objs: Array<IObject>;
|
|
256
|
-
instance:
|
|
336
|
+
instance: Mesh;
|
|
257
337
|
color: string;
|
|
258
338
|
width: number;
|
|
259
|
-
isDotted: boolean;
|
|
260
339
|
update(): void;
|
|
261
340
|
addEventListener(_action: Function): void;
|
|
262
341
|
isEnabled(_isEnabled: boolean): void;
|
|
263
342
|
dispose(): void;
|
|
264
|
-
|
|
343
|
+
}
|
|
265
344
|
|
|
266
|
-
|
|
345
|
+
declare class Line {
|
|
267
346
|
id: string;
|
|
268
347
|
objs: Array<IObject>;
|
|
269
|
-
instance:
|
|
348
|
+
instance: MultiLine;
|
|
270
349
|
color: string;
|
|
271
350
|
width: number;
|
|
351
|
+
isDotted: boolean;
|
|
272
352
|
update(): void;
|
|
273
353
|
addEventListener(_action: Function): void;
|
|
274
354
|
isEnabled(_isEnabled: boolean): void;
|
|
275
355
|
dispose(): void;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
enum StatusType {
|
|
279
|
-
Opaque = 0,
|
|
280
|
-
Flash = 1,
|
|
281
|
-
Transparent = 2,
|
|
282
|
-
}
|
|
356
|
+
}
|
|
283
357
|
|
|
284
|
-
|
|
285
|
-
static
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
358
|
+
declare class Builder {
|
|
359
|
+
static createMatrixCloud(_data: {
|
|
360
|
+
anchor: IObject;
|
|
361
|
+
value: {
|
|
362
|
+
maxX: number;
|
|
363
|
+
maxY: number;
|
|
364
|
+
data: Array<{
|
|
365
|
+
x: number;
|
|
366
|
+
y: number;
|
|
367
|
+
value: number;
|
|
368
|
+
}>;
|
|
369
|
+
};
|
|
370
|
+
displayValues: boolean;
|
|
291
371
|
height: number;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
Thunder = 'Thunder',
|
|
346
|
-
Rain = 'Rain',
|
|
347
|
-
Cloud = 'Cloud',
|
|
348
|
-
}
|
|
349
|
-
export class Effect {
|
|
350
|
-
static effects: Dictionary<IEffect>;
|
|
351
|
-
static add(_effectType: EffectType, _app: App): void;
|
|
352
|
-
static remove(_effectType: EffectType): void;
|
|
353
|
-
static removeAll(): void;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
interface IEffect {
|
|
357
|
-
start: Function;
|
|
358
|
-
close: Function;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
export class RainEffect implements IEffect {
|
|
362
|
-
app: App;
|
|
363
|
-
rainNum: number;
|
|
364
|
-
canvas: HTMLCanvasElement;
|
|
365
|
-
canvasRainCtx: CanvasRenderingContext2D;
|
|
366
|
-
rains: Array<Rain>;
|
|
367
|
-
X: number;
|
|
368
|
-
Y: number;
|
|
369
|
-
constructor(_app: App);
|
|
370
|
-
start(): void;
|
|
371
|
-
close(): void;
|
|
372
|
-
render(): void;
|
|
373
|
-
clearCanvasRain(): void;
|
|
374
|
-
}
|
|
375
|
-
export class Rain {
|
|
376
|
-
rainSpeed: number;
|
|
377
|
-
ctx: CanvasRenderingContext2D;
|
|
378
|
-
Y: number;
|
|
379
|
-
x: number;
|
|
380
|
-
y: number;
|
|
381
|
-
r: number;
|
|
382
|
-
c: string;
|
|
383
|
-
v: {
|
|
384
|
-
y: number;
|
|
385
|
-
};
|
|
386
|
-
constructor(ctx: any, x: any, y: any, r: any, _Y: any);
|
|
387
|
-
init(x: number, y: number, r: number): void;
|
|
388
|
-
draw(): void;
|
|
389
|
-
updatePosition(): void;
|
|
390
|
-
wrapPosition(): void;
|
|
391
|
-
render(): void;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export class ThunderEffect implements IEffect {
|
|
395
|
-
app: App;
|
|
396
|
-
thunderNum: number;
|
|
397
|
-
canvas: HTMLCanvasElement;
|
|
398
|
-
canvasThunderCtx: CanvasRenderingContext2D;
|
|
399
|
-
thunders: Array<Thunder>;
|
|
400
|
-
X: number;
|
|
401
|
-
Y: number;
|
|
402
|
-
constructor(_app: App);
|
|
403
|
-
start(): void;
|
|
404
|
-
close(): void;
|
|
405
|
-
render(): void;
|
|
406
|
-
clearCanvasThunder(): void;
|
|
407
|
-
}
|
|
408
|
-
export class Thunder {
|
|
409
|
-
ctx: CanvasRenderingContext2D;
|
|
410
|
-
x: number;
|
|
411
|
-
y: number;
|
|
412
|
-
r: number;
|
|
413
|
-
l: any;
|
|
414
|
-
c: string;
|
|
415
|
-
Y: number;
|
|
416
|
-
X: number;
|
|
417
|
-
constructor(ctx: any, x: any, y: any, r: any, _X: any, _Y: any);
|
|
418
|
-
init(x: number, y: number, r: number): void;
|
|
419
|
-
draw(): void;
|
|
420
|
-
updateParams(): void;
|
|
421
|
-
render(): void;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export class DefaultEvent implements IEvent {
|
|
425
|
-
app: App;
|
|
426
|
-
isMove: number;
|
|
427
|
-
waitingTime: number;
|
|
428
|
-
touchtime: number;
|
|
429
|
-
constructor(_app: App);
|
|
430
|
-
registerAfterRender(): void;
|
|
431
|
-
runRender(): void;
|
|
432
|
-
onPointer(pointerInfo: Runtime.PointerInfo): void;
|
|
433
|
-
onKeyboard(kbInfo: Runtime.KeyboardInfo): void;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
enum EventType {
|
|
437
|
-
leftClick = 'leftClick',
|
|
438
|
-
rightClick = 'rightClick',
|
|
439
|
-
doubleClick = 'doubleClick',
|
|
440
|
-
eover = 'eover',
|
|
441
|
-
longPress = 'longPress',
|
|
442
|
-
out = 'out',
|
|
443
|
-
click = 'click',
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export class FPSCameraEvent implements IEvent {
|
|
447
|
-
app: App;
|
|
448
|
-
isFPS: boolean;
|
|
449
|
-
angle: number;
|
|
450
|
-
direction: Runtime.Vector3;
|
|
451
|
-
isMoveLeft: boolean;
|
|
452
|
-
isMoveRight: boolean;
|
|
453
|
-
isMoveDown: boolean;
|
|
454
|
-
isMoveUp: boolean;
|
|
455
|
-
constructor(_app: App);
|
|
456
|
-
registerAfterRender(): void;
|
|
457
|
-
runRender(): void;
|
|
458
|
-
onPointer(pointerInfo: Runtime.PointerInfo): void;
|
|
459
|
-
onKeyboard(_e: Runtime.KeyboardInfo): void;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
interface IEvent {
|
|
463
|
-
runRender(): void;
|
|
464
|
-
onPointer(e: Runtime.PointerInfo): void;
|
|
465
|
-
onKeyboard(e: Runtime.KeyboardInfo): void;
|
|
466
|
-
registerAfterRender(): void;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
export class ElectricMap {
|
|
470
|
-
private container;
|
|
471
|
-
private engine;
|
|
472
|
-
private scene;
|
|
473
|
-
private camera;
|
|
474
|
-
private modelUrl;
|
|
475
|
-
private dataUrl;
|
|
476
|
-
private maxPotential;
|
|
477
|
-
private minPotential;
|
|
478
|
-
private colors;
|
|
479
|
-
private sphere;
|
|
480
|
-
private boxs;
|
|
481
|
-
constructor(_container: HTMLCanvasElement, _modelUrl: string, _dataUrl: string);
|
|
482
|
-
load(): Promise<void>;
|
|
483
|
-
private laodData;
|
|
484
|
-
private generateGridCubesFromBoundingBox;
|
|
485
|
-
private valueToColor;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export class ElectricMap {
|
|
489
|
-
private container;
|
|
490
|
-
private engine;
|
|
491
|
-
private scene;
|
|
492
|
-
private camera;
|
|
493
|
-
private modelUrl;
|
|
494
|
-
private dataUrl;
|
|
495
|
-
private maxPotential;
|
|
496
|
-
private minPotential;
|
|
497
|
-
private colors;
|
|
498
|
-
private sphere;
|
|
499
|
-
private outModel;
|
|
500
|
-
private outModel1;
|
|
501
|
-
constructor(_container: HTMLCanvasElement, _modelUrl: string, _dataUrl: string);
|
|
502
|
-
load(): Promise<void>;
|
|
503
|
-
setBuffer(index?: number): void;
|
|
504
|
-
screenshot(): Promise<void>;
|
|
505
|
-
private laodData;
|
|
506
|
-
private valueToColor;
|
|
507
|
-
}
|
|
372
|
+
isLevelRender: boolean;
|
|
373
|
+
isAlpha: boolean;
|
|
374
|
+
isParticle: boolean;
|
|
375
|
+
radius: number;
|
|
376
|
+
range: {
|
|
377
|
+
max: number;
|
|
378
|
+
min: number;
|
|
379
|
+
};
|
|
380
|
+
}): HeatMap;
|
|
381
|
+
private static _getMatrixParticleTex;
|
|
382
|
+
static createPunctateCloud(_data: {
|
|
383
|
+
anchor: IObject;
|
|
384
|
+
value: number;
|
|
385
|
+
radius: number;
|
|
386
|
+
isLevelRender: boolean;
|
|
387
|
+
displayValues: boolean;
|
|
388
|
+
isAlpha: boolean;
|
|
389
|
+
isParticle: boolean;
|
|
390
|
+
range: {
|
|
391
|
+
max: number;
|
|
392
|
+
min: number;
|
|
393
|
+
};
|
|
394
|
+
}): HeatMap;
|
|
395
|
+
static createColumnCloud(_data: {
|
|
396
|
+
anchor: IObject;
|
|
397
|
+
data: Array<{
|
|
398
|
+
index: number;
|
|
399
|
+
value: number;
|
|
400
|
+
}>;
|
|
401
|
+
isLevelRender: boolean;
|
|
402
|
+
displayValues: boolean;
|
|
403
|
+
isAlpha: boolean;
|
|
404
|
+
isParticle: boolean;
|
|
405
|
+
radius: number;
|
|
406
|
+
range: {
|
|
407
|
+
max: number;
|
|
408
|
+
min: number;
|
|
409
|
+
};
|
|
410
|
+
}): HeatMap;
|
|
411
|
+
private static _getColumnarParticleTex;
|
|
412
|
+
private static createTempVlaue;
|
|
413
|
+
static createCapacity(obj: IObject, RATIO: number, _text: string, _fontSize?: string): Capacity;
|
|
414
|
+
static createTextMesh(obj: IObject, _text: string, RATIO: number, _fontSize?: string, _color?: string): Mesh;
|
|
415
|
+
static create2DLine(_id: string, _objs: Array<IObject>, _options?: {
|
|
416
|
+
width: number;
|
|
417
|
+
color: string;
|
|
418
|
+
isDotted: boolean;
|
|
419
|
+
}): Line;
|
|
420
|
+
static create3DLine(_id: string, _objs: Array<IObject>, _options?: {
|
|
421
|
+
width: number;
|
|
422
|
+
color: string;
|
|
423
|
+
}): LineFromMesh;
|
|
424
|
+
}
|
|
508
425
|
|
|
509
|
-
|
|
426
|
+
declare class Icon implements BaseNode {
|
|
510
427
|
id: string;
|
|
511
|
-
type: 'custom';
|
|
512
|
-
renderingMode?: '3d' | '2d';
|
|
513
|
-
map: Map;
|
|
514
|
-
worldMatrix: Matrix;
|
|
515
|
-
camera: Camera;
|
|
516
428
|
scene: Scene;
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
positionGizmo: PositionGizmo;
|
|
526
|
-
constructor(_map: Map, _worldMatrix: Matrix);
|
|
527
|
-
render(gl: any, matrix: any): void;
|
|
528
|
-
onAdd(map: Map, gl: WebGLRenderingContext | WebGL2RenderingContext): Promise<void>;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
export class CoordinateConverter {
|
|
532
|
-
private sourceProjection;
|
|
533
|
-
private targetProjection;
|
|
534
|
-
private originXY;
|
|
535
|
-
private translationVector;
|
|
536
|
-
private rotationAngle;
|
|
537
|
-
constructor(originLonLat: [number, number], originXY: Vector2, rotationAngle: number);
|
|
538
|
-
lonLatToXY(lonLat: [number, number]): Vector2;
|
|
539
|
-
xyToLonLat(xy: Vector2): [number, number];
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
export class GeoJsonLayer {
|
|
543
|
-
static convert(container: HTMLElement): Promise<void>;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
export class GisLayer {
|
|
547
|
-
map: maplibregl.Map;
|
|
548
|
-
worldOrigin: maplibregl.LngLatLike;
|
|
549
|
-
worldAltitude: number;
|
|
550
|
-
worldRotate: number[];
|
|
551
|
-
MAPTILER_KEY: string;
|
|
552
|
-
WEBGLLayer: BABYLONLayer;
|
|
553
|
-
constructor(container: HTMLElement);
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
export class HubService {
|
|
557
|
-
static connection: any;
|
|
558
|
-
static listener(_Url: string): Promise<void>;
|
|
559
|
-
static start(): Promise<void>;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
export class Directional extends LightObject {
|
|
563
|
-
direction: Runtime.Vector3;
|
|
564
|
-
position: Runtime.Vector3;
|
|
565
|
-
light: Runtime.DirectionalLight;
|
|
566
|
-
load(): void;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export class Hemispheric extends LightObject {
|
|
570
|
-
direction: Runtime.Vector3;
|
|
571
|
-
light: Runtime.HemisphericLight;
|
|
572
|
-
load(): void;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
interface ILightObject {
|
|
576
|
-
id: string;
|
|
577
|
-
sceneId: string;
|
|
578
|
-
name: string;
|
|
579
|
-
light: Runtime.Light;
|
|
580
|
-
color: string;
|
|
581
|
-
lightType: string;
|
|
582
|
-
intensity: number;
|
|
583
|
-
load: Function;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
export class LightObject implements ILightObject {
|
|
587
|
-
id: string;
|
|
588
|
-
sceneId: string;
|
|
589
|
-
name: string;
|
|
590
|
-
light: Runtime.Light;
|
|
591
|
-
color: string;
|
|
592
|
-
objectType: string;
|
|
593
|
-
lightType: string;
|
|
594
|
-
intensity: number;
|
|
595
|
-
app: App;
|
|
596
|
-
constructor(_app: App);
|
|
597
|
-
load(): void;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
enum LightType {
|
|
601
|
-
Point = 'Point',
|
|
602
|
-
Spot = 'Spot',
|
|
603
|
-
Directional = 'Directional',
|
|
604
|
-
Hemispheric = 'Hemispheric',
|
|
605
|
-
}
|
|
606
|
-
declare let typeFromat: Function;
|
|
607
|
-
typeFromat;
|
|
608
|
-
|
|
609
|
-
export class Point extends LightObject {
|
|
610
|
-
position: Runtime.Vector3;
|
|
611
|
-
light: Runtime.PointLight;
|
|
612
|
-
range: number;
|
|
613
|
-
load(): void;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
export class Spot extends LightObject {
|
|
617
|
-
direction: Runtime.Vector3;
|
|
618
|
-
position: Runtime.Vector3;
|
|
619
|
-
angle: number;
|
|
620
|
-
exponent: number;
|
|
621
|
-
range: number;
|
|
622
|
-
light: Runtime.SpotLight;
|
|
623
|
-
load(): void;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
export class MJGLLoader {
|
|
627
|
-
static load(app: App, _data: any, progress?: Function): Promise<void>;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
export class Mx3dLoader {
|
|
631
|
-
static load(app: App, _data: any, progress?: Function): Promise<void>;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
export class Mx3dV1Loader {
|
|
635
|
-
static load(app: App, _data: any, progress?: Function): Promise<void>;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export class BaseModel {
|
|
639
|
-
extension: string;
|
|
640
|
-
groupId: string;
|
|
641
|
-
heat: number;
|
|
642
|
-
height: number;
|
|
643
|
-
insertTime: string;
|
|
644
|
-
isTiling: boolean;
|
|
645
|
-
length: number;
|
|
646
|
-
modelId: string;
|
|
647
|
-
modelName: string;
|
|
648
|
-
modelType: ObjectType;
|
|
649
|
-
modelTypeName: string;
|
|
650
|
-
width: number;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
export class BuildingObject extends DefaultObject {
|
|
654
|
-
completed(): void;
|
|
655
|
-
getInto(_isFocus?: boolean): void;
|
|
656
|
-
goBack(): void;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
export class CabinetObject extends DefaultObject {
|
|
660
|
-
rack: Runtime.Mesh | Runtime.InstancedMesh;
|
|
661
|
-
computeView(): void;
|
|
662
|
-
setEnabled(_value: boolean): void;
|
|
663
|
-
bind(): void;
|
|
664
|
-
loadRacks(_data: Array<RackModel>): void;
|
|
665
|
-
unloadRacks(): void;
|
|
666
|
-
open(): void;
|
|
667
|
-
close(): void;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
export class CampusObject extends IRegion {
|
|
671
|
-
position: Runtime.Vector3;
|
|
672
|
-
rotation: Runtime.Vector3;
|
|
673
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
674
|
-
removeEventListener(_type: string): void;
|
|
675
|
-
setEnabled(_isEnabled: boolean): void;
|
|
676
|
-
loadProperties(_m: any): void;
|
|
677
|
-
bind(): void;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
export class ConduitObject extends DefaultObject {
|
|
681
|
-
alpha: number;
|
|
682
|
-
color: string;
|
|
683
|
-
pints: Runtime.Vector3[];
|
|
684
|
-
radius: number;
|
|
685
|
-
loadProperties(_m: any): void;
|
|
686
|
-
setEnabled(_value: boolean): void;
|
|
687
|
-
bind(): void;
|
|
688
|
-
setColor(_color?: string): void;
|
|
689
|
-
reColor(): void;
|
|
690
|
-
computeView(): void;
|
|
691
|
-
setFlash(_level?: number): void;
|
|
692
|
-
setOpaque(): void;
|
|
693
|
-
setTransparent(alpha?: number): void;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
export class CornerObject implements IObject {
|
|
697
|
-
app: App;
|
|
698
|
-
id: string;
|
|
699
|
-
name: string;
|
|
700
|
-
parentId: string;
|
|
701
|
-
objectType: string;
|
|
702
|
-
height: number;
|
|
703
|
-
customNumber: string;
|
|
704
|
-
customType: string;
|
|
705
|
-
instance: Runtime.Mesh | Runtime.InstancedMesh;
|
|
706
|
-
Sight: Sight;
|
|
707
|
-
statusType: StatusType;
|
|
708
|
-
showBoundingBox: boolean;
|
|
709
|
-
pints: any;
|
|
710
|
-
constructor(_app: App);
|
|
711
|
-
getInto(): void;
|
|
712
|
-
goBack(): void;
|
|
713
|
-
baseModel: baseModel;
|
|
714
|
-
loadProperties(_m: any): void;
|
|
715
|
-
alwaysActive(): void;
|
|
716
|
-
optimization(_isOptimization: boolean): void;
|
|
717
|
-
setFlash(_level: number): void;
|
|
718
|
-
setEnabled(isEnabled: any): void;
|
|
719
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
720
|
-
removeEventListener(_type: string): void;
|
|
721
|
-
computeView(): void;
|
|
722
|
-
bind(): boolean;
|
|
723
|
-
toJson(): {
|
|
724
|
-
id: string;
|
|
725
|
-
parentId: string;
|
|
726
|
-
name: string;
|
|
727
|
-
customNumber: string;
|
|
728
|
-
customType: string;
|
|
729
|
-
objectType: string;
|
|
730
|
-
};
|
|
731
|
-
completed(): void;
|
|
732
|
-
setOpaque(): void;
|
|
733
|
-
setTransparent(): void;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
export class DefaultObject implements IObject {
|
|
737
|
-
app: App;
|
|
738
|
-
id: string;
|
|
739
|
-
name: string;
|
|
740
|
-
customNumber: string;
|
|
741
|
-
customType: string;
|
|
742
|
-
parentId: string;
|
|
743
|
-
baseModel: baseModel;
|
|
744
|
-
instance: Runtime.Mesh | Runtime.InstancedMesh;
|
|
745
|
-
objectType: string;
|
|
746
|
-
action: Runtime.ActionManager;
|
|
747
|
-
executes: Dictionary<Runtime.ExecuteCodeAction>;
|
|
748
|
-
clickEvents: Dictionary<Function>;
|
|
749
|
-
touchtime: number;
|
|
750
|
-
statusType: StatusType;
|
|
751
|
-
Sight: Sight;
|
|
752
|
-
animation: boolean;
|
|
753
|
-
isLoop: boolean;
|
|
754
|
-
isAutoPlay: boolean;
|
|
755
|
-
position: Runtime.Vector3;
|
|
756
|
-
rotation: Runtime.Vector3;
|
|
757
|
-
scaling: Runtime.Vector3;
|
|
758
|
-
constructor(_app: App);
|
|
759
|
-
loadProperties(_m: any): void;
|
|
760
|
-
setEnabled(_value: boolean): void;
|
|
761
|
-
set showBoundingBox(_value: boolean);
|
|
762
|
-
get showBoundingBox(): boolean;
|
|
763
|
-
set isPickable(_value: boolean);
|
|
764
|
-
get isPickable(): boolean;
|
|
765
|
-
bind(): void;
|
|
766
|
-
completed(): void;
|
|
767
|
-
computeView(): void;
|
|
768
|
-
optimization(_isOptimization: boolean): void;
|
|
769
|
-
alwaysActive(): void;
|
|
770
|
-
addEventListener(type: EventType, callback: Function): void;
|
|
771
|
-
removeEventListener(type: string): void;
|
|
772
|
-
setFlash(_level: number): void;
|
|
773
|
-
setOpaque(): void;
|
|
774
|
-
setTransparent(alpha?: number, enableEdges?: boolean): void;
|
|
775
|
-
setColor(_color?: string): void;
|
|
776
|
-
play(): void;
|
|
777
|
-
stop(): void;
|
|
778
|
-
toJson(): {
|
|
779
|
-
id: string;
|
|
780
|
-
parentId: string;
|
|
781
|
-
name: string;
|
|
782
|
-
customNumber: string;
|
|
783
|
-
customType: string;
|
|
784
|
-
objectType: string;
|
|
429
|
+
pint: Mesh;
|
|
430
|
+
private textDics;
|
|
431
|
+
private _line;
|
|
432
|
+
rect: Rectangle;
|
|
433
|
+
private _background;
|
|
434
|
+
size: {
|
|
435
|
+
width: number;
|
|
436
|
+
height: number;
|
|
785
437
|
};
|
|
786
|
-
getInto(): void;
|
|
787
|
-
goBack(): void;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
export class DoorObject extends DefaultObject {
|
|
791
438
|
height: number;
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
loadProperties(_m: any): void;
|
|
810
|
-
bind(): void;
|
|
811
|
-
completed(): void;
|
|
439
|
+
container: AdvancedDynamicTexture;
|
|
440
|
+
constructor(_id: string, _scene: Scene);
|
|
441
|
+
set background(_url: string);
|
|
442
|
+
addEventListener(_action: Function): void;
|
|
443
|
+
setTexts(_textArr: [{
|
|
444
|
+
text: string;
|
|
445
|
+
fontSize: string;
|
|
446
|
+
color: string;
|
|
447
|
+
top: number;
|
|
448
|
+
left: number;
|
|
449
|
+
}]): void;
|
|
450
|
+
line(_line: {
|
|
451
|
+
width: number;
|
|
452
|
+
color: string;
|
|
453
|
+
}): void;
|
|
454
|
+
dispose(): void;
|
|
455
|
+
isEnabled(_isEnabled: boolean): void;
|
|
812
456
|
setEnabled(_isEnabled: boolean): void;
|
|
813
|
-
|
|
814
|
-
id: string;
|
|
815
|
-
parentId: string;
|
|
816
|
-
name: string;
|
|
817
|
-
objectType: string;
|
|
818
|
-
};
|
|
819
|
-
getInto(_isFocus?: boolean): void;
|
|
820
|
-
goBack(): void;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
export class FloorObject extends DefaultObject {
|
|
824
|
-
height: number;
|
|
825
|
-
vectors: Runtime.Vector3[];
|
|
826
|
-
buckles: Runtime.Vector3[][];
|
|
827
|
-
loadProperties(_m: any): void;
|
|
828
|
-
setEnabled(_value: boolean): void;
|
|
829
|
-
bind(): void;
|
|
830
|
-
computeView(): void;
|
|
831
|
-
setOpaque(): void;
|
|
832
|
-
}
|
|
457
|
+
}
|
|
833
458
|
|
|
834
|
-
|
|
835
|
-
app: App;
|
|
459
|
+
declare class IconFromMesh implements BaseNode {
|
|
836
460
|
id: string;
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
computeView(): any;
|
|
864
|
-
alwaysActive(): any;
|
|
865
|
-
}
|
|
461
|
+
scene: Scene;
|
|
462
|
+
instance: Mesh;
|
|
463
|
+
url: string;
|
|
464
|
+
scaling: number;
|
|
465
|
+
textArr: [{
|
|
466
|
+
text: string;
|
|
467
|
+
fontSize: string;
|
|
468
|
+
top: number;
|
|
469
|
+
left: number;
|
|
470
|
+
color?: string;
|
|
471
|
+
}];
|
|
472
|
+
constructor(_id: string, _anchor: Vector3, _scaling: number, _height: number, _scene: Scene);
|
|
473
|
+
setBackground(_url: string): Promise<unknown>;
|
|
474
|
+
addEventListener(_action: Function): void;
|
|
475
|
+
setColor(color: string): void;
|
|
476
|
+
setContents(_textArr: [{
|
|
477
|
+
text: string;
|
|
478
|
+
fontSize: string;
|
|
479
|
+
top: number;
|
|
480
|
+
left: number;
|
|
481
|
+
color?: string;
|
|
482
|
+
}]): Promise<unknown>;
|
|
483
|
+
dispose(): void;
|
|
484
|
+
isEnabled(_bool: boolean): void;
|
|
485
|
+
setEnabled(_bool: boolean): void;
|
|
486
|
+
}
|
|
866
487
|
|
|
867
|
-
|
|
868
|
-
app: App;
|
|
488
|
+
declare class HtmlFromMesh {
|
|
869
489
|
id: string;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
action: Runtime.ActionManager;
|
|
885
|
-
executes: Dictionary<Runtime.ExecuteCodeAction>;
|
|
886
|
-
clickEvents: Dictionary<Function>;
|
|
887
|
-
touchtime: number;
|
|
888
|
-
constructor(_app: App);
|
|
889
|
-
loadProperties(_m: any): void;
|
|
890
|
-
bind(): void;
|
|
891
|
-
completed(): void;
|
|
490
|
+
scene: Scene;
|
|
491
|
+
private instance;
|
|
492
|
+
private scaling;
|
|
493
|
+
private anchor;
|
|
494
|
+
private material;
|
|
495
|
+
/**
|
|
496
|
+
* @param _id 图标编号、自定义
|
|
497
|
+
* @param _scaling 大小
|
|
498
|
+
* @param _anchor 锚点坐标
|
|
499
|
+
* @param _scene 场景
|
|
500
|
+
*/
|
|
501
|
+
constructor(_id: string, _scaling: number, _anchor: Vector3, _scene: Scene);
|
|
502
|
+
setContent(_html: HTMLDivElement): Promise<void>;
|
|
503
|
+
addEventListener(_action: Function): void;
|
|
892
504
|
setEnabled(_isEnabled: boolean): void;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
load(isOptimized: boolean, _objs: Array<any>): void;
|
|
896
|
-
toJson(): {
|
|
897
|
-
id: string;
|
|
898
|
-
parentId: string;
|
|
899
|
-
name: string;
|
|
900
|
-
customNumber: string;
|
|
901
|
-
customType: string;
|
|
902
|
-
objectType: string;
|
|
903
|
-
index: number;
|
|
904
|
-
layerHeight: number;
|
|
905
|
-
layerName: string;
|
|
906
|
-
};
|
|
907
|
-
computeView(): void;
|
|
908
|
-
getInto(): void;
|
|
909
|
-
goBack(): void;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export class LeakWaterObject extends DefaultObject {
|
|
913
|
-
lines: Runtime.Vector3[];
|
|
914
|
-
loadProperties(_l: any): void;
|
|
915
|
-
setEnabled(_value: boolean): void;
|
|
916
|
-
bind(): void;
|
|
917
|
-
completed(): void;
|
|
918
|
-
computeView(): void;
|
|
919
|
-
addEventListener(type: string, callback: Function): void;
|
|
920
|
-
removeEventListener(type: string): void;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
enum ObjectType {
|
|
924
|
-
Cabinet = 'Cabinet',
|
|
925
|
-
RackModel = 'RackModel',
|
|
926
|
-
Corner = 'Corner',
|
|
927
|
-
Other = 'Other',
|
|
928
|
-
Door = 'Door',
|
|
929
|
-
Floor = 'Floor',
|
|
930
|
-
LeakWater = 'LeakWater',
|
|
931
|
-
UI3D = 'UI3D',
|
|
932
|
-
VirtualBox = 'VirtualBox',
|
|
933
|
-
Wall = 'Wall',
|
|
934
|
-
Window = 'Window',
|
|
935
|
-
Conduit = 'Conduit',
|
|
936
|
-
Building = 'Building',
|
|
937
|
-
Storey = 'Storey',
|
|
938
|
-
Campus = 'Campus',
|
|
939
|
-
Project = 'Project',
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
export class OptimizedWallObject extends DefaultObject {
|
|
943
|
-
nativeMaterial: Runtime.StandardMaterial;
|
|
944
|
-
loadProperties(_w: any): void;
|
|
945
|
-
bind(): void;
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
export class Project {
|
|
949
|
-
private app;
|
|
950
|
-
id: string;
|
|
951
|
-
current: IBase;
|
|
952
|
-
root: string;
|
|
953
|
-
levelEvent: Function;
|
|
954
|
-
objectDatas: Dictionary<IBase>;
|
|
955
|
-
constructor(_app: App);
|
|
956
|
-
clear(): void;
|
|
957
|
-
optimization(): void;
|
|
958
|
-
getChildsById(_id: string, _includeSub?: boolean): Array<IBase>;
|
|
959
|
-
getSceneTree(_id?: string, _excludeTypes?: Array<string>): any;
|
|
960
|
-
findObjectById(_id: string): IBase;
|
|
961
|
-
findObjectByCustomNumber(_customNumber: string): IBase;
|
|
962
|
-
findObjectsByCustomType(
|
|
963
|
-
_customType: string,
|
|
964
|
-
queryParameters?: {
|
|
965
|
-
isCurrent: boolean;
|
|
966
|
-
isEnabled: boolean;
|
|
967
|
-
},
|
|
968
|
-
): Array<IBase>;
|
|
969
|
-
findObjectsByType(_type: ObjectType): Array<IBase>;
|
|
970
|
-
computeSight(_objs: Array<IBase>): any;
|
|
971
|
-
switchLevel(_id?: string, _isFocus?: boolean): void;
|
|
972
|
-
goBack(): void;
|
|
973
|
-
getObjectTypes(_parentId?: string): Array<ObjectType>;
|
|
974
|
-
getCustomTypes(_parentId?: string): Array<ObjectType>;
|
|
975
|
-
}
|
|
505
|
+
dispose(): void;
|
|
506
|
+
}
|
|
976
507
|
|
|
977
|
-
|
|
508
|
+
declare class HtmlFromIcon {
|
|
978
509
|
id: string;
|
|
979
|
-
name: string;
|
|
980
|
-
uHeight: number;
|
|
981
|
-
uStart: number;
|
|
982
|
-
color: string;
|
|
983
|
-
frontImgUrl: string;
|
|
984
|
-
backImgUrl: string;
|
|
985
|
-
direction: boolean;
|
|
986
|
-
width: number;
|
|
987
|
-
depth: number;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
export class RackObject implements IObject {
|
|
991
510
|
app: App;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
uStart: number;
|
|
1009
|
-
color: string;
|
|
1010
|
-
frontImgUrl: string;
|
|
1011
|
-
backImgUrl: string;
|
|
1012
|
-
direction: boolean;
|
|
1013
|
-
width: number;
|
|
1014
|
-
depth: number;
|
|
1015
|
-
constructor(_app: App, _parentId: string);
|
|
1016
|
-
setEnabled(isEnabled: boolean): void;
|
|
1017
|
-
loadProperties(_m: RackModel): void;
|
|
1018
|
-
bind(): void;
|
|
1019
|
-
optimization(_isOptimization: boolean): void;
|
|
1020
|
-
alwaysActive(): void;
|
|
1021
|
-
addEventListener(type: EventType, callback: Function): void;
|
|
1022
|
-
removeEventListener(type: string): void;
|
|
1023
|
-
setFlash(_level: number): void;
|
|
1024
|
-
setOpaque(): void;
|
|
1025
|
-
setTransparent(alpha?: number): void;
|
|
1026
|
-
setColor(_color?: string): void;
|
|
1027
|
-
computeView(): void;
|
|
1028
|
-
completed(): void;
|
|
1029
|
-
toJson(): {
|
|
1030
|
-
id: string;
|
|
1031
|
-
parentId: string;
|
|
1032
|
-
name: string;
|
|
1033
|
-
customNumber: string;
|
|
1034
|
-
customType: string;
|
|
1035
|
-
objectType: ObjectType;
|
|
1036
|
-
};
|
|
1037
|
-
getInto(): void;
|
|
1038
|
-
goBack(): void;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
export class StoreyObject extends IRegion {
|
|
1042
|
-
scaling: Runtime.Vector3;
|
|
1043
|
-
autoSight: boolean;
|
|
1044
|
-
loadProperties(_m: any): void;
|
|
1045
|
-
bind(): void;
|
|
1046
|
-
alwaysActive(): void;
|
|
1047
|
-
completed(): void;
|
|
1048
|
-
computeView(): void;
|
|
1049
|
-
getInto(_isFocus?: boolean): void;
|
|
1050
|
-
}
|
|
511
|
+
private instance;
|
|
512
|
+
private scaling;
|
|
513
|
+
private anchor;
|
|
514
|
+
private _background;
|
|
515
|
+
/**
|
|
516
|
+
* @param _id 图标编号、自定义
|
|
517
|
+
* @param _scaling 大小
|
|
518
|
+
* @param _anchor 锚点坐标
|
|
519
|
+
* @param _scene 场景
|
|
520
|
+
*/
|
|
521
|
+
constructor(_id: string, _scaling: number, _anchor: Vector3, _app: App);
|
|
522
|
+
setContent(_html: HTMLDivElement): Promise<void>;
|
|
523
|
+
addEventListener(_action: Function): void;
|
|
524
|
+
setEnabled(_isEnabled: boolean): void;
|
|
525
|
+
dispose(): void;
|
|
526
|
+
}
|
|
1051
527
|
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
528
|
+
declare class UI {
|
|
529
|
+
static createIconFromMesh(_id: string, _anchor: IObject, _scaling: number, _height: number): IconFromMesh;
|
|
530
|
+
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
531
|
+
width: number;
|
|
532
|
+
height: number;
|
|
533
|
+
}, _height: number): Icon;
|
|
534
|
+
/**
|
|
535
|
+
* @param _id 自定义
|
|
536
|
+
* @param _anchor 锚点物体,挂载到哪个模型上
|
|
537
|
+
* @param _scaling 大小
|
|
538
|
+
* @param _height 离物体中心点位置
|
|
539
|
+
* @returns
|
|
540
|
+
*/
|
|
541
|
+
static createHtmlFromMesh(_id: string, _anchor: IObject, _scaling: number, _height: number): HtmlFromMesh;
|
|
542
|
+
static createHtmlFromIcon(_id: string, _anchor: IObject, _scaling: number, _height: number): HtmlFromIcon;
|
|
543
|
+
}
|
|
1065
544
|
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
isEdges: boolean;
|
|
1071
|
-
edgesWidth: number;
|
|
1072
|
-
edgesColor: Runtime.Color4;
|
|
1073
|
-
loadProperties(_m: any): void;
|
|
1074
|
-
setEnabled(_value: boolean): void;
|
|
1075
|
-
bind(): void;
|
|
1076
|
-
}
|
|
545
|
+
interface IEffect {
|
|
546
|
+
start: Function;
|
|
547
|
+
close: Function;
|
|
548
|
+
}
|
|
1077
549
|
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
550
|
+
declare enum EffectType {
|
|
551
|
+
Thunder = "Thunder",
|
|
552
|
+
Rain = "Rain",
|
|
553
|
+
Cloud = "Cloud"
|
|
554
|
+
}
|
|
555
|
+
declare class Effect {
|
|
556
|
+
static effects: Dictionary<IEffect>;
|
|
557
|
+
static add(_effectType: EffectType, _app: App): void;
|
|
558
|
+
static remove(_effectType: EffectType): void;
|
|
559
|
+
static removeAll(): void;
|
|
560
|
+
}
|
|
1088
561
|
|
|
1089
|
-
|
|
562
|
+
declare class SpecConfig {
|
|
563
|
+
width?: number;
|
|
1090
564
|
height: number;
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
lookToTheFront(_object: IObject, _sheep?: number): void;
|
|
1121
|
-
getSightJson(): string;
|
|
1122
|
-
private computeCameraView;
|
|
1123
|
-
_wheel(p: any): void;
|
|
1124
|
-
switchArcRotateCamera(): void;
|
|
1125
|
-
switchFPSCamera(): void;
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
export class Dictionary<T> {
|
|
1129
|
-
map: {
|
|
1130
|
-
[key: string]: T;
|
|
1131
|
-
};
|
|
1132
|
-
constructor();
|
|
1133
|
-
add(key: string, value: T): void;
|
|
1134
|
-
find(key: string): T;
|
|
1135
|
-
remove(key: string): void;
|
|
1136
|
-
termRemove(callback: Function): void;
|
|
1137
|
-
showAll(): void;
|
|
1138
|
-
count(): number;
|
|
1139
|
-
clear(): void;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
export class GUID {
|
|
1143
|
-
static getGUID(length: number): string;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
export class RES {
|
|
1147
|
-
static de(str: string): any;
|
|
1148
|
-
static en(word: any): string;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
export class Resources {
|
|
1152
|
-
app: App;
|
|
1153
|
-
walls: Dictionary<Runtime.AbstractMesh>;
|
|
1154
|
-
resources: Dictionary<Runtime.AssetContainer>;
|
|
1155
|
-
ndoeMats: Dictionary<Runtime.NodeMaterial>;
|
|
1156
|
-
transparentBox: Runtime.Mesh;
|
|
1157
|
-
BOX: Runtime.Mesh;
|
|
1158
|
-
FogTex: Runtime.Texture;
|
|
1159
|
-
wallTop: Runtime.StandardMaterial;
|
|
1160
|
-
constructor(_app: App);
|
|
1161
|
-
loadModelMesh(baseModel: any): Promise<Runtime.AssetContainer>;
|
|
1162
|
-
loadModelMeshAsync(baseModel: any, callback: Function): void;
|
|
1163
|
-
Materials: Dictionary<Runtime.StandardMaterial>;
|
|
1164
|
-
Textures: Dictionary<Runtime.Texture>;
|
|
1165
|
-
GetMaterial(textureData: any): Runtime.StandardMaterial;
|
|
1166
|
-
GetTexture(textureData: any): Runtime.Texture;
|
|
1167
|
-
LoadLightMap(id: string, name: string): Runtime.Texture;
|
|
1168
|
-
MergeMaterials: Dictionary<Runtime.CustomMaterial>;
|
|
1169
|
-
GetMergeMaterial(textureData: any): Runtime.CustomMaterial;
|
|
1170
|
-
delete(isAll?: boolean): void;
|
|
1171
|
-
GetWalls(url: string, projectId: string): Promise<void>;
|
|
1172
|
-
setTransparent(_visibility?: number): void;
|
|
1173
|
-
setTransparentById(modelId: string, _visibility?: number): void;
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
export class Sight {
|
|
1177
|
-
alpha: number;
|
|
1178
|
-
focus: Runtime.Vector3;
|
|
1179
|
-
radius: number;
|
|
1180
|
-
beta: number;
|
|
1181
|
-
minimumLimit: number;
|
|
1182
|
-
maximumLimit: number;
|
|
1183
|
-
minBeta: number;
|
|
1184
|
-
maxBeta: number;
|
|
1185
|
-
toJosn(_sightJson: any): void;
|
|
1186
|
-
toString(): string;
|
|
1187
|
-
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
1188
|
-
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
export class ToolTips {
|
|
1192
|
-
app: App;
|
|
1193
|
-
url: string;
|
|
1194
|
-
ele: HTMLDivElement;
|
|
1195
|
-
private _text;
|
|
1196
|
-
set text(vlaue: string);
|
|
1197
|
-
constructor(_app: App);
|
|
1198
|
-
update(e: Runtime.PointerInfo): void;
|
|
1199
|
-
close(): void;
|
|
1200
|
-
setBackground(_url: string): void;
|
|
565
|
+
depth?: number;
|
|
566
|
+
color?: string;
|
|
567
|
+
fontImgUrl?: string;
|
|
568
|
+
backImgUrl?: string;
|
|
569
|
+
}
|
|
570
|
+
declare class RackModelEditor {
|
|
571
|
+
private container;
|
|
572
|
+
private engine;
|
|
573
|
+
private scene;
|
|
574
|
+
private _width;
|
|
575
|
+
private _height;
|
|
576
|
+
private _depth;
|
|
577
|
+
private color;
|
|
578
|
+
private fontImgUrl;
|
|
579
|
+
private backImgUrl;
|
|
580
|
+
private camera;
|
|
581
|
+
private instance;
|
|
582
|
+
private matBady;
|
|
583
|
+
private matFont;
|
|
584
|
+
private matBack;
|
|
585
|
+
constructor(_container: HTMLElement, _spec: SpecConfig);
|
|
586
|
+
perspective(): void;
|
|
587
|
+
orthogaphic(toward?: boolean): void;
|
|
588
|
+
set width(w: number);
|
|
589
|
+
set height(h: number);
|
|
590
|
+
set depth(d: number);
|
|
591
|
+
setFontMap(url?: string): void;
|
|
592
|
+
setBackMap(url?: string): void;
|
|
593
|
+
setColor(color?: string): void;
|
|
1201
594
|
dispose(): void;
|
|
1202
|
-
|
|
595
|
+
}
|
|
1203
596
|
|
|
1204
|
-
|
|
1205
|
-
static
|
|
1206
|
-
static
|
|
1207
|
-
static
|
|
1208
|
-
static
|
|
1209
|
-
static
|
|
1210
|
-
static
|
|
1211
|
-
static
|
|
1212
|
-
static
|
|
1213
|
-
static
|
|
1214
|
-
static
|
|
1215
|
-
static
|
|
1216
|
-
static
|
|
1217
|
-
static
|
|
1218
|
-
static getAngleFromVector2(startV: Runtime.Vector2, coreV: Runtime.Vector2, endV: Runtime.Vector2): number;
|
|
1219
|
-
static getAngleFromVector3(startV: Runtime.Vector3, coreV: Runtime.Vector3, endV: Runtime.Vector3): number;
|
|
1220
|
-
static RandomNumBoth(Min: any, Max: any): any;
|
|
1221
|
-
static rand(min: number, max: number): number;
|
|
1222
|
-
}
|
|
597
|
+
declare class MX3D {
|
|
598
|
+
static set accessToken(token: string);
|
|
599
|
+
static get accessToken(): string;
|
|
600
|
+
static App: typeof App;
|
|
601
|
+
static Request: axios.AxiosInstance;
|
|
602
|
+
static AlarmFlashing: typeof AlarmFlashing;
|
|
603
|
+
static UI: typeof UI;
|
|
604
|
+
static Builder: typeof Builder;
|
|
605
|
+
static ObjectType: typeof ObjectType;
|
|
606
|
+
static EffectType: typeof EffectType;
|
|
607
|
+
static EventType: typeof EventType;
|
|
608
|
+
static StatusType: typeof StatusType;
|
|
609
|
+
static Effect: typeof Effect;
|
|
610
|
+
static RackModelEditor: typeof RackModelEditor;
|
|
1223
611
|
}
|
|
612
|
+
|
|
613
|
+
export { AlarmFlashing, App, Builder, Effect, EffectType, EventType, ObjectType, RackModelEditor, StatusType, UI, MX3D as default };
|