@easyv/charts 1.8.16 → 1.8.17
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/Band.js +1 -1
- package/lib/utils/index.js +1 -0
- package/package.json +1 -1
- package/src/components/Band.tsx +1 -1
- package/src/utils/index.js +1 -0
package/lib/components/Band.js
CHANGED
|
@@ -203,7 +203,7 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
|
|
|
203
203
|
borderWidth = _ref6$borderWidth === void 0 ? 0 : _ref6$borderWidth;
|
|
204
204
|
var borderStr = "".concat(pure, " solid ").concat(borderWidth, "px");
|
|
205
205
|
var borderImageSource = (0, _utils.getMultiColorStr)(linear);
|
|
206
|
-
var positionX = isXRepeat ? xScaler(x) - step / 2 + seriesStart + index * seriesStep : xScaler(x) -
|
|
206
|
+
var positionX = isXRepeat ? xScaler(x) - step / 2 + seriesStart + index * seriesStep : xScaler(x) - seriesWidth / 2;
|
|
207
207
|
var showHead, headType, headUrl, headVideo, headWidth, headHeight, headTranslate;
|
|
208
208
|
if (headDecorate) {
|
|
209
209
|
showHead = headDecorate.show, headType = headDecorate.type, headUrl = headDecorate.url, headVideo = headDecorate.video, headWidth = headDecorate.size.width, headHeight = headDecorate.size.height, headTranslate = headDecorate.translate;
|
package/lib/utils/index.js
CHANGED
|
@@ -606,6 +606,7 @@ var getSeriesInfo = exports.getSeriesInfo = function getSeriesInfo(_ref19) {
|
|
|
606
606
|
return {
|
|
607
607
|
seriesWidth: _step,
|
|
608
608
|
seriesStep: (1 + paddingInner) * _step,
|
|
609
|
+
// seriesStart: 0,
|
|
609
610
|
seriesStart: paddingOuter * _step,
|
|
610
611
|
width: step - paddingOuter * 2 * _step
|
|
611
612
|
};
|
package/package.json
CHANGED
package/src/components/Band.tsx
CHANGED
|
@@ -169,7 +169,7 @@ export default memo(
|
|
|
169
169
|
}, borderWidth=0 } = border || {};
|
|
170
170
|
const borderStr = `${pure} solid ${borderWidth}px`;
|
|
171
171
|
const borderImageSource = getMultiColorStr(linear);
|
|
172
|
-
const positionX =isXRepeat? xScaler(x) - step / 2 + seriesStart + index * seriesStep: xScaler(x) -
|
|
172
|
+
const positionX =isXRepeat? xScaler(x) - step / 2 + seriesStart + index * seriesStep: xScaler(x) -seriesWidth/2;
|
|
173
173
|
let showHead, headType, headUrl, headVideo, headWidth, headHeight, headTranslate;
|
|
174
174
|
if (headDecorate) {
|
|
175
175
|
(showHead = headDecorate.show),
|