tvcharts 0.7.49 → 0.7.51
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 +37 -17
- package/dist/echarts.js.map +2 -2
- package/lib/chart/arrowsPlot/ArrowsPlotSeries.js +1 -0
- package/lib/chart/barPlot/BarPlotSeries.js +1 -0
- package/lib/chart/bgColor/BgColorLayout.js +3 -2
- package/lib/chart/bgColor/BgColorPath.js +11 -2
- package/lib/chart/bgColor/BgColorSeries.js +1 -0
- package/lib/chart/bgColor/BgColorView.js +3 -2
- package/lib/chart/boxes/BoxesSeries.js +1 -0
- package/lib/chart/candlePlot/CandlePlotSeries.js +1 -0
- package/lib/chart/fills/FillsSeries.js +1 -0
- package/lib/chart/hlines/HLinesSeries.js +1 -0
- package/lib/chart/labels/LabelsSeries.js +2 -1
- package/lib/chart/lineFills/LineFillsSeries.js +1 -0
- package/lib/chart/linesPlot/LinesPlotSeries.js +1 -0
- package/lib/chart/mineLines/MineLinesSeries.js +1 -0
- package/lib/chart/minePolyLines/MinePolyLinesSeries.js +1 -0
- package/lib/component/alarm/AlarmModel.js +1 -1
- package/lib/coord/cartesian/Cartesian2D.js +8 -9
- package/lib/coord/cartesian/Grid.js +5 -1
- package/lib/core/echarts.js +5 -2
- package/lib/util/states.js +1 -1
- package/package.json +2 -2
- package/types/dist/echarts.d.ts +5 -1
- package/types/dist/shared.d.ts +5 -1
- package/types/src/chart/arrowsPlot/ArrowsPlotSeries.d.ts +1 -0
- package/types/src/chart/barPlot/BarPlotSeries.d.ts +1 -0
- package/types/src/chart/bgColor/BgColorSeries.d.ts +1 -0
- package/types/src/chart/boxes/BoxesSeries.d.ts +1 -0
- package/types/src/chart/candlePlot/CandlePlotSeries.d.ts +1 -0
- package/types/src/chart/fills/FillsSeries.d.ts +1 -0
- package/types/src/chart/hlines/HLinesSeries.d.ts +1 -0
- package/types/src/chart/labels/LabelsSeries.d.ts +1 -0
- package/types/src/chart/lineFills/LineFillsSeries.d.ts +1 -0
- package/types/src/chart/linesPlot/LinesPlotSeries.d.ts +1 -0
- package/types/src/chart/mineLines/MineLinesSeries.d.ts +1 -0
- package/types/src/chart/minePolyLines/MinePolyLinesSeries.d.ts +1 -0
- package/types/src/coord/cartesian/Cartesian2D.d.ts +2 -3
- package/types/src/core/echarts.d.ts +1 -0
package/dist/echarts.js
CHANGED
|
@@ -11883,6 +11883,7 @@ function handleGlobalMouseOverForHighDown(dispatcher, e2, api2) {
|
|
|
11883
11883
|
error("param should be highDownDispatcher");
|
|
11884
11884
|
}
|
|
11885
11885
|
const ecData = getECData(dispatcher);
|
|
11886
|
+
console.log("%c [ ecData ]-666", "font-size:13px; background:pink; color:#bf2c9f;", ecData, e2);
|
|
11886
11887
|
const {dispatchers, focusSelf} = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api2);
|
|
11887
11888
|
if (dispatchers) {
|
|
11888
11889
|
if (focusSelf) {
|
|
@@ -11895,7 +11896,6 @@ function handleGlobalMouseOverForHighDown(dispatcher, e2, api2) {
|
|
|
11895
11896
|
blurComponent(ecData.componentMainType, ecData.componentIndex, api2);
|
|
11896
11897
|
}
|
|
11897
11898
|
enterEmphasisWhenMouseOver(dispatcher, e2);
|
|
11898
|
-
console.log("%c [ ecData ]-666", "font-size:13px; background:pink; color:#bf2c9f;", ecData, e2);
|
|
11899
11899
|
}
|
|
11900
11900
|
}
|
|
11901
11901
|
function handleGlobalMouseOutForHighDown(dispatcher, e2, api2) {
|
|
@@ -24838,7 +24838,7 @@ var ECharts = class extends Eventful_default {
|
|
|
24838
24838
|
const dataList = map(params.data, (item, index2) => {
|
|
24839
24839
|
const idx = ordinalMeta.parseAndCollect(item[0]);
|
|
24840
24840
|
if (!seriesModel.option.data[idx]) {
|
|
24841
|
-
console.log("\
|
|
24841
|
+
console.log("\u66F4\u65B0\u4E0B\u6807\u9519\u8BEF", idx, ordinalMeta, item[0]);
|
|
24842
24842
|
return;
|
|
24843
24843
|
}
|
|
24844
24844
|
const value = item.slice();
|
|
@@ -24865,7 +24865,7 @@ var ECharts = class extends Eventful_default {
|
|
|
24865
24865
|
const formatData = map(params.data, (item) => {
|
|
24866
24866
|
const idx = ordinalMeta.parseAndCollect(item[0]);
|
|
24867
24867
|
if (isNaN(idx)) {
|
|
24868
|
-
console.log("\
|
|
24868
|
+
console.log("\u6DFB\u52A0\u4E0B\u6807\u9519\u8BEFNaN", item[0], ordinalMeta);
|
|
24869
24869
|
return;
|
|
24870
24870
|
}
|
|
24871
24871
|
if (isCandletick) {
|
|
@@ -25325,6 +25325,7 @@ ECharts.internalField = function() {
|
|
|
25325
25325
|
if (isHighDown) {
|
|
25326
25326
|
const {queryOptionMap, mainTypeSpecified} = preParseFinder(payload);
|
|
25327
25327
|
const componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : "series";
|
|
25328
|
+
console.log("%c [ isHighDown ]-2526", "font-size:13px; background:pink; color:#bf2c9f;", isHighDown, componentMainType, batchItem);
|
|
25328
25329
|
updateDirectly(this, updateMethod, batchItem, componentMainType);
|
|
25329
25330
|
markStatusToUpdate(this);
|
|
25330
25331
|
} else if (isSelectChange) {
|
|
@@ -39142,14 +39143,7 @@ var Cartesian2D = class extends Cartesian_default {
|
|
|
39142
39143
|
return new BoundingRect_default(x, y, width, height);
|
|
39143
39144
|
}
|
|
39144
39145
|
getBaseValue() {
|
|
39145
|
-
|
|
39146
|
-
const seriesModal = this.seriesModal;
|
|
39147
|
-
if (seriesModal) {
|
|
39148
|
-
const seriesData = seriesModal.getData();
|
|
39149
|
-
const dim = isCandle(seriesModal.subType) ? "close" : "y";
|
|
39150
|
-
baseValue = seriesData.get(dim, 0);
|
|
39151
|
-
}
|
|
39152
|
-
return baseValue;
|
|
39146
|
+
return this.baseValue;
|
|
39153
39147
|
}
|
|
39154
39148
|
};
|
|
39155
39149
|
var Cartesian2D_default = Cartesian2D;
|
|
@@ -39633,7 +39627,10 @@ var Grid2 = class {
|
|
|
39633
39627
|
seriesModel.coordinateSystem = grid.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);
|
|
39634
39628
|
const copy3 = Object.create(Object.getPrototypeOf(seriesModel.coordinateSystem));
|
|
39635
39629
|
seriesModel.coordinateSystem = Object.assign(copy3, seriesModel.coordinateSystem);
|
|
39636
|
-
|
|
39630
|
+
const seriesData = seriesModel.getData();
|
|
39631
|
+
const dim = isCandle(seriesModel.subType) ? "close" : "y";
|
|
39632
|
+
const baseValue = seriesData.get(dim, 0);
|
|
39633
|
+
seriesModel.coordinateSystem.baseValue = baseValue;
|
|
39637
39634
|
});
|
|
39638
39635
|
return grids;
|
|
39639
39636
|
}
|
|
@@ -56082,6 +56079,7 @@ var LinesPlotSeriesModel2 = class extends Series_default {
|
|
|
56082
56079
|
constructor() {
|
|
56083
56080
|
super(...arguments);
|
|
56084
56081
|
this.type = LinesPlotSeriesModel2.type;
|
|
56082
|
+
this.ignoreStyleOnData = true;
|
|
56085
56083
|
this.hasSymbolVisual = true;
|
|
56086
56084
|
}
|
|
56087
56085
|
getInitialData(option) {
|
|
@@ -56915,6 +56913,7 @@ var MineLinesSeriesModel2 = class extends Series_default {
|
|
|
56915
56913
|
super(...arguments);
|
|
56916
56914
|
this.type = MineLinesSeriesModel2.type;
|
|
56917
56915
|
this.xFilterMode = "weakFilter";
|
|
56916
|
+
this.ignoreStyleOnData = true;
|
|
56918
56917
|
this.dataIndexById = {};
|
|
56919
56918
|
}
|
|
56920
56919
|
getInitialData(option) {
|
|
@@ -57219,6 +57218,7 @@ var MinePolyLinesSeriesModel2 = class extends Series_default {
|
|
|
57219
57218
|
super(...arguments);
|
|
57220
57219
|
this.type = MinePolyLinesSeriesModel2.type;
|
|
57221
57220
|
this.xFilterMode = "weakFilter";
|
|
57221
|
+
this.ignoreStyleOnData = true;
|
|
57222
57222
|
this.dataIndexById = {};
|
|
57223
57223
|
}
|
|
57224
57224
|
getInitialData(option) {
|
|
@@ -57429,6 +57429,7 @@ var LineFillsSeriesModel2 = class extends Series_default {
|
|
|
57429
57429
|
constructor() {
|
|
57430
57430
|
super(...arguments);
|
|
57431
57431
|
this.type = LineFillsSeriesModel2.type;
|
|
57432
|
+
this.ignoreStyleOnData = true;
|
|
57432
57433
|
this.dataIndexById = {};
|
|
57433
57434
|
}
|
|
57434
57435
|
getInitialData(option) {
|
|
@@ -57702,6 +57703,7 @@ var BoxesSeriesModel2 = class extends Series_default {
|
|
|
57702
57703
|
super(...arguments);
|
|
57703
57704
|
this.type = BoxesSeriesModel2.type;
|
|
57704
57705
|
this.xFilterMode = "weakFilter";
|
|
57706
|
+
this.ignoreStyleOnData = true;
|
|
57705
57707
|
}
|
|
57706
57708
|
getInitialData(option) {
|
|
57707
57709
|
if (true) {
|
|
@@ -58303,6 +58305,7 @@ var CandlePlotSeriesModel2 = class extends Series_default {
|
|
|
58303
58305
|
super(...arguments);
|
|
58304
58306
|
this.type = CandlePlotSeriesModel2.type;
|
|
58305
58307
|
this.notAddOrdinal = true;
|
|
58308
|
+
this.ignoreStyleOnData = true;
|
|
58306
58309
|
this.defaultValueDimensions = [
|
|
58307
58310
|
{name: "open", defaultTooltip: true},
|
|
58308
58311
|
{name: "close", defaultTooltip: true},
|
|
@@ -58594,6 +58597,7 @@ var BarPlotSeriesModel2 = class extends Series_default {
|
|
|
58594
58597
|
super(...arguments);
|
|
58595
58598
|
this.type = BarPlotSeriesModel2.type;
|
|
58596
58599
|
this.notAddOrdinal = true;
|
|
58600
|
+
this.ignoreStyleOnData = true;
|
|
58597
58601
|
this.defaultValueDimensions = [
|
|
58598
58602
|
{name: "open", defaultTooltip: true},
|
|
58599
58603
|
{name: "close", defaultTooltip: true},
|
|
@@ -58747,6 +58751,7 @@ var ArrowsPlotSeriesModel2 = class extends Series_default {
|
|
|
58747
58751
|
constructor() {
|
|
58748
58752
|
super(...arguments);
|
|
58749
58753
|
this.type = ArrowsPlotSeriesModel2.type;
|
|
58754
|
+
this.ignoreStyleOnData = true;
|
|
58750
58755
|
}
|
|
58751
58756
|
getInitialData(option, ecModel) {
|
|
58752
58757
|
return createSeriesData_default(null, this, {
|
|
@@ -58961,6 +58966,7 @@ var LabelsSeriesModel2 = class extends Series_default {
|
|
|
58961
58966
|
super(...arguments);
|
|
58962
58967
|
this.type = LabelsSeriesModel2.type;
|
|
58963
58968
|
this.dataIndexById = {};
|
|
58969
|
+
this.ignoreStyleOnData = true;
|
|
58964
58970
|
}
|
|
58965
58971
|
getInitialData(option, ecModel) {
|
|
58966
58972
|
return createSeriesData_default(null, this, {
|
|
@@ -59595,6 +59601,7 @@ var HLineSeriesModel2 = class extends Series_default {
|
|
|
59595
59601
|
constructor() {
|
|
59596
59602
|
super(...arguments);
|
|
59597
59603
|
this.type = HLineSeriesModel2.type;
|
|
59604
|
+
this.ignoreStyleOnData = true;
|
|
59598
59605
|
}
|
|
59599
59606
|
getInitialData(option) {
|
|
59600
59607
|
if (true) {
|
|
@@ -59729,6 +59736,7 @@ var FillsSeriesModel2 = class extends Series_default {
|
|
|
59729
59736
|
constructor() {
|
|
59730
59737
|
super(...arguments);
|
|
59731
59738
|
this.type = FillsSeriesModel2.type;
|
|
59739
|
+
this.ignoreStyleOnData = true;
|
|
59732
59740
|
}
|
|
59733
59741
|
getInitialData(option) {
|
|
59734
59742
|
if (true) {
|
|
@@ -60017,6 +60025,7 @@ var BgColorSeriesModel2 = class extends Series_default {
|
|
|
60017
60025
|
constructor() {
|
|
60018
60026
|
super(...arguments);
|
|
60019
60027
|
this.type = BgColorSeriesModel2.type;
|
|
60028
|
+
this.ignoreStyleOnData = true;
|
|
60020
60029
|
}
|
|
60021
60030
|
getInitialData(option) {
|
|
60022
60031
|
if (true) {
|
|
@@ -60080,10 +60089,20 @@ var BgColorPath = class extends Path_default {
|
|
|
60080
60089
|
ctx2.lineTo(x, y + height);
|
|
60081
60090
|
}
|
|
60082
60091
|
} else {
|
|
60092
|
+
let nextIndex = 0;
|
|
60083
60093
|
for (let index = 0; index < points4.length; index++) {
|
|
60084
60094
|
const point = points4[index];
|
|
60085
|
-
const {x, y
|
|
60095
|
+
const {x, y} = point;
|
|
60096
|
+
let width = point.width;
|
|
60097
|
+
nextIndex = index;
|
|
60098
|
+
let nextPoint = points4[nextIndex + 1];
|
|
60099
|
+
while (nextPoint && nextPoint.x === x + width) {
|
|
60100
|
+
width = width + nextPoint.width;
|
|
60101
|
+
nextIndex++;
|
|
60102
|
+
nextPoint = points4[nextIndex + 1];
|
|
60103
|
+
}
|
|
60086
60104
|
ctx2.rect(x, y, width, height);
|
|
60105
|
+
index = nextIndex;
|
|
60087
60106
|
}
|
|
60088
60107
|
}
|
|
60089
60108
|
}
|
|
@@ -60108,7 +60127,7 @@ var BgColorView2 = class extends Chart_default {
|
|
|
60108
60127
|
}
|
|
60109
60128
|
const bgColorGroup = this._bgColorGroup;
|
|
60110
60129
|
const barWidth = Math.ceil(seriesModel.coordinateSystem.getBaseAxis().scale.barSpace) || 5;
|
|
60111
|
-
const isLine = barWidth <=
|
|
60130
|
+
const isLine = barWidth <= 4;
|
|
60112
60131
|
each(rectsByColor, function(rects, color2) {
|
|
60113
60132
|
const el = new BgColorPath_default({
|
|
60114
60133
|
shape: {
|
|
@@ -60119,7 +60138,7 @@ var BgColorView2 = class extends Chart_default {
|
|
|
60119
60138
|
style: {
|
|
60120
60139
|
fill: isLine ? null : color2,
|
|
60121
60140
|
stroke: isLine ? color2 : "none",
|
|
60122
|
-
lineWidth: isLine ? barWidth : void 0
|
|
60141
|
+
lineWidth: isLine ? +barWidth : void 0
|
|
60123
60142
|
}
|
|
60124
60143
|
});
|
|
60125
60144
|
bgColorGroup.add(el);
|
|
@@ -60181,6 +60200,7 @@ var bgColorLayout = {
|
|
|
60181
60200
|
progress(params, bgColorData) {
|
|
60182
60201
|
const rectsByColor = {};
|
|
60183
60202
|
const barWidth = Math.ceil(coordSys.getBaseAxis().scale.barSpace) || 5;
|
|
60203
|
+
const leftOffset = barWidth / 2;
|
|
60184
60204
|
const {height, startY} = getHeight(seriesModel);
|
|
60185
60205
|
const lastIndex = bgColorData.count(true) - 1;
|
|
60186
60206
|
for (let i = params.start; i < params.end; i++) {
|
|
@@ -60202,7 +60222,7 @@ var bgColorLayout = {
|
|
|
60202
60222
|
}
|
|
60203
60223
|
const rects = rectsByColor[color2] || [];
|
|
60204
60224
|
rects.push({
|
|
60205
|
-
x: xPx -
|
|
60225
|
+
x: xPx - leftOffset,
|
|
60206
60226
|
y: startY,
|
|
60207
60227
|
width
|
|
60208
60228
|
});
|
|
@@ -72632,7 +72652,7 @@ var AlarmModel2 = class extends Component_default {
|
|
|
72632
72652
|
constructor() {
|
|
72633
72653
|
super(...arguments);
|
|
72634
72654
|
this.type = AlarmModel2.type;
|
|
72635
|
-
this.preventAutoZ =
|
|
72655
|
+
this.preventAutoZ = true;
|
|
72636
72656
|
}
|
|
72637
72657
|
mergeAlarms(alarms) {
|
|
72638
72658
|
if (true) {
|