three-live 1.3.0 → 1.3.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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +37 -0
  3. package/dist/three-author-engine.js +112 -61
  4. package/dist/three-author.cjs +110 -59
  5. package/dist/three-author.d.ts +37 -0
  6. package/dist/three-author.js +109 -58
  7. package/dist/three-convert.cjs +106 -59
  8. package/dist/three-convert.d.ts +37 -0
  9. package/dist/three-convert.js +105 -58
  10. package/dist/three-live-animation.cjs +8 -9
  11. package/dist/three-live-animation.d.ts +37 -0
  12. package/dist/three-live-animation.js +7 -8
  13. package/dist/three-live-animation.min.js +6 -7
  14. package/dist/three-live-cad.cjs +3 -4
  15. package/dist/three-live-cad.d.ts +37 -0
  16. package/dist/three-live-cad.js +2 -3
  17. package/dist/three-live-cad.min.js +3 -4
  18. package/dist/three-live-cli.js +231 -0
  19. package/dist/three-live-element.cjs +17 -20
  20. package/dist/three-live-element.d.ts +37 -0
  21. package/dist/three-live-element.js +16 -19
  22. package/dist/three-live-full.cjs +138 -87
  23. package/dist/three-live-full.js +137 -86
  24. package/dist/three-live-full.min.js +138 -87
  25. package/dist/three-live-studio.cjs +19 -20
  26. package/dist/three-live-studio.d.ts +37 -0
  27. package/dist/three-live-studio.js +18 -19
  28. package/dist/three-live-studio.min.js +18 -19
  29. package/dist/three-live-viewer.cjs +17 -20
  30. package/dist/three-live-viewer.d.ts +37 -0
  31. package/dist/three-live-viewer.js +16 -19
  32. package/dist/three-live-viewer.min.js +17 -20
  33. package/dist/three-live.cjs +115 -64
  34. package/dist/three-live.js +113 -62
  35. package/dist/three-live.min.js +115 -64
  36. package/dist/three-view.cjs +17 -20
  37. package/dist/three-view.d.ts +37 -0
  38. package/dist/three-view.js +16 -19
  39. package/dist/three-xr.cjs +105 -58
  40. package/dist/three-xr.d.ts +37 -0
  41. package/dist/three-xr.js +104 -57
  42. package/package.json +25 -1
@@ -87,6 +87,20 @@ export {
87
87
  type InteractivityValueSocket,
88
88
  type InteractivityVariableDef,
89
89
  } from './three-live/src/plugins/interactivity';
90
+ export {
91
+ decimateGeometry,
92
+ getLodController,
93
+ installLodExtension,
94
+ LOD,
95
+ LodController,
96
+ lodPlugin,
97
+ materializeLodGeometry,
98
+ parseLod,
99
+ selectLodLevelIndex,
100
+ type LodGroupState,
101
+ type LodLevel,
102
+ type LodOptions,
103
+ } from './three-live/src/plugins/lod';
90
104
  export {
91
105
  applyMeshoptFilter,
92
106
  decodeMeshoptBuffer,
@@ -112,6 +126,7 @@ export {
112
126
  type VariantMapping,
113
127
  } from './three-live/src/plugins/variants';
114
128
  export {
129
+ defineModelViewer,
115
130
  ThreeLiveElement,
116
131
  type ARLaunchOptions,
117
132
  type ARLaunchResult,
@@ -130,6 +145,8 @@ export {
130
145
  } from './xr-live/src/xr-live-element';
131
146
  /** Optional spatial plugins (`xr-live/spatial`, `xr-live-spatial.min.js`). */
132
147
  export * from './xr-live/src/plugins/index';
148
+ /** Optional simulation plugins (`xr-live/sim`, `xr-live-sim.min.js`). */
149
+ export * from './xr-live/src/sim/index';
133
150
 
134
151
  /**
135
152
  * Declarative JSX / HTML attributes supported by the <three-live> custom element.
@@ -449,7 +466,27 @@ export interface XRLiveAttributes extends ThreeLiveAttributes {
449
466
  sdpMLineIndex: number | null;
450
467
  }>,
451
468
  ) => void;
469
+ onxraudioplay?: (
470
+ e: CustomEvent<{
471
+ node: string;
472
+ meshIndex: number;
473
+ preset: string | null;
474
+ src: string | null;
475
+ gain: number;
476
+ pan: number;
477
+ triggerCount: number;
478
+ }>,
479
+ ) => void;
452
480
  /** xr-live-sim events. */
481
+ onxrcollision?: (
482
+ e: CustomEvent<{
483
+ nodeId: string;
484
+ otherId: string;
485
+ normal: [number, number, number];
486
+ impactSpeed: number;
487
+ }>,
488
+ ) => void;
489
+ onxrsleep?: (e: CustomEvent<{nodeId: string}>) => void;
453
490
  oncharacterjump?: (
454
491
  e: CustomEvent<{nodeId: string; position: [number, number, number]}>,
455
492
  ) => void;