浏览代码

Presentation details.

master
Pete Shadbolt 7 年前
父节点
当前提交
87b755f4b3
共有 3 个文件被更改,包括 6 次插入4 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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


正在加载...
取消
保存