@needle-tools/engine 4.1.0-beta.1 → 4.1.0-beta.3

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 (38) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/needle-engine.bundle.js +1878 -1875
  3. package/dist/needle-engine.bundle.light.js +1853 -1850
  4. package/dist/needle-engine.bundle.light.min.js +92 -93
  5. package/dist/needle-engine.bundle.light.umd.cjs +97 -98
  6. package/dist/needle-engine.bundle.min.js +92 -93
  7. package/dist/needle-engine.bundle.umd.cjs +97 -98
  8. package/lib/engine/engine_networking_auto.js +6 -11
  9. package/lib/engine/engine_networking_auto.js.map +1 -1
  10. package/lib/engine/xr/NeedleXRSession.js +3 -0
  11. package/lib/engine/xr/NeedleXRSession.js.map +1 -1
  12. package/lib/engine-components/GroundProjection.d.ts +1 -1
  13. package/lib/engine-components/GroundProjection.js +39 -32
  14. package/lib/engine-components/GroundProjection.js.map +1 -1
  15. package/lib/engine-components/SpatialTrigger.d.ts +2 -2
  16. package/lib/engine-components/SpatialTrigger.js +4 -4
  17. package/lib/engine-components/SpatialTrigger.js.map +1 -1
  18. package/lib/engine-components/TransformGizmo.d.ts +7 -1
  19. package/lib/engine-components/TransformGizmo.js +39 -32
  20. package/lib/engine-components/TransformGizmo.js.map +1 -1
  21. package/lib/engine-components/VideoPlayer.js +0 -1
  22. package/lib/engine-components/VideoPlayer.js.map +1 -1
  23. package/lib/engine-components/webxr/WebXRRig.d.ts +11 -1
  24. package/lib/engine-components/webxr/WebXRRig.js +13 -1
  25. package/lib/engine-components/webxr/WebXRRig.js.map +1 -1
  26. package/lib/engine-components-experimental/networking/PlayerSync.d.ts +4 -1
  27. package/lib/engine-components-experimental/networking/PlayerSync.js +16 -29
  28. package/lib/engine-components-experimental/networking/PlayerSync.js.map +1 -1
  29. package/package.json +1 -1
  30. package/plugins/vite/transform.js +3 -3
  31. package/src/engine/engine_networking_auto.ts +7 -22
  32. package/src/engine/xr/NeedleXRSession.ts +3 -0
  33. package/src/engine-components/GroundProjection.ts +46 -38
  34. package/src/engine-components/SpatialTrigger.ts +6 -6
  35. package/src/engine-components/TransformGizmo.ts +41 -33
  36. package/src/engine-components/VideoPlayer.ts +0 -1
  37. package/src/engine-components/webxr/WebXRRig.ts +15 -2
  38. package/src/engine-components-experimental/networking/PlayerSync.ts +17 -36
package/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [4.1.0-beta.3] - 2024-01-30
8
+ - Fix issue where networked values with the `@syncField` decorator would not be updated correctly on instances spawned at runtime (e.g. via PlayerSync).
9
+
10
+ ## [4.1.0-beta.2] - 2024-01-29
11
+ - Fix: VideoPlayer screenspace mode colorspace
12
+ - Fix: XRRig `setAsActiveRig()` now ensures the given rig has the highest priority. Previously it was possibly immediately overidden again if another XRRig with a higher priority was active in the scene.
13
+ - Change: SpatialTrigger EventList events are now invoked without additional parameters. They did previously take a reference to the SpatialTriggerReceiver and active SpatialTrigger. If this information is important the SpatialTriggerReceiver can be saved when subscribing to the event and the trigger can be accessed using the `triggerReceiver.currentIntersected` array.
14
+ - Change: TransformGizmo now exposes the underlying three.js TransformGizmo via a new `control` property.
15
+ - Change: GroundProjection now uses the `scene.background` instead of `scene.environment`
16
+
7
17
  ## [4.1.0-beta.1] - 2024-01-29
8
18
  - Fix: ParticleSystem custom behaviours
9
19
  - Fix: OrbitControls not keeping the initial look direction if `autoTarget` was off