three-live 1.2.3 → 1.3.0
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 +22 -0
- package/dist/three-author-engine.js +31 -29
- package/dist/three-author.cjs +29 -27
- package/dist/three-author.d.ts +22 -0
- package/dist/three-author.js +30 -28
- package/dist/three-convert.cjs +21 -19
- package/dist/three-convert.d.ts +22 -0
- package/dist/three-convert.js +21 -19
- package/dist/three-live-animation.cjs +4 -4
- package/dist/three-live-animation.d.ts +22 -0
- package/dist/three-live-animation.js +4 -4
- package/dist/three-live-animation.min.js +4 -4
- package/dist/three-live-cad.cjs +2 -2
- package/dist/three-live-cad.d.ts +22 -0
- package/dist/three-live-cad.js +2 -2
- package/dist/three-live-cad.min.js +2 -2
- package/dist/three-live-element.cjs +5 -3
- package/dist/three-live-element.d.ts +22 -0
- package/dist/three-live-element.js +5 -3
- package/dist/three-live-full.cjs +44 -42
- package/dist/three-live-full.js +40 -38
- package/dist/three-live-full.min.js +44 -42
- package/dist/three-live-studio.cjs +15 -15
- package/dist/three-live-studio.d.ts +22 -0
- package/dist/three-live-studio.js +13 -13
- package/dist/three-live-studio.min.js +15 -15
- package/dist/three-live-viewer.cjs +5 -3
- package/dist/three-live-viewer.d.ts +22 -0
- package/dist/three-live-viewer.js +5 -3
- package/dist/three-live-viewer.min.js +5 -3
- package/dist/three-live.cjs +22 -20
- package/dist/three-live.js +22 -20
- package/dist/three-live.min.js +22 -20
- package/dist/three-view.cjs +8 -6
- package/dist/three-view.d.ts +22 -0
- package/dist/three-view.js +8 -6
- package/dist/three-xr.cjs +24 -22
- package/dist/three-xr.d.ts +22 -0
- package/dist/three-xr.js +24 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Lightweight `<three-live>` web component for 3D, AR, and sandboxed procedural
|
|
4
4
|
Three.js. Part of [Three-Live](https://github.com/google/three-live).
|
|
5
5
|
|
|
6
|
-
>
|
|
6
|
+
> Status: **Beta**. Minor API details may evolve before General Availability (GA).
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
package/dist/index.d.ts
CHANGED
|
@@ -169,6 +169,18 @@ export interface ThreeLiveAttributes {
|
|
|
169
169
|
'shadow-softness'?: number | string;
|
|
170
170
|
/** Tone mapping mode ("neutral", "aces", "agx", "reinhard", "none"). */
|
|
171
171
|
'tone-mapping'?: string;
|
|
172
|
+
/** Dual-Kawase bloom intensity (0.0 to 5.0). */
|
|
173
|
+
'bloom'?: number | string;
|
|
174
|
+
/** Luminance threshold for bloom extraction (default: 0.8). */
|
|
175
|
+
'bloom-threshold'?: number | string;
|
|
176
|
+
/** Blur radius multiplier for bloom passes (default: 0.5). */
|
|
177
|
+
'bloom-radius'?: number | string;
|
|
178
|
+
/** Declarative silhouette outline toggle or config. */
|
|
179
|
+
'outline'?: boolean | string;
|
|
180
|
+
/** Highlight the currently `selected-mesh` with a silhouette outline. */
|
|
181
|
+
'outline-selected'?: boolean | string;
|
|
182
|
+
/** Silhouette outline CSS hex color (default: "#38bdf8"). */
|
|
183
|
+
'outline-color'?: string;
|
|
172
184
|
/** Enable or disable interactive camera orbit/pan/zoom controls (default: true). */
|
|
173
185
|
'camera-controls'?: boolean | string;
|
|
174
186
|
/** Automatically start keyframe animation playback. */
|
|
@@ -210,6 +222,16 @@ export interface ThreeLiveAttributes {
|
|
|
210
222
|
// React 19 / JSX Event Listeners
|
|
211
223
|
onload?: (e: CustomEvent<{model: GLBData}>) => void;
|
|
212
224
|
onerror?: (e: CustomEvent<{error: any}>) => void;
|
|
225
|
+
'onthree-load'?: (
|
|
226
|
+
e: CustomEvent<{model: GLBData; source?: 'src' | 'model'}>,
|
|
227
|
+
) => void;
|
|
228
|
+
'onthree-error'?: (
|
|
229
|
+
e: CustomEvent<{error: any; message: string; stage: string}>,
|
|
230
|
+
) => void;
|
|
231
|
+
'onthree-context-lost'?: (e: CustomEvent<{originalEvent?: Event}>) => void;
|
|
232
|
+
'onthree-context-restored'?: (
|
|
233
|
+
e: CustomEvent<{originalEvent?: Event}>,
|
|
234
|
+
) => void;
|
|
213
235
|
onmeshclick?: (e: CustomEvent<HitDetail>) => void;
|
|
214
236
|
'oncamera-change'?: (e: CustomEvent<CameraDetail>) => void;
|
|
215
237
|
'onvariant-applied'?: (e: CustomEvent<{variantName: string | null}>) => void;
|