summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-14 12:22:11 +0200
committerAlon Levy <alon@pobox.com>2015-04-14 13:32:38 +0200
commit86fb0bdeaa51226c84a04a34bfb88576d26f3b16 (patch)
tree8d54aeb93962631ab22e1785963f456d1693cc1f /src/client/view/graph_view.js
parent72d1b92d1975b9e09babdf53efb98740aa02c6a7 (diff)
wip going to use style.fill url(image)
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index 156a10d1..e0bdb6ee 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -420,15 +420,10 @@ function GraphView(spec) {
}
function node__transform(d) {
- var bbox = $('#' + d.id)[0].getBBox(),
- bx = d.bx || 0,
+ var bx = d.bx || 0,
by = d.by || 0;
- if (urlImage(d['image-url'])) {
- return translate(d.bx - bbox.width / 2, d.by - bbox.height / 2);
- } else {
- return translate(d.bx, d.by);
- }
+ return translate(d.bx, d.by);
}
function update_view(relayout) {