tvcharts 0.7.50 → 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 +36 -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/coord/cartesian/Cartesian2D.js +8 -9
- package/lib/coord/cartesian/Grid.js +5 -1
- package/lib/core/echarts.js +3 -0
- 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) {
|
|
@@ -20224,7 +20224,6 @@ var SeriesModel2 = class extends Component_default {
|
|
|
20224
20224
|
return item;
|
|
20225
20225
|
});
|
|
20226
20226
|
data.updateData(list, params.isMustAppend);
|
|
20227
|
-
console.log("%c [ list ]-380", "font-size:13px; background:pink; color:#bf2c9f;", list);
|
|
20228
20227
|
}
|
|
20229
20228
|
getData(dataType) {
|
|
20230
20229
|
const task = getCurrentTask(this);
|
|
@@ -24839,7 +24838,7 @@ var ECharts = class extends Eventful_default {
|
|
|
24839
24838
|
const dataList = map(params.data, (item, index2) => {
|
|
24840
24839
|
const idx = ordinalMeta.parseAndCollect(item[0]);
|
|
24841
24840
|
if (!seriesModel.option.data[idx]) {
|
|
24842
|
-
console.log("\
|
|
24841
|
+
console.log("\u66F4\u65B0\u4E0B\u6807\u9519\u8BEF", idx, ordinalMeta, item[0]);
|
|
24843
24842
|
return;
|
|
24844
24843
|
}
|
|
24845
24844
|
const value = item.slice();
|
|
@@ -24866,7 +24865,7 @@ var ECharts = class extends Eventful_default {
|
|
|
24866
24865
|
const formatData = map(params.data, (item) => {
|
|
24867
24866
|
const idx = ordinalMeta.parseAndCollect(item[0]);
|
|
24868
24867
|
if (isNaN(idx)) {
|
|
24869
|
-
console.log("\
|
|
24868
|
+
console.log("\u6DFB\u52A0\u4E0B\u6807\u9519\u8BEFNaN", item[0], ordinalMeta);
|
|
24870
24869
|
return;
|
|
24871
24870
|
}
|
|
24872
24871
|
if (isCandletick) {
|
|
@@ -25326,6 +25325,7 @@ ECharts.internalField = function() {
|
|
|
25326
25325
|
if (isHighDown) {
|
|
25327
25326
|
const {queryOptionMap, mainTypeSpecified} = preParseFinder(payload);
|
|
25328
25327
|
const componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : "series";
|
|
25328
|
+
console.log("%c [ isHighDown ]-2526", "font-size:13px; background:pink; color:#bf2c9f;", isHighDown, componentMainType, batchItem);
|
|
25329
25329
|
updateDirectly(this, updateMethod, batchItem, componentMainType);
|
|
25330
25330
|
markStatusToUpdate(this);
|
|
25331
25331
|
} else if (isSelectChange) {
|
|
@@ -39143,14 +39143,7 @@ var Cartesian2D = class extends Cartesian_default {
|
|
|
39143
39143
|
return new BoundingRect_default(x, y, width, height);
|
|
39144
39144
|
}
|
|
39145
39145
|
getBaseValue() {
|
|
39146
|
-
|
|
39147
|
-
const seriesModal = this.seriesModal;
|
|
39148
|
-
if (seriesModal) {
|
|
39149
|
-
const seriesData = seriesModal.getData();
|
|
39150
|
-
const dim = isCandle(seriesModal.subType) ? "close" : "y";
|
|
39151
|
-
baseValue = seriesData.get(dim, 0);
|
|
39152
|
-
}
|
|
39153
|
-
return baseValue;
|
|
39146
|
+
return this.baseValue;
|
|
39154
39147
|
}
|
|
39155
39148
|
};
|
|
39156
39149
|
var Cartesian2D_default = Cartesian2D;
|
|
@@ -39634,7 +39627,10 @@ var Grid2 = class {
|
|
|
39634
39627
|
seriesModel.coordinateSystem = grid.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);
|
|
39635
39628
|
const copy3 = Object.create(Object.getPrototypeOf(seriesModel.coordinateSystem));
|
|
39636
39629
|
seriesModel.coordinateSystem = Object.assign(copy3, seriesModel.coordinateSystem);
|
|
39637
|
-
|
|
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;
|
|
39638
39634
|
});
|
|
39639
39635
|
return grids;
|
|
39640
39636
|
}
|
|
@@ -56083,6 +56079,7 @@ var LinesPlotSeriesModel2 = class extends Series_default {
|
|
|
56083
56079
|
constructor() {
|
|
56084
56080
|
super(...arguments);
|
|
56085
56081
|
this.type = LinesPlotSeriesModel2.type;
|
|
56082
|
+
this.ignoreStyleOnData = true;
|
|
56086
56083
|
this.hasSymbolVisual = true;
|
|
56087
56084
|
}
|
|
56088
56085
|
getInitialData(option) {
|
|
@@ -56916,6 +56913,7 @@ var MineLinesSeriesModel2 = class extends Series_default {
|
|
|
56916
56913
|
super(...arguments);
|
|
56917
56914
|
this.type = MineLinesSeriesModel2.type;
|
|
56918
56915
|
this.xFilterMode = "weakFilter";
|
|
56916
|
+
this.ignoreStyleOnData = true;
|
|
56919
56917
|
this.dataIndexById = {};
|
|
56920
56918
|
}
|
|
56921
56919
|
getInitialData(option) {
|
|
@@ -57220,6 +57218,7 @@ var MinePolyLinesSeriesModel2 = class extends Series_default {
|
|
|
57220
57218
|
super(...arguments);
|
|
57221
57219
|
this.type = MinePolyLinesSeriesModel2.type;
|
|
57222
57220
|
this.xFilterMode = "weakFilter";
|
|
57221
|
+
this.ignoreStyleOnData = true;
|
|
57223
57222
|
this.dataIndexById = {};
|
|
57224
57223
|
}
|
|
57225
57224
|
getInitialData(option) {
|
|
@@ -57430,6 +57429,7 @@ var LineFillsSeriesModel2 = class extends Series_default {
|
|
|
57430
57429
|
constructor() {
|
|
57431
57430
|
super(...arguments);
|
|
57432
57431
|
this.type = LineFillsSeriesModel2.type;
|
|
57432
|
+
this.ignoreStyleOnData = true;
|
|
57433
57433
|
this.dataIndexById = {};
|
|
57434
57434
|
}
|
|
57435
57435
|
getInitialData(option) {
|
|
@@ -57703,6 +57703,7 @@ var BoxesSeriesModel2 = class extends Series_default {
|
|
|
57703
57703
|
super(...arguments);
|
|
57704
57704
|
this.type = BoxesSeriesModel2.type;
|
|
57705
57705
|
this.xFilterMode = "weakFilter";
|
|
57706
|
+
this.ignoreStyleOnData = true;
|
|
57706
57707
|
}
|
|
57707
57708
|
getInitialData(option) {
|
|
57708
57709
|
if (true) {
|
|
@@ -58304,6 +58305,7 @@ var CandlePlotSeriesModel2 = class extends Series_default {
|
|
|
58304
58305
|
super(...arguments);
|
|
58305
58306
|
this.type = CandlePlotSeriesModel2.type;
|
|
58306
58307
|
this.notAddOrdinal = true;
|
|
58308
|
+
this.ignoreStyleOnData = true;
|
|
58307
58309
|
this.defaultValueDimensions = [
|
|
58308
58310
|
{name: "open", defaultTooltip: true},
|
|
58309
58311
|
{name: "close", defaultTooltip: true},
|
|
@@ -58595,6 +58597,7 @@ var BarPlotSeriesModel2 = class extends Series_default {
|
|
|
58595
58597
|
super(...arguments);
|
|
58596
58598
|
this.type = BarPlotSeriesModel2.type;
|
|
58597
58599
|
this.notAddOrdinal = true;
|
|
58600
|
+
this.ignoreStyleOnData = true;
|
|
58598
58601
|
this.defaultValueDimensions = [
|
|
58599
58602
|
{name: "open", defaultTooltip: true},
|
|
58600
58603
|
{name: "close", defaultTooltip: true},
|
|
@@ -58748,6 +58751,7 @@ var ArrowsPlotSeriesModel2 = class extends Series_default {
|
|
|
58748
58751
|
constructor() {
|
|
58749
58752
|
super(...arguments);
|
|
58750
58753
|
this.type = ArrowsPlotSeriesModel2.type;
|
|
58754
|
+
this.ignoreStyleOnData = true;
|
|
58751
58755
|
}
|
|
58752
58756
|
getInitialData(option, ecModel) {
|
|
58753
58757
|
return createSeriesData_default(null, this, {
|
|
@@ -58962,6 +58966,7 @@ var LabelsSeriesModel2 = class extends Series_default {
|
|
|
58962
58966
|
super(...arguments);
|
|
58963
58967
|
this.type = LabelsSeriesModel2.type;
|
|
58964
58968
|
this.dataIndexById = {};
|
|
58969
|
+
this.ignoreStyleOnData = true;
|
|
58965
58970
|
}
|
|
58966
58971
|
getInitialData(option, ecModel) {
|
|
58967
58972
|
return createSeriesData_default(null, this, {
|
|
@@ -59596,6 +59601,7 @@ var HLineSeriesModel2 = class extends Series_default {
|
|
|
59596
59601
|
constructor() {
|
|
59597
59602
|
super(...arguments);
|
|
59598
59603
|
this.type = HLineSeriesModel2.type;
|
|
59604
|
+
this.ignoreStyleOnData = true;
|
|
59599
59605
|
}
|
|
59600
59606
|
getInitialData(option) {
|
|
59601
59607
|
if (true) {
|
|
@@ -59730,6 +59736,7 @@ var FillsSeriesModel2 = class extends Series_default {
|
|
|
59730
59736
|
constructor() {
|
|
59731
59737
|
super(...arguments);
|
|
59732
59738
|
this.type = FillsSeriesModel2.type;
|
|
59739
|
+
this.ignoreStyleOnData = true;
|
|
59733
59740
|
}
|
|
59734
59741
|
getInitialData(option) {
|
|
59735
59742
|
if (true) {
|
|
@@ -60018,6 +60025,7 @@ var BgColorSeriesModel2 = class extends Series_default {
|
|
|
60018
60025
|
constructor() {
|
|
60019
60026
|
super(...arguments);
|
|
60020
60027
|
this.type = BgColorSeriesModel2.type;
|
|
60028
|
+
this.ignoreStyleOnData = true;
|
|
60021
60029
|
}
|
|
60022
60030
|
getInitialData(option) {
|
|
60023
60031
|
if (true) {
|
|
@@ -60081,10 +60089,20 @@ var BgColorPath = class extends Path_default {
|
|
|
60081
60089
|
ctx2.lineTo(x, y + height);
|
|
60082
60090
|
}
|
|
60083
60091
|
} else {
|
|
60092
|
+
let nextIndex = 0;
|
|
60084
60093
|
for (let index = 0; index < points4.length; index++) {
|
|
60085
60094
|
const point = points4[index];
|
|
60086
|
-
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
|
+
}
|
|
60087
60104
|
ctx2.rect(x, y, width, height);
|
|
60105
|
+
index = nextIndex;
|
|
60088
60106
|
}
|
|
60089
60107
|
}
|
|
60090
60108
|
}
|
|
@@ -60109,7 +60127,7 @@ var BgColorView2 = class extends Chart_default {
|
|
|
60109
60127
|
}
|
|
60110
60128
|
const bgColorGroup = this._bgColorGroup;
|
|
60111
60129
|
const barWidth = Math.ceil(seriesModel.coordinateSystem.getBaseAxis().scale.barSpace) || 5;
|
|
60112
|
-
const isLine = barWidth <=
|
|
60130
|
+
const isLine = barWidth <= 4;
|
|
60113
60131
|
each(rectsByColor, function(rects, color2) {
|
|
60114
60132
|
const el = new BgColorPath_default({
|
|
60115
60133
|
shape: {
|
|
@@ -60120,7 +60138,7 @@ var BgColorView2 = class extends Chart_default {
|
|
|
60120
60138
|
style: {
|
|
60121
60139
|
fill: isLine ? null : color2,
|
|
60122
60140
|
stroke: isLine ? color2 : "none",
|
|
60123
|
-
lineWidth: isLine ? barWidth : void 0
|
|
60141
|
+
lineWidth: isLine ? +barWidth : void 0
|
|
60124
60142
|
}
|
|
60125
60143
|
});
|
|
60126
60144
|
bgColorGroup.add(el);
|
|
@@ -60182,6 +60200,7 @@ var bgColorLayout = {
|
|
|
60182
60200
|
progress(params, bgColorData) {
|
|
60183
60201
|
const rectsByColor = {};
|
|
60184
60202
|
const barWidth = Math.ceil(coordSys.getBaseAxis().scale.barSpace) || 5;
|
|
60203
|
+
const leftOffset = barWidth / 2;
|
|
60185
60204
|
const {height, startY} = getHeight(seriesModel);
|
|
60186
60205
|
const lastIndex = bgColorData.count(true) - 1;
|
|
60187
60206
|
for (let i = params.start; i < params.end; i++) {
|
|
@@ -60203,7 +60222,7 @@ var bgColorLayout = {
|
|
|
60203
60222
|
}
|
|
60204
60223
|
const rects = rectsByColor[color2] || [];
|
|
60205
60224
|
rects.push({
|
|
60206
|
-
x: xPx -
|
|
60225
|
+
x: xPx - leftOffset,
|
|
60207
60226
|
y: startY,
|
|
60208
60227
|
width
|
|
60209
60228
|
});
|