@easyv/charts 1.8.26 → 1.8.27
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/components/Line.js +2 -2
- package/package.json +1 -1
- package/src/components/Line.js +2 -4
package/lib/components/Line.js
CHANGED
|
@@ -97,7 +97,7 @@ var Area = function Area(_ref) {
|
|
|
97
97
|
var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
98
98
|
var type = _ref5.type,
|
|
99
99
|
_ref5$config = _ref5.config,
|
|
100
|
-
|
|
100
|
+
areaColor = _ref5$config.areaColor,
|
|
101
101
|
_ref5$config$line = _ref5$config.line,
|
|
102
102
|
lineType = _ref5$config$line.type,
|
|
103
103
|
lineWidth = _ref5$config$line.lineWidth,
|
|
@@ -174,7 +174,7 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
|
|
|
174
174
|
}),
|
|
175
175
|
xScaler: xScaler,
|
|
176
176
|
yScaler: yScaler,
|
|
177
|
-
opacity: opacity
|
|
177
|
+
opacity: areaColor ? areaColor.linear.opacity : 1
|
|
178
178
|
}), showLighter && /*#__PURE__*/_react["default"].createElement(_.Lighter, {
|
|
179
179
|
path: path,
|
|
180
180
|
config: lighter
|
package/package.json
CHANGED
package/src/components/Line.js
CHANGED
|
@@ -70,9 +70,7 @@ export default memo(
|
|
|
70
70
|
({
|
|
71
71
|
type,
|
|
72
72
|
config: {
|
|
73
|
-
areaColor
|
|
74
|
-
opacity
|
|
75
|
-
}},
|
|
73
|
+
areaColor,
|
|
76
74
|
line: {
|
|
77
75
|
type: lineType,
|
|
78
76
|
lineWidth,
|
|
@@ -148,7 +146,7 @@ export default memo(
|
|
|
148
146
|
config={{ ...area, curve, tension }}
|
|
149
147
|
xScaler={xScaler}
|
|
150
148
|
yScaler={yScaler}
|
|
151
|
-
opacity={opacity}
|
|
149
|
+
opacity={areaColor?areaColor.linear.opacity:1}
|
|
152
150
|
/>
|
|
153
151
|
)}
|
|
154
152
|
{showLighter && <Lighter path={path} config={lighter} />}
|