@babylonjs/core 5.0.0-beta.9 → 5.0.0-rc.2

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 (187) hide show
  1. package/Actions/actionEvent.d.ts +3 -4
  2. package/Actions/actionEvent.js.map +1 -1
  3. package/Animations/animation.d.ts +4 -4
  4. package/Animations/animation.js +4 -4
  5. package/Animations/animation.js.map +1 -1
  6. package/Audio/sound.d.ts +12 -6
  7. package/Audio/sound.js +48 -24
  8. package/Audio/sound.js.map +1 -1
  9. package/BakedVertexAnimation/vertexAnimationBaker.js +0 -1
  10. package/BakedVertexAnimation/vertexAnimationBaker.js.map +1 -1
  11. package/Behaviors/Meshes/baseSixDofDragBehavior.js.map +1 -1
  12. package/Behaviors/Meshes/pointerDragBehavior.js +5 -0
  13. package/Behaviors/Meshes/pointerDragBehavior.js.map +1 -1
  14. package/Bones/skeleton.js +20 -13
  15. package/Bones/skeleton.js.map +1 -1
  16. package/Cameras/Inputs/BaseCameraPointersInput.d.ts +1 -0
  17. package/Cameras/Inputs/BaseCameraPointersInput.js +4 -3
  18. package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
  19. package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js +10 -9
  20. package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js.map +1 -1
  21. package/Cameras/Inputs/followCameraMouseWheelInput.js.map +1 -1
  22. package/Cameras/VR/vrExperienceHelper.js.map +1 -1
  23. package/Cameras/arcRotateCamera.d.ts +4 -2
  24. package/Cameras/arcRotateCamera.js +11 -6
  25. package/Cameras/arcRotateCamera.js.map +1 -1
  26. package/Cameras/targetCamera.d.ts +1 -0
  27. package/Cameras/targetCamera.js +1 -0
  28. package/Cameras/targetCamera.js.map +1 -1
  29. package/Culling/ray.js +4 -2
  30. package/Culling/ray.js.map +1 -1
  31. package/DeviceInput/Helpers/eventFactory.d.ts +6 -6
  32. package/DeviceInput/Helpers/eventFactory.js +34 -16
  33. package/DeviceInput/Helpers/eventFactory.js.map +1 -1
  34. package/DeviceInput/InputDevices/deviceEnums.d.ts +26 -3
  35. package/DeviceInput/InputDevices/deviceEnums.js +31 -7
  36. package/DeviceInput/InputDevices/deviceEnums.js.map +1 -1
  37. package/DeviceInput/InputDevices/deviceSource.d.ts +11 -3
  38. package/DeviceInput/InputDevices/deviceSource.js.map +1 -1
  39. package/DeviceInput/InputDevices/deviceSourceManager.d.ts +12 -9
  40. package/DeviceInput/InputDevices/deviceSourceManager.js +75 -12
  41. package/DeviceInput/InputDevices/deviceSourceManager.js.map +1 -1
  42. package/DeviceInput/InputDevices/deviceTypes.d.ts +1 -1
  43. package/DeviceInput/InputDevices/deviceTypes.js.map +1 -1
  44. package/DeviceInput/InputDevices/inputInterfaces.d.ts +3 -28
  45. package/DeviceInput/InputDevices/inputInterfaces.js.map +1 -1
  46. package/DeviceInput/InputDevices/internalDeviceSourceManager.d.ts +4 -24
  47. package/DeviceInput/InputDevices/internalDeviceSourceManager.js +27 -91
  48. package/DeviceInput/InputDevices/internalDeviceSourceManager.js.map +1 -1
  49. package/DeviceInput/InputDevices/nativeDeviceInputSystem.d.ts +3 -2
  50. package/DeviceInput/InputDevices/nativeDeviceInputSystem.js +7 -13
  51. package/DeviceInput/InputDevices/nativeDeviceInputSystem.js.map +1 -1
  52. package/DeviceInput/InputDevices/webDeviceInputSystem.d.ts +4 -2
  53. package/DeviceInput/InputDevices/webDeviceInputSystem.js +54 -77
  54. package/DeviceInput/InputDevices/webDeviceInputSystem.js.map +1 -1
  55. package/Engines/Extensions/engine.query.d.ts +7 -0
  56. package/Engines/Extensions/engine.query.js +12 -0
  57. package/Engines/Extensions/engine.query.js.map +1 -1
  58. package/Engines/Extensions/engine.renderTarget.d.ts +5 -0
  59. package/Engines/Extensions/engine.renderTarget.js.map +1 -1
  60. package/Engines/ICanvas.d.ts +4 -0
  61. package/Engines/ICanvas.js.map +1 -1
  62. package/Engines/Native/nativeInterfaces.d.ts +1 -1
  63. package/Engines/Native/nativeInterfaces.js.map +1 -1
  64. package/Engines/engine.d.ts +14 -2
  65. package/Engines/engine.js +25 -0
  66. package/Engines/engine.js.map +1 -1
  67. package/Engines/index.d.ts +1 -0
  68. package/Engines/index.js +1 -0
  69. package/Engines/index.js.map +1 -1
  70. package/Engines/nativeEngine.d.ts +8 -0
  71. package/Engines/nativeEngine.js +38 -10
  72. package/Engines/nativeEngine.js.map +1 -1
  73. package/Engines/thinEngine.js +2 -2
  74. package/Engines/thinEngine.js.map +1 -1
  75. package/Engines/webgpuEngine.js +2 -2
  76. package/Engines/webgpuEngine.js.map +1 -1
  77. package/Events/deviceInputEvents.d.ts +17 -18
  78. package/Events/deviceInputEvents.js.map +1 -1
  79. package/Gizmos/boundingBoxGizmo.js.map +1 -1
  80. package/Helpers/environmentHelper.js +2 -2
  81. package/Helpers/environmentHelper.js.map +1 -1
  82. package/Helpers/videoDome.d.ts +8 -0
  83. package/Helpers/videoDome.js +18 -4
  84. package/Helpers/videoDome.js.map +1 -1
  85. package/Inputs/scene.inputManager.js +50 -24
  86. package/Inputs/scene.inputManager.js.map +1 -1
  87. package/Layers/effectLayer.d.ts +1 -0
  88. package/Layers/effectLayer.js +24 -0
  89. package/Layers/effectLayer.js.map +1 -1
  90. package/Materials/Node/Blocks/Dual/textureBlock.d.ts +6 -2
  91. package/Materials/Node/Blocks/Dual/textureBlock.js +50 -8
  92. package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
  93. package/Materials/Node/Blocks/elbowBlock.d.ts +6 -0
  94. package/Materials/Node/Blocks/elbowBlock.js +25 -0
  95. package/Materials/Node/Blocks/elbowBlock.js.map +1 -1
  96. package/Materials/Node/Blocks/simplexPerlin3DBlock.js +1 -0
  97. package/Materials/Node/Blocks/simplexPerlin3DBlock.js.map +1 -1
  98. package/Materials/Node/nodeMaterialBlock.d.ts +1 -1
  99. package/Materials/Node/nodeMaterialBlock.js.map +1 -1
  100. package/Materials/PBR/pbrBaseMaterial.js +1 -0
  101. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  102. package/Materials/Textures/Procedurals/proceduralTexture.d.ts +1 -1
  103. package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
  104. package/Materials/Textures/dynamicTexture.d.ts +1 -1
  105. package/Materials/Textures/dynamicTexture.js.map +1 -1
  106. package/Materials/materialPluginBase.d.ts +5 -0
  107. package/Materials/materialPluginBase.js +5 -0
  108. package/Materials/materialPluginBase.js.map +1 -1
  109. package/Materials/materialPluginEvent.d.ts +1 -0
  110. package/Materials/materialPluginEvent.js.map +1 -1
  111. package/Materials/materialPluginManager.d.ts +1 -0
  112. package/Materials/materialPluginManager.js +20 -15
  113. package/Materials/materialPluginManager.js.map +1 -1
  114. package/Materials/standardMaterial.js +1 -0
  115. package/Materials/standardMaterial.js.map +1 -1
  116. package/Maths/math.vector.d.ts +5 -0
  117. package/Maths/math.vector.js +20 -9
  118. package/Maths/math.vector.js.map +1 -1
  119. package/Meshes/Builders/polygonBuilder.js +2 -1
  120. package/Meshes/Builders/polygonBuilder.js.map +1 -1
  121. package/Meshes/Compression/dracoCompression.js +3 -7
  122. package/Meshes/Compression/dracoCompression.js.map +1 -1
  123. package/Meshes/abstractMesh.d.ts +1 -1
  124. package/Meshes/abstractMesh.js +0 -1
  125. package/Meshes/abstractMesh.js.map +1 -1
  126. package/Meshes/geometry.js +5 -0
  127. package/Meshes/geometry.js.map +1 -1
  128. package/Meshes/instancedMesh.js +7 -4
  129. package/Meshes/instancedMesh.js.map +1 -1
  130. package/Meshes/mesh.js +21 -22
  131. package/Meshes/mesh.js.map +1 -1
  132. package/Meshes/mesh.vertexData.d.ts +3 -2
  133. package/Meshes/mesh.vertexData.js +114 -85
  134. package/Meshes/mesh.vertexData.js.map +1 -1
  135. package/Meshes/transformNode.d.ts +3 -3
  136. package/Meshes/transformNode.js +9 -6
  137. package/Meshes/transformNode.js.map +1 -1
  138. package/Misc/fileTools.js +23 -9
  139. package/Misc/fileTools.js.map +1 -1
  140. package/Misc/khronosTextureContainer2.d.ts +10 -15
  141. package/Misc/khronosTextureContainer2.js +31 -60
  142. package/Misc/khronosTextureContainer2.js.map +1 -1
  143. package/Misc/videoRecorder.d.ts +1 -1
  144. package/Misc/videoRecorder.js +1 -1
  145. package/Misc/videoRecorder.js.map +1 -1
  146. package/Misc/workerPool.d.ts +37 -3
  147. package/Misc/workerPool.js +91 -15
  148. package/Misc/workerPool.js.map +1 -1
  149. package/Morph/morphTarget.d.ts +2 -1
  150. package/Morph/morphTarget.js +5 -1
  151. package/Morph/morphTarget.js.map +1 -1
  152. package/Morph/morphTargetManager.js +1 -1
  153. package/Morph/morphTargetManager.js.map +1 -1
  154. package/Particles/particleSystem.d.ts +13 -1
  155. package/Particles/particleSystem.js +20 -0
  156. package/Particles/particleSystem.js.map +1 -1
  157. package/Particles/pointsCloudSystem.d.ts +1 -1
  158. package/Particles/pointsCloudSystem.js +1 -1
  159. package/Particles/pointsCloudSystem.js.map +1 -1
  160. package/Rendering/prePassRenderer.js +12 -2
  161. package/Rendering/prePassRenderer.js.map +1 -1
  162. package/Rendering/subSurfaceConfiguration.js +1 -1
  163. package/Rendering/subSurfaceConfiguration.js.map +1 -1
  164. package/Rendering/utilityLayerRenderer.js +2 -0
  165. package/Rendering/utilityLayerRenderer.js.map +1 -1
  166. package/Shaders/ShadersInclude/pointCloudVertex.js +1 -1
  167. package/Shaders/ShadersInclude/pointCloudVertex.js.map +1 -1
  168. package/Shaders/background.vertex.js +1 -1
  169. package/Shaders/background.vertex.js.map +1 -1
  170. package/Shaders/pbr.vertex.js +1 -1
  171. package/Shaders/pbr.vertex.js.map +1 -1
  172. package/XR/features/WebXRImageTracking.d.ts +2 -1
  173. package/XR/features/WebXRImageTracking.js +43 -64
  174. package/XR/features/WebXRImageTracking.js.map +1 -1
  175. package/XR/features/WebXRNearInteraction.js +4 -2
  176. package/XR/features/WebXRNearInteraction.js.map +1 -1
  177. package/XR/native/nativeXRFrame.d.ts +1 -0
  178. package/XR/native/nativeXRFrame.js +1 -0
  179. package/XR/native/nativeXRFrame.js.map +1 -1
  180. package/XR/webXRSessionManager.js +1 -0
  181. package/XR/webXRSessionManager.js.map +1 -1
  182. package/package.json +1 -1
  183. package/scene.d.ts +1 -10
  184. package/scene.js +36 -39
  185. package/scene.js.map +1 -1
  186. package/types.d.ts +1 -1
  187. package/types.js.map +1 -1
@@ -3,7 +3,6 @@ import { Nullable } from "../types";
3
3
  import { Sprite } from "../Sprites/sprite";
4
4
  import { Scene } from "../scene";
5
5
  import { Vector2 } from "../Maths/math.vector";
6
- import { IEvent } from "../Events/deviceInputEvents";
7
6
  /**
8
7
  * Interface used to define ActionEvent
9
8
  */
@@ -66,7 +65,7 @@ export declare class ActionEvent implements IActionEvent {
66
65
  * @param additionalData additional data for the event
67
66
  * @returns the new ActionEvent
68
67
  */
69
- static CreateNew(source: AbstractMesh, evt?: IEvent, additionalData?: any): ActionEvent;
68
+ static CreateNew(source: AbstractMesh, evt?: any, additionalData?: any): ActionEvent;
70
69
  /**
71
70
  * Helper function to auto-create an ActionEvent from a source sprite
72
71
  * @param source The source sprite that triggered the event
@@ -75,14 +74,14 @@ export declare class ActionEvent implements IActionEvent {
75
74
  * @param additionalData additional data for the event
76
75
  * @returns the new ActionEvent
77
76
  */
78
- static CreateNewFromSprite(source: Sprite, scene: Scene, evt?: IEvent, additionalData?: any): ActionEvent;
77
+ static CreateNewFromSprite(source: Sprite, scene: Scene, evt?: any, additionalData?: any): ActionEvent;
79
78
  /**
80
79
  * Helper function to auto-create an ActionEvent from a scene. If triggered by a mesh use ActionEvent.CreateNew
81
80
  * @param scene the scene where the event occurred
82
81
  * @param evt The original (browser) event
83
82
  * @returns the new ActionEvent
84
83
  */
85
- static CreateNewFromScene(scene: Scene, evt: IEvent): ActionEvent;
84
+ static CreateNewFromScene(scene: Scene, evt: any): ActionEvent;
86
85
  /**
87
86
  * Helper function to auto-create an ActionEvent from a primitive
88
87
  * @param prim defines the target primitive
@@ -1 +1 @@
1
- {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,gBAAgB,EAAE,GAAG,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;OAOG;IACW,kCAAsB,GAApC,UAAqC,IAAS,EAAE,UAAmB,EAAE,GAAW,EAAE,cAAoB;QAClG,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IACxF,CAAC;IACL,kBAAC;AAAD,CAAC,AAtED,IAsEC","sourcesContent":["import { AbstractMesh } from \"../Meshes/abstractMesh\";\r\nimport { Nullable } from \"../types\";\r\nimport { Sprite } from \"../Sprites/sprite\";\r\nimport { Scene } from \"../scene\";\r\nimport { Vector2 } from \"../Maths/math.vector\";\r\nimport { IEvent } from \"../Events/deviceInputEvents\";\r\n\r\n/**\r\n * Interface used to define ActionEvent\r\n */\r\nexport interface IActionEvent {\r\n /** The mesh or sprite that triggered the action */\r\n source: any;\r\n /** The X mouse cursor position at the time of the event */\r\n pointerX: number;\r\n /** The Y mouse cursor position at the time of the event */\r\n pointerY: number;\r\n /** The mesh that is currently pointed at (can be null) */\r\n meshUnderPointer: Nullable<AbstractMesh>;\r\n /** the original (browser) event that triggered the ActionEvent */\r\n sourceEvent?: any;\r\n /** additional data for the event */\r\n additionalData?: any;\r\n}\r\n\r\n/**\r\n * ActionEvent is the event being sent when an action is triggered.\r\n */\r\nexport class ActionEvent implements IActionEvent {\r\n /**\r\n * Creates a new ActionEvent\r\n * @param source The mesh or sprite that triggered the action\r\n * @param pointerX The X mouse cursor position at the time of the event\r\n * @param pointerY The Y mouse cursor position at the time of the event\r\n * @param meshUnderPointer The mesh that is currently pointed at (can be null)\r\n * @param sourceEvent the original (browser) event that triggered the ActionEvent\r\n * @param additionalData additional data for the event\r\n */\r\n constructor(\r\n /** The mesh or sprite that triggered the action */\r\n public source: any,\r\n /** The X mouse cursor position at the time of the event */\r\n public pointerX: number,\r\n /** The Y mouse cursor position at the time of the event */\r\n public pointerY: number,\r\n /** The mesh that is currently pointed at (can be null) */\r\n public meshUnderPointer: Nullable<AbstractMesh>,\r\n /** the original (browser) event that triggered the ActionEvent */\r\n public sourceEvent?: any,\r\n /** additional data for the event */\r\n public additionalData?: any) {\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a source mesh.\r\n * @param source The source mesh that triggered the event\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNew(source: AbstractMesh, evt?: IEvent, additionalData?: any): ActionEvent {\r\n var scene = source.getScene();\r\n return new ActionEvent(source, scene.pointerX, scene.pointerY, scene.meshUnderPointer || source, evt, additionalData);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a source sprite\r\n * @param source The source sprite that triggered the event\r\n * @param scene Scene associated with the sprite\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromSprite(source: Sprite, scene: Scene, evt?: IEvent, additionalData?: any): ActionEvent {\r\n return new ActionEvent(source, scene.pointerX, scene.pointerY, scene.meshUnderPointer, evt, additionalData);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a scene. If triggered by a mesh use ActionEvent.CreateNew\r\n * @param scene the scene where the event occurred\r\n * @param evt The original (browser) event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromScene(scene: Scene, evt: IEvent): ActionEvent {\r\n return new ActionEvent(null, scene.pointerX, scene.pointerY, scene.meshUnderPointer, evt);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a primitive\r\n * @param prim defines the target primitive\r\n * @param pointerPos defines the pointer position\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromPrimitive(prim: any, pointerPos: Vector2, evt?: Event, additionalData?: any): ActionEvent {\r\n return new ActionEvent(prim, pointerPos.x, pointerPos.y, null, evt, addit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AC,QAAQ,EAAE,KAAK,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;OAOG;IACW,kCAAsB,GAApC,UAAqC,IAAS,EAAE,UAAmB,EAAE,GAAW,EAAE,cAAoB;QAClG,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IACxF,CAAC;IACL,kBAAC;AAAD,CAAC,AAtED,IAsEC","sourcesContent":["import { AbstractMesh } from \"../Meshes/abstractMesh\";\r\nimport { Nullable } from \"../types\";\r\nimport { Sprite } from \"../Sprites/sprite\";\r\nimport { Scene } from \"../scene\";\r\nimport { Vector2 } from \"../Maths/math.vector\";\r\n\r\n/**\r\n * Interface used to define ActionEvent\r\n */\r\nexport interface IActionEvent {\r\n /** The mesh or sprite that triggered the action */\r\n source: any;\r\n /** The X mouse cursor position at the time of the event */\r\n pointerX: number;\r\n /** The Y mouse cursor position at the time of the event */\r\n pointerY: number;\r\n /** The mesh that is currently pointed at (can be null) */\r\n meshUnderPointer: Nullable<AbstractMesh>;\r\n /** the original (browser) event that triggered the ActionEvent */\r\n sourceEvent?: any;\r\n /** additional data for the event */\r\n additionalData?: any;\r\n}\r\n\r\n/**\r\n * ActionEvent is the event being sent when an action is triggered.\r\n */\r\nexport class ActionEvent implements IActionEvent {\r\n /**\r\n * Creates a new ActionEvent\r\n * @param source The mesh or sprite that triggered the action\r\n * @param pointerX The X mouse cursor position at the time of the event\r\n * @param pointerY The Y mouse cursor position at the time of the event\r\n * @param meshUnderPointer The mesh that is currently pointed at (can be null)\r\n * @param sourceEvent the original (browser) event that triggered the ActionEvent\r\n * @param additionalData additional data for the event\r\n */\r\n constructor(\r\n /** The mesh or sprite that triggered the action */\r\n public source: any,\r\n /** The X mouse cursor position at the time of the event */\r\n public pointerX: number,\r\n /** The Y mouse cursor position at the time of the event */\r\n public pointerY: number,\r\n /** The mesh that is currently pointed at (can be null) */\r\n public meshUnderPointer: Nullable<AbstractMesh>,\r\n /** the original (browser) event that triggered the ActionEvent */\r\n public sourceEvent?: any,\r\n /** additional data for the event */\r\n public additionalData?: any) {\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a source mesh.\r\n * @param source The source mesh that triggered the event\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNew(source: AbstractMesh, evt?: any, additionalData?: any): ActionEvent {\r\n var scene = source.getScene();\r\n return new ActionEvent(source, scene.pointerX, scene.pointerY, scene.meshUnderPointer || source, evt, additionalData);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a source sprite\r\n * @param source The source sprite that triggered the event\r\n * @param scene Scene associated with the sprite\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromSprite(source: Sprite, scene: Scene, evt?: any, additionalData?: any): ActionEvent {\r\n return new ActionEvent(source, scene.pointerX, scene.pointerY, scene.meshUnderPointer, evt, additionalData);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a scene. If triggered by a mesh use ActionEvent.CreateNew\r\n * @param scene the scene where the event occurred\r\n * @param evt The original (browser) event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromScene(scene: Scene, evt: any): ActionEvent {\r\n return new ActionEvent(null, scene.pointerX, scene.pointerY, scene.meshUnderPointer, evt);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a primitive\r\n * @param prim defines the target primitive\r\n * @param pointerPos defines the pointer position\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromPrimitive(prim: any, pointerPos: Vector2, evt?: Event, additionalData?: any): ActionEvent {\r\n return new ActionEvent(prim, pointerPos.x, pointerPos.y, null, evt, additionalData);\r\n }\r\n}"]}
@@ -297,7 +297,7 @@ export declare class Animation {
297
297
  * Interpolates a Vector3 linearly
298
298
  * @param startValue Start value of the animation curve
299
299
  * @param endValue End value of the animation curve
300
- * @param gradient Scalar amount to interpolate
300
+ * @param gradient Scalar amount to interpolate (value between 0 and 1)
301
301
  * @returns Interpolated scalar value
302
302
  */
303
303
  vector3InterpolateFunction(startValue: Vector3, endValue: Vector3, gradient: number): Vector3;
@@ -307,7 +307,7 @@ export declare class Animation {
307
307
  * @param outTangent End tangent of the animation
308
308
  * @param endValue End value of the animation curve
309
309
  * @param inTangent Start tangent of the animation curve
310
- * @param gradient Scalar amount to interpolate
310
+ * @param gradient Scalar amount to interpolate (value between 0 and 1)
311
311
  * @returns InterpolatedVector3 value
312
312
  */
313
313
  vector3InterpolateFunctionWithTangents(startValue: Vector3, outTangent: Vector3, endValue: Vector3, inTangent: Vector3, gradient: number): Vector3;
@@ -315,7 +315,7 @@ export declare class Animation {
315
315
  * Interpolates a Vector2 linearly
316
316
  * @param startValue Start value of the animation curve
317
317
  * @param endValue End value of the animation curve
318
- * @param gradient Scalar amount to interpolate
318
+ * @param gradient Scalar amount to interpolate (value between 0 and 1)
319
319
  * @returns Interpolated Vector2 value
320
320
  */
321
321
  vector2InterpolateFunction(startValue: Vector2, endValue: Vector2, gradient: number): Vector2;
@@ -325,7 +325,7 @@ export declare class Animation {
325
325
  * @param outTangent End tangent of the animation
326
326
  * @param endValue End value of the animation curve
327
327
  * @param inTangent Start tangent of the animation curve
328
- * @param gradient Scalar amount to interpolate
328
+ * @param gradient Scalar amount to interpolate (value between 0 and 1)
329
329
  * @returns Interpolated Vector2 value
330
330
  */
331
331
  vector2InterpolateFunctionWithTangents(startValue: Vector2, outTangent: Vector2, endValue: Vector2, inTangent: Vector2, gradient: number): Vector2;
@@ -621,7 +621,7 @@ var Animation = /** @class */ (function () {
621
621
  * Interpolates a Vector3 linearly
622
622
  * @param startValue Start value of the animation curve
623
623
  * @param endValue End value of the animation curve
624
- * @param gradient Scalar amount to interpolate
624
+ * @param gradient Scalar amount to interpolate (value between 0 and 1)
625
625
  * @returns Interpolated scalar value
626
626
  */
627
627
  Animation.prototype.vector3InterpolateFunction = function (startValue, endValue, gradient) {
@@ -633,7 +633,7 @@ var Animation = /** @class */ (function () {
633
633
  * @param outTangent End tangent of the animation
634
634
  * @param endValue End value of the animation curve
635
635
  * @param inTangent Start tangent of the animation curve
636
- * @param gradient Scalar amount to interpolate
636
+ * @param gradient Scalar amount to interpolate (value between 0 and 1)
637
637
  * @returns InterpolatedVector3 value
638
638
  */
639
639
  Animation.prototype.vector3InterpolateFunctionWithTangents = function (startValue, outTangent, endValue, inTangent, gradient) {
@@ -643,7 +643,7 @@ var Animation = /** @class */ (function () {
643
643
  * Interpolates a Vector2 linearly
644
644
  * @param startValue Start value of the animation curve
645
645
  * @param endValue End value of the animation curve
646
- * @param gradient Scalar amount to interpolate
646
+ * @param gradient Scalar amount to interpolate (value between 0 and 1)
647
647
  * @returns Interpolated Vector2 value
648
648
  */
649
649
  Animation.prototype.vector2InterpolateFunction = function (startValue, endValue, gradient) {
@@ -655,7 +655,7 @@ var Animation = /** @class */ (function () {
655
655
  * @param outTangent End tangent of the animation
656
656
  * @param endValue End value of the animation curve
657
657
  * @param inTangent Start tangent of the animation curve
658
- * @param gradient Scalar amount to interpolate
658
+ * @param gradient Scalar amount to interpolate (value between 0 and 1)
659
659
  * @returns Interpolated Vector2 value
660
660
  */
661
661
  Animation.prototype.vector2InterpolateFunctionWithTangents = function (startValue, outTangent, endValue, inTangent, gradient) {