share/views/public/js/rbbt.plots/rbbt.plots.graph.adapters.js in rbbt-rest-1.8.31 vs share/views/public/js/rbbt.plots/rbbt.plots.graph.adapters.js in rbbt-rest-1.8.32
- old
+ new
@@ -111,10 +111,11 @@
var deferred = m.deferred()
rbbt.plots.graph.update(graph_model).then(function(updated_model){
var cy_model = rbbt.plots.graph.build_cytoscapejs(updated_model)
+ console.log(cy_model)
require_js(['/plugins/cytoscapejs/cytoscape.js'], function(){
var cy_params = {
container: elem,
elements: cy_model.elements,
style: style,
@@ -212,9 +213,10 @@
rbbt.plots.d3js_graph(dataset, elem, node_obj)
})
}
+
rbbt.plots.graph.view_mithril = function(graph_model, elem, container_obj, produce_obj){
rbbt.plots.graph.update(graph_model).then(function(updated_model){
var obj = $(elem)[0]
var component = {view: rbbt.curry(rbbt.plots.mithril, graph_model, container_obj, produce_obj)}
rbbt.mount(obj, component)