@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,9 +1,9 @@
|
|
|
1
|
-
import { Mesh } from '../../runtime';
|
|
2
|
-
/**
|
|
3
|
-
* 获取盒模式的原始盒子
|
|
4
|
-
*/
|
|
5
|
-
export declare function getOriginBox(): Mesh;
|
|
6
|
-
/**
|
|
7
|
-
* 获取盒模式的原始线
|
|
8
|
-
*/
|
|
9
|
-
export declare function getOriginLine(): Mesh;
|
|
1
|
+
import { Mesh } from '../../runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 获取盒模式的原始盒子
|
|
4
|
+
*/
|
|
5
|
+
export declare function getOriginBox(): Mesh;
|
|
6
|
+
/**
|
|
7
|
+
* 获取盒模式的原始线
|
|
8
|
+
*/
|
|
9
|
+
export declare function getOriginLine(): Mesh;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Material } from '../../runtime';
|
|
2
|
-
import { App } from '../../core/App';
|
|
3
|
-
/**
|
|
4
|
-
* 创建墙边缘材质
|
|
5
|
-
* @param app 应用
|
|
6
|
-
* @param textureId 贴图ID
|
|
7
|
-
*/
|
|
8
|
-
export declare function createManualWallEdgeMaterial(app: App): Promise<Material>;
|
|
1
|
+
import { Material } from '../../runtime';
|
|
2
|
+
import { App } from '../../core/App';
|
|
3
|
+
/**
|
|
4
|
+
* 创建墙边缘材质
|
|
5
|
+
* @param app 应用
|
|
6
|
+
* @param textureId 贴图ID
|
|
7
|
+
*/
|
|
8
|
+
export declare function createManualWallEdgeMaterial(app: App): Promise<Material>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PBRMaterial } from '../../runtime';
|
|
2
|
-
import { App } from '../../core/App';
|
|
3
|
-
/**
|
|
4
|
-
* 墙面材质
|
|
5
|
-
* @param app 应用
|
|
6
|
-
* @param textureId 贴图ID
|
|
7
|
-
*/
|
|
8
|
-
export declare function createManualWallFaceMaterial(app: App, textureId: string): Promise<PBRMaterial>;
|
|
1
|
+
import { PBRMaterial } from '../../runtime';
|
|
2
|
+
import { App } from '../../core/App';
|
|
3
|
+
/**
|
|
4
|
+
* 墙面材质
|
|
5
|
+
* @param app 应用
|
|
6
|
+
* @param textureId 贴图ID
|
|
7
|
+
*/
|
|
8
|
+
export declare function createManualWallFaceMaterial(app: App, textureId: string): Promise<PBRMaterial>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Mesh, Node, Material } from '../../runtime';
|
|
2
|
-
import { App } from '../../core/App';
|
|
3
|
-
import { MeshFaceData } from '../MeshFaceData';
|
|
4
|
-
/**
|
|
5
|
-
* 创建手工墙网格
|
|
6
|
-
* @param app 应用
|
|
7
|
-
* @param name 网格名称
|
|
8
|
-
* @param parentNode 父节点
|
|
9
|
-
* @param mat 材质
|
|
10
|
-
* @param meshFaceData 网格面数据
|
|
11
|
-
*/
|
|
12
|
-
export declare function createManualWallMesh(app: App, name: string, parentNode: Node, mat: Material, meshFaceData: MeshFaceData): Mesh;
|
|
1
|
+
import { Mesh, Node, Material } from '../../runtime';
|
|
2
|
+
import { App } from '../../core/App';
|
|
3
|
+
import { MeshFaceData } from '../MeshFaceData';
|
|
4
|
+
/**
|
|
5
|
+
* 创建手工墙网格
|
|
6
|
+
* @param app 应用
|
|
7
|
+
* @param name 网格名称
|
|
8
|
+
* @param parentNode 父节点
|
|
9
|
+
* @param mat 材质
|
|
10
|
+
* @param meshFaceData 网格面数据
|
|
11
|
+
*/
|
|
12
|
+
export declare function createManualWallMesh(app: App, name: string, parentNode: Node, mat: Material, meshFaceData: MeshFaceData): Mesh;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { App } from '../../core/App';
|
|
2
|
-
import { MeshFaceData } from '../MeshFaceData';
|
|
3
|
-
import { Node, Mesh, Material } from '../../runtime';
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param app 应用
|
|
7
|
-
* @param namePrefix 名称前缀
|
|
8
|
-
* @param textureId 贴图ID
|
|
9
|
-
* @param data 网格数据列表
|
|
10
|
-
* @param materialCreater 材质创建方法
|
|
11
|
-
* @param parentNode 父节点
|
|
12
|
-
*/
|
|
13
|
-
export declare function createMergedMesh(app: App, namePrefix: string, textureId: string, data: MeshFaceData[], materialCreater: (app: App, textureId: string) => Promise<Material>, parentNode: Node): Promise<Mesh>;
|
|
1
|
+
import { App } from '../../core/App';
|
|
2
|
+
import { MeshFaceData } from '../MeshFaceData';
|
|
3
|
+
import { Node, Mesh, Material } from '../../runtime';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param app 应用
|
|
7
|
+
* @param namePrefix 名称前缀
|
|
8
|
+
* @param textureId 贴图ID
|
|
9
|
+
* @param data 网格数据列表
|
|
10
|
+
* @param materialCreater 材质创建方法
|
|
11
|
+
* @param parentNode 父节点
|
|
12
|
+
*/
|
|
13
|
+
export declare function createMergedMesh(app: App, namePrefix: string, textureId: string, data: MeshFaceData[], materialCreater: (app: App, textureId: string) => Promise<Material>, parentNode: Node): Promise<Mesh>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 创建路径箭头图标
|
|
3
|
-
*/
|
|
4
|
-
export declare function createPathArrowIcon(): string;
|
|
1
|
+
/**
|
|
2
|
+
* 创建路径箭头图标
|
|
3
|
+
*/
|
|
4
|
+
export declare function createPathArrowIcon(): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 创建路径点圆图标
|
|
3
|
-
*/
|
|
4
|
-
export declare function createPathCircleIcon(): string;
|
|
1
|
+
/**
|
|
2
|
+
* 创建路径点圆图标
|
|
3
|
+
*/
|
|
4
|
+
export declare function createPathCircleIcon(): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PBRMaterial } from '../../runtime';
|
|
2
|
-
import { App } from '../../core/App';
|
|
3
|
-
export declare function createRoomMaterial(app: App, textureId: string): Promise<PBRMaterial>;
|
|
1
|
+
import { PBRMaterial } from '../../runtime';
|
|
2
|
+
import { App } from '../../core/App';
|
|
3
|
+
export declare function createRoomMaterial(app: App, textureId: string): Promise<PBRMaterial>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Mesh, PBRMaterial, Node } from '../../runtime';
|
|
2
|
-
import { App } from '../../core/App';
|
|
3
|
-
import { MeshFaceData } from '../MeshFaceData';
|
|
4
|
-
/**
|
|
5
|
-
* 创建房间网格(地板、天花板、楼顶)
|
|
6
|
-
* @param app 应用
|
|
7
|
-
* @param name 网格名称
|
|
8
|
-
* @param parentNode 父节点
|
|
9
|
-
* @param material 材质
|
|
10
|
-
* @param meshFaceData 网管面数据
|
|
11
|
-
* @param show 是否显示
|
|
12
|
-
* @param pickable 是否可拾取
|
|
13
|
-
*/
|
|
14
|
-
export declare function createRoomMesh(app: App, name: string, parentNode: Node, material: PBRMaterial, meshFaceData: MeshFaceData, show: boolean, pickable: boolean): Mesh;
|
|
1
|
+
import { Mesh, PBRMaterial, Node } from '../../runtime';
|
|
2
|
+
import { App } from '../../core/App';
|
|
3
|
+
import { MeshFaceData } from '../MeshFaceData';
|
|
4
|
+
/**
|
|
5
|
+
* 创建房间网格(地板、天花板、楼顶)
|
|
6
|
+
* @param app 应用
|
|
7
|
+
* @param name 网格名称
|
|
8
|
+
* @param parentNode 父节点
|
|
9
|
+
* @param material 材质
|
|
10
|
+
* @param meshFaceData 网管面数据
|
|
11
|
+
* @param show 是否显示
|
|
12
|
+
* @param pickable 是否可拾取
|
|
13
|
+
*/
|
|
14
|
+
export declare function createRoomMesh(app: App, name: string, parentNode: Node, material: PBRMaterial, meshFaceData: MeshFaceData, show: boolean, pickable: boolean): Mesh;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InstancedMesh, Scene } from '../../runtime';
|
|
2
|
-
/**
|
|
3
|
-
* 获取路径点网格
|
|
4
|
-
* @param name 路径点名称
|
|
5
|
-
* @param scene 场景
|
|
6
|
-
*/
|
|
7
|
-
export declare function getPathIconMesh(name: string, scene: Scene): InstancedMesh;
|
|
1
|
+
import { InstancedMesh, Scene } from '../../runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 获取路径点网格
|
|
4
|
+
* @param name 路径点名称
|
|
5
|
+
* @param scene 场景
|
|
6
|
+
*/
|
|
7
|
+
export declare function getPathIconMesh(name: string, scene: Scene): InstancedMesh;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InstancedMesh, Scene } from '../../runtime';
|
|
2
|
-
export declare function getPathLineMesh(name: string, scene: Scene): InstancedMesh;
|
|
1
|
+
import { InstancedMesh, Scene } from '../../runtime';
|
|
2
|
+
export declare function getPathLineMesh(name: string, scene: Scene): InstancedMesh;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity } from '../Entity';
|
|
2
|
-
/**
|
|
3
|
-
* 获取指定层级的单个实体的加载权重
|
|
4
|
-
* @param level 层级
|
|
5
|
-
*/
|
|
6
|
-
export declare function getPerWeight(level: Entity): number;
|
|
1
|
+
import { Entity } from '../Entity';
|
|
2
|
+
/**
|
|
3
|
+
* 获取指定层级的单个实体的加载权重
|
|
4
|
+
* @param level 层级
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPerWeight(level: Entity): number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { App } from '../../core/App';
|
|
2
|
-
/**
|
|
3
|
-
* 隐藏所有包围盒
|
|
4
|
-
* @param app 应用
|
|
5
|
-
*/
|
|
6
|
-
export declare function hideAllBoundingBox(app: App): void;
|
|
1
|
+
import { App } from '../../core/App';
|
|
2
|
+
/**
|
|
3
|
+
* 隐藏所有包围盒
|
|
4
|
+
* @param app 应用
|
|
5
|
+
*/
|
|
6
|
+
export declare function hideAllBoundingBox(app: App): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 设置资源
|
|
3
|
-
* @param json JSON对象
|
|
4
|
-
*/
|
|
5
|
-
export declare function setRes(json: any): Promise<void>;
|
|
1
|
+
/**
|
|
2
|
+
* 设置资源
|
|
3
|
+
* @param json JSON对象
|
|
4
|
+
*/
|
|
5
|
+
export declare function setRes(json: any): Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Vector3 } from '@babylonjs/core/Maths/math.vector';
|
|
2
|
-
/**
|
|
3
|
-
* 平滑管道
|
|
4
|
-
* @param path 管道路径
|
|
5
|
-
* @param radius 半径
|
|
6
|
-
*/
|
|
7
|
-
export declare function smoothTube(path: Vector3[], radius: number): Vector3[];
|
|
1
|
+
import { Vector3 } from '@babylonjs/core/Maths/math.vector';
|
|
2
|
+
/**
|
|
3
|
+
* 平滑管道
|
|
4
|
+
* @param path 管道路径
|
|
5
|
+
* @param radius 半径
|
|
6
|
+
*/
|
|
7
|
+
export declare function smoothTube(path: Vector3[], radius: number): Vector3[];
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 科技风建筑材质
|
|
3
|
-
*/
|
|
4
|
-
export declare let technologyBuildingMaterial: {
|
|
5
|
-
tags: null;
|
|
6
|
-
ambient: number[];
|
|
7
|
-
diffuse: number[];
|
|
8
|
-
specular: number[];
|
|
9
|
-
emissive: number[];
|
|
10
|
-
specularPower: number;
|
|
11
|
-
useAlphaFromDiffuseTexture: boolean;
|
|
12
|
-
useEmissiveAsIllumination: boolean;
|
|
13
|
-
linkEmissiveWithDiffuse: boolean;
|
|
14
|
-
useSpecularOverAlpha: boolean;
|
|
15
|
-
useReflectionOverAlpha: boolean;
|
|
16
|
-
disableLighting: boolean;
|
|
17
|
-
useObjectSpaceNormalMap: boolean;
|
|
18
|
-
useParallax: boolean;
|
|
19
|
-
useParallaxOcclusion: boolean;
|
|
20
|
-
parallaxScaleBias: number;
|
|
21
|
-
roughness: number;
|
|
22
|
-
indexOfRefraction: number;
|
|
23
|
-
invertRefractionY: boolean;
|
|
24
|
-
alphaCutOff: number;
|
|
25
|
-
useLightmapAsShadowmap: boolean;
|
|
26
|
-
opacityFresnelParameters: {
|
|
27
|
-
isEnabled: boolean;
|
|
28
|
-
leftColor: number[];
|
|
29
|
-
rightColor: number[];
|
|
30
|
-
bias: number;
|
|
31
|
-
power: number;
|
|
32
|
-
};
|
|
33
|
-
emissiveFresnelParameters: {
|
|
34
|
-
isEnabled: boolean;
|
|
35
|
-
leftColor: number[];
|
|
36
|
-
rightColor: number[];
|
|
37
|
-
bias: number;
|
|
38
|
-
power: number;
|
|
39
|
-
};
|
|
40
|
-
useReflectionFresnelFromSpecular: boolean;
|
|
41
|
-
useGlossinessFromSpecularMapAlpha: boolean;
|
|
42
|
-
maxSimultaneousLights: number;
|
|
43
|
-
invertNormalMapX: boolean;
|
|
44
|
-
invertNormalMapY: boolean;
|
|
45
|
-
twoSidedLighting: boolean;
|
|
46
|
-
id: string;
|
|
47
|
-
uniqueId: number;
|
|
48
|
-
name: string;
|
|
49
|
-
checkReadyOnEveryCall: boolean;
|
|
50
|
-
checkReadyOnlyOnce: boolean;
|
|
51
|
-
state: string;
|
|
52
|
-
alpha: number;
|
|
53
|
-
backFaceCulling: boolean;
|
|
54
|
-
sideOrientation: number;
|
|
55
|
-
alphaMode: number;
|
|
56
|
-
_needDepthPrePass: boolean;
|
|
57
|
-
disableDepthWrite: boolean;
|
|
58
|
-
forceDepthWrite: boolean;
|
|
59
|
-
depthFunction: number;
|
|
60
|
-
separateCullingPass: boolean;
|
|
61
|
-
fogEnabled: boolean;
|
|
62
|
-
pointSize: number;
|
|
63
|
-
zOffset: number;
|
|
64
|
-
wireframe: boolean;
|
|
65
|
-
pointsCloud: boolean;
|
|
66
|
-
fillMode: number;
|
|
67
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 科技风建筑材质
|
|
3
|
+
*/
|
|
4
|
+
export declare let technologyBuildingMaterial: {
|
|
5
|
+
tags: null;
|
|
6
|
+
ambient: number[];
|
|
7
|
+
diffuse: number[];
|
|
8
|
+
specular: number[];
|
|
9
|
+
emissive: number[];
|
|
10
|
+
specularPower: number;
|
|
11
|
+
useAlphaFromDiffuseTexture: boolean;
|
|
12
|
+
useEmissiveAsIllumination: boolean;
|
|
13
|
+
linkEmissiveWithDiffuse: boolean;
|
|
14
|
+
useSpecularOverAlpha: boolean;
|
|
15
|
+
useReflectionOverAlpha: boolean;
|
|
16
|
+
disableLighting: boolean;
|
|
17
|
+
useObjectSpaceNormalMap: boolean;
|
|
18
|
+
useParallax: boolean;
|
|
19
|
+
useParallaxOcclusion: boolean;
|
|
20
|
+
parallaxScaleBias: number;
|
|
21
|
+
roughness: number;
|
|
22
|
+
indexOfRefraction: number;
|
|
23
|
+
invertRefractionY: boolean;
|
|
24
|
+
alphaCutOff: number;
|
|
25
|
+
useLightmapAsShadowmap: boolean;
|
|
26
|
+
opacityFresnelParameters: {
|
|
27
|
+
isEnabled: boolean;
|
|
28
|
+
leftColor: number[];
|
|
29
|
+
rightColor: number[];
|
|
30
|
+
bias: number;
|
|
31
|
+
power: number;
|
|
32
|
+
};
|
|
33
|
+
emissiveFresnelParameters: {
|
|
34
|
+
isEnabled: boolean;
|
|
35
|
+
leftColor: number[];
|
|
36
|
+
rightColor: number[];
|
|
37
|
+
bias: number;
|
|
38
|
+
power: number;
|
|
39
|
+
};
|
|
40
|
+
useReflectionFresnelFromSpecular: boolean;
|
|
41
|
+
useGlossinessFromSpecularMapAlpha: boolean;
|
|
42
|
+
maxSimultaneousLights: number;
|
|
43
|
+
invertNormalMapX: boolean;
|
|
44
|
+
invertNormalMapY: boolean;
|
|
45
|
+
twoSidedLighting: boolean;
|
|
46
|
+
id: string;
|
|
47
|
+
uniqueId: number;
|
|
48
|
+
name: string;
|
|
49
|
+
checkReadyOnEveryCall: boolean;
|
|
50
|
+
checkReadyOnlyOnce: boolean;
|
|
51
|
+
state: string;
|
|
52
|
+
alpha: number;
|
|
53
|
+
backFaceCulling: boolean;
|
|
54
|
+
sideOrientation: number;
|
|
55
|
+
alphaMode: number;
|
|
56
|
+
_needDepthPrePass: boolean;
|
|
57
|
+
disableDepthWrite: boolean;
|
|
58
|
+
forceDepthWrite: boolean;
|
|
59
|
+
depthFunction: number;
|
|
60
|
+
separateCullingPass: boolean;
|
|
61
|
+
fogEnabled: boolean;
|
|
62
|
+
pointSize: number;
|
|
63
|
+
zOffset: number;
|
|
64
|
+
wireframe: boolean;
|
|
65
|
+
pointsCloud: boolean;
|
|
66
|
+
fillMode: number;
|
|
67
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EventDispatcher } from './EventDispatcher';
|
|
2
|
-
/**
|
|
3
|
-
* 事件参数
|
|
4
|
-
*/
|
|
5
|
-
export type EventArg = {
|
|
6
|
-
/**
|
|
7
|
-
* 目标
|
|
8
|
-
*/
|
|
9
|
-
target: EventDispatcher;
|
|
10
|
-
/**
|
|
11
|
-
* 数据
|
|
12
|
-
*/
|
|
13
|
-
data: any;
|
|
14
|
-
};
|
|
1
|
+
import { EventDispatcher } from './EventDispatcher';
|
|
2
|
+
/**
|
|
3
|
+
* 事件参数
|
|
4
|
+
*/
|
|
5
|
+
export type EventArg = {
|
|
6
|
+
/**
|
|
7
|
+
* 目标
|
|
8
|
+
*/
|
|
9
|
+
target: EventDispatcher;
|
|
10
|
+
/**
|
|
11
|
+
* 数据
|
|
12
|
+
*/
|
|
13
|
+
data: any;
|
|
14
|
+
};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { IDisposable } from '../base/IDisposable';
|
|
2
|
-
import { EventType } from './EventType';
|
|
3
|
-
import { EventArg } from './EventArg';
|
|
4
|
-
/**
|
|
5
|
-
* 事件调度器
|
|
6
|
-
*/
|
|
7
|
-
export declare class EventDispatcher implements IDisposable {
|
|
8
|
-
/**
|
|
9
|
-
* 事件字典
|
|
10
|
-
*/
|
|
11
|
-
private _eventMap;
|
|
12
|
-
/**
|
|
13
|
-
* 是否已经销毁
|
|
14
|
-
*/
|
|
15
|
-
_disposed: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* 监听事件
|
|
18
|
-
* @param type 事件类型
|
|
19
|
-
* @param callback 回调函数
|
|
20
|
-
* @param once 是否只执行一次
|
|
21
|
-
* @param data 自定义事件数据
|
|
22
|
-
* @returns 事件唯一编号
|
|
23
|
-
*/
|
|
24
|
-
on(type: EventType | string, callback: (ev: EventArg) => void, once?: boolean, data?: any): string;
|
|
25
|
-
/**
|
|
26
|
-
* 监听事件仅一次
|
|
27
|
-
* @param type 事件类型
|
|
28
|
-
* @param callback 回调函数
|
|
29
|
-
* @param data 自定义事件数据
|
|
30
|
-
* @returns 事件唯一编号
|
|
31
|
-
*/
|
|
32
|
-
once(type: EventType | string, callback: (ev: EventArg) => void, data?: any): string;
|
|
33
|
-
/**
|
|
34
|
-
* 触发指定类型的事件
|
|
35
|
-
* @param type 事件类型
|
|
36
|
-
* @param data 自定义事件数据
|
|
37
|
-
*/
|
|
38
|
-
trigger(type: EventType | string, data?: any): void;
|
|
39
|
-
/**
|
|
40
|
-
* 移除指定编号的事件
|
|
41
|
-
* @param id 事件唯一编号
|
|
42
|
-
*/
|
|
43
|
-
off(id: string): void;
|
|
44
|
-
/**
|
|
45
|
-
* 移除指定类型的事件
|
|
46
|
-
* @param type 事件类型
|
|
47
|
-
*/
|
|
48
|
-
offType(type: EventType | string): void;
|
|
49
|
-
/**
|
|
50
|
-
* 移除所有事件
|
|
51
|
-
*/
|
|
52
|
-
offAll(): void;
|
|
53
|
-
/**
|
|
54
|
-
* 暂停事件响应
|
|
55
|
-
* @param ids 事件唯一编号列表
|
|
56
|
-
*/
|
|
57
|
-
pause(...ids: string[]): void;
|
|
58
|
-
/**
|
|
59
|
-
* 恢复事件响应
|
|
60
|
-
* @param ids 事件唯一编号列表
|
|
61
|
-
*/
|
|
62
|
-
resume(...ids: string[]): void;
|
|
63
|
-
/**
|
|
64
|
-
* 释放
|
|
65
|
-
*/
|
|
66
|
-
dispose(): void;
|
|
67
|
-
}
|
|
1
|
+
import { IDisposable } from '../base/IDisposable';
|
|
2
|
+
import { EventType } from './EventType';
|
|
3
|
+
import { EventArg } from './EventArg';
|
|
4
|
+
/**
|
|
5
|
+
* 事件调度器
|
|
6
|
+
*/
|
|
7
|
+
export declare class EventDispatcher implements IDisposable {
|
|
8
|
+
/**
|
|
9
|
+
* 事件字典
|
|
10
|
+
*/
|
|
11
|
+
private _eventMap;
|
|
12
|
+
/**
|
|
13
|
+
* 是否已经销毁
|
|
14
|
+
*/
|
|
15
|
+
_disposed: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 监听事件
|
|
18
|
+
* @param type 事件类型
|
|
19
|
+
* @param callback 回调函数
|
|
20
|
+
* @param once 是否只执行一次
|
|
21
|
+
* @param data 自定义事件数据
|
|
22
|
+
* @returns 事件唯一编号
|
|
23
|
+
*/
|
|
24
|
+
on(type: EventType | string, callback: (ev: EventArg) => void, once?: boolean, data?: any): string;
|
|
25
|
+
/**
|
|
26
|
+
* 监听事件仅一次
|
|
27
|
+
* @param type 事件类型
|
|
28
|
+
* @param callback 回调函数
|
|
29
|
+
* @param data 自定义事件数据
|
|
30
|
+
* @returns 事件唯一编号
|
|
31
|
+
*/
|
|
32
|
+
once(type: EventType | string, callback: (ev: EventArg) => void, data?: any): string;
|
|
33
|
+
/**
|
|
34
|
+
* 触发指定类型的事件
|
|
35
|
+
* @param type 事件类型
|
|
36
|
+
* @param data 自定义事件数据
|
|
37
|
+
*/
|
|
38
|
+
trigger(type: EventType | string, data?: any): void;
|
|
39
|
+
/**
|
|
40
|
+
* 移除指定编号的事件
|
|
41
|
+
* @param id 事件唯一编号
|
|
42
|
+
*/
|
|
43
|
+
off(id: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* 移除指定类型的事件
|
|
46
|
+
* @param type 事件类型
|
|
47
|
+
*/
|
|
48
|
+
offType(type: EventType | string): void;
|
|
49
|
+
/**
|
|
50
|
+
* 移除所有事件
|
|
51
|
+
*/
|
|
52
|
+
offAll(): void;
|
|
53
|
+
/**
|
|
54
|
+
* 暂停事件响应
|
|
55
|
+
* @param ids 事件唯一编号列表
|
|
56
|
+
*/
|
|
57
|
+
pause(...ids: string[]): void;
|
|
58
|
+
/**
|
|
59
|
+
* 恢复事件响应
|
|
60
|
+
* @param ids 事件唯一编号列表
|
|
61
|
+
*/
|
|
62
|
+
resume(...ids: string[]): void;
|
|
63
|
+
/**
|
|
64
|
+
* 释放
|
|
65
|
+
*/
|
|
66
|
+
dispose(): void;
|
|
67
|
+
}
|