@galacean/engine-core 1.1.0-alpha.0 → 1.1.0-alpha.1
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/main.js +5988 -4700
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +5988 -4700
- package/dist/module.js +4762 -3474
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/2d/sprite/Sprite.d.ts +3 -0
- package/types/Camera.d.ts +25 -4
- package/types/DisorderedArray.d.ts +4 -3
- package/types/Engine.d.ts +5 -1
- package/types/Entity.d.ts +3 -1
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +1 -2
- package/types/RenderPipeline/ClassPool.d.ts +3 -1
- package/types/RenderPipeline/IPoolElement.d.ts +3 -0
- package/types/RenderPipeline/MeshRenderData.d.ts +3 -1
- package/types/RenderPipeline/MeshRenderElement.d.ts +3 -1
- package/types/RenderPipeline/PipelinePass.d.ts +16 -0
- package/types/RenderPipeline/PipelineUtils.d.ts +1 -0
- package/types/RenderPipeline/RenderElement.d.ts +5 -5
- package/types/RenderPipeline/RenderQueue.d.ts +1 -1
- package/types/RenderPipeline/SpriteElement.d.ts +3 -1
- package/types/RenderPipeline/SpriteMaskElement.d.ts +3 -1
- package/types/RenderPipeline/SpriteMaskRenderData.d.ts +3 -1
- package/types/RenderPipeline/SpriteRenderData.d.ts +3 -1
- package/types/RenderPipeline/TextRenderData.d.ts +3 -1
- package/types/RenderPipeline/TextRenderElement.d.ts +3 -1
- package/types/RenderPipeline/enums/PipelineStage.d.ts +2 -0
- package/types/Renderer.d.ts +5 -2
- package/types/Scene.d.ts +10 -4
- package/types/animation/Animator.d.ts +3 -1
- package/types/animation/enums/LayerState.d.ts +3 -1
- package/types/asset/AssetType.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +16 -9
- package/types/asset/Loader.d.ts +3 -1
- package/types/asset/ResourceManager.d.ts +0 -2
- package/types/asset/request.d.ts +7 -3
- package/types/base/Constant.d.ts +1 -0
- package/types/base/EventDispatcher.d.ts +1 -1
- package/types/clone/ComponentCloner.d.ts +2 -1
- package/types/enums/DepthTextureMode.d.ts +7 -0
- package/types/graphic/Buffer.d.ts +22 -6
- package/types/graphic/BufferUtil.d.ts +1 -0
- package/types/graphic/SubMesh.d.ts +3 -1
- package/types/graphic/VertexElement.d.ts +10 -6
- package/types/index.d.ts +1 -0
- package/types/lighting/AmbientLight.d.ts +4 -1
- package/types/lighting/LightManager.d.ts +1 -0
- package/types/material/Material.d.ts +9 -2
- package/types/mesh/BufferMesh.d.ts +2 -2
- package/types/mesh/ModelMesh.d.ts +62 -41
- package/types/mesh/PrimitiveMesh.d.ts +4 -2
- package/types/mesh/Skin.d.ts +3 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +20 -11
- package/types/mesh/index.d.ts +6 -5
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -1
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +1 -1
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +1 -1
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +1 -1
- package/types/shader/Shader.d.ts +22 -0
- package/types/shader/enums/RenderStateElementKey.d.ts +58 -0
- package/types/shader/index.d.ts +1 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +5 -6
- package/types/sky/Sky.d.ts +12 -4
- package/types/texture/RenderTarget.d.ts +1 -2
- package/types/texture/Texture.d.ts +6 -0
- package/types/texture/Texture2D.d.ts +4 -2
- package/types/texture/Texture2DArray.d.ts +1 -1
- package/types/texture/TextureCube.d.ts +1 -1
- package/types/texture/enums/TextureFormat.d.ts +55 -49
- package/types/texture/enums/TextureUsage.d.ts +9 -0
- package/types/texture/index.d.ts +1 -0
- package/types/SafeLoopArray.d.ts +0 -37
- package/types/utils/BoolUpdateFlag.d.ts +0 -12
- package/types/utils/DisorderedArray.d.ts +0 -18
- package/types/utils/UpdateFlag.d.ts +0 -20
- package/types/utils/Utils.d.ts +0 -31
- /package/types/{animation/internal/AnimationCurveOwnerLayerData.d.ts → RenderPipeline/CullingResults.d.ts} +0 -0
- /package/types/{utils/UpdateFlagManager.d.ts → RenderPipeline/DepthOnlyPass.d.ts} +0 -0
package/types/shader/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { BlendOperation } from "./enums/BlendOperation";
|
|
|
3
3
|
export { ColorWriteMask } from "./enums/ColorWriteMask";
|
|
4
4
|
export { CompareFunction } from "./enums/CompareFunction";
|
|
5
5
|
export { CullMode } from "./enums/CullMode";
|
|
6
|
+
export { RenderStateElementKey as RenderStateDataKey } from "./enums/RenderStateElementKey";
|
|
6
7
|
export { RenderQueueType } from "./enums/RenderQueueType";
|
|
7
8
|
export { ShaderPropertyType } from "./enums/ShaderPropertyType";
|
|
8
9
|
export { StencilOperation } from "./enums/StencilOperation";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Camera } from "../Camera";
|
|
2
|
+
import { PipelinePass } from "../RenderPipeline/PipelinePass";
|
|
2
3
|
/**
|
|
3
|
-
* Cascade shadow caster.
|
|
4
|
+
* Cascade shadow caster pass.
|
|
4
5
|
*/
|
|
5
|
-
export declare class CascadedShadowCasterPass {
|
|
6
|
+
export declare class CascadedShadowCasterPass extends PipelinePass {
|
|
6
7
|
private static _lightShadowBiasProperty;
|
|
7
8
|
private static _lightDirectionProperty;
|
|
8
9
|
private static _shadowMatricesProperty;
|
|
@@ -17,7 +18,6 @@ export declare class CascadedShadowCasterPass {
|
|
|
17
18
|
private static _tempVector;
|
|
18
19
|
private static _tempMatrix0;
|
|
19
20
|
private readonly _camera;
|
|
20
|
-
private readonly _engine;
|
|
21
21
|
private readonly _supportDepthTexture;
|
|
22
22
|
private _shadowMapResolution;
|
|
23
23
|
private _shadowMapSize;
|
|
@@ -30,18 +30,17 @@ export declare class CascadedShadowCasterPass {
|
|
|
30
30
|
private _lightSide;
|
|
31
31
|
private _existShadowMap;
|
|
32
32
|
private _splitBoundSpheres;
|
|
33
|
-
/** The end is project
|
|
33
|
+
/** The end is project precision problem in shader. */
|
|
34
34
|
private _shadowMatrices;
|
|
35
35
|
private _shadowInfos;
|
|
36
36
|
private _depthTexture;
|
|
37
|
-
private
|
|
37
|
+
private _renderTarget;
|
|
38
38
|
private _viewportOffsets;
|
|
39
39
|
constructor(camera: Camera);
|
|
40
40
|
private _renderDirectShadowMap;
|
|
41
41
|
private _updateReceiversShaderData;
|
|
42
42
|
private _getCascadesSplitDistance;
|
|
43
43
|
private _getFarWithRadius;
|
|
44
|
-
private _getAvailableRenderTarget;
|
|
45
44
|
private _updateShadowSettings;
|
|
46
45
|
private _updateSingleShadowCasterShaderData;
|
|
47
46
|
}
|
package/types/sky/Sky.d.ts
CHANGED
|
@@ -7,8 +7,16 @@ export declare class Sky {
|
|
|
7
7
|
private static _epsilon;
|
|
8
8
|
private static _viewProjMatrix;
|
|
9
9
|
private static _projectionMatrix;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
|
|
10
|
+
private _material;
|
|
11
|
+
private _mesh;
|
|
12
|
+
/**
|
|
13
|
+
* Material of the sky.
|
|
14
|
+
*/
|
|
15
|
+
get material(): Material;
|
|
16
|
+
set material(value: Material);
|
|
17
|
+
/**
|
|
18
|
+
* Mesh of the sky.
|
|
19
|
+
*/
|
|
20
|
+
get mesh(): Mesh;
|
|
21
|
+
set mesh(value: Mesh);
|
|
14
22
|
}
|
|
@@ -79,9 +79,8 @@ export declare class RenderTarget extends GraphicsResource {
|
|
|
79
79
|
*/
|
|
80
80
|
constructor(engine: Engine, width: number, height: number, colorTextures: Texture[], depthTexture: Texture, antiAliasing?: number);
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
83
82
|
* Get the render color texture by index.
|
|
84
|
-
* @param index
|
|
83
|
+
* @param index - Render color texture index
|
|
85
84
|
*/
|
|
86
85
|
getColorTexture(index?: number): Texture | null;
|
|
87
86
|
/**
|
|
@@ -2,6 +2,7 @@ import { GraphicsResource } from "../asset/GraphicsResource";
|
|
|
2
2
|
import { TextureDepthCompareFunction } from "./enums/TextureDepthCompareFunction";
|
|
3
3
|
import { TextureFilterMode } from "./enums/TextureFilterMode";
|
|
4
4
|
import { TextureFormat } from "./enums/TextureFormat";
|
|
5
|
+
import { TextureUsage } from "./enums/TextureUsage";
|
|
5
6
|
import { TextureWrapMode } from "./enums/TextureWrapMode";
|
|
6
7
|
/**
|
|
7
8
|
* The base class of texture, contains some common functions of texture-related classes.
|
|
@@ -11,6 +12,7 @@ export declare abstract class Texture extends GraphicsResource {
|
|
|
11
12
|
protected _format: TextureFormat;
|
|
12
13
|
protected _width: number;
|
|
13
14
|
protected _height: number;
|
|
15
|
+
protected _usage: TextureUsage;
|
|
14
16
|
protected _mipmapCount: number;
|
|
15
17
|
private _wrapModeU;
|
|
16
18
|
private _wrapModeV;
|
|
@@ -30,6 +32,10 @@ export declare abstract class Texture extends GraphicsResource {
|
|
|
30
32
|
* The height of the texture.
|
|
31
33
|
*/
|
|
32
34
|
get height(): number;
|
|
35
|
+
/**
|
|
36
|
+
* The usage of the texture.
|
|
37
|
+
*/
|
|
38
|
+
get usage(): TextureUsage;
|
|
33
39
|
/**
|
|
34
40
|
* Wrapping mode for texture coordinate S.
|
|
35
41
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Engine } from "../Engine";
|
|
2
2
|
import { TextureFormat } from "./enums/TextureFormat";
|
|
3
|
+
import { TextureUsage } from "./enums/TextureUsage";
|
|
3
4
|
import { Texture } from "./Texture";
|
|
4
5
|
/**
|
|
5
6
|
* Two-dimensional texture.
|
|
@@ -12,8 +13,9 @@ export declare class Texture2D extends Texture {
|
|
|
12
13
|
* @param height - Texture height
|
|
13
14
|
* @param format - Texture format. default `TextureFormat.R8G8B8A8`
|
|
14
15
|
* @param mipmap - Whether to use multi-level texture
|
|
16
|
+
* @param usage - Texture usage
|
|
15
17
|
*/
|
|
16
|
-
constructor(engine: Engine, width: number, height: number, format?: TextureFormat, mipmap?: boolean);
|
|
18
|
+
constructor(engine: Engine, width: number, height: number, format?: TextureFormat, mipmap?: boolean, usage?: TextureUsage);
|
|
17
19
|
/**
|
|
18
20
|
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
19
21
|
* @remarks If it is the WebGL1.0 platform and the texture format is compressed, the first upload must be filled with textures.
|
|
@@ -34,7 +36,7 @@ export declare class Texture2D extends Texture {
|
|
|
34
36
|
* @param x - X coordinate of area start
|
|
35
37
|
* @param y - Y coordinate of area start
|
|
36
38
|
*/
|
|
37
|
-
setImageSource(imageSource: TexImageSource
|
|
39
|
+
setImageSource(imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
|
|
38
40
|
/**
|
|
39
41
|
* Get pixel color buffer.
|
|
40
42
|
* @param out - Color buffer
|
|
@@ -43,7 +43,7 @@ export declare class Texture2DArray extends Texture {
|
|
|
43
43
|
* @param x - X coordinate of area start
|
|
44
44
|
* @param y - Y coordinate of area start
|
|
45
45
|
*/
|
|
46
|
-
setImageSource(elementIndex: number, imageSource: TexImageSource
|
|
46
|
+
setImageSource(elementIndex: number, imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
|
|
47
47
|
/**
|
|
48
48
|
* Get pixel color buffer.
|
|
49
49
|
* @param elementIndex - The texture array element index
|
|
@@ -36,7 +36,7 @@ export declare class TextureCube extends Texture {
|
|
|
36
36
|
* @param x - X coordinate of area start
|
|
37
37
|
* @param y - Y coordinate of area start
|
|
38
38
|
*/
|
|
39
|
-
setImageSource(face: TextureCubeFace, imageSource: TexImageSource
|
|
39
|
+
setImageSource(face: TextureCubeFace, imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
|
|
40
40
|
/**
|
|
41
41
|
* Get pixel color buffer.
|
|
42
42
|
* @param out - Color buffer
|
|
@@ -2,68 +2,74 @@
|
|
|
2
2
|
* Texture format enumeration.
|
|
3
3
|
*/
|
|
4
4
|
export declare enum TextureFormat {
|
|
5
|
-
/** RGB format,8 bits per channel. */
|
|
5
|
+
/** RGB format, 8 bits per channel. */
|
|
6
6
|
R8G8B8 = 0,
|
|
7
|
-
/** RGBA format,8 bits per channel. */
|
|
7
|
+
/** RGBA format, 8 bits per channel. */
|
|
8
8
|
R8G8B8A8 = 1,
|
|
9
|
-
/** RGBA format,4 bits per channel. */
|
|
9
|
+
/** RGBA format, 4 bits per channel. */
|
|
10
10
|
R4G4B4A4 = 2,
|
|
11
|
-
/** RGBA format,5 bits in R channel,5 bits in G channel,5 bits in B channel, 1 bit in A channel. */
|
|
11
|
+
/** RGBA format, 5 bits in R channel, 5 bits in G channel, 5 bits in B channel, 1 bit in A channel. */
|
|
12
12
|
R5G5B5A1 = 3,
|
|
13
|
-
/** RGB format,5 bits in R channel,6 bits in G channel,5 bits in B channel. */
|
|
13
|
+
/** RGB format, 5 bits in R channel, 6 bits in G channel, 5 bits in B channel. */
|
|
14
14
|
R5G6B5 = 4,
|
|
15
|
-
/** Transparent format,8 bits. */
|
|
15
|
+
/** Transparent format, 8 bits. */
|
|
16
16
|
Alpha8 = 5,
|
|
17
17
|
/** Luminance/alpha in RGB channel, alpha in A channel. */
|
|
18
18
|
LuminanceAlpha = 6,
|
|
19
|
-
/** RGBA format,16 bits per channel. */
|
|
19
|
+
/** RGBA format, 16 bits per channel. */
|
|
20
20
|
R16G16B16A16 = 7,
|
|
21
|
-
/** RGBA format,32 bits per channel. */
|
|
21
|
+
/** RGBA format, 32 bits per channel. */
|
|
22
22
|
R32G32B32A32 = 8,
|
|
23
|
-
/** RGB compressed format
|
|
24
|
-
|
|
25
|
-
/** RGBA compressed format
|
|
26
|
-
|
|
27
|
-
/** RGB compressed format,
|
|
28
|
-
|
|
29
|
-
/** RGB compressed format,4 bits per pixel
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
/** RGB compressed format,
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/** RGB(A) compressed format,128 bits per
|
|
46
|
-
|
|
47
|
-
/** RGB(A) compressed format,128 bits per
|
|
48
|
-
|
|
49
|
-
/** RGB(A) compressed format,128 bits per
|
|
50
|
-
|
|
51
|
-
/** RGB(A) compressed format,128 bits per
|
|
52
|
-
|
|
53
|
-
/** RGB(A) compressed format,128 bits per
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
/** Automatic depth
|
|
58
|
-
|
|
23
|
+
/** RGB compressed format, 4 bits per pixel. */
|
|
24
|
+
BC1 = 9,
|
|
25
|
+
/** RGBA compressed format, 8 bits per pixel. */
|
|
26
|
+
BC3 = 10,
|
|
27
|
+
/** RGB(A) compressed format, 128 bits per 4x4 pixel block. */
|
|
28
|
+
BC7 = 11,
|
|
29
|
+
/** RGB compressed format, 4 bits per pixel. */
|
|
30
|
+
ETC1_RGB = 12,
|
|
31
|
+
/** RGB compressed format, 4 bits per pixel. */
|
|
32
|
+
ETC2_RGB = 13,
|
|
33
|
+
/** RGBA compressed format, 5 bits per pixel, 4 bit in RGB, 1 bit in A. */
|
|
34
|
+
ETC2_RGBA5 = 14,
|
|
35
|
+
/** RGB compressed format, 8 bits per pixel. */
|
|
36
|
+
ETC2_RGBA8 = 15,
|
|
37
|
+
/** RGB compressed format, 2 bits per pixel. */
|
|
38
|
+
PVRTC_RGB2 = 16,
|
|
39
|
+
/** RGBA compressed format, 2 bits per pixel. */
|
|
40
|
+
PVRTC_RGBA2 = 17,
|
|
41
|
+
/** RGB compressed format, 4 bits per pixel. */
|
|
42
|
+
PVRTC_RGB4 = 18,
|
|
43
|
+
/** RGBA compressed format, 4 bits per pixel. */
|
|
44
|
+
PVRTC_RGBA4 = 19,
|
|
45
|
+
/** RGB(A) compressed format, 128 bits per 4x4 pixel block. */
|
|
46
|
+
ASTC_4x4 = 20,
|
|
47
|
+
/** RGB(A) compressed format, 128 bits per 5x5 pixel block. */
|
|
48
|
+
ASTC_5x5 = 21,
|
|
49
|
+
/** RGB(A) compressed format, 128 bits per 6x6 pixel block. */
|
|
50
|
+
ASTC_6x6 = 22,
|
|
51
|
+
/** RGB(A) compressed format, 128 bits per 8x8 pixel block. */
|
|
52
|
+
ASTC_8x8 = 23,
|
|
53
|
+
/** RGB(A) compressed format, 128 bits per 10x10 pixel block. */
|
|
54
|
+
ASTC_10x10 = 24,
|
|
55
|
+
/** RGB(A) compressed format, 128 bits per 12x12 pixel block. */
|
|
56
|
+
ASTC_12x12 = 25,
|
|
57
|
+
/** Automatic depth format, engine will automatically select the supported precision. */
|
|
58
|
+
Depth = 26,
|
|
59
|
+
/** Automatic depth stencil format, engine will automatically select the supported precision. */
|
|
60
|
+
DepthStencil = 27,
|
|
59
61
|
/** 16-bit depth format. */
|
|
60
|
-
Depth16 =
|
|
62
|
+
Depth16 = 28,
|
|
61
63
|
/** 24-bit depth format. */
|
|
62
|
-
Depth24 =
|
|
64
|
+
Depth24 = 29,
|
|
63
65
|
/** 32-bit depth format. */
|
|
64
|
-
Depth32 =
|
|
66
|
+
Depth32 = 30,
|
|
65
67
|
/** 16-bit depth + 8-bit stencil format. */
|
|
66
|
-
Depth24Stencil8 =
|
|
68
|
+
Depth24Stencil8 = 31,
|
|
67
69
|
/** 32-bit depth + 8-bit stencil format. */
|
|
68
|
-
Depth32Stencil8 =
|
|
70
|
+
Depth32Stencil8 = 32,
|
|
71
|
+
/** @deprecated Use `TextureFormat.BC1` instead. */
|
|
72
|
+
DXT1 = 33,
|
|
73
|
+
/** @deprecated Use `TextureFormat.BC3` instead. */
|
|
74
|
+
DXT5 = 34
|
|
69
75
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Texture usage.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum TextureUsage {
|
|
5
|
+
/** The content of the texture is intended to be specified once. */
|
|
6
|
+
Static = 0,
|
|
7
|
+
/** The content of the texture is intended to be updated frequently, with better performance. */
|
|
8
|
+
Dynamic = 1
|
|
9
|
+
}
|
package/types/texture/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { TextureCubeFace } from "./enums/TextureCubeFace";
|
|
|
3
3
|
export { TextureDepthCompareFunction } from "./enums/TextureDepthCompareFunction";
|
|
4
4
|
export { TextureFilterMode } from "./enums/TextureFilterMode";
|
|
5
5
|
export { TextureFormat } from "./enums/TextureFormat";
|
|
6
|
+
export { TextureUsage } from "./enums/TextureUsage";
|
|
6
7
|
export { TextureWrapMode } from "./enums/TextureWrapMode";
|
|
7
8
|
export { RenderTarget } from "./RenderTarget";
|
|
8
9
|
export { Texture } from "./Texture";
|
package/types/SafeLoopArray.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare class SafeLoopArray<T> {
|
|
2
|
-
private _array;
|
|
3
|
-
private _loopArray;
|
|
4
|
-
private _loopArrayDirty;
|
|
5
|
-
/**
|
|
6
|
-
* Get the length of the array.
|
|
7
|
-
*/
|
|
8
|
-
get length(): number;
|
|
9
|
-
/**
|
|
10
|
-
* Push item to the array.
|
|
11
|
-
* @param item - The item which want to be pushed
|
|
12
|
-
*/
|
|
13
|
-
push(item: T): void;
|
|
14
|
-
/**
|
|
15
|
-
* Splice the array.
|
|
16
|
-
* @param index - The index of the array
|
|
17
|
-
* @param deleteCount - The count of the array which want to be deleted
|
|
18
|
-
* @param item - The item which want to be added
|
|
19
|
-
*/
|
|
20
|
-
splice(index: number, deleteCount: number, item?: T): void;
|
|
21
|
-
/**
|
|
22
|
-
* The index of the item.
|
|
23
|
-
* @param item - The item which want to get the index
|
|
24
|
-
* @returns Index of the item
|
|
25
|
-
*/
|
|
26
|
-
indexOf(item: T): number;
|
|
27
|
-
/**
|
|
28
|
-
* Get the array.
|
|
29
|
-
* @returns The array
|
|
30
|
-
*/
|
|
31
|
-
getArray(): ReadonlyArray<T>;
|
|
32
|
-
/**
|
|
33
|
-
* Get the array use for loop.
|
|
34
|
-
* @returns The array use for loop
|
|
35
|
-
*/
|
|
36
|
-
getLoopArray(): ReadonlyArray<T>;
|
|
37
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* High-performance unordered array, delete uses exchange method to improve performance, internal capacity only increases.
|
|
3
|
-
*/
|
|
4
|
-
export declare class DisorderedArray<T> {
|
|
5
|
-
_elements: T[];
|
|
6
|
-
length: number;
|
|
7
|
-
constructor(count?: number);
|
|
8
|
-
add(element: T): void;
|
|
9
|
-
delete(element: T): void;
|
|
10
|
-
get(index: number): T;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param index
|
|
14
|
-
* @returns The replaced item is used to reset its index.
|
|
15
|
-
*/
|
|
16
|
-
deleteByIndex(index: number): T;
|
|
17
|
-
garbageCollection(): void;
|
|
18
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Used to update tags.
|
|
3
|
-
*/
|
|
4
|
-
export declare abstract class UpdateFlag {
|
|
5
|
-
/**
|
|
6
|
-
* Dispatch.
|
|
7
|
-
* @param bit - Bit
|
|
8
|
-
* @param param - Parameter
|
|
9
|
-
*/
|
|
10
|
-
abstract dispatch(bit?: number, param?: Object): void;
|
|
11
|
-
/**
|
|
12
|
-
* Clear.
|
|
13
|
-
*/
|
|
14
|
-
clearFromManagers(): void;
|
|
15
|
-
/**
|
|
16
|
-
* Destroy.
|
|
17
|
-
*/
|
|
18
|
-
destroy(): void;
|
|
19
|
-
private _removeFromManagers;
|
|
20
|
-
}
|
package/types/utils/Utils.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare class Utils {
|
|
2
|
-
/**
|
|
3
|
-
* Fast remove an element from array.
|
|
4
|
-
* @param array - Array
|
|
5
|
-
* @param item - Element
|
|
6
|
-
*/
|
|
7
|
-
static removeFromArray(array: any[], item: any): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Decodes a given Uint8Array into a string.
|
|
10
|
-
*/
|
|
11
|
-
static decodeText(array: Uint8Array): string;
|
|
12
|
-
/**
|
|
13
|
-
* Judge whether the url is absolute url.
|
|
14
|
-
* @param url - The url to be judged.
|
|
15
|
-
* @returns Whether the url is absolute url.
|
|
16
|
-
*/
|
|
17
|
-
static isAbsoluteUrl(url: string): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Get the values of an object.
|
|
20
|
-
*/
|
|
21
|
-
static objectValues(obj: any): any[];
|
|
22
|
-
/**
|
|
23
|
-
* Convert a relative URL to an absolute URL based on a given base URL.
|
|
24
|
-
* @param baseUrl - The base url.
|
|
25
|
-
* @param relativeUrl - The relative url.
|
|
26
|
-
* @returns The resolved url.
|
|
27
|
-
*/
|
|
28
|
-
static resolveAbsoluteUrl(baseUrl: string, relativeUrl: string): string;
|
|
29
|
-
private static _stringToPath;
|
|
30
|
-
private static _formatRelativePath;
|
|
31
|
-
}
|
|
File without changes
|
|
File without changes
|