Browse Source

Fixed build

Added c3.js & c3.min.js
pull/1193/head
GermainBergeron 10 years ago
parent
commit
18a39d5878
  1. 6
      c3.js
  2. 10
      c3.min.js
  3. 4
      src/api.tooltip.js

6
c3.js

@ -1211,6 +1211,8 @@
tooltip_init_show: false, tooltip_init_show: false,
tooltip_init_x: 0, tooltip_init_x: 0,
tooltip_init_position: {top: '0px', left: '50px'}, tooltip_init_position: {top: '0px', left: '50px'},
tooltip_onshow: function () {},
tooltip_onhide: function () {},
// title // title
title_text: undefined, title_text: undefined,
title_padding: { title_padding: {
@ -6718,10 +6720,14 @@
// emulate mouse events to show // emulate mouse events to show
$$.dispatchEvent('mouseover', index, mouse); $$.dispatchEvent('mouseover', index, mouse);
$$.dispatchEvent('mousemove', index, mouse); $$.dispatchEvent('mousemove', index, mouse);
this.config.tooltip_onshow.call($$, args.data);
}; };
c3_chart_fn.tooltip.hide = function () { c3_chart_fn.tooltip.hide = function () {
// TODO: get target data by checking the state of focus // TODO: get target data by checking the state of focus
this.internal.dispatchEvent('mouseout', 0); this.internal.dispatchEvent('mouseout', 0);
this.config.tooltip_onhide.call(this);
}; };
// Features: // Features:

10
c3.min.js vendored

File diff suppressed because one or more lines are too long

4
src/api.tooltip.js

@ -29,11 +29,11 @@ c3_chart_fn.tooltip.show = function (args) {
$$.dispatchEvent('mouseover', index, mouse); $$.dispatchEvent('mouseover', index, mouse);
$$.dispatchEvent('mousemove', index, mouse); $$.dispatchEvent('mousemove', index, mouse);
config.tooltip_onshow.call($$, dataToShow); this.config.tooltip_onshow.call($$, args.data);
}; };
c3_chart_fn.tooltip.hide = function () { c3_chart_fn.tooltip.hide = function () {
// TODO: get target data by checking the state of focus // TODO: get target data by checking the state of focus
this.internal.dispatchEvent('mouseout', 0); this.internal.dispatchEvent('mouseout', 0);
config.tooltip_onhide.call(this); this.config.tooltip_onhide.call(this);
}; };

Loading…
Cancel
Save