@needle-tools/engine 4.11.5-next.f5ee735 → 4.12.0-beta

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 (402) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/components.needle.json +1 -1
  3. package/custom-elements.json +420 -0
  4. package/dist/{generateMeshBVH.worker-D1Vr8UHG.js → generateMeshBVH.worker-mO20N_b8.js} +4 -4
  5. package/dist/{needle-engine.bundle-DtudWpG2.js → needle-engine.bundle-DBdgyYGK.js} +2767 -2685
  6. package/dist/{needle-engine.bundle-DvGMCIAT.min.js → needle-engine.bundle-DhdNodjw.min.js} +112 -112
  7. package/dist/{needle-engine.bundle-CpC_7cRL.umd.cjs → needle-engine.bundle-DmY4g6s0.umd.cjs} +103 -103
  8. package/dist/needle-engine.d.ts +18164 -1
  9. package/dist/needle-engine.js +2 -2
  10. package/dist/needle-engine.min.js +1 -1
  11. package/dist/needle-engine.umd.cjs +1 -1
  12. package/dist/{postprocessing-DqdcvaFn.js → postprocessing-BTW9pD_s.js} +1822 -1717
  13. package/dist/{postprocessing-DEkzT9iD.umd.cjs → postprocessing-CMgoN5t5.umd.cjs} +229 -153
  14. package/dist/{postprocessing-Dzq4RXcy.min.js → postprocessing-DYDtB188.min.js} +227 -151
  15. package/dist/{vendor-DtTGRuXh.min.js → vendor-BKGa4GE0.min.js} +34 -34
  16. package/dist/{vendor-Dkpn1a8s.js → vendor-D0zoswDa.js} +1626 -1599
  17. package/dist/{vendor-DhTcel4c.umd.cjs → vendor-UCpFAwt1.umd.cjs} +30 -30
  18. package/lib/engine/api.d.ts +0 -1
  19. package/lib/engine/api.js +0 -1
  20. package/lib/engine/api.js.map +1 -1
  21. package/lib/engine/engine_context.js +1 -1
  22. package/lib/engine/engine_context.js.map +1 -1
  23. package/lib/engine/engine_gltf_builtin_components.js +1 -1
  24. package/lib/engine/engine_gltf_builtin_components.js.map +1 -1
  25. package/lib/engine/engine_license.js +1 -1
  26. package/lib/engine/engine_license.js.map +1 -1
  27. package/lib/engine/engine_physics_rapier.d.ts +11 -2
  28. package/lib/engine/engine_physics_rapier.js +9 -0
  29. package/lib/engine/engine_physics_rapier.js.map +1 -1
  30. package/lib/engine/engine_texture.d.ts +1 -1
  31. package/lib/engine/engine_tonemapping.d.ts +1 -1
  32. package/lib/engine/engine_types.d.ts +16 -0
  33. package/lib/engine/engine_typestore.d.ts +1 -0
  34. package/lib/engine/engine_typestore.js +5 -6
  35. package/lib/engine/engine_typestore.js.map +1 -1
  36. package/lib/engine/webcomponents/logo-element.d.ts +11 -0
  37. package/lib/engine/webcomponents/logo-element.js +6 -0
  38. package/lib/engine/webcomponents/logo-element.js.map +1 -1
  39. package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +24 -3
  40. package/lib/engine/webcomponents/needle menu/needle-menu.js +18 -3
  41. package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
  42. package/lib/engine/webcomponents/needle-button.d.ts +5 -0
  43. package/lib/engine/webcomponents/needle-button.js.map +1 -1
  44. package/lib/engine/webcomponents/needle-engine.d.ts +220 -8
  45. package/lib/engine/webcomponents/needle-engine.js +94 -13
  46. package/lib/engine/webcomponents/needle-engine.js.map +1 -1
  47. package/lib/engine-components/AlignmentConstraint.d.ts +9 -0
  48. package/lib/engine-components/AlignmentConstraint.js +9 -0
  49. package/lib/engine-components/AlignmentConstraint.js.map +1 -1
  50. package/lib/engine-components/Animator.d.ts +1 -0
  51. package/lib/engine-components/Animator.js.map +1 -1
  52. package/lib/engine-components/AudioListener.d.ts +2 -0
  53. package/lib/engine-components/AudioListener.js +2 -0
  54. package/lib/engine-components/AudioListener.js.map +1 -1
  55. package/lib/engine-components/AudioSource.d.ts +1 -0
  56. package/lib/engine-components/AudioSource.js +1 -0
  57. package/lib/engine-components/AudioSource.js.map +1 -1
  58. package/lib/engine-components/AxesHelper.d.ts +2 -0
  59. package/lib/engine-components/AxesHelper.js +2 -0
  60. package/lib/engine-components/AxesHelper.js.map +1 -1
  61. package/lib/engine-components/Camera.d.ts +1 -0
  62. package/lib/engine-components/Camera.js +1 -0
  63. package/lib/engine-components/Camera.js.map +1 -1
  64. package/lib/engine-components/CharacterController.d.ts +4 -1
  65. package/lib/engine-components/CharacterController.js +4 -1
  66. package/lib/engine-components/CharacterController.js.map +1 -1
  67. package/lib/engine-components/Component.d.ts +5 -0
  68. package/lib/engine-components/Component.js +7 -0
  69. package/lib/engine-components/Component.js.map +1 -1
  70. package/lib/engine-components/DeleteBox.d.ts +2 -0
  71. package/lib/engine-components/DeleteBox.js +2 -0
  72. package/lib/engine-components/DeleteBox.js.map +1 -1
  73. package/lib/engine-components/DeviceFlag.d.ts +4 -0
  74. package/lib/engine-components/DeviceFlag.js +4 -0
  75. package/lib/engine-components/DeviceFlag.js.map +1 -1
  76. package/lib/engine-components/DragControls.d.ts +1 -0
  77. package/lib/engine-components/DragControls.js +1 -0
  78. package/lib/engine-components/DragControls.js.map +1 -1
  79. package/lib/engine-components/DropListener.d.ts +1 -0
  80. package/lib/engine-components/DropListener.js +1 -0
  81. package/lib/engine-components/DropListener.js.map +1 -1
  82. package/lib/engine-components/Duplicatable.d.ts +1 -0
  83. package/lib/engine-components/Duplicatable.js +1 -0
  84. package/lib/engine-components/Duplicatable.js.map +1 -1
  85. package/lib/engine-components/EventTrigger.d.ts +2 -0
  86. package/lib/engine-components/EventTrigger.js +2 -0
  87. package/lib/engine-components/EventTrigger.js.map +1 -1
  88. package/lib/engine-components/GridHelper.d.ts +2 -0
  89. package/lib/engine-components/GridHelper.js +2 -0
  90. package/lib/engine-components/GridHelper.js.map +1 -1
  91. package/lib/engine-components/GroundProjection.d.ts +1 -0
  92. package/lib/engine-components/GroundProjection.js +1 -0
  93. package/lib/engine-components/GroundProjection.js.map +1 -1
  94. package/lib/engine-components/LODGroup.d.ts +2 -0
  95. package/lib/engine-components/LODGroup.js +2 -0
  96. package/lib/engine-components/LODGroup.js.map +1 -1
  97. package/lib/engine-components/Light.d.ts +1 -0
  98. package/lib/engine-components/Light.js +1 -0
  99. package/lib/engine-components/Light.js.map +1 -1
  100. package/lib/engine-components/LookAtConstraint.d.ts +1 -0
  101. package/lib/engine-components/LookAtConstraint.js +1 -0
  102. package/lib/engine-components/LookAtConstraint.js.map +1 -1
  103. package/lib/engine-components/NeedleMenu.d.ts +1 -0
  104. package/lib/engine-components/NeedleMenu.js +1 -0
  105. package/lib/engine-components/NeedleMenu.js.map +1 -1
  106. package/lib/engine-components/NestedGltf.d.ts +1 -0
  107. package/lib/engine-components/NestedGltf.js +1 -0
  108. package/lib/engine-components/NestedGltf.js.map +1 -1
  109. package/lib/engine-components/Networking.d.ts +1 -0
  110. package/lib/engine-components/Networking.js +1 -0
  111. package/lib/engine-components/Networking.js.map +1 -1
  112. package/lib/engine-components/OffsetConstraint.d.ts +7 -0
  113. package/lib/engine-components/OffsetConstraint.js +7 -0
  114. package/lib/engine-components/OffsetConstraint.js.map +1 -1
  115. package/lib/engine-components/OrbitControls.d.ts +1 -0
  116. package/lib/engine-components/OrbitControls.js +1 -0
  117. package/lib/engine-components/OrbitControls.js.map +1 -1
  118. package/lib/engine-components/PlayerColor.d.ts +2 -0
  119. package/lib/engine-components/PlayerColor.js +2 -0
  120. package/lib/engine-components/PlayerColor.js.map +1 -1
  121. package/lib/engine-components/ReflectionProbe.d.ts +1 -0
  122. package/lib/engine-components/ReflectionProbe.js +1 -0
  123. package/lib/engine-components/ReflectionProbe.js.map +1 -1
  124. package/lib/engine-components/RigidBody.d.ts +1 -0
  125. package/lib/engine-components/RigidBody.js +1 -0
  126. package/lib/engine-components/RigidBody.js.map +1 -1
  127. package/lib/engine-components/SceneSwitcher.d.ts +1 -0
  128. package/lib/engine-components/SceneSwitcher.js +1 -0
  129. package/lib/engine-components/SceneSwitcher.js.map +1 -1
  130. package/lib/engine-components/ScreenCapture.d.ts +1 -0
  131. package/lib/engine-components/ScreenCapture.js +1 -0
  132. package/lib/engine-components/ScreenCapture.js.map +1 -1
  133. package/lib/engine-components/SeeThrough.d.ts +1 -0
  134. package/lib/engine-components/SeeThrough.js +1 -0
  135. package/lib/engine-components/SeeThrough.js.map +1 -1
  136. package/lib/engine-components/ShadowCatcher.d.ts +2 -0
  137. package/lib/engine-components/ShadowCatcher.js +2 -0
  138. package/lib/engine-components/ShadowCatcher.js.map +1 -1
  139. package/lib/engine-components/Skybox.d.ts +1 -0
  140. package/lib/engine-components/Skybox.js +1 -0
  141. package/lib/engine-components/Skybox.js.map +1 -1
  142. package/lib/engine-components/SmoothFollow.d.ts +1 -0
  143. package/lib/engine-components/SmoothFollow.js +1 -0
  144. package/lib/engine-components/SmoothFollow.js.map +1 -1
  145. package/lib/engine-components/SpatialTrigger.d.ts +1 -0
  146. package/lib/engine-components/SpatialTrigger.js +1 -0
  147. package/lib/engine-components/SpatialTrigger.js.map +1 -1
  148. package/lib/engine-components/SpectatorCamera.d.ts +1 -0
  149. package/lib/engine-components/SpectatorCamera.js +1 -0
  150. package/lib/engine-components/SpectatorCamera.js.map +1 -1
  151. package/lib/engine-components/SpriteRenderer.d.ts +1 -0
  152. package/lib/engine-components/SpriteRenderer.js +1 -0
  153. package/lib/engine-components/SpriteRenderer.js.map +1 -1
  154. package/lib/engine-components/SyncedCamera.d.ts +2 -0
  155. package/lib/engine-components/SyncedCamera.js +2 -0
  156. package/lib/engine-components/SyncedCamera.js.map +1 -1
  157. package/lib/engine-components/SyncedRoom.d.ts +1 -0
  158. package/lib/engine-components/SyncedRoom.js +1 -0
  159. package/lib/engine-components/SyncedRoom.js.map +1 -1
  160. package/lib/engine-components/SyncedTransform.d.ts +2 -0
  161. package/lib/engine-components/SyncedTransform.js +2 -0
  162. package/lib/engine-components/SyncedTransform.js.map +1 -1
  163. package/lib/engine-components/TransformGizmo.d.ts +2 -0
  164. package/lib/engine-components/TransformGizmo.js +2 -0
  165. package/lib/engine-components/TransformGizmo.js.map +1 -1
  166. package/lib/engine-components/VideoPlayer.d.ts +1 -0
  167. package/lib/engine-components/VideoPlayer.js +1 -0
  168. package/lib/engine-components/VideoPlayer.js.map +1 -1
  169. package/lib/engine-components/Voip.d.ts +1 -0
  170. package/lib/engine-components/Voip.js +1 -0
  171. package/lib/engine-components/Voip.js.map +1 -1
  172. package/lib/engine-components/export/usdz/USDZExporter.d.ts +24 -3
  173. package/lib/engine-components/export/usdz/USDZExporter.js +36 -2
  174. package/lib/engine-components/export/usdz/USDZExporter.js.map +1 -1
  175. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.d.ts +18 -0
  176. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +18 -0
  177. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js.map +1 -1
  178. package/lib/engine-components/particlesystem/ParticleSystem.d.ts +1 -0
  179. package/lib/engine-components/particlesystem/ParticleSystem.js +1 -0
  180. package/lib/engine-components/particlesystem/ParticleSystem.js.map +1 -1
  181. package/lib/engine-components/physics/Attractor.d.ts +3 -0
  182. package/lib/engine-components/physics/Attractor.js +3 -0
  183. package/lib/engine-components/physics/Attractor.js.map +1 -1
  184. package/lib/engine-components/postprocessing/Effects/BloomEffect.d.ts +1 -0
  185. package/lib/engine-components/postprocessing/Effects/BloomEffect.js +1 -0
  186. package/lib/engine-components/postprocessing/Effects/BloomEffect.js.map +1 -1
  187. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.d.ts +4 -0
  188. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.js +4 -0
  189. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.js.map +1 -1
  190. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.d.ts +3 -0
  191. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js +3 -0
  192. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js.map +1 -1
  193. package/lib/engine-components/postprocessing/Effects/DepthOfField.d.ts +4 -0
  194. package/lib/engine-components/postprocessing/Effects/DepthOfField.js +4 -0
  195. package/lib/engine-components/postprocessing/Effects/DepthOfField.js.map +1 -1
  196. package/lib/engine-components/postprocessing/Effects/EffectWrapper.d.ts +1 -0
  197. package/lib/engine-components/postprocessing/Effects/EffectWrapper.js +1 -0
  198. package/lib/engine-components/postprocessing/Effects/EffectWrapper.js.map +1 -1
  199. package/lib/engine-components/postprocessing/Effects/Pixelation.d.ts +3 -0
  200. package/lib/engine-components/postprocessing/Effects/Pixelation.js +3 -0
  201. package/lib/engine-components/postprocessing/Effects/Pixelation.js.map +1 -1
  202. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.d.ts +4 -0
  203. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js +4 -0
  204. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js.map +1 -1
  205. package/lib/engine-components/postprocessing/Effects/Sharpening.d.ts +4 -0
  206. package/lib/engine-components/postprocessing/Effects/Sharpening.js +4 -0
  207. package/lib/engine-components/postprocessing/Effects/Sharpening.js.map +1 -1
  208. package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.d.ts +4 -0
  209. package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.js +4 -0
  210. package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.js.map +1 -1
  211. package/lib/engine-components/postprocessing/Effects/Tonemapping.d.ts +4 -0
  212. package/lib/engine-components/postprocessing/Effects/Tonemapping.js +4 -0
  213. package/lib/engine-components/postprocessing/Effects/Tonemapping.js.map +1 -1
  214. package/lib/engine-components/postprocessing/Effects/Vignette.d.ts +4 -0
  215. package/lib/engine-components/postprocessing/Effects/Vignette.js +4 -0
  216. package/lib/engine-components/postprocessing/Effects/Vignette.js.map +1 -1
  217. package/lib/engine-components/postprocessing/Volume.d.ts +1 -0
  218. package/lib/engine-components/postprocessing/Volume.js +1 -0
  219. package/lib/engine-components/postprocessing/Volume.js.map +1 -1
  220. package/lib/engine-components/splines/Spline.d.ts +1 -0
  221. package/lib/engine-components/splines/Spline.js +1 -0
  222. package/lib/engine-components/splines/Spline.js.map +1 -1
  223. package/lib/engine-components/splines/SplineWalker.d.ts +1 -0
  224. package/lib/engine-components/splines/SplineWalker.js +1 -0
  225. package/lib/engine-components/splines/SplineWalker.js.map +1 -1
  226. package/lib/engine-components/timeline/PlayableDirector.d.ts +1 -0
  227. package/lib/engine-components/timeline/PlayableDirector.js +1 -0
  228. package/lib/engine-components/timeline/PlayableDirector.js.map +1 -1
  229. package/lib/engine-components/timeline/SignalAsset.d.ts +1 -0
  230. package/lib/engine-components/timeline/SignalAsset.js +1 -0
  231. package/lib/engine-components/timeline/SignalAsset.js.map +1 -1
  232. package/lib/engine-components/ui/Button.d.ts +4 -0
  233. package/lib/engine-components/ui/Button.js +4 -0
  234. package/lib/engine-components/ui/Button.js.map +1 -1
  235. package/lib/engine-components/ui/Canvas.d.ts +5 -0
  236. package/lib/engine-components/ui/Canvas.js +5 -0
  237. package/lib/engine-components/ui/Canvas.js.map +1 -1
  238. package/lib/engine-components/ui/CanvasGroup.d.ts +4 -0
  239. package/lib/engine-components/ui/CanvasGroup.js +4 -0
  240. package/lib/engine-components/ui/CanvasGroup.js.map +1 -1
  241. package/lib/engine-components/ui/EventSystem.d.ts +2 -0
  242. package/lib/engine-components/ui/EventSystem.js +2 -0
  243. package/lib/engine-components/ui/EventSystem.js.map +1 -1
  244. package/lib/engine-components/ui/Image.d.ts +4 -0
  245. package/lib/engine-components/ui/Image.js +4 -0
  246. package/lib/engine-components/ui/Image.js.map +1 -1
  247. package/lib/engine-components/ui/InputField.d.ts +4 -0
  248. package/lib/engine-components/ui/InputField.js +4 -0
  249. package/lib/engine-components/ui/InputField.js.map +1 -1
  250. package/lib/engine-components/ui/Outline.d.ts +7 -0
  251. package/lib/engine-components/ui/Outline.js +7 -0
  252. package/lib/engine-components/ui/Outline.js.map +1 -1
  253. package/lib/engine-components/ui/Text.d.ts +1 -0
  254. package/lib/engine-components/ui/Text.js +1 -0
  255. package/lib/engine-components/ui/Text.js.map +1 -1
  256. package/lib/engine-components/utils/LookAt.d.ts +1 -0
  257. package/lib/engine-components/utils/LookAt.js +1 -0
  258. package/lib/engine-components/utils/LookAt.js.map +1 -1
  259. package/lib/engine-components/web/Clickthrough.d.ts +1 -1
  260. package/lib/engine-components/web/Clickthrough.js +1 -1
  261. package/lib/engine-components/web/CursorFollow.d.ts +2 -0
  262. package/lib/engine-components/web/CursorFollow.js +3 -0
  263. package/lib/engine-components/web/CursorFollow.js.map +1 -1
  264. package/lib/engine-components/web/HoverAnimation.d.ts +1 -0
  265. package/lib/engine-components/web/HoverAnimation.js +1 -0
  266. package/lib/engine-components/web/HoverAnimation.js.map +1 -1
  267. package/lib/engine-components/web/ScrollFollow.d.ts +2 -0
  268. package/lib/engine-components/web/ScrollFollow.js +2 -0
  269. package/lib/engine-components/web/ScrollFollow.js.map +1 -1
  270. package/lib/engine-components/web/ViewBox.d.ts +1 -0
  271. package/lib/engine-components/web/ViewBox.js +1 -0
  272. package/lib/engine-components/web/ViewBox.js.map +1 -1
  273. package/lib/engine-components/webxr/Avatar.d.ts +5 -0
  274. package/lib/engine-components/webxr/Avatar.js +5 -0
  275. package/lib/engine-components/webxr/Avatar.js.map +1 -1
  276. package/lib/engine-components/webxr/WebARCameraBackground.d.ts +1 -0
  277. package/lib/engine-components/webxr/WebARCameraBackground.js +1 -0
  278. package/lib/engine-components/webxr/WebARCameraBackground.js.map +1 -1
  279. package/lib/engine-components/webxr/WebARSessionRoot.d.ts +1 -0
  280. package/lib/engine-components/webxr/WebARSessionRoot.js +1 -0
  281. package/lib/engine-components/webxr/WebARSessionRoot.js.map +1 -1
  282. package/lib/engine-components/webxr/WebXR.d.ts +1 -1
  283. package/lib/engine-components/webxr/WebXR.js +1 -1
  284. package/lib/engine-components/webxr/controllers/XRControllerFollow.d.ts +1 -0
  285. package/lib/engine-components/webxr/controllers/XRControllerFollow.js +1 -0
  286. package/lib/engine-components/webxr/controllers/XRControllerFollow.js.map +1 -1
  287. package/lib/engine-components/webxr/controllers/XRControllerModel.d.ts +4 -0
  288. package/lib/engine-components/webxr/controllers/XRControllerModel.js +4 -0
  289. package/lib/engine-components/webxr/controllers/XRControllerModel.js.map +1 -1
  290. package/lib/engine-components/webxr/controllers/XRControllerMovement.d.ts +1 -0
  291. package/lib/engine-components/webxr/controllers/XRControllerMovement.js +1 -0
  292. package/lib/engine-components/webxr/controllers/XRControllerMovement.js.map +1 -1
  293. package/lib/engine-components-experimental/networking/PlayerSync.d.ts +2 -0
  294. package/lib/engine-components-experimental/networking/PlayerSync.js +2 -0
  295. package/lib/engine-components-experimental/networking/PlayerSync.js.map +1 -1
  296. package/package.json +20 -13
  297. package/plugins/types/needleConfig.d.ts +1 -1
  298. package/plugins/types/next.d.ts +1 -1
  299. package/plugins/types/userconfig.d.ts +4 -1
  300. package/plugins/vite/custom-element-data.js +80 -0
  301. package/plugins/vite/index.js +4 -0
  302. package/src/engine/api.ts +0 -1
  303. package/src/engine/engine_context.ts +1 -1
  304. package/src/engine/engine_gltf_builtin_components.ts +1 -1
  305. package/src/engine/engine_license.ts +1 -1
  306. package/src/engine/engine_physics_rapier.ts +11 -2
  307. package/src/engine/engine_texture.ts +1 -1
  308. package/src/engine/engine_tonemapping.ts +1 -1
  309. package/src/engine/engine_types.ts +17 -0
  310. package/src/engine/engine_typestore.ts +5 -6
  311. package/src/engine/webcomponents/logo-element.ts +12 -0
  312. package/src/engine/webcomponents/needle menu/needle-menu.ts +24 -3
  313. package/src/engine/webcomponents/needle-button.ts +6 -0
  314. package/src/engine/webcomponents/needle-engine.ts +331 -22
  315. package/src/engine-components/AlignmentConstraint.ts +9 -0
  316. package/src/engine-components/Animator.ts +1 -0
  317. package/src/engine-components/AudioListener.ts +2 -0
  318. package/src/engine-components/AudioSource.ts +1 -0
  319. package/src/engine-components/AxesHelper.ts +2 -0
  320. package/src/engine-components/Camera.ts +1 -0
  321. package/src/engine-components/CharacterController.ts +4 -1
  322. package/src/engine-components/Component.ts +9 -1
  323. package/src/engine-components/DeleteBox.ts +2 -0
  324. package/src/engine-components/DeviceFlag.ts +4 -0
  325. package/src/engine-components/DragControls.ts +1 -0
  326. package/src/engine-components/DropListener.ts +1 -0
  327. package/src/engine-components/Duplicatable.ts +1 -0
  328. package/src/engine-components/EventTrigger.ts +2 -0
  329. package/src/engine-components/GridHelper.ts +2 -0
  330. package/src/engine-components/GroundProjection.ts +1 -0
  331. package/src/engine-components/LODGroup.ts +2 -0
  332. package/src/engine-components/Light.ts +1 -0
  333. package/src/engine-components/LookAtConstraint.ts +1 -0
  334. package/src/engine-components/NeedleMenu.ts +1 -0
  335. package/src/engine-components/NestedGltf.ts +1 -0
  336. package/src/engine-components/Networking.ts +1 -0
  337. package/src/engine-components/OffsetConstraint.ts +7 -0
  338. package/src/engine-components/OrbitControls.ts +1 -0
  339. package/src/engine-components/PlayerColor.ts +2 -0
  340. package/src/engine-components/ReflectionProbe.ts +1 -0
  341. package/src/engine-components/RigidBody.ts +1 -0
  342. package/src/engine-components/SceneSwitcher.ts +1 -0
  343. package/src/engine-components/ScreenCapture.ts +1 -0
  344. package/src/engine-components/SeeThrough.ts +1 -0
  345. package/src/engine-components/ShadowCatcher.ts +2 -0
  346. package/src/engine-components/Skybox.ts +2 -1
  347. package/src/engine-components/SmoothFollow.ts +1 -0
  348. package/src/engine-components/SpatialTrigger.ts +1 -0
  349. package/src/engine-components/SpectatorCamera.ts +1 -0
  350. package/src/engine-components/SpriteRenderer.ts +1 -0
  351. package/src/engine-components/SyncedCamera.ts +2 -0
  352. package/src/engine-components/SyncedRoom.ts +1 -0
  353. package/src/engine-components/SyncedTransform.ts +2 -0
  354. package/src/engine-components/TransformGizmo.ts +2 -0
  355. package/src/engine-components/VideoPlayer.ts +1 -0
  356. package/src/engine-components/Voip.ts +1 -0
  357. package/src/engine-components/export/usdz/USDZExporter.ts +52 -5
  358. package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +18 -0
  359. package/src/engine-components/particlesystem/ParticleSystem.ts +1 -0
  360. package/src/engine-components/physics/Attractor.ts +3 -0
  361. package/src/engine-components/postprocessing/Effects/BloomEffect.ts +1 -0
  362. package/src/engine-components/postprocessing/Effects/ChromaticAberration.ts +4 -0
  363. package/src/engine-components/postprocessing/Effects/ColorAdjustments.ts +3 -0
  364. package/src/engine-components/postprocessing/Effects/DepthOfField.ts +4 -0
  365. package/src/engine-components/postprocessing/Effects/EffectWrapper.ts +1 -0
  366. package/src/engine-components/postprocessing/Effects/Pixelation.ts +3 -0
  367. package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +4 -0
  368. package/src/engine-components/postprocessing/Effects/Sharpening.ts +4 -0
  369. package/src/engine-components/postprocessing/Effects/TiltShiftEffect.ts +4 -0
  370. package/src/engine-components/postprocessing/Effects/Tonemapping.ts +4 -0
  371. package/src/engine-components/postprocessing/Effects/Vignette.ts +4 -0
  372. package/src/engine-components/postprocessing/Volume.ts +1 -0
  373. package/src/engine-components/splines/Spline.ts +1 -0
  374. package/src/engine-components/splines/SplineWalker.ts +1 -0
  375. package/src/engine-components/timeline/PlayableDirector.ts +1 -0
  376. package/src/engine-components/timeline/SignalAsset.ts +1 -0
  377. package/src/engine-components/ui/Button.ts +4 -0
  378. package/src/engine-components/ui/Canvas.ts +5 -0
  379. package/src/engine-components/ui/CanvasGroup.ts +4 -0
  380. package/src/engine-components/ui/EventSystem.ts +2 -0
  381. package/src/engine-components/ui/Image.ts +4 -0
  382. package/src/engine-components/ui/InputField.ts +4 -0
  383. package/src/engine-components/ui/Outline.ts +7 -0
  384. package/src/engine-components/ui/Text.ts +1 -0
  385. package/src/engine-components/utils/LookAt.ts +1 -0
  386. package/src/engine-components/web/Clickthrough.ts +1 -1
  387. package/src/engine-components/web/CursorFollow.ts +4 -0
  388. package/src/engine-components/web/HoverAnimation.ts +1 -0
  389. package/src/engine-components/web/ScrollFollow.ts +2 -0
  390. package/src/engine-components/web/ViewBox.ts +1 -0
  391. package/src/engine-components/webxr/Avatar.ts +5 -0
  392. package/src/engine-components/webxr/WebARCameraBackground.ts +1 -0
  393. package/src/engine-components/webxr/WebARSessionRoot.ts +1 -0
  394. package/src/engine-components/webxr/WebXR.ts +1 -1
  395. package/src/engine-components/webxr/controllers/XRControllerFollow.ts +1 -0
  396. package/src/engine-components/webxr/controllers/XRControllerModel.ts +4 -0
  397. package/src/engine-components/webxr/controllers/XRControllerMovement.ts +1 -0
  398. package/src/engine-components-experimental/networking/PlayerSync.ts +2 -0
  399. package/lib/engine/webcomponents/needle-engine.attributes.d.ts +0 -70
  400. package/lib/engine/webcomponents/needle-engine.attributes.js +0 -2
  401. package/lib/engine/webcomponents/needle-engine.attributes.js.map +0 -1
  402. package/src/engine/webcomponents/needle-engine.attributes.ts +0 -85
@@ -29,6 +29,7 @@ export class SignalReceiverEvent {
29
29
  /** SignalReceiver is a component that listens for signals and invokes a reaction when a signal is received.
30
30
  * Signals can be added to a signal track on a {@link PlayableDirector}
31
31
  *
32
+ * @summary Receives signals and invokes reactions
32
33
  * @category Sequencing and Timelines
33
34
  * @group Components
34
35
  */
@@ -61,6 +61,10 @@ class AnimationTriggers {
61
61
  }
62
62
 
63
63
  /**
64
+ * Button is a UI component that can be clicked by the user to perform an action.
65
+ * It supports different visual states such as normal, highlighted, pressed, and disabled.
66
+ * You can customize the button's appearance using colors or animations for each state.
67
+ * @summary Button UI Component
64
68
  * @category User Interface
65
69
  * @group Components
66
70
  */
@@ -25,6 +25,11 @@ export enum RenderMode {
25
25
  const debugLayout = getParam("debuguilayout");
26
26
 
27
27
  /**
28
+ * Canvas is the root component for all UI elements in a scene.
29
+ * It defines the area where UI elements are rendered and manages their layout and rendering settings.
30
+ * Canvases can be set to render in world space or screen space (overlay or camera).
31
+ * Multiple canvases can exist in a scene, each with its own settings and hierarchy of UI elements.
32
+ * @summary Canvas UI Component
28
33
  * @category User Interface
29
34
  * @group Components
30
35
  */
@@ -7,6 +7,10 @@ import { type ICanvasGroup, type IHasAlphaFactor } from "./Interfaces.js";
7
7
 
8
8
 
9
9
  /**
10
+ * CanvasGroup is a UI component that allows you to control the transparency and interactivity of a group of UI elements.
11
+ * By adjusting the alpha property, you can fade in or out all child UI elements simultaneously.
12
+ * The interactable and blocksRaycasts properties let you enable or disable user interaction for the entire group.
13
+ * @summary CanvasGroup UI Component
10
14
  * @category User Interface
11
15
  * @group Components
12
16
  */
@@ -36,6 +36,8 @@ onInitialized((ctx) => {
36
36
  })
37
37
 
38
38
  /**
39
+ * The EventSystem is responsible for managing and dispatching input events to UI components within the scene.
40
+ * @summary UI Input Event System
39
41
  * @category User Interface
40
42
  * @group Components
41
43
  */
@@ -12,6 +12,10 @@ class Sprite {
12
12
  }
13
13
 
14
14
  /**
15
+ * Image is a UI component that displays a sprite (2D image) in the user interface.
16
+ * You can set the image property to assign a texture to be displayed.
17
+ * The sprite can be customized with various properties such as color tinting and pixel density.
18
+ * @summary Image UI Component
15
19
  * @category User Interface
16
20
  * @group Components
17
21
  */
@@ -10,6 +10,10 @@ import { tryGetUIComponent } from "./Utils.js";
10
10
  const debug = getParam("debuginputfield");
11
11
 
12
12
  /**
13
+ * InputField is a UI component that allows users to enter and edit text.
14
+ * It provides a text input area where users can type, delete, and modify text.
15
+ * The InputField supports placeholder text, events for value changes, and end edit actions.
16
+ * @summary Text Input Field UI Component
13
17
  * @category User Interface
14
18
  * @group Components
15
19
  */
@@ -4,6 +4,13 @@ import { serializable } from "../../engine/engine_serialization.js";
4
4
  import { RGBAColor } from "../../engine/js-extensions/index.js";
5
5
  import { Behaviour } from "../Component.js";
6
6
 
7
+ /**
8
+ * Outline is a UI component that adds an outline effect to UI elements.
9
+ * You can customize the outline color and distance to create a visual border around the UI element.
10
+ * @summary Outline UI Component
11
+ * @category User Interface
12
+ * @group Components
13
+ */
7
14
  export class Outline extends Behaviour {
8
15
 
9
16
  @serializable(RGBAColor)
@@ -40,6 +40,7 @@ export enum FontStyle {
40
40
  }
41
41
 
42
42
  /**
43
+ * Text is a UI component that displays text in the user interface.
43
44
  * @category User Interface
44
45
  * @group Components
45
46
  */
@@ -12,6 +12,7 @@ import { Behaviour } from "../Component.js";
12
12
  * LookAt behaviour makes the object look at a target object or the camera.
13
13
  * It can also invert the forward direction and keep the up direction.
14
14
  *
15
+ * @summary Makes the object look at a target object or the camera
15
16
  * @category Interactivity, Everywhere Actions
16
17
  * @group Components
17
18
  */
@@ -32,7 +32,7 @@ onStart(ctx => {
32
32
  * - Alternatively, add the `clickthrough` attribute to the `<needle-engine>` HTML element (e.g. `<needle-engine clickthrough></needle-engine>`).
33
33
  *
34
34
  * - Example https://stackblitz.com/~/github.com/needle-engine/sample-3d-over-html
35
- *
35
+ * @summary Allows pointer events to "click through" the 3D canvas to HTML elements behind it.
36
36
  * @category Web
37
37
  * @group Components
38
38
  * @component
@@ -14,12 +14,16 @@ const debug = getParam("debugcursor");
14
14
  *
15
15
  * - Example: [Look At Cursor sample](https://engine.needle.tools/samples/look-at-cursor-interactive-3d-header/). This sample combines the CursorFollow component with a LookAt component to create an interactive 3D header that looks at the cursor.
16
16
  *
17
+ * @summary Makes the object follow the cursor position on screen
17
18
  * @category Web
18
19
  * @group Components
19
20
  * @component
20
21
  */
21
22
  export class CursorFollow extends Behaviour {
22
23
 
24
+ // testing this for compilation
25
+ static readonly NAME = "CursorFollow";
26
+
23
27
  /**
24
28
  * Damping for the movement, set to 0 for instant movement
25
29
  * @default 0
@@ -13,6 +13,7 @@ import { Behaviour } from "../Component.js";
13
13
  *
14
14
  * By default, a simple scale-up animation is used. You can customize the hover and idle animations by providing your own animation clips.
15
15
  *
16
+ * @summary Hover Animation on Pointer Enter/Exit
16
17
  * @category Web
17
18
  * @group Components
18
19
  */
@@ -34,6 +34,7 @@ type ScrollFollowEvent = {
34
34
 
35
35
  /**
36
36
  * The ScrollFollow component allows you to link the scroll position of the page (or a specific element) to one or more target objects.
37
+
37
38
  * This can be used to create scroll-based animations, audio playback, or other effects. For example you can link the scroll position to a timeline (PlayableDirector) to create scroll-based storytelling effects or to an Animator component to change the animation state based on scroll.
38
39
  *
39
40
  * Assign {@link target} objects to the component to have them updated based on the current scroll position (check the 'target' property for supported types).
@@ -60,6 +61,7 @@ type ScrollFollowEvent = {
60
61
  * <div data-timeline-marker="1.0">End of Timeline</div>
61
62
  * ```
62
63
  *
64
+ * @summary Links scroll position to target objects
63
65
  * @category Web
64
66
  * @group Components
65
67
  * @component
@@ -31,6 +31,7 @@ export type ViewBoxMode = "continuous" | "once";
31
31
  scene.add(viewBox);
32
32
  * ```
33
33
 
34
+ * @summary Automatically fits a box area into the camera view
34
35
  * @category Camera
35
36
  * @group Components
36
37
  * @component
@@ -18,6 +18,11 @@ const debug = getParam("debugwebxr");
18
18
  const flipForwardQuaternion = new Quaternion().setFromAxisAngle(new Vector3(0, 1, 0), Math.PI);
19
19
 
20
20
  /**
21
+ * Avatar component to setup a WebXR avatar with head and hand objects.
22
+ *
23
+ * The avatar will automatically synchronize the head and hand objects with the XR rig when entering an XR session.
24
+ *
25
+ * @summary WebXR Avatar component for head and hands synchronization
21
26
  * @category XR
22
27
  * @category Networking
23
28
  * @group Components
@@ -26,6 +26,7 @@ const debug = getParam("debugarcamera");
26
26
  *
27
27
  * - Example: https://samples.needle.tools/ar-camera-background
28
28
  *
29
+ * @summary Displays the camera feed as background in WebAR sessions
29
30
  * @category XR
30
31
  * @group Components
31
32
  */
@@ -29,6 +29,7 @@ const invertForwardMatrix = new Matrix4().makeRotationY(Math.PI);
29
29
  * });
30
30
  * ```
31
31
  *
32
+ * @summary Root object for WebAR sessions, managing scene placement and user scaling in AR.
32
33
  * @category XR
33
34
  * @group Components
34
35
  */
@@ -51,7 +51,7 @@ const debugQuicklook = getParam("debugusdz");
51
51
  * });
52
52
  * ```
53
53
  *
54
- *
54
+ * @summary WebXR Component for VR and AR support
55
55
  * @category XR
56
56
  * @group Components
57
57
  */
@@ -21,6 +21,7 @@ import { Behaviour } from "../../Component.js";
21
21
  * });
22
22
  * ```
23
23
  *
24
+ * @summary Makes the object follow a specific XR controller or hand
24
25
  * @category XR
25
26
  * @group Components
26
27
  * */
@@ -27,6 +27,10 @@ const renderingUpdateTimings = new Array<number>();
27
27
  * It automatically loads the appropriate model for the connected controller or hand.
28
28
  *
29
29
  * You can configure if controller models or hand models should be created.
30
+ *
31
+ * @summary Displays controller or hand models in XR
32
+ * @category XR
33
+ * @group Components
30
34
  */
31
35
  export class XRControllerModel extends Behaviour {
32
36
 
@@ -30,6 +30,7 @@ declare type HitPointObject = Object3D & { material: Material & { opacity: numbe
30
30
  * It also visualizes controller rays and hit points in the scene.
31
31
  *
32
32
  *
33
+ * @summary Move the XR rig using controller input
33
34
  * @category XR
34
35
  * @group Components
35
36
  */
@@ -18,7 +18,9 @@ declare type PlayerSyncWithAsset = PlayerSync & Required<Pick<PlayerSync, "asset
18
18
  /**
19
19
  * This component instantiates an asset for each player that joins a networked room. The asset will be destroyed when the player leaves the room.
20
20
  * The asset should have a PlayerState component, and can have other components like SyncedTransform, custom components, etc.
21
+ * @summary Instantiates and manages player assets in a networked room
21
22
  * @category Networking
23
+ * @group Components
22
24
  */
23
25
  export class PlayerSync extends Behaviour {
24
26
 
@@ -1,70 +0,0 @@
1
- type MainAttributes = {
2
- children?: HTMLElement[];
3
- style?: Partial<CSSStyleDeclaration>;
4
- /** src to one or multiple glb files to be loaded initially. Can be either "path/to/scene.glb" or "[./path/scene1.glb, myOtherScene.gltf]" */
5
- src?: string | string[];
6
- /** optional */
7
- hash?: string;
8
- /** set to automatically add OrbitControls to the loaded scene */
9
- "camera-controls"?: boolean | "none";
10
- /** event function name called when loading starts, use preventDefault to prevent the default loading overlay to show */
11
- "loadstart"?: string;
12
- /** event function name called when loading updates */
13
- "progress"?: string;
14
- /** event function name called when loading has finished */
15
- "loadfinished"?: string;
16
- /** override the default draco decoder path location */
17
- "dracoDecoderPath"?: string;
18
- /** override the default draco type */
19
- "dracoDecoderType"?: string;
20
- /** override the default ktx2 decoder path */
21
- "ktx2DecoderPath"?: string;
22
- /** Add to prevent Needle Engine context from being disposed when the element is removed from the DOM */
23
- "keep-alive"?: boolean;
24
- addEventListener?(event: "ready", callback: (event: CustomEvent) => void): void;
25
- addEventListener?(event: "error", callback: (event: CustomEvent) => void): void;
26
- };
27
- type LoadingAttributes = {
28
- /** Set a custom loading background color (e.g. "red" or "#dd00ff" or "rgba(18, 224, 224, 0.5)") */
29
- "loading-background"?: string;
30
- /** Pro features */
31
- "hide-loading-overlay"?: boolean;
32
- /** Pro feature */
33
- "loading-logo-src"?: string;
34
- /** Pro feature */
35
- "primary-color"?: string;
36
- /** Pro feature */
37
- "secondary-color"?: string;
38
- };
39
- type SkyboxAttributes = {
40
- /** @deprecated. Use background-image instead - URL to .exr, .hdr, .png, .jpg to be used as skybox */
41
- "skybox-image"?: string;
42
- /** URL to .exr, .hdr, .png, .jpg to be used as skybox */
43
- "background-image"?: string;
44
- /** Blurs the background image (if any) - value between 0 and 1
45
- * 0: no blur
46
- * 1: full blur
47
- */
48
- "background-blurriness"?: number;
49
- /**
50
- * Background color to be used if no skybox or background image is provided.
51
- * For example: "skybox-color='#ff0000'" will set the background color to red.
52
- */
53
- "background-color"?: string;
54
- /** URL to .exr, .hdr, .png, .jpg to be used for lighting */
55
- "environment-image"?: string;
56
- "environment-intensity"?: number;
57
- };
58
- export type TonemappingAttributeOptions = "none" | "linear" | "neutral" | "agx";
59
- type RenderingAttributes = {
60
- "transparent"?: boolean;
61
- "contactshadows"?: boolean;
62
- "tone-mapping"?: TonemappingAttributeOptions;
63
- "tone-mapping-exposure"?: number;
64
- };
65
- /**
66
- * Available attributes for the `<needle-engine>` web component
67
- * @inheritdoc
68
- */
69
- export type NeedleEngineAttributes = MainAttributes & Partial<Omit<HTMLElement, "style">> & LoadingAttributes & SkyboxAttributes & RenderingAttributes;
70
- export {};
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=needle-engine.attributes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"needle-engine.attributes.js","sourceRoot":"","sources":["../../../src/engine/webcomponents/needle-engine.attributes.ts"],"names":[],"mappings":""}
@@ -1,85 +0,0 @@
1
-
2
-
3
-
4
- type MainAttributes = {
5
- children?: HTMLElement[];
6
- style?: Partial<CSSStyleDeclaration>;
7
- /** src to one or multiple glb files to be loaded initially. Can be either "path/to/scene.glb" or "[./path/scene1.glb, myOtherScene.gltf]" */
8
- src?: string | string[];
9
- /** optional */
10
- hash?: string;
11
- /** set to automatically add OrbitControls to the loaded scene */
12
- "camera-controls"?: boolean | "none";
13
- /** event function name called when loading starts, use preventDefault to prevent the default loading overlay to show */
14
- "loadstart"?: string;
15
- /** event function name called when loading updates */
16
- "progress"?: string;
17
- /** event function name called when loading has finished */
18
- "loadfinished"?: string;
19
- /** override the default draco decoder path location */
20
- "dracoDecoderPath"?: string;
21
- /** override the default draco type */
22
- "dracoDecoderType"?: string;
23
- /** override the default ktx2 decoder path */
24
- "ktx2DecoderPath"?: string;
25
-
26
- /** Add to prevent Needle Engine context from being disposed when the element is removed from the DOM */
27
- "keep-alive"?: boolean;
28
-
29
- addEventListener?(event: "ready", callback: (event: CustomEvent) => void): void;
30
- addEventListener?(event: "error", callback: (event: CustomEvent) => void): void;
31
- }
32
-
33
- type LoadingAttributes = {
34
- /** Set a custom loading background color (e.g. "red" or "#dd00ff" or "rgba(18, 224, 224, 0.5)") */
35
- "loading-background"?: string,
36
- /** Pro features */
37
- "hide-loading-overlay"?: boolean,
38
- /** Pro feature */
39
- "loading-logo-src"?: string,
40
- /** Pro feature */
41
- "primary-color"?: string,
42
- /** Pro feature */
43
- "secondary-color"?: string,
44
- }
45
-
46
- type SkyboxAttributes = {
47
- /** @deprecated. Use background-image instead - URL to .exr, .hdr, .png, .jpg to be used as skybox */
48
- "skybox-image"?: string,
49
- /** URL to .exr, .hdr, .png, .jpg to be used as skybox */
50
- "background-image"?: string,
51
- /** Blurs the background image (if any) - value between 0 and 1
52
- * 0: no blur
53
- * 1: full blur
54
- */
55
- "background-blurriness"?: number,
56
- /**
57
- * Background color to be used if no skybox or background image is provided.
58
- * For example: "skybox-color='#ff0000'" will set the background color to red.
59
- */
60
- "background-color"?: string,
61
- /** URL to .exr, .hdr, .png, .jpg to be used for lighting */
62
- "environment-image"?: string,
63
-
64
- "environment-intensity"?: number,
65
- }
66
-
67
- export type TonemappingAttributeOptions = "none" | "linear" | "neutral" | "agx";
68
- type RenderingAttributes = {
69
- "transparent"?: boolean,
70
- "contactshadows"?: boolean,
71
- "tone-mapping"?: TonemappingAttributeOptions,
72
- "tone-mapping-exposure"?: number,
73
- }
74
-
75
- /**
76
- * Available attributes for the `<needle-engine>` web component
77
- * @inheritdoc
78
- */
79
- export type NeedleEngineAttributes =
80
- MainAttributes
81
- & Partial<Omit<HTMLElement, "style">>
82
- & LoadingAttributes
83
- & SkyboxAttributes
84
- & RenderingAttributes
85
- ;