Skip to content

Commit

Permalink
初始化时需要隐藏 crosshairs
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed Nov 2, 2017
1 parent b629ff7 commit a5fa817
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g2",
"version": "3.0.0-rc5.8",
"version": "3.0.0-rc5.9",
"description": "the Grammar of Graphics in Javascript",
"main": "build/g2.js",
"browser": "build/g2.js",
Expand Down
1 change: 1 addition & 0 deletions src/component/tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ class Tooltip extends Base {
const shape = crosshairsGroup.addShape('line', {
attrs
});
shape.hide();
this.set('crossLineShape' + type, shape);
return shape;
}
Expand Down
2 changes: 1 addition & 1 deletion src/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Theme = require('./theme/index');

const Global = {};
const Default = {
version: '3.0.0-rc5.8',
version: '3.0.0-rc5.9',
trackable: true,
animate: true,
snapArray: [ 0, 1, 2, 4, 5, 10 ],
Expand Down

0 comments on commit a5fa817

Please sign in to comment.