d2-charts-api
Advanced tools
Comparing version 31.0.7 to 31.0.8
@@ -22,3 +22,3 @@ 'use strict'; | ||
seriesObj.animation = { | ||
duration: DEFAULT_ANIMATION_DURATION | ||
duration: getAnimation(extraOptions.animation, DEFAULT_ANIMATION_DURATION) | ||
}; | ||
@@ -48,3 +48,3 @@ }); | ||
var DEFAULT_ANIMATION_DURATION = 300; | ||
var DEFAULT_ANIMATION_DURATION = 200; | ||
@@ -55,2 +55,6 @@ function getColor(colors, index) { | ||
function getAnimation(option, fallback) { | ||
return typeof option === 'number' ? option : fallback; | ||
} | ||
function getDefault(series, store, layout, isStacked, extraOptions) { | ||
@@ -57,0 +61,0 @@ series.forEach(function (seriesObj, index) { |
{ | ||
"name": "d2-charts-api", | ||
"version": "31.0.7", | ||
"version": "31.0.8", | ||
"description": "DHIS2 charts api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ import getCumulativeData from './../getCumulativeData'; | ||
const DEFAULT_ANIMATION_DURATION = 300; | ||
const DEFAULT_ANIMATION_DURATION = 200; | ||
@@ -14,2 +14,6 @@ function getColor(colors, index) { | ||
function getAnimation(option, fallback) { | ||
return typeof option === 'number' ? option : fallback; | ||
} | ||
function getDefault(series, store, layout, isStacked, extraOptions) { | ||
@@ -71,3 +75,3 @@ series.forEach((seriesObj, index) => { | ||
seriesObj.animation = { | ||
duration: DEFAULT_ANIMATION_DURATION, | ||
duration: getAnimation(extraOptions.animation, DEFAULT_ANIMATION_DURATION), | ||
}; | ||
@@ -74,0 +78,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132
5185
367202