mx3d 0.4.9 → 0.5.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/components/AlarmFlashing.d.ts +12 -11
- package/{App.d.ts → components/App.d.ts} +43 -42
- package/components/Builder.d.ts +73 -72
- package/components/Capacity.d.ts +11 -10
- package/components/Environment.d.ts +31 -30
- package/components/HeatMap.d.ts +14 -13
- package/components/Icon.d.ts +33 -32
- package/components/IconFromMesh.d.ts +22 -21
- package/components/Line.d.ts +14 -13
- package/components/LineFromMesh.d.ts +13 -12
- package/components/StatusType.d.ts +5 -5
- package/components/UI.d.ts +10 -10
- package/effects/Cloud.d.ts +42 -42
- package/effects/Effect.d.ts +13 -13
- package/effects/IEffect.d.ts +4 -4
- package/effects/Rain.d.ts +34 -34
- package/effects/Thunder.d.ts +31 -31
- package/events/DefaultEvent.d.ts +11 -0
- package/{components → events}/EventType.d.ts +9 -9
- package/{components/Event → events}/FPSCameraEvent.d.ts +17 -16
- package/events/IEvent.d.ts +6 -0
- package/{HubService.d.ts → hub/HubService.d.ts} +5 -5
- package/index.d.ts +21 -30
- package/lights/Directional.d.ts +8 -7
- package/lights/Hemispheric.d.ts +7 -6
- package/lights/ILightObject.d.ts +11 -10
- package/lights/LightObject.d.ts +16 -15
- package/lights/LightType.d.ts +8 -8
- package/lights/Point.d.ts +8 -7
- package/lights/Spot.d.ts +11 -10
- package/mapboxgl/BabylonLayer.d.ts +0 -24
- package/mapboxgl/Earth.d.ts +0 -9
- package/mapboxgl/Parse3dtile.d.ts +0 -0
- package/models/{baseModel.d.ts → BaseModel.d.ts} +15 -15
- package/models/BuildingObject.d.ts +7 -7
- package/models/CabinetObject.d.ts +4 -4
- package/models/CampusObject.d.ts +8 -8
- package/models/ConduitObject.d.ts +17 -16
- package/models/CornerObject.d.ts +45 -44
- package/models/DefaultObject.d.ts +61 -60
- package/models/DoorObject.d.ts +7 -7
- package/models/FloorObject.d.ts +11 -10
- package/models/IBase.d.ts +23 -22
- package/models/IObject.d.ts +15 -15
- package/models/IRegion.d.ts +49 -48
- package/models/LeakWaterObject.d.ts +12 -11
- package/models/ObjectType.d.ts +16 -16
- package/models/OptimizedWallObject.d.ts +7 -6
- package/models/Project.d.ts +30 -30
- package/models/StoreyObject.d.ts +10 -9
- package/models/UI3DTextObject.d.ts +14 -14
- package/models/VirtualBoxObject.d.ts +13 -12
- package/models/WallObject.d.ts +11 -10
- package/models/WindowObject.d.ts +7 -7
- package/mx3d.kernel.min.js +1 -0
- package/mx3d.min.js +1 -109
- package/mx3d.seat.min.js +1 -0
- package/package.json +1 -1
- package/runtime/index.d.ts +49 -0
- package/tools/ArrayEx.d.ts +3 -3
- package/tools/BaseNode.d.ts +5 -5
- package/tools/CameraController.d.ts +21 -20
- package/tools/Dictionary.d.ts +13 -13
- package/tools/GUID.d.ts +3 -3
- package/tools/RES.d.ts +3 -3
- package/tools/Resources.d.ts +26 -25
- package/tools/Sight.d.ts +15 -14
- package/tools/ToolTips.d.ts +14 -13
- package/tools/Tools.d.ts +21 -20
- package/{axios.d.ts → tools/axios.d.ts} +2 -2
- package/ThunderAndRain.d.ts +0 -25
- package/components/EffectMgr.d.ts +0 -11
- package/components/EffectType.d.ts +0 -5
- package/components/Event/DefaultEvent.d.ts +0 -10
- package/components/Event/IEvent.d.ts +0 -5
- package/core/mx3d.kernel.min.js +0 -1
- package/core/mx3d.loaders.min.js +0 -6
- package/core/mx3d.seat.min.js +0 -1146
- package/models/RegionObject.d.ts +0 -14
- /package/{Earth → earth}/Tile.d.ts +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as Runtime from '../runtime';
|
|
2
|
+
export declare class AlarmFlashing {
|
|
3
|
+
static colors: {
|
|
4
|
+
1: Runtime.Color3;
|
|
5
|
+
2: Runtime.Color3;
|
|
6
|
+
3: Runtime.Color3;
|
|
7
|
+
4: Runtime.Color3;
|
|
8
|
+
5: Runtime.Color3;
|
|
9
|
+
6: Runtime.Color3;
|
|
10
|
+
};
|
|
11
|
+
static init(): void;
|
|
12
|
+
}
|
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import * as Runtime from '../runtime';
|
|
2
|
+
import CameraController from "../tools/CameraController";
|
|
3
|
+
import Environment from "./Environment";
|
|
4
|
+
import Project from "../models/Project";
|
|
5
|
+
import Resources from "../tools/Resources";
|
|
6
|
+
import ToolTips from "../tools/ToolTips";
|
|
7
|
+
import IEvent from "../events/IEvent";
|
|
8
|
+
export declare class App {
|
|
9
|
+
canvas: HTMLCanvasElement;
|
|
10
|
+
engine: Runtime.Engine;
|
|
11
|
+
scene: Runtime.Scene;
|
|
12
|
+
cameraController: CameraController;
|
|
13
|
+
iEvent: IEvent;
|
|
14
|
+
highlightLayer: Runtime.HighlightLayer;
|
|
15
|
+
container: Runtime.AdvancedDynamicTexture;
|
|
16
|
+
fps: HTMLDivElement;
|
|
17
|
+
resources: Resources;
|
|
18
|
+
environment: Environment;
|
|
19
|
+
project: Project;
|
|
20
|
+
toolTips: ToolTips;
|
|
21
|
+
gl: Runtime.GlowLayer;
|
|
22
|
+
positionGizmo: Runtime.PositionGizmo;
|
|
23
|
+
constructor(_config: {
|
|
24
|
+
container: HTMLElement;
|
|
25
|
+
sl?: string;
|
|
26
|
+
rl?: string;
|
|
27
|
+
});
|
|
28
|
+
load(_config: {
|
|
29
|
+
pk?: string;
|
|
30
|
+
isDefaultLevel?: boolean;
|
|
31
|
+
isDefaultMutual?: boolean;
|
|
32
|
+
progress?: Function;
|
|
33
|
+
complete?: Function;
|
|
34
|
+
}): Promise<unknown>;
|
|
35
|
+
isDefaultMutual: boolean;
|
|
36
|
+
set defaultMutual(value: boolean);
|
|
37
|
+
dispose(): void;
|
|
38
|
+
box11: Runtime.Mesh;
|
|
39
|
+
createYUAN(SHUJU: any, neiyuan: any, gaodu: any): void;
|
|
40
|
+
claerbox(): void;
|
|
41
|
+
perspective(): void;
|
|
42
|
+
orthographic1(): void;
|
|
43
|
+
}
|
package/components/Builder.d.ts
CHANGED
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
static
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
private static
|
|
61
|
-
static
|
|
62
|
-
static
|
|
63
|
-
static
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
1
|
+
import * as Runtime from '../runtime';
|
|
2
|
+
import IObject from "../models/IObject";
|
|
3
|
+
import Capacity from "./Capacity";
|
|
4
|
+
import HeatMap from "./HeatMap";
|
|
5
|
+
import LineFromMesh from "./LineFromMesh";
|
|
6
|
+
import Line from "./Line";
|
|
7
|
+
export declare class Builder {
|
|
8
|
+
static createMatrixCloud(_data: {
|
|
9
|
+
anchor: IObject;
|
|
10
|
+
value: {
|
|
11
|
+
maxX: number;
|
|
12
|
+
maxY: number;
|
|
13
|
+
data: Array<{
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
value: number;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
displayValues: boolean;
|
|
20
|
+
height: number;
|
|
21
|
+
isLevelRender: boolean;
|
|
22
|
+
isAlpha: boolean;
|
|
23
|
+
isParticle: boolean;
|
|
24
|
+
radius: number;
|
|
25
|
+
range: {
|
|
26
|
+
max: number;
|
|
27
|
+
min: number;
|
|
28
|
+
};
|
|
29
|
+
}): HeatMap;
|
|
30
|
+
private static _getMatrixParticleTex;
|
|
31
|
+
static createPunctateCloud(_data: {
|
|
32
|
+
anchor: IObject;
|
|
33
|
+
value: number;
|
|
34
|
+
radius: number;
|
|
35
|
+
isLevelRender: boolean;
|
|
36
|
+
displayValues: boolean;
|
|
37
|
+
isAlpha: boolean;
|
|
38
|
+
isParticle: boolean;
|
|
39
|
+
range: {
|
|
40
|
+
max: number;
|
|
41
|
+
min: number;
|
|
42
|
+
};
|
|
43
|
+
}): HeatMap;
|
|
44
|
+
static createColumnCloud(_data: {
|
|
45
|
+
anchor: IObject;
|
|
46
|
+
data: Array<{
|
|
47
|
+
index: number;
|
|
48
|
+
value: number;
|
|
49
|
+
}>;
|
|
50
|
+
isLevelRender: boolean;
|
|
51
|
+
displayValues: boolean;
|
|
52
|
+
isAlpha: boolean;
|
|
53
|
+
isParticle: boolean;
|
|
54
|
+
radius: number;
|
|
55
|
+
range: {
|
|
56
|
+
max: number;
|
|
57
|
+
min: number;
|
|
58
|
+
};
|
|
59
|
+
}): HeatMap;
|
|
60
|
+
private static _getColumnarParticleTex;
|
|
61
|
+
private static createTempVlaue;
|
|
62
|
+
static createCapacity(obj: IObject, RATIO: number, _text: string, _fontSize?: string): Capacity;
|
|
63
|
+
static createTextMesh(obj: IObject, _text: string, RATIO: number, _fontSize?: string, _color?: string): Runtime.Mesh;
|
|
64
|
+
static create2DLine(_id: string, _objs: Array<IObject>, _options?: {
|
|
65
|
+
width: number;
|
|
66
|
+
color: string;
|
|
67
|
+
isDotted: boolean;
|
|
68
|
+
}): Line;
|
|
69
|
+
static create3DLine(_id: string, _objs: Array<IObject>, _options?: {
|
|
70
|
+
width: number;
|
|
71
|
+
color: string;
|
|
72
|
+
}): LineFromMesh;
|
|
73
|
+
}
|
package/components/Capacity.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as Runtime from '../runtime';
|
|
2
|
+
import IObject from "../models/IObject";
|
|
3
|
+
export default class Capacity {
|
|
4
|
+
anchor: IObject;
|
|
5
|
+
mesh: Runtime.Mesh;
|
|
6
|
+
ratio: number;
|
|
7
|
+
color: string;
|
|
8
|
+
textMesh: Runtime.Mesh;
|
|
9
|
+
constructor(_object: IObject, RATIO: number);
|
|
10
|
+
dispose(): void;
|
|
11
|
+
}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import App from "
|
|
2
|
-
import Dictionary from "../tools/Dictionary";
|
|
3
|
-
import LightObject from "../lights/LightObject";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
set
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { App } from "./App";
|
|
2
|
+
import Dictionary from "../tools/Dictionary";
|
|
3
|
+
import LightObject from "../lights/LightObject";
|
|
4
|
+
import * as Runtime from '../runtime';
|
|
5
|
+
export default class Environment {
|
|
6
|
+
app: App;
|
|
7
|
+
lights: Dictionary<LightObject>;
|
|
8
|
+
_color: Runtime.Color4;
|
|
9
|
+
background: Runtime.Layer;
|
|
10
|
+
reflexEnabled: boolean;
|
|
11
|
+
reflexIntensity: number;
|
|
12
|
+
constructor(_app: App);
|
|
13
|
+
setTransparent(_visibility?: number): void;
|
|
14
|
+
default(): void;
|
|
15
|
+
set fogDistance(_value: number);
|
|
16
|
+
set color(_value: Runtime.Color4);
|
|
17
|
+
reflex(url: string, intensity: number): void;
|
|
18
|
+
setBackground(url: string): void;
|
|
19
|
+
setReflexEnabled(_reflexEnabled: boolean): void;
|
|
20
|
+
setFlexIntensity(_intensity: number): void;
|
|
21
|
+
defaultLights(): void;
|
|
22
|
+
offAllLight(): void;
|
|
23
|
+
openAllLight(): void;
|
|
24
|
+
loadLight(Lights: Array<any>): void;
|
|
25
|
+
setLightIntensity(_intensity?: number): void;
|
|
26
|
+
showTips(): void;
|
|
27
|
+
closeTips(): void;
|
|
28
|
+
showFps(cssText?: string): void;
|
|
29
|
+
hideFps(): void;
|
|
30
|
+
showDebug(): void;
|
|
31
|
+
}
|
package/components/HeatMap.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import BaseNode from "../tools/BaseNode";
|
|
2
|
-
import IObject from "../models/IObject";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import BaseNode from "../tools/BaseNode";
|
|
2
|
+
import IObject from "../models/IObject";
|
|
3
|
+
import * as Runtime from '../runtime';
|
|
4
|
+
export default class HeatMap implements BaseNode {
|
|
5
|
+
id: string;
|
|
6
|
+
anchor: IObject;
|
|
7
|
+
mesh: Runtime.Mesh;
|
|
8
|
+
displayValue: boolean;
|
|
9
|
+
texts: Array<Runtime.TextBlock>;
|
|
10
|
+
constructor(_anchor: IObject);
|
|
11
|
+
isEnabled(_bool: boolean): void;
|
|
12
|
+
set displayValues(_value: boolean);
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
package/components/Icon.d.ts
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import BaseNode from "../tools/BaseNode";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import BaseNode from "../tools/BaseNode";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class Icon implements BaseNode {
|
|
4
|
+
id: string;
|
|
5
|
+
scene: Runtime.Scene;
|
|
6
|
+
pint: Runtime.Mesh;
|
|
7
|
+
private textDics;
|
|
8
|
+
private _line;
|
|
9
|
+
rect: Runtime.Rectangle;
|
|
10
|
+
private _background;
|
|
11
|
+
size: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
height: number;
|
|
16
|
+
container: Runtime.AdvancedDynamicTexture;
|
|
17
|
+
constructor(_id: string, _scene: Runtime.Scene);
|
|
18
|
+
set background(_url: string);
|
|
19
|
+
addEventListener(_action: Function): void;
|
|
20
|
+
setTexts(_textArr: [{
|
|
21
|
+
text: string;
|
|
22
|
+
fontSize: string;
|
|
23
|
+
color: string;
|
|
24
|
+
top: number;
|
|
25
|
+
left: number;
|
|
26
|
+
}]): void;
|
|
27
|
+
line(_line: {
|
|
28
|
+
width: number;
|
|
29
|
+
color: string;
|
|
30
|
+
}): void;
|
|
31
|
+
dispose(): void;
|
|
32
|
+
isEnabled(_isEnabled: boolean): void;
|
|
33
|
+
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import BaseNode from "../tools/BaseNode";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import BaseNode from "../tools/BaseNode";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class IconFromMesh implements BaseNode {
|
|
4
|
+
id: string;
|
|
5
|
+
scene: Runtime.Scene;
|
|
6
|
+
instance: Runtime.Mesh;
|
|
7
|
+
url: string;
|
|
8
|
+
scaling: number;
|
|
9
|
+
constructor(_id: string, _anchor: Runtime.Vector3, _url: string, _scaling: number, _height: number, _scene: Runtime.Scene);
|
|
10
|
+
setBackground(): void;
|
|
11
|
+
addEventListener(_action: Function): void;
|
|
12
|
+
setColor(color: string): void;
|
|
13
|
+
setContents(_textArr: [{
|
|
14
|
+
text: string;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
top: number;
|
|
17
|
+
left: number;
|
|
18
|
+
color?: string;
|
|
19
|
+
}]): void;
|
|
20
|
+
dispose(): void;
|
|
21
|
+
isEnabled(_bool: boolean): void;
|
|
22
|
+
}
|
package/components/Line.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import IObject from "../models/IObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import IObject from "../models/IObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class Line {
|
|
4
|
+
id: string;
|
|
5
|
+
objs: Array<IObject>;
|
|
6
|
+
instance: Runtime.MultiLine;
|
|
7
|
+
color: string;
|
|
8
|
+
width: number;
|
|
9
|
+
isDotted: boolean;
|
|
10
|
+
update(): void;
|
|
11
|
+
addEventListener(_action: Function): void;
|
|
12
|
+
isEnabled(_isEnabled: boolean): void;
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import IObject from "../models/IObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import IObject from "../models/IObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class LineFromMesh {
|
|
4
|
+
id: string;
|
|
5
|
+
objs: Array<IObject>;
|
|
6
|
+
instance: Runtime.Mesh;
|
|
7
|
+
color: string;
|
|
8
|
+
width: number;
|
|
9
|
+
update(): void;
|
|
10
|
+
addEventListener(_action: Function): void;
|
|
11
|
+
isEnabled(_isEnabled: boolean): void;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare enum StatusType {
|
|
2
|
-
Opaque = 0,
|
|
3
|
-
Flash = 1,
|
|
4
|
-
Transparent = 2
|
|
5
|
-
}
|
|
1
|
+
export declare enum StatusType {
|
|
2
|
+
Opaque = 0,
|
|
3
|
+
Flash = 1,
|
|
4
|
+
Transparent = 2
|
|
5
|
+
}
|
package/components/UI.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Icon from "./Icon";
|
|
2
|
-
import IconFromMesh from "./IconFromMesh";
|
|
3
|
-
import IObject from "../models/IObject";
|
|
4
|
-
export
|
|
5
|
-
static createIconFromMesh(_id: string, _anchor: IObject, url: string, _scaling: number, _height: number): IconFromMesh;
|
|
6
|
-
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
}, _height: number): Icon;
|
|
10
|
-
}
|
|
1
|
+
import Icon from "./Icon";
|
|
2
|
+
import IconFromMesh from "./IconFromMesh";
|
|
3
|
+
import IObject from "../models/IObject";
|
|
4
|
+
export declare class UI {
|
|
5
|
+
static createIconFromMesh(_id: string, _anchor: IObject, url: string, _scaling: number, _height: number): IconFromMesh;
|
|
6
|
+
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}, _height: number): Icon;
|
|
10
|
+
}
|