Skip to content

feat: support trame client_type="react" - #100

Merged
jourdain merged 1 commit into
masterfrom
add-react-support-squash
Sep 9, 2026
Merged

jourdain merged 1 commit into
masterfrom
add-react-support-squash

Conversation

@jourdain

@jourdain jourdain commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Add react-components/ (TypeScript) providing the VtkLocal component for the native React client that ships with trame-client, mirroring vue-components/: same wasm runtime/remote-session management (shared window registries + trame.refs.vtkWASM), scene sync through the vtklocal.get.* RPCs, camera/listener observers, progress overlay and the imperative surface (update, resetCamera, invoke, evalStateExtract, startWebXR, ...) through refs for server js_call. src/utils.js is shared verbatim with vue-components.

The module setup selects the client bundle by server.client_type (trame_vtklocal.umd.js + vue_use, or trame_vtklocal_react.umd.cjs + react_use); CI builds both bundles.

Add react-components/ (TypeScript) providing the VtkLocal component for
the native React client that ships with trame-client, mirroring
vue-components/: same wasm runtime/remote-session management (shared
window registries + trame.refs.vtkWASM), scene sync through the
vtklocal.get.* RPCs, camera/listener observers, progress overlay and the
imperative surface (update, resetCamera, invoke, evalStateExtract,
startWebXR, ...) through refs for server js_call. src/utils.js is shared
verbatim with vue-components.

The module setup selects the client bundle by server.client_type
(trame_vtklocal.umd.js + vue_use, or trame_vtklocal_react.umd.cjs +
react_use); CI builds both bundles.
@jourdain
jourdain merged commit 8b1ac5b into master Sep 9, 2026
6 checks passed
@jourdain
jourdain deleted the add-react-support-squash branch September 9, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants