@rerun-io/web-viewer 0.20.3 → 0.21.0-rc.1
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 +91 -121
- package/re_viewer.js +1792 -1677
- package/re_viewer_bg.wasm +0 -0
- package/re_viewer_bg.wasm.d.ts +13 -25
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.21.0-rc.1/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
|
@@ -2,135 +2,117 @@
|
|
|
2
2
|
declare namespace wasm_bindgen {
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
*/
|
|
7
5
|
export class IntoUnderlyingByteSource {
|
|
8
6
|
free(): void;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @param {ReadableByteStreamController} controller
|
|
9
|
+
*/
|
|
12
10
|
start(controller: ReadableByteStreamController): void;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @param {ReadableByteStreamController} controller
|
|
13
|
+
* @returns {Promise<any>}
|
|
14
|
+
*/
|
|
17
15
|
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
*/
|
|
20
16
|
cancel(): void;
|
|
21
|
-
/**
|
|
22
|
-
*/
|
|
23
17
|
readonly autoAllocateChunkSize: number;
|
|
24
|
-
/**
|
|
25
|
-
*/
|
|
26
18
|
readonly type: string;
|
|
27
19
|
}
|
|
28
|
-
/**
|
|
29
|
-
*/
|
|
30
20
|
export class IntoUnderlyingSink {
|
|
31
21
|
free(): void;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @param {any} chunk
|
|
24
|
+
* @returns {Promise<any>}
|
|
25
|
+
*/
|
|
36
26
|
write(chunk: any): Promise<any>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
/**
|
|
28
|
+
* @returns {Promise<any>}
|
|
29
|
+
*/
|
|
40
30
|
close(): Promise<any>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
/**
|
|
32
|
+
* @param {any} reason
|
|
33
|
+
* @returns {Promise<any>}
|
|
34
|
+
*/
|
|
45
35
|
abort(reason: any): Promise<any>;
|
|
46
36
|
}
|
|
47
|
-
/**
|
|
48
|
-
*/
|
|
49
37
|
export class IntoUnderlyingSource {
|
|
50
38
|
free(): void;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
39
|
+
/**
|
|
40
|
+
* @param {ReadableStreamDefaultController} controller
|
|
41
|
+
* @returns {Promise<any>}
|
|
42
|
+
*/
|
|
55
43
|
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
56
|
-
/**
|
|
57
|
-
*/
|
|
58
44
|
cancel(): void;
|
|
59
45
|
}
|
|
60
|
-
/**
|
|
61
|
-
*/
|
|
62
46
|
export class WebHandle {
|
|
63
47
|
free(): void;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
48
|
+
/**
|
|
49
|
+
* @param {any} app_options
|
|
50
|
+
*/
|
|
67
51
|
constructor(app_options: any);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
52
|
+
/**
|
|
53
|
+
* @param {any} canvas
|
|
54
|
+
* @returns {Promise<void>}
|
|
55
|
+
*/
|
|
72
56
|
start(canvas: any): Promise<void>;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
57
|
+
/**
|
|
58
|
+
* @param {boolean | undefined} [value]
|
|
59
|
+
*/
|
|
76
60
|
toggle_panel_overrides(value?: boolean): void;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
61
|
+
/**
|
|
62
|
+
* @param {string} panel
|
|
63
|
+
* @param {string | undefined} [state]
|
|
64
|
+
*/
|
|
81
65
|
override_panel_state(panel: string, state?: string): void;
|
|
82
|
-
/**
|
|
83
|
-
*/
|
|
84
66
|
destroy(): void;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
67
|
+
/**
|
|
68
|
+
* @returns {boolean}
|
|
69
|
+
*/
|
|
88
70
|
has_panicked(): boolean;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @returns {string | undefined}
|
|
73
|
+
*/
|
|
92
74
|
panic_message(): string | undefined;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
75
|
+
/**
|
|
76
|
+
* @returns {string | undefined}
|
|
77
|
+
*/
|
|
96
78
|
panic_callstack(): string | undefined;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Add a new receiver streaming data from the given url.
|
|
81
|
+
*
|
|
82
|
+
* If `follow_if_http` is `true`, and the url is an HTTP source, the viewer will open the stream
|
|
83
|
+
* in `Following` mode rather than `Playing` mode.
|
|
84
|
+
*
|
|
85
|
+
* Websocket streams are always opened in `Following` mode.
|
|
86
|
+
*
|
|
87
|
+
* It is an error to open a channel twice with the same id.
|
|
88
|
+
* @param {string} url
|
|
89
|
+
* @param {boolean | undefined} [follow_if_http]
|
|
90
|
+
*/
|
|
109
91
|
add_receiver(url: string, follow_if_http?: boolean): void;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
92
|
+
/**
|
|
93
|
+
* @param {string} url
|
|
94
|
+
*/
|
|
113
95
|
remove_receiver(url: string): void;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Open a new channel for streaming data.
|
|
98
|
+
*
|
|
99
|
+
* It is an error to open a channel twice with the same id.
|
|
100
|
+
* @param {string} id
|
|
101
|
+
* @param {string} channel_name
|
|
102
|
+
*/
|
|
121
103
|
open_channel(id: string, channel_name: string): void;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Close an existing channel for streaming data.
|
|
106
|
+
*
|
|
107
|
+
* No-op if the channel is already closed.
|
|
108
|
+
* @param {string} id
|
|
109
|
+
*/
|
|
128
110
|
close_channel(id: string): void;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Add an rrd to the viewer directly from a byte array.
|
|
113
|
+
* @param {string} id
|
|
114
|
+
* @param {Uint8Array} data
|
|
115
|
+
*/
|
|
134
116
|
send_rrd_to_channel(id: string, data: Uint8Array): void;
|
|
135
117
|
}
|
|
136
118
|
|
|
@@ -154,18 +136,6 @@ declare interface InitOutput {
|
|
|
154
136
|
readonly webhandle_open_channel: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
155
137
|
readonly webhandle_close_channel: (a: number, b: number, c: number) => void;
|
|
156
138
|
readonly webhandle_send_rrd_to_channel: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
157
|
-
readonly wgpu_render_bundle_set_pipeline: (a: number, b: number) => void;
|
|
158
|
-
readonly wgpu_render_bundle_set_bind_group: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
159
|
-
readonly wgpu_render_bundle_set_vertex_buffer: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
160
|
-
readonly wgpu_render_bundle_set_push_constants: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
161
|
-
readonly wgpu_render_bundle_draw: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
162
|
-
readonly wgpu_render_bundle_draw_indexed: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
163
|
-
readonly wgpu_render_bundle_draw_indirect: (a: number, b: number, c: number) => void;
|
|
164
|
-
readonly wgpu_render_bundle_draw_indexed_indirect: (a: number, b: number, c: number) => void;
|
|
165
|
-
readonly wgpu_render_bundle_set_index_buffer: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
166
|
-
readonly wgpu_render_bundle_pop_debug_group: (a: number) => void;
|
|
167
|
-
readonly wgpu_render_bundle_insert_debug_marker: (a: number, b: number) => void;
|
|
168
|
-
readonly wgpu_render_bundle_push_debug_group: (a: number, b: number) => void;
|
|
169
139
|
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
170
140
|
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
171
141
|
readonly intounderlyingsink_close: (a: number) => number;
|
|
@@ -183,24 +153,24 @@ declare interface InitOutput {
|
|
|
183
153
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
184
154
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
185
155
|
readonly __wbindgen_export_3: WebAssembly.Table;
|
|
186
|
-
readonly
|
|
156
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18ab8cd6888a26bc: (a: number, b: number) => void;
|
|
187
157
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
188
|
-
readonly
|
|
158
|
+
readonly closure747_externref_shim: (a: number, b: number, c: number, d: number) => void;
|
|
189
159
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
readonly
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly
|
|
198
|
-
readonly
|
|
199
|
-
readonly
|
|
160
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1b73f0caec0ee51a: (a: number, b: number, c: number) => void;
|
|
161
|
+
readonly closure6423_externref_shim: (a: number, b: number, c: number) => void;
|
|
162
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5a313379dcb72344: (a: number, b: number) => void;
|
|
163
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2e0eb163808ae5ad: (a: number, b: number) => void;
|
|
164
|
+
readonly closure8924_externref_shim: (a: number, b: number, c: number) => void;
|
|
165
|
+
readonly closure12551_externref_shim: (a: number, b: number, c: number) => void;
|
|
166
|
+
readonly closure15021_externref_shim: (a: number, b: number, c: number) => void;
|
|
167
|
+
readonly closure15536_externref_shim: (a: number, b: number, c: number) => void;
|
|
168
|
+
readonly closure15904_externref_shim: (a: number, b: number, c: number) => void;
|
|
169
|
+
readonly closure15938_externref_shim: (a: number, b: number, c: number) => void;
|
|
200
170
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
201
171
|
readonly __externref_table_alloc: () => number;
|
|
202
172
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
203
|
-
readonly
|
|
173
|
+
readonly closure20034_externref_shim: (a: number, b: number, c: number, d: number) => void;
|
|
204
174
|
readonly __wbindgen_start: () => void;
|
|
205
175
|
}
|
|
206
176
|
|