switched coffeescript file to javascript

This commit is contained in:
Connor Turland 2014-05-30 11:01:53 -04:00
parent 1970f794c4
commit c1de3abf28
3 changed files with 0 additions and 76 deletions

View file

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

View file

@ -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()

View file

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