@galacean/engine-core 0.9.0-beta.80

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 (314) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/main.js +24255 -0
  4. package/dist/main.js.map +1 -0
  5. package/dist/miniprogram.js +24255 -0
  6. package/dist/module.js +24138 -0
  7. package/dist/module.js.map +1 -0
  8. package/package.json +26 -0
  9. package/types/2d/assembler/IAssembler.d.ts +1 -0
  10. package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
  11. package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
  12. package/types/2d/assembler/TiledSpriteAssembler.d.ts +1 -0
  13. package/types/2d/atlas/FontAtlas.d.ts +1 -0
  14. package/types/2d/atlas/SpriteAtlas.d.ts +36 -0
  15. package/types/2d/atlas/types.d.ts +53 -0
  16. package/types/2d/data/RenderData2D.d.ts +1 -0
  17. package/types/2d/data/VertexData2D.d.ts +1 -0
  18. package/types/2d/enums/FontStyle.d.ts +11 -0
  19. package/types/2d/enums/SpriteDrawMode.d.ts +9 -0
  20. package/types/2d/enums/SpriteMaskInteraction.d.ts +11 -0
  21. package/types/2d/enums/SpriteMaskLayer.d.ts +71 -0
  22. package/types/2d/enums/SpriteModifyFlags.d.ts +13 -0
  23. package/types/2d/enums/SpriteTileMode.d.ts +11 -0
  24. package/types/2d/enums/TextAlignment.d.ts +22 -0
  25. package/types/2d/enums/TextOverflow.d.ts +9 -0
  26. package/types/2d/index.d.ts +9 -0
  27. package/types/2d/sprite/Sprite.d.ts +97 -0
  28. package/types/2d/sprite/SpriteMask.d.ts +63 -0
  29. package/types/2d/sprite/SpriteRenderer.d.ts +77 -0
  30. package/types/2d/sprite/index.d.ts +3 -0
  31. package/types/2d/text/CharInfo.d.ts +1 -0
  32. package/types/2d/text/CharRenderData.d.ts +1 -0
  33. package/types/2d/text/CharRenderDataPool.d.ts +1 -0
  34. package/types/2d/text/Font.d.ts +26 -0
  35. package/types/2d/text/SubFont.d.ts +1 -0
  36. package/types/2d/text/TextRenderer.d.ts +123 -0
  37. package/types/2d/text/TextUtils.d.ts +1 -0
  38. package/types/2d/text/index.d.ts +2 -0
  39. package/types/Background.d.ts +43 -0
  40. package/types/BoolUpdateFlag.d.ts +12 -0
  41. package/types/Camera.d.ts +206 -0
  42. package/types/Canvas.d.ts +9 -0
  43. package/types/Component.d.ts +32 -0
  44. package/types/ComponentsDependencies.d.ts +17 -0
  45. package/types/ComponentsManager.d.ts +46 -0
  46. package/types/DisorderedArray.d.ts +18 -0
  47. package/types/Engine.d.ts +140 -0
  48. package/types/EngineSettings.d.ts +8 -0
  49. package/types/Entity.d.ts +151 -0
  50. package/types/Layer.d.ts +73 -0
  51. package/types/Platform.d.ts +15 -0
  52. package/types/RenderPipeline/Basic2DBatcher.d.ts +20 -0
  53. package/types/RenderPipeline/BasicRenderPipeline.d.ts +66 -0
  54. package/types/RenderPipeline/ClassPool.d.ts +17 -0
  55. package/types/RenderPipeline/MeshRenderData.d.ts +15 -0
  56. package/types/RenderPipeline/MeshRenderElement.d.ts +17 -0
  57. package/types/RenderPipeline/RenderContext.d.ts +1 -0
  58. package/types/RenderPipeline/RenderData.d.ts +7 -0
  59. package/types/RenderPipeline/RenderElement.d.ts +11 -0
  60. package/types/RenderPipeline/RenderPass.d.ts +55 -0
  61. package/types/RenderPipeline/RenderQueue.d.ts +38 -0
  62. package/types/RenderPipeline/SpriteBatcher.d.ts +1 -0
  63. package/types/RenderPipeline/SpriteElement.d.ts +13 -0
  64. package/types/RenderPipeline/SpriteMaskBatcher.d.ts +10 -0
  65. package/types/RenderPipeline/SpriteMaskElement.d.ts +10 -0
  66. package/types/RenderPipeline/SpriteMaskManager.d.ts +1 -0
  67. package/types/RenderPipeline/SpriteMaskRenderData.d.ts +10 -0
  68. package/types/RenderPipeline/SpriteRenderData.d.ts +12 -0
  69. package/types/RenderPipeline/TextRenderData.d.ts +6 -0
  70. package/types/RenderPipeline/TextRenderElement.d.ts +6 -0
  71. package/types/RenderPipeline/enums/PipelineStage.d.ts +9 -0
  72. package/types/RenderPipeline/index.d.ts +4 -0
  73. package/types/Renderer.d.ts +119 -0
  74. package/types/Scene.d.ts +142 -0
  75. package/types/SceneManager.d.ts +28 -0
  76. package/types/Script.d.ts +118 -0
  77. package/types/SystemInfo.d.ts +14 -0
  78. package/types/Transform.d.ts +258 -0
  79. package/types/UpdateFlag.d.ts +20 -0
  80. package/types/UpdateFlagManager.d.ts +1 -0
  81. package/types/Utils.d.ts +3 -0
  82. package/types/VirtualCamera.d.ts +1 -0
  83. package/types/animation/AnimationClip.d.ts +58 -0
  84. package/types/animation/AnimationClipCurveBinding.d.ts +21 -0
  85. package/types/animation/AnimationEvent.d.ts +11 -0
  86. package/types/animation/Animator.d.ts +86 -0
  87. package/types/animation/AnimatorController.d.ts +32 -0
  88. package/types/animation/AnimatorControllerLayer.d.ts +18 -0
  89. package/types/animation/AnimatorState.d.ts +60 -0
  90. package/types/animation/AnimatorStateMachine.d.ts +37 -0
  91. package/types/animation/AnimatorTransition.d.ts +14 -0
  92. package/types/animation/Keyframe.d.ts +19 -0
  93. package/types/animation/StateMachineScript.d.ts +32 -0
  94. package/types/animation/animationCurve/AnimationArrayCurve.d.ts +7 -0
  95. package/types/animation/animationCurve/AnimationBoolCurve.d.ts +7 -0
  96. package/types/animation/animationCurve/AnimationColorCurve.d.ts +8 -0
  97. package/types/animation/animationCurve/AnimationCurve.d.ts +39 -0
  98. package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +12 -0
  99. package/types/animation/animationCurve/AnimationFloatCurve.d.ts +7 -0
  100. package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +8 -0
  101. package/types/animation/animationCurve/AnimationVector2Curve.d.ts +8 -0
  102. package/types/animation/animationCurve/AnimationVector3Curve.d.ts +8 -0
  103. package/types/animation/animationCurve/AnimationVector4Curve.d.ts +8 -0
  104. package/types/animation/animationCurve/index.d.ts +10 -0
  105. package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +1 -0
  106. package/types/animation/enums/AnimatorConditionMode.d.ts +8 -0
  107. package/types/animation/enums/AnimatorCullingMode.d.ts +9 -0
  108. package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +4 -0
  109. package/types/animation/enums/AnimatorStatePlayState.d.ts +1 -0
  110. package/types/animation/enums/InterpolationType.d.ts +13 -0
  111. package/types/animation/enums/LayerState.d.ts +13 -0
  112. package/types/animation/enums/PlayState.d.ts +13 -0
  113. package/types/animation/enums/WrapMode.d.ts +9 -0
  114. package/types/animation/index.d.ts +21 -0
  115. package/types/animation/internal/AnimationEventHandler.d.ts +1 -0
  116. package/types/animation/internal/AnimatorLayerData.d.ts +1 -0
  117. package/types/animation/internal/AnimatorStateData.d.ts +1 -0
  118. package/types/animation/internal/AnimatorStatePlayData.d.ts +1 -0
  119. package/types/animation/internal/AnimatorTempValue.d.ts +1 -0
  120. package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +5 -0
  121. package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +1 -0
  122. package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +1 -0
  123. package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +1 -0
  124. package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +1 -0
  125. package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +1 -0
  126. package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +1 -0
  127. package/types/asset/AssetPromise.d.ts +56 -0
  128. package/types/asset/AssetType.d.ts +52 -0
  129. package/types/asset/ContentRestorer.d.ts +17 -0
  130. package/types/asset/GraphicsResource.d.ts +9 -0
  131. package/types/asset/IRefObject.d.ts +2 -0
  132. package/types/asset/IReferable.d.ts +2 -0
  133. package/types/asset/LoadItem.d.ts +33 -0
  134. package/types/asset/Loader.d.ts +30 -0
  135. package/types/asset/RefObject.d.ts +27 -0
  136. package/types/asset/ReferResource.d.ts +27 -0
  137. package/types/asset/ResourceManager.d.ts +95 -0
  138. package/types/asset/request.d.ts +25 -0
  139. package/types/base/Constant.d.ts +110 -0
  140. package/types/base/EngineObject.d.ts +24 -0
  141. package/types/base/Event.d.ts +24 -0
  142. package/types/base/EventDispatcher.d.ts +79 -0
  143. package/types/base/Logger.d.ts +11 -0
  144. package/types/base/StaticInterfaceImplement.d.ts +5 -0
  145. package/types/base/Time.d.ts +41 -0
  146. package/types/base/Util.d.ts +14 -0
  147. package/types/base/index.d.ts +7 -0
  148. package/types/clone/CloneManager.d.ts +31 -0
  149. package/types/clone/ComponentCloner.d.ts +14 -0
  150. package/types/clone/enums/CloneMode.d.ts +13 -0
  151. package/types/enums/BackgroundMode.d.ts +9 -0
  152. package/types/enums/BackgroundTextureFillMode.d.ts +8 -0
  153. package/types/enums/CameraClearFlags.d.ts +13 -0
  154. package/types/enums/ColorSpace.d.ts +9 -0
  155. package/types/enums/FogMode.d.ts +13 -0
  156. package/types/env-probe/CubeProbe.d.ts +34 -0
  157. package/types/env-probe/Probe.d.ts +58 -0
  158. package/types/env-probe/index.d.ts +2 -0
  159. package/types/graphic/Buffer.d.ts +105 -0
  160. package/types/graphic/BufferUtil.d.ts +11 -0
  161. package/types/graphic/IndexBufferBinding.d.ts +21 -0
  162. package/types/graphic/Mesh.d.ts +70 -0
  163. package/types/graphic/SubMesh.d.ts +19 -0
  164. package/types/graphic/VertexBufferBinding.d.ts +20 -0
  165. package/types/graphic/VertexElement.d.ts +44 -0
  166. package/types/graphic/enums/BufferBindFlag.d.ts +9 -0
  167. package/types/graphic/enums/BufferUsage.d.ts +11 -0
  168. package/types/graphic/enums/IndexFormat.d.ts +11 -0
  169. package/types/graphic/enums/MeshTopology.d.ts +19 -0
  170. package/types/graphic/enums/SetDataOptions.d.ts +9 -0
  171. package/types/graphic/enums/VertexElementFormat.d.ts +37 -0
  172. package/types/graphic/index.d.ts +13 -0
  173. package/types/index.d.ts +53 -0
  174. package/types/input/InputManager.d.ts +67 -0
  175. package/types/input/enums/Keys.d.ts +398 -0
  176. package/types/input/enums/PointerButton.d.ts +33 -0
  177. package/types/input/enums/PointerPhase.d.ts +15 -0
  178. package/types/input/index.d.ts +5 -0
  179. package/types/input/interface/IInput.d.ts +18 -0
  180. package/types/input/keyboard/KeyboardManager.d.ts +1 -0
  181. package/types/input/pointer/Pointer.d.ts +25 -0
  182. package/types/input/pointer/PointerManager.d.ts +1 -0
  183. package/types/input/wheel/WheelManager.d.ts +1 -0
  184. package/types/lighting/AmbientLight.d.ts +67 -0
  185. package/types/lighting/DirectLight.d.ts +21 -0
  186. package/types/lighting/KHR_lights.d.ts +4 -0
  187. package/types/lighting/Light.d.ts +48 -0
  188. package/types/lighting/LightManager.d.ts +5 -0
  189. package/types/lighting/PointLight.d.ts +18 -0
  190. package/types/lighting/SpotLight.d.ts +36 -0
  191. package/types/lighting/enums/DiffuseMode.d.ts +13 -0
  192. package/types/lighting/index.d.ts +6 -0
  193. package/types/material/BaseMaterial.d.ts +88 -0
  194. package/types/material/BlinnPhongMaterial.d.ts +71 -0
  195. package/types/material/Material.d.ts +51 -0
  196. package/types/material/PBRBaseMaterial.d.ts +101 -0
  197. package/types/material/PBRMaterial.d.ts +36 -0
  198. package/types/material/PBRSpecularMaterial.d.ts +38 -0
  199. package/types/material/UnlitMaterial.d.ts +33 -0
  200. package/types/material/enums/BlendMode.d.ts +9 -0
  201. package/types/material/enums/RenderFace.d.ts +11 -0
  202. package/types/material/enums/TextureCoordinate.d.ts +13 -0
  203. package/types/material/index.d.ts +10 -0
  204. package/types/mesh/BlendShape.d.ts +39 -0
  205. package/types/mesh/BlendShapeFrame.d.ts +22 -0
  206. package/types/mesh/BlendShapeManager.d.ts +1 -0
  207. package/types/mesh/BufferMesh.d.ts +59 -0
  208. package/types/mesh/MeshRenderer.d.ts +30 -0
  209. package/types/mesh/ModelMesh.d.ts +226 -0
  210. package/types/mesh/PrimitiveMesh.d.ts +86 -0
  211. package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
  212. package/types/mesh/Skin.d.ts +16 -0
  213. package/types/mesh/SkinnedMeshRenderer.d.ts +62 -0
  214. package/types/mesh/enums/VertexAttribute.d.ts +33 -0
  215. package/types/mesh/index.d.ts +8 -0
  216. package/types/particle/ParticleRenderer.d.ts +235 -0
  217. package/types/particle/index.d.ts +1 -0
  218. package/types/physics/CharacterController.d.ts +53 -0
  219. package/types/physics/Collider.d.ts +29 -0
  220. package/types/physics/Collision.d.ts +4 -0
  221. package/types/physics/DynamicCollider.d.ts +161 -0
  222. package/types/physics/HitResult.d.ts +15 -0
  223. package/types/physics/PhysicsManager.d.ts +95 -0
  224. package/types/physics/PhysicsMaterial.d.ts +37 -0
  225. package/types/physics/StaticCollider.d.ts +7 -0
  226. package/types/physics/enums/ColliderShapeUpAxis.d.ts +11 -0
  227. package/types/physics/enums/ControllerCollisionFlag.d.ts +11 -0
  228. package/types/physics/enums/ControllerNonWalkableMode.d.ts +9 -0
  229. package/types/physics/enums/HingeJointFlag.d.ts +1 -0
  230. package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +13 -0
  231. package/types/physics/enums/index.d.ts +4 -0
  232. package/types/physics/index.d.ts +10 -0
  233. package/types/physics/joint/FixedJoint.d.ts +3 -0
  234. package/types/physics/joint/HingeJoint.d.ts +57 -0
  235. package/types/physics/joint/Joint.d.ts +58 -0
  236. package/types/physics/joint/JointLimits.d.ts +15 -0
  237. package/types/physics/joint/JointMotor.d.ts +13 -0
  238. package/types/physics/joint/SpringJoint.d.ts +42 -0
  239. package/types/physics/joint/index.d.ts +6 -0
  240. package/types/physics/shape/BoxColliderShape.d.ts +15 -0
  241. package/types/physics/shape/CapsuleColliderShape.d.ts +26 -0
  242. package/types/physics/shape/ColliderShape.d.ts +51 -0
  243. package/types/physics/shape/PlaneColliderShape.d.ts +7 -0
  244. package/types/physics/shape/SphereColliderShape.d.ts +13 -0
  245. package/types/physics/shape/index.d.ts +5 -0
  246. package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +6 -0
  247. package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +8 -0
  248. package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +20 -0
  249. package/types/renderingHardwareInterface/IPlatformTexture.d.ts +36 -0
  250. package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +37 -0
  251. package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +40 -0
  252. package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +41 -0
  253. package/types/renderingHardwareInterface/index.d.ts +6 -0
  254. package/types/shader/Shader.d.ts +72 -0
  255. package/types/shader/ShaderData.d.ts +350 -0
  256. package/types/shader/ShaderMacro.d.ts +10 -0
  257. package/types/shader/ShaderMacroCollection.d.ts +1 -0
  258. package/types/shader/ShaderPart.d.ts +41 -0
  259. package/types/shader/ShaderPass.d.ts +9 -0
  260. package/types/shader/ShaderPool.d.ts +1 -0
  261. package/types/shader/ShaderProgram.d.ts +1 -0
  262. package/types/shader/ShaderProgramPool.d.ts +1 -0
  263. package/types/shader/ShaderProperty.d.ts +13 -0
  264. package/types/shader/ShaderTagKey.d.ts +16 -0
  265. package/types/shader/ShaderUniform.d.ts +1 -0
  266. package/types/shader/ShaderUniformBlock.d.ts +1 -0
  267. package/types/shader/SubShader.d.ts +19 -0
  268. package/types/shader/enums/BlendFactor.d.ts +32 -0
  269. package/types/shader/enums/BlendOperation.d.ts +16 -0
  270. package/types/shader/enums/ColorWriteMask.d.ts +18 -0
  271. package/types/shader/enums/CompareFunction.d.ts +22 -0
  272. package/types/shader/enums/CullMode.d.ts +12 -0
  273. package/types/shader/enums/RenderQueueType.d.ts +11 -0
  274. package/types/shader/enums/ShaderDataGroup.d.ts +13 -0
  275. package/types/shader/enums/ShaderPropertyType.d.ts +27 -0
  276. package/types/shader/enums/StencilOperation.d.ts +22 -0
  277. package/types/shader/index.d.ts +12 -0
  278. package/types/shader/state/BlendState.d.ts +16 -0
  279. package/types/shader/state/DepthState.d.ts +14 -0
  280. package/types/shader/state/RasterState.d.ts +13 -0
  281. package/types/shader/state/RenderState.d.ts +20 -0
  282. package/types/shader/state/RenderTargetBlendState.d.ts +24 -0
  283. package/types/shader/state/StencilState.d.ts +34 -0
  284. package/types/shaderlib/ShaderFactory.d.ts +17 -0
  285. package/types/shaderlib/ShaderLib.d.ts +58 -0
  286. package/types/shaderlib/index.d.ts +1 -0
  287. package/types/shaderlib/pbr/index.d.ts +9 -0
  288. package/types/shaderlib/shadow/index.d.ts +8 -0
  289. package/types/shadow/CascadedShadowCasterPass.d.ts +47 -0
  290. package/types/shadow/ShadowSliceData.d.ts +1 -0
  291. package/types/shadow/ShadowUtils.d.ts +1 -0
  292. package/types/shadow/enum/ShadowCascadesMode.d.ts +11 -0
  293. package/types/shadow/enum/ShadowResolution.d.ts +13 -0
  294. package/types/shadow/enum/ShadowType.d.ts +13 -0
  295. package/types/shadow/index.d.ts +3 -0
  296. package/types/sky/Sky.d.ts +14 -0
  297. package/types/sky/SkyBoxMaterial.d.ts +25 -0
  298. package/types/sky/SkyProceduralMaterial.d.ts +72 -0
  299. package/types/sky/index.d.ts +2 -0
  300. package/types/texture/RenderTarget.d.ts +95 -0
  301. package/types/texture/Texture.d.ts +77 -0
  302. package/types/texture/Texture2D.d.ts +68 -0
  303. package/types/texture/Texture2DArray.d.ts +81 -0
  304. package/types/texture/TextureCube.d.ts +70 -0
  305. package/types/texture/enums/RenderBufferDepthFormat.d.ts +21 -0
  306. package/types/texture/enums/TextureCubeFace.d.ts +17 -0
  307. package/types/texture/enums/TextureDepthCompareFunction.d.ts +21 -0
  308. package/types/texture/enums/TextureFilterMode.d.ts +11 -0
  309. package/types/texture/enums/TextureFormat.d.ts +69 -0
  310. package/types/texture/enums/TextureWrapMode.d.ts +11 -0
  311. package/types/texture/index.d.ts +11 -0
  312. package/types/trail/TrailMaterial.d.ts +5 -0
  313. package/types/trail/TrailRenderer.d.ts +40 -0
  314. package/types/trail/index.d.ts +2 -0
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Buffer binding flag.
3
+ */
4
+ export declare enum BufferBindFlag {
5
+ /** Vertex buffer binding flag */
6
+ VertexBuffer = 0,
7
+ /** Index buffer binding flag */
8
+ IndexBuffer = 1
9
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Buffer usage.
3
+ */
4
+ export declare enum BufferUsage {
5
+ /** The buffer content are intended to be specified once, and used many times */
6
+ Static = 0,
7
+ /** The buffer contents are intended to be respecified repeatedly, and used many times */
8
+ Dynamic = 1,
9
+ /** The buffer contents are intended to be specified once, and used at most a few times */
10
+ Stream = 2
11
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Index format.
3
+ */
4
+ export declare enum IndexFormat {
5
+ /** 8 bit */
6
+ UInt8 = 0,
7
+ /** 16 bit */
8
+ UInt16 = 1,
9
+ /** 32 bit */
10
+ UInt32 = 2
11
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Mesh topology.
3
+ */
4
+ export declare enum MeshTopology {
5
+ /** Draws a single dot */
6
+ Points = 0,
7
+ /** Draws a line between a pair of vertices */
8
+ Lines = 1,
9
+ /** Draws a straight line to the next vertex, and connects the last vertex back to the first */
10
+ LineLoop = 2,
11
+ /** Draws a straight line to the next vertex. */
12
+ LineStrip = 3,
13
+ /** Draws a triangle for a group of three vertices */
14
+ Triangles = 4,
15
+ /** Draws a triangle strip */
16
+ TriangleStrip = 5,
17
+ /** Draws a triangle fan */
18
+ TriangleFan = 6
19
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Define update strategy when call bufferData/bufferSubData func.
3
+ */
4
+ export declare enum SetDataOptions {
5
+ /** Can overwrite part of used buffer data and ensure correct rendering */
6
+ None = 0,
7
+ /** Discard old buffer and create a new buffer, and won't affect the previous rendering */
8
+ Discard = 1
9
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Vertex element format.
3
+ */
4
+ export declare enum VertexElementFormat {
5
+ /** 32-bit float */
6
+ Float = 0,
7
+ /** Two-dimensional 32-bit float */
8
+ Vector2 = 1,
9
+ /** Three-dimensional 32-bit float */
10
+ Vector3 = 2,
11
+ /** Four-dimensional 32-bit float */
12
+ Vector4 = 3,
13
+ /** Four-dimensional 8-bit integer,range is [-128,127] */
14
+ Byte4 = 4,
15
+ /** Four-dimensional 8-bit Unsigned integer, range is [0,255] */
16
+ UByte4 = 5,
17
+ /** Four-dimensional 8-bit Normalized integer, range is [-1,1] */
18
+ NormalizedByte4 = 6,
19
+ /** Four-dimensional 8-bit Normalized unsigned integer, range is [0,1] */
20
+ NormalizedUByte4 = 7,
21
+ /** Two-dimensional 16-bit integer, range is[-32768, 32767] */
22
+ Short2 = 8,
23
+ /** Two-dimensional 16-bit Unsigned integer, range is [0, 65535] */
24
+ UShort2 = 9,
25
+ /** Two-dimensional 16-bit Unsigned integer, range is [-1, 1] */
26
+ NormalizedShort2 = 10,
27
+ /** Two-dimensional 16-bit Normalized unsigned integer, range is [0, 1] */
28
+ NormalizedUShort2 = 11,
29
+ /** Four-dimensional 16-bit integer, range is [-32768, 32767] */
30
+ Short4 = 12,
31
+ /** Four-dimensional 16-bit Unsigned integer, range is [0, 65535] */
32
+ UShort4 = 13,
33
+ /** Four-dimensional 16-bit Normalized integer, range is[-1, 1] */
34
+ NormalizedShort4 = 14,
35
+ /** Four-dimensional 16-bit Normalized unsigned integer, range is [0, 1] */
36
+ NormalizedUShort4 = 15
37
+ }
@@ -0,0 +1,13 @@
1
+ export { Buffer } from "./Buffer";
2
+ export { BufferUtil } from "./BufferUtil";
3
+ export { BufferBindFlag } from "./enums/BufferBindFlag";
4
+ export { BufferUsage } from "./enums/BufferUsage";
5
+ export { IndexFormat } from "./enums/IndexFormat";
6
+ export { MeshTopology } from "./enums/MeshTopology";
7
+ export { SetDataOptions } from "./enums/SetDataOptions";
8
+ export { VertexElementFormat } from "./enums/VertexElementFormat";
9
+ export { IndexBufferBinding } from "./IndexBufferBinding";
10
+ export { Mesh } from "./Mesh";
11
+ export { SubMesh } from "./SubMesh";
12
+ export { VertexBufferBinding } from "./VertexBufferBinding";
13
+ export { VertexElement } from "./VertexElement";
@@ -0,0 +1,53 @@
1
+ export { Platform } from "./Platform";
2
+ export { Engine } from "./Engine";
3
+ export { SystemInfo } from "./SystemInfo";
4
+ export type { Canvas } from "./Canvas";
5
+ export { Scene } from "./Scene";
6
+ export { SceneManager } from "./SceneManager";
7
+ export { Entity } from "./Entity";
8
+ export { Component } from "./Component";
9
+ export { Script } from "./Script";
10
+ export { Renderer } from "./Renderer";
11
+ export { dependentComponents } from "./ComponentsDependencies";
12
+ export { Camera } from "./Camera";
13
+ export { Transform } from "./Transform";
14
+ export { BoolUpdateFlag } from "./BoolUpdateFlag";
15
+ export type { EngineSettings } from "./EngineSettings";
16
+ export { request } from "./asset/request";
17
+ export { Loader } from "./asset/Loader";
18
+ export { ResourceManager, resourceLoader } from "./asset/ResourceManager";
19
+ export { AssetPromise } from "./asset/AssetPromise";
20
+ export type { LoadItem } from "./asset/LoadItem";
21
+ export { AssetType } from "./asset/AssetType";
22
+ export { RefObject } from "./asset/RefObject";
23
+ export { BasicRenderPipeline } from "./RenderPipeline/BasicRenderPipeline";
24
+ export { RenderQueue } from "./RenderPipeline/RenderQueue";
25
+ export { RenderPass } from "./RenderPipeline/RenderPass";
26
+ export { MeshRenderElement } from "./RenderPipeline/MeshRenderElement";
27
+ export { SpriteElement } from "./RenderPipeline/SpriteElement";
28
+ export * from "./base";
29
+ export { Background } from "./Background";
30
+ export { BackgroundMode } from "./enums/BackgroundMode";
31
+ export { FogMode } from "./enums/FogMode";
32
+ export { CameraClearFlags } from "./enums/CameraClearFlags";
33
+ export { ColorSpace } from "./enums/ColorSpace";
34
+ export { BackgroundTextureFillMode } from "./enums/BackgroundTextureFillMode";
35
+ export * from "./input/index";
36
+ export * from "./lighting/index";
37
+ export * from "./shadow/index";
38
+ export * from "./material/index";
39
+ export * from "./texture/index";
40
+ export * from "./graphic/index";
41
+ export * from "./2d/index";
42
+ export * from "./shaderlib/index";
43
+ export * from "./animation/index";
44
+ export * from "./mesh/index";
45
+ export * from "./sky/index";
46
+ export * from "./particle/index";
47
+ export * from "./trail/index";
48
+ export * from "./env-probe/index";
49
+ export * from "./shader/index";
50
+ export * from "./Layer";
51
+ export * from "./clone/CloneManager";
52
+ export * from "./renderingHardwareInterface/index";
53
+ export * from "./physics/index";
@@ -0,0 +1,67 @@
1
+ import { Keys } from "./enums/Keys";
2
+ import { Pointer } from "./pointer/Pointer";
3
+ import { PointerButton } from "./enums/PointerButton";
4
+ import { Vector3 } from "@galacean/engine-math";
5
+ /**
6
+ * InputManager manages device input such as mouse, touch, keyboard, etc.
7
+ */
8
+ export declare class InputManager {
9
+ /** Sometimes the input module will not be initialized, such as off-screen rendering. */
10
+ private _initialized;
11
+ private _curFrameCount;
12
+ private _wheelManager;
13
+ private _pointerManager;
14
+ private _keyboardManager;
15
+ /**
16
+ * Pointer list.
17
+ */
18
+ get pointers(): Readonly<Pointer[]>;
19
+ /**
20
+ * Whether to handle multi-pointer.
21
+ */
22
+ get multiPointerEnabled(): boolean;
23
+ set multiPointerEnabled(enabled: boolean);
24
+ /**
25
+ * Get the change of the scroll wheel on the x-axis.
26
+ * @returns Change value
27
+ */
28
+ get wheelDelta(): Readonly<Vector3 | null>;
29
+ /**
30
+ * Whether the key is being held down, if there is no parameter, return whether any key is being held down.
31
+ * @param key - The keys of the keyboard
32
+ * @returns Whether the key is being held down
33
+ */
34
+ isKeyHeldDown(key?: Keys): boolean;
35
+ /**
36
+ * Whether the key starts to be pressed down during the current frame, if there is no parameter, return whether any key starts to be pressed down during the current frame.
37
+ * @param key - The keys of the keyboard
38
+ * @returns Whether the key starts to be pressed down during the current frame
39
+ */
40
+ isKeyDown(key?: Keys): boolean;
41
+ /**
42
+ * Whether the key is released during the current frame, if there is no parameter, return whether any key released during the current frame.
43
+ * @param key - The keys of the keyboard
44
+ * @returns Whether the key is released during the current frame
45
+ */
46
+ isKeyUp(key?: Keys): boolean;
47
+ /**
48
+ * Whether the pointer is being held down, if there is no parameter, return whether any pointer is being held down.
49
+ * @param pointerButton - The pointerButton on a pointer device
50
+ * @returns Whether the pointer is being held down
51
+ */
52
+ isPointerHeldDown(pointerButton?: PointerButton): boolean;
53
+ /**
54
+ * Whether the pointer starts to be pressed down during the current frame, if there is no parameter, return whether any pointer starts to be pressed down during the current frame.
55
+ * @param pointerButton - The pointerButton on a pointer device
56
+ * @returns Whether the pointer starts to be pressed down during the current frame
57
+ */
58
+ isPointerDown(pointerButton?: PointerButton): boolean;
59
+ /**
60
+ * Whether the pointer is released during the current frame, if there is no parameter, return whether any pointer released during the current frame.
61
+ * @param pointerButton - The pointerButtons on a mouse device
62
+ * @returns Whether the pointer is released during the current frame
63
+ */
64
+ isPointerUp(pointerButton?: PointerButton): boolean;
65
+ private _onBlur;
66
+ private _onFocus;
67
+ }
@@ -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
+ }