@rerun-io/web-viewer-react
Advanced tools
Comparing version 0.17.0-alpha.8 to 0.17.0-alpha.9
@@ -47,2 +47,4 @@ import React, { createRef } from "react"; | ||
hide_welcome_screen: this.#hide_welcome_screen, | ||
width: "100%", | ||
height: "100%", | ||
}); | ||
@@ -65,3 +67,3 @@ } | ||
render() { | ||
const { width = "100%", height = "640px" } = this.props; | ||
const { width = "640px", height = "360px" } = this.props; | ||
return React.createElement("div", { | ||
@@ -68,0 +70,0 @@ className: "rerun-web-viewer", |
{ | ||
"name": "@rerun-io/web-viewer-react", | ||
"version": "0.17.0-alpha.8", | ||
"version": "0.17.0-alpha.9", | ||
"description": "Embed the Rerun web viewer in your React app", | ||
@@ -42,3 +42,3 @@ "licenses": [ | ||
"dependencies": { | ||
"@rerun-io/web-viewer": "0.17.0-alpha.8", | ||
"@rerun-io/web-viewer": "0.17.0-alpha.9", | ||
"@types/react": "^18.2.33", | ||
@@ -45,0 +45,0 @@ "react": "^18.2.0" |
@@ -24,3 +24,3 @@ # Rerun web viewer | ||
âšī¸ Note: | ||
The package version is equal to the supported Rerun SDK version. | ||
The package version is equal to the supported Rerun SDK version, and [RRD files are not yet stable across different versions](https://github.com/rerun-io/rerun/issues/6410). | ||
This means that `@rerun-io/web-viewer-react@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`! | ||
@@ -34,3 +34,3 @@ | ||
export default function App() { | ||
return <WebViewer rrd="..."> | ||
return <WebViewer width="800px" height="600px" rrd="..."> | ||
} | ||
@@ -40,9 +40,13 @@ ``` | ||
The `rrd` in the snippet above should be a URL pointing to either: | ||
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.17.0-alpha.8/examples/dna.rrd> | ||
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.17.0-alpha.9/examples/dna.rrd> | ||
- A WebSocket connection to the SDK opened via the [`serve`](https://www.rerun.io/docs/reference/sdk-operating-modes#serve) API | ||
If `rrd` is not set, the Viewer will display the same welcome screen as <https://app.rerun.io>. | ||
This can be disabled by setting the `hide_welcome_screen` prop to `true`. | ||
â It's important to set the viewer's width and height, as without it the viewer may not display correctly. | ||
Setting the values to empty strings is valid, as long as you style the canvas through other means. | ||
âšī¸ Note: | ||
This package only targets recent versions of browsers. | ||
If your target browser does not support Wasm imports or top-level await, you may need to install additional plugins for your bundler. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7736
147
50
+ Added@rerun-io/web-viewer@0.17.0-alpha.9(transitive)
- Removed@rerun-io/web-viewer@0.17.0-alpha.8(transitive)