@rerun-io/web-viewer 0.0.7 → 0.0.8-alpha.2
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 +4 -0
- package/index.d.ts.map +1 -1
- package/index.js +6 -4
- package/package.json +6 -4
- package/re_viewer_bg.js +21 -21
- package/re_viewer_bg.wasm +0 -0
- package/re_viewer_bg.wasm.d.ts +2 -2
- package/tsconfig.json +2 -3
package/README.md
CHANGED
|
@@ -12,6 +12,10 @@ Embed the Rerun web viewer within your app.
|
|
|
12
12
|
$ npm i @rerun-io/web-viewer
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
ℹ️ Note:
|
|
16
|
+
The package version is equal to the supported rerun SDK version.
|
|
17
|
+
This means that `@rerun-io/web-viewer@0.10.0` can only connect to a data source (`.rrd` file, websocket connection, etc.) that originates from a rerun SDK with version `0.10.0`!
|
|
18
|
+
|
|
15
19
|
## Usage
|
|
16
20
|
|
|
17
21
|
The web viewer is an object which manages a canvas element:
|
package/index.d.ts.map
CHANGED
package/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
/** @type {(typeof import("./re_viewer.js").WebHandle) | null} */
|
|
2
4
|
let WebHandle = null;
|
|
3
5
|
|
|
4
|
-
/** @returns {Promise<(typeof import("./re_viewer").WebHandle)>} */
|
|
6
|
+
/** @returns {Promise<(typeof import("./re_viewer.js").WebHandle)>} */
|
|
5
7
|
async function load() {
|
|
6
8
|
if (WebHandle) {
|
|
7
9
|
return WebHandle;
|
|
8
10
|
}
|
|
9
|
-
WebHandle = (await import("./re_viewer")).WebHandle;
|
|
11
|
+
WebHandle = (await import("./re_viewer.js")).WebHandle;
|
|
10
12
|
return WebHandle;
|
|
11
13
|
}
|
|
12
14
|
|
|
@@ -20,7 +22,7 @@ function randomId() {
|
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export class WebViewer {
|
|
23
|
-
/** @type {(import("./re_viewer").WebHandle) | null} */
|
|
25
|
+
/** @type {(import("./re_viewer.js").WebHandle) | null} */
|
|
24
26
|
#handle = null;
|
|
25
27
|
|
|
26
28
|
/** @type {HTMLCanvasElement | null} */
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rerun-io/web-viewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8-alpha.2",
|
|
4
4
|
"description": "Embed the Rerun web viewer in your app",
|
|
5
5
|
"private": false,
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build:wasm": "cargo run -p re_build_web_viewer -- --release --module -o rerun_js/web-viewer",
|
|
8
|
+
"build:wasm:debug": "cargo run -p re_build_web_viewer -- --debug --module -o rerun_js/web-viewer",
|
|
8
9
|
"build:types": "dts-buddy",
|
|
9
10
|
"build": "npm run build:wasm && npm run build:types",
|
|
10
|
-
"prepublishOnly": "dts-buddy"
|
|
11
|
+
"prepublishOnly": "tsc --noEmit && dts-buddy"
|
|
11
12
|
},
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"tsconfig.json"
|
|
39
40
|
],
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"dts-buddy": "^0.3.0"
|
|
42
|
+
"dts-buddy": "^0.3.0",
|
|
43
|
+
"typescript": "^5.2.2"
|
|
42
44
|
}
|
|
43
|
-
}
|
|
45
|
+
}
|
package/re_viewer_bg.js
CHANGED
|
@@ -222,7 +222,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
222
222
|
return real;
|
|
223
223
|
}
|
|
224
224
|
function __wbg_adapter_34(arg0, arg1) {
|
|
225
|
-
wasm.
|
|
225
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha4863665a94a18d0(arg0, arg1);
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
function __wbg_adapter_37(arg0, arg1) {
|
|
@@ -256,7 +256,7 @@ function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
function __wbg_adapter_58(arg0, arg1, arg2) {
|
|
259
|
-
wasm.
|
|
259
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0147f40c4a3772b2(arg0, arg1, addHeapObject(arg2));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
function __wbg_adapter_61(arg0, arg1, arg2) {
|
|
@@ -709,12 +709,12 @@ export function __wbg_stack_21698d2a5852e13e(arg0, arg1) {
|
|
|
709
709
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
710
710
|
};
|
|
711
711
|
|
|
712
|
-
export function
|
|
712
|
+
export function __wbg_new_3d7007fb0a155275() {
|
|
713
713
|
const ret = new Error();
|
|
714
714
|
return addHeapObject(ret);
|
|
715
715
|
};
|
|
716
716
|
|
|
717
|
-
export function
|
|
717
|
+
export function __wbg_stack_3f383eab673df709(arg0, arg1) {
|
|
718
718
|
const ret = getObject(arg1).stack;
|
|
719
719
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
720
720
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -2678,19 +2678,19 @@ export function __wbg_matches_0f7e350783b542c2(arg0) {
|
|
|
2678
2678
|
return ret;
|
|
2679
2679
|
};
|
|
2680
2680
|
|
|
2681
|
-
export function
|
|
2681
|
+
export function __wbg_warn_a7002e891a407b2a(arg0, arg1) {
|
|
2682
2682
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
2683
2683
|
};
|
|
2684
2684
|
|
|
2685
|
-
export function
|
|
2685
|
+
export function __wbg_info_21a95acfd0b7c7d6(arg0, arg1) {
|
|
2686
2686
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
2687
2687
|
};
|
|
2688
2688
|
|
|
2689
|
-
export function
|
|
2689
|
+
export function __wbg_debug_91d4e48a225b83bf(arg0, arg1) {
|
|
2690
2690
|
console.debug(getStringFromWasm0(arg0, arg1));
|
|
2691
2691
|
};
|
|
2692
2692
|
|
|
2693
|
-
export function
|
|
2693
|
+
export function __wbg_trace_c3c444d8b7f31705(arg0, arg1) {
|
|
2694
2694
|
console.trace(getStringFromWasm0(arg0, arg1));
|
|
2695
2695
|
};
|
|
2696
2696
|
|
|
@@ -3059,52 +3059,52 @@ export function __wbindgen_closure_wrapper2348(arg0, arg1, arg2) {
|
|
|
3059
3059
|
return addHeapObject(ret);
|
|
3060
3060
|
};
|
|
3061
3061
|
|
|
3062
|
-
export function
|
|
3063
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3062
|
+
export function __wbindgen_closure_wrapper5764(arg0, arg1, arg2) {
|
|
3063
|
+
const ret = makeMutClosure(arg0, arg1, 1730, __wbg_adapter_40);
|
|
3064
3064
|
return addHeapObject(ret);
|
|
3065
3065
|
};
|
|
3066
3066
|
|
|
3067
|
-
export function
|
|
3068
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3067
|
+
export function __wbindgen_closure_wrapper5766(arg0, arg1, arg2) {
|
|
3068
|
+
const ret = makeMutClosure(arg0, arg1, 1730, __wbg_adapter_43);
|
|
3069
3069
|
return addHeapObject(ret);
|
|
3070
3070
|
};
|
|
3071
3071
|
|
|
3072
|
-
export function
|
|
3073
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3072
|
+
export function __wbindgen_closure_wrapper5768(arg0, arg1, arg2) {
|
|
3073
|
+
const ret = makeMutClosure(arg0, arg1, 1730, __wbg_adapter_46);
|
|
3074
3074
|
return addHeapObject(ret);
|
|
3075
3075
|
};
|
|
3076
3076
|
|
|
3077
|
-
export function
|
|
3077
|
+
export function __wbindgen_closure_wrapper19362(arg0, arg1, arg2) {
|
|
3078
3078
|
const ret = makeMutClosure(arg0, arg1, 6664, __wbg_adapter_49);
|
|
3079
3079
|
return addHeapObject(ret);
|
|
3080
3080
|
};
|
|
3081
3081
|
|
|
3082
|
-
export function
|
|
3082
|
+
export function __wbindgen_closure_wrapper19364(arg0, arg1, arg2) {
|
|
3083
3083
|
const ret = makeMutClosure(arg0, arg1, 6664, __wbg_adapter_49);
|
|
3084
3084
|
return addHeapObject(ret);
|
|
3085
3085
|
};
|
|
3086
3086
|
|
|
3087
|
-
export function
|
|
3087
|
+
export function __wbindgen_closure_wrapper19366(arg0, arg1, arg2) {
|
|
3088
3088
|
const ret = makeMutClosure(arg0, arg1, 6664, __wbg_adapter_49);
|
|
3089
3089
|
return addHeapObject(ret);
|
|
3090
3090
|
};
|
|
3091
3091
|
|
|
3092
|
-
export function
|
|
3092
|
+
export function __wbindgen_closure_wrapper19368(arg0, arg1, arg2) {
|
|
3093
3093
|
const ret = makeMutClosure(arg0, arg1, 6664, __wbg_adapter_49);
|
|
3094
3094
|
return addHeapObject(ret);
|
|
3095
3095
|
};
|
|
3096
3096
|
|
|
3097
|
-
export function
|
|
3097
|
+
export function __wbindgen_closure_wrapper19822(arg0, arg1, arg2) {
|
|
3098
3098
|
const ret = makeMutClosure(arg0, arg1, 6911, __wbg_adapter_58);
|
|
3099
3099
|
return addHeapObject(ret);
|
|
3100
3100
|
};
|
|
3101
3101
|
|
|
3102
|
-
export function
|
|
3102
|
+
export function __wbindgen_closure_wrapper20545(arg0, arg1, arg2) {
|
|
3103
3103
|
const ret = makeMutClosure(arg0, arg1, 7315, __wbg_adapter_61);
|
|
3104
3104
|
return addHeapObject(ret);
|
|
3105
3105
|
};
|
|
3106
3106
|
|
|
3107
|
-
export function
|
|
3107
|
+
export function __wbindgen_closure_wrapper20577(arg0, arg1, arg2) {
|
|
3108
3108
|
const ret = makeMutClosure(arg0, arg1, 7326, __wbg_adapter_64);
|
|
3109
3109
|
return addHeapObject(ret);
|
|
3110
3110
|
};
|
package/re_viewer_bg.wasm
CHANGED
|
Binary file
|
package/re_viewer_bg.wasm.d.ts
CHANGED
|
@@ -82,14 +82,14 @@ export function intounderlyingsource_cancel(a: number): void;
|
|
|
82
82
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
83
83
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
84
84
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
85
|
-
export function
|
|
85
|
+
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha4863665a94a18d0(a: number, b: number): void;
|
|
86
86
|
export function wasm_bindgen__convert__closures__invoke0_mut__hbb2d466e4a580595(a: number, b: number): void;
|
|
87
87
|
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf64c3fc72d424f95(a: number, b: number): void;
|
|
88
88
|
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcda1bc7f6baacddd(a: number, b: number, c: number): void;
|
|
89
89
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
90
90
|
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3960a85cd94e1623(a: number, b: number, c: number): void;
|
|
91
91
|
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h00f3b5d0b78ac098(a: number, b: number, c: number): void;
|
|
92
|
-
export function
|
|
92
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0147f40c4a3772b2(a: number, b: number, c: number): void;
|
|
93
93
|
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hefb91f3bd6a8bfc9(a: number, b: number, c: number): void;
|
|
94
94
|
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbc8a650979ad564c(a: number, b: number, c: number): void;
|
|
95
95
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
package/tsconfig.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"allowJs": true,
|
|
4
|
-
"checkJs": true,
|
|
5
4
|
"noEmit": true,
|
|
6
5
|
"strict": true,
|
|
7
6
|
"target": "ES2020",
|
|
8
7
|
"module": "ES2022",
|
|
9
8
|
"moduleResolution": "node",
|
|
10
9
|
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
11
|
},
|
|
12
12
|
"include": [
|
|
13
13
|
"index.js",
|
|
14
|
-
|
|
15
|
-
]
|
|
14
|
+
],
|
|
16
15
|
}
|