@easyv/charts 1.6.27 → 1.7.22
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
|
@@ -178,6 +178,8 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
|
|
|
178
178
|
var _ref5 = x == curXLabel ? selectConfig : other,
|
|
179
179
|
style = _ref5.style,
|
|
180
180
|
fillType = _ref5.fillType,
|
|
181
|
+
_ref5$fillMode = _ref5.fillMode,
|
|
182
|
+
fillMode = _ref5$fillMode === void 0 ? "tile" : _ref5$fillMode,
|
|
181
183
|
url = _ref5.url,
|
|
182
184
|
size = _ref5.size,
|
|
183
185
|
fill = _ref5.fill,
|
|
@@ -323,7 +325,7 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
|
|
|
323
325
|
// position: "absolute",
|
|
324
326
|
clipPath: setClipPath(),
|
|
325
327
|
opacity: fillType == "pattern" ? opacity : 1,
|
|
326
|
-
background: fillType == "pattern" ? "".concat(isVertical ? y < 0 ? "100%" : "0%" : "50%", " ").concat(isVertical ? "50%" : y < 0 ? "0%" : "100%", " / ").concat(size.width
|
|
328
|
+
background: fillType == "pattern" ? "".concat(isVertical ? y < 0 ? "100%" : "0%" : "50%", " ").concat(isVertical ? "50%" : y < 0 ? "0%" : "100%", " / ").concat(fillMode == "tile" ? size.width + "px " + size.height + "px" : "100% 100%", " repeat ") + "url(" +
|
|
327
329
|
//@ts-ignore
|
|
328
330
|
window.appConfig.ASSETS_URL + url + ")" : (0, _utils.getBandBackground)(pattern, extent === flag ? highlightFill : fill),
|
|
329
331
|
borderRadius: style == "square" ? "0 0 0 0" : getBorderRadius({
|
|
@@ -1016,7 +1016,9 @@ var Label = function Label(_ref10) {
|
|
|
1016
1016
|
"float": x3 >= 0 ? "left" : "right",
|
|
1017
1017
|
width: "max-content",
|
|
1018
1018
|
display: "flex",
|
|
1019
|
-
|
|
1019
|
+
flexDirection: mode == "horizontal" ? "row" : "column",
|
|
1020
|
+
alignItems: "center",
|
|
1021
|
+
justifyContent: "center"
|
|
1020
1022
|
}
|
|
1021
1023
|
}, _showName && /*#__PURE__*/_react["default"].createElement(_.TextOverflow, {
|
|
1022
1024
|
type: textOverflow,
|
package/package.json
CHANGED
package/src/components/Band.tsx
CHANGED
|
@@ -151,6 +151,7 @@ export default memo(
|
|
|
151
151
|
const {
|
|
152
152
|
style,
|
|
153
153
|
fillType,
|
|
154
|
+
fillMode="tile",
|
|
154
155
|
url,
|
|
155
156
|
size,
|
|
156
157
|
fill,
|
|
@@ -285,7 +286,7 @@ export default memo(
|
|
|
285
286
|
opacity: fillType == "pattern" ? opacity : 1,
|
|
286
287
|
background:
|
|
287
288
|
fillType == "pattern"
|
|
288
|
-
? `${isVertical?y<0?"100%":"0%":"50%"} ${isVertical?"50%":y<0?"0%":"100%"} / ${size.width
|
|
289
|
+
? `${isVertical?y<0?"100%":"0%":"50%"} ${isVertical?"50%":y<0?"0%":"100%"} / ${ fillMode=="tile"?size.width+"px "+size.height+"px":"100% 100%" } repeat ` +
|
|
289
290
|
"url(" +
|
|
290
291
|
//@ts-ignore
|
|
291
292
|
window.appConfig.ASSETS_URL + url +
|
|
@@ -1182,7 +1182,9 @@ const Label = ({
|
|
|
1182
1182
|
float: x3 >= 0 ? "left" : "right",
|
|
1183
1183
|
width: "max-content",
|
|
1184
1184
|
display:"flex",
|
|
1185
|
-
|
|
1185
|
+
flexDirection: mode=="horizontal"?"row":"column",
|
|
1186
|
+
alignItems:"center",
|
|
1187
|
+
justifyContent:"center"
|
|
1186
1188
|
}}
|
|
1187
1189
|
>
|
|
1188
1190
|
{_showName && (
|