@galacean/engine-core 1.1.0-beta.20 → 1.1.0-beta.22
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 +2 -2
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +2 -2
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/animation/AnimatorLayerMask.d.ts +45 -0
- package/types/animation/LayerPathMask.d.ts +16 -0
- package/types/xr/XRManager.d.ts +29 -31
- package/types/xr/feature/XRFeature.d.ts +46 -15
- package/types/xr/feature/XRFeatureManager.d.ts +1 -1
- package/types/xr/feature/XRFeatureType.d.ts +4 -6
- package/types/xr/feature/camera/XRCameraManager.d.ts +11 -12
- package/types/xr/feature/hitTest/TrackableType.d.ts +12 -0
- package/types/xr/feature/hitTest/XRHitTest.d.ts +41 -0
- package/types/xr/feature/movementTracking/XRMovementTracking.d.ts +18 -0
- package/types/xr/feature/movementTracking/XRMovementTrackingManager.d.ts +4 -2
- package/types/xr/feature/trackable/XRTrackableFeature.d.ts +44 -0
- package/types/xr/feature/trackable/XRTrackableManager.d.ts +1 -1
- package/types/xr/feature/trackable/anchor/XRAnchorTracking.d.ts +29 -0
- package/types/xr/feature/trackable/anchor/XRAnchorTrackingManager.d.ts +5 -7
- package/types/xr/feature/trackable/image/XRImageTracking.d.ts +40 -0
- package/types/xr/feature/trackable/image/XRImageTrackingManager.d.ts +3 -5
- package/types/xr/feature/trackable/image/XRReferenceImage.d.ts +3 -6
- package/types/xr/feature/trackable/plane/XRPlaneTracking.d.ts +20 -0
- package/types/xr/feature/trackable/plane/XRPlaneTrackingManager.d.ts +2 -5
- package/types/xr/index.d.ts +9 -22
- package/types/xr/input/XRCamera.d.ts +0 -2
- package/types/xr/input/XRController.d.ts +0 -2
- package/types/xr/input/XRInputManager.d.ts +0 -1
- package/types/xr/session/XRSessionManager.d.ts +4 -23
- package/types/xr/session/XRSessionMode.d.ts +8 -0
- package/types/2d/data/RenderData2D.d.ts +0 -1
- package/types/RenderPipeline/MeshRenderData.d.ts +0 -17
- package/types/RenderPipeline/MeshRenderElement.d.ts +0 -19
- package/types/RenderPipeline/RenderElementX.d.ts +0 -12
- package/types/RenderPipeline/SpriteElement.d.ts +0 -15
- package/types/RenderPipeline/SpriteMaskElement.d.ts +0 -12
- package/types/RenderPipeline/TextRenderElement.d.ts +0 -8
- package/types/SafeLoopArray.d.ts +0 -37
- package/types/Ticker.d.ts +0 -30
- package/types/animation/internal/AnimationCurveOwnerLayerData.d.ts +0 -1
- package/types/asset/IRefObject.d.ts +0 -2
- package/types/asset/RefObject.d.ts +0 -27
- package/types/base/Event.d.ts +0 -24
- package/types/base/Util.d.ts +0 -14
- package/types/graphic/PrimitiveVertexBinding.d.ts +0 -1
- package/types/mesh/SubModelMesh.d.ts +0 -260
- package/types/particle/ParticleData.d.ts +0 -1
- package/types/particle/ParticleMesh.d.ts +0 -289
- package/types/particle/ParticleShaderDeclaration.d.ts +0 -1
- package/types/particle/ParticleShaderMacro.d.ts +0 -1
- package/types/particle/ParticleShaderProperty.d.ts +0 -1
- package/types/particle/ParticleSystem.d.ts +0 -41
- package/types/particle/ParticleVertexElements.d.ts +0 -1
- package/types/particle/ParticleVertexUtils.d.ts +0 -1
- package/types/particle/enum/ParticleAnimationRowMode.d.ts +0 -9
- package/types/particle/enum/ParticleAnimationType.d.ts +0 -9
- package/types/particle/enum/ParticleCurveMode.d.ts +0 -13
- package/types/particle/enum/ParticleGradientMode.d.ts +0 -13
- package/types/particle/enum/ParticleRenderMode.d.ts +0 -17
- package/types/particle/enum/ParticleScaleMode.d.ts +0 -11
- package/types/particle/enum/ParticleShapeMultiModeValue.d.ts +0 -9
- package/types/particle/enum/ParticleShapeType.d.ts +0 -15
- package/types/particle/enum/ParticleSimulationSpace.d.ts +0 -9
- package/types/particle/enum/index.d.ts +0 -9
- package/types/particle/module/Burst.d.ts +0 -38
- package/types/particle/module/ColorGradient.d.ts +0 -75
- package/types/particle/module/ColorOverLifetimeModule.d.ts +0 -20
- package/types/particle/module/EmissionModule.d.ts +0 -63
- package/types/particle/module/FrameOverTime.d.ts +0 -73
- package/types/particle/module/ParticleCurve.d.ts +0 -37
- package/types/particle/module/RotationOverLifetimeModule.d.ts +0 -21
- package/types/particle/module/RotationVelocityGradient.d.ts +0 -184
- package/types/particle/module/SizeGradient.d.ts +0 -151
- package/types/particle/module/SizeOverLifetimeModule.d.ts +0 -21
- package/types/particle/module/StartFrame.d.ts +0 -46
- package/types/particle/module/TextureSheetAnimationModule.d.ts +0 -37
- package/types/particle/module/VelocityGradient.d.ts +0 -110
- package/types/particle/module/VelocityOverLifetimeModule.d.ts +0 -22
- package/types/particle/module/index.d.ts +0 -15
- package/types/particle/module/shape/BaseShape.d.ts +0 -26
- package/types/particle/module/shape/BoxShape.d.ts +0 -20
- package/types/particle/module/shape/CircleShape.d.ts +0 -27
- package/types/particle/module/shape/ConeShape.d.ts +0 -35
- package/types/particle/module/shape/HemisphereShape.d.ts +0 -23
- package/types/particle/module/shape/ShapeUtils.d.ts +0 -1
- package/types/particle/module/shape/SphereShape.d.ts +0 -23
- package/types/particle/module/shape/index.d.ts +0 -5
- package/types/particle/modules/ShapeModule.d.ts +0 -9
- package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
- package/types/particle/moudules/Burst.d.ts +0 -25
- package/types/particle/moudules/Emission.d.ts +0 -47
- package/types/particle/moudules/EmissionModule.d.ts +0 -49
- package/types/particle/moudules/MainModule.d.ts +0 -59
- package/types/particle/moudules/ParticleCurve.d.ts +0 -27
- package/types/particle/moudules/ParticleGradient.d.ts +0 -28
- package/types/particle/moudules/ShapeModule.d.ts +0 -7
- package/types/particle/moudules/shape/BaseShape.d.ts +0 -28
- package/types/particle/moudules/shape/BoxShape.d.ts +0 -20
- package/types/particle/moudules/shape/CircleShape.d.ts +0 -27
- package/types/particle/moudules/shape/ConeShape.d.ts +0 -35
- package/types/particle/moudules/shape/HemisphereShape.d.ts +0 -23
- package/types/particle/moudules/shape/ShapeUtils.d.ts +0 -1
- package/types/particle/moudules/shape/SphereShape.d.ts +0 -23
- package/types/particle/moudules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
- package/types/particle/moudules/shape/enums/ParticleShapeType.d.ts +0 -15
- package/types/particle/moudules/shape/index.d.ts +0 -5
- package/types/physics/PhysicsManager.d.ts +0 -78
- package/types/shadow/PipelinePass.d.ts +0 -16
- 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/UpdateFlagManager.d.ts +0 -1
- package/types/utils/Utils.d.ts +0 -31
- package/types/xr/IXRDevice.d.ts +0 -26
- package/types/xr/XRModule.d.ts +0 -126
- package/types/xr/component/XRPoseDriver.d.ts +0 -10
- package/types/xr/component/XRTrackingMode.d.ts +0 -15
- package/types/xr/component/trackable/XRAnchor.d.ts +0 -4
- package/types/xr/component/trackable/XRImage.d.ts +0 -6
- package/types/xr/component/trackable/XRPlane.d.ts +0 -7
- package/types/xr/component/trackable/XRTracked.d.ts +0 -13
- package/types/xr/data/XRCamera.d.ts +0 -6
- package/types/xr/data/XRDevice.d.ts +0 -9
- package/types/xr/data/XRHandle.d.ts +0 -10
- package/types/xr/enum/EnumXRButton.d.ts +0 -5
- package/types/xr/enum/EnumXRDevicePhase.d.ts +0 -4
- package/types/xr/enum/EnumXRFeature.d.ts +0 -9
- package/types/xr/enum/EnumXRInputSource.d.ts +0 -8
- package/types/xr/enum/EnumXRMode.d.ts +0 -7
- package/types/xr/enum/EnumXRSubsystem.d.ts +0 -4
- package/types/xr/enum/EnumXRTrackingMode.d.ts +0 -7
- package/types/xr/feature/XRCameraManager.d.ts +0 -21
- package/types/xr/feature/XRImageTrackManager.d.ts +0 -10
- package/types/xr/feature/XRInputManager.d.ts +0 -16
- package/types/xr/feature/XRPlatformFeature.d.ts +0 -17
- package/types/xr/feature/camera/IXRCameraDescriptor.d.ts +0 -7
- package/types/xr/feature/camera/XRPlatformCamera.d.ts +0 -5
- package/types/xr/feature/movementTracking/IXRMovementTrackingDescriptor.d.ts +0 -9
- package/types/xr/feature/movementTracking/XRPlatformMovementTracking.d.ts +0 -10
- package/types/xr/feature/trackable/XRTrackablePlatformFeature.d.ts +0 -29
- package/types/xr/feature/trackable/XRTracked.d.ts +0 -9
- package/types/xr/feature/trackable/XRTrackedUpdateFlag.d.ts +0 -11
- package/types/xr/feature/trackable/XRTrackingState.d.ts +0 -11
- package/types/xr/feature/trackable/anchor/IXRAnchorTrackingDescriptor.d.ts +0 -8
- package/types/xr/feature/trackable/anchor/XRAnchorTrackingMode.d.ts +0 -4
- package/types/xr/feature/trackable/anchor/XRPlatformAnchorTracking.d.ts +0 -12
- package/types/xr/feature/trackable/anchor/XRRequestTrackingAnchor.d.ts +0 -10
- package/types/xr/feature/trackable/image/IXRImageTrackingDescriptor.d.ts +0 -5
- package/types/xr/feature/trackable/image/XRPlatformImageTracking.d.ts +0 -14
- package/types/xr/feature/trackable/image/XRRequestTrackingImage.d.ts +0 -11
- package/types/xr/feature/trackable/image/XRTrackedImage.d.ts +0 -5
- package/types/xr/feature/trackable/plane/IXRPlaneTrackingDescriptor.d.ts +0 -9
- package/types/xr/feature/trackable/plane/XRPlaneDetectionMode.d.ts +0 -13
- package/types/xr/feature/trackable/plane/XRPlatformPlaneTracking.d.ts +0 -11
- package/types/xr/feature/trackable/plane/XRRequestTrackingPlane.d.ts +0 -11
- package/types/xr/feature/trackable/plane/XRTrackedPlane.d.ts +0 -11
- package/types/xr/input/XRInput.d.ts +0 -14
- package/types/xr/provider/XRProvider.d.ts +0 -19
- package/types/xr/session/XRSessionType.d.ts +0 -7
- package/types/xr/subsystem/XRInputSubsystem.d.ts +0 -5
- package/types/xr/subsystem/XRSubsystem.d.ts +0 -30
- /package/types/xr/feature/hitTest/{XRHItTestType.d.ts → XRHitTestType.d.ts} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IXRTrackedPlane, IXRPlaneTracking, IXRPlaneTrackingConfig, IXRRequestPlaneTracking } from "@galacean/engine-design";
|
|
2
|
+
import { XRPlaneMode } from "./XRPlaneMode";
|
|
3
|
+
import { XRTrackableFeature } from "../XRTrackableFeature";
|
|
4
|
+
import { Engine } from "../../../../Engine";
|
|
5
|
+
/**
|
|
6
|
+
* The manager of plane tracking feature.
|
|
7
|
+
*/
|
|
8
|
+
export declare class XRPlaneTracking extends XRTrackableFeature<IXRPlaneTrackingConfig, IXRTrackedPlane, IXRRequestPlaneTracking, IXRPlaneTracking> {
|
|
9
|
+
/**
|
|
10
|
+
* Return the plane detection mode for XR.
|
|
11
|
+
*/
|
|
12
|
+
get detectionMode(): XRPlaneMode;
|
|
13
|
+
set detectionMode(value: XRPlaneMode);
|
|
14
|
+
/**
|
|
15
|
+
* @param engine - The engine
|
|
16
|
+
* @param detectionMode - The plane detection mode
|
|
17
|
+
*/
|
|
18
|
+
constructor(engine: Engine, detectionMode?: XRPlaneMode);
|
|
19
|
+
_generateConfig(): IXRPlaneTrackingConfig;
|
|
20
|
+
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { IXRPlaneTrackingDescriptor } from "
|
|
1
|
+
import { IXRPlaneTracking, IXRPlaneTrackingDescriptor, IXRRequestPlaneTracking, IXRTrackedPlane } from "@galacean/engine-design";
|
|
2
2
|
import { XRPlaneMode } from "./XRPlaneMode";
|
|
3
3
|
import { XRTrackableManager } from "../XRTrackableManager";
|
|
4
|
-
|
|
5
|
-
import { XRRequestTrackingPlane } from "./XRRequestTrackingPlane";
|
|
6
|
-
import { IXRPlaneTracking } from "@galacean/engine-design";
|
|
7
|
-
export declare class XRPlaneTrackingManager extends XRTrackableManager<IXRPlaneTrackingDescriptor, XRTrackedPlane, XRRequestTrackingPlane, IXRPlaneTracking> {
|
|
4
|
+
export declare class XRPlaneTrackingManager extends XRTrackableManager<IXRPlaneTrackingDescriptor, IXRTrackedPlane, IXRRequestPlaneTracking, IXRPlaneTracking> {
|
|
8
5
|
/**
|
|
9
6
|
* Return the plane detection mode for XR.
|
|
10
7
|
*/
|
package/types/xr/index.d.ts
CHANGED
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
export { XRManager
|
|
2
|
-
export type { IXRDevice } from "@galacean/engine-design/src/xr/IXRDevice";
|
|
1
|
+
export { XRManager } from "./XRManager";
|
|
3
2
|
export { XRFeatureType } from "./feature/XRFeatureType";
|
|
4
|
-
export {
|
|
5
|
-
export type { IXRCameraDescriptor } from "./feature/camera/IXRCameraDescriptor";
|
|
3
|
+
export { XRFeature } from "./feature/XRFeature";
|
|
6
4
|
export { XRCameraManager } from "./feature/camera/XRCameraManager";
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
5
|
+
export { XRHitTest } from "./feature/hitTest/XRHitTest";
|
|
6
|
+
export { TrackableType } from "./feature/hitTest/TrackableType";
|
|
9
7
|
export { XRRequestTrackingState } from "./feature/trackable/XRRequestTrackingState";
|
|
10
|
-
export {
|
|
11
|
-
export type { IXRMovementTrackingDescriptor } from "./feature/movementTracking/IXRMovementTrackingDescriptor";
|
|
12
|
-
export { XRMovementTrackingManager } from "./feature/movementTracking/XRMovementTrackingManager";
|
|
8
|
+
export { XRMovementTracking } from "./feature/movementTracking/XRMovementTracking";
|
|
13
9
|
export { XRMovementTrackingMode } from "./feature/movementTracking/XRMovementTrackingMode";
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
16
|
-
export { XRRequestTrackingAnchor } from "./feature/trackable/anchor/XRRequestTrackingAnchor";
|
|
17
|
-
export type { IXRImageTrackingDescriptor } from "./feature/trackable/image/IXRImageTrackingDescriptor";
|
|
18
|
-
export { XRImageTrackingManager } from "./feature/trackable/image/XRImageTrackingManager";
|
|
10
|
+
export { XRAnchorTracking } from "./feature/trackable/anchor/XRAnchorTracking";
|
|
11
|
+
export { XRImageTracking } from "./feature/trackable/image/XRImageTracking";
|
|
19
12
|
export { XRReferenceImage } from "./feature/trackable/image/XRReferenceImage";
|
|
20
|
-
export {
|
|
21
|
-
export { XRTrackedImage } from "./feature/trackable/image/XRTrackedImage";
|
|
22
|
-
export type { IXRPlaneTrackingDescriptor } from "./feature/trackable/plane/IXRPlaneTrackingDescriptor";
|
|
23
|
-
export { XRPlaneTrackingManager } from "./feature/trackable/plane/XRPlaneTrackingManager";
|
|
13
|
+
export { XRPlaneTracking } from "./feature/trackable/plane/XRPlaneTracking";
|
|
24
14
|
export { XRPlaneMode } from "./feature/trackable/plane/XRPlaneMode";
|
|
25
|
-
export { XRRequestTrackingPlane } from "./feature/trackable/plane/XRRequestTrackingPlane";
|
|
26
|
-
export { XRTrackedPlane } from "./feature/trackable/plane/XRTrackedPlane";
|
|
27
15
|
export { XRTrackingState } from "./input/XRTrackingState";
|
|
28
16
|
export { XRInputManager } from "./input/XRInputManager";
|
|
29
17
|
export { XRInputButton } from "./input/XRInputButton";
|
|
30
|
-
export { XRInputEvent } from "./input/XRInputEvent";
|
|
31
18
|
export { XRController } from "./input/XRController";
|
|
32
19
|
export { XRInputType } from "./input/XRInputType";
|
|
33
20
|
export { XRCamera } from "./input/XRCamera";
|
|
@@ -35,5 +22,5 @@ export { XRTargetRayMode } from "./input/XRTargetRayMode";
|
|
|
35
22
|
export { XRInputEventType } from "./input/XRInputEventType";
|
|
36
23
|
export { XRTrackedUpdateFlag } from "./input/XRTrackedUpdateFlag";
|
|
37
24
|
export { XRSessionManager } from "./session/XRSessionManager";
|
|
38
|
-
export {
|
|
25
|
+
export { XRSessionMode } from "./session/XRSessionMode";
|
|
39
26
|
export { XRSessionState } from "./session/XRSessionState";
|
|
@@ -8,8 +8,6 @@ import { XRTrackingState } from "./XRTrackingState";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class XRCamera implements IXRInput {
|
|
10
10
|
type: XRInputType;
|
|
11
|
-
/** The update frame count of xr input. */
|
|
12
|
-
frameCount: number;
|
|
13
11
|
/** The tracking state of xr input. */
|
|
14
12
|
trackingState: XRTrackingState;
|
|
15
13
|
/** The viewport of the camera. */
|
|
@@ -9,8 +9,6 @@ import { XRTrackingState } from "./XRTrackingState";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class XRController implements IXRInput {
|
|
11
11
|
type: XRInputType;
|
|
12
|
-
/** The update frame count of xr input. */
|
|
13
|
-
frameCount: number;
|
|
14
12
|
/** The tracking state of xr input. */
|
|
15
13
|
trackingState: XRTrackingState;
|
|
16
14
|
/** The currently pressed buttons of this controller. */
|
|
@@ -12,7 +12,6 @@ export declare class XRInputManager {
|
|
|
12
12
|
protected _engine: Engine;
|
|
13
13
|
protected _session: IXRSession;
|
|
14
14
|
protected _inputs: IXRInput[];
|
|
15
|
-
protected _controllers: XRController[];
|
|
16
15
|
protected _added: IXRInput[];
|
|
17
16
|
protected _updated: IXRInput[];
|
|
18
17
|
protected _removed: IXRInput[];
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IXRSession, IXRFeature } from "@galacean/engine-design";
|
|
2
2
|
import { Engine } from "../../Engine";
|
|
3
|
-
import {
|
|
3
|
+
import { XRSessionMode } from "./XRSessionMode";
|
|
4
4
|
import { XRSessionState } from "./XRSessionState";
|
|
5
|
-
type TXRSessionStateChangeListener = (from: XRSessionState, to: XRSessionState) => void;
|
|
6
5
|
export declare class XRSessionManager {
|
|
7
6
|
protected _engine: Engine;
|
|
8
7
|
protected _session: IXRSession;
|
|
9
|
-
protected _frame: IXRFrame;
|
|
10
8
|
protected _state: XRSessionState;
|
|
11
9
|
private _rhi;
|
|
12
|
-
private _listeners;
|
|
13
10
|
/**
|
|
14
11
|
* Return the current session state.
|
|
15
12
|
*/
|
|
@@ -37,10 +34,10 @@ export declare class XRSessionManager {
|
|
|
37
34
|
/**
|
|
38
35
|
* Initialize the session.
|
|
39
36
|
* @param mode - The mode of the session
|
|
40
|
-
* @param
|
|
37
|
+
* @param features - The requested features
|
|
41
38
|
* @returns The promise of the session
|
|
42
39
|
*/
|
|
43
|
-
initialize(mode:
|
|
40
|
+
initialize(mode: XRSessionMode, features: IXRFeature[]): Promise<IXRSession>;
|
|
44
41
|
/**
|
|
45
42
|
* Start the session.
|
|
46
43
|
* @returns The promise of the session
|
|
@@ -56,21 +53,5 @@ export declare class XRSessionManager {
|
|
|
56
53
|
* @returns The promise of the session
|
|
57
54
|
*/
|
|
58
55
|
destroy(): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* Add a session state change listener.
|
|
61
|
-
* @param listener - The listener to add
|
|
62
|
-
*/
|
|
63
|
-
addSessionStateChangeListener(listener: TXRSessionStateChangeListener): void;
|
|
64
|
-
/**
|
|
65
|
-
* Remove a session state change listener.
|
|
66
|
-
* @param listener - The listener to remove
|
|
67
|
-
*/
|
|
68
|
-
removeSessionStateChangeListener(listener: TXRSessionStateChangeListener): void;
|
|
69
|
-
/**
|
|
70
|
-
* Remove all session state change listeners.
|
|
71
|
-
*/
|
|
72
|
-
removeAllSessionStateChangeListener(): void;
|
|
73
56
|
constructor(_engine: Engine);
|
|
74
|
-
private _dispatchSessionStateChange;
|
|
75
57
|
}
|
|
76
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Mesh } from "../graphic/Mesh";
|
|
2
|
-
import { SubMesh } from "../graphic/SubMesh";
|
|
3
|
-
import { Material } from "../material/Material";
|
|
4
|
-
import { Renderer } from "../Renderer";
|
|
5
|
-
import { IPoolElement } from "./IPoolElement";
|
|
6
|
-
import { RenderData } from "./RenderData";
|
|
7
|
-
/**
|
|
8
|
-
* Render element.
|
|
9
|
-
*/
|
|
10
|
-
export declare class MeshRenderData extends RenderData implements IPoolElement {
|
|
11
|
-
/** Mesh. */
|
|
12
|
-
mesh: Mesh;
|
|
13
|
-
/** Sub mesh. */
|
|
14
|
-
subMesh: SubMesh;
|
|
15
|
-
set(component: Renderer, material: Material, mesh: Mesh, subMesh: SubMesh): void;
|
|
16
|
-
dispose(): void;
|
|
17
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Mesh } from "../graphic/Mesh";
|
|
2
|
-
import { SubMesh } from "../graphic/SubMesh";
|
|
3
|
-
import { Material } from "../material/Material";
|
|
4
|
-
import { Renderer } from "../Renderer";
|
|
5
|
-
import { ShaderPass } from "../shader/ShaderPass";
|
|
6
|
-
import { RenderState } from "../shader/state/RenderState";
|
|
7
|
-
import { IPoolElement } from "./IPoolElement";
|
|
8
|
-
import { RenderElement } from "./RenderElement";
|
|
9
|
-
/**
|
|
10
|
-
* Render element.
|
|
11
|
-
*/
|
|
12
|
-
export declare class MeshRenderElement extends RenderElement implements IPoolElement {
|
|
13
|
-
/** Mesh. */
|
|
14
|
-
mesh: Mesh;
|
|
15
|
-
/** Sub mesh. */
|
|
16
|
-
subMesh: SubMesh;
|
|
17
|
-
setValue(component: Renderer, mesh: Mesh, subMesh: SubMesh, material: Material, renderState: RenderState, shaderPass: ShaderPass): void;
|
|
18
|
-
dispose(): void;
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Renderer } from "../Renderer";
|
|
2
|
-
import { Primitive } from "../graphic/Primitive";
|
|
3
|
-
import { Material } from "../material/Material";
|
|
4
|
-
import { ShaderPass } from "../shader/ShaderPass";
|
|
5
|
-
import { IPoolElement } from "./IPoolElement";
|
|
6
|
-
export declare class RenderElementX implements IPoolElement {
|
|
7
|
-
shaderPasses: ReadonlyArray<ShaderPass>;
|
|
8
|
-
component: Renderer;
|
|
9
|
-
material: Material;
|
|
10
|
-
primitive: Primitive;
|
|
11
|
-
dispose(): void;
|
|
12
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RenderData2D } from "../2d/data/RenderData2D";
|
|
2
|
-
import { Material } from "../material/Material";
|
|
3
|
-
import { Renderer } from "../Renderer";
|
|
4
|
-
import { ShaderPass } from "../shader";
|
|
5
|
-
import { RenderState } from "../shader/state/RenderState";
|
|
6
|
-
import { Texture2D } from "../texture";
|
|
7
|
-
import { IPoolElement } from "./IPoolElement";
|
|
8
|
-
import { RenderElement } from "./RenderElement";
|
|
9
|
-
export declare class SpriteElement extends RenderElement implements IPoolElement {
|
|
10
|
-
renderData: RenderData2D;
|
|
11
|
-
texture: Texture2D;
|
|
12
|
-
constructor();
|
|
13
|
-
setValue(component: Renderer, renderDate: RenderData2D, material: Material, texture: Texture2D, renderState: RenderState, shaderPass: ShaderPass): void;
|
|
14
|
-
dispose(): void;
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RenderData2D } from "../2d/data/RenderData2D";
|
|
2
|
-
import { Material } from "../material/Material";
|
|
3
|
-
import { Renderer } from "../Renderer";
|
|
4
|
-
import { IPoolElement } from "./IPoolElement";
|
|
5
|
-
import { RenderElement } from "./RenderElement";
|
|
6
|
-
export declare class SpriteMaskElement extends RenderElement implements IPoolElement {
|
|
7
|
-
renderData: RenderData2D;
|
|
8
|
-
isAdd: boolean;
|
|
9
|
-
constructor();
|
|
10
|
-
setValue(component: Renderer, renderData: RenderData2D, material: Material): void;
|
|
11
|
-
dispose(): void;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IPoolElement } from "./IPoolElement";
|
|
2
|
-
import { RenderElement } from "./RenderElement";
|
|
3
|
-
import { SpriteElement } from "./SpriteElement";
|
|
4
|
-
export declare class TextRenderElement extends RenderElement implements IPoolElement {
|
|
5
|
-
charElements: SpriteElement[];
|
|
6
|
-
constructor();
|
|
7
|
-
dispose(): void;
|
|
8
|
-
}
|
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
|
-
}
|
package/types/Ticker.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare class Ticker {
|
|
2
|
-
private _vSyncCount;
|
|
3
|
-
private _vSyncCounter;
|
|
4
|
-
private _requestId;
|
|
5
|
-
private _animationLoop;
|
|
6
|
-
private _requestAnimationFrame;
|
|
7
|
-
private _cancelAnimationFrame;
|
|
8
|
-
/**
|
|
9
|
-
* The number of vertical synchronization means the number of vertical blanking for one frame.
|
|
10
|
-
* @remarks 0 means that the vertical synchronization is turned off.
|
|
11
|
-
*/
|
|
12
|
-
get vSyncCount(): number;
|
|
13
|
-
set vSyncCount(value: number);
|
|
14
|
-
get requestAnimationFrame(): (...params: any[]) => any;
|
|
15
|
-
set requestAnimationFrame(func: (...params: any[]) => any);
|
|
16
|
-
get cancelAnimationFrame(): (...params: any[]) => any;
|
|
17
|
-
set cancelAnimationFrame(func: (...params: any[]) => any);
|
|
18
|
-
get animationLoop(): (...params: any[]) => any;
|
|
19
|
-
set animationLoop(func: (...params: any[]) => any);
|
|
20
|
-
/**
|
|
21
|
-
* Pause the engine.
|
|
22
|
-
*/
|
|
23
|
-
pause(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Resume the engine.
|
|
26
|
-
*/
|
|
27
|
-
resume(): void;
|
|
28
|
-
private _onAnimationFrame;
|
|
29
|
-
constructor();
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { EngineObject } from "../base/EngineObject";
|
|
2
|
-
import { Engine } from "../Engine";
|
|
3
|
-
import { IRefObject } from "./IRefObject";
|
|
4
|
-
/**
|
|
5
|
-
* The base class of assets, with reference counting capability.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class RefObject extends EngineObject implements IRefObject {
|
|
8
|
-
/** Whether to ignore the garbage collection check, if it is true, it will not be affected by ResourceManager.gc(). */
|
|
9
|
-
isGCIgnored: boolean;
|
|
10
|
-
private _refCount;
|
|
11
|
-
/**
|
|
12
|
-
* Counted by valid references.
|
|
13
|
-
*/
|
|
14
|
-
get refCount(): number;
|
|
15
|
-
protected constructor(engine: Engine);
|
|
16
|
-
/**
|
|
17
|
-
* Destroy self.
|
|
18
|
-
* @param force - Whether to force the destruction, if it is false, refCount = 0 can be released successfully.
|
|
19
|
-
* @returns Whether the release was successful.
|
|
20
|
-
*/
|
|
21
|
-
destroy(force?: boolean): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Called when the resource is destroyed.
|
|
24
|
-
* Subclasses can override this function.
|
|
25
|
-
*/
|
|
26
|
-
protected abstract _onDestroy(): void;
|
|
27
|
-
}
|
package/types/base/Event.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { EventDispatcher } from "./EventDispatcher";
|
|
2
|
-
export type Listener = ((e: Event) => any) & {
|
|
3
|
-
once?: boolean;
|
|
4
|
-
};
|
|
5
|
-
/** Event Object. * @class */
|
|
6
|
-
export declare class Event {
|
|
7
|
-
get propagationStopped(): boolean;
|
|
8
|
-
get target(): EventDispatcher;
|
|
9
|
-
set target(t: EventDispatcher);
|
|
10
|
-
get timeStamp(): number;
|
|
11
|
-
get currentTarget(): EventDispatcher;
|
|
12
|
-
set currentTarget(t: EventDispatcher);
|
|
13
|
-
get bubbles(): boolean;
|
|
14
|
-
get type(): string | number;
|
|
15
|
-
data: any;
|
|
16
|
-
private _timeStamp;
|
|
17
|
-
private _target;
|
|
18
|
-
private _currentTarget;
|
|
19
|
-
private _bubbles;
|
|
20
|
-
private _propagationStopped;
|
|
21
|
-
private _type;
|
|
22
|
-
constructor(type: string | number, target?: EventDispatcher, data?: any, bubbles?: boolean);
|
|
23
|
-
stopPropagation(): void;
|
|
24
|
-
}
|
package/types/base/Util.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const Util: {
|
|
2
|
-
isArray: (value: any) => boolean;
|
|
3
|
-
isArrayLike(x: any): boolean;
|
|
4
|
-
clone<T>(obj: T): T;
|
|
5
|
-
downloadBlob(blob: Blob, fileName?: string): void;
|
|
6
|
-
};
|
|
7
|
-
export declare const isArrayLike: <T>(x: any) => x is ArrayLike<T>;
|
|
8
|
-
/**
|
|
9
|
-
* Fastly remove an element from array.
|
|
10
|
-
* @param array - Array
|
|
11
|
-
* @param item - Element
|
|
12
|
-
*/
|
|
13
|
-
export declare function removeFromArray(array: any[], item: any): boolean;
|
|
14
|
-
export declare function ObjectValues(obj: any): any[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|