@displayxr/inline3d 1.38.0 → 1.40.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/model.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  import type { CursorOptions } from './cursor-depth.js';
5
5
  import type { SceneViewer, SubjectBounds, OrbitPose } from './viewer.js';
6
- import type { FirstWovenResult, ViewerEaseOption } from './index.js';
6
+ import type { FirstWovenResult, RectCoverOption, ViewerEaseOption } from './index.js';
7
7
  import type { PlayCanvasSplatViewer, SplatCameraPose, SplatFrameInfo } from './splat.js';
8
8
 
9
9
  export interface ModelOptions {
@@ -164,6 +164,13 @@ export interface ModelOptions {
164
164
  observe?: Element;
165
165
  /** Forwarded to the core window: see `TileOptions.firstWovenHoldMs`. */
166
166
  firstWovenHoldMs?: number;
167
+ /**
168
+ * The SDK's cover across a move or resize of this canvas (see `TileOptions.rectCover`).
169
+ * **Default `'auto'` here** (the core default is `'off'`): a solid cover showing the last frame,
170
+ * raised when the canvas's size, dpr or page position changes and cut when `rewoven()` settles.
171
+ * Pass `'off'` if the page runs its own cover.
172
+ */
173
+ rectCover?: RectCoverOption;
167
174
  }
168
175
 
169
176
  /** What {@link addModel} returns — the same shape as addSplat's handle. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@displayxr/inline3d",
3
- "version": "1.38.0",
3
+ "version": "1.40.0",
4
4
  "description": "Turn any HTML <canvas> into a 3D window on a spatial display, inside an ordinary web page, for the DisplayXR Browser. Dependency-free; progressive enhancement (falls back to plain 2D everywhere else).",
5
5
  "type": "module",
6
6
  "types": "./index.d.ts",
package/splat.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  import type { CursorOptions } from './cursor-depth.js';
5
5
  import type { SceneViewer, SubjectBounds, OrbitPose } from './viewer.js';
6
- import type { FirstWovenResult, ViewerEaseOption, DisplayMetrics } from './index.js';
6
+ import type { FirstWovenResult, RectCoverOption, ViewerEaseOption, DisplayMetrics } from './index.js';
7
7
 
8
8
  /**
9
9
  * The knobs behind `SplatOptions.perf`. Every one is a Spark 2.1.0 setting except `alphaRadius`,
@@ -515,6 +515,13 @@ export interface SplatOptions {
515
515
  observe?: Element;
516
516
  /** Forwarded to the core window: see `TileOptions.firstWovenHoldMs`. */
517
517
  firstWovenHoldMs?: number;
518
+ /**
519
+ * The SDK's cover across a move or resize of this canvas (see `TileOptions.rectCover`).
520
+ * **Default `'auto'` here** (the core default is `'off'`): a solid cover showing the last frame,
521
+ * raised when the canvas's size, dpr or page position changes and cut when `rewoven()` settles.
522
+ * Pass `'off'` if the page runs its own cover.
523
+ */
524
+ rectCover?: RectCoverOption;
518
525
  /**
519
526
  * Who owns the camera. `'viewer'` (the default): the SDK's orbit, idle spin, auto-fit and focus
520
527
  * gestures. `'page'` (`engine: 'playcanvas'` only; throws on Spark): the page drives the camera