Commit f5b52d28 authored by Adam Procter's avatar Adam Procter

edits

parent 7c1debcf
Pipeline #221 failed with stages
in 1 minute and 20 seconds
......@@ -68,9 +68,9 @@ export default {
// loops through all the positions
data2.forEach(element => {
console.log(element.id)
console.log(element.xpos)
console.log(element.ypos)
// console.log(element.id)
// console.log(element.xpos)
// console.log(element.ypos)
});
// loops through all the objects and renders them
......@@ -83,7 +83,12 @@ export default {
// assigns group <g id="id" of the unique id in database
knowledgeObj.node.id = element._id;
//console.log[???s]
//data2[] has all the positions check them against element._id
// if (element._id == data2[id]){
// console.log("true")
// }
//use x and ypos
if (element.type == "projecttxt") {
// get the correct x and y pos from positions information
knowledgeObj.rect(60, 40).attr({
......@@ -127,7 +132,7 @@ export default {
nodes.mouseup(event => {
// FIX ME : we know the id and the locations to
// object coordinates
console.log(event.clientX, event.clientY);
//console.log(event.clientX, event.clientY);
// the id of the g object of the clicked svg object
//console.log(SVG.adopt(event.target.parentNode).id())
this.id = SVG.adopt(event.target.parentNode).id();
......
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