Commit e61447db authored by Masayuki Tanaka's avatar Masayuki Tanaka

Add transition.duration option

parent eaa4a3fd
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
var __onenter = getConfig(['onenter'], function () {}), var __onenter = getConfig(['onenter'], function () {}),
__onleave = getConfig(['onleave'], function () {}); __onleave = getConfig(['onleave'], function () {});
var __transition_duration = getConfig(['transition', 'duration'], 350);
// data - data configuration // data - data configuration
checkConfig('data', 'data is required in config'); checkConfig('data', 'data is required in config');
...@@ -2017,7 +2019,7 @@ ...@@ -2017,7 +2019,7 @@
withUpdateXDomain = isDefined(options.withUpdateXDomain) ? options.withUpdateXDomain : false; withUpdateXDomain = isDefined(options.withUpdateXDomain) ? options.withUpdateXDomain : false;
withUpdateOrgXDomain = isDefined(options.withUpdateOrgXDomain) ? options.withUpdateOrgXDomain : false; withUpdateOrgXDomain = isDefined(options.withUpdateOrgXDomain) ? options.withUpdateOrgXDomain : false;
duration = withTransition ? 350 : 0; duration = withTransition ? __transition_duration : 0;
if (withUpdateOrgXDomain) { if (withUpdateOrgXDomain) {
x.domain(d3.extent(getXDomain(c3.data.targets))); x.domain(d3.extent(getXDomain(c3.data.targets)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment