@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,7 +1,7 @@
|
|
|
1
|
-
import { Vector2, Vector3 } from '../../../runtime';
|
|
2
|
-
/**
|
|
3
|
-
* 去掉三维向量的Y轴,把向量投射到xz平面。
|
|
4
|
-
* @param vec3 三维向量
|
|
5
|
-
* @returns 二维向量
|
|
6
|
-
*/
|
|
7
|
-
export declare function ignoreYAxis(vec3: Vector3): Vector2;
|
|
1
|
+
import { Vector2, Vector3 } from '../../../runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 去掉三维向量的Y轴,把向量投射到xz平面。
|
|
4
|
+
* @param vec3 三维向量
|
|
5
|
+
* @returns 二维向量
|
|
6
|
+
*/
|
|
7
|
+
export declare function ignoreYAxis(vec3: Vector3): Vector2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Point2D } from '../../Point2D';
|
|
2
|
-
/**
|
|
3
|
-
* 判断多边形顶点顺序是否为顺时针
|
|
4
|
-
* @param poly 多边形顶点
|
|
5
|
-
*/
|
|
6
|
-
export declare function isClockwise(poly: Point2D[]): boolean;
|
|
1
|
+
import { Point2D } from '../../Point2D';
|
|
2
|
+
/**
|
|
3
|
+
* 判断多边形顶点顺序是否为顺时针
|
|
4
|
+
* @param poly 多边形顶点
|
|
5
|
+
*/
|
|
6
|
+
export declare function isClockwise(poly: Point2D[]): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Point } from '../Point';
|
|
2
|
-
/**
|
|
3
|
-
* 求向量长度
|
|
4
|
-
* @param p 点p
|
|
5
|
-
*/
|
|
6
|
-
export declare function lengthTo(p: Point): number;
|
|
1
|
+
import { Point } from '../Point';
|
|
2
|
+
/**
|
|
3
|
+
* 求向量长度
|
|
4
|
+
* @param p 点p
|
|
5
|
+
*/
|
|
6
|
+
export declare function lengthTo(p: Point): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Point } from '../Point';
|
|
2
|
-
/**
|
|
3
|
-
* 乘法,返回一个新对象
|
|
4
|
-
* @param a 点a
|
|
5
|
-
* @param b 点b
|
|
6
|
-
*/
|
|
7
|
-
export declare function multiplyTo(a: Point, b: Point): Point;
|
|
1
|
+
import { Point } from '../Point';
|
|
2
|
+
/**
|
|
3
|
+
* 乘法,返回一个新对象
|
|
4
|
+
* @param a 点a
|
|
5
|
+
* @param b 点b
|
|
6
|
+
*/
|
|
7
|
+
export declare function multiplyTo(a: Point, b: Point): Point;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Point } from '../Point';
|
|
2
|
-
/**
|
|
3
|
-
* 标准化,返回一个新对象
|
|
4
|
-
* @param p 点
|
|
5
|
-
*/
|
|
6
|
-
export declare function normalizeTo(p: Point): Point;
|
|
1
|
+
import { Point } from '../Point';
|
|
2
|
+
/**
|
|
3
|
+
* 标准化,返回一个新对象
|
|
4
|
+
* @param p 点
|
|
5
|
+
*/
|
|
6
|
+
export declare function normalizeTo(p: Point): Point;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Point } from '../Point';
|
|
2
|
-
/**
|
|
3
|
-
* 缩放,返回一个新对象
|
|
4
|
-
* @param p 点p
|
|
5
|
-
* @param scale 缩放倍数
|
|
6
|
-
*/
|
|
7
|
-
export declare function scaleTo(p: Point, scale: number): Point;
|
|
1
|
+
import { Point } from '../Point';
|
|
2
|
+
/**
|
|
3
|
+
* 缩放,返回一个新对象
|
|
4
|
+
* @param p 点p
|
|
5
|
+
* @param scale 缩放倍数
|
|
6
|
+
*/
|
|
7
|
+
export declare function scaleTo(p: Point, scale: number): Point;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Point } from '../Point';
|
|
2
|
-
/**
|
|
3
|
-
* 减法,返回一个新对象
|
|
4
|
-
* @param a 点a
|
|
5
|
-
* @param b 点b
|
|
6
|
-
*/
|
|
7
|
-
export declare function subtractTo(a: Point, b: Point): Point;
|
|
1
|
+
import { Point } from '../Point';
|
|
2
|
+
/**
|
|
3
|
+
* 减法,返回一个新对象
|
|
4
|
+
* @param a 点a
|
|
5
|
+
* @param b 点b
|
|
6
|
+
*/
|
|
7
|
+
export declare function subtractTo(a: Point, b: Point): Point;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Vector3 } from '../../../runtime';
|
|
2
|
-
import { Point } from '../Point';
|
|
3
|
-
/**
|
|
4
|
-
* 将三维向量转换成点
|
|
5
|
-
* @param a 参考点
|
|
6
|
-
* @param p 三维向量
|
|
7
|
-
*/
|
|
8
|
-
export declare function toPoint(a: Point, p: Vector3): Point;
|
|
1
|
+
import { Vector3 } from '../../../runtime';
|
|
2
|
+
import { Point } from '../Point';
|
|
3
|
+
/**
|
|
4
|
+
* 将三维向量转换成点
|
|
5
|
+
* @param a 参考点
|
|
6
|
+
* @param p 三维向量
|
|
7
|
+
*/
|
|
8
|
+
export declare function toPoint(a: Point, p: Vector3): Point;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Vector3 } from '../../../runtime';
|
|
2
|
-
import { Point } from '../Point';
|
|
3
|
-
/**
|
|
4
|
-
* 将点转换成三维向量
|
|
5
|
-
* @param p 点
|
|
6
|
-
*/
|
|
7
|
-
export declare function toVector3(p: Point): Vector3;
|
|
1
|
+
import { Vector3 } from '../../../runtime';
|
|
2
|
+
import { Point } from '../Point';
|
|
3
|
+
/**
|
|
4
|
+
* 将点转换成三维向量
|
|
5
|
+
* @param p 点
|
|
6
|
+
*/
|
|
7
|
+
export declare function toVector3(p: Point): Vector3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Vector2 } from '../../../runtime';
|
|
2
|
-
/**
|
|
3
|
-
* 求二维向量的垂直向量
|
|
4
|
-
* @param vector2 二维向量
|
|
5
|
-
* @returns 垂直向量
|
|
6
|
-
*/
|
|
7
|
-
export declare function verticalVector(vector2: Vector2): Vector2;
|
|
1
|
+
import { Vector2 } from '../../../runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 求二维向量的垂直向量
|
|
4
|
+
* @param vector2 二维向量
|
|
5
|
+
* @returns 垂直向量
|
|
6
|
+
*/
|
|
7
|
+
export declare function verticalVector(vector2: Vector2): Vector2;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 深度拷贝对象
|
|
3
|
-
* @param obj 对象
|
|
4
|
-
*/
|
|
5
|
-
export declare function deepClone(obj: any): any;
|
|
6
|
-
/**
|
|
7
|
-
* 肢解对象(删除属性)
|
|
8
|
-
* @param obj 对象
|
|
9
|
-
*/
|
|
10
|
-
export declare function explode(obj: any): void;
|
|
11
|
-
/**
|
|
12
|
-
* 变量对象(改良版递归)
|
|
13
|
-
* @param obj 对象
|
|
14
|
-
* @param callback 回调函数
|
|
15
|
-
*/
|
|
16
|
-
export declare function traverse(obj: any, callback: (obj: any) => void): Promise<void>;
|
|
1
|
+
/**
|
|
2
|
+
* 深度拷贝对象
|
|
3
|
+
* @param obj 对象
|
|
4
|
+
*/
|
|
5
|
+
export declare function deepClone(obj: any): any;
|
|
6
|
+
/**
|
|
7
|
+
* 肢解对象(删除属性)
|
|
8
|
+
* @param obj 对象
|
|
9
|
+
*/
|
|
10
|
+
export declare function explode(obj: any): void;
|
|
11
|
+
/**
|
|
12
|
+
* 变量对象(改良版递归)
|
|
13
|
+
* @param obj 对象
|
|
14
|
+
* @param callback 回调函数
|
|
15
|
+
*/
|
|
16
|
+
export declare function traverse(obj: any, callback: (obj: any) => void): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取随机十六进制颜色
|
|
3
|
-
*/
|
|
4
|
-
export declare function randomColor(): string;
|
|
1
|
+
/**
|
|
2
|
+
* 获取随机十六进制颜色
|
|
3
|
+
*/
|
|
4
|
+
export declare function randomColor(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 运行异步任务
|
|
3
|
-
* @param tasks 任务列表
|
|
4
|
-
*/
|
|
5
|
-
export declare function runAsyncTasks(tasks: (() => Promise<void>)[]): Promise<void>;
|
|
1
|
+
/**
|
|
2
|
+
* 运行异步任务
|
|
3
|
+
* @param tasks 任务列表
|
|
4
|
+
*/
|
|
5
|
+
export declare function runAsyncTasks(tasks: (() => Promise<void>)[]): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 执行Promise
|
|
3
|
-
* @param promise
|
|
4
|
-
*/
|
|
5
|
-
export declare function to<T>(promise: Promise<T>): Promise<[err: any, data: T]>;
|
|
1
|
+
/**
|
|
2
|
+
* 执行Promise
|
|
3
|
+
* @param promise
|
|
4
|
+
*/
|
|
5
|
+
export declare function to<T>(promise: Promise<T>): Promise<[err: any, data: T]>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 资源缓存数据
|
|
3
|
-
*/
|
|
4
|
-
export type ResCacheData = {
|
|
5
|
-
/**
|
|
6
|
-
* 错误信息
|
|
7
|
-
*/
|
|
8
|
-
err?: any;
|
|
9
|
-
/**
|
|
10
|
-
* 原始数据
|
|
11
|
-
*/
|
|
12
|
-
data?: any;
|
|
13
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 资源缓存数据
|
|
3
|
+
*/
|
|
4
|
+
export type ResCacheData = {
|
|
5
|
+
/**
|
|
6
|
+
* 错误信息
|
|
7
|
+
*/
|
|
8
|
+
err?: any;
|
|
9
|
+
/**
|
|
10
|
+
* 原始数据
|
|
11
|
+
*/
|
|
12
|
+
data?: any;
|
|
13
|
+
};
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { Point3D } from '../misc';
|
|
2
|
-
/**
|
|
3
|
-
* 资源参数选项
|
|
4
|
-
*/
|
|
5
|
-
export type ResOptions = {
|
|
6
|
-
/**
|
|
7
|
-
* 唯一编号
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
/**
|
|
11
|
-
* 扩展名
|
|
12
|
-
*/
|
|
13
|
-
ext?: string;
|
|
14
|
-
/**
|
|
15
|
-
* 是否默认值
|
|
16
|
-
*/
|
|
17
|
-
isDefault?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* 标题
|
|
20
|
-
*/
|
|
21
|
-
title?: string;
|
|
22
|
-
/**
|
|
23
|
-
* 尺寸
|
|
24
|
-
*/
|
|
25
|
-
size?: number[];
|
|
26
|
-
/**
|
|
27
|
-
* 版本号
|
|
28
|
-
*/
|
|
29
|
-
version?: string;
|
|
30
|
-
name?: string;
|
|
31
|
-
/**
|
|
32
|
-
* 资源类型ID
|
|
33
|
-
*/
|
|
34
|
-
res_type_id?: string;
|
|
35
|
-
/**
|
|
36
|
-
* 是否资产图片
|
|
37
|
-
*/
|
|
38
|
-
asset?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* 是否在资产库
|
|
41
|
-
*/
|
|
42
|
-
lib?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* 偏移量,有的模型的轴心点不在底部中心
|
|
45
|
-
*/
|
|
46
|
-
offset?: Point3D;
|
|
47
|
-
/**
|
|
48
|
-
* 离地高度
|
|
49
|
-
*/
|
|
50
|
-
above?: number;
|
|
51
|
-
/**
|
|
52
|
-
* 透明模式(贴图)
|
|
53
|
-
*/
|
|
54
|
-
transparencyMode?: number;
|
|
55
|
-
/**
|
|
56
|
-
* 粗糙度(贴图)
|
|
57
|
-
*/
|
|
58
|
-
roughness?: number;
|
|
59
|
-
/**
|
|
60
|
-
* 金属度(贴图)
|
|
61
|
-
*/
|
|
62
|
-
metallic?: number;
|
|
63
|
-
/**
|
|
64
|
-
* U缩放(贴图)
|
|
65
|
-
*/
|
|
66
|
-
uScale?: number;
|
|
67
|
-
/**
|
|
68
|
-
* V缩放(贴图)
|
|
69
|
-
*/
|
|
70
|
-
vScale?: number;
|
|
71
|
-
/**
|
|
72
|
-
* 颜色(贴图)
|
|
73
|
-
*/
|
|
74
|
-
color?: string;
|
|
75
|
-
/**
|
|
76
|
-
* 贴图类型
|
|
77
|
-
*/
|
|
78
|
-
textureType?: 'panorama' | 'background' | 'grid';
|
|
79
|
-
/**
|
|
80
|
-
* 资源类型
|
|
81
|
-
*/
|
|
82
|
-
type?: string;
|
|
83
|
-
/**
|
|
84
|
-
* 是否有透明通道
|
|
85
|
-
*/
|
|
86
|
-
hasAlpha?: boolean;
|
|
87
|
-
/** 资源文件MD5值 */
|
|
88
|
-
md5?: string;
|
|
89
|
-
};
|
|
1
|
+
import { Point3D } from '../misc';
|
|
2
|
+
/**
|
|
3
|
+
* 资源参数选项
|
|
4
|
+
*/
|
|
5
|
+
export type ResOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* 唯一编号
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* 扩展名
|
|
12
|
+
*/
|
|
13
|
+
ext?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 是否默认值
|
|
16
|
+
*/
|
|
17
|
+
isDefault?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 标题
|
|
20
|
+
*/
|
|
21
|
+
title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 尺寸
|
|
24
|
+
*/
|
|
25
|
+
size?: number[];
|
|
26
|
+
/**
|
|
27
|
+
* 版本号
|
|
28
|
+
*/
|
|
29
|
+
version?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 资源类型ID
|
|
33
|
+
*/
|
|
34
|
+
res_type_id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 是否资产图片
|
|
37
|
+
*/
|
|
38
|
+
asset?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* 是否在资产库
|
|
41
|
+
*/
|
|
42
|
+
lib?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 偏移量,有的模型的轴心点不在底部中心
|
|
45
|
+
*/
|
|
46
|
+
offset?: Point3D;
|
|
47
|
+
/**
|
|
48
|
+
* 离地高度
|
|
49
|
+
*/
|
|
50
|
+
above?: number;
|
|
51
|
+
/**
|
|
52
|
+
* 透明模式(贴图)
|
|
53
|
+
*/
|
|
54
|
+
transparencyMode?: number;
|
|
55
|
+
/**
|
|
56
|
+
* 粗糙度(贴图)
|
|
57
|
+
*/
|
|
58
|
+
roughness?: number;
|
|
59
|
+
/**
|
|
60
|
+
* 金属度(贴图)
|
|
61
|
+
*/
|
|
62
|
+
metallic?: number;
|
|
63
|
+
/**
|
|
64
|
+
* U缩放(贴图)
|
|
65
|
+
*/
|
|
66
|
+
uScale?: number;
|
|
67
|
+
/**
|
|
68
|
+
* V缩放(贴图)
|
|
69
|
+
*/
|
|
70
|
+
vScale?: number;
|
|
71
|
+
/**
|
|
72
|
+
* 颜色(贴图)
|
|
73
|
+
*/
|
|
74
|
+
color?: string;
|
|
75
|
+
/**
|
|
76
|
+
* 贴图类型
|
|
77
|
+
*/
|
|
78
|
+
textureType?: 'panorama' | 'background' | 'grid';
|
|
79
|
+
/**
|
|
80
|
+
* 资源类型
|
|
81
|
+
*/
|
|
82
|
+
type?: string;
|
|
83
|
+
/**
|
|
84
|
+
* 是否有透明通道
|
|
85
|
+
*/
|
|
86
|
+
hasAlpha?: boolean;
|
|
87
|
+
/** 资源文件MD5值 */
|
|
88
|
+
md5?: string;
|
|
89
|
+
};
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { Base } from "../base/Base";
|
|
2
|
-
import { App } from "../core/App";
|
|
3
|
-
import { ParticleData } from "../effect/ParticleData";
|
|
4
|
-
import { InstantiatedEntries, NodeMaterial, Texture } from "../runtime";
|
|
5
|
-
import { ResCacheData } from "./ResCacheData";
|
|
6
|
-
import { ResOptions } from "./ResOptions";
|
|
7
|
-
/**
|
|
8
|
-
* 资源池
|
|
9
|
-
*/
|
|
10
|
-
export declare class ResPool extends Base {
|
|
11
|
-
/**
|
|
12
|
-
* 资源列表
|
|
13
|
-
*/
|
|
14
|
-
readonly resList: ResOptions[];
|
|
15
|
-
_cacheVertices: number;
|
|
16
|
-
/**
|
|
17
|
-
* 缓存
|
|
18
|
-
*/
|
|
19
|
-
_cache: Map<string, ResCacheData>;
|
|
20
|
-
/**
|
|
21
|
-
* 加载中的资源列表
|
|
22
|
-
*/
|
|
23
|
-
private _locked;
|
|
24
|
-
/**
|
|
25
|
-
* 实例化一个资源池对象
|
|
26
|
-
* @param app 应用
|
|
27
|
-
*/
|
|
28
|
-
constructor(app: App);
|
|
29
|
-
/**
|
|
30
|
-
* 判断指定编号的的资源是否已缓存
|
|
31
|
-
* @param id 编号
|
|
32
|
-
*/
|
|
33
|
-
isCached(id: string): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* 获取资源信息
|
|
36
|
-
* @param index 索引或资源编号
|
|
37
|
-
*/
|
|
38
|
-
getResInfo(index: number | string): ResOptions;
|
|
39
|
-
/**
|
|
40
|
-
* 获取资源编号
|
|
41
|
-
* @param index 索引
|
|
42
|
-
*/
|
|
43
|
-
getResId(index: number): string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* 获取资源索引
|
|
46
|
-
* @param id 编号
|
|
47
|
-
*/
|
|
48
|
-
getResIndex(id: string): number | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* 加载指定资源
|
|
51
|
-
* @param id 编号
|
|
52
|
-
*/
|
|
53
|
-
_loadRes(info: ResOptions): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* 获取指定资源
|
|
56
|
-
* @param id 编号
|
|
57
|
-
* @param optimized 是否优化网格
|
|
58
|
-
* @param archiveGrid 是否包含档案格
|
|
59
|
-
*/
|
|
60
|
-
getRes(id: string, optimized?: boolean, archiveGrid?: boolean): Promise<Texture | InstantiatedEntries | NodeMaterial | any>;
|
|
61
|
-
private _cloneEntires;
|
|
62
|
-
private _loadModel;
|
|
63
|
-
private _getTexture;
|
|
64
|
-
private _loadMaterial;
|
|
65
|
-
private _loadParticle;
|
|
66
|
-
private _getResType;
|
|
67
|
-
/**
|
|
68
|
-
* 获取粒子默认数据(仅用于编辑器)
|
|
69
|
-
* @param id 编号
|
|
70
|
-
*/
|
|
71
|
-
getDefaultParticleData(id: string): Promise<ParticleData>;
|
|
72
|
-
}
|
|
1
|
+
import { Base } from "../base/Base";
|
|
2
|
+
import { App } from "../core/App";
|
|
3
|
+
import { ParticleData } from "../effect/ParticleData";
|
|
4
|
+
import { InstantiatedEntries, NodeMaterial, Texture } from "../runtime";
|
|
5
|
+
import { ResCacheData } from "./ResCacheData";
|
|
6
|
+
import { ResOptions } from "./ResOptions";
|
|
7
|
+
/**
|
|
8
|
+
* 资源池
|
|
9
|
+
*/
|
|
10
|
+
export declare class ResPool extends Base {
|
|
11
|
+
/**
|
|
12
|
+
* 资源列表
|
|
13
|
+
*/
|
|
14
|
+
readonly resList: ResOptions[];
|
|
15
|
+
_cacheVertices: number;
|
|
16
|
+
/**
|
|
17
|
+
* 缓存
|
|
18
|
+
*/
|
|
19
|
+
_cache: Map<string, ResCacheData>;
|
|
20
|
+
/**
|
|
21
|
+
* 加载中的资源列表
|
|
22
|
+
*/
|
|
23
|
+
private _locked;
|
|
24
|
+
/**
|
|
25
|
+
* 实例化一个资源池对象
|
|
26
|
+
* @param app 应用
|
|
27
|
+
*/
|
|
28
|
+
constructor(app: App);
|
|
29
|
+
/**
|
|
30
|
+
* 判断指定编号的的资源是否已缓存
|
|
31
|
+
* @param id 编号
|
|
32
|
+
*/
|
|
33
|
+
isCached(id: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 获取资源信息
|
|
36
|
+
* @param index 索引或资源编号
|
|
37
|
+
*/
|
|
38
|
+
getResInfo(index: number | string): ResOptions;
|
|
39
|
+
/**
|
|
40
|
+
* 获取资源编号
|
|
41
|
+
* @param index 索引
|
|
42
|
+
*/
|
|
43
|
+
getResId(index: number): string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* 获取资源索引
|
|
46
|
+
* @param id 编号
|
|
47
|
+
*/
|
|
48
|
+
getResIndex(id: string): number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* 加载指定资源
|
|
51
|
+
* @param id 编号
|
|
52
|
+
*/
|
|
53
|
+
_loadRes(info: ResOptions): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* 获取指定资源
|
|
56
|
+
* @param id 编号
|
|
57
|
+
* @param optimized 是否优化网格
|
|
58
|
+
* @param archiveGrid 是否包含档案格
|
|
59
|
+
*/
|
|
60
|
+
getRes(id: string, optimized?: boolean, archiveGrid?: boolean): Promise<Texture | InstantiatedEntries | NodeMaterial | any>;
|
|
61
|
+
private _cloneEntires;
|
|
62
|
+
private _loadModel;
|
|
63
|
+
private _getTexture;
|
|
64
|
+
private _loadMaterial;
|
|
65
|
+
private _loadParticle;
|
|
66
|
+
private _getResType;
|
|
67
|
+
/**
|
|
68
|
+
* 获取粒子默认数据(仅用于编辑器)
|
|
69
|
+
* @param id 编号
|
|
70
|
+
*/
|
|
71
|
+
getDefaultParticleData(id: string): Promise<ParticleData>;
|
|
72
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { App } from '../core/App';
|
|
2
|
-
import { TransformNode } from '../runtime';
|
|
3
|
-
/**
|
|
4
|
-
* 注册缓冲区
|
|
5
|
-
* @param rootNode 根节点
|
|
6
|
-
*/
|
|
7
|
-
export declare function registerBufferAndSetEffect(rootNode: TransformNode, app: App): void;
|
|
1
|
+
import { App } from '../core/App';
|
|
2
|
+
import { TransformNode } from '../runtime';
|
|
3
|
+
/**
|
|
4
|
+
* 注册缓冲区
|
|
5
|
+
* @param rootNode 根节点
|
|
6
|
+
*/
|
|
7
|
+
export declare function registerBufferAndSetEffect(rootNode: TransformNode, app: App): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TransformNode } from '../runtime';
|
|
2
|
-
/**
|
|
3
|
-
* 替换实例网格
|
|
4
|
-
* @param rootNode 根节点
|
|
5
|
-
*/
|
|
6
|
-
export declare function replaceInstancedMesh(rootNode: TransformNode): void;
|
|
1
|
+
import { TransformNode } from '../runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 替换实例网格
|
|
4
|
+
* @param rootNode 根节点
|
|
5
|
+
*/
|
|
6
|
+
export declare function replaceInstancedMesh(rootNode: TransformNode): void;
|