diff options
| author | Alon Levy <alon@pobox.com> | 2014-10-28 19:16:47 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-10-28 19:16:47 +0200 |
| commit | 92df118bf77da59a8f350829077846f179d9634c (patch) | |
| tree | e7c0ba54994928e4c1b273586b42d3429afa8c6a /scripts/rhizicore.js | |
| parent | 1767f68b2e0437ac574bd265c25bed9e3fd99643 (diff) | |
history/rhizicore: record zoom events; zoom g element selector: svg g.zoom
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index a8b091cc..a1eba12e 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -445,7 +445,8 @@ function myGraph(el) { .attr("height", '100%') .attr("pointer-events", "all") .call(zoomObject) - .append("g"); + .append("g") + .attr("class", "zoom"); // TODO: why do we need this huge overlay (hugeness also not constant) vis.append("rect") @@ -569,7 +570,7 @@ function myGraph(el) { function set_user(user) { this.user = user; - this.history = new History(this.user, $('svg')); + this.history = new History(this.user, $('svg g.zoom')[0]); console.log('new user: ' + user); } this.set_user = set_user; |
