Skip to content

Commit

Permalink
Fixed a bug where the 'tooltip' widget incorrectly displayed its posi…
Browse files Browse the repository at this point in the history
…tion when re-rendered.
  • Loading branch information
seogi1004 committed Jan 8, 2019
1 parent fb234fc commit 203cd22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions dist/vue-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -18379,6 +18379,7 @@ exports.default = {
// 툴팁 엘리먼트 가져오기
var tooltip = tooltips[obj.brush.index],
line = tooltip.get(0),
target = tooltip.get(1),
rect = tooltip.get(1).get(0),
text = tooltip.get(1).get(1).translate(0, orient != "bottom" ? lineHeight : lineHeight + ANCHOR),
borderColor = chart.theme("tooltipBorderColor") || getColorByKey(obj),
Expand All @@ -18393,6 +18394,7 @@ exports.default = {
elem.get(1).attr({ x: size.onlyValue ? size.width / 2 : size.width - PADDING });
});
tooltip.attr({ visibility: "visible" });
target.translate(xy.x, xy.y);

isActive = true;
});
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-graph.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-graph",
"productionName": "Vue Graph",
"version": "0.8.0",
"version": "0.8.1",
"description": "A library that provides various visualization elements for Vue.js",
"main": "src/main.js",
"files": [
Expand Down Expand Up @@ -61,7 +61,7 @@
"webpack-node-externals": "^1.7.2"
},
"dependencies": {
"juijs-chart": "2.5.1",
"juijs-chart": "2.5.2",
"vue": "^2.5.17"
}
}

0 comments on commit 203cd22

Please sign in to comment.