gifted-charts-core 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gifted-charts-core",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -18,9 +18,9 @@ export const useAnimatedThreeDBar = (props: animatedBarPropTypes) => {
18
18
  return {
19
19
  showGradient,
20
20
  gradientColor,
21
- frontColor,
22
- sideColor,
23
- topColor,
21
+ frontColor: frontColor?.toString()?.trim?.()?.length ? frontColor : BarDefaults.threeDBarFrontColor,
22
+ sideColor: sideColor?.toString()?.trim?.()?.length ? sideColor : BarDefaults.threeDBarSideColor,
23
+ topColor: topColor?.toString()?.trim?.()?.length ? topColor : BarDefaults.threeDBarTopColor,
24
24
  opacity,
25
25
  initialRender,
26
26
  setInitialRender,
@@ -146,9 +146,9 @@ export const BarDefaults = {
146
146
  opacity: 1,
147
147
  isThreeD: false,
148
148
  threeDBarGradientColor: 'white',
149
- threeDBarFrontColor: '#fe2233',
150
- threeDBarSideColor: '#fe2233',
151
- threeDBarTopColor: '#fe2233',
149
+ threeDBarFrontColor: '#C0CA3A',
150
+ threeDBarSideColor: '#887A24',
151
+ threeDBarTopColor: '#D9E676',
152
152
  };
153
153
 
154
154
  export const defaultLineConfig: defaultLineConfigType = {