[Pkg-javascript-commits] [d3-tip.js] 127/277: remove superfluous parenthesis
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
bhuvan-guest pushed a commit to branch master
in repository d3-tip.js.
commit a9716598abb6c8c91524e0f6dc5f623aa4efeb58
Author: Justin Palmer <justin at github.com>
Date: Sun Apr 21 18:35:51 2013 -0700
remove superfluous parenthesis
---
examples/circles.html | 2 +-
src/d3.tip.js | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/examples/circles.html b/examples/circles.html
index a52e60f..d4b38a7 100644
--- a/examples/circles.html
+++ b/examples/circles.html
@@ -62,7 +62,7 @@
var tip = d3.tip()
.attr('class', 'd3-tip')
.html(function(d) { return d.toFixed(2) })
- .direction('e')
+ .direction('nw')
.offset([0, 3])
var tip2 = d3.tip()
diff --git a/src/d3.tip.js b/src/d3.tip.js
index d0bfad8..7a2dbcb 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -132,23 +132,23 @@ d3.tip = function() {
function direction_n() {
var bbox = get_screen_bbox()
return {
- top: (bbox.n.y - node.offsetHeight),
- left: (bbox.n.x - node.offsetWidth / 2)
+ top: bbox.n.y - node.offsetHeight,
+ left: bbox.n.x - node.offsetWidth / 2
}
}
function direction_s() {
var bbox = get_screen_bbox()
return {
- top: (bbox.s.y),
- left: (bbox.s.x - node.offsetWidth / 2)
+ top: bbox.s.y,
+ left: bbox.s.x - node.offsetWidth / 2
}
}
function direction_e() {
var bbox = get_screen_bbox()
return {
- top: (bbox.e.y - node.offsetHeight / 2),
+ top: bbox.e.y - node.offsetHeight / 2,
left: bbox.e.x
}
}
@@ -156,7 +156,7 @@ d3.tip = function() {
function direction_w() {
var bbox = get_screen_bbox()
return {
- top: (bbox.w.y - node.offsetHeight / 2),
+ top: bbox.w.y - node.offsetHeight / 2,
left: bbox.w.x - node.offsetWidth
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/d3-tip.js.git
More information about the Pkg-javascript-commits
mailing list