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.
- package/README.md +1 -1
- package/dist/index.d.ts +37 -0
- package/dist/three-author-engine.js +112 -61
- package/dist/three-author.cjs +110 -59
- package/dist/three-author.d.ts +37 -0
- package/dist/three-author.js +109 -58
- package/dist/three-convert.cjs +106 -59
- package/dist/three-convert.d.ts +37 -0
- package/dist/three-convert.js +105 -58
- package/dist/three-live-animation.cjs +8 -9
- package/dist/three-live-animation.d.ts +37 -0
- package/dist/three-live-animation.js +7 -8
- package/dist/three-live-animation.min.js +6 -7
- package/dist/three-live-cad.cjs +3 -4
- package/dist/three-live-cad.d.ts +37 -0
- package/dist/three-live-cad.js +2 -3
- package/dist/three-live-cad.min.js +3 -4
- package/dist/three-live-cli.js +231 -0
- package/dist/three-live-element.cjs +17 -20
- package/dist/three-live-element.d.ts +37 -0
- package/dist/three-live-element.js +16 -19
- package/dist/three-live-full.cjs +138 -87
- package/dist/three-live-full.js +137 -86
- package/dist/three-live-full.min.js +138 -87
- package/dist/three-live-studio.cjs +19 -20
- package/dist/three-live-studio.d.ts +37 -0
- package/dist/three-live-studio.js +18 -19
- package/dist/three-live-studio.min.js +18 -19
- package/dist/three-live-viewer.cjs +17 -20
- package/dist/three-live-viewer.d.ts +37 -0
- package/dist/three-live-viewer.js +16 -19
- package/dist/three-live-viewer.min.js +17 -20
- package/dist/three-live.cjs +115 -64
- package/dist/three-live.js +113 -62
- package/dist/three-live.min.js +115 -64
- package/dist/three-view.cjs +17 -20
- package/dist/three-view.d.ts +37 -0
- package/dist/three-view.js +16 -19
- package/dist/three-xr.cjs +105 -58
- package/dist/three-xr.d.ts +37 -0
- package/dist/three-xr.js +104 -57
- package/package.json +25 -1
package/dist/three-convert.d.ts
CHANGED
|
@@ -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;
|