@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.
@@ -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
@@ -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;