@galacean/engine-core 1.0.0 → 1.1.0-alpha.0

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.
Files changed (118) hide show
  1. package/dist/main.js +14441 -12563
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +14441 -12563
  4. package/dist/module.js +14426 -12558
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/2d/assembler/TiledSpriteAssembler.d.ts +1 -0
  8. package/types/2d/atlas/SpriteAtlas.d.ts +2 -6
  9. package/types/2d/data/VertexData2D.d.ts +1 -0
  10. package/types/2d/enums/SpriteDrawMode.d.ts +4 -2
  11. package/types/2d/enums/SpriteTileMode.d.ts +11 -0
  12. package/types/2d/index.d.ts +1 -0
  13. package/types/2d/sprite/Sprite.d.ts +14 -8
  14. package/types/2d/sprite/SpriteMask.d.ts +16 -22
  15. package/types/2d/sprite/SpriteRenderer.d.ts +31 -17
  16. package/types/2d/text/Font.d.ts +2 -7
  17. package/types/2d/text/TextRenderer.d.ts +1 -13
  18. package/types/2d/text/index.d.ts +1 -0
  19. package/types/Camera.d.ts +35 -12
  20. package/types/Component.d.ts +1 -8
  21. package/types/ComponentsDependencies.d.ts +17 -9
  22. package/types/Engine.d.ts +39 -46
  23. package/types/Entity.d.ts +1 -1
  24. package/types/RenderPipeline/Basic2DBatcher.d.ts +6 -7
  25. package/types/RenderPipeline/BasicRenderPipeline.d.ts +8 -6
  26. package/types/RenderPipeline/MeshRenderData.d.ts +15 -0
  27. package/types/RenderPipeline/RenderData.d.ts +7 -0
  28. package/types/RenderPipeline/RenderElement.d.ts +5 -7
  29. package/types/RenderPipeline/RenderPass.d.ts +1 -1
  30. package/types/RenderPipeline/RenderQueue.d.ts +3 -5
  31. package/types/RenderPipeline/SpriteMaskBatcher.d.ts +4 -3
  32. package/types/RenderPipeline/SpriteMaskRenderData.d.ts +10 -0
  33. package/types/RenderPipeline/SpriteRenderData.d.ts +12 -0
  34. package/types/RenderPipeline/TextRenderData.d.ts +6 -0
  35. package/types/RenderPipeline/enums/PipelineStage.d.ts +9 -0
  36. package/types/RenderPipeline/index.d.ts +4 -0
  37. package/types/Renderer.d.ts +5 -13
  38. package/types/SafeLoopArray.d.ts +37 -0
  39. package/types/Scene.d.ts +6 -5
  40. package/types/SceneManager.d.ts +28 -5
  41. package/types/Script.d.ts +18 -15
  42. package/types/Transform.d.ts +9 -12
  43. package/types/Utils.d.ts +28 -0
  44. package/types/animation/AnimationClip.d.ts +2 -1
  45. package/types/animation/Animator.d.ts +2 -3
  46. package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +0 -1
  47. package/types/animation/internal/AnimationCurveLayerOwner.d.ts +1 -0
  48. package/types/animation/internal/AnimationCurveOwnerLayerData.d.ts +1 -0
  49. package/types/asset/AssetType.d.ts +16 -16
  50. package/types/asset/ContentRestorer.d.ts +17 -0
  51. package/types/asset/GraphicsResource.d.ts +5 -0
  52. package/types/asset/IReferable.d.ts +2 -0
  53. package/types/asset/ReferResource.d.ts +22 -0
  54. package/types/asset/ResourceManager.d.ts +17 -9
  55. package/types/base/Constant.d.ts +2 -1
  56. package/types/base/EngineObject.d.ts +1 -0
  57. package/types/base/EventDispatcher.d.ts +1 -14
  58. package/types/base/Time.d.ts +27 -24
  59. package/types/base/index.d.ts +0 -2
  60. package/types/enums/ActiveChangeFlag.d.ts +6 -0
  61. package/types/env-probe/CubeProbe.d.ts +0 -7
  62. package/types/env-probe/Probe.d.ts +0 -6
  63. package/types/graphic/Buffer.d.ts +5 -12
  64. package/types/graphic/Mesh.d.ts +5 -16
  65. package/types/index.d.ts +8 -7
  66. package/types/input/InputManager.d.ts +3 -3
  67. package/types/input/interface/IInput.d.ts +1 -1
  68. package/types/lighting/DirectLight.d.ts +0 -1
  69. package/types/lighting/Light.d.ts +0 -1
  70. package/types/lighting/SpotLight.d.ts +0 -1
  71. package/types/material/BaseMaterial.d.ts +8 -10
  72. package/types/material/BlinnPhongMaterial.d.ts +0 -3
  73. package/types/material/Material.d.ts +3 -10
  74. package/types/material/PBRMaterial.d.ts +12 -3
  75. package/types/material/PBRSpecularMaterial.d.ts +1 -1
  76. package/types/material/UnlitMaterial.d.ts +1 -1
  77. package/types/mesh/BlendShape.d.ts +1 -1
  78. package/types/mesh/BlendShapeFrame.d.ts +28 -6
  79. package/types/mesh/MeshRenderer.d.ts +7 -12
  80. package/types/mesh/ModelMesh.d.ts +5 -5
  81. package/types/mesh/PrimitiveMesh.d.ts +4 -2
  82. package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
  83. package/types/mesh/SkinnedMeshRenderer.d.ts +0 -14
  84. package/types/particle/ParticleRenderer.d.ts +2 -2
  85. package/types/physics/CharacterController.d.ts +0 -2
  86. package/types/physics/Collider.d.ts +1 -1
  87. package/types/physics/Collision.d.ts +4 -0
  88. package/types/physics/PhysicsManager.d.ts +1 -20
  89. package/types/physics/PhysicsScene.d.ts +75 -0
  90. package/types/physics/index.d.ts +7 -7
  91. package/types/physics/joint/HingeJoint.d.ts +2 -2
  92. package/types/physics/joint/Joint.d.ts +2 -2
  93. package/types/physics/joint/SpringJoint.d.ts +1 -1
  94. package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +8 -0
  95. package/types/renderingHardwareInterface/index.d.ts +1 -0
  96. package/types/shader/Shader.d.ts +32 -23
  97. package/types/shader/ShaderData.d.ts +24 -24
  98. package/types/shader/ShaderMacro.d.ts +16 -0
  99. package/types/shader/ShaderPart.d.ts +41 -0
  100. package/types/shader/ShaderPass.d.ts +9 -2
  101. package/types/shader/ShaderProperty.d.ts +7 -0
  102. package/types/shader/ShaderTagKey.d.ts +16 -0
  103. package/types/shader/SubShader.d.ts +19 -0
  104. package/types/shader/index.d.ts +5 -1
  105. package/types/shader/state/index.d.ts +6 -0
  106. package/types/shadow/CascadedShadowCasterPass.d.ts +1 -1
  107. package/types/sky/SkyBoxMaterial.d.ts +27 -9
  108. package/types/sky/SkyProceduralMaterial.d.ts +72 -0
  109. package/types/sky/index.d.ts +1 -0
  110. package/types/texture/RenderTarget.d.ts +2 -6
  111. package/types/texture/Texture.d.ts +2 -6
  112. package/types/trail/TrailRenderer.d.ts +0 -5
  113. package/types/utils/BoolUpdateFlag.d.ts +12 -0
  114. package/types/utils/DisorderedArray.d.ts +18 -0
  115. package/types/utils/SafeLoopArray.d.ts +41 -0
  116. package/types/utils/UpdateFlag.d.ts +20 -0
  117. package/types/utils/UpdateFlagManager.d.ts +1 -0
  118. package/types/utils/Utils.d.ts +31 -0
@@ -0,0 +1,41 @@
1
+ import { ShaderTagKey } from "./ShaderTagKey";
2
+ /**
3
+ * Base class for shader structure.
4
+ */
5
+ export declare abstract class ShaderPart {
6
+ private _tagsMap;
7
+ /**
8
+ * Set tag by key name.
9
+ * @param keyName - Key name of the tag
10
+ * @param value - Tag value
11
+ */
12
+ setTag<T extends number | string | boolean>(keyName: string, value: T): void;
13
+ /**
14
+ * Set tag.
15
+ * @param key - Key of the tag
16
+ * @param value - Tag value
17
+ */
18
+ setTag<T extends number | string | boolean>(key: ShaderTagKey, value: T): void;
19
+ /**
20
+ * Delete a tag by key name.
21
+ * @param KeyName - Key name of the tag
22
+ */
23
+ deleteTag(KeyName: string): void;
24
+ /**
25
+ * Delete a tag by key.
26
+ * @param key - Key of the tag
27
+ */
28
+ deleteTag(key: ShaderTagKey): void;
29
+ /**
30
+ * Get tag by key name.
31
+ * @param keyName - Key name of the tag
32
+ * @returns Tag value
33
+ */
34
+ getTagValue<T extends number | string | boolean>(keyName: string): T;
35
+ /**
36
+ * Get tag value by key.
37
+ * @param key - Key of the tag
38
+ * @returns Tag value
39
+ */
40
+ getTagValue<T extends number | string | boolean>(key: ShaderTagKey): T;
41
+ }
@@ -1,9 +1,16 @@
1
+ import { ShaderPart } from "./ShaderPart";
1
2
  /**
2
3
  * Shader pass containing vertex and fragment source.
3
4
  */
4
- export declare class ShaderPass {
5
+ export declare class ShaderPass extends ShaderPart {
5
6
  private static _shaderPassCounter;
6
7
  private _vertexSource;
7
8
  private _fragmentSource;
8
- constructor(vertexSource: string, fragmentSource: string);
9
+ /**
10
+ * Create a shader pass.
11
+ * @param vertexSource - Vertex shader source
12
+ * @param fragmentSource - Fragment shader source
13
+ * @param tags - Tags
14
+ */
15
+ constructor(vertexSource: string, fragmentSource: string, tags?: Record<string, number | string | boolean>);
9
16
  }
@@ -4,6 +4,13 @@ import { ShaderPropertyType } from "./enums/ShaderPropertyType";
4
4
  */
5
5
  export declare class ShaderProperty {
6
6
  private static _propertyNameCounter;
7
+ private static _propertyNameMap;
8
+ /**
9
+ * Get shader property by name.
10
+ * @param name - Name of the shader property
11
+ * @returns Shader property
12
+ */
13
+ static getByName(name: string): ShaderProperty;
7
14
  /** Shader property name. */
8
15
  readonly name: string;
9
16
  /**
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Shader tag key.
3
+ */
4
+ export declare class ShaderTagKey {
5
+ private static _nameCounter;
6
+ private static _nameMap;
7
+ /**
8
+ * Get shader property by name.
9
+ * @param name - Name of the shader property
10
+ * @returns Shader property
11
+ */
12
+ static getByName(name: string): ShaderTagKey;
13
+ /** Shader tag property name. */
14
+ readonly name: string;
15
+ private constructor();
16
+ }
@@ -0,0 +1,19 @@
1
+ import { ShaderPart } from "./ShaderPart";
2
+ import { ShaderPass } from "./ShaderPass";
3
+ /**
4
+ * Sub shader.
5
+ */
6
+ export declare class SubShader extends ShaderPart {
7
+ readonly name: string;
8
+ private _passes;
9
+ /**
10
+ * Sub shader passes.
11
+ */
12
+ get passes(): ReadonlyArray<ShaderPass>;
13
+ /**
14
+ * Create a sub shader.
15
+ * @param name - Name of the sub shader
16
+ * @param passes - Sub shader passes
17
+ */
18
+ constructor(name: string, passes: ShaderPass[], tags?: Record<string, number | string | boolean>);
19
+ }
@@ -1,12 +1,16 @@
1
- export { RenderQueueType } from "./enums/RenderQueueType";
2
1
  export { BlendFactor } from "./enums/BlendFactor";
3
2
  export { BlendOperation } from "./enums/BlendOperation";
4
3
  export { ColorWriteMask } from "./enums/ColorWriteMask";
5
4
  export { CompareFunction } from "./enums/CompareFunction";
6
5
  export { CullMode } from "./enums/CullMode";
6
+ export { RenderQueueType } from "./enums/RenderQueueType";
7
7
  export { ShaderPropertyType } from "./enums/ShaderPropertyType";
8
8
  export { StencilOperation } from "./enums/StencilOperation";
9
9
  export { Shader } from "./Shader";
10
10
  export { ShaderData } from "./ShaderData";
11
+ export { ShaderMacro } from "./ShaderMacro";
11
12
  export { ShaderPass } from "./ShaderPass";
12
13
  export { ShaderProperty } from "./ShaderProperty";
14
+ export { ShaderTagKey } from "./ShaderTagKey";
15
+ export { SubShader } from "./SubShader";
16
+ export * from "./state";
@@ -0,0 +1,6 @@
1
+ export { BlendState } from "./BlendState";
2
+ export { DepthState } from "./DepthState";
3
+ export { RasterState } from "./RasterState";
4
+ export { RenderState } from "./RenderState";
5
+ export { RenderTargetBlendState } from "./RenderTargetBlendState";
6
+ export { StencilState } from "./StencilState";
@@ -12,12 +12,12 @@ export declare class CascadedShadowCasterPass {
12
12
  private static _shadowSplitSpheresProperty;
13
13
  private static _maxCascades;
14
14
  private static _cascadesSplitDistance;
15
+ private static _viewport;
15
16
  private static _clearColor;
16
17
  private static _tempVector;
17
18
  private static _tempMatrix0;
18
19
  private readonly _camera;
19
20
  private readonly _engine;
20
- private readonly _shadowCasterShader;
21
21
  private readonly _supportDepthTexture;
22
22
  private _shadowMapResolution;
23
23
  private _shadowMapSize;
@@ -1,25 +1,43 @@
1
+ import { Color } from "@galacean/engine-math";
1
2
  import { Engine } from "../Engine";
2
3
  import { Material } from "../material/Material";
3
4
  import { TextureCube } from "../texture";
4
5
  /**
5
- * SkyboxMaterial
6
+ * SkyBoxMaterial.
6
7
  */
7
8
  export declare class SkyBoxMaterial extends Material {
8
- private _decodeParam;
9
+ private static _tintColorProp;
10
+ private static _textureCubeProp;
11
+ private static _rotationProp;
12
+ private static _exposureProp;
13
+ private static _decodeSkyRGBMMacro;
14
+ private _textureDecodeRGBM;
15
+ private _tintColor;
9
16
  /**
10
- * Whether to decode from texture with RGBM format.
17
+ * Whether to decode texture with RGBM format.
11
18
  */
12
19
  get textureDecodeRGBM(): boolean;
13
20
  set textureDecodeRGBM(value: boolean);
14
21
  /**
15
- * RGBM decode factor, default 5.0.
22
+ * Texture of the sky box material.
16
23
  */
17
- get RGBMDecodeFactor(): number;
18
- set RGBMDecodeFactor(value: number);
24
+ get texture(): TextureCube;
25
+ set texture(value: TextureCube);
19
26
  /**
20
- * Texture cube map of the sky box material.
27
+ * The angle to rotate around the y-axis, unit is degree.
21
28
  */
22
- get textureCubeMap(): TextureCube;
23
- set textureCubeMap(v: TextureCube);
29
+ get rotation(): number;
30
+ set rotation(value: number);
31
+ /**
32
+ * The exposure value of this material.
33
+ */
34
+ get exposure(): number;
35
+ set exposure(value: number);
36
+ /**
37
+ * The Tint color of this material.
38
+ */
39
+ get tintColor(): Color;
40
+ set tintColor(value: Color);
24
41
  constructor(engine: Engine);
42
+ clone(): SkyBoxMaterial;
25
43
  }
@@ -0,0 +1,72 @@
1
+ import { Color } from "@galacean/engine-math";
2
+ import { Engine } from "../Engine";
3
+ import { Material } from "../material/Material";
4
+ /**
5
+ * Sun mode.
6
+ */
7
+ export declare enum SunMode {
8
+ /** None */
9
+ None = 0,
10
+ /** Simple sun. */
11
+ Simple = 1,
12
+ /** High quality sun. */
13
+ HighQuality = 2
14
+ }
15
+ /**
16
+ * Sky procedural material.
17
+ */
18
+ export declare class SkyProceduralMaterial extends Material {
19
+ private static _sunSizeProp;
20
+ private static _sunSizeConvergenceProp;
21
+ private static _atmosphereThicknessProp;
22
+ private static _skyTintProp;
23
+ private static _groundTintProp;
24
+ private static _exposureProp;
25
+ private static _sunHighQualityMacro;
26
+ private static _sunSimpleMacro;
27
+ private _sunDisk;
28
+ /**
29
+ * Sun mode.
30
+ */
31
+ get sunMode(): SunMode;
32
+ set sunMode(value: SunMode);
33
+ /**
34
+ * Sun size, range is 0 to 1.
35
+ */
36
+ get sunSize(): number;
37
+ set sunSize(value: number);
38
+ /**
39
+ * Sun size convergence, range is 0 to 20.
40
+ */
41
+ get sunSizeConvergence(): number;
42
+ set sunSizeConvergence(value: number);
43
+ /**
44
+ * Atmosphere thickness, range is 0 to 5.
45
+ */
46
+ get atmosphereThickness(): number;
47
+ set atmosphereThickness(value: number);
48
+ /**
49
+ * Sky tint.
50
+ */
51
+ get skyTint(): Color;
52
+ set skyTint(value: Color);
53
+ /**
54
+ * Ground tint.
55
+ */
56
+ get groundTint(): Color;
57
+ set groundTint(value: Color);
58
+ /**
59
+ * Exposure, range is 0 to 8.
60
+ */
61
+ get exposure(): number;
62
+ set exposure(value: number);
63
+ /**
64
+ * Constructor a SkyBoxProceduralMaterial instance.
65
+ * @param engine - Engine to which the material belongs
66
+ */
67
+ constructor(engine: Engine);
68
+ /**
69
+ * @inheritDoc
70
+ */
71
+ clone(): SkyProceduralMaterial;
72
+ }
@@ -1,2 +1,3 @@
1
1
  export { Sky } from "./Sky";
2
2
  export { SkyBoxMaterial } from "./SkyBoxMaterial";
3
+ export { SkyProceduralMaterial, SunMode } from "./SkyProceduralMaterial";
@@ -1,11 +1,11 @@
1
- import { EngineObject } from "../base";
1
+ import { GraphicsResource } from "../asset/GraphicsResource";
2
2
  import { Engine } from "../Engine";
3
3
  import { RenderBufferDepthFormat } from "./enums/RenderBufferDepthFormat";
4
4
  import { Texture } from "./Texture";
5
5
  /**
6
6
  * The render target used for off-screen rendering.
7
7
  */
8
- export declare class RenderTarget extends EngineObject {
8
+ export declare class RenderTarget extends GraphicsResource {
9
9
  private _autoGenerateMipmaps;
10
10
  private _width;
11
11
  private _height;
@@ -88,8 +88,4 @@ export declare class RenderTarget extends EngineObject {
88
88
  * Generate the mipmap of each attachment texture of the renderTarget according to the configuration.
89
89
  */
90
90
  generateMipmaps(): void;
91
- /**
92
- * Destroy render target.
93
- */
94
- destroy(): void;
95
91
  }
@@ -1,4 +1,4 @@
1
- import { RefObject } from "../asset/RefObject";
1
+ 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";
@@ -6,7 +6,7 @@ import { TextureWrapMode } from "./enums/TextureWrapMode";
6
6
  /**
7
7
  * The base class of texture, contains some common functions of texture-related classes.
8
8
  */
9
- export declare abstract class Texture extends RefObject {
9
+ export declare abstract class Texture extends GraphicsResource {
10
10
  name: string;
11
11
  protected _format: TextureFormat;
12
12
  protected _width: number;
@@ -64,10 +64,6 @@ export declare abstract class Texture extends RefObject {
64
64
  * Generate multi-level textures based on the 0th level data.
65
65
  */
66
66
  generateMipmaps(): void;
67
- /**
68
- * @override
69
- */
70
- _onDestroy(): void;
71
67
  /**
72
68
  * Get the maximum mip level of the corresponding size:rounding down.
73
69
  * @remarks http://download.nvidia.com/developer/Papers/2005/NP2_Mipmapping/NP2_Mipmap_Creation.pdf
@@ -1,6 +1,5 @@
1
1
  import { Entity } from "../Entity";
2
2
  import { MeshRenderer } from "../mesh/MeshRenderer";
3
- import { RenderContext } from "../RenderPipeline/RenderContext";
4
3
  import { Texture2D } from "../texture";
5
4
  /**
6
5
  * @deprecated
@@ -28,10 +27,6 @@ export declare class TrailRenderer extends MeshRenderer {
28
27
  * @param texture
29
28
  */
30
29
  setTexture(texture: Texture2D): void;
31
- /**
32
- * @override
33
- */
34
- protected _render(context: RenderContext): void;
35
30
  private _initGeometry;
36
31
  private _updateStrapVertices;
37
32
  private _updateStrapCoords;
@@ -0,0 +1,12 @@
1
+ import { UpdateFlag } from "./UpdateFlag";
2
+ /**
3
+ * Bool update flag.
4
+ */
5
+ export declare class BoolUpdateFlag extends UpdateFlag {
6
+ /** Bool flag. */
7
+ flag: boolean;
8
+ /**
9
+ * @inheritdoc
10
+ */
11
+ dispatch(): void;
12
+ }
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,41 @@
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
+ * Add item to the array.
16
+ * @param index - The index of the array
17
+ * @param item - The item which want to be added
18
+ */
19
+ add(index: number, item: T): void;
20
+ /**
21
+ * Remove item from the array.
22
+ * @param index - The index of the array
23
+ */
24
+ removeByIndex(index: number): void;
25
+ /**
26
+ * The index of the item.
27
+ * @param item - The item which want to get the index
28
+ * @returns Index of the item
29
+ */
30
+ indexOf(item: T): number;
31
+ /**
32
+ * Get the array.
33
+ * @returns The array
34
+ */
35
+ getArray(): ReadonlyArray<T>;
36
+ /**
37
+ * Get the array use for loop.
38
+ * @returns The array use for loop
39
+ */
40
+ getLoopArray(): ReadonlyArray<T>;
41
+ }
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,31 @@
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
+ }