lecodes-sdk 2.4.2 → 2.4.3

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.
@@ -7,8 +7,8 @@
7
7
  // closes it with the scene. `@permission camera` on start: the host asks, the halves never do.
8
8
  // What a session finds in the camera's picture and drives an entity to: an image target (a printed
9
9
  // picture, by its bytes) and, since contract version 2, a QR code (a printed symbol, by its text) —
10
- // both through the `image` event. Codes are the web's (WebXR) first: the native halves take them and
11
- // say they track none yet.
10
+ // both through the `image` event. Codes are qr-anchor's on every platform: its wasm in the WebXR arm,
11
+ // its C ABI on ARKit / ARCore (the plain-camera web arm tracks none and says so).
12
12
  import type { Service, File, Entity, Scene3D, f64 } from "../../../plugin"
13
13
 
14
14
  export type ARMode = "world" | "images"
@@ -37,8 +37,8 @@ export interface ImageTarget {
37
37
 
38
38
  /** A printed QR code the session tracks: found by its text in the camera's picture; while
39
39
  * tracked its entity is driven like an image target's — a rigid pose in metres, no scale — the
40
- * symbol's centre, Y out of it, X along its top edge, Z towards its bottom. Web (WebXR) first;
41
- * the native halves later. */
40
+ * symbol's centre, Y out of it, X along its top edge, Z towards its bottom. WebXR, ARKit and
41
+ * ARCore; a half without a detector (the plain-camera web arm) tracks none. */
42
42
  export interface QRTarget {
43
43
  /** The code's text: a symbol with another text is not this target. "" = ANY code (the first
44
44
  * one decoded): a test, or a plaque whose text is not known to the app. */
@@ -132,7 +132,7 @@ export interface AR extends Service<"ar", ARParams, AREvents> {
132
132
  /** The twin of `setImages` for QR codes: replace the set of QR targets of a RUNNING session
133
133
  * without restarting it; a code no longer in the set stops driving its entity (`tracked: false`
134
134
  * once if it was tracked). Before `start`, the codes are `StartOptions.codes`. A half that tracks
135
- * no codes yet (the native ones) rejects "failed".
135
+ * no codes (the plain-camera web arm) rejects "failed".
136
136
  * @since 2
137
137
  * @rejects notRunning failed */
138
138
  setCodes(codes: QRTarget[]): Promise<void>
@@ -22,7 +22,7 @@ export declare const setImages: (service: ServiceChannel<AREvents>, images: Imag
22
22
  /** The twin of `setImages` for QR codes: replace the set of QR targets of a RUNNING session
23
23
  * without restarting it; a code no longer in the set stops driving its entity (`tracked: false`
24
24
  * once if it was tracked). Before `start`, the codes are `StartOptions.codes`. A half that tracks
25
- * no codes yet (the native ones) rejects "failed".
25
+ * no codes (the plain-camera web arm) rejects "failed".
26
26
  * Contract version 2: an older half rejects the call — ask `supports("setCodes")`.
27
27
  * Rejects with "notRunning" / "failed". */
28
28
  export declare const setCodes: (service: ServiceChannel<AREvents>, codes: QRTarget[]) => Promise<void>;
@@ -65,7 +65,7 @@ export declare class ARBase extends ServiceChannel<AREvents> {
65
65
  /** The twin of `setImages` for QR codes: replace the set of QR targets of a RUNNING session
66
66
  * without restarting it; a code no longer in the set stops driving its entity (`tracked: false`
67
67
  * once if it was tracked). Before `start`, the codes are `StartOptions.codes`. A half that tracks
68
- * no codes yet (the native ones) rejects "failed".
68
+ * no codes (the plain-camera web arm) rejects "failed".
69
69
  * Contract version 2: an older half rejects the call — ask `supports("setCodes")`.
70
70
  * Rejects with "notRunning" / "failed". */
71
71
  setCodes(codes: QRTarget[]): Promise<void>;
@@ -6,7 +6,8 @@ export interface BrowserOpenOptions {
6
6
  /** What ends the page: a URL prefix, or several (a checkout's success and failure URLs). The
7
7
  * promise resolves with the URL reached. In the sheet every prefix must share one scheme — the
8
8
  * platform intercepts one; a custom scheme needs app.json `urlScheme`, an https one the app's
9
- * verified links. */
9
+ * verified links (app.json `appLinks`). Embedded, the view intercepts the navigation itself,
10
+ * and a verified https return from another app (a bank's) ends the page too. */
10
11
  returnUrl?: string | string[];
11
12
  /** Run the page in an embedded WebView under a close bar instead of the system sheet. The
12
13
  * WebView intercepts any return URL itself, https included. */
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "2.4.2";
1
+ export declare const SDK_VERSION = "2.4.3";
2
2
  /** The major of a semver string, or null when it is not one. */
3
3
  export declare const sdkMajor: (version: string | null | undefined) => number | null;
4
4
  /** The `// sdk: <version>` line of a compiled bundle's header (sdk/src/compile/header.ts), read from