Commit c17eabd9 authored by Adam Procter's avatar Adam Procter

tweaks

parent a291410f
Pipeline #210 failed with stages
in 1 minute and 3 seconds
......@@ -85,14 +85,14 @@ export default {
var type = knowledgeObj.text(element.type)
var title = knowledgeObj.text(element.title)
// this gets all the ids but we dont know which is which
var uniqueid = knowledgeObj.text(element._id)
// this gets all the ids
knowledgeObjid = element._id
console.log(knowledgeObjid)
title.move(0,40)
uniqueid.move(0,80)
// rect_1.connectable({
// container: links,
// markers: markers
......@@ -109,7 +109,10 @@ export default {
// FIXME: associate each node with a knowledge object in the db
// so we have a mapping to record these movements
nodes.mouseup(node => {
//console.log(knowledgeObjid)
// this logs out the final id in the array it doesnt know which one I moved...
// node.clientX and Y is fine different thing
// console.log(node)
console.log(knowledgeObjid)
console.log("x: "+node.clientX)
console.log("y: "+node.clientY)
})
......
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