Pārlūkot izejas kodu

Presentation details.

master
Pete Shadbolt pirms 7 gadiem
vecāks
revīzija
87b755f4b3
3 mainītis faili ar 6 papildinājumiem un 4 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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,


Notiek ielāde…
Atcelt
Saglabāt