evui 3.4.145 → 3.4.146
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/dist/evui.common.js +17 -9
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +17 -9
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/element/element.heatmap.js +19 -9
package/dist/evui.common.js
CHANGED
|
@@ -11227,7 +11227,7 @@ var update = add("9519e5b6", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
11227
11227
|
/***/ "9224":
|
|
11228
11228
|
/***/ (function(module) {
|
|
11229
11229
|
|
|
11230
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11230
|
+
module.exports = JSON.parse("{\"a\":\"3.4.146\"}");
|
|
11231
11231
|
|
|
11232
11232
|
/***/ }),
|
|
11233
11233
|
|
|
@@ -44332,19 +44332,25 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
44332
44332
|
}, selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.borderStyle);
|
|
44333
44333
|
}
|
|
44334
44334
|
|
|
44335
|
-
|
|
44335
|
+
var isBorderDrawable = false;
|
|
44336
|
+
|
|
44337
|
+
if (borderOpt.show && borderOpt.lineWidth > 0) {
|
|
44336
44338
|
var _borderOpt = borderOpt,
|
|
44337
44339
|
color = _borderOpt.color,
|
|
44338
44340
|
lineWidth = _borderOpt.lineWidth,
|
|
44339
44341
|
borderOpacity = _borderOpt.opacity;
|
|
44340
|
-
|
|
44342
|
+
var totalStrokeWidth = lineWidth * 2;
|
|
44343
|
+
isBorderDrawable = totalStrokeWidth < Math.floor(w) && totalStrokeWidth < Math.floor(h);
|
|
44344
|
+
ctx.strokeStyle = isBorderDrawable ? helpers_util.colorStringToRgba(color, itemOpacity === 1 ? borderOpacity : itemOpacity) : undefined; // item 사이즈 보다 border 선 굵기가 큰 경우 lineWidth props 무시
|
|
44341
44345
|
|
|
44342
|
-
if (
|
|
44346
|
+
if (isBorderDrawable) {
|
|
44343
44347
|
ctx.lineWidth = lineWidth;
|
|
44344
|
-
xp += lineWidth
|
|
44345
|
-
yp += lineWidth
|
|
44346
|
-
w -=
|
|
44347
|
-
h -=
|
|
44348
|
+
xp += lineWidth;
|
|
44349
|
+
yp += lineWidth;
|
|
44350
|
+
w -= totalStrokeWidth;
|
|
44351
|
+
h -= totalStrokeWidth;
|
|
44352
|
+
} else {
|
|
44353
|
+
ctx.lineWidth = 0;
|
|
44348
44354
|
}
|
|
44349
44355
|
}
|
|
44350
44356
|
|
|
@@ -44354,7 +44360,9 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
44354
44360
|
item.w = w;
|
|
44355
44361
|
item.h = h;
|
|
44356
44362
|
|
|
44357
|
-
_this2.drawItem(ctx, xp, yp, w, h, borderOpt)
|
|
44363
|
+
_this2.drawItem(ctx, xp, yp, w, h, _objectSpread2(_objectSpread2({}, borderOpt), {}, {
|
|
44364
|
+
show: isBorderDrawable
|
|
44365
|
+
}));
|
|
44358
44366
|
|
|
44359
44367
|
ctx.restore();
|
|
44360
44368
|
|