Browse Source

Presentation details.

master
Pete Shadbolt 6 years ago
parent
commit
87b755f4b3
3 changed files with 6 additions and 4 deletions
  1. +2
    -2
      abp/static/scripts/editor.js
  2. +2
    -0
      abp/static/scripts/gui.js
  3. +2
    -2
      abp/static/scripts/materials.js

+ 2
- 2
abp/static/scripts/editor.js View File

@@ -58,7 +58,7 @@ editor.onClick = function() {
if (found) {
editor.focus(found);
var node=found;
editor.grid.position.copy(abj.node[node].position);
//editor.grid.position.copy(abj.node[node].position);
gui.controls.target.copy(abj.node[node].position);
node_name.innerHTML = "Node " + node;
node_data.className = "visible";
@@ -98,7 +98,7 @@ editor.prepare = function() {
mouse.onShiftClick = editor.onShiftClick;
mouse.onCtrlClick = editor.onCtrlClick;
document.addEventListener("keydown", editor.onKey, false);
editor.makeGrid();
//editor.makeGrid();
};

editor.onKey = function(evt) {


+ 2
- 0
abp/static/scripts/gui.js View File

@@ -18,6 +18,8 @@ gui.prepare = function() {
gui.controls.rotateSpeed = 0.2;
gui.controls.userPanSpeed = 0.1;
gui.camera.position.set(0, 0, 10);
gui.controls.autoRotate = true;
gui.controls.autoRotateSpeed = 0.1;
};

// Someone resized the window


+ 2
- 2
abp/static/scripts/materials.js View File

@@ -1,7 +1,7 @@
var materials = {};

var curveProperties = {
splineDensity: 1,
splineDensity: 10,
curvature: 20
};

@@ -16,7 +16,7 @@ materials.prepare = function() {
});
materials.edge.depthTest = false;
materials.qubit = new THREE.PointsMaterial({
size: 0.3,
size: 0.6,
map: ballSprite,
alphaTest: 0.5,
transparent: true,


Loading…
Cancel
Save