Browse Source

Add c3.flush API

pull/246/head
Masayuki Tanaka 11 years ago
parent
commit
c8db703814
  1. 6
      c3.js
  2. 6
      c3.min.js

6
c3.js

@ -2754,7 +2754,7 @@
if (window.onresize.add) { if (window.onresize.add) {
window.onresize.add(__onresize); window.onresize.add(__onresize);
window.onresize.add(function () { window.onresize.add(function () {
updateAndRedraw({withLegend: true, withTransition: false, withTransitionForTransform: false}); c3.flush();
}); });
window.onresize.add(__onresized); window.onresize.add(__onresized);
} }
@ -4551,6 +4551,10 @@
c3.resize = function (size) { c3.resize = function (size) {
__size_width = size ? size.width : null; __size_width = size ? size.width : null;
__size_height = size ? size.height : null; __size_height = size ? size.height : null;
c3.flush();
};
c3.flush = function () {
updateAndRedraw({withLegend: true, withTransition: false, withTransitionForTransform: false}); updateAndRedraw({withLegend: true, withTransition: false, withTransitionForTransform: false});
}; };

6
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save