tvcharts 0.5.81 → 0.5.82
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/echarts.js
CHANGED
|
@@ -66984,6 +66984,7 @@ var MarkLabelView2 = class extends Component_default2 {
|
|
|
66984
66984
|
updateMarkLabels(markerModel, ecModel) {
|
|
66985
66985
|
const markerGroupMap = this.markerGroupMap;
|
|
66986
66986
|
const labelMap = markerModel.labelMap;
|
|
66987
|
+
console.log("%c [ labelMap ]-148", "font-size:13px; background:pink; color:#bf2c9f;", labelMap);
|
|
66987
66988
|
ecModel.eachSeries((seriesModel) => {
|
|
66988
66989
|
const seriesName = seriesModel.name;
|
|
66989
66990
|
const markLabelData = labelMap.get(seriesName);
|
|
@@ -67044,7 +67045,7 @@ var MarkLabelView2 = class extends Component_default2 {
|
|
|
67044
67045
|
this.group.add(el);
|
|
67045
67046
|
}
|
|
67046
67047
|
inner21(el).yAxisIndex = yAxisModel.index;
|
|
67047
|
-
inner21(el).isSort =
|
|
67048
|
+
inner21(el).isSort = item.showName;
|
|
67048
67049
|
});
|
|
67049
67050
|
});
|
|
67050
67051
|
}
|
|
@@ -67253,7 +67254,7 @@ function createLabel({x, y, labelData, markerModel, gridRect, position: position
|
|
|
67253
67254
|
ignore: !showTitle
|
|
67254
67255
|
});
|
|
67255
67256
|
const lineEl = new Line_default({
|
|
67256
|
-
style: Object.assign(lineStyle, {stroke: labelTextStyle.backgroundColor}),
|
|
67257
|
+
style: Object.assign(lineStyle, labelTextStyle ? {stroke: labelTextStyle.backgroundColor} : {}),
|
|
67257
67258
|
shape: {
|
|
67258
67259
|
x1: showTitle && isLeft ? gridRect.x + 2 : gridRect.x,
|
|
67259
67260
|
y1: y,
|
|
@@ -67273,7 +67274,7 @@ function createLabel({x, y, labelData, markerModel, gridRect, position: position
|
|
|
67273
67274
|
return group;
|
|
67274
67275
|
}
|
|
67275
67276
|
function updateLabel({x, y, labelData, markerModel, gridRect, position: position2, el, labelTextStyle}) {
|
|
67276
|
-
const {textStyle, lineStyle, showLine, showName, showTitle} = labelData;
|
|
67277
|
+
const {textStyle = {}, lineStyle, showLine, showName, showTitle} = labelData;
|
|
67277
67278
|
const isLeft = position2 === "left";
|
|
67278
67279
|
if (el.ignore) {
|
|
67279
67280
|
el.ignore = false;
|
|
@@ -67295,7 +67296,7 @@ function updateLabel({x, y, labelData, markerModel, gridRect, position: position
|
|
|
67295
67296
|
x2: showTitle && !isLeft ? gridRect.x + gridRect.width - 2 : gridRect.x + gridRect.width,
|
|
67296
67297
|
y2: y
|
|
67297
67298
|
},
|
|
67298
|
-
style: Object.assign(lineStyle, {stroke: labelTextStyle.backgroundColor})
|
|
67299
|
+
style: Object.assign(lineStyle, labelTextStyle ? {stroke: labelTextStyle.backgroundColor} : {})
|
|
67299
67300
|
});
|
|
67300
67301
|
element.ignore = false;
|
|
67301
67302
|
break;
|
|
@@ -67307,9 +67308,10 @@ function updateLabel({x, y, labelData, markerModel, gridRect, position: position
|
|
|
67307
67308
|
const textLabel = labelData.text;
|
|
67308
67309
|
const labelX = isLeft ? getLeftTextX(x, textLabel, textStyle, markerModel.ecModel) : x;
|
|
67309
67310
|
const margin = isLeft ? -1 : 1;
|
|
67310
|
-
element.x = labelX + (labelTextStyle
|
|
67311
|
+
element.x = labelX + (labelTextStyle?.borderWidth ? margin : 0);
|
|
67311
67312
|
element.y = labelY;
|
|
67312
67313
|
element.attr("style", Object.assign({text: textLabel}, textStyle, labelTextStyle));
|
|
67314
|
+
element.ignore = false;
|
|
67313
67315
|
break;
|
|
67314
67316
|
case "nameLabel":
|
|
67315
67317
|
if (!showTitle) {
|