@displayxr/inline3d 1.30.0 → 1.32.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/CHANGELOG.md +112 -0
- package/README.md +5 -5
- package/call.d.ts +53 -4
- package/dist/call.js +4 -4
- package/index.d.ts +92 -0
- package/js/call/signaling.js +66 -9
- package/js/inline3d-call.js +31 -1
- package/js/inline3d-display-metrics.js +51 -0
- package/js/inline3d-model-playcanvas.js +1 -0
- package/js/inline3d-model.js +1 -0
- package/js/inline3d-splat-deferred.js +12 -0
- package/js/inline3d-splat-effects.js +92 -2
- package/js/inline3d-splat-playcanvas.js +284 -6
- package/js/inline3d-splat.js +15 -0
- package/js/inline3d-viewer-ease.js +360 -0
- package/js/inline3d-viewer.js +15 -4
- package/js/inline3d.js +34 -0
- package/model.d.ts +8 -1
- package/package.json +5 -2
- package/splat.d.ts +76 -1
- package/viewer.d.ts +9 -0
package/viewer.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Type definitions for @displayxr/inline3d/viewer.
|
|
2
2
|
// EXPERIMENTAL — not covered by the 1.x semver promise. See docs/sdk-stability.md.
|
|
3
3
|
|
|
4
|
+
import type { ViewerEaseOption } from './index.js';
|
|
5
|
+
|
|
4
6
|
/** Model-space bounds of the subject a viewer frames on. */
|
|
5
7
|
export interface SubjectBounds {
|
|
6
8
|
center: number[];
|
|
@@ -39,6 +41,13 @@ export interface SceneViewerOptions {
|
|
|
39
41
|
feather?: number;
|
|
40
42
|
/** Pitch clamp in degrees (default [-60, 60]). */
|
|
41
43
|
pitchLimit?: number[];
|
|
44
|
+
/**
|
|
45
|
+
* The tracking ease (default on): when a viewer is acquired or lost and the views jump (the
|
|
46
|
+
* runtime's nominal viewer <-> the tracked eyes) the eye cameras glide from where they were
|
|
47
|
+
* drawn to the new views instead of snapping in one frame. Unset: the session's
|
|
48
|
+
* `createInline3D({ viewerEase })`, else on. `false` restores the snap.
|
|
49
|
+
*/
|
|
50
|
+
viewerEase?: ViewerEaseOption;
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
export interface OrbitPose {
|