[Pkg-javascript-commits] [d3-tip.js] 43/277: Adjust horizontal location for left position and vertical location for target rectangle
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:15 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 51a162d5200e50c8dedff9d272ea4122aebdd4e5
Author: Karl Broman <kbroman at gmail.com>
Date: Fri Jun 22 02:28:59 2012 -0500
Adjust horizontal location for left position and vertical location for target rectangle
---
src/d3.tip.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/d3.tip.js b/src/d3.tip.js
index 3584d88..04e1c95 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -104,11 +104,11 @@ d3.svg.tip = function() {
y = targetRect.y + tipOffset[1];
if(tag == 'circle') {
- x -= targetRect.width + (containerRect.width / 2);
+ x -= containerRect.width - (stemRect.height / 2)
y -= targetRect.height / 2
} else if(tag == 'rect') {
x -= containerRect.width - (stemRect.height / 2)
- y -= containerRect.height / 2
+ y -= targetRect.height / 2
}
return {x: x, y: y}
@@ -126,7 +126,7 @@ d3.svg.tip = function() {
y -= targetRect.height / 2
} else if(tag == 'rect') {
x += targetRect.width
- y -= containerRect.height / 2
+ y -= targetRect.height / 2
}
return {x: x, y: y}
--
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