@galacean/engine-core 0.0.0-experimental-stateMachine.0 → 0.0.0-experimental-1.3-xr.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 +18449 -16078
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +18449 -16078
- package/dist/module.js +18445 -16079
- package/dist/module.js.map +1 -1
- package/package.json +7 -7
- package/types/2d/assembler/ISpriteAssembler.d.ts +1 -0
- package/types/2d/sprite/SpriteMask.d.ts +11 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +6 -3
- package/types/2d/text/CharRenderInfo.d.ts +1 -0
- package/types/2d/text/TextRenderer.d.ts +10 -4
- package/types/Camera.d.ts +18 -7
- package/types/DisorderedArray.d.ts +2 -2
- package/types/Engine.d.ts +3 -0
- package/types/Entity.d.ts +1 -1
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +11 -5
- package/types/RenderPipeline/BatchUtils.d.ts +1 -0
- package/types/RenderPipeline/BatcherManager.d.ts +1 -0
- package/types/RenderPipeline/DynamicGeometryData.d.ts +1 -0
- package/types/RenderPipeline/DynamicGeometryDataManager.d.ts +1 -0
- package/types/RenderPipeline/MaskManager.d.ts +1 -0
- package/types/RenderPipeline/PipelinePass.d.ts +1 -1
- package/types/RenderPipeline/PrimitiveChunk.d.ts +1 -0
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +1 -0
- package/types/RenderPipeline/RenderData2D.d.ts +14 -0
- package/types/RenderPipeline/RenderElement.d.ts +9 -6
- package/types/RenderPipeline/RenderPass.d.ts +55 -0
- package/types/RenderPipeline/RenderQueue.d.ts +1 -30
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +1 -0
- package/types/RenderPipeline/SubRenderElement.d.ts +22 -0
- package/types/RenderPipeline/VertexArea.d.ts +1 -0
- package/types/RenderPipeline/enums/ForceUploadShaderDataFlag.d.ts +15 -0
- package/types/RenderPipeline/enums/RenderDataUsage.d.ts +13 -0
- package/types/RenderPipeline/index.d.ts +1 -1
- package/types/Renderer.d.ts +4 -3
- package/types/Scene.d.ts +6 -0
- package/types/animation/Animator.d.ts +17 -17
- package/types/animation/AnimatorCondition.d.ts +3 -3
- package/types/animation/AnimatorController.d.ts +14 -3
- package/types/animation/AnimatorControllerParameter.d.ts +2 -2
- package/types/animation/AnimatorState.d.ts +6 -9
- package/types/animation/AnimatorStateMachine.d.ts +6 -1
- package/types/animation/AnimatorStateTransition.d.ts +51 -0
- package/types/animation/AnimatorTransition.d.ts +0 -33
- package/types/animation/enums/AnimatorConditionMode.d.ts +9 -0
- package/types/animation/index.d.ts +1 -1
- package/types/asset/AssetType.d.ts +2 -0
- package/types/clone/ComponentCloner.d.ts +1 -1
- package/types/enums/ReplacementFailureStrategy.d.ts +9 -0
- package/types/graphic/SubMesh.d.ts +3 -16
- package/types/graphic/SubPrimitive.d.ts +10 -0
- package/types/graphic/index.d.ts +1 -0
- package/types/index.d.ts +4 -1
- package/types/input/pointer/PointerEvent.d.ts +4 -0
- package/types/input/pointer/PointerEventType.d.ts +7 -0
- package/types/material/BaseMaterial.d.ts +1 -1
- package/types/mesh/Skin.d.ts +25 -9
- package/types/mesh/SkinnedMeshRenderer.d.ts +15 -24
- package/types/particle/ParticleGenerator.d.ts +20 -0
- package/types/particle/ParticleRenderer.d.ts +3 -1
- package/types/particle/modules/EmissionModule.d.ts +6 -2
- package/types/particle/modules/MainModule.d.ts +49 -15
- package/types/particle/modules/ParticleCompositeCurve.d.ts +35 -10
- package/types/particle/modules/ParticleCurve.d.ts +16 -9
- package/types/particle/modules/ParticleGeneratorModule.d.ts +6 -2
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +27 -8
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +29 -8
- package/types/particle/modules/shape/BaseShape.d.ts +14 -4
- package/types/particle/modules/shape/BoxShape.d.ts +7 -2
- package/types/particle/modules/shape/CircleShape.d.ts +25 -8
- package/types/particle/modules/shape/ConeShape.d.ts +24 -8
- package/types/particle/modules/shape/HemisphereShape.d.ts +6 -2
- package/types/particle/modules/shape/SphereShape.d.ts +6 -2
- package/types/postProcess/PostProcessManager.d.ts +1 -0
- package/types/postProcess/effects/BloomEffect.d.ts +94 -0
- package/types/postProcess/effects/TonemappingEffect.d.ts +35 -0
- package/types/postProcess/effects/index.d.ts +2 -0
- package/types/postProcess/index.d.ts +3 -0
- package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +6 -0
- package/types/shader/ShaderPass.d.ts +10 -0
- package/types/shader/enums/ShaderDataGroup.d.ts +4 -2
- package/types/shader/enums/ShaderPlatformTarget.d.ts +4 -0
- package/types/shader/enums/ShaderType.d.ts +1 -0
- package/types/shader/index.d.ts +1 -0
- package/types/shader/state/RenderState.d.ts +1 -0
- package/types/shaderlib/ShaderFactory.d.ts +2 -1
- package/types/texture/enums/TextureFormat.d.ts +2 -0
- package/types/ui/Image.d.ts +38 -0
- package/types/ui/RedBlackTree.d.ts +2 -0
- package/types/ui/UICanvas.d.ts +55 -0
- package/types/ui/UIRenderer.d.ts +14 -0
- package/types/ui/UITransform.d.ts +20 -0
- package/types/ui/enums/BlockingObjects.d.ts +6 -0
- package/types/ui/enums/CanvasRenderMode.d.ts +8 -0
- package/types/ui/enums/ResolutionAdaptationStrategy.d.ts +10 -0
- package/types/ui/index.d.ts +6 -0
- package/types/utils/ClearableObjectPool.d.ts +16 -0
- package/types/utils/ObjectPool.d.ts +16 -0
- package/types/utils/Pool.d.ts +12 -0
- package/types/utils/ReturnableObjectPool.d.ts +16 -0
- package/types/utils/index.d.ts +3 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Vector2 } from "@galacean/engine-math";
|
|
2
|
+
import { Camera } from "../Camera";
|
|
3
|
+
import { Component } from "../Component";
|
|
4
|
+
import { Entity } from "../Entity";
|
|
5
|
+
import { RenderContext } from "../RenderPipeline/RenderContext";
|
|
6
|
+
import { CanvasRenderMode } from "./enums/CanvasRenderMode";
|
|
7
|
+
import { ResolutionAdaptationStrategy } from "./enums/ResolutionAdaptationStrategy";
|
|
8
|
+
export declare class UICanvas extends Component {
|
|
9
|
+
private _renderMode;
|
|
10
|
+
private _renderCamera;
|
|
11
|
+
private _resolutionAdaptationStrategy;
|
|
12
|
+
private _sortOrder;
|
|
13
|
+
private _distance;
|
|
14
|
+
private _renderers;
|
|
15
|
+
private _transform;
|
|
16
|
+
private _uiTransform;
|
|
17
|
+
private _referenceResolution;
|
|
18
|
+
private _isRootCanvas;
|
|
19
|
+
private _enableBlocked;
|
|
20
|
+
private _parents;
|
|
21
|
+
private _hierarchyDirty;
|
|
22
|
+
get enableBlocked(): boolean;
|
|
23
|
+
set enableBlocked(value: boolean);
|
|
24
|
+
get referenceResolution(): Vector2;
|
|
25
|
+
set referenceResolution(val: Vector2);
|
|
26
|
+
get renderMode(): CanvasRenderMode;
|
|
27
|
+
set renderMode(mode: CanvasRenderMode);
|
|
28
|
+
get renderCamera(): Camera;
|
|
29
|
+
set renderCamera(val: Camera);
|
|
30
|
+
get resolutionAdaptationStrategy(): ResolutionAdaptationStrategy;
|
|
31
|
+
set resolutionAdaptationStrategy(val: ResolutionAdaptationStrategy);
|
|
32
|
+
get sortOrder(): number;
|
|
33
|
+
set sortOrder(val: number);
|
|
34
|
+
get distance(): number;
|
|
35
|
+
set distance(val: number);
|
|
36
|
+
constructor(entity: Entity);
|
|
37
|
+
_prepareRender(context: RenderContext): void;
|
|
38
|
+
private _adapterPoseInScreenSpace;
|
|
39
|
+
private _adapterSizeInScreenSpace;
|
|
40
|
+
private _walk;
|
|
41
|
+
private _addCameraListener;
|
|
42
|
+
private _removeCameraListener;
|
|
43
|
+
private _onCameraPropertyListener;
|
|
44
|
+
private _onCameraTransformListener;
|
|
45
|
+
private _addCanvasListener;
|
|
46
|
+
private _removeCanvasListener;
|
|
47
|
+
private _onCanvasSizeListener;
|
|
48
|
+
private _addParentListener;
|
|
49
|
+
private _removeParentListener;
|
|
50
|
+
private _onEntityListener;
|
|
51
|
+
private _onParentListener;
|
|
52
|
+
private _onReferenceResolutionChanged;
|
|
53
|
+
private _checkIsRootCanvas;
|
|
54
|
+
private _setIsRootCanvas;
|
|
55
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BoundingBox, Vector4 } from "@galacean/engine-math";
|
|
2
|
+
import { Renderer } from "../Renderer";
|
|
3
|
+
import { UITransform, UITransformModifyFlags } from "./UITransform";
|
|
4
|
+
export declare class UIRenderer extends Renderer {
|
|
5
|
+
protected _uiTransform: UITransform;
|
|
6
|
+
protected _localBounds: BoundingBox;
|
|
7
|
+
protected _rayCastTarget: boolean;
|
|
8
|
+
protected _rayCastPadding: Vector4;
|
|
9
|
+
get rayCastTarget(): boolean;
|
|
10
|
+
set rayCastTarget(value: boolean);
|
|
11
|
+
get rayCastPadding(): Vector4;
|
|
12
|
+
set rayCastPadding(value: Vector4);
|
|
13
|
+
protected _onUITransformChanged(flag: UITransformModifyFlags): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Vector2 } from "@galacean/engine-math";
|
|
2
|
+
import { Component } from "../Component";
|
|
3
|
+
import { Entity } from "../Entity";
|
|
4
|
+
export declare class UITransform extends Component {
|
|
5
|
+
private _rect;
|
|
6
|
+
private _pivot;
|
|
7
|
+
get rect(): Vector2;
|
|
8
|
+
set rect(val: Vector2);
|
|
9
|
+
get pivot(): Vector2;
|
|
10
|
+
set pivot(val: Vector2);
|
|
11
|
+
constructor(entity: Entity);
|
|
12
|
+
private _onRectChange;
|
|
13
|
+
private _onPivotChange;
|
|
14
|
+
}
|
|
15
|
+
export declare enum UITransformModifyFlags {
|
|
16
|
+
/** Rect. */
|
|
17
|
+
Rect = 1,
|
|
18
|
+
/** Pivot. */
|
|
19
|
+
Pivot = 2
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CanvasRenderMode } from "./enums/CanvasRenderMode";
|
|
2
|
+
export { ResolutionAdaptationStrategy } from "./enums/ResolutionAdaptationStrategy";
|
|
3
|
+
export { UICanvas } from "./UICanvas";
|
|
4
|
+
export { UIRenderer } from "./UIRenderer";
|
|
5
|
+
export { Image } from "./Image";
|
|
6
|
+
export { UITransform } from "./UITransform";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IPoolElement, ObjectPool } from "./ObjectPool";
|
|
2
|
+
/**
|
|
3
|
+
* Clearable Object Pool.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ClearableObjectPool<T extends IPoolElement> extends ObjectPool<T> {
|
|
6
|
+
private _usedElementCount;
|
|
7
|
+
constructor(type: new () => T);
|
|
8
|
+
/**
|
|
9
|
+
* Get an object.
|
|
10
|
+
*/
|
|
11
|
+
get(): T;
|
|
12
|
+
/**
|
|
13
|
+
* Clear used object count to 0, not destroy any object, just change index.
|
|
14
|
+
*/
|
|
15
|
+
clear(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare abstract class ObjectPool<T extends IPoolElement> {
|
|
2
|
+
protected _type: new () => T;
|
|
3
|
+
protected _elements: T[];
|
|
4
|
+
constructor(type: new () => T);
|
|
5
|
+
garbageCollection(): void;
|
|
6
|
+
abstract get(): T;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The basic interface for Object Pool's element.
|
|
10
|
+
*/
|
|
11
|
+
export interface IPoolElement {
|
|
12
|
+
/**
|
|
13
|
+
* Called when the object need be release.
|
|
14
|
+
*/
|
|
15
|
+
dispose?(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IPoolElement {
|
|
2
|
+
dispose?(): void;
|
|
3
|
+
}
|
|
4
|
+
export declare class Pool<T extends IPoolElement> {
|
|
5
|
+
private _type;
|
|
6
|
+
private _elementPool;
|
|
7
|
+
private _elementPoolIndex;
|
|
8
|
+
constructor(type: new () => T, count?: number);
|
|
9
|
+
alloc(): T;
|
|
10
|
+
free(element: T): void;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IPoolElement, ObjectPool } from "./ObjectPool";
|
|
2
|
+
/**
|
|
3
|
+
* Returnable Object Pool.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ReturnableObjectPool<T extends IPoolElement> extends ObjectPool<T> {
|
|
6
|
+
private _lastElementIndex;
|
|
7
|
+
constructor(type: new () => T, initializeCount?: number);
|
|
8
|
+
/**
|
|
9
|
+
* Get an object from the pool.
|
|
10
|
+
*/
|
|
11
|
+
get(): T;
|
|
12
|
+
/**
|
|
13
|
+
* Return an object to the pool.
|
|
14
|
+
*/
|
|
15
|
+
return(element: T): void;
|
|
16
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 - present Ant Group
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|