[Pkg-javascript-commits] [d3-tip.js] 16/277: need a break, no, really
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:12 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 39fd2878761b18a06b9c6d08ade9011f1c9bcb93
Author: Justin Palmer <justin at labratrevenge.com>
Date: Sun Jan 8 15:37:18 2012 -0800
need a break, no, really
---
src/d3.tip.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/d3.tip.js b/src/d3.tip.js
index 5e58e52..4650933 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -1,7 +1,7 @@
d3.svg.tip = function() {
var orient = 'top',
padding = 5,
- cornerRadius = 3,
+ cornerRadius = 2,
stemSize = 60,
offset = d3_svg_offset,
text = d3_svg_text,
@@ -37,17 +37,17 @@ d3.svg.tip = function() {
backing.attr('width', valRect.width).attr('height', valRect.height).attr('rx', cornerRadius).attr('ry', cornerRadius)
val.attr('dx', valRect.width / 2).attr('dy', valRect.height / 2)
- var backingRect = backing.node().getBBox(),
- containerRect = container.node().getBBox();
+ var backingRect = backing.node().getBBox();
switch(orient) {
case 'top':
x = targetRect.x + (targetRect.width / 2) - (backingRect.width / 2) + tipOffset[0];
y = targetRect.y - backingRect.height + tipOffset[1];
+ break;
case 'bottom':
x = targetRect.x + (targetRect.width / 2) - (backingRect.width / 2) + tipOffset[0];
y = targetRect.y + targetRect.height - tipOffset[1];
- break;
+ break;
}
container.attr('transform', 'translate(' + x + ',' + 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