@rerun-io/web-viewer 0.0.5 → 0.0.7
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 +5 -7
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@ Embed the Rerun web viewer within your app.
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
```
|
|
12
|
-
npm i @rerun-io/web-viewer
|
|
11
|
+
```
|
|
12
|
+
$ npm i @rerun-io/web-viewer
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
@@ -24,8 +24,7 @@ const parentElement = document.body;
|
|
|
24
24
|
|
|
25
25
|
const viewer = new WebViewer();
|
|
26
26
|
await viewer.start(URL, parentElement);
|
|
27
|
-
|
|
28
|
-
// Once you're done with it, call `stop`:
|
|
27
|
+
// ...
|
|
29
28
|
viewer.stop();
|
|
30
29
|
```
|
|
31
30
|
|
|
@@ -35,11 +34,10 @@ For a live example, see https://github.com/rerun-io/web-viewer-example.
|
|
|
35
34
|
|
|
36
35
|
ℹ️ Note:
|
|
37
36
|
This package only targets recent versions of browsers.
|
|
38
|
-
If your target browser does not support Wasm imports
|
|
39
|
-
you may need to install additional plugins for your bundler.
|
|
37
|
+
If your target browser does not support Wasm imports, you may need to install additional plugins for your bundler.
|
|
40
38
|
|
|
41
39
|
## Development
|
|
42
40
|
|
|
43
41
|
```
|
|
44
|
-
npm run build
|
|
42
|
+
$ npm run build
|
|
45
43
|
```
|
package/package.json
CHANGED