subtr-actor-stats-player
v0.3.1
Published
Stats-focused replay player UI for subtr-actor Rocket League replay workflows
Downloads
194
Maintainers
Readme
subtr-actor-stats-player
subtr-actor-stats-player packages the stats-focused replay viewer UI
from this repository as a reusable npm library.
Installation
npm install subtr-actor-stats-player threethree is a peer dependency. The published package pulls in the matching
@colonelpanic8/subtr-actor and subtr-actor-player versions automatically.
Usage
import { mountStatEvaluationPlayer } from "subtr-actor-stats-player";
const root = document.getElementById("app");
if (!(root instanceof HTMLElement)) {
throw new Error("Missing mount point");
}
const player = mountStatEvaluationPlayer(root);
// Later, when you want to tear down the viewer:
player.destroy();The mounted UI exposes the same replay file chooser, replay camera controls, timeline overlays, and per-module stat panels as the in-repo demo app.
The package also exports the stat timeline helpers and overlay utilities used by the viewer, so consumers can build their own derived UI around the same data.
Development
npm --prefix js/stat-evaluation-player install
npm --prefix js/stat-evaluation-player run check
npm --prefix js/stat-evaluation-player run test
npm --prefix js/stat-evaluation-player run build
npm --prefix js/stat-evaluation-player run smoke:installThe build refreshes the local WASM bindings, emits the library bundle in
dist/, and writes declaration files alongside it.
