@easyv/config 1.2.1 → 1.2.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/lib/animation.js CHANGED
@@ -106,7 +106,8 @@ var animationOfPie = function animationOfPie() {
106
106
  show = _ref3$show === void 0 ? defaultAnimationOfPie.show : _ref3$show,
107
107
  _ref3$current = _ref3.current;
108
108
  _ref3$current = _ref3$current === void 0 ? defaultAnimationOfPie.current : _ref3$current;
109
- var _ref3$current$heighte = _ref3$current.heighten,
109
+ var widthen = _ref3$current.widthen,
110
+ _ref3$current$heighte = _ref3$current.heighten,
110
111
  heighten = _ref3$current$heighte === void 0 ? defaultAnimationOfPie.current.heighten : _ref3$current$heighte,
111
112
  _ref3$current$opacity = _ref3$current.opacity,
112
113
  opacity = _ref3$current$opacity === void 0 ? defaultAnimationOfPie.current.opacity : _ref3$current$opacity,
@@ -132,7 +133,12 @@ var animationOfPie = function animationOfPie() {
132
133
  displayName: '高度增长',
133
134
  value: heighten,
134
135
  type: 'number'
135
- }, {
136
+ }, widthen != undefined ? {
137
+ name: 'widthen',
138
+ displayName: '半径增长',
139
+ value: widthen,
140
+ type: 'number'
141
+ } : undefined, {
136
142
  name: 'opacity',
137
143
  displayName: '透明度',
138
144
  value: opacity,
@@ -142,7 +148,9 @@ var animationOfPie = function animationOfPie() {
142
148
  max: 100,
143
149
  suffix: '%'
144
150
  }
145
- }],
151
+ }].filter(function (d) {
152
+ return !!d;
153
+ }),
146
154
  config: {
147
155
  defaultOpen: true
148
156
  }
package/lib/series.js CHANGED
@@ -750,6 +750,7 @@ var areaSeries = function areaSeries() {
750
750
  _ref6$line$lineShadow3 = _ref6$line$lineShadow.shadow,
751
751
  shadow_ = _ref6$line$lineShadow3 === void 0 ? defaultLineSeries.line.lineShadow.shadow : _ref6$line$lineShadow3,
752
752
  lineLighter = _ref6$line.lighter,
753
+ lineIcon = _ref6.icon,
753
754
  _ref6$label = _ref6.label,
754
755
  areaLabel = _ref6$label === void 0 ? defaultLineSeries.label : _ref6$label,
755
756
  _ref6$areaType = _ref6.areaType,
@@ -859,7 +860,7 @@ var areaSeries = function areaSeries() {
859
860
  })), [(0, _.sc)("lineShadow", "折线阴影", "", [(0, _.show)(showShadow), (0, _.sc)("shadow", "阴影", "shadow", (0, _.shadow)(shadow_), {}, (0, _.showRule)())]), lineLighter && lighter(lineLighter)]).filter(function (item) {
860
861
  return !!item;
861
862
  })
862
- }, (0, _.label)(areaLabel)],
863
+ }, icon(lineIcon), (0, _.label)(areaLabel)],
863
864
  type: 'object'
864
865
  };
865
866
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/config",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/animation.js CHANGED
@@ -91,6 +91,7 @@ const defaultAnimationOfPie = {
91
91
  export const animationOfPie = ({
92
92
  show = defaultAnimationOfPie.show,
93
93
  current: {
94
+ widthen,
94
95
  heighten = defaultAnimationOfPie.current.heighten,
95
96
  opacity = defaultAnimationOfPie.current.opacity,
96
97
  } = defaultAnimationOfPie.current,
@@ -118,6 +119,12 @@ export const animationOfPie = ({
118
119
  value: heighten,
119
120
  type: 'number',
120
121
  },
122
+ widthen!=undefined?{
123
+ name: 'widthen',
124
+ displayName: '半径增长',
125
+ value: widthen,
126
+ type: 'number',
127
+ }:undefined,
121
128
  {
122
129
  name: 'opacity',
123
130
  displayName: '透明度',
@@ -129,7 +136,7 @@ export const animationOfPie = ({
129
136
  suffix: '%',
130
137
  },
131
138
  },
132
- ],
139
+ ].filter(d=>!!d),
133
140
  config: {
134
141
  defaultOpen: true,
135
142
  },
package/src/series.js CHANGED
@@ -725,6 +725,7 @@ export const areaSeries = (
725
725
  } = defaultLineSeries.line.lineShadow,
726
726
  lighter: lineLighter,
727
727
  } = defaultLineSeries.line,
728
+ icon:lineIcon,
728
729
  label: areaLabel = defaultLineSeries.label,
729
730
  areaType = defaultLineSeries.areaType,
730
731
  areaColor = defaultLineSeries.areaColor,
@@ -826,6 +827,7 @@ export const areaSeries = (
826
827
  lineLighter && lighter(lineLighter),
827
828
  ].filter((item) => !!item),
828
829
  },
830
+ icon(lineIcon),
829
831
  label(areaLabel),
830
832
  ],
831
833
  type: 'object',