Commit 7c1debcf authored by Adam Procter's avatar Adam Procter

tidy up quick

parent 1750cc62
Pipeline #220 failed with stages
in 1 minute and 22 seconds
......@@ -54,7 +54,7 @@ export default {
});
let positions = this.allPositions();
console.log(positions)
//console.log(positions)
positions.forEach(element => {
data2.push(element.__ob__.value.doc);
});
......@@ -66,22 +66,23 @@ export default {
var index = 0;
var colours = ["red", "green", "blue", "yellow", "cyan"];
// loops through all the positions
data2.forEach(element => {
console.log(element.xpos)
console.log(element.id)
console.log(element.xpos)
console.log(element.ypos)
});
// loops through all the objects and renders them
data.forEach(element => {
//index = index + 20
knowledgeObj = nodes
.group()
.draggy({ minX: 0, minY: 0, maxX: 600, maxY: 300 });
// assign node id to the unique id in database
knowledgeObj.node.id = element._id;
// assigns group <g id="id" of the unique id in database
knowledgeObj.node.id = element._id;
if (element.type == "projecttxt") {
// get the correct x and y pos from positions information
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment