@rerun-io/web-viewer 0.12.1 → 0.13.0-alpha.4
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/README.md +1 -1
- package/package.json +1 -1
- package/re_viewer.d.ts +9 -46
- package/re_viewer_bg.js +1751 -1082
- package/re_viewer_bg.wasm +0 -0
- package/re_viewer_bg.wasm.d.ts +12 -21
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ viewer.stop();
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
The `rrd` in the snippet above should be a URL pointing to either:
|
|
44
|
-
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.
|
|
44
|
+
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.13.0-alpha.4/examples/dna.rrd>
|
|
45
45
|
- A WebSocket connection to the SDK opened via the [`serve`](https://www.rerun.io/docs/reference/sdk-operating-modes#serve) API
|
|
46
46
|
|
|
47
47
|
If `rrd` is not set, the viewer will display the same welcome screen as <https://app.rerun.io>.
|
package/package.json
CHANGED
package/re_viewer.d.ts
CHANGED
|
@@ -10,22 +10,18 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export function set_email(email: string): void;
|
|
12
12
|
/**
|
|
13
|
-
* @returns {boolean}
|
|
14
|
-
*/
|
|
15
|
-
export function is_webgpu_build(): boolean;
|
|
16
|
-
/**
|
|
17
13
|
*/
|
|
18
14
|
export class IntoUnderlyingByteSource {
|
|
19
15
|
free(): void;
|
|
20
16
|
/**
|
|
21
|
-
* @param {
|
|
17
|
+
* @param {ReadableByteStreamController} controller
|
|
22
18
|
*/
|
|
23
|
-
start(controller:
|
|
19
|
+
start(controller: ReadableByteStreamController): void;
|
|
24
20
|
/**
|
|
25
|
-
* @param {
|
|
21
|
+
* @param {ReadableByteStreamController} controller
|
|
26
22
|
* @returns {Promise<any>}
|
|
27
23
|
*/
|
|
28
|
-
pull(controller:
|
|
24
|
+
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
29
25
|
/**
|
|
30
26
|
*/
|
|
31
27
|
cancel(): void;
|
|
@@ -60,50 +56,15 @@ export class IntoUnderlyingSink {
|
|
|
60
56
|
export class IntoUnderlyingSource {
|
|
61
57
|
free(): void;
|
|
62
58
|
/**
|
|
63
|
-
* @param {
|
|
59
|
+
* @param {ReadableStreamDefaultController} controller
|
|
64
60
|
* @returns {Promise<any>}
|
|
65
61
|
*/
|
|
66
|
-
pull(controller:
|
|
62
|
+
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
67
63
|
/**
|
|
68
64
|
*/
|
|
69
65
|
cancel(): void;
|
|
70
66
|
}
|
|
71
67
|
/**
|
|
72
|
-
* Raw options for [`pipeTo()`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo).
|
|
73
|
-
*/
|
|
74
|
-
export class PipeOptions {
|
|
75
|
-
free(): void;
|
|
76
|
-
/**
|
|
77
|
-
*/
|
|
78
|
-
readonly preventAbort: boolean;
|
|
79
|
-
/**
|
|
80
|
-
*/
|
|
81
|
-
readonly preventCancel: boolean;
|
|
82
|
-
/**
|
|
83
|
-
*/
|
|
84
|
-
readonly preventClose: boolean;
|
|
85
|
-
/**
|
|
86
|
-
*/
|
|
87
|
-
readonly signal: AbortSignal | undefined;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
*/
|
|
91
|
-
export class QueuingStrategy {
|
|
92
|
-
free(): void;
|
|
93
|
-
/**
|
|
94
|
-
*/
|
|
95
|
-
readonly highWaterMark: number;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Raw options for [`getReader()`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/getReader).
|
|
99
|
-
*/
|
|
100
|
-
export class ReadableStreamGetReaderOptions {
|
|
101
|
-
free(): void;
|
|
102
|
-
/**
|
|
103
|
-
*/
|
|
104
|
-
readonly mode: any;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
68
|
*/
|
|
108
69
|
export class WebHandle {
|
|
109
70
|
free(): void;
|
|
@@ -113,12 +74,14 @@ export class WebHandle {
|
|
|
113
74
|
/**
|
|
114
75
|
* - `url` is an optional URL to either an .rrd file over http, or a Rerun WebSocket server.
|
|
115
76
|
* - `manifest_url` is an optional URL to an `examples_manifest.json` file over http.
|
|
77
|
+
* - `force_wgpu_backend` is an optional string to force a specific backend, either `webgl` or `webgpu`.
|
|
116
78
|
* @param {string} canvas_id
|
|
117
79
|
* @param {string | undefined} [url]
|
|
118
80
|
* @param {string | undefined} [manifest_url]
|
|
81
|
+
* @param {string | undefined} [force_wgpu_backend]
|
|
119
82
|
* @returns {Promise<void>}
|
|
120
83
|
*/
|
|
121
|
-
start(canvas_id: string, url?: string, manifest_url?: string): Promise<void>;
|
|
84
|
+
start(canvas_id: string, url?: string, manifest_url?: string, force_wgpu_backend?: string): Promise<void>;
|
|
122
85
|
/**
|
|
123
86
|
*/
|
|
124
87
|
destroy(): void;
|