@easyv/charts 1.6.28 → 1.7.23

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.
@@ -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, "px ").concat(size.height, "px repeat ") + "url(" +
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({
@@ -152,7 +152,7 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
152
152
  "data-data": JSON.stringify(data)
153
153
  }, showIcon && !isNaN(attr.y) && /*#__PURE__*/React.createElement(Icon, {
154
154
  cx: attr.x,
155
- cy: attr.y,
155
+ cy: y2,
156
156
  config: icon
157
157
  }), showLabel && /*#__PURE__*/React.createElement(Label, (0, _extends2["default"])({
158
158
  value: showY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.6.28",
3
+ "version": "1.7.23",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -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}px ${size.height}px repeat ` +
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 +
@@ -118,7 +118,7 @@ export default memo(
118
118
  data-data={JSON.stringify(data)}
119
119
  >
120
120
  {showIcon && !isNaN(attr.y) && (
121
- <Icon cx={attr.x} cy={attr.y} config={icon} />
121
+ <Icon cx={attr.x} cy={y2} config={icon} />
122
122
  )}
123
123
  {showLabel && <Label value={showY} config={label} reverse={reverse} {...attr} />}
124
124
  </g>