Skip to content

Commit 15cce8c

Browse files
committed
chore: update dependencies and devDependencies across multiple package.json files
- Updated @tutorialkit/react, react, and react-dom to latest versions in anu-tutorial. - Upgraded various Babylon.js packages and other dependencies in docs/package.json. - Updated chroma-js, earcut, ol, and other dependencies in root package.json. - Updated TypeScript and ESLint related packages in root package.json. - Changed moduleResolution from "node" to "bundler" in tsconfig.json.
1 parent 168210e commit 15cce8c

8 files changed

Lines changed: 2082 additions & 1522 deletions

File tree

anu-examples/examples/Networks/NodeLink3D.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ export const nodelink3d = function (engine) {
9999

100100
camera.setTarget(cot.selected[0])
101101

102+
// Stop the simulation when the scene is disposed to prevent errors when navigating away
103+
scene.onDisposeObservable.add(() => {
104+
simulation.stop();
105+
});
106+
102107
return scene
103108
}
104109

anu-examples/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
"preview": "vite preview"
99
},
1010
"devDependencies": {
11-
"@rollup/plugin-dsv": "^3.0.4",
12-
"vite": "^3.2.7"
11+
"@rollup/plugin-dsv": "^3.0.5",
12+
"vite": "^7.2.7"
1313
},
1414
"dependencies": {
15-
"@babylonjs/core": "^8.1.1",
16-
"@babylonjs/gui": "^8.1.1",
15+
"@babylonjs/core": "^8.40.1",
16+
"@babylonjs/gui": "^8.40.1",
1717
"@babylonjs/havok": "^1.3.10",
18-
"@babylonjs/inspector": "^8.1.1",
19-
"@babylonjs/materials": "^8.1.1",
18+
"@babylonjs/inspector": "^8.40.1",
19+
"@babylonjs/materials": "^8.40.1",
2020
"@jpmorganchase/anu": "latest",
21-
"d3": "^7.6.1",
22-
"d3-force-3d": "^3.0.5",
23-
"earcut": "^3.0.1",
21+
"d3": "^7.9.0",
22+
"d3-force-3d": "^3.0.6",
23+
"earcut": "^3.0.2",
2424
"simplify-3d": "^1.0.0",
2525
"topojson-simplify": "^3.0.3"
2626
}

docs/anu-examples/NodeLink3D.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,10 @@ export function nodelink3d(engine) {
7979
//The network can get quite big in size (spatial size), so here we run a function to scale the entire network down to a 1x1x1 box
8080
network.run((d,n,i) => n.normalizeToUnitCube());
8181

82+
// Store the simulation on the scene metadata so it can be stopped when the scene is disposed
83+
scene.onDisposeObservable.add(() => {
84+
simulation.stop();
85+
});
86+
8287
return scene;
8388
}

0 commit comments

Comments
 (0)