@easyv/charts 1.3.11 → 1.3.12
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
CHANGED
|
@@ -146,7 +146,7 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref3) {
|
|
|
146
146
|
var showHead, headUrl, headWidth, headHeight, headTranslate;
|
|
147
147
|
|
|
148
148
|
if (headDecorate) {
|
|
149
|
-
showHead = headDecorate.show, headUrl = headDecorate.url, headWidth = headDecorate.size.width, headHeight = headDecorate.size.height, headTranslate = headDecorate.
|
|
149
|
+
showHead = headDecorate.show, headUrl = headDecorate.url, headWidth = headDecorate.size.width, headHeight = headDecorate.size.height, headTranslate = headDecorate.translate;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
if (isNaN(positionX)) return null;
|
package/lib/components/Label.js
CHANGED
|
@@ -83,7 +83,7 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
83
83
|
|
|
84
84
|
var positionX = xScaler(x) - step / 2 + seriesStart + index * seriesStep;
|
|
85
85
|
if (isNaN(positionX)) return null;
|
|
86
|
-
var position = positionX + seriesWidth / 2;
|
|
86
|
+
var position = positionX + (config.line ? step : seriesWidth) / 2;
|
|
87
87
|
var labelPosition = isVertical ? getVerticalLabel({
|
|
88
88
|
position: _position,
|
|
89
89
|
y: y,
|
package/package.json
CHANGED
package/src/components/Band.tsx
CHANGED
|
@@ -122,7 +122,7 @@ export default memo(
|
|
|
122
122
|
headUrl = headDecorate.url,
|
|
123
123
|
headWidth = headDecorate.size.width,
|
|
124
124
|
headHeight = headDecorate.size.height,
|
|
125
|
-
headTranslate = headDecorate.
|
|
125
|
+
headTranslate = headDecorate.translate;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
if (isNaN(positionX)) return null;
|
package/src/components/Label.js
CHANGED
|
@@ -33,7 +33,6 @@ export default memo(
|
|
|
33
33
|
paddingInner,
|
|
34
34
|
paddingOuter,
|
|
35
35
|
});
|
|
36
|
-
|
|
37
36
|
const isVertical = direction === 'vertical';
|
|
38
37
|
const _position = label.position;
|
|
39
38
|
return (
|
|
@@ -57,7 +56,7 @@ export default memo(
|
|
|
57
56
|
xScaler(x) - step / 2 + seriesStart + index * seriesStep;
|
|
58
57
|
|
|
59
58
|
if (isNaN(positionX)) return null;
|
|
60
|
-
const position = positionX + seriesWidth / 2;
|
|
59
|
+
const position = positionX + (config.line?step:seriesWidth) / 2;
|
|
61
60
|
const labelPosition = isVertical
|
|
62
61
|
? getVerticalLabel({
|
|
63
62
|
position: _position,
|