@easyv/charts 1.6.28 → 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({
|
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 +
|