Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rerun-io/web-viewer

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rerun-io/web-viewer - npm Package Compare versions

Comparing version 0.18.2 to 0.19.0-alpha.2

4

index.d.ts
export type Panel = "top" | "blueprint" | "selection" | "time";
export type PanelState = "hidden" | "collapsed" | "expanded";
export type Backend = "webgpu" | "webgl";
export type VideoDecoder = "auto" | "prefer_software" | "prefer_hardware";
export interface WebViewerOptions {

@@ -9,2 +10,4 @@ /** Url to the example manifest. Unused if `hide_welcome_screen` is set to `true`. */

render_backend?: Backend;
/** Video decoder config used by the viewer. Either "auto", "prefer_software" or "prefer_hardware". */
video_decoder?: VideoDecoder;
/** If set to `true`, hides the welcome screen, which contains our examples. Defaults to `false`. */

@@ -42,2 +45,3 @@ hide_welcome_screen?: boolean;

manifest_url?: string;
video_decoder?: VideoDecoder;
render_backend?: Backend;

@@ -44,0 +48,0 @@ hide_welcome_screen?: boolean;

3

index.js

@@ -71,3 +71,2 @@ let get_wasm_bindgen = null;

this.#canvas.style.height = options.height ?? "360px";
this.#canvas.id = this.#id;
parent.append(this.#canvas);

@@ -89,3 +88,3 @@ // This yield appears to be necessary to ensure that the canvas is attached to the DOM

try {
await this.#handle.start(this.#canvas.id);
await this.#handle.start(this.#canvas);
}

@@ -92,0 +91,0 @@ catch (e) {

@@ -49,2 +49,3 @@ import type { WebHandle, wasm_bindgen } from "./re_viewer";

export type Backend = "webgpu" | "webgl";
export type VideoDecoder = "auto" | "prefer_software" | "prefer_hardware";

@@ -61,2 +62,5 @@ // NOTE: When changing these options, consider how it affects the `web-viewer-react` package:

/** Video decoder config used by the viewer. Either "auto", "prefer_software" or "prefer_hardware". */
video_decoder?: VideoDecoder;
/** If set to `true`, hides the welcome screen, which contains our examples. Defaults to `false`. */

@@ -102,2 +106,3 @@ hide_welcome_screen?: boolean;

manifest_url?: string;
video_decoder?: VideoDecoder,
render_backend?: Backend;

@@ -181,3 +186,2 @@ hide_welcome_screen?: boolean;

this.#canvas.style.height = options.height ?? "360px";
this.#canvas.id = this.#id;
parent.append(this.#canvas);

@@ -202,3 +206,3 @@

try {
await this.#handle.start(this.#canvas.id);
await this.#handle.start(this.#canvas);
} catch (e) {

@@ -205,0 +209,0 @@ this.stop();

{
"name": "@rerun-io/web-viewer",
"version": "0.18.2",
"version": "0.19.0-alpha.2",
"description": "Embed the Rerun web viewer in your app",

@@ -5,0 +5,0 @@ "licenses": [

/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function __wbg_webhandle_free(a: number): void;
export function __wbg_webhandle_free(a: number, b: number): void;
export function webhandle_new(a: number, b: number): void;
export function webhandle_start(a: number, b: number, c: number): number;
export function webhandle_start(a: number, b: number): number;
export function webhandle_toggle_panel_overrides(a: number, b: number): void;

@@ -31,7 +31,10 @@ export function webhandle_override_panel_state(a: number, b: number, c: number, d: number, e: number, f: number): void;

export function wgpu_render_bundle_push_debug_group(a: number, b: number): void;
export function __wbg_intounderlyingsink_free(a: number): void;
export function __wbg_intounderlyingsource_free(a: number, b: number): void;
export function intounderlyingsource_pull(a: number, b: number): number;
export function intounderlyingsource_cancel(a: number): void;
export function __wbg_intounderlyingsink_free(a: number, b: number): void;
export function intounderlyingsink_write(a: number, b: number): number;
export function intounderlyingsink_close(a: number): number;
export function intounderlyingsink_abort(a: number, b: number): number;
export function __wbg_intounderlyingbytesource_free(a: number): void;
export function __wbg_intounderlyingbytesource_free(a: number, b: number): void;
export function intounderlyingbytesource_type(a: number, b: number): void;

@@ -42,5 +45,2 @@ export function intounderlyingbytesource_autoAllocateChunkSize(a: number): number;

export function intounderlyingbytesource_cancel(a: number): void;
export function __wbg_intounderlyingsource_free(a: number): void;
export function intounderlyingsource_pull(a: number, b: number): number;
export function intounderlyingsource_cancel(a: number): void;
export function __wbindgen_malloc(a: number, b: number): number;

@@ -50,19 +50,20 @@ export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;

export const __wbindgen_export_3: WebAssembly.Table;
export function wasm_bindgen__convert__closures__invoke0_mut__hbcbc2dc511276833(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h17be7cca397b4ed3(a: number, b: number): void;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function closure296_externref_shim(a: number, b: number, c: number, d: number): void;
export function closure549_externref_shim(a: number, b: number, c: number, d: number): void;
export function __externref_table_dealloc(a: number): void;
export function wasm_bindgen__convert__closures__invoke0_mut__hca3fde335c0a19d0(a: number, b: number, c: number): void;
export function closure4536_externref_shim(a: number, b: number, c: number): void;
export function wasm_bindgen__convert__closures__invoke0_mut__h284d2b0cb8033e29(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h481a4c2bb2473fc6(a: number, b: number): void;
export function closure7644_externref_shim(a: number, b: number, c: number): void;
export function closure10241_externref_shim(a: number, b: number, c: number): void;
export function closure13018_externref_shim(a: number, b: number, c: number): void;
export function closure13154_externref_shim(a: number, b: number, c: number): void;
export function closure13167_externref_shim(a: number, b: number, c: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he0da33c1926a6213(a: number, b: number, c: number): void;
export function closure5028_externref_shim(a: number, b: number, c: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h856baf669d0650a8(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha28c5a2c57e79949(a: number, b: number): void;
export function closure7227_externref_shim(a: number, b: number, c: number): void;
export function closure8348_externref_shim(a: number, b: number, c: number): void;
export function closure11741_externref_shim(a: number, b: number, c: number): void;
export function closure14646_externref_shim(a: number, b: number, c: number): void;
export function closure14697_externref_shim(a: number, b: number, c: number): void;
export function closure14731_externref_shim(a: number, b: number, c: number): void;
export function __wbindgen_exn_store(a: number): void;
export function __externref_table_alloc(): number;
export function __wbindgen_free(a: number, b: number, c: number): void;
export function closure15848_externref_shim(a: number, b: number, c: number, d: number): void;
export function closure17425_externref_shim(a: number, b: number, c: number, d: number): void;
export function __wbindgen_start(): void;

@@ -78,9 +78,6 @@

/**
* - `url` is an optional URL to either an .rrd file over http, or a Rerun WebSocket server.
* - `manifest_url` is an optional URL to an `examples_manifest.json` file over http.
* - `force_wgpu_backend` is an optional string to force a specific backend, either `webgl` or `webgpu`.
* @param {string} canvas_id
* @param {any} canvas
* @returns {Promise<void>}
*/
start(canvas_id: string): Promise<void>;
start(canvas: any): Promise<void>;
/**

@@ -156,5 +153,5 @@ * @param {boolean | undefined} [value]

readonly memory: WebAssembly.Memory;
readonly __wbg_webhandle_free: (a: number) => void;
readonly __wbg_webhandle_free: (a: number, b: number) => void;
readonly webhandle_new: (a: number, b: number) => void;
readonly webhandle_start: (a: number, b: number, c: number) => number;
readonly webhandle_start: (a: number, b: number) => number;
readonly webhandle_toggle_panel_overrides: (a: number, b: number) => void;

@@ -184,7 +181,10 @@ readonly webhandle_override_panel_state: (a: number, b: number, c: number, d: number, e: number, f: number) => void;

readonly wgpu_render_bundle_push_debug_group: (a: number, b: number) => void;
readonly __wbg_intounderlyingsink_free: (a: number) => void;
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
readonly intounderlyingsource_pull: (a: number, b: number) => number;
readonly intounderlyingsource_cancel: (a: number) => void;
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
readonly intounderlyingsink_write: (a: number, b: number) => number;
readonly intounderlyingsink_close: (a: number) => number;
readonly intounderlyingsink_abort: (a: number, b: number) => number;
readonly __wbg_intounderlyingbytesource_free: (a: number) => void;
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
readonly intounderlyingbytesource_type: (a: number, b: number) => void;

@@ -195,5 +195,2 @@ readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;

readonly intounderlyingbytesource_cancel: (a: number) => void;
readonly __wbg_intounderlyingsource_free: (a: number) => void;
readonly intounderlyingsource_pull: (a: number, b: number) => number;
readonly intounderlyingsource_cancel: (a: number) => void;
readonly __wbindgen_malloc: (a: number, b: number) => number;

@@ -203,19 +200,20 @@ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;

readonly __wbindgen_export_3: WebAssembly.Table;
readonly wasm_bindgen__convert__closures__invoke0_mut__hbcbc2dc511276833: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h17be7cca397b4ed3: (a: number, b: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly closure296_externref_shim: (a: number, b: number, c: number, d: number) => void;
readonly closure549_externref_shim: (a: number, b: number, c: number, d: number) => void;
readonly __externref_table_dealloc: (a: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__hca3fde335c0a19d0: (a: number, b: number, c: number) => void;
readonly closure4536_externref_shim: (a: number, b: number, c: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__h284d2b0cb8033e29: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h481a4c2bb2473fc6: (a: number, b: number) => void;
readonly closure7644_externref_shim: (a: number, b: number, c: number) => void;
readonly closure10241_externref_shim: (a: number, b: number, c: number) => void;
readonly closure13018_externref_shim: (a: number, b: number, c: number) => void;
readonly closure13154_externref_shim: (a: number, b: number, c: number) => void;
readonly closure13167_externref_shim: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he0da33c1926a6213: (a: number, b: number, c: number) => void;
readonly closure5028_externref_shim: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h856baf669d0650a8: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha28c5a2c57e79949: (a: number, b: number) => void;
readonly closure7227_externref_shim: (a: number, b: number, c: number) => void;
readonly closure8348_externref_shim: (a: number, b: number, c: number) => void;
readonly closure11741_externref_shim: (a: number, b: number, c: number) => void;
readonly closure14646_externref_shim: (a: number, b: number, c: number) => void;
readonly closure14697_externref_shim: (a: number, b: number, c: number) => void;
readonly closure14731_externref_shim: (a: number, b: number, c: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
readonly __externref_table_alloc: () => number;
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
readonly closure15848_externref_shim: (a: number, b: number, c: number, d: number) => void;
readonly closure17425_externref_shim: (a: number, b: number, c: number, d: number) => void;
readonly __wbindgen_start: () => void;

@@ -228,9 +226,9 @@ }

*
* @param {InitInput | Promise<InitInput>} module_or_path
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
*
* @returns {Promise<InitOutput>}
*/
declare function wasm_bindgen (module_or_path: InitInput | Promise<InitInput>): Promise<InitOutput>;
declare function wasm_bindgen (module_or_path: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
export type WebHandle = wasm_bindgen.WebHandle;
export default function(): wasm_bindgen;

@@ -44,3 +44,3 @@ # Rerun web viewer

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.18.2/examples/dna.rrd>
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.19.0-alpha.2/examples/dna.rrd>
- A WebSocket connection to the SDK opened via the [`serve`](https://www.rerun.io/docs/reference/sdk-operating-modes#serve) API

@@ -47,0 +47,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc