three-live 1.3.0 → 1.3.1
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 +36 -0
- package/dist/three-author-engine.js +86 -62
- package/dist/three-author.cjs +84 -60
- package/dist/three-author.d.ts +36 -0
- package/dist/three-author.js +83 -59
- package/dist/three-convert.cjs +78 -58
- package/dist/three-convert.d.ts +36 -0
- package/dist/three-convert.js +77 -57
- package/dist/three-live-animation.cjs +8 -9
- package/dist/three-live-animation.d.ts +36 -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 +36 -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 +36 -0
- package/dist/three-live-element.js +16 -19
- package/dist/three-live-full.cjs +110 -86
- package/dist/three-live-full.js +107 -83
- package/dist/three-live-full.min.js +110 -86
- package/dist/three-live-studio.cjs +19 -20
- package/dist/three-live-studio.d.ts +36 -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 +36 -0
- package/dist/three-live-viewer.js +16 -19
- package/dist/three-live-viewer.min.js +17 -20
- package/dist/three-live.cjs +87 -63
- package/dist/three-live.js +86 -62
- package/dist/three-live.min.js +86 -62
- package/dist/three-view.cjs +17 -20
- package/dist/three-view.d.ts +36 -0
- package/dist/three-view.js +16 -19
- package/dist/three-xr.cjs +78 -58
- package/dist/three-xr.d.ts +36 -0
- package/dist/three-xr.js +77 -57
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ display existing models only, use the viewer-only build:
|
|
|
46
46
|
| :--- | :--- |
|
|
47
47
|
| `dist/three-live-viewer.min.js` | Viewer only: `.glb` display, PBR, orbit controls, animation |
|
|
48
48
|
| `dist/three-live.min.js` | Standard: viewer + sandboxed `<script type="text/three">` + AR handoff |
|
|
49
|
-
| `dist/three-live-studio.min.js` | Add-on: PBR Next, HDRI/SH, `bloom`/`outline`, `KHR_materials_variants`, `EXT_meshopt_compression`, `KHR_interactivity` VM, hotspots |
|
|
49
|
+
| `dist/three-live-studio.min.js` | Add-on: PBR Next, HDRI/SH, `bloom`/`outline`, `KHR_materials_variants`, `EXT_meshopt_compression`, `KHR_interactivity` VM, `lod` (`THREE.LOD` / `MSFT_lod`), hotspots |
|
|
50
50
|
| `dist/three-live-cad.min.js` | Add-on: 2D `Path`/`Shape`, `ExtrudeGeometry`, 3D `CSG` Booleans, stroke-font `TextGeometry` |
|
|
51
51
|
| `dist/three-live-animation.min.js` | Add-on: 64-joint skinning, morph targets, keyframe cross-fading, 2-bone/FABRIK `IKSolver` |
|
|
52
52
|
| `dist/three-live-full.min.js` | Standard + all plugins (`studio`, `cad`, `animation`) |
|
package/dist/index.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,
|
|
@@ -130,6 +144,8 @@ export {
|
|
|
130
144
|
} from './xr-live/src/xr-live-element';
|
|
131
145
|
/** Optional spatial plugins (`xr-live/spatial`, `xr-live-spatial.min.js`). */
|
|
132
146
|
export * from './xr-live/src/plugins/index';
|
|
147
|
+
/** Optional simulation plugins (`xr-live/sim`, `xr-live-sim.min.js`). */
|
|
148
|
+
export * from './xr-live/src/sim/index';
|
|
133
149
|
|
|
134
150
|
/**
|
|
135
151
|
* Declarative JSX / HTML attributes supported by the <three-live> custom element.
|
|
@@ -449,7 +465,27 @@ export interface XRLiveAttributes extends ThreeLiveAttributes {
|
|
|
449
465
|
sdpMLineIndex: number | null;
|
|
450
466
|
}>,
|
|
451
467
|
) => void;
|
|
468
|
+
onxraudioplay?: (
|
|
469
|
+
e: CustomEvent<{
|
|
470
|
+
node: string;
|
|
471
|
+
meshIndex: number;
|
|
472
|
+
preset: string | null;
|
|
473
|
+
src: string | null;
|
|
474
|
+
gain: number;
|
|
475
|
+
pan: number;
|
|
476
|
+
triggerCount: number;
|
|
477
|
+
}>,
|
|
478
|
+
) => void;
|
|
452
479
|
/** xr-live-sim events. */
|
|
480
|
+
onxrcollision?: (
|
|
481
|
+
e: CustomEvent<{
|
|
482
|
+
nodeId: string;
|
|
483
|
+
otherId: string;
|
|
484
|
+
normal: [number, number, number];
|
|
485
|
+
impactSpeed: number;
|
|
486
|
+
}>,
|
|
487
|
+
) => void;
|
|
488
|
+
onxrsleep?: (e: CustomEvent<{nodeId: string}>) => void;
|
|
453
489
|
oncharacterjump?: (
|
|
454
490
|
e: CustomEvent<{nodeId: string; position: [number, number, number]}>,
|
|
455
491
|
) => void;
|