@displayxr/inline3d 1.27.0 → 1.29.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 +224 -0
- package/README.md +6 -3
- package/call-full.d.ts +21 -0
- package/call.d.ts +454 -0
- package/dist/call.js +81 -0
- package/index.d.ts +34 -2
- package/js/call/capture.js +212 -0
- package/js/call/disparity.js +432 -0
- package/js/call/element.js +217 -0
- package/js/call/lift.js +323 -0
- package/js/call/qr.js +283 -0
- package/js/call/sdp.js +86 -0
- package/js/call/signaling.js +203 -0
- package/js/call/transport.js +589 -0
- package/js/call/ui.js +146 -0
- package/js/call/wire.js +434 -0
- package/js/inline3d-buffer-limit.js +198 -0
- package/js/inline3d-call-full.js +48 -0
- package/js/inline3d-call.js +1901 -0
- package/js/inline3d-model-playcanvas.js +6 -0
- package/js/inline3d-model.js +6 -0
- package/js/inline3d-player.js +649 -218
- package/js/inline3d-splat-playcanvas.js +134 -18
- package/js/inline3d-splat-video.js +328 -29
- package/js/inline3d-splat.js +5 -0
- package/js/inline3d-viewer.js +86 -10
- package/js/inline3d.js +257 -15
- package/js/lift/index.js +15 -0
- package/model.d.ts +10 -1
- package/package.json +29 -4
- package/player.d.ts +49 -4
- package/splat.d.ts +52 -3
- package/viewer.d.ts +12 -1
|
@@ -455,6 +455,7 @@ export function attachPlayCanvasModel(out, wall, canvas, src, opts, pending = []
|
|
|
455
455
|
orbit,
|
|
456
456
|
idleSpin,
|
|
457
457
|
renderScale,
|
|
458
|
+
logTag: '[inline3d/model]',
|
|
458
459
|
flipY: false, // glTF is already Y-up
|
|
459
460
|
orbitMaxDeg: opts.orbitMaxDeg,
|
|
460
461
|
orbitEase: opts.orbitEase,
|
|
@@ -512,6 +513,11 @@ export function attachPlayCanvasModel(out, wall, canvas, src, opts, pending = []
|
|
|
512
513
|
unexclude: (el) => handle?.unexclude(el),
|
|
513
514
|
});
|
|
514
515
|
|
|
516
|
+
// The per-eye buffer scale in force (the request times the device-limit clamp,
|
|
517
|
+
// ./inline3d-buffer-limit.js) and the request as given. Accessors, so they stay live.
|
|
518
|
+
Object.defineProperty(out, 'renderScale', { get: () => viewer.effectiveRenderScale, enumerable: true, configurable: true });
|
|
519
|
+
Object.defineProperty(out, 'renderScaleRequested', { get: () => viewer.renderScale, enumerable: true, configurable: true });
|
|
520
|
+
|
|
515
521
|
if (wall && wall.supported) {
|
|
516
522
|
handle = wall.addScene(canvas, viewer.onFrame, {
|
|
517
523
|
...(pageMode
|
package/js/inline3d-model.js
CHANGED
|
@@ -379,6 +379,7 @@ export function addModel(wall, canvas, src, opts = {}) {
|
|
|
379
379
|
idleSpin,
|
|
380
380
|
renderScale,
|
|
381
381
|
feather,
|
|
382
|
+
logTag: '[inline3d/model]',
|
|
382
383
|
}).useEyeCamera(EyeCamera, EdgeFeather);
|
|
383
384
|
|
|
384
385
|
if (envMap) viewer.scene.environment = envMap;
|
|
@@ -404,6 +405,11 @@ export function addModel(wall, canvas, src, opts = {}) {
|
|
|
404
405
|
unexclude: (el) => handle?.unexclude(el),
|
|
405
406
|
};
|
|
406
407
|
|
|
408
|
+
// The per-eye buffer scale in force (the request times the device-limit clamp,
|
|
409
|
+
// ./inline3d-buffer-limit.js) and the request as given. Accessors, so they stay live.
|
|
410
|
+
Object.defineProperty(out, 'renderScale', { get: () => viewer.effectiveRenderScale, enumerable: true, configurable: true });
|
|
411
|
+
Object.defineProperty(out, 'renderScaleRequested', { get: () => viewer.renderScale, enumerable: true, configurable: true });
|
|
412
|
+
|
|
407
413
|
// Window first, content when it lands — same reasoning as ./splat: a grid should not appear
|
|
408
414
|
// one tile at a time in download order.
|
|
409
415
|
let handle = null;
|