diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-02-24 20:08:39 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-02-24 20:23:09 +0200 |
| commit | 56234be525d3deffda80afd07c1f5508d49dccdf (patch) | |
| tree | 4029c27f7bab425a58b9543cacb689d5e89755f0 | |
| parent | 5a508d443edccfd1bb308637bb945bbde19bcb2f (diff) | |
attach d3 to #graph-view__canvas html div hook
| -rw-r--r-- | res/templates/index.html | 2 | ||||
| -rw-r--r-- | src/client/rz_core.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/res/templates/index.html b/res/templates/index.html index 28cbaf51..95d857a8 100644 --- a/res/templates/index.html +++ b/res/templates/index.html @@ -97,7 +97,7 @@ var rz_config = { // set as a global variable </form> </div> </div> - + <div id="graph-view__canvas"></div> <div class="typeselection" style="display:none"> <table> <tr id="intro"><td>Use [Tab] to change node type</td></tr> diff --git a/src/client/rz_core.js b/src/client/rz_core.js index 8251659d..bc2b6eb0 100644 --- a/src/client/rz_core.js +++ b/src/client/rz_core.js @@ -78,7 +78,7 @@ var initDrawingArea = function () { } var el = document.body; - vis = d3.select(el).append("svg:svg") + vis = d3.select('#graph-view__canvas').append("svg:svg") .attr('id', 'canvas_d3') .attr("width", '100%') .attr("height", '100%') |
