@uptimizr/replay 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -11
- package/dist/uptimizr-replay.global.js +7 -7
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ const events = await fetchSessionEvents({
|
|
|
33
33
|
|
|
34
34
|
const driver = createBabylonReplayDriver({
|
|
35
35
|
scene,
|
|
36
|
-
onPointer: (screen, hitPoint, hitMesh) => {
|
|
36
|
+
onPointer: (screen, hitPoint, hitMesh, type) => {
|
|
37
37
|
/* render a pointer marker */
|
|
38
38
|
},
|
|
39
39
|
});
|
|
@@ -67,16 +67,18 @@ backdrop.dispose();
|
|
|
67
67
|
(`{ rootNodes, meshes, container, dispose() }`). Its `dispose()` removes
|
|
68
68
|
everything it added and releases the GPU resources, so the hosted slice can
|
|
69
69
|
replace one dropped model with the next. The default loader lazily imports
|
|
70
|
-
Babylon's
|
|
71
|
-
backdrop is actually requested; pass `options.load` to supply your own
|
|
72
|
-
`options.pluginExtension` to force a parser.
|
|
73
|
-
|
|
70
|
+
Babylon's `LoadAssetContainerAsync`, so the lean replay path never pulls it in
|
|
71
|
+
unless a backdrop is actually requested; pass `options.load` to supply your own
|
|
72
|
+
loader, or `options.pluginExtension` to force a parser. For glTF/GLB assets,
|
|
73
|
+
register the loader in the host app (for example `import "@babylonjs/loaders/glTF";`).
|
|
74
|
+
Loaded actor/subtree nodes re-drive exactly like any other scene node
|
|
75
|
+
(`node_transform`, ADR 0033).
|
|
74
76
|
|
|
75
77
|
With the **global** one-call entry point, pass `backdropUrl` (it reuses the host
|
|
76
78
|
page's Babylon loader so the IIFE never bundles a second `SceneLoader`):
|
|
77
79
|
|
|
78
|
-
```
|
|
79
|
-
await replayInScene({
|
|
80
|
+
```js
|
|
81
|
+
await window.UptimizrReplay.replayInScene({
|
|
80
82
|
scene,
|
|
81
83
|
endpoint: "https://collect.example.com",
|
|
82
84
|
apiKey: "utk_…",
|
|
@@ -120,11 +122,13 @@ The replay endpoint requires `ENABLE_RAW_SESSION_RETENTION` on the collector.
|
|
|
120
122
|
from an animation loop. Seeking backward resets the driver and replays from the
|
|
121
123
|
start, so playback is deterministic.
|
|
122
124
|
- `ReplayDriver` is the engine extension point: implement `{ reset, apply }` for
|
|
123
|
-
another engine and pass it to `ReplayPlayer`. Babylon
|
|
124
|
-
|
|
125
|
+
another engine and pass it to `ReplayPlayer`. Babylon
|
|
126
|
+
(`@uptimizr/replay/babylon`), Babylon Lite (`@uptimizr/replay/babylon-lite`),
|
|
127
|
+
three.js (`@uptimizr/replay/three`), and PlayCanvas
|
|
128
|
+
(`@uptimizr/replay/playcanvas`) drivers ship in the box.
|
|
125
129
|
|
|
126
|
-
`@babylonjs/core` and `
|
|
127
|
-
need the one whose driver you import.
|
|
130
|
+
`@babylonjs/core`, `@babylonjs/lite`, `three`, and `playcanvas` are **optional
|
|
131
|
+
peer dependencies** — you only need the one whose driver you import.
|
|
128
132
|
|
|
129
133
|
## Develop
|
|
130
134
|
|