@displayxr/inline3d 1.48.0 → 1.49.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.
@@ -426,16 +426,20 @@ class StereoCamera {
426
426
  * Open the best camera. `prefer`: `'auto'` (default — a stereo device when one is present: the
427
427
  * DisplayXR Browser's "3D Camera", or a device delivering > 2.5:1 frames; else the default
428
428
  * webcam), `'stereo'` (prefer the pair, fall back to mono), `'mono'` (never probe), a `deviceId`,
429
- * or a `MediaStream` you own (then `format` declares what it is — 3D-ness is never guessed from
429
+ * `'label:<text>'` (the first camera whose label contains the text, case-insensitive), or a
430
+ * `MediaStream` you own (then `format` declares what it is — 3D-ness is never guessed from
430
431
  * a stream). A camera held by another process (an eye tracker) is skipped, never fatal; the
431
432
  * promise rejects only when NO camera opens, with `code` `'camera-busy'` (every device is held),
432
433
  * `'permission-denied'`, or `'no-camera'`, and `skipped` listing every device tried.
433
434
  *
434
435
  * A probe never opens a device whose label marks it as a sensor rather than a camera (a hand-tracking
435
- * camera, an eye tracker's or depth camera's stream — capture.js CAMERA_EXCLUDE_BUILTIN), nor one
436
- * matching `exclude` (strings: a label substring, case-insensitive, or an exact deviceId; RegExps:
437
- * the label). `exclude: false` turns the built-in list off too. Left-out devices are in `skipped`
438
- * with `excluded: true`. An explicit `deviceId` is the page's choice and is opened regardless.
436
+ * camera — an Ultraleap enumerates as just "Ultraleap" — an eye tracker's, infrared or depth
437
+ * camera's stream — capture.js CAMERA_EXCLUDE_BUILTIN), nor one matching `exclude` (strings: a
438
+ * label substring, case-insensitive, or an exact deviceId; RegExps: the label). While a listed
439
+ * device is excluded and labels are visible, the default camera is not opened blind: the first
440
+ * other camera is opened by id. `exclude: false` turns the built-in list off too. Left-out devices
441
+ * are in `skipped` with `excluded: true`. An explicit `deviceId` or `label:` is the page's choice
442
+ * and is opened regardless.
439
443
  *
440
444
  * @param {object|string|MediaStream} [opts] `{ prefer, format, calibration, rectify, exclude, debug }` (or just `prefer`)
441
445
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@displayxr/inline3d",
3
- "version": "1.48.0",
3
+ "version": "1.49.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",