@glowjs/core 2025.8.21 → 2025.9.3-webgpu
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.d.ts +8 -0
- 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 +353 -351
- 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/EasingFunction.d.ts +36 -36
- 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 +169 -162
- package/dist/typings/core/AppOptions.d.ts +25 -25
- 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/Background.d.ts +12 -12
- package/dist/typings/effect/ColorCorrection.d.ts +129 -129
- package/dist/typings/effect/Decoration.d.ts +10 -10
- package/dist/typings/effect/EffectData.d.ts +197 -197
- package/dist/typings/effect/EffectMgr.d.ts +79 -79
- package/dist/typings/effect/EnvironmentTexture.d.ts +20 -20
- package/dist/typings/effect/EnvironmentTextureSource.d.ts +25 -25
- package/dist/typings/effect/Fog.d.ts +16 -16
- 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 +38 -38
- package/dist/typings/effect/Particle.d.ts +13 -13
- package/dist/typings/effect/ParticleData.d.ts +20 -20
- package/dist/typings/effect/SkyBox.d.ts +22 -22
- package/dist/typings/effect/ToneMappingType.d.ts +13 -13
- package/dist/typings/effect/defaultEffectValue.d.ts +5 -5
- package/dist/typings/entity/Building.d.ts +119 -119
- 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 +21 -21
- 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 +393 -393
- package/dist/typings/entity/EntityType.d.ts +81 -81
- package/dist/typings/entity/Floor.d.ts +128 -128
- 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 +24 -24
- package/dist/typings/entity/POI.d.ts +90 -90
- package/dist/typings/entity/Path.d.ts +1 -1
- package/dist/typings/entity/Pipe.d.ts +68 -68
- 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 +70 -70
- package/dist/typings/entity/Thing.d.ts +142 -142
- package/dist/typings/entity/Tracker.d.ts +34 -34
- package/dist/typings/entity/VideoFusion.d.ts +61 -61
- package/dist/typings/entity/ViewInfo.d.ts +14 -14
- package/dist/typings/entity/Wall.d.ts +95 -95
- package/dist/typings/entity/building/buildBuilding.d.ts +7 -7
- package/dist/typings/entity/building/buildBuildingOnClient.d.ts +2 -2
- package/dist/typings/entity/building/buildBuildingOnEditor.d.ts +2 -2
- package/dist/typings/entity/component/Animator.d.ts +52 -52
- package/dist/typings/entity/component/AutoOpenDoor.d.ts +24 -24
- package/dist/typings/entity/component/Component.d.ts +22 -22
- package/dist/typings/entity/component/PathAnimation.d.ts +63 -63
- package/dist/typings/entity/component/Style.d.ts +51 -51
- package/dist/typings/entity/component/archive/ArchiveBox.d.ts +97 -97
- package/dist/typings/entity/component/archive/ArchiveCabinet.d.ts +120 -120
- package/dist/typings/entity/component/archive/ArchiveCabinetGroup.d.ts +169 -169
- 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 +33 -33
- package/dist/typings/entity/component/archive/ArchiveGrid.d.ts +47 -47
- package/dist/typings/entity/component/archive/ArchiveMgr.d.ts +36 -36
- package/dist/typings/entity/component/archive/ColumnPosition.d.ts +17 -17
- 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/AssetData.d.ts +19 -19
- package/dist/typings/entity/component/cabinet/BoardCard.d.ts +63 -63
- package/dist/typings/entity/component/cabinet/Cabinet.d.ts +121 -121
- package/dist/typings/entity/component/cabinet/CabinetCapacityData.d.ts +17 -17
- package/dist/typings/entity/component/cabinet/CabinetMgr.d.ts +54 -54
- package/dist/typings/entity/component/cabinet/CabinetTagStyleConfig.d.ts +25 -25
- package/dist/typings/entity/component/cabinet/NetworkPort.d.ts +46 -46
- package/dist/typings/entity/component/cabinet/RackMounted.d.ts +109 -109
- 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 +95 -95
- 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/buildTips.d.ts +2 -2
- package/dist/typings/entity/component/heatmap/buildVertical.d.ts +6 -6
- package/dist/typings/entity/component/heatmap/updateHorizontal.d.ts +6 -6
- package/dist/typings/entity/component/heatmap/updateTips.d.ts +2 -2
- package/dist/typings/entity/component/heatmap/updateVertical.d.ts +2 -2
- package/dist/typings/entity/component/roaming/Roaming.d.ts +116 -116
- package/dist/typings/entity/component/roaming/pencil.d.ts +1 -1
- package/dist/typings/entity/init/afterLevelCreate.d.ts +6 -6
- package/dist/typings/entity/init/setBuildings.d.ts +2 -2
- package/dist/typings/entity/init/setDefaultView.d.ts +6 -6
- package/dist/typings/entity/init/setPOILink.d.ts +5 -5
- package/dist/typings/entity/init/setTransition.d.ts +6 -6
- package/dist/typings/entity/path/Path.d.ts +53 -53
- 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 +6 -6
- 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/poi_plus/Container.d.ts +14 -14
- package/dist/typings/entity/poi_plus/Img.d.ts +21 -21
- package/dist/typings/entity/poi_plus/Line.d.ts +15 -15
- package/dist/typings/entity/poi_plus/POIPlus.d.ts +138 -138
- package/dist/typings/entity/poi_plus/Txt.d.ts +20 -20
- package/dist/typings/entity/poi_plus/TxtAlign.d.ts +9 -9
- package/dist/typings/entity/poi_plus/render.d.ts +7 -7
- 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 +110 -110
- package/dist/typings/event/EventObject.d.ts +26 -26
- package/dist/typings/event/EventType.d.ts +173 -173
- 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 -104
- 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/InfoListDataItem.d.ts +17 -17
- package/dist/typings/gui/InfoListPanel.d.ts +106 -106
- package/dist/typings/gui/LinkTip.d.ts +30 -30
- package/dist/typings/gui/PerformancePanel.d.ts +43 -43
- package/dist/typings/gui/RectangleProgress.d.ts +20 -20
- package/dist/typings/gui/ToolTip.d.ts +34 -34
- package/dist/typings/gui/getTextWidth.d.ts +6 -6
- package/dist/typings/index.d.ts +93 -93
- 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 +105 -105
- 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/runAsyncTasks.d.ts +5 -5
- package/dist/typings/misc/to.d.ts +5 -5
- package/dist/typings/res/ResCacheData.d.ts +13 -13
- package/dist/typings/res/ResOptions.d.ts +89 -89
- package/dist/typings/res/ResPool.d.ts +72 -72
- package/dist/typings/res/registerBufferAndSetEffect.d.ts +7 -7
- package/dist/typings/res/replaceInstancedMesh.d.ts +6 -6
- package/dist/typings/runtime/RunTime.d.ts +137 -137
- package/dist/typings/runtime/babylonjs/babylonjs-core.d.ts +77 -77
- 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 +6 -6
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 常用键盘编码枚举
|
|
3
|
-
*/
|
|
4
|
-
export declare enum KeyCode {
|
|
5
|
-
A = 65,
|
|
6
|
-
B = 66,
|
|
7
|
-
C = 67,
|
|
8
|
-
D = 68,
|
|
9
|
-
E = 69,
|
|
10
|
-
F = 70,
|
|
11
|
-
G = 71,
|
|
12
|
-
H = 72,
|
|
13
|
-
I = 73,
|
|
14
|
-
J = 74,
|
|
15
|
-
K = 75,
|
|
16
|
-
L = 76,
|
|
17
|
-
M = 77,
|
|
18
|
-
N = 78,
|
|
19
|
-
O = 79,
|
|
20
|
-
P = 80,
|
|
21
|
-
Q = 81,
|
|
22
|
-
R = 82,
|
|
23
|
-
S = 83,
|
|
24
|
-
T = 84,
|
|
25
|
-
U = 85,
|
|
26
|
-
V = 86,
|
|
27
|
-
W = 87,
|
|
28
|
-
X = 88,
|
|
29
|
-
Y = 89,
|
|
30
|
-
Z = 90,
|
|
31
|
-
F1 = 112,
|
|
32
|
-
F2 = 113,
|
|
33
|
-
F3 = 114,
|
|
34
|
-
F4 = 115,
|
|
35
|
-
F5 = 116,
|
|
36
|
-
F6 = 117,
|
|
37
|
-
F7 = 118,
|
|
38
|
-
F8 = 119,
|
|
39
|
-
F9 = 120,
|
|
40
|
-
F10 = 121,
|
|
41
|
-
F11 = 122,
|
|
42
|
-
F12 = 123,
|
|
43
|
-
BackSpace = 8,
|
|
44
|
-
Tab = 9,
|
|
45
|
-
Enter = 13,
|
|
46
|
-
Shift = 16,
|
|
47
|
-
Ctrl = 17,
|
|
48
|
-
Alt = 18,
|
|
49
|
-
Space = 32,
|
|
50
|
-
Left = 37,
|
|
51
|
-
Up = 38,
|
|
52
|
-
Right = 39,
|
|
53
|
-
Down = 40,
|
|
54
|
-
Delete = 46
|
|
55
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 常用键盘编码枚举
|
|
3
|
+
*/
|
|
4
|
+
export declare enum KeyCode {
|
|
5
|
+
A = 65,
|
|
6
|
+
B = 66,
|
|
7
|
+
C = 67,
|
|
8
|
+
D = 68,
|
|
9
|
+
E = 69,
|
|
10
|
+
F = 70,
|
|
11
|
+
G = 71,
|
|
12
|
+
H = 72,
|
|
13
|
+
I = 73,
|
|
14
|
+
J = 74,
|
|
15
|
+
K = 75,
|
|
16
|
+
L = 76,
|
|
17
|
+
M = 77,
|
|
18
|
+
N = 78,
|
|
19
|
+
O = 79,
|
|
20
|
+
P = 80,
|
|
21
|
+
Q = 81,
|
|
22
|
+
R = 82,
|
|
23
|
+
S = 83,
|
|
24
|
+
T = 84,
|
|
25
|
+
U = 85,
|
|
26
|
+
V = 86,
|
|
27
|
+
W = 87,
|
|
28
|
+
X = 88,
|
|
29
|
+
Y = 89,
|
|
30
|
+
Z = 90,
|
|
31
|
+
F1 = 112,
|
|
32
|
+
F2 = 113,
|
|
33
|
+
F3 = 114,
|
|
34
|
+
F4 = 115,
|
|
35
|
+
F5 = 116,
|
|
36
|
+
F6 = 117,
|
|
37
|
+
F7 = 118,
|
|
38
|
+
F8 = 119,
|
|
39
|
+
F9 = 120,
|
|
40
|
+
F10 = 121,
|
|
41
|
+
F11 = 122,
|
|
42
|
+
F12 = 123,
|
|
43
|
+
BackSpace = 8,
|
|
44
|
+
Tab = 9,
|
|
45
|
+
Enter = 13,
|
|
46
|
+
Shift = 16,
|
|
47
|
+
Ctrl = 17,
|
|
48
|
+
Alt = 18,
|
|
49
|
+
Space = 32,
|
|
50
|
+
Left = 37,
|
|
51
|
+
Up = 38,
|
|
52
|
+
Right = 39,
|
|
53
|
+
Down = 40,
|
|
54
|
+
Delete = 46
|
|
55
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 属性变更数据
|
|
3
|
-
*/
|
|
4
|
-
export type PropertyChangedData = {
|
|
5
|
-
/**
|
|
6
|
-
* 事件发送者
|
|
7
|
-
*/
|
|
8
|
-
sender: any;
|
|
9
|
-
/**
|
|
10
|
-
* 属性名称
|
|
11
|
-
*/
|
|
12
|
-
propertyName: string;
|
|
13
|
-
/**
|
|
14
|
-
* 旧值
|
|
15
|
-
*/
|
|
16
|
-
oldValue: any;
|
|
17
|
-
/**
|
|
18
|
-
* 新值
|
|
19
|
-
*/
|
|
20
|
-
newValue: any;
|
|
21
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 属性变更数据
|
|
3
|
+
*/
|
|
4
|
+
export type PropertyChangedData = {
|
|
5
|
+
/**
|
|
6
|
+
* 事件发送者
|
|
7
|
+
*/
|
|
8
|
+
sender: any;
|
|
9
|
+
/**
|
|
10
|
+
* 属性名称
|
|
11
|
+
*/
|
|
12
|
+
propertyName: string;
|
|
13
|
+
/**
|
|
14
|
+
* 旧值
|
|
15
|
+
*/
|
|
16
|
+
oldValue: any;
|
|
17
|
+
/**
|
|
18
|
+
* 新值
|
|
19
|
+
*/
|
|
20
|
+
newValue: any;
|
|
21
|
+
};
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { EventDispatcher } from '../event/EventDispatcher';
|
|
2
|
-
import { AdvancedDynamicTexture } from '../runtime';
|
|
3
|
-
import { BillboardOptions } from './BillboardOptions';
|
|
4
|
-
import { Point3D } from '../misc';
|
|
5
|
-
/**
|
|
6
|
-
* 广告牌
|
|
7
|
-
*/
|
|
8
|
-
export declare class Billboard extends EventDispatcher {
|
|
9
|
-
/**
|
|
10
|
-
* 2D广告牌根
|
|
11
|
-
*/
|
|
12
|
-
static _root2d: AdvancedDynamicTexture | null;
|
|
13
|
-
private _data;
|
|
14
|
-
/**
|
|
15
|
-
* 锚点
|
|
16
|
-
*/
|
|
17
|
-
private _anchor;
|
|
18
|
-
/**
|
|
19
|
-
* 根
|
|
20
|
-
*/
|
|
21
|
-
private _root;
|
|
22
|
-
/**
|
|
23
|
-
* 容器
|
|
24
|
-
*/
|
|
25
|
-
private _container;
|
|
26
|
-
/**
|
|
27
|
-
* 上一次点击的时间点,用于计算双击事件
|
|
28
|
-
*/
|
|
29
|
-
private _lastClickTime;
|
|
30
|
-
/**
|
|
31
|
-
* 提示信息
|
|
32
|
-
*/
|
|
33
|
-
tip: string;
|
|
34
|
-
/**
|
|
35
|
-
* 初始化2D广告牌根
|
|
36
|
-
*/
|
|
37
|
-
static _init2DRoot(): void;
|
|
38
|
-
private _canvas;
|
|
39
|
-
/**
|
|
40
|
-
* 实例化一个广告牌对象
|
|
41
|
-
* @param type 类型
|
|
42
|
-
* @param options 选项
|
|
43
|
-
*/
|
|
44
|
-
constructor(type: '2D' | '3D', options: BillboardOptions);
|
|
45
|
-
private _onResize;
|
|
46
|
-
/**
|
|
47
|
-
* 获取类型
|
|
48
|
-
*/
|
|
49
|
-
get type(): '2D' | '3D';
|
|
50
|
-
/**
|
|
51
|
-
* 获取或设置渲染顺序(仅3D有效)
|
|
52
|
-
*/
|
|
53
|
-
get renderOrder(): number;
|
|
54
|
-
set renderOrder(value: number);
|
|
55
|
-
/**
|
|
56
|
-
* 获取或设置是否响应鼠标指针事件,默认true
|
|
57
|
-
*/
|
|
58
|
-
get isPointerBlocker(): boolean;
|
|
59
|
-
set isPointerBlocker(value: boolean);
|
|
60
|
-
/**
|
|
61
|
-
* 获取或设置位置(世界坐标)
|
|
62
|
-
*/
|
|
63
|
-
get position(): Point3D;
|
|
64
|
-
set position(value: Point3D);
|
|
65
|
-
/**
|
|
66
|
-
* 获取或设置旋转
|
|
67
|
-
*/
|
|
68
|
-
get rotation(): number;
|
|
69
|
-
set rotation(value: number);
|
|
70
|
-
/**
|
|
71
|
-
* 获取或设置可见性
|
|
72
|
-
*/
|
|
73
|
-
get visible(): boolean;
|
|
74
|
-
set visible(value: boolean);
|
|
75
|
-
/**
|
|
76
|
-
* 获取或设置指针样式
|
|
77
|
-
*/
|
|
78
|
-
get cursor(): string;
|
|
79
|
-
set cursor(value: string);
|
|
80
|
-
/**
|
|
81
|
-
* 获取或设置数据
|
|
82
|
-
*/
|
|
83
|
-
get data(): any;
|
|
84
|
-
set data(value: any);
|
|
85
|
-
/**
|
|
86
|
-
* 设置颜色
|
|
87
|
-
* @param value 值
|
|
88
|
-
*/
|
|
89
|
-
setColor(value: {
|
|
90
|
-
[key: string]: string;
|
|
91
|
-
}): void;
|
|
92
|
-
private _observer;
|
|
93
|
-
private _scale;
|
|
94
|
-
private _direction;
|
|
95
|
-
/**
|
|
96
|
-
* 获取或设置是否开启缩放动画
|
|
97
|
-
*/
|
|
98
|
-
get scaleAnimation(): boolean;
|
|
99
|
-
set scaleAnimation(value: boolean);
|
|
100
|
-
/**
|
|
101
|
-
* 释放
|
|
102
|
-
*/
|
|
103
|
-
dispose(): void;
|
|
104
|
-
}
|
|
1
|
+
import { EventDispatcher } from '../event/EventDispatcher';
|
|
2
|
+
import { AdvancedDynamicTexture } from '../runtime';
|
|
3
|
+
import { BillboardOptions } from './BillboardOptions';
|
|
4
|
+
import { Point3D } from '../misc';
|
|
5
|
+
/**
|
|
6
|
+
* 广告牌
|
|
7
|
+
*/
|
|
8
|
+
export declare class Billboard extends EventDispatcher {
|
|
9
|
+
/**
|
|
10
|
+
* 2D广告牌根
|
|
11
|
+
*/
|
|
12
|
+
static _root2d: AdvancedDynamicTexture | null;
|
|
13
|
+
private _data;
|
|
14
|
+
/**
|
|
15
|
+
* 锚点
|
|
16
|
+
*/
|
|
17
|
+
private _anchor;
|
|
18
|
+
/**
|
|
19
|
+
* 根
|
|
20
|
+
*/
|
|
21
|
+
private _root;
|
|
22
|
+
/**
|
|
23
|
+
* 容器
|
|
24
|
+
*/
|
|
25
|
+
private _container;
|
|
26
|
+
/**
|
|
27
|
+
* 上一次点击的时间点,用于计算双击事件
|
|
28
|
+
*/
|
|
29
|
+
private _lastClickTime;
|
|
30
|
+
/**
|
|
31
|
+
* 提示信息
|
|
32
|
+
*/
|
|
33
|
+
tip: string;
|
|
34
|
+
/**
|
|
35
|
+
* 初始化2D广告牌根
|
|
36
|
+
*/
|
|
37
|
+
static _init2DRoot(): void;
|
|
38
|
+
private _canvas;
|
|
39
|
+
/**
|
|
40
|
+
* 实例化一个广告牌对象
|
|
41
|
+
* @param type 类型
|
|
42
|
+
* @param options 选项
|
|
43
|
+
*/
|
|
44
|
+
constructor(type: '2D' | '3D', options: BillboardOptions);
|
|
45
|
+
private _onResize;
|
|
46
|
+
/**
|
|
47
|
+
* 获取类型
|
|
48
|
+
*/
|
|
49
|
+
get type(): '2D' | '3D';
|
|
50
|
+
/**
|
|
51
|
+
* 获取或设置渲染顺序(仅3D有效)
|
|
52
|
+
*/
|
|
53
|
+
get renderOrder(): number;
|
|
54
|
+
set renderOrder(value: number);
|
|
55
|
+
/**
|
|
56
|
+
* 获取或设置是否响应鼠标指针事件,默认true
|
|
57
|
+
*/
|
|
58
|
+
get isPointerBlocker(): boolean;
|
|
59
|
+
set isPointerBlocker(value: boolean);
|
|
60
|
+
/**
|
|
61
|
+
* 获取或设置位置(世界坐标)
|
|
62
|
+
*/
|
|
63
|
+
get position(): Point3D;
|
|
64
|
+
set position(value: Point3D);
|
|
65
|
+
/**
|
|
66
|
+
* 获取或设置旋转
|
|
67
|
+
*/
|
|
68
|
+
get rotation(): number;
|
|
69
|
+
set rotation(value: number);
|
|
70
|
+
/**
|
|
71
|
+
* 获取或设置可见性
|
|
72
|
+
*/
|
|
73
|
+
get visible(): boolean;
|
|
74
|
+
set visible(value: boolean);
|
|
75
|
+
/**
|
|
76
|
+
* 获取或设置指针样式
|
|
77
|
+
*/
|
|
78
|
+
get cursor(): string;
|
|
79
|
+
set cursor(value: string);
|
|
80
|
+
/**
|
|
81
|
+
* 获取或设置数据
|
|
82
|
+
*/
|
|
83
|
+
get data(): any;
|
|
84
|
+
set data(value: any);
|
|
85
|
+
/**
|
|
86
|
+
* 设置颜色
|
|
87
|
+
* @param value 值
|
|
88
|
+
*/
|
|
89
|
+
setColor(value: {
|
|
90
|
+
[key: string]: string;
|
|
91
|
+
}): void;
|
|
92
|
+
private _observer;
|
|
93
|
+
private _scale;
|
|
94
|
+
private _direction;
|
|
95
|
+
/**
|
|
96
|
+
* 获取或设置是否开启缩放动画
|
|
97
|
+
*/
|
|
98
|
+
get scaleAnimation(): boolean;
|
|
99
|
+
set scaleAnimation(value: boolean);
|
|
100
|
+
/**
|
|
101
|
+
* 释放
|
|
102
|
+
*/
|
|
103
|
+
dispose(): void;
|
|
104
|
+
}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 广告牌选项
|
|
3
|
-
*/
|
|
4
|
-
export type BillboardOptions = {
|
|
5
|
-
/**
|
|
6
|
-
* 宽度,2D为字符串类型(示例 100px),3D为数字类型(示例 2)
|
|
7
|
-
*/
|
|
8
|
-
width: number | string;
|
|
9
|
-
/**
|
|
10
|
-
* 高度,2D为字符串类型(示例 100px),3D为数字类型(示例 2)
|
|
11
|
-
*/
|
|
12
|
-
height: number | string;
|
|
13
|
-
/**
|
|
14
|
-
* 背景色,为空表示透明
|
|
15
|
-
*/
|
|
16
|
-
background?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 子元素
|
|
19
|
-
*/
|
|
20
|
-
children: {
|
|
21
|
-
/**
|
|
22
|
-
* 子元素类型
|
|
23
|
-
*/
|
|
24
|
-
type: 'image' | 'text';
|
|
25
|
-
/**
|
|
26
|
-
* 图片地址
|
|
27
|
-
*/
|
|
28
|
-
url?: string;
|
|
29
|
-
/**
|
|
30
|
-
* 宽度
|
|
31
|
-
*/
|
|
32
|
-
width?: string;
|
|
33
|
-
/**
|
|
34
|
-
* 高度
|
|
35
|
-
*/
|
|
36
|
-
height?: string;
|
|
37
|
-
/**
|
|
38
|
-
* 文本
|
|
39
|
-
*/
|
|
40
|
-
text?: string;
|
|
41
|
-
/**
|
|
42
|
-
* 用于绑定文本的键
|
|
43
|
-
*/
|
|
44
|
-
key?: string;
|
|
45
|
-
/**
|
|
46
|
-
* 颜色
|
|
47
|
-
*/
|
|
48
|
-
color?: string;
|
|
49
|
-
/**
|
|
50
|
-
* 字体大小
|
|
51
|
-
*/
|
|
52
|
-
fontSize?: number;
|
|
53
|
-
/**
|
|
54
|
-
* 左边距
|
|
55
|
-
*/
|
|
56
|
-
left?: string;
|
|
57
|
-
/**
|
|
58
|
-
* 顶边距
|
|
59
|
-
*/
|
|
60
|
-
top?: string;
|
|
61
|
-
}[];
|
|
62
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 广告牌选项
|
|
3
|
+
*/
|
|
4
|
+
export type BillboardOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* 宽度,2D为字符串类型(示例 100px),3D为数字类型(示例 2)
|
|
7
|
+
*/
|
|
8
|
+
width: number | string;
|
|
9
|
+
/**
|
|
10
|
+
* 高度,2D为字符串类型(示例 100px),3D为数字类型(示例 2)
|
|
11
|
+
*/
|
|
12
|
+
height: number | string;
|
|
13
|
+
/**
|
|
14
|
+
* 背景色,为空表示透明
|
|
15
|
+
*/
|
|
16
|
+
background?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 子元素
|
|
19
|
+
*/
|
|
20
|
+
children: {
|
|
21
|
+
/**
|
|
22
|
+
* 子元素类型
|
|
23
|
+
*/
|
|
24
|
+
type: 'image' | 'text';
|
|
25
|
+
/**
|
|
26
|
+
* 图片地址
|
|
27
|
+
*/
|
|
28
|
+
url?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 宽度
|
|
31
|
+
*/
|
|
32
|
+
width?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 高度
|
|
35
|
+
*/
|
|
36
|
+
height?: string;
|
|
37
|
+
/**
|
|
38
|
+
* 文本
|
|
39
|
+
*/
|
|
40
|
+
text?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 用于绑定文本的键
|
|
43
|
+
*/
|
|
44
|
+
key?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 颜色
|
|
47
|
+
*/
|
|
48
|
+
color?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 字体大小
|
|
51
|
+
*/
|
|
52
|
+
fontSize?: number;
|
|
53
|
+
/**
|
|
54
|
+
* 左边距
|
|
55
|
+
*/
|
|
56
|
+
left?: string;
|
|
57
|
+
/**
|
|
58
|
+
* 顶边距
|
|
59
|
+
*/
|
|
60
|
+
top?: string;
|
|
61
|
+
}[];
|
|
62
|
+
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { TextBlock } from '../runtime';
|
|
2
|
-
import { App } from '../core/App';
|
|
3
|
-
/**
|
|
4
|
-
* 帧率
|
|
5
|
-
*/
|
|
6
|
-
export declare class FPSBar extends TextBlock {
|
|
7
|
-
/**
|
|
8
|
-
* 应用
|
|
9
|
-
*/
|
|
10
|
-
app: App;
|
|
11
|
-
private _fps;
|
|
12
|
-
/**
|
|
13
|
-
* 实例化一个帧率对象
|
|
14
|
-
* @param {App} app 应用
|
|
15
|
-
*/
|
|
16
|
-
constructor(app: App);
|
|
17
|
-
/**
|
|
18
|
-
* 获取帧率
|
|
19
|
-
*/
|
|
20
|
-
get fps(): number;
|
|
21
|
-
/**
|
|
22
|
-
* 释放
|
|
23
|
-
*/
|
|
24
|
-
dispose(): void;
|
|
25
|
-
}
|
|
1
|
+
import { TextBlock } from '../runtime';
|
|
2
|
+
import { App } from '../core/App';
|
|
3
|
+
/**
|
|
4
|
+
* 帧率
|
|
5
|
+
*/
|
|
6
|
+
export declare class FPSBar extends TextBlock {
|
|
7
|
+
/**
|
|
8
|
+
* 应用
|
|
9
|
+
*/
|
|
10
|
+
app: App;
|
|
11
|
+
private _fps;
|
|
12
|
+
/**
|
|
13
|
+
* 实例化一个帧率对象
|
|
14
|
+
* @param {App} app 应用
|
|
15
|
+
*/
|
|
16
|
+
constructor(app: App);
|
|
17
|
+
/**
|
|
18
|
+
* 获取帧率
|
|
19
|
+
*/
|
|
20
|
+
get fps(): number;
|
|
21
|
+
/**
|
|
22
|
+
* 释放
|
|
23
|
+
*/
|
|
24
|
+
dispose(): void;
|
|
25
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Base } from '../base/Base';
|
|
2
|
-
import { App } from '../core/App';
|
|
3
|
-
import { AdvancedDynamicTexture } from '../runtime';
|
|
4
|
-
import { FPSBar } from './FPSBar';
|
|
5
|
-
import { RectangleProgress } from './RectangleProgress';
|
|
6
|
-
import { PerformancePanel } from './PerformancePanel';
|
|
7
|
-
import { ToolTip } from './ToolTip';
|
|
8
|
-
/**
|
|
9
|
-
* GUI管理器
|
|
10
|
-
*/
|
|
11
|
-
export declare class GUIMgr extends Base {
|
|
12
|
-
/**
|
|
13
|
-
* 根
|
|
14
|
-
*/
|
|
15
|
-
root: AdvancedDynamicTexture;
|
|
16
|
-
/**
|
|
17
|
-
* 项目加载进度条
|
|
18
|
-
*/
|
|
19
|
-
projectProgress: RectangleProgress;
|
|
20
|
-
/**
|
|
21
|
-
* 帧率
|
|
22
|
-
*/
|
|
23
|
-
fpsBar: FPSBar;
|
|
24
|
-
/**
|
|
25
|
-
* 性能面板
|
|
26
|
-
*/
|
|
27
|
-
performancePanel: PerformancePanel;
|
|
28
|
-
/**
|
|
29
|
-
* 提示信息
|
|
30
|
-
*/
|
|
31
|
-
toolTip: ToolTip;
|
|
32
|
-
/**
|
|
33
|
-
* 实例化一个GUI管理器
|
|
34
|
-
* @param {App} app 应用
|
|
35
|
-
*/
|
|
36
|
-
constructor(app: App);
|
|
37
|
-
/**
|
|
38
|
-
* 释放
|
|
39
|
-
*/
|
|
40
|
-
dispose(): void;
|
|
41
|
-
}
|
|
1
|
+
import { Base } from '../base/Base';
|
|
2
|
+
import { App } from '../core/App';
|
|
3
|
+
import { AdvancedDynamicTexture } from '../runtime';
|
|
4
|
+
import { FPSBar } from './FPSBar';
|
|
5
|
+
import { RectangleProgress } from './RectangleProgress';
|
|
6
|
+
import { PerformancePanel } from './PerformancePanel';
|
|
7
|
+
import { ToolTip } from './ToolTip';
|
|
8
|
+
/**
|
|
9
|
+
* GUI管理器
|
|
10
|
+
*/
|
|
11
|
+
export declare class GUIMgr extends Base {
|
|
12
|
+
/**
|
|
13
|
+
* 根
|
|
14
|
+
*/
|
|
15
|
+
root: AdvancedDynamicTexture;
|
|
16
|
+
/**
|
|
17
|
+
* 项目加载进度条
|
|
18
|
+
*/
|
|
19
|
+
projectProgress: RectangleProgress;
|
|
20
|
+
/**
|
|
21
|
+
* 帧率
|
|
22
|
+
*/
|
|
23
|
+
fpsBar: FPSBar;
|
|
24
|
+
/**
|
|
25
|
+
* 性能面板
|
|
26
|
+
*/
|
|
27
|
+
performancePanel: PerformancePanel;
|
|
28
|
+
/**
|
|
29
|
+
* 提示信息
|
|
30
|
+
*/
|
|
31
|
+
toolTip: ToolTip;
|
|
32
|
+
/**
|
|
33
|
+
* 实例化一个GUI管理器
|
|
34
|
+
* @param {App} app 应用
|
|
35
|
+
*/
|
|
36
|
+
constructor(app: App);
|
|
37
|
+
/**
|
|
38
|
+
* 释放
|
|
39
|
+
*/
|
|
40
|
+
dispose(): void;
|
|
41
|
+
}
|