Skip to content

Commit

Permalink
docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Saffo, David committed Oct 1, 2024
1 parent a3c003c commit 4ca3cf5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
4 changes: 4 additions & 0 deletions docs/anu-examples/NodeLink3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ export function nodelink3d (engine) {
//Camera Setup
const camera = new ArcRotateCamera("Camera", -(Math.PI / 4) * 3, Math.PI / 4, 10, new Vector3(0, 0, 0), scene);
camera.position = new Vector3(1,1,0.17);
camera.minZ = 0.1;
camera.attachControl(true);



//Visualization Code Start

//Create a color scale returning color4 for our nodes
Expand All @@ -36,6 +38,8 @@ export function nodelink3d (engine) {
.on("tick", ticked)
.on("end", () => simulation.stop());



//create a "container" or empty mesh to act as the root node for our network
//childObserver true will ensure the bounding box updates to fit the extend of the children nodes
let cot = anu.bind('container');
Expand Down
7 changes: 3 additions & 4 deletions docs/anu-examples/Texture_Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ export function textureMap(babylonEngine){
let cot = anu.selectName('map', scene);


// cot.run((d,n,i) => {
// textureMap.parent = n;
// n.normalizeToUnitCube();
// }).positionY(0.5)

textureMap.scaling = new Vector3(0.05,0.05,0.05)



//Use binInstace to create an instance of root sphere for each data point
Expand Down
16 changes: 8 additions & 8 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@babylonjs/gui": "^7.1.0",
"@babylonjs/inspector": "^7.1.0",
"@babylonjs/loaders": "^7.1.0",
"@jpmorganchase/anu": "latest",
"@jpmorganchase/anu": "0.1.3",
"d3": "^7.9.0",
"d3-force-3d": "^3.0.5",
"vite-plugin-dynamic-import": "^1.5.0",
Expand Down

0 comments on commit 4ca3cf5

Please sign in to comment.