@needle-tools/engine 4.16.4-alpha → 4.16.4-next.25d6ead

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 (53) hide show
  1. package/dist/{needle-engine.bundle-BQv3gp3d.umd.cjs → needle-engine.bundle-CAIr8Hz9.umd.cjs} +130 -130
  2. package/dist/{needle-engine.bundle-LGUii273.js → needle-engine.bundle-CC-oMhHW.js} +5557 -5534
  3. package/dist/{needle-engine.bundle-C_iC-4wt.min.js → needle-engine.bundle-Cmi3snfO.min.js} +129 -129
  4. package/dist/needle-engine.js +2 -2
  5. package/dist/needle-engine.min.js +1 -1
  6. package/dist/needle-engine.umd.cjs +1 -1
  7. package/dist/{postprocessing-C-WOZQC5.js → postprocessing-BUS23YkY.js} +2 -2
  8. package/dist/{postprocessing-CtXfLXvp.umd.cjs → postprocessing-C_736uMz.umd.cjs} +2 -2
  9. package/dist/{postprocessing-DXm8YKbQ.min.js → postprocessing-CaEfRjRY.min.js} +2 -2
  10. package/lib/engine/debug/debug.d.ts +1 -4
  11. package/lib/engine/debug/debug.js +1 -25
  12. package/lib/engine/debug/debug.js.map +1 -1
  13. package/lib/engine/debug/debug_environment.d.ts +4 -0
  14. package/lib/engine/debug/debug_environment.js +26 -0
  15. package/lib/engine/debug/debug_environment.js.map +1 -0
  16. package/lib/engine/debug/debug_spatial_console.js +1 -1
  17. package/lib/engine/debug/debug_spatial_console.js.map +1 -1
  18. package/lib/engine/engine_components.js +6 -3
  19. package/lib/engine/engine_components.js.map +1 -1
  20. package/lib/engine/extensions/NEEDLE_animator_controller_model.d.ts +1 -1
  21. package/lib/engine/webcomponents/WebXRButtons.js +11 -13
  22. package/lib/engine/webcomponents/WebXRButtons.js.map +1 -1
  23. package/lib/engine/webcomponents/buttons.js +4 -4
  24. package/lib/engine/webcomponents/buttons.js.map +1 -1
  25. package/lib/engine/webcomponents/needle menu/menu-priority.d.ts +10 -0
  26. package/lib/engine/webcomponents/needle menu/menu-priority.js +21 -0
  27. package/lib/engine/webcomponents/needle menu/menu-priority.js.map +1 -0
  28. package/lib/engine/webcomponents/needle menu/needle-menu.js +3 -8
  29. package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
  30. package/lib/engine/webcomponents/quicklook-handler.d.ts +29 -0
  31. package/lib/engine/webcomponents/quicklook-handler.js +21 -0
  32. package/lib/engine/webcomponents/quicklook-handler.js.map +1 -0
  33. package/lib/engine-components/AnimatorController.d.ts +1 -1
  34. package/lib/engine-components/export/usdz/USDZExporter.js +7 -0
  35. package/lib/engine-components/export/usdz/USDZExporter.js.map +1 -1
  36. package/lib/engine-components/timeline/TimelineTracks.d.ts +1 -1
  37. package/lib/engine-components/timeline/TimelineTracks.js +4 -2
  38. package/lib/engine-components/timeline/TimelineTracks.js.map +1 -1
  39. package/package.json +6 -3
  40. package/src/engine/debug/debug.ts +1 -26
  41. package/src/engine/debug/debug_environment.ts +26 -0
  42. package/src/engine/debug/debug_spatial_console.ts +1 -1
  43. package/src/engine/engine_components.ts +6 -3
  44. package/src/engine/extensions/NEEDLE_animator_controller_model.ts +1 -1
  45. package/src/engine/webcomponents/WebXRButtons.ts +12 -13
  46. package/src/engine/webcomponents/buttons.ts +4 -4
  47. package/src/engine/webcomponents/needle menu/menu-priority.ts +20 -0
  48. package/src/engine/webcomponents/needle menu/needle-menu.ts +3 -7
  49. package/src/engine/webcomponents/quicklook-handler.ts +37 -0
  50. package/src/engine-components/AnimatorController.ts +1 -1
  51. package/src/engine-components/export/usdz/USDZExporter.ts +8 -0
  52. package/src/engine-components/timeline/TimelineTracks.ts +6 -2
  53. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -11,7 +11,7 @@ import { TypeStore } from "../engine/engine_typestore.js";
11
11
  import { deepClone, getParam } from "../engine/engine_utils.js";
12
12
  import type { AnimatorControllerModel, Condition, State, Transition } from "../engine/extensions/NEEDLE_animator_controller_model.js";
13
13
  import { AnimatorConditionMode, AnimatorControllerParameterType, AnimatorStateInfo, createMotion, StateMachineBehaviour } from "../engine/extensions/NEEDLE_animator_controller_model.js";
14
- import { Animator } from "./Animator.js";
14
+ import type { Animator } from "./Animator.js";
15
15
 
16
16
  const debug = getParam("debuganimatorcontroller");
17
17
  const debugRootMotion = getParam("debugrootmotion");
@@ -6,6 +6,7 @@ import { hasProLicense } from "../../../engine/engine_license.js";
6
6
  import { serializable } from "../../../engine/engine_serialization.js";
7
7
  import { getFormattedDate, Progress } from "../../../engine/engine_time_utils.js";
8
8
  import { DeviceUtilities, getParam } from "../../../engine/engine_utils.js";
9
+ import { registerQuicklookHandlerFactory } from "../../../engine/webcomponents/quicklook-handler.js";
9
10
  import { WebXRButtonFactory } from "../../../engine/webcomponents/WebXRButtons.js";
10
11
  import { InternalUSDZRegistry } from "../../../engine/xr/usdz.js"
11
12
  import { InstancingHandler } from "../../../engine-components/RendererInstancing.js";
@@ -793,3 +794,10 @@ export class USDZExporter extends Behaviour {
793
794
  return button;
794
795
  }
795
796
  }
797
+
798
+ // Register USDZExporter as the quicklook handler so that WebXRButtons
799
+ // can create/find exporters without a direct import (avoids circular dependency).
800
+ registerQuicklookHandlerFactory({
801
+ find: () => GameObject.findObjectOfType(USDZExporter),
802
+ create: () => new USDZExporter(),
803
+ });
@@ -2,12 +2,13 @@ import { AnimationAction, AnimationClip, AnimationMixer, Audio, AudioListener, A
2
2
 
3
3
  import { isDevEnvironment } from "../../engine/debug/index.js";
4
4
  import { Context } from "../../engine/engine_setup.js";
5
+ import type { Constructor } from "../../engine/engine_types.js";
5
6
  import { getParam, resolveUrl } from "../../engine/engine_utils.js";
6
7
  import { setObjectAnimated } from "../AnimationUtils.js";
7
8
  import { Animator } from "../Animator.js"
8
9
  import { AudioSource } from "../AudioSource.js";
9
10
  import { GameObject } from "../Component.js";
10
- import { PlayableDirector } from "./PlayableDirector.js";
11
+ import type { PlayableDirector } from "./PlayableDirector.js";
11
12
  import { SignalReceiver } from "./SignalAsset.js";
12
13
  import * as Models from "./TimelineModels.js";
13
14
 
@@ -940,7 +941,10 @@ export class ControlTrackHandler extends TrackHandler {
940
941
  continue;
941
942
  }
942
943
  else {
943
- const timeline = GameObject.getComponent(asset.sourceObject, PlayableDirector)!;
944
+ // Use the director's constructor to get the PlayableDirector class reference
945
+ // without a runtime import, avoiding a circular dependency.
946
+ const DirectorType = this.director.constructor as Constructor<PlayableDirector>;
947
+ const timeline = GameObject.getComponent(asset.sourceObject, DirectorType)!;
944
948
  // always add it to keep size of timelines and models in sync (index of model is index of timeline)
945
949
  this.timelines.push(timeline);
946
950
  if (timeline) {