@easyv/charts 1.3.26 → 1.3.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/Axis.js
CHANGED
|
@@ -214,9 +214,7 @@ var Label = function Label(_ref5) {
|
|
|
214
214
|
"data-data": JSON.stringify({
|
|
215
215
|
x: label
|
|
216
216
|
}),
|
|
217
|
-
style: _objectSpread(_objectSpread(
|
|
218
|
-
whiteSpace: "pre"
|
|
219
|
-
})
|
|
217
|
+
style: _objectSpread(_objectSpread({}, _style), (0, _utils.getFontStyle)(font))
|
|
220
218
|
}, /*#__PURE__*/_react["default"].createElement(_TextOverflow["default"], {
|
|
221
219
|
type: textOverflow,
|
|
222
220
|
speed: speed,
|
|
@@ -224,7 +222,8 @@ var Label = function Label(_ref5) {
|
|
|
224
222
|
style: {
|
|
225
223
|
width: width,
|
|
226
224
|
transform: transform,
|
|
227
|
-
textAlign: "center"
|
|
225
|
+
textAlign: "center",
|
|
226
|
+
justifyContent: "center"
|
|
228
227
|
}
|
|
229
228
|
})));
|
|
230
229
|
};
|
package/package.json
CHANGED
package/src/components/Axis.tsx
CHANGED
|
@@ -211,10 +211,9 @@ const Label: (
|
|
|
211
211
|
data-data={JSON.stringify({ x: label })}
|
|
212
212
|
style={{
|
|
213
213
|
..._style,
|
|
214
|
-
...getFontStyle(font)
|
|
215
|
-
whiteSpace:"pre"
|
|
214
|
+
...getFontStyle(font)
|
|
216
215
|
}}>
|
|
217
|
-
<TextOverflow type={textOverflow} speed={speed} value={_label} style={{width,transform,textAlign:"center"}}></TextOverflow>
|
|
216
|
+
<TextOverflow type={textOverflow} speed={speed} value={_label} style={{width,transform,textAlign:"center", justifyContent:"center"}}></TextOverflow>
|
|
218
217
|
</div>
|
|
219
218
|
</foreignObject>
|
|
220
219
|
};
|