@glowjs/core 2023.9.23 → 2023.10.26
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/dist/glow.core.js +1 -1
- package/dist/typings/base/Base.d.ts +24 -24
- package/dist/typings/base/IDisposable.d.ts +9 -9
- package/dist/typings/camera/AutoRotate.d.ts +36 -36
- package/dist/typings/camera/CameraCacheData.d.ts +21 -21
- package/dist/typings/camera/CameraMgr.d.ts +339 -339
- package/dist/typings/camera/CameraMode.d.ts +13 -13
- package/dist/typings/camera/CameraPerson.d.ts +13 -13
- package/dist/typings/camera/CustomArcRotateCameraKeyboardMoveInput.d.ts +28 -28
- package/dist/typings/camera/CustomArcRotateCameraMouseWheelInput.d.ts +17 -17
- package/dist/typings/camera/FlyData.d.ts +29 -29
- package/dist/typings/camera/OrthographicView.d.ts +21 -21
- package/dist/typings/core/App.d.ts +149 -149
- package/dist/typings/core/AppOptions.d.ts +35 -35
- package/dist/typings/core/Size.d.ts +13 -13
- package/dist/typings/core/create.d.ts +9 -9
- package/dist/typings/core/version.d.ts +1 -1
- package/dist/typings/effect/ColorCorrection.d.ts +129 -129
- package/dist/typings/effect/EffectMgr.d.ts +71 -71
- package/dist/typings/effect/EnvironmentTexture.d.ts +36 -36
- package/dist/typings/effect/EnvironmentTextureSource.d.ts +25 -25
- package/dist/typings/effect/Fog.d.ts +43 -43
- package/dist/typings/effect/FogMode.d.ts +21 -21
- package/dist/typings/effect/Glow.d.ts +43 -43
- package/dist/typings/effect/HighLight.d.ts +49 -49
- package/dist/typings/effect/ImageProcessing.d.ts +43 -43
- package/dist/typings/effect/Light.d.ts +20 -20
- package/dist/typings/effect/SkyBox.d.ts +73 -73
- package/dist/typings/effect/SkyBoxSource.d.ts +41 -41
- package/dist/typings/effect/ToneMappingType.d.ts +13 -13
- package/dist/typings/entity/Building.d.ts +129 -103
- package/dist/typings/entity/Campus.d.ts +35 -35
- package/dist/typings/entity/Corner.d.ts +43 -43
- package/dist/typings/entity/DecorateGrid.d.ts +35 -35
- package/dist/typings/entity/DoorWindow.d.ts +77 -77
- package/dist/typings/entity/DoorWindowDirection.d.ts +21 -21
- package/dist/typings/entity/Entity.d.ts +359 -359
- package/dist/typings/entity/EntityType.d.ts +65 -65
- package/dist/typings/entity/Floor.d.ts +109 -109
- package/dist/typings/entity/Group.d.ts +34 -34
- package/dist/typings/entity/LeakLine.d.ts +44 -44
- package/dist/typings/entity/LevelMgr.d.ts +84 -84
- package/dist/typings/entity/ManualWall.d.ts +85 -85
- package/dist/typings/entity/ManualWallBuilder.d.ts +157 -157
- package/dist/typings/entity/MeshFaceData.d.ts +25 -25
- package/dist/typings/entity/OtherEntity.d.ts +20 -20
- package/dist/typings/entity/Path.d.ts +1 -1
- package/dist/typings/entity/PrefabWall.d.ts +57 -57
- package/dist/typings/entity/Room.d.ts +167 -167
- package/dist/typings/entity/Text3D.d.ts +62 -62
- package/dist/typings/entity/Thing.d.ts +121 -121
- package/dist/typings/entity/Tracker.d.ts +34 -34
- package/dist/typings/entity/ViewInfo.d.ts +14 -14
- package/dist/typings/entity/Wall.d.ts +95 -95
- package/dist/typings/entity/building/initPoolingLoop.d.ts +6 -0
- package/dist/typings/entity/building/initPoolingMouse.d.ts +6 -0
- package/dist/typings/entity/component/Animator.d.ts +45 -45
- package/dist/typings/entity/component/AutoOpenDoor.d.ts +24 -24
- package/dist/typings/entity/component/Component.d.ts +17 -17
- package/dist/typings/entity/component/PathAnimation.d.ts +51 -51
- package/dist/typings/entity/component/Style.d.ts +47 -47
- package/dist/typings/entity/component/archive/ArchiveBox.d.ts +97 -97
- package/dist/typings/entity/component/archive/ArchiveCabinet.d.ts +98 -98
- package/dist/typings/entity/component/archive/ArchiveCabinetGroup.d.ts +154 -154
- package/dist/typings/entity/component/archive/ArchiveCabinetGroupCount.d.ts +16 -16
- package/dist/typings/entity/component/archive/ArchiveCabinetGroupState.d.ts +21 -21
- package/dist/typings/entity/component/archive/ArchiveDoor.d.ts +28 -28
- package/dist/typings/entity/component/archive/ArchiveGrid.d.ts +43 -43
- package/dist/typings/entity/component/archive/ArchiveMgr.d.ts +36 -36
- package/dist/typings/entity/component/archive/createArchiveGrid.d.ts +6 -6
- package/dist/typings/entity/component/archive/createColumnTag.d.ts +6 -6
- package/dist/typings/entity/component/archive/events/onAppMove.d.ts +6 -6
- package/dist/typings/entity/component/archive/events/onAppRightDoubleClick.d.ts +6 -6
- package/dist/typings/entity/component/archive/events/onGroupLeftDoubleClick.d.ts +8 -8
- package/dist/typings/entity/component/archive/events/onGroupPointerLeave.d.ts +6 -6
- package/dist/typings/entity/component/archive/events/onGroupRightClick.d.ts +8 -8
- package/dist/typings/entity/component/archive/events/onLevelChanged.d.ts +8 -8
- package/dist/typings/entity/component/archive/getCapacityOriginBox.d.ts +6 -6
- package/dist/typings/entity/component/cabinet/BoardCard.d.ts +63 -63
- package/dist/typings/entity/component/cabinet/Cabinet.d.ts +123 -123
- package/dist/typings/entity/component/cabinet/CabinetCapacityData.d.ts +17 -17
- package/dist/typings/entity/component/cabinet/CabinetMgr.d.ts +47 -47
- package/dist/typings/entity/component/cabinet/NetworkPort.d.ts +46 -46
- package/dist/typings/entity/component/cabinet/RackMounted.d.ts +106 -106
- package/dist/typings/entity/component/cabinet/ResImageSource.d.ts +13 -13
- package/dist/typings/entity/component/cabinet/events/onAppMove.d.ts +6 -6
- package/dist/typings/entity/component/cabinet/events/onAppRightDoubleClick.d.ts +6 -6
- package/dist/typings/entity/component/cabinet/events/onCabinetLeftDoubleClick.d.ts +7 -7
- package/dist/typings/entity/component/cabinet/events/onCabinetPointerLeave.d.ts +2 -2
- package/dist/typings/entity/component/cabinet/events/onCabinetRightClick.d.ts +3 -3
- package/dist/typings/entity/component/cabinet/events/onLevelChanged.d.ts +8 -8
- package/dist/typings/entity/component/heatmap/Heatmap.d.ts +56 -56
- package/dist/typings/entity/component/heatmap/HeatmapType.d.ts +17 -17
- package/dist/typings/entity/component/heatmap/buildHorizontal.d.ts +6 -6
- package/dist/typings/entity/component/heatmap/buildVertical.d.ts +6 -6
- package/dist/typings/entity/component/roaming/Roaming.d.ts +93 -93
- package/dist/typings/entity/component/roaming/pencil.d.ts +1 -1
- package/dist/typings/entity/path/Path.d.ts +48 -48
- package/dist/typings/entity/path/attachDrag.d.ts +2 -2
- package/dist/typings/entity/path/createLineMeshData.d.ts +3 -3
- package/dist/typings/entity/path/createPointInstance.d.ts +5 -5
- package/dist/typings/entity/path/detachDrag.d.ts +2 -2
- package/dist/typings/entity/path/dragData.d.ts +9 -9
- package/dist/typings/entity/path/getLineMaterial.d.ts +2 -2
- package/dist/typings/entity/placement.d.ts +20 -20
- package/dist/typings/entity/util/box.d.ts +9 -9
- package/dist/typings/entity/util/createManualWallEdgeMaterial.d.ts +8 -8
- package/dist/typings/entity/util/createManualWallFaceMaterial.d.ts +8 -8
- package/dist/typings/entity/util/createManualWallMesh.d.ts +12 -12
- package/dist/typings/entity/util/createMergedMesh.d.ts +13 -13
- package/dist/typings/entity/util/createPathArrowIcon.d.ts +4 -4
- package/dist/typings/entity/util/createPathCircleIcon.d.ts +4 -4
- package/dist/typings/entity/util/createRoomMaterial.d.ts +3 -3
- package/dist/typings/entity/util/createRoomMesh.d.ts +14 -14
- package/dist/typings/entity/util/getPathIconMesh.d.ts +7 -7
- package/dist/typings/entity/util/getPathLineMesh.d.ts +2 -2
- package/dist/typings/entity/util/getPerWeight.d.ts +6 -6
- package/dist/typings/entity/util/hideAllBoundingBox.d.ts +6 -6
- package/dist/typings/entity/util/setRes.d.ts +5 -5
- package/dist/typings/entity/util/smoothTube.d.ts +7 -7
- package/dist/typings/entity/util/technologyBuildingMaterial.d.ts +67 -67
- package/dist/typings/event/EventArg.d.ts +14 -14
- package/dist/typings/event/EventDispatcher.d.ts +67 -67
- package/dist/typings/event/EventMgr.d.ts +102 -102
- package/dist/typings/event/EventObject.d.ts +26 -26
- package/dist/typings/event/EventType.d.ts +161 -161
- package/dist/typings/event/KeyCode.d.ts +55 -55
- package/dist/typings/event/PropertyChangedData.d.ts +21 -21
- package/dist/typings/gui/Billboard.d.ts +104 -102
- package/dist/typings/gui/BillboardOptions.d.ts +62 -62
- package/dist/typings/gui/FPSBar.d.ts +25 -25
- package/dist/typings/gui/GUIMgr.d.ts +41 -41
- package/dist/typings/gui/GradientRectangle.d.ts +57 -57
- package/dist/typings/gui/LinkTip.d.ts +30 -30
- package/dist/typings/gui/PerformancePanel.d.ts +41 -41
- package/dist/typings/gui/RectangleProgress.d.ts +20 -20
- package/dist/typings/gui/ToolTip.d.ts +24 -24
- package/dist/typings/gui/getTextWidth.d.ts +6 -6
- package/dist/typings/index.d.ts +80 -80
- package/dist/typings/material/MaterialMgr.d.ts +18 -18
- package/dist/typings/misc/Point2D.d.ts +4 -4
- package/dist/typings/misc/Point3D.d.ts +4 -4
- package/dist/typings/misc/Point4D.d.ts +4 -4
- package/dist/typings/misc/SystemResId.d.ts +85 -85
- package/dist/typings/misc/blobToDataURL.d.ts +5 -5
- package/dist/typings/misc/cookie.d.ts +17 -17
- package/dist/typings/misc/dataURLtoBlob.d.ts +5 -5
- package/dist/typings/misc/getQueryString.d.ts +5 -5
- package/dist/typings/misc/guid.d.ts +21 -21
- package/dist/typings/misc/http.d.ts +46 -46
- package/dist/typings/misc/index.d.ts +15 -15
- package/dist/typings/misc/isHexColor.d.ts +5 -5
- package/dist/typings/misc/isLAN.d.ts +4 -4
- package/dist/typings/misc/math/Line.d.ts +5 -5
- package/dist/typings/misc/math/Point.d.ts +7 -7
- package/dist/typings/misc/math/compare/EPSILON.d.ts +4 -4
- package/dist/typings/misc/math/compare/greateThanOrEqual.d.ts +8 -8
- package/dist/typings/misc/math/compare/greaterThan.d.ts +7 -7
- package/dist/typings/misc/math/compare/lessThan.d.ts +7 -7
- package/dist/typings/misc/math/compare/lessThanOrEqual.d.ts +7 -7
- package/dist/typings/misc/math/compare/withinEpsilon.d.ts +9 -9
- package/dist/typings/misc/math/index.d.ts +34 -34
- package/dist/typings/misc/math/line/distanceToParallelLine.d.ts +7 -7
- package/dist/typings/misc/math/line/distanceToProjection.d.ts +8 -8
- package/dist/typings/misc/math/line/getLineIntersection.d.ts +9 -9
- package/dist/typings/misc/math/line/isLineParallel.d.ts +7 -7
- package/dist/typings/misc/math/line/project.d.ts +8 -8
- package/dist/typings/misc/math/line/relateToPoint.d.ts +8 -8
- package/dist/typings/misc/math/round.d.ts +6 -6
- package/dist/typings/misc/math/segment/getSegmentIntersection.d.ts +8 -8
- package/dist/typings/misc/math/segment/getSegmentPartIncludePoint.d.ts +8 -8
- package/dist/typings/misc/math/segment/onSegment.d.ts +8 -8
- package/dist/typings/misc/math/segment/segmentFullInclude.d.ts +8 -8
- package/dist/typings/misc/math/vec/addTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/angleTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/centerTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/cross.d.ts +7 -7
- package/dist/typings/misc/math/vec/distanceTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/dot.d.ts +7 -7
- package/dist/typings/misc/math/vec/ignoreYAxis.d.ts +7 -7
- package/dist/typings/misc/math/vec/isClockwise.d.ts +6 -6
- package/dist/typings/misc/math/vec/lengthTo.d.ts +6 -6
- package/dist/typings/misc/math/vec/multiplyTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/normalizeTo.d.ts +6 -6
- package/dist/typings/misc/math/vec/scaleTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/subtractTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/toPoint.d.ts +8 -8
- package/dist/typings/misc/math/vec/toVector3.d.ts +7 -7
- package/dist/typings/misc/math/vec/verticalVector.d.ts +7 -7
- package/dist/typings/misc/object.d.ts +16 -16
- package/dist/typings/misc/randomColor.d.ts +4 -4
- package/dist/typings/misc/to.d.ts +5 -5
- package/dist/typings/res/ResCacheData.d.ts +14 -14
- package/dist/typings/res/ResOptions.d.ts +75 -75
- package/dist/typings/res/ResPool.d.ts +57 -57
- package/dist/typings/res/registerBuffer.d.ts +6 -6
- package/dist/typings/res/replaceInstancedMesh.d.ts +6 -6
- package/dist/typings/runtime/RunTime.d.ts +184 -173
- package/dist/typings/runtime/babylonjs/babylonjs-core.d.ts +73 -73
- package/dist/typings/runtime/babylonjs/babylonjs-gui.d.ts +12 -12
- package/dist/typings/runtime/babylonjs/babylonjs-loaders.d.ts +1 -1
- package/dist/typings/runtime/babylonjs/babylonjs-materials.d.ts +1 -1
- package/dist/typings/runtime/index.d.ts +8 -8
- package/dist/typings/runtime/tweenjs/index.d.ts +1 -1
- package/package.json +16 -16
|
@@ -1,103 +1,129 @@
|
|
|
1
|
-
import { App } from '../core/App';
|
|
2
|
-
import { Floor } from './Floor';
|
|
3
|
-
import { Placement } from './placement';
|
|
4
|
-
import { TransformNode } from '../runtime';
|
|
5
|
-
import { Entity } from './Entity';
|
|
6
|
-
import { Point3D } from '../misc/Point3D';
|
|
7
|
-
import { Thing } from './Thing';
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
*
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
import { App } from '../core/App';
|
|
2
|
+
import { Floor } from './Floor';
|
|
3
|
+
import { Placement } from './placement';
|
|
4
|
+
import { TransformNode } from '../runtime';
|
|
5
|
+
import { Entity } from './Entity';
|
|
6
|
+
import { Point3D } from '../misc/Point3D';
|
|
7
|
+
import { Thing } from './Thing';
|
|
8
|
+
import { Group } from './Group';
|
|
9
|
+
/**
|
|
10
|
+
* 自定义建筑
|
|
11
|
+
*/
|
|
12
|
+
export declare class Building extends Entity {
|
|
13
|
+
/**
|
|
14
|
+
* 楼层轮询停留时间(秒)
|
|
15
|
+
*/
|
|
16
|
+
static pollingStayTime: number;
|
|
17
|
+
/**
|
|
18
|
+
* 楼层轮询展开高度(米)
|
|
19
|
+
*/
|
|
20
|
+
static pollingExpandHeight: number;
|
|
21
|
+
/**
|
|
22
|
+
* 是否总是显示建筑结构
|
|
23
|
+
*/
|
|
24
|
+
alwaysShowStructure: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 获取楼层是否已经展开
|
|
27
|
+
*/
|
|
28
|
+
expanded: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 合并网格的父节点
|
|
31
|
+
*/
|
|
32
|
+
mergedMeshNode: TransformNode;
|
|
33
|
+
/**
|
|
34
|
+
* 楼层展开偏移量
|
|
35
|
+
*/
|
|
36
|
+
expandOffset: Point3D;
|
|
37
|
+
private _tweenExpand;
|
|
38
|
+
private _pooling;
|
|
39
|
+
/**
|
|
40
|
+
* 实例化一个建筑对象
|
|
41
|
+
* @param app 应用
|
|
42
|
+
*/
|
|
43
|
+
constructor(app: App);
|
|
44
|
+
/**
|
|
45
|
+
* 注册默认事件
|
|
46
|
+
*/
|
|
47
|
+
registerDefaultEvents(): void;
|
|
48
|
+
/**
|
|
49
|
+
* 获取外立面
|
|
50
|
+
*/
|
|
51
|
+
get facades(): Placement[];
|
|
52
|
+
/**
|
|
53
|
+
* 获取楼层链接外立面
|
|
54
|
+
*/
|
|
55
|
+
get floorLinks(): Thing[];
|
|
56
|
+
/**
|
|
57
|
+
* 轮询组对象
|
|
58
|
+
*/
|
|
59
|
+
get polling(): Group | null;
|
|
60
|
+
/**
|
|
61
|
+
* 获取轮询组对象内的楼层链接外立面
|
|
62
|
+
*/
|
|
63
|
+
get pollingFloorLinks(): Thing[];
|
|
64
|
+
/**
|
|
65
|
+
* 显示建筑楼层轮询对象回调函数
|
|
66
|
+
*/
|
|
67
|
+
displayPoolingItemCallback: (item: Thing | null) => void;
|
|
68
|
+
/**
|
|
69
|
+
* 获取楼层
|
|
70
|
+
*/
|
|
71
|
+
get floors(): Floor[];
|
|
72
|
+
/**
|
|
73
|
+
* 获取当前是否正在执行楼层动画
|
|
74
|
+
*/
|
|
75
|
+
get expanding(): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 是否有外立面
|
|
78
|
+
*/
|
|
79
|
+
hasFacades(): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* 获取实例类型
|
|
82
|
+
*/
|
|
83
|
+
get instanceClass(): any;
|
|
84
|
+
/**
|
|
85
|
+
* 开始轮询
|
|
86
|
+
*/
|
|
87
|
+
private _startPolling;
|
|
88
|
+
/**
|
|
89
|
+
* 展开楼层
|
|
90
|
+
* @param time 时间,默认值500,单位毫秒
|
|
91
|
+
* @param complete 完成时的回调函数
|
|
92
|
+
*/
|
|
93
|
+
expandFloors(time?: number, complete?: () => void): void;
|
|
94
|
+
/**
|
|
95
|
+
* 合并楼层
|
|
96
|
+
* @param time 时间,默认值500,单位毫秒
|
|
97
|
+
* @param complete 完成时的回调函数
|
|
98
|
+
*/
|
|
99
|
+
unexpandFloors(time?: number, complete?: () => void): void;
|
|
100
|
+
/**
|
|
101
|
+
* 序列化成JSON对象
|
|
102
|
+
*/
|
|
103
|
+
toJson(): any;
|
|
104
|
+
/**
|
|
105
|
+
* 从JSON对象反序列化(仅生成层级树)
|
|
106
|
+
* @param {*} json JSON对象
|
|
107
|
+
*/
|
|
108
|
+
fromJson(json: any): void;
|
|
109
|
+
/**
|
|
110
|
+
* 创建(仅当前层级可见对象
|
|
111
|
+
*/
|
|
112
|
+
build(force?: boolean): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* 设置子节点列表
|
|
115
|
+
*/
|
|
116
|
+
setSubNodes(): void;
|
|
117
|
+
/**
|
|
118
|
+
* 拆毁(删掉网格,仅保留层级树)
|
|
119
|
+
*/
|
|
120
|
+
unbuild(): void;
|
|
121
|
+
/**
|
|
122
|
+
* 释放
|
|
123
|
+
*/
|
|
124
|
+
dispose(): void;
|
|
125
|
+
/**
|
|
126
|
+
* 创建合并的网格
|
|
127
|
+
*/
|
|
128
|
+
buildMergedMesh(): Promise<void>;
|
|
129
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { App } from '../core/App';
|
|
2
|
-
import { Building } from './Building';
|
|
3
|
-
import { Floor } from './Floor';
|
|
4
|
-
/**
|
|
5
|
-
* (泛)园区[片区]
|
|
6
|
-
*/
|
|
7
|
-
export declare class Campus extends Floor {
|
|
8
|
-
/**
|
|
9
|
-
* 实例化一个(泛)园区对象
|
|
10
|
-
* @param {App} app 应用
|
|
11
|
-
*/
|
|
12
|
-
constructor(app: App);
|
|
13
|
-
/**
|
|
14
|
-
* 获取实例类型
|
|
15
|
-
*/
|
|
16
|
-
get instanceClass(): any;
|
|
17
|
-
/**
|
|
18
|
-
* 获取所有建筑
|
|
19
|
-
*/
|
|
20
|
-
get buildings(): Building[];
|
|
21
|
-
/**
|
|
22
|
-
* 序列化成JSON对象
|
|
23
|
-
*/
|
|
24
|
-
toJson(): any;
|
|
25
|
-
/**
|
|
26
|
-
* 从JSON对象反序列化(仅生成层级树)
|
|
27
|
-
* @param json JSON对象
|
|
28
|
-
*/
|
|
29
|
-
fromJson(json: any): void;
|
|
30
|
-
/**
|
|
31
|
-
* 创建(仅当前层级可见对象)
|
|
32
|
-
* @param {boolean} force 是否强制
|
|
33
|
-
*/
|
|
34
|
-
build(force?: boolean): Promise<void>;
|
|
35
|
-
}
|
|
1
|
+
import { App } from '../core/App';
|
|
2
|
+
import { Building } from './Building';
|
|
3
|
+
import { Floor } from './Floor';
|
|
4
|
+
/**
|
|
5
|
+
* (泛)园区[片区]
|
|
6
|
+
*/
|
|
7
|
+
export declare class Campus extends Floor {
|
|
8
|
+
/**
|
|
9
|
+
* 实例化一个(泛)园区对象
|
|
10
|
+
* @param {App} app 应用
|
|
11
|
+
*/
|
|
12
|
+
constructor(app: App);
|
|
13
|
+
/**
|
|
14
|
+
* 获取实例类型
|
|
15
|
+
*/
|
|
16
|
+
get instanceClass(): any;
|
|
17
|
+
/**
|
|
18
|
+
* 获取所有建筑
|
|
19
|
+
*/
|
|
20
|
+
get buildings(): Building[];
|
|
21
|
+
/**
|
|
22
|
+
* 序列化成JSON对象
|
|
23
|
+
*/
|
|
24
|
+
toJson(): any;
|
|
25
|
+
/**
|
|
26
|
+
* 从JSON对象反序列化(仅生成层级树)
|
|
27
|
+
* @param json JSON对象
|
|
28
|
+
*/
|
|
29
|
+
fromJson(json: any): void;
|
|
30
|
+
/**
|
|
31
|
+
* 创建(仅当前层级可见对象)
|
|
32
|
+
* @param {boolean} force 是否强制
|
|
33
|
+
*/
|
|
34
|
+
build(force?: boolean): Promise<void>;
|
|
35
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { Entity } from './Entity';
|
|
2
|
-
import { App } from '../core/App';
|
|
3
|
-
import { Wall } from './Wall';
|
|
4
|
-
/**
|
|
5
|
-
* 墙角
|
|
6
|
-
*/
|
|
7
|
-
export declare class Corner extends Entity {
|
|
8
|
-
/**
|
|
9
|
-
* 获取墙列表
|
|
10
|
-
*/
|
|
11
|
-
readonly walls: Wall[];
|
|
12
|
-
/**
|
|
13
|
-
* 实例化一个墙角对象
|
|
14
|
-
* @param app 应用
|
|
15
|
-
*/
|
|
16
|
-
constructor(app: App);
|
|
17
|
-
/**
|
|
18
|
-
* 获取实例类型
|
|
19
|
-
*/
|
|
20
|
-
get instanceClass(): any;
|
|
21
|
-
/**
|
|
22
|
-
* 获取索引
|
|
23
|
-
*/
|
|
24
|
-
get index(): number;
|
|
25
|
-
/**
|
|
26
|
-
* 计算包围盒
|
|
27
|
-
*/
|
|
28
|
-
computeBoundingInfo(): void;
|
|
29
|
-
/**
|
|
30
|
-
* 序列化成JSON对象
|
|
31
|
-
*/
|
|
32
|
-
toJson(): any;
|
|
33
|
-
/**
|
|
34
|
-
* 从JSON对象反序列化(仅生成层级树)
|
|
35
|
-
* @param json JSON对象
|
|
36
|
-
*/
|
|
37
|
-
fromJson(json: any): void;
|
|
38
|
-
/**
|
|
39
|
-
* 创建(仅当前层级可见对象)
|
|
40
|
-
* @param force 是否强制
|
|
41
|
-
*/
|
|
42
|
-
build(force?: boolean): Promise<void>;
|
|
43
|
-
}
|
|
1
|
+
import { Entity } from './Entity';
|
|
2
|
+
import { App } from '../core/App';
|
|
3
|
+
import { Wall } from './Wall';
|
|
4
|
+
/**
|
|
5
|
+
* 墙角
|
|
6
|
+
*/
|
|
7
|
+
export declare class Corner extends Entity {
|
|
8
|
+
/**
|
|
9
|
+
* 获取墙列表
|
|
10
|
+
*/
|
|
11
|
+
readonly walls: Wall[];
|
|
12
|
+
/**
|
|
13
|
+
* 实例化一个墙角对象
|
|
14
|
+
* @param app 应用
|
|
15
|
+
*/
|
|
16
|
+
constructor(app: App);
|
|
17
|
+
/**
|
|
18
|
+
* 获取实例类型
|
|
19
|
+
*/
|
|
20
|
+
get instanceClass(): any;
|
|
21
|
+
/**
|
|
22
|
+
* 获取索引
|
|
23
|
+
*/
|
|
24
|
+
get index(): number;
|
|
25
|
+
/**
|
|
26
|
+
* 计算包围盒
|
|
27
|
+
*/
|
|
28
|
+
computeBoundingInfo(): void;
|
|
29
|
+
/**
|
|
30
|
+
* 序列化成JSON对象
|
|
31
|
+
*/
|
|
32
|
+
toJson(): any;
|
|
33
|
+
/**
|
|
34
|
+
* 从JSON对象反序列化(仅生成层级树)
|
|
35
|
+
* @param json JSON对象
|
|
36
|
+
*/
|
|
37
|
+
fromJson(json: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* 创建(仅当前层级可见对象)
|
|
40
|
+
* @param force 是否强制
|
|
41
|
+
*/
|
|
42
|
+
build(force?: boolean): Promise<void>;
|
|
43
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { App } from '../core/App';
|
|
2
|
-
import { Entity } from './Entity';
|
|
3
|
-
/**
|
|
4
|
-
* 装饰网格
|
|
5
|
-
*/
|
|
6
|
-
export declare class DecorateGrid extends Entity {
|
|
7
|
-
/**
|
|
8
|
-
* 长宽大小
|
|
9
|
-
*/
|
|
10
|
-
static size: number;
|
|
11
|
-
/**
|
|
12
|
-
* 块宽度
|
|
13
|
-
*/
|
|
14
|
-
static blockWidth: number;
|
|
15
|
-
/**
|
|
16
|
-
* 块高度
|
|
17
|
-
*/
|
|
18
|
-
static blockHeight: number;
|
|
19
|
-
/**
|
|
20
|
-
* 垂直偏移量
|
|
21
|
-
*/
|
|
22
|
-
static offsetY: number;
|
|
23
|
-
private _mesh;
|
|
24
|
-
private _mat;
|
|
25
|
-
/**
|
|
26
|
-
* 实例化一个装饰网格对象
|
|
27
|
-
* @param app 应用
|
|
28
|
-
*/
|
|
29
|
-
constructor(app: App);
|
|
30
|
-
build(force?: boolean): Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* 拆毁(删掉网格,仅保留层级树)
|
|
33
|
-
*/
|
|
34
|
-
unbuild(): void;
|
|
35
|
-
}
|
|
1
|
+
import { App } from '../core/App';
|
|
2
|
+
import { Entity } from './Entity';
|
|
3
|
+
/**
|
|
4
|
+
* 装饰网格
|
|
5
|
+
*/
|
|
6
|
+
export declare class DecorateGrid extends Entity {
|
|
7
|
+
/**
|
|
8
|
+
* 长宽大小
|
|
9
|
+
*/
|
|
10
|
+
static size: number;
|
|
11
|
+
/**
|
|
12
|
+
* 块宽度
|
|
13
|
+
*/
|
|
14
|
+
static blockWidth: number;
|
|
15
|
+
/**
|
|
16
|
+
* 块高度
|
|
17
|
+
*/
|
|
18
|
+
static blockHeight: number;
|
|
19
|
+
/**
|
|
20
|
+
* 垂直偏移量
|
|
21
|
+
*/
|
|
22
|
+
static offsetY: number;
|
|
23
|
+
private _mesh;
|
|
24
|
+
private _mat;
|
|
25
|
+
/**
|
|
26
|
+
* 实例化一个装饰网格对象
|
|
27
|
+
* @param app 应用
|
|
28
|
+
*/
|
|
29
|
+
constructor(app: App);
|
|
30
|
+
build(force?: boolean): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* 拆毁(删掉网格,仅保留层级树)
|
|
33
|
+
*/
|
|
34
|
+
unbuild(): void;
|
|
35
|
+
}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { App } from '../core/App';
|
|
2
|
-
import { Thing } from './Thing';
|
|
3
|
-
import { Wall } from './Wall';
|
|
4
|
-
import { DoorWindowDirection } from './DoorWindowDirection';
|
|
5
|
-
import { Point3D } from '../misc/Point3D';
|
|
6
|
-
import { Point2D } from '../misc/Point2D';
|
|
7
|
-
/**
|
|
8
|
-
* 门窗
|
|
9
|
-
*/
|
|
10
|
-
export declare class DoorWindow extends Thing {
|
|
11
|
-
private _isOpen;
|
|
12
|
-
/**
|
|
13
|
-
* 是否是窗户,默认false表示门
|
|
14
|
-
*/
|
|
15
|
-
isWindow: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* 实例化一个门窗对象
|
|
18
|
-
* @param app 应用
|
|
19
|
-
*/
|
|
20
|
-
constructor(app: App);
|
|
21
|
-
/**
|
|
22
|
-
* 获取或设置打开状态
|
|
23
|
-
*/
|
|
24
|
-
get isOpen(): boolean;
|
|
25
|
-
set isOpen(value: boolean);
|
|
26
|
-
/**
|
|
27
|
-
* 获取二维边界(用于判断门窗是否在水平方向越界)
|
|
28
|
-
*/
|
|
29
|
-
get bound2D(): Point2D;
|
|
30
|
-
/**
|
|
31
|
-
* 获取或设置左边距(到开始墙点的距离)
|
|
32
|
-
*/
|
|
33
|
-
left: number;
|
|
34
|
-
/**
|
|
35
|
-
* 判断给定的左边距在指定墙体是否有效
|
|
36
|
-
* @param left 左边距
|
|
37
|
-
* @param parent 墙体
|
|
38
|
-
*/
|
|
39
|
-
isLeftEnabled(left: number, parent: Wall): boolean;
|
|
40
|
-
/**
|
|
41
|
-
* 左边距转换成坐标,仅在build中使用
|
|
42
|
-
*/
|
|
43
|
-
leftToPosition(): Point3D;
|
|
44
|
-
/**
|
|
45
|
-
* 获取实例类型
|
|
46
|
-
*/
|
|
47
|
-
get instanceClass(): any;
|
|
48
|
-
/**
|
|
49
|
-
* 获取或设置朝向,取值0、1、2、3
|
|
50
|
-
*/
|
|
51
|
-
get direction(): DoorWindowDirection;
|
|
52
|
-
set direction(value: DoorWindowDirection);
|
|
53
|
-
/**
|
|
54
|
-
* 获取或设置位置
|
|
55
|
-
*/
|
|
56
|
-
get position(): Point3D;
|
|
57
|
-
set position(value: Point3D);
|
|
58
|
-
/**
|
|
59
|
-
* 获取或设置底边距(离地高度)
|
|
60
|
-
*/
|
|
61
|
-
get bottom(): number;
|
|
62
|
-
set bottom(value: number);
|
|
63
|
-
/**
|
|
64
|
-
* 序列化成JSON对象
|
|
65
|
-
*/
|
|
66
|
-
toJson(): any;
|
|
67
|
-
/**
|
|
68
|
-
* 从JSON对象反序列化(仅生成层级树)
|
|
69
|
-
* @param json JSON对象
|
|
70
|
-
*/
|
|
71
|
-
fromJson(json: any): void;
|
|
72
|
-
/**
|
|
73
|
-
* 创建(仅当前层级可见对象)
|
|
74
|
-
* @param {boolean} force 是否强制
|
|
75
|
-
*/
|
|
76
|
-
build(force?: boolean): Promise<void>;
|
|
77
|
-
}
|
|
1
|
+
import { App } from '../core/App';
|
|
2
|
+
import { Thing } from './Thing';
|
|
3
|
+
import { Wall } from './Wall';
|
|
4
|
+
import { DoorWindowDirection } from './DoorWindowDirection';
|
|
5
|
+
import { Point3D } from '../misc/Point3D';
|
|
6
|
+
import { Point2D } from '../misc/Point2D';
|
|
7
|
+
/**
|
|
8
|
+
* 门窗
|
|
9
|
+
*/
|
|
10
|
+
export declare class DoorWindow extends Thing {
|
|
11
|
+
private _isOpen;
|
|
12
|
+
/**
|
|
13
|
+
* 是否是窗户,默认false表示门
|
|
14
|
+
*/
|
|
15
|
+
isWindow: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 实例化一个门窗对象
|
|
18
|
+
* @param app 应用
|
|
19
|
+
*/
|
|
20
|
+
constructor(app: App);
|
|
21
|
+
/**
|
|
22
|
+
* 获取或设置打开状态
|
|
23
|
+
*/
|
|
24
|
+
get isOpen(): boolean;
|
|
25
|
+
set isOpen(value: boolean);
|
|
26
|
+
/**
|
|
27
|
+
* 获取二维边界(用于判断门窗是否在水平方向越界)
|
|
28
|
+
*/
|
|
29
|
+
get bound2D(): Point2D;
|
|
30
|
+
/**
|
|
31
|
+
* 获取或设置左边距(到开始墙点的距离)
|
|
32
|
+
*/
|
|
33
|
+
left: number;
|
|
34
|
+
/**
|
|
35
|
+
* 判断给定的左边距在指定墙体是否有效
|
|
36
|
+
* @param left 左边距
|
|
37
|
+
* @param parent 墙体
|
|
38
|
+
*/
|
|
39
|
+
isLeftEnabled(left: number, parent: Wall): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 左边距转换成坐标,仅在build中使用
|
|
42
|
+
*/
|
|
43
|
+
leftToPosition(): Point3D;
|
|
44
|
+
/**
|
|
45
|
+
* 获取实例类型
|
|
46
|
+
*/
|
|
47
|
+
get instanceClass(): any;
|
|
48
|
+
/**
|
|
49
|
+
* 获取或设置朝向,取值0、1、2、3
|
|
50
|
+
*/
|
|
51
|
+
get direction(): DoorWindowDirection;
|
|
52
|
+
set direction(value: DoorWindowDirection);
|
|
53
|
+
/**
|
|
54
|
+
* 获取或设置位置
|
|
55
|
+
*/
|
|
56
|
+
get position(): Point3D;
|
|
57
|
+
set position(value: Point3D);
|
|
58
|
+
/**
|
|
59
|
+
* 获取或设置底边距(离地高度)
|
|
60
|
+
*/
|
|
61
|
+
get bottom(): number;
|
|
62
|
+
set bottom(value: number);
|
|
63
|
+
/**
|
|
64
|
+
* 序列化成JSON对象
|
|
65
|
+
*/
|
|
66
|
+
toJson(): any;
|
|
67
|
+
/**
|
|
68
|
+
* 从JSON对象反序列化(仅生成层级树)
|
|
69
|
+
* @param json JSON对象
|
|
70
|
+
*/
|
|
71
|
+
fromJson(json: any): void;
|
|
72
|
+
/**
|
|
73
|
+
* 创建(仅当前层级可见对象)
|
|
74
|
+
* @param {boolean} force 是否强制
|
|
75
|
+
*/
|
|
76
|
+
build(force?: boolean): Promise<void>;
|
|
77
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 门窗开门朝向(缩放x、z的符号)
|
|
3
|
-
*/
|
|
4
|
-
export declare enum DoorWindowDirection {
|
|
5
|
-
/**
|
|
6
|
-
* 正正
|
|
7
|
-
*/
|
|
8
|
-
PositivePositive = 0,
|
|
9
|
-
/**
|
|
10
|
-
* 负正
|
|
11
|
-
*/
|
|
12
|
-
NegativePositive = 1,
|
|
13
|
-
/**
|
|
14
|
-
* 负负
|
|
15
|
-
*/
|
|
16
|
-
NegativeNegative = 2,
|
|
17
|
-
/**
|
|
18
|
-
* 正负
|
|
19
|
-
*/
|
|
20
|
-
PositiveNegative = 3
|
|
21
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 门窗开门朝向(缩放x、z的符号)
|
|
3
|
+
*/
|
|
4
|
+
export declare enum DoorWindowDirection {
|
|
5
|
+
/**
|
|
6
|
+
* 正正
|
|
7
|
+
*/
|
|
8
|
+
PositivePositive = 0,
|
|
9
|
+
/**
|
|
10
|
+
* 负正
|
|
11
|
+
*/
|
|
12
|
+
NegativePositive = 1,
|
|
13
|
+
/**
|
|
14
|
+
* 负负
|
|
15
|
+
*/
|
|
16
|
+
NegativeNegative = 2,
|
|
17
|
+
/**
|
|
18
|
+
* 正负
|
|
19
|
+
*/
|
|
20
|
+
PositiveNegative = 3
|
|
21
|
+
}
|