diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-11-09 15:01:03 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-11-09 15:06:21 +0200 |
| commit | 8af649c249daea983a08d102284d571f0e88267b (patch) | |
| tree | e3e307c6fd306c5e18daaf2dca44b732079ad962 /scripts/rhizicore.js | |
| parent | 753196f3dd62f8c1fedb0036e922d3a220093ee9 (diff) | |
scripts/model/graph.js merge resolution
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 2e20edda..f2359382 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -2,7 +2,7 @@ define('rhizicore', ['jquery', 'd3', 'consts', 'signal', 'util', 'history', 'textanalysis', 'model/graph'], -function($, d3, consts, signal, util, history, textanalysis, Graph) { +function($, d3, consts, signal, util, history, textanalysis, model_graph) { var History = history.History; var addednodes = []; @@ -71,7 +71,7 @@ var initDrawingArea = function () { var el = document.body; - graph = new Graph(el); + graph = new model_graph.Graph(el); //Zoom scale behavior in zoom.js zoomObject = d3.behavior.zoom().scaleExtent([0.1, 3]).on("zoom", zoom); @@ -318,6 +318,7 @@ function update(no_relayout) { force.nodes(graph.nodes()) .links(graph.links()) + if (no_relayout) { // XXX If we are stopped we need to update the text of the links at least, // and this is the simplest way @@ -674,6 +675,9 @@ function customColor(type) { case "bubble": color = "rgba(0,0,0,0.2)"; break; + default: + size = '#080808'; + break; } return color; } @@ -719,6 +723,9 @@ function expand(obj){ obj.size = Math.max(obj.savesize, obj.value.length); } +window.graph = graph; +window.force = force; + return { expand: expand, graph: graph, |
