diff --git a/app/assets/javascripts/in_metacode_sets.js.coffee b/app/assets/javascripts/in_metacode_sets.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/in_metacode_sets.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/javascripts/maps.js.coffee b/app/assets/javascripts/maps.js.coffee deleted file mode 100644 index 0c94aa83..00000000 --- a/app/assets/javascripts/maps.js.coffee +++ /dev/null @@ -1,70 +0,0 @@ -window.realtime = {} -window.realtime.addTopicToMap = (topic) -> - Mconsole.graph.addNode(topic) - tempForT = Mconsole.graph.getNode(topic.id) - tempForT.setData('dim', 1, 'start') - tempForT.setData('dim', 25, 'end') - newPos = new $jit.Complex() - newPos.x = tempForT.data.$xloc - newPos.y = tempForT.data.$yloc - tempForT.setPos(newPos, 'start') - tempForT.setPos(newPos, 'current') - tempForT.setPos(newPos, 'end') - Mconsole.fx.plotNode(tempForT, Mconsole.canvas) - Mconsole.labels.plotLabel(Mconsole.canvas, tempForT, Mconsole.config) - -window.realtime.updateTopicOnMap = (topic) -> - tempForT = Mconsole.graph.getNode(topic.id) - - tempForT.data = topic.data - tempForT.name = topic.name - - if MetamapsModel.showcardInUse == topic.id - populateShowCard(tempForT) - - newPos = new $jit.Complex() - newPos.x = tempForT.data.$xloc - newPos.y = tempForT.data.$yloc - tempForT.setPos(newPos, 'start') - tempForT.setPos(newPos, 'current') - tempForT.setPos(newPos, 'end') - - Mconsole.fx.animate({ - modes: ['linear','node-property:dim','edge-property:lineWidth'], - transition: $jit.Trans.Quad.easeInOut, - duration: 500 - }) - -window.realtime.addSynapseToMap = (synapse) -> - Node1 = Mconsole.graph.getNode(synapse.data.$direction[0]) - Node2 = Mconsole.graph.getNode(synapse.data.$direction[1]) - Mconsole.graph.addAdjacence(Node1, Node2, {}) - tempForS = Mconsole.graph.getAdjacence(Node1.id, Node2.id) - tempForS.setDataset('start', { - lineWidth: 0.4 - }) - tempForS.setDataset('end', { - lineWidth: 2 - }) - tempForS.data = synapse.data - Mconsole.fx.plotLine(tempForS, Mconsole.canvas) - Mconsole.fx.animate({ - modes: ['linear','node-property:dim','edge-property:lineWidth'], - transition: $jit.Trans.Quad.easeInOut, - duration: 500 - }) - -window.realtime.updateSynapseOnMap = (synapse) -> - tempForS = Mconsole.graph.getAdjacence(synapse.data.$direction[0], synapse.data.$direction[1]) - - wasShowDesc = tempForS.data.$showDesc - - for k,v of synapse.data - tempForS.data[k] = v - - tempForS.data.$showDesc = wasShowDesc - - if MetamapsModel.edgecardInUse == synapse.data.$id - editEdge(tempForS, false) - - Mconsole.plot() diff --git a/app/assets/javascripts/metacode_sets.js.coffee b/app/assets/javascripts/metacode_sets.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/metacode_sets.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/