@rerun-io/web-viewer 0.12.1 → 0.13.0-alpha.12
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/index.d.ts +69 -0
- package/index.d.ts.map +10 -3
- package/package.json +16 -5
- package/re_viewer.d.ts +9 -46
- package/re_viewer_bg.js +1752 -1083
- 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.12
|
|
44
|
+
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.13.0-alpha.12/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/index.d.ts
CHANGED
|
@@ -37,4 +37,73 @@ declare module '@rerun-io/web-viewer' {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
declare module '@rerun-io/web-viewer/re_viewer.js' {
|
|
41
|
+
/* tslint:disable */
|
|
42
|
+
/* eslint-disable */
|
|
43
|
+
/**
|
|
44
|
+
* Used to set the "email" property in the analytics config,
|
|
45
|
+
* in the same way as `rerun analytics email YOURNAME@rerun.io`.
|
|
46
|
+
*
|
|
47
|
+
* This one just panics when it fails, as it's only ever really run
|
|
48
|
+
* by rerun employees manually in `app.rerun.io`.
|
|
49
|
+
* */
|
|
50
|
+
export function set_email(email: string): void;
|
|
51
|
+
|
|
52
|
+
export class IntoUnderlyingByteSource {
|
|
53
|
+
free(): void;
|
|
54
|
+
|
|
55
|
+
start(controller: ReadableByteStreamController): void;
|
|
56
|
+
|
|
57
|
+
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
58
|
+
|
|
59
|
+
cancel(): void;
|
|
60
|
+
|
|
61
|
+
readonly autoAllocateChunkSize: number;
|
|
62
|
+
|
|
63
|
+
readonly type: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class IntoUnderlyingSink {
|
|
67
|
+
free(): void;
|
|
68
|
+
|
|
69
|
+
write(chunk: any): Promise<any>;
|
|
70
|
+
|
|
71
|
+
close(): Promise<any>;
|
|
72
|
+
|
|
73
|
+
abort(reason: any): Promise<any>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export class IntoUnderlyingSource {
|
|
77
|
+
free(): void;
|
|
78
|
+
|
|
79
|
+
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
80
|
+
|
|
81
|
+
cancel(): void;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export class WebHandle {
|
|
85
|
+
free(): void;
|
|
86
|
+
|
|
87
|
+
constructor();
|
|
88
|
+
/**
|
|
89
|
+
* - `url` is an optional URL to either an .rrd file over http, or a Rerun WebSocket server.
|
|
90
|
+
* - `manifest_url` is an optional URL to an `examples_manifest.json` file over http.
|
|
91
|
+
* - `force_wgpu_backend` is an optional string to force a specific backend, either `webgl` or `webgpu`.
|
|
92
|
+
* */
|
|
93
|
+
start(canvas_id: string, url?: string, manifest_url?: string, force_wgpu_backend?: string): Promise<void>;
|
|
94
|
+
|
|
95
|
+
destroy(): void;
|
|
96
|
+
|
|
97
|
+
has_panicked(): boolean;
|
|
98
|
+
|
|
99
|
+
panic_message(): string | undefined;
|
|
100
|
+
|
|
101
|
+
panic_callstack(): string | undefined;
|
|
102
|
+
|
|
103
|
+
add_receiver(url: string): void;
|
|
104
|
+
|
|
105
|
+
remove_receiver(url: string): void;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
40
109
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -2,13 +2,20 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"file": "index.d.ts",
|
|
4
4
|
"names": [
|
|
5
|
-
"WebViewer"
|
|
5
|
+
"WebViewer",
|
|
6
|
+
"set_email",
|
|
7
|
+
"IntoUnderlyingByteSource",
|
|
8
|
+
"IntoUnderlyingSink",
|
|
9
|
+
"IntoUnderlyingSource",
|
|
10
|
+
"WebHandle"
|
|
6
11
|
],
|
|
7
12
|
"sources": [
|
|
8
|
-
"index.js"
|
|
13
|
+
"index.js",
|
|
14
|
+
"re_viewer.d.ts"
|
|
9
15
|
],
|
|
10
16
|
"sourcesContent": [
|
|
17
|
+
null,
|
|
11
18
|
null
|
|
12
19
|
],
|
|
13
|
-
"mappings": ";cAuBaA,SAASA"
|
|
20
|
+
"mappings": ";cAuBaA,SAASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBCbNC,SAASA;;eAGZC,wBAAwBA;;;;;;;;;;;;;;eAuBxBC,kBAAkBA;;;;;;;;;;eAmBlBC,oBAAoBA;;;;;;;;eAapBC,SAASA"
|
|
14
21
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rerun-io/web-viewer",
|
|
3
|
-
"version": "0.12
|
|
3
|
+
"version": "0.13.0-alpha.12",
|
|
4
4
|
"description": "Embed the Rerun web viewer in your app",
|
|
5
|
-
"
|
|
5
|
+
"licenses": [
|
|
6
|
+
{
|
|
7
|
+
"type": "MIT"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "Apache-2.0"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
6
13
|
"scripts": {
|
|
7
14
|
"build:wasm": "cargo run -p re_build_web_viewer -- --release --module -o rerun_js/web-viewer",
|
|
8
15
|
"build:wasm:debug": "cargo run -p re_build_web_viewer -- --debug --module -o rerun_js/web-viewer",
|
|
9
|
-
"build:types": "dts-buddy",
|
|
10
|
-
"build": "npm run build:wasm && npm run build:types"
|
|
11
|
-
"prepublishOnly": "tsc --noEmit && dts-buddy"
|
|
16
|
+
"build:types": "tsc --noEmit && dts-buddy",
|
|
17
|
+
"build": "npm run build:wasm && npm run build:types"
|
|
12
18
|
},
|
|
13
19
|
"repository": {
|
|
14
20
|
"type": "git",
|
|
@@ -20,10 +26,15 @@
|
|
|
20
26
|
"url": "https://github.com/rerun-io/rerun/issues"
|
|
21
27
|
},
|
|
22
28
|
"homepage": "https://rerun.io",
|
|
29
|
+
"type": "module",
|
|
23
30
|
"exports": {
|
|
24
31
|
".": {
|
|
25
32
|
"types": "./index.d.ts",
|
|
26
33
|
"import": "./index.js"
|
|
34
|
+
},
|
|
35
|
+
"./re_viewer.js": {
|
|
36
|
+
"types": "./re_viewer.d.ts",
|
|
37
|
+
"import": "./re_viewer.js"
|
|
27
38
|
}
|
|
28
39
|
},
|
|
29
40
|
"files": [
|
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;
|