mujoco-react 3.0.0 → 4.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mujoco-react",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Composable React Three Fiber building blocks for MuJoCo WASM simulations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -156,7 +156,7 @@ export async function loadScene(
156
156
 
157
157
  const baseUrl =
158
158
  config.baseUrl ||
159
- `https://raw.githubusercontent.com/google-deepmind/mujoco_menagerie/main/${config.robotId}/`;
159
+ `https://raw.githubusercontent.com/google-deepmind/mujoco_menagerie/main/${config.modelId}/`;
160
160
 
161
161
  const downloaded = new Set<string>();
162
162
  const queue: string[] = [config.sceneFile];
package/src/types.ts CHANGED
@@ -284,7 +284,7 @@ export interface XmlPatch {
284
284
  }
285
285
 
286
286
  export interface SceneConfig {
287
- robotId: string;
287
+ modelId: string;
288
288
  sceneFile: string;
289
289
  baseUrl?: string;
290
290
  sceneObjects?: SceneObject[];