@galacean/engine-core 0.0.0-experimental-animator-additive.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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/main.js +24671 -0
- package/dist/main.js.map +1 -0
- package/dist/miniprogram.js +24671 -0
- package/dist/module.js +24554 -0
- package/dist/module.js.map +1 -0
- package/package.json +26 -0
- package/types/2d/assembler/IAssembler.d.ts +1 -0
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
- package/types/2d/atlas/FontAtlas.d.ts +1 -0
- package/types/2d/atlas/SpriteAtlas.d.ts +36 -0
- package/types/2d/atlas/types.d.ts +64 -0
- package/types/2d/data/RenderData2D.d.ts +1 -0
- package/types/2d/data/VertexData2D.d.ts +1 -0
- package/types/2d/enums/FontStyle.d.ts +11 -0
- package/types/2d/enums/SpriteDirtyFlag.d.ts +13 -0
- package/types/2d/enums/SpriteDrawMode.d.ts +9 -0
- package/types/2d/enums/SpriteMaskInteraction.d.ts +11 -0
- package/types/2d/enums/SpriteMaskLayer.d.ts +71 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +13 -0
- package/types/2d/enums/TextAlignment.d.ts +22 -0
- package/types/2d/enums/TextOverflow.d.ts +9 -0
- package/types/2d/index.d.ts +9 -0
- package/types/2d/sprite/Sprite.d.ts +97 -0
- package/types/2d/sprite/SpriteMask.d.ts +63 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +77 -0
- package/types/2d/sprite/index.d.ts +3 -0
- package/types/2d/text/CharInfo.d.ts +1 -0
- package/types/2d/text/CharRenderData.d.ts +1 -0
- package/types/2d/text/CharRenderDataPool.d.ts +1 -0
- package/types/2d/text/Font.d.ts +26 -0
- package/types/2d/text/SubFont.d.ts +1 -0
- package/types/2d/text/TextRenderer.d.ts +123 -0
- package/types/2d/text/TextUtils.d.ts +1 -0
- package/types/2d/text/index.d.ts +2 -0
- package/types/Background.d.ts +43 -0
- package/types/BoolUpdateFlag.d.ts +12 -0
- package/types/Camera.d.ts +206 -0
- package/types/Canvas.d.ts +9 -0
- package/types/Component.d.ts +32 -0
- package/types/ComponentsDependencies.d.ts +17 -0
- package/types/ComponentsManager.d.ts +46 -0
- package/types/DisorderedArray.d.ts +18 -0
- package/types/Engine.d.ts +140 -0
- package/types/EngineSettings.d.ts +8 -0
- package/types/Entity.d.ts +151 -0
- package/types/Layer.d.ts +73 -0
- package/types/ListenerUpdateFlag.d.ts +12 -0
- package/types/Platform.d.ts +15 -0
- package/types/RenderPipeline/Basic2DBatcher.d.ts +20 -0
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +66 -0
- package/types/RenderPipeline/ClassPool.d.ts +17 -0
- package/types/RenderPipeline/MeshRenderData.d.ts +15 -0
- package/types/RenderPipeline/MeshRenderElement.d.ts +17 -0
- package/types/RenderPipeline/RenderContext.d.ts +1 -0
- package/types/RenderPipeline/RenderData.d.ts +7 -0
- package/types/RenderPipeline/RenderElement.d.ts +11 -0
- package/types/RenderPipeline/RenderPass.d.ts +55 -0
- package/types/RenderPipeline/RenderQueue.d.ts +38 -0
- package/types/RenderPipeline/SpriteBatcher.d.ts +1 -0
- package/types/RenderPipeline/SpriteElement.d.ts +13 -0
- package/types/RenderPipeline/SpriteMaskBatcher.d.ts +10 -0
- package/types/RenderPipeline/SpriteMaskElement.d.ts +10 -0
- package/types/RenderPipeline/SpriteMaskManager.d.ts +1 -0
- package/types/RenderPipeline/SpriteMaskRenderData.d.ts +10 -0
- package/types/RenderPipeline/SpriteRenderData.d.ts +12 -0
- package/types/RenderPipeline/TextRenderData.d.ts +6 -0
- package/types/RenderPipeline/TextRenderElement.d.ts +6 -0
- package/types/RenderPipeline/enums/PipelineStage.d.ts +9 -0
- package/types/RenderPipeline/index.d.ts +4 -0
- package/types/Renderer.d.ts +119 -0
- package/types/Scene.d.ts +142 -0
- package/types/SceneManager.d.ts +28 -0
- package/types/Script.d.ts +118 -0
- package/types/SystemInfo.d.ts +14 -0
- package/types/Transform.d.ts +258 -0
- package/types/UpdateFlag.d.ts +20 -0
- package/types/UpdateFlagManager.d.ts +1 -0
- package/types/Utils.d.ts +3 -0
- package/types/VirtualCamera.d.ts +1 -0
- package/types/animation/AnimationClip.d.ts +58 -0
- package/types/animation/AnimationClipCurveBinding.d.ts +21 -0
- package/types/animation/AnimationEvent.d.ts +11 -0
- package/types/animation/Animator.d.ts +86 -0
- package/types/animation/AnimatorController.d.ts +32 -0
- package/types/animation/AnimatorControllerLayer.d.ts +18 -0
- package/types/animation/AnimatorState.d.ts +60 -0
- package/types/animation/AnimatorStateMachine.d.ts +37 -0
- package/types/animation/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/AnimatorStateTransition.d.ts +12 -0
- package/types/animation/AnimatorTransition.d.ts +14 -0
- package/types/animation/AnimatorTransitionBase.d.ts +10 -0
- package/types/animation/Keyframe.d.ts +19 -0
- package/types/animation/StateMachineScript.d.ts +32 -0
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +12 -0
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +8 -0
- package/types/animation/animationCurve/index.d.ts +10 -0
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +1 -0
- package/types/animation/enums/AnimatorConditionMode.d.ts +8 -0
- package/types/animation/enums/AnimatorCullingMode.d.ts +9 -0
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +4 -0
- package/types/animation/enums/AnimatorStatePlayState.d.ts +1 -0
- package/types/animation/enums/InterpolationType.d.ts +13 -0
- package/types/animation/enums/LayerState.d.ts +13 -0
- package/types/animation/enums/PlayState.d.ts +13 -0
- package/types/animation/enums/StateMachineState.d.ts +13 -0
- package/types/animation/enums/WrapMode.d.ts +9 -0
- package/types/animation/index.d.ts +21 -0
- package/types/animation/internal/AnimationEventHandler.d.ts +1 -0
- package/types/animation/internal/AnimatorLayerData.d.ts +1 -0
- package/types/animation/internal/AnimatorPlayableObject.d.ts +23 -0
- package/types/animation/internal/AnimatorStateData.d.ts +1 -0
- package/types/animation/internal/AnimatorStateInfo.d.ts +1 -0
- package/types/animation/internal/AnimatorStateMachineData.d.ts +1 -0
- package/types/animation/internal/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/internal/AnimatorTempValue.d.ts +1 -0
- package/types/animation/internal/CrossCurveData.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +5 -0
- package/types/animation/internal/animationCurveOwner/Assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/IAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/PositionAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/RotationAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/ScaleAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/UniversalAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/asset/AssetPromise.d.ts +56 -0
- package/types/asset/AssetType.d.ts +52 -0
- package/types/asset/ContentRestorer.d.ts +17 -0
- package/types/asset/GraphicsResource.d.ts +9 -0
- package/types/asset/IRefObject.d.ts +2 -0
- package/types/asset/IReferable.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +33 -0
- package/types/asset/Loader.d.ts +30 -0
- package/types/asset/RefObject.d.ts +27 -0
- package/types/asset/ReferResource.d.ts +27 -0
- package/types/asset/ResourceManager.d.ts +101 -0
- package/types/asset/request.d.ts +25 -0
- package/types/base/Constant.d.ts +110 -0
- package/types/base/EngineObject.d.ts +24 -0
- package/types/base/Event.d.ts +24 -0
- package/types/base/EventDispatcher.d.ts +79 -0
- package/types/base/Logger.d.ts +11 -0
- package/types/base/StaticInterfaceImplement.d.ts +5 -0
- package/types/base/Time.d.ts +41 -0
- package/types/base/Util.d.ts +14 -0
- package/types/base/index.d.ts +7 -0
- package/types/clone/CloneManager.d.ts +31 -0
- package/types/clone/ComponentCloner.d.ts +14 -0
- package/types/clone/enums/CloneMode.d.ts +13 -0
- package/types/enums/BackgroundMode.d.ts +9 -0
- package/types/enums/BackgroundTextureFillMode.d.ts +8 -0
- package/types/enums/CameraClearFlags.d.ts +13 -0
- package/types/enums/ColorSpace.d.ts +9 -0
- package/types/enums/FogMode.d.ts +13 -0
- package/types/env-probe/CubeProbe.d.ts +34 -0
- package/types/env-probe/Probe.d.ts +58 -0
- package/types/env-probe/index.d.ts +2 -0
- package/types/fog/EXP2Fog.d.ts +15 -0
- package/types/fog/Fog.d.ts +14 -0
- package/types/fog/LinearFog.d.ts +22 -0
- package/types/fog/index.d.ts +3 -0
- package/types/graphic/Buffer.d.ts +105 -0
- package/types/graphic/BufferUtil.d.ts +11 -0
- package/types/graphic/IndexBufferBinding.d.ts +21 -0
- package/types/graphic/Mesh.d.ts +70 -0
- package/types/graphic/SubMesh.d.ts +19 -0
- package/types/graphic/VertexBufferBinding.d.ts +20 -0
- package/types/graphic/VertexElement.d.ts +44 -0
- package/types/graphic/enums/BufferBindFlag.d.ts +9 -0
- package/types/graphic/enums/BufferUsage.d.ts +11 -0
- package/types/graphic/enums/IndexFormat.d.ts +11 -0
- package/types/graphic/enums/MeshTopology.d.ts +19 -0
- package/types/graphic/enums/SetDataOptions.d.ts +9 -0
- package/types/graphic/enums/VertexElementFormat.d.ts +37 -0
- package/types/graphic/index.d.ts +13 -0
- package/types/index.d.ts +53 -0
- package/types/input/InputManager.d.ts +67 -0
- package/types/input/enums/Keys.d.ts +398 -0
- package/types/input/enums/PointerButton.d.ts +33 -0
- package/types/input/enums/PointerPhase.d.ts +15 -0
- package/types/input/index.d.ts +5 -0
- package/types/input/interface/IInput.d.ts +18 -0
- package/types/input/keyboard/KeyboardManager.d.ts +1 -0
- package/types/input/pointer/Pointer.d.ts +25 -0
- package/types/input/pointer/PointerManager.d.ts +1 -0
- package/types/input/wheel/WheelManager.d.ts +1 -0
- package/types/lighting/AmbientLight.d.ts +67 -0
- package/types/lighting/DirectLight.d.ts +21 -0
- package/types/lighting/KHR_lights.d.ts +4 -0
- package/types/lighting/Light.d.ts +48 -0
- package/types/lighting/LightManager.d.ts +5 -0
- package/types/lighting/PointLight.d.ts +18 -0
- package/types/lighting/SpotLight.d.ts +36 -0
- package/types/lighting/enums/DiffuseMode.d.ts +13 -0
- package/types/lighting/index.d.ts +6 -0
- package/types/material/BaseMaterial.d.ts +88 -0
- package/types/material/BlinnPhongMaterial.d.ts +71 -0
- package/types/material/Material.d.ts +51 -0
- package/types/material/PBRBaseMaterial.d.ts +101 -0
- package/types/material/PBRMaterial.d.ts +36 -0
- package/types/material/PBRSpecularMaterial.d.ts +38 -0
- package/types/material/UnlitMaterial.d.ts +33 -0
- package/types/material/enums/BlendMode.d.ts +9 -0
- package/types/material/enums/RenderFace.d.ts +11 -0
- package/types/material/enums/TextureCoordinate.d.ts +13 -0
- package/types/material/index.d.ts +10 -0
- package/types/mesh/BlendShape.d.ts +39 -0
- package/types/mesh/BlendShapeFrame.d.ts +22 -0
- package/types/mesh/BlendShapeManager.d.ts +1 -0
- package/types/mesh/BufferMesh.d.ts +59 -0
- package/types/mesh/MeshRenderer.d.ts +30 -0
- package/types/mesh/ModelMesh.d.ts +226 -0
- package/types/mesh/PrimitiveMesh.d.ts +86 -0
- package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
- package/types/mesh/Skin.d.ts +16 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +62 -0
- package/types/mesh/enums/VertexAttribute.d.ts +33 -0
- package/types/mesh/index.d.ts +8 -0
- package/types/particle/ParticleRenderer.d.ts +235 -0
- package/types/particle/index.d.ts +1 -0
- package/types/physics/CharacterController.d.ts +53 -0
- package/types/physics/Collider.d.ts +29 -0
- package/types/physics/DynamicCollider.d.ts +161 -0
- package/types/physics/HitResult.d.ts +15 -0
- package/types/physics/PhysicsManager.d.ts +95 -0
- package/types/physics/PhysicsMaterial.d.ts +37 -0
- package/types/physics/StaticCollider.d.ts +7 -0
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +11 -0
- package/types/physics/enums/ControllerCollisionFlag.d.ts +11 -0
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +9 -0
- package/types/physics/enums/HingeJointFlag.d.ts +1 -0
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +13 -0
- package/types/physics/enums/index.d.ts +4 -0
- package/types/physics/index.d.ts +10 -0
- package/types/physics/joint/FixedJoint.d.ts +3 -0
- package/types/physics/joint/HingeJoint.d.ts +57 -0
- package/types/physics/joint/Joint.d.ts +58 -0
- package/types/physics/joint/JointLimits.d.ts +15 -0
- package/types/physics/joint/JointMotor.d.ts +13 -0
- package/types/physics/joint/SpringJoint.d.ts +42 -0
- package/types/physics/joint/index.d.ts +6 -0
- package/types/physics/shape/BoxColliderShape.d.ts +15 -0
- package/types/physics/shape/CapsuleColliderShape.d.ts +26 -0
- package/types/physics/shape/ColliderShape.d.ts +51 -0
- package/types/physics/shape/PlaneColliderShape.d.ts +7 -0
- package/types/physics/shape/SphereColliderShape.d.ts +13 -0
- package/types/physics/shape/index.d.ts +5 -0
- package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +6 -0
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +8 -0
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +20 -0
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +36 -0
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +37 -0
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +40 -0
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +41 -0
- package/types/renderingHardwareInterface/index.d.ts +6 -0
- package/types/shader/Shader.d.ts +72 -0
- package/types/shader/ShaderData.d.ts +350 -0
- package/types/shader/ShaderMacro.d.ts +10 -0
- package/types/shader/ShaderMacroCollection.d.ts +1 -0
- package/types/shader/ShaderPart.d.ts +41 -0
- package/types/shader/ShaderPass.d.ts +9 -0
- package/types/shader/ShaderPool.d.ts +1 -0
- package/types/shader/ShaderProgram.d.ts +1 -0
- package/types/shader/ShaderProgramPool.d.ts +1 -0
- package/types/shader/ShaderProperty.d.ts +13 -0
- package/types/shader/ShaderTagKey.d.ts +16 -0
- package/types/shader/ShaderUniform.d.ts +1 -0
- package/types/shader/ShaderUniformBlock.d.ts +1 -0
- package/types/shader/SubShader.d.ts +19 -0
- package/types/shader/enums/BlendFactor.d.ts +32 -0
- package/types/shader/enums/BlendOperation.d.ts +16 -0
- package/types/shader/enums/ColorWriteMask.d.ts +18 -0
- package/types/shader/enums/CompareFunction.d.ts +22 -0
- package/types/shader/enums/CullMode.d.ts +12 -0
- package/types/shader/enums/RenderQueueType.d.ts +11 -0
- package/types/shader/enums/ShaderDataGroup.d.ts +13 -0
- package/types/shader/enums/ShaderPropertyType.d.ts +27 -0
- package/types/shader/enums/StencilOperation.d.ts +22 -0
- package/types/shader/index.d.ts +12 -0
- package/types/shader/state/BlendState.d.ts +16 -0
- package/types/shader/state/DepthState.d.ts +14 -0
- package/types/shader/state/RasterState.d.ts +13 -0
- package/types/shader/state/RenderState.d.ts +20 -0
- package/types/shader/state/RenderTargetBlendState.d.ts +24 -0
- package/types/shader/state/StencilState.d.ts +34 -0
- package/types/shaderlib/ShaderFactory.d.ts +17 -0
- package/types/shaderlib/ShaderLib.d.ts +57 -0
- package/types/shaderlib/index.d.ts +1 -0
- package/types/shaderlib/pbr/index.d.ts +9 -0
- package/types/shaderlib/shadow/index.d.ts +8 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +47 -0
- package/types/shadow/ShadowSliceData.d.ts +1 -0
- package/types/shadow/ShadowUtils.d.ts +1 -0
- package/types/shadow/enum/ShadowCascadesMode.d.ts +11 -0
- package/types/shadow/enum/ShadowMode.d.ts +13 -0
- package/types/shadow/enum/ShadowResolution.d.ts +13 -0
- package/types/shadow/enum/ShadowType.d.ts +13 -0
- package/types/shadow/index.d.ts +3 -0
- package/types/sky/Sky.d.ts +14 -0
- package/types/sky/SkyBoxMaterial.d.ts +25 -0
- package/types/sky/index.d.ts +2 -0
- package/types/texture/RenderTarget.d.ts +95 -0
- package/types/texture/Texture.d.ts +77 -0
- package/types/texture/Texture2D.d.ts +68 -0
- package/types/texture/Texture2DArray.d.ts +81 -0
- package/types/texture/TextureCube.d.ts +70 -0
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +21 -0
- package/types/texture/enums/TextureCubeFace.d.ts +17 -0
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +21 -0
- package/types/texture/enums/TextureFilterMode.d.ts +11 -0
- package/types/texture/enums/TextureFormat.d.ts +69 -0
- package/types/texture/enums/TextureWrapMode.d.ts +11 -0
- package/types/texture/index.d.ts +11 -0
- package/types/trail/TrailMaterial.d.ts +5 -0
- package/types/trail/TrailRenderer.d.ts +40 -0
- package/types/trail/index.d.ts +2 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The keys of the keyboard.
|
|
3
|
+
* Keep up with W3C standards.(https://www.w3.org/TR/2017/CR-uievents-code-20170601/)
|
|
4
|
+
*/
|
|
5
|
+
export declare enum Keys {
|
|
6
|
+
/** `~ on a US keyboard. This is the 半角/全角/漢字 (hankaku/zenkaku/kanji) key on Japanese keyboards. */
|
|
7
|
+
Backquote = 0,
|
|
8
|
+
/** Used for both the US \| (on the 101-key layout) and also for the key located between the " and Enter keys on row C of the 102-, 104- and 106-key layouts. Labelled #~ on a UK (102) keyboard. */
|
|
9
|
+
Backslash = 1,
|
|
10
|
+
/** Backspace or ⌫. Labelled Delete on Apple keyboards. */
|
|
11
|
+
Backspace = 2,
|
|
12
|
+
/** [{ on a US keyboard. */
|
|
13
|
+
BracketLeft = 3,
|
|
14
|
+
/** ]} on a US keyboard. */
|
|
15
|
+
BracketRight = 4,
|
|
16
|
+
/** ,< on a US keyboard. */
|
|
17
|
+
Comma = 5,
|
|
18
|
+
/** 0) on a US keyboard. */
|
|
19
|
+
Digit0 = 6,
|
|
20
|
+
/** 1! on a US keyboard. */
|
|
21
|
+
Digit1 = 7,
|
|
22
|
+
/** 2@ on a US keyboard. */
|
|
23
|
+
Digit2 = 8,
|
|
24
|
+
/** 3# on a US keyboard. */
|
|
25
|
+
Digit3 = 9,
|
|
26
|
+
/** 4$ on a US keyboard. */
|
|
27
|
+
Digit4 = 10,
|
|
28
|
+
/** 5% on a US keyboard. */
|
|
29
|
+
Digit5 = 11,
|
|
30
|
+
/** 6^ on a US keyboard. */
|
|
31
|
+
Digit6 = 12,
|
|
32
|
+
/** 7& on a US keyboard. */
|
|
33
|
+
Digit7 = 13,
|
|
34
|
+
/** 8* on a US keyboard. */
|
|
35
|
+
Digit8 = 14,
|
|
36
|
+
/** 9( on a US keyboard. */
|
|
37
|
+
Digit9 = 15,
|
|
38
|
+
/** =+ on a US keyboard. */
|
|
39
|
+
Equal = 16,
|
|
40
|
+
/** Located between the left Shift and Z keys. Labelled \| on a UK keyboard. */
|
|
41
|
+
IntlBackslash = 17,
|
|
42
|
+
/** Located between the / and right Shift keys. Labelled \ろ (ro) on a Japanese keyboard. */
|
|
43
|
+
IntlRo = 18,
|
|
44
|
+
/** Located between the = and Backspace keys. Labelled ¥ (yen) on a Japanese keyboard. \/ on a Russian keyboard. */
|
|
45
|
+
IntlYen = 19,
|
|
46
|
+
/** a on a US keyboard. Labelled q on an AZERTY (e.g., French) keyboard. */
|
|
47
|
+
KeyA = 20,
|
|
48
|
+
/** b on a US keyboard. */
|
|
49
|
+
KeyB = 21,
|
|
50
|
+
/** c on a US keyboard. */
|
|
51
|
+
KeyC = 22,
|
|
52
|
+
/** d on a US keyboard. */
|
|
53
|
+
KeyD = 23,
|
|
54
|
+
/** e on a US keyboard. */
|
|
55
|
+
KeyE = 24,
|
|
56
|
+
/** f on a US keyboard. */
|
|
57
|
+
KeyF = 25,
|
|
58
|
+
/** g on a US keyboard. */
|
|
59
|
+
KeyG = 26,
|
|
60
|
+
/** h on a US keyboard. */
|
|
61
|
+
KeyH = 27,
|
|
62
|
+
/** i on a US keyboard. */
|
|
63
|
+
KeyI = 28,
|
|
64
|
+
/** j on a US keyboard. */
|
|
65
|
+
KeyJ = 29,
|
|
66
|
+
/** k on a US keyboard. */
|
|
67
|
+
KeyK = 30,
|
|
68
|
+
/** l on a US keyboard. */
|
|
69
|
+
KeyL = 31,
|
|
70
|
+
/** m on a US keyboard. */
|
|
71
|
+
KeyM = 32,
|
|
72
|
+
/** n on a US keyboard. */
|
|
73
|
+
KeyN = 33,
|
|
74
|
+
/** o on a US keyboard. */
|
|
75
|
+
KeyO = 34,
|
|
76
|
+
/** p on a US keyboard. */
|
|
77
|
+
KeyP = 35,
|
|
78
|
+
/** q on a US keyboard. Labelled a on an AZERTY (e.g., French) keyboard. */
|
|
79
|
+
KeyQ = 36,
|
|
80
|
+
/** r on a US keyboard. */
|
|
81
|
+
KeyR = 37,
|
|
82
|
+
/** s on a US keyboard. */
|
|
83
|
+
KeyS = 38,
|
|
84
|
+
/** t on a US keyboard. */
|
|
85
|
+
KeyT = 39,
|
|
86
|
+
/** u on a US keyboard. */
|
|
87
|
+
KeyU = 40,
|
|
88
|
+
/** v on a US keyboard. */
|
|
89
|
+
KeyV = 41,
|
|
90
|
+
/** w on a US keyboard. Labelled z on an AZERTY (e.g., French) keyboard. */
|
|
91
|
+
KeyW = 42,
|
|
92
|
+
/** x on a US keyboard. */
|
|
93
|
+
KeyX = 43,
|
|
94
|
+
/** y on a US keyboard. Labelled z on a QWERTZ (e.g., German) keyboard. */
|
|
95
|
+
KeyY = 44,
|
|
96
|
+
/** z on a US keyboard. Labelled w on an AZERTY (e.g., French) keyboard, and y on a QWERTZ (e.g., German) keyboard. */
|
|
97
|
+
KeyZ = 45,
|
|
98
|
+
/** -_ on a US keyboard. */
|
|
99
|
+
Minus = 46,
|
|
100
|
+
/** .> on a US keyboard. */
|
|
101
|
+
Period = 47,
|
|
102
|
+
/** '" on a US keyboard. */
|
|
103
|
+
Quote = 48,
|
|
104
|
+
/** ;: on a US keyboard. */
|
|
105
|
+
Semicolon = 49,
|
|
106
|
+
/** /? on a US keyboard. */
|
|
107
|
+
Slash = 50,
|
|
108
|
+
/** Alt, Option or ⌥. */
|
|
109
|
+
AltLeft = 51,
|
|
110
|
+
/** Alt, Option or ⌥. This is labelled AltGr key on many keyboard layouts. */
|
|
111
|
+
AltRight = 52,
|
|
112
|
+
/** CapsLock or ⇪. */
|
|
113
|
+
CapsLock = 53,
|
|
114
|
+
/** The application context menu key, which is typically found between the right Meta key and the right Control key. */
|
|
115
|
+
ContextMenu = 54,
|
|
116
|
+
/** Control or ⌃. */
|
|
117
|
+
ControlLeft = 55,
|
|
118
|
+
/** Control or ⌃. */
|
|
119
|
+
ControlRight = 56,
|
|
120
|
+
/** Enter or ↵. Labelled Return on Apple keyboards. */
|
|
121
|
+
Enter = 57,
|
|
122
|
+
/** The Windows, ⌘, Command or other OS symbol key. */
|
|
123
|
+
MetaLeft = 58,
|
|
124
|
+
/** The Windows, ⌘, Command or other OS symbol key. */
|
|
125
|
+
MetaRight = 59,
|
|
126
|
+
/** Shift or ⇧. */
|
|
127
|
+
ShiftLeft = 60,
|
|
128
|
+
/** Shift or ⇧. */
|
|
129
|
+
ShiftRight = 61,
|
|
130
|
+
/** Space. */
|
|
131
|
+
Space = 62,
|
|
132
|
+
/** Tab or ⇥. */
|
|
133
|
+
Tab = 63,
|
|
134
|
+
/** Japanese: 変換 (henkan). */
|
|
135
|
+
Convert = 64,
|
|
136
|
+
/** Japanese: カタカナ/ひらがな/ローマ字 (katakana/hiragana/romaji). */
|
|
137
|
+
KanaMode = 65,
|
|
138
|
+
/**
|
|
139
|
+
* Korean: HangulMode 한/영 (han/yeong).
|
|
140
|
+
* Japanese (Mac keyboard): かな (kana).
|
|
141
|
+
* */
|
|
142
|
+
Lang1 = 66,
|
|
143
|
+
/**
|
|
144
|
+
* Korean: Hanja 한자 (hanja).
|
|
145
|
+
* Japanese (Mac keyboard): 英数 (eisu).
|
|
146
|
+
*/
|
|
147
|
+
Lang2 = 67,
|
|
148
|
+
/** Japanese (word-processing keyboard): Katakana. */
|
|
149
|
+
Lang3 = 68,
|
|
150
|
+
/** Japanese (word-processing keyboard): Hiragana. */
|
|
151
|
+
Lang4 = 69,
|
|
152
|
+
/** Japanese (word-processing keyboard): Zenkaku/Hankaku. */
|
|
153
|
+
Lang5 = 70,
|
|
154
|
+
/** Japanese: 無変換 (muhenkan). */
|
|
155
|
+
NonConvert = 71,
|
|
156
|
+
/** ⌦. The forward delete key. Note that on Apple keyboards, the key labelled Delete on the main part of the keyboard should be encoded as "Backspace". */
|
|
157
|
+
Delete = 72,
|
|
158
|
+
/** Page Down, End or ↘. */
|
|
159
|
+
End = 73,
|
|
160
|
+
/** Help. Not present on standard PC keyboards. */
|
|
161
|
+
Help = 74,
|
|
162
|
+
/** Home or ↖. */
|
|
163
|
+
Home = 75,
|
|
164
|
+
/** Insert or Ins. Not present on Apple keyboards. */
|
|
165
|
+
Insert = 76,
|
|
166
|
+
/** Page Down, PgDn or ⇟. */
|
|
167
|
+
PageDown = 77,
|
|
168
|
+
/** Page Up, PgUp or ⇞. */
|
|
169
|
+
PageUp = 78,
|
|
170
|
+
/** ↓ */
|
|
171
|
+
ArrowDown = 79,
|
|
172
|
+
/** ← */
|
|
173
|
+
ArrowLeft = 80,
|
|
174
|
+
/** → */
|
|
175
|
+
ArrowRight = 81,
|
|
176
|
+
/** ↑ */
|
|
177
|
+
ArrowUp = 82,
|
|
178
|
+
/** On the Mac, the "NumLock" code should be used for the numpad Clear key. */
|
|
179
|
+
NumLock = 83,
|
|
180
|
+
/**
|
|
181
|
+
* 0 Ins on a keyboard.
|
|
182
|
+
* 0 on a phone or remote control.
|
|
183
|
+
* */
|
|
184
|
+
Numpad0 = 84,
|
|
185
|
+
/**
|
|
186
|
+
* 1 End on a keyboard.
|
|
187
|
+
* 1 or 1 QZ on a phone or remote control.
|
|
188
|
+
*/
|
|
189
|
+
Numpad1 = 85,
|
|
190
|
+
/**
|
|
191
|
+
* 2 ↓ on a keyboard.
|
|
192
|
+
* 2 ABC on a phone or remote control.
|
|
193
|
+
*/
|
|
194
|
+
Numpad2 = 86,
|
|
195
|
+
/**
|
|
196
|
+
* 3 PgDn on a keyboard.
|
|
197
|
+
* 3 DEF on a phone or remote control.
|
|
198
|
+
*/
|
|
199
|
+
Numpad3 = 87,
|
|
200
|
+
/**
|
|
201
|
+
* 4 ← on a keyboard.
|
|
202
|
+
* 4 GHI on a phone or remote control.
|
|
203
|
+
*/
|
|
204
|
+
Numpad4 = 88,
|
|
205
|
+
/**
|
|
206
|
+
* 5 on a keyboard.
|
|
207
|
+
* 5 JKL on a phone or remote control.
|
|
208
|
+
*/
|
|
209
|
+
Numpad5 = 89,
|
|
210
|
+
/**
|
|
211
|
+
* 6 → on a keyboard.
|
|
212
|
+
* 6 MNO on a phone or remote control.
|
|
213
|
+
*/
|
|
214
|
+
Numpad6 = 90,
|
|
215
|
+
/**
|
|
216
|
+
* 7 Home on a keyboard.
|
|
217
|
+
* 7 PQRS or 7 PRS on a phone or remote control.
|
|
218
|
+
*/
|
|
219
|
+
Numpad7 = 91,
|
|
220
|
+
/**
|
|
221
|
+
* 8 ↑ on a keyboard.
|
|
222
|
+
* 8 TUV on a phone or remote control.
|
|
223
|
+
*/
|
|
224
|
+
Numpad8 = 92,
|
|
225
|
+
/**
|
|
226
|
+
* 9 PgUp on a keyboard.
|
|
227
|
+
* 9 WXYZ or 9 WXY on a phone or remote control.
|
|
228
|
+
*/
|
|
229
|
+
Numpad9 = 93,
|
|
230
|
+
/** + */
|
|
231
|
+
NumpadAdd = 94,
|
|
232
|
+
/** Found on the Microsoft Natural Keyboard. */
|
|
233
|
+
NumpadBackspace = 95,
|
|
234
|
+
/** C or AC (All Clear). Also for use with numpads that have a Clear key that is separate from the NumLock key. On the Mac, the numpad Clear key should always be encoded as "NumLock". */
|
|
235
|
+
NumpadClear = 96,
|
|
236
|
+
/** CE (Clear Entry) */
|
|
237
|
+
NumpadClearEntry = 97,
|
|
238
|
+
/** , (thousands separator). For locales where the thousands separator is a "." (e.g., Brazil), this key may generate a .. */
|
|
239
|
+
NumpadComma = 98,
|
|
240
|
+
/** . Del. For locales where the decimal separator is "," (e.g., Brazil), this key may generate a ,. */
|
|
241
|
+
NumpadDecimal = 99,
|
|
242
|
+
/** / */
|
|
243
|
+
NumpadDivide = 100,
|
|
244
|
+
/** Numpad Enter */
|
|
245
|
+
NumpadEnter = 101,
|
|
246
|
+
/** = */
|
|
247
|
+
NumpadEqual = 102,
|
|
248
|
+
/** # on a phone or remote control device. This key is typically found below the 9 key and to the right of the 0 key. */
|
|
249
|
+
NumpadHash = 103,
|
|
250
|
+
/** M+ Add current entry to the value stored in memory. */
|
|
251
|
+
NumpadMemoryAdd = 104,
|
|
252
|
+
/** MC Clear the value stored in memory. */
|
|
253
|
+
NumpadMemoryClear = 105,
|
|
254
|
+
/** MR Replace the current entry with the value stored in memory. */
|
|
255
|
+
NumpadMemoryRecall = 106,
|
|
256
|
+
/** MS Replace the value stored in memory with the current entry. */
|
|
257
|
+
NumpadMemoryStore = 107,
|
|
258
|
+
/** M- Subtract current entry from the value stored in memory. */
|
|
259
|
+
NumpadMemorySubtract = 108,
|
|
260
|
+
/**
|
|
261
|
+
* * on a keyboard. For use with numpads that provide mathematical operations (+, -, * and /).
|
|
262
|
+
* Use "NumpadStar" for the * key on phones and remote controls.
|
|
263
|
+
*/
|
|
264
|
+
NumpadMultiply = 109,
|
|
265
|
+
/** ( Found on the Microsoft Natural Keyboard. */
|
|
266
|
+
NumpadParenLeft = 110,
|
|
267
|
+
/** ) Found on the Microsoft Natural Keyboard. */
|
|
268
|
+
NumpadParenRight = 111,
|
|
269
|
+
/**
|
|
270
|
+
* * on a phone or remote control device. This key is typically found below the 7 key and to the left of the 0 key.
|
|
271
|
+
* Use "NumpadMultiply" for the * key on numeric keypads.
|
|
272
|
+
*/
|
|
273
|
+
NumpadStar = 112,
|
|
274
|
+
/** - */
|
|
275
|
+
NumpadSubtract = 113,
|
|
276
|
+
/** Esc or ⎋. */
|
|
277
|
+
Escape = 114,
|
|
278
|
+
/** F1 */
|
|
279
|
+
F1 = 115,
|
|
280
|
+
/** F2 */
|
|
281
|
+
F2 = 116,
|
|
282
|
+
/** F3 */
|
|
283
|
+
F3 = 117,
|
|
284
|
+
/** F4 */
|
|
285
|
+
F4 = 118,
|
|
286
|
+
/** F5 */
|
|
287
|
+
F5 = 119,
|
|
288
|
+
/** F6 */
|
|
289
|
+
F6 = 120,
|
|
290
|
+
/** F7 */
|
|
291
|
+
F7 = 121,
|
|
292
|
+
/** F8 */
|
|
293
|
+
F8 = 122,
|
|
294
|
+
/** F9 */
|
|
295
|
+
F9 = 123,
|
|
296
|
+
/** F10 */
|
|
297
|
+
F10 = 124,
|
|
298
|
+
/** F11 */
|
|
299
|
+
F11 = 125,
|
|
300
|
+
/** F12 */
|
|
301
|
+
F12 = 126,
|
|
302
|
+
/** F13 */
|
|
303
|
+
F13 = 127,
|
|
304
|
+
/** F14 */
|
|
305
|
+
F14 = 128,
|
|
306
|
+
/** F15 */
|
|
307
|
+
F15 = 129,
|
|
308
|
+
/** Fn This is typically a hardware key that does not generate a separate code. Most keyboards do not place this key in the function section, but it is included here to keep it with related keys. */
|
|
309
|
+
Fn = 130,
|
|
310
|
+
/** FLock or FnLock. Function Lock key. Found on the Microsoft Natural Keyboard. */
|
|
311
|
+
FnLock = 131,
|
|
312
|
+
/** PrtScr SysRq or Print Screen. */
|
|
313
|
+
PrintScreen = 132,
|
|
314
|
+
/** Scroll Lock */
|
|
315
|
+
ScrollLock = 133,
|
|
316
|
+
/** Pause Break */
|
|
317
|
+
Pause = 134,
|
|
318
|
+
/** Some laptops place this key to the left of the ↑ key. */
|
|
319
|
+
BrowserBack = 135,
|
|
320
|
+
/** Browser Favorites */
|
|
321
|
+
BrowserFavorites = 136,
|
|
322
|
+
/** Some laptops place this key to the right of the ↑ key. */
|
|
323
|
+
BrowserForward = 137,
|
|
324
|
+
/** Browser Home */
|
|
325
|
+
BrowserHome = 138,
|
|
326
|
+
/** Browser Refresh */
|
|
327
|
+
BrowserRefresh = 139,
|
|
328
|
+
/** Browser Search */
|
|
329
|
+
BrowserSearch = 140,
|
|
330
|
+
/** Browser Stop */
|
|
331
|
+
BrowserStop = 141,
|
|
332
|
+
/** Eject or ⏏. This key is placed in the function section on some Apple keyboards. */
|
|
333
|
+
Eject = 142,
|
|
334
|
+
/** Sometimes labelled My Computer on the keyboard. */
|
|
335
|
+
LaunchApp1 = 143,
|
|
336
|
+
/** Sometimes labelled Calculator on the keyboard. */
|
|
337
|
+
LaunchApp2 = 144,
|
|
338
|
+
/** Launch Mail */
|
|
339
|
+
LaunchMail = 145,
|
|
340
|
+
/** Media Play/Pause */
|
|
341
|
+
MediaPlayPause = 146,
|
|
342
|
+
/** Media Select */
|
|
343
|
+
MediaSelect = 147,
|
|
344
|
+
/** Media Stop */
|
|
345
|
+
MediaStop = 148,
|
|
346
|
+
/** Media Track Next */
|
|
347
|
+
MediaTrackNext = 149,
|
|
348
|
+
/** Media Track Previous */
|
|
349
|
+
MediaTrackPrevious = 150,
|
|
350
|
+
/** This key is placed in the function section on some Apple keyboards, replacing the Eject key. */
|
|
351
|
+
Power = 151,
|
|
352
|
+
/** Sleep */
|
|
353
|
+
Sleep = 152,
|
|
354
|
+
/** Audio Volume Down */
|
|
355
|
+
AudioVolumeDown = 153,
|
|
356
|
+
/** Audio Volume Mute */
|
|
357
|
+
AudioVolumeMute = 154,
|
|
358
|
+
/** Audio Volume Up */
|
|
359
|
+
AudioVolumeUp = 155,
|
|
360
|
+
/** Wake Up */
|
|
361
|
+
WakeUp = 156,
|
|
362
|
+
/** Hyper */
|
|
363
|
+
Hyper = 157,
|
|
364
|
+
/** Super */
|
|
365
|
+
Super = 158,
|
|
366
|
+
/** Turbo */
|
|
367
|
+
Turbo = 159,
|
|
368
|
+
/** Abort */
|
|
369
|
+
Abort = 160,
|
|
370
|
+
/** Resume */
|
|
371
|
+
Resume = 161,
|
|
372
|
+
/** Suspend */
|
|
373
|
+
Suspend = 162,
|
|
374
|
+
/** Found on Sun’s USB keyboard. */
|
|
375
|
+
Again = 163,
|
|
376
|
+
/** Found on Sun’s USB keyboard. */
|
|
377
|
+
Copy = 164,
|
|
378
|
+
/** Found on Sun’s USB keyboard. */
|
|
379
|
+
Cut = 165,
|
|
380
|
+
/** Found on Sun’s USB keyboard. */
|
|
381
|
+
Find = 166,
|
|
382
|
+
/** Found on Sun’s USB keyboard. */
|
|
383
|
+
Open = 167,
|
|
384
|
+
/** Found on Sun’s USB keyboard. */
|
|
385
|
+
Paste = 168,
|
|
386
|
+
/** Found on Sun’s USB keyboard. */
|
|
387
|
+
Props = 169,
|
|
388
|
+
/** Found on Sun’s USB keyboard. */
|
|
389
|
+
Select = 170,
|
|
390
|
+
/** Found on Sun’s USB keyboard. */
|
|
391
|
+
Undo = 171,
|
|
392
|
+
/** Use for dedicated ひらがな key found on some Japanese word processing keyboards. */
|
|
393
|
+
Hiragana = 172,
|
|
394
|
+
/** Use for dedicated カタカナ key found on some Japanese word processing keyboards. */
|
|
395
|
+
Katakana = 173,
|
|
396
|
+
/** This value code should be used when no other value given in this specification is appropriate. */
|
|
397
|
+
Unidentified = 174
|
|
398
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines values that specify the buttons on a pointer device.
|
|
3
|
+
* Refer to the W3C standards:
|
|
4
|
+
* (https://www.w3.org/TR/uievents/#dom-mouseevent-button)
|
|
5
|
+
* (https://www.w3.org/TR/uievents/#dom-mouseevent-buttons)
|
|
6
|
+
* Refer to Microsoft's documentation.(https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.mousebutton?view=windowsdesktop-6.0)
|
|
7
|
+
*/
|
|
8
|
+
export declare enum PointerButton {
|
|
9
|
+
/** No button. */
|
|
10
|
+
None = 0,
|
|
11
|
+
/** Indicate the primary pointer of the device (in general, the left button or the only button on single-button devices, used to activate a user interface control or select text) or the un-initialized value. */
|
|
12
|
+
Primary = 1,
|
|
13
|
+
/** Indicate the secondary pointer (in general, the right button, often used to display a context menu). */
|
|
14
|
+
Secondary = 2,
|
|
15
|
+
/** Indicate the auxiliary pointer (in general, the middle button, often combined with a mouse wheel). */
|
|
16
|
+
Auxiliary = 4,
|
|
17
|
+
/** Indicate the X1 (back) pointer. */
|
|
18
|
+
XButton1 = 8,
|
|
19
|
+
/** Indicate the X2 (forward) pointer. */
|
|
20
|
+
XButton2 = 16,
|
|
21
|
+
/** Indicate the X3 pointer. */
|
|
22
|
+
XButton3 = 32,
|
|
23
|
+
/** Indicate the X4 pointer. */
|
|
24
|
+
XButton4 = 64,
|
|
25
|
+
/** Indicate the X5 pointer. */
|
|
26
|
+
XButton5 = 128,
|
|
27
|
+
/** Indicate the X6 pointer. */
|
|
28
|
+
XButton6 = 256,
|
|
29
|
+
/** Indicate the X7 pointer. */
|
|
30
|
+
XButton7 = 512,
|
|
31
|
+
/** Indicate the X8 pointer. */
|
|
32
|
+
XButton8 = 1024
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The current phase of the pointer.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PointerPhase {
|
|
5
|
+
/** A Pointer pressed on the screen. */
|
|
6
|
+
Down = 0,
|
|
7
|
+
/** A pointer moved on the screen. */
|
|
8
|
+
Move = 1,
|
|
9
|
+
/** A Pointer pressed on the screen but hasn't moved. */
|
|
10
|
+
Stationary = 2,
|
|
11
|
+
/** A pointer was lifted from the screen. */
|
|
12
|
+
Up = 3,
|
|
13
|
+
/** The system cancelled tracking for the pointer. */
|
|
14
|
+
Leave = 4
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IInput {
|
|
2
|
+
/**
|
|
3
|
+
* Handler function updated every frame.
|
|
4
|
+
*/
|
|
5
|
+
_update(frameCount?: number): void;
|
|
6
|
+
/**
|
|
7
|
+
* Function called when the engine is destroyed.
|
|
8
|
+
*/
|
|
9
|
+
_destroy(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Function called when focused.
|
|
12
|
+
*/
|
|
13
|
+
_onFocus(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Function called when focus is lost.
|
|
16
|
+
*/
|
|
17
|
+
_onBlur(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Vector2 } from "@galacean/engine-math";
|
|
2
|
+
import { PointerButton } from "../enums/PointerButton";
|
|
3
|
+
import { PointerPhase } from "../enums/PointerPhase";
|
|
4
|
+
/**
|
|
5
|
+
* Pointer.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Pointer {
|
|
8
|
+
/**
|
|
9
|
+
* Unique id.
|
|
10
|
+
* @remarks Start from 0.
|
|
11
|
+
*/
|
|
12
|
+
readonly id: number;
|
|
13
|
+
/** The phase of pointer. */
|
|
14
|
+
phase: PointerPhase;
|
|
15
|
+
/** The button that triggers the pointer event. */
|
|
16
|
+
button: PointerButton;
|
|
17
|
+
/** The currently pressed buttons for this pointer. */
|
|
18
|
+
pressedButtons: PointerButton;
|
|
19
|
+
/** The position of the pointer in screen space pixel coordinates. */
|
|
20
|
+
position: Vector2;
|
|
21
|
+
/** The change of the pointer. */
|
|
22
|
+
deltaPosition: Vector2;
|
|
23
|
+
private _currentPressedEntity;
|
|
24
|
+
private _currentEnteredEntity;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Color, SphericalHarmonics3 } from "@galacean/engine-math";
|
|
2
|
+
import { TextureCube } from "../texture";
|
|
3
|
+
import { DiffuseMode } from "./enums/DiffuseMode";
|
|
4
|
+
/**
|
|
5
|
+
* Ambient light.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AmbientLight {
|
|
8
|
+
private static _shMacro;
|
|
9
|
+
private static _specularMacro;
|
|
10
|
+
private static _decodeRGBMMacro;
|
|
11
|
+
private static _diffuseColorProperty;
|
|
12
|
+
private static _diffuseSHProperty;
|
|
13
|
+
private static _diffuseIntensityProperty;
|
|
14
|
+
private static _specularTextureProperty;
|
|
15
|
+
private static _specularIntensityProperty;
|
|
16
|
+
private static _mipLevelProperty;
|
|
17
|
+
private _diffuseSphericalHarmonics;
|
|
18
|
+
private _diffuseSolidColor;
|
|
19
|
+
private _diffuseIntensity;
|
|
20
|
+
private _specularTexture;
|
|
21
|
+
private _specularIntensity;
|
|
22
|
+
private _diffuseMode;
|
|
23
|
+
private _shArray;
|
|
24
|
+
private _scenes;
|
|
25
|
+
private _specularTextureDecodeRGBM;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to decode from specularTexture with RGBM format.
|
|
28
|
+
*/
|
|
29
|
+
get specularTextureDecodeRGBM(): boolean;
|
|
30
|
+
set specularTextureDecodeRGBM(value: boolean);
|
|
31
|
+
/**
|
|
32
|
+
* Diffuse mode of ambient light.
|
|
33
|
+
*/
|
|
34
|
+
get diffuseMode(): DiffuseMode;
|
|
35
|
+
set diffuseMode(value: DiffuseMode);
|
|
36
|
+
/**
|
|
37
|
+
* Diffuse reflection solid color.
|
|
38
|
+
* @remarks Effective when diffuse reflection mode is `DiffuseMode.SolidColor`.
|
|
39
|
+
*/
|
|
40
|
+
get diffuseSolidColor(): Color;
|
|
41
|
+
set diffuseSolidColor(value: Color);
|
|
42
|
+
/**
|
|
43
|
+
* Diffuse reflection spherical harmonics 3.
|
|
44
|
+
* @remarks Effective when diffuse reflection mode is `DiffuseMode.SphericalHarmonics`.
|
|
45
|
+
*/
|
|
46
|
+
get diffuseSphericalHarmonics(): SphericalHarmonics3;
|
|
47
|
+
set diffuseSphericalHarmonics(value: SphericalHarmonics3);
|
|
48
|
+
/**
|
|
49
|
+
* Diffuse reflection intensity.
|
|
50
|
+
*/
|
|
51
|
+
get diffuseIntensity(): number;
|
|
52
|
+
set diffuseIntensity(value: number);
|
|
53
|
+
/**
|
|
54
|
+
* Specular reflection texture.
|
|
55
|
+
*/
|
|
56
|
+
get specularTexture(): TextureCube;
|
|
57
|
+
set specularTexture(value: TextureCube);
|
|
58
|
+
/**
|
|
59
|
+
* Specular reflection intensity.
|
|
60
|
+
*/
|
|
61
|
+
get specularIntensity(): number;
|
|
62
|
+
set specularIntensity(value: number);
|
|
63
|
+
private _setDiffuseMode;
|
|
64
|
+
private _setSpecularTexture;
|
|
65
|
+
private _setSpecularTextureDecodeRGBM;
|
|
66
|
+
private _preComputeSH;
|
|
67
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
+
import { Light } from "./Light";
|
|
3
|
+
/**
|
|
4
|
+
* Directional light.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DirectLight extends Light {
|
|
7
|
+
private static _cullingMaskProperty;
|
|
8
|
+
private static _colorProperty;
|
|
9
|
+
private static _directionProperty;
|
|
10
|
+
private static _combinedData;
|
|
11
|
+
private _forward;
|
|
12
|
+
private _reverseDirection;
|
|
13
|
+
/**
|
|
14
|
+
* Get direction.
|
|
15
|
+
*/
|
|
16
|
+
get direction(): Vector3;
|
|
17
|
+
/**
|
|
18
|
+
* Get the opposite direction of the directional light direction.
|
|
19
|
+
*/
|
|
20
|
+
get reverseDirection(): Vector3;
|
|
21
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Color, Matrix } from "@galacean/engine-math";
|
|
2
|
+
import { Component } from "../Component";
|
|
3
|
+
import { Layer } from "../Layer";
|
|
4
|
+
import { ShadowType } from "../shadow";
|
|
5
|
+
/**
|
|
6
|
+
* Light base class.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class Light extends Component {
|
|
9
|
+
/**
|
|
10
|
+
* Each type of light source is at most 10, beyond which it will not take effect.
|
|
11
|
+
* */
|
|
12
|
+
protected static _maxLight: number;
|
|
13
|
+
/** Light Intensity */
|
|
14
|
+
intensity: number;
|
|
15
|
+
/**
|
|
16
|
+
* Culling mask - which layers the light affect.
|
|
17
|
+
* @remarks Support bit manipulation, corresponding to `Layer`.
|
|
18
|
+
*/
|
|
19
|
+
cullingMask: Layer;
|
|
20
|
+
/** How this light casts shadows. */
|
|
21
|
+
shadowType: ShadowType;
|
|
22
|
+
/** Shadow bias.*/
|
|
23
|
+
shadowBias: number;
|
|
24
|
+
/** Shadow mapping normal-based bias. */
|
|
25
|
+
shadowNormalBias: number;
|
|
26
|
+
/** Near plane value to use for shadow frustums. */
|
|
27
|
+
shadowNearPlane: number;
|
|
28
|
+
/** Shadow intensity, the larger the value, the clearer and darker the shadow. */
|
|
29
|
+
shadowStrength: number;
|
|
30
|
+
private _color;
|
|
31
|
+
private _viewMat;
|
|
32
|
+
private _inverseViewMat;
|
|
33
|
+
private _lightColor;
|
|
34
|
+
/**
|
|
35
|
+
* Light Color.
|
|
36
|
+
*/
|
|
37
|
+
get color(): Color;
|
|
38
|
+
set color(value: Color);
|
|
39
|
+
/**
|
|
40
|
+
* View matrix.
|
|
41
|
+
*/
|
|
42
|
+
get viewMatrix(): Matrix;
|
|
43
|
+
/**
|
|
44
|
+
* Inverse view matrix.
|
|
45
|
+
*/
|
|
46
|
+
get inverseViewMatrix(): Matrix;
|
|
47
|
+
protected _getLightColor(): Color;
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
+
import { Light } from "./Light";
|
|
3
|
+
/**
|
|
4
|
+
* Point light.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PointLight extends Light {
|
|
7
|
+
private static _cullingMaskProperty;
|
|
8
|
+
private static _colorProperty;
|
|
9
|
+
private static _positionProperty;
|
|
10
|
+
private static _distanceProperty;
|
|
11
|
+
private static _combinedData;
|
|
12
|
+
/** Defines a distance cutoff at which the light's intensity must be considered zero. */
|
|
13
|
+
distance: number;
|
|
14
|
+
/**
|
|
15
|
+
* Get light position.
|
|
16
|
+
*/
|
|
17
|
+
get position(): Vector3;
|
|
18
|
+
}
|