0.8.0
New UI visualization modules
You can now add 3D visualization of an activity to your own apps.
-
@modelhealth/viewer-react— a new npm package providingView3D, an embeddable React Three Fiber component that renders an activity as a 3D view, with playback driven through an imperative handle (play/pause/seek/step/setPlaybackSpeed) rather than built-in controls, so consumers can build their own UI around it. -
ModelHealthUI— a new Swift target/product providingView3D/View3DController, a WKWebView-based wrapper for the 3D view for iOS/macOS apps. Depends onModelHealth; import it separately (import ModelHealthUI) so apps that don't need the 3D view don't pay for WebKit/SwiftUI. Supports each of theplay/pause/seek/step/setPlaybackSpeedthat the TypeScript viewer supports.
Added
-
setVideoUploadMode(_:)/setVideoUploadMode(mode)/set_video_upload_mode(mode)— sets the video upload mode, controlling whether connected devices upload recorded video. -
VideoUploadMode— a new enum withenabled,disabled, andflushvalues, passed tosetVideoUploadMode.flushre-enables uploads and uploads any videos that were queued locally on the iOS device while upload was disabled. -
newSession(from:)/newSessionFromSession(session)/new_session_from_session(session)— creates a new session from a previous session, inheriting its calibration setup, so a new subject can be calibrated without repeating checkerboard calibration.