tvcharts 0.7.50 → 0.7.52
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 +273 -44
- package/dist/echarts.js.map +2 -2
- package/lib/chart/arrowsPlot/ArrowPlotView.js +8 -0
- package/lib/chart/arrowsPlot/ArrowsPlotSeries.js +5 -1
- package/lib/chart/barPlot/BarPlotSeries.js +4 -3
- package/lib/chart/barPlot/BarPlotView.js +7 -0
- package/lib/chart/bgColor/BgColorLayout.js +3 -2
- package/lib/chart/bgColor/BgColorPath.js +11 -2
- package/lib/chart/bgColor/BgColorSeries.js +7 -3
- package/lib/chart/bgColor/BgColorView.js +10 -2
- package/lib/chart/boxes/BoxesSeries.js +7 -0
- package/lib/chart/boxes/BoxesView.js +8 -0
- package/lib/chart/candlePlot/CandlePlotSeries.js +9 -3
- package/lib/chart/candlePlot/CandlePlotView.js +9 -0
- package/lib/chart/charPlot/CharPlotSeries.js +5 -1
- package/lib/chart/charPlot/CharPlotView.js +8 -0
- package/lib/chart/fills/FillsSeries.js +5 -1
- package/lib/chart/fills/FillsView.js +7 -13
- package/lib/chart/hlines/HLinesSeries.js +5 -1
- package/lib/chart/hlines/HLinesView.js +15 -6
- package/lib/chart/labels/LabelsSeries.js +6 -2
- package/lib/chart/labels/LabelsView.js +10 -1
- package/lib/chart/lineFills/LineFillsSeries.js +7 -0
- package/lib/chart/lineFills/LineFillsView.js +7 -0
- package/lib/chart/linesPlot/LinesPlotSeries.js +12 -0
- package/lib/chart/linesPlot/LinesPlotView.js +18 -1
- package/lib/chart/linesPlot/linesPlotLayout.js +3 -0
- package/lib/chart/mineLines/MineLinesSeries.js +8 -1
- package/lib/chart/mineLines/MineLinesView.js +7 -0
- package/lib/chart/minePolyLines/MinePolyLinesSeries.js +7 -0
- package/lib/chart/minePolyLines/MinePolyLinesView.js +7 -0
- package/lib/chart/strategy/StrategySeries.js +7 -0
- package/lib/chart/strategy/StrategyView.js +15 -0
- package/lib/component/axisPointer/BaseAxisPointer.js +3 -1
- package/lib/component/marker/MarkLabelView.js +3 -2
- package/lib/component/table/TableModel.js +7 -1
- package/lib/component/table/TableView.js +10 -0
- package/lib/coord/cartesian/Cartesian2D.js +8 -9
- package/lib/coord/cartesian/Grid.js +5 -1
- package/lib/core/echarts.js +19 -6
- package/lib/data/helper/dataProvider.js +1 -1
- package/lib/util/states.js +37 -2
- package/package.json +2 -2
- package/types/dist/echarts.d.ts +20 -18
- package/types/dist/shared.d.ts +20 -18
- package/types/src/chart/arrowsPlot/ArrowsPlotSeries.d.ts +3 -0
- package/types/src/chart/barPlot/BarPlotSeries.d.ts +3 -0
- package/types/src/chart/bgColor/BgColorSeries.d.ts +3 -0
- package/types/src/chart/boxes/BoxesSeries.d.ts +5 -6
- package/types/src/chart/candlePlot/CandlePlotSeries.d.ts +3 -0
- package/types/src/chart/charPlot/CharPlotSeries.d.ts +3 -0
- package/types/src/chart/fills/FillsSeries.d.ts +3 -0
- package/types/src/chart/hlines/HLinesSeries.d.ts +3 -0
- package/types/src/chart/hlines/HLinesView.d.ts +5 -5
- package/types/src/chart/labels/LabelsSeries.d.ts +3 -0
- package/types/src/chart/lineFills/LineFillsSeries.d.ts +7 -1
- package/types/src/chart/linesPlot/LinesPlotSeries.d.ts +7 -5
- package/types/src/chart/mineLines/MineLinesSeries.d.ts +4 -12
- package/types/src/chart/minePolyLines/MinePolyLinesSeries.d.ts +2 -1
- package/types/src/chart/strategy/StrategySeries.d.ts +2 -1
- package/types/src/component/table/TableModel.d.ts +4 -0
- package/types/src/coord/cartesian/Cartesian2D.d.ts +2 -3
- package/types/src/core/ExtensionAPI.d.ts +2 -0
- package/types/src/core/echarts.d.ts +3 -0
- package/types/src/util/innerStore.d.ts +1 -0
- package/types/src/util/states.d.ts +2 -0
- package/types/src/util/types.d.ts +1 -0
package/dist/echarts.js
CHANGED
|
@@ -2091,6 +2091,7 @@ var Handler = class extends Eventful_default {
|
|
|
2091
2091
|
constructor(storage2, painter, proxy, painterRoot, pointerSize) {
|
|
2092
2092
|
super();
|
|
2093
2093
|
this._hovered = new HoveredResult(0, 0);
|
|
2094
|
+
this._defaultCursorStyle = "default";
|
|
2094
2095
|
this.storage = storage2;
|
|
2095
2096
|
this.painter = painter;
|
|
2096
2097
|
this.painterRoot = painterRoot;
|
|
@@ -2125,7 +2126,7 @@ var Handler = class extends Eventful_default {
|
|
|
2125
2126
|
const hovered = this._hovered = isOutside ? new HoveredResult(x, y) : this.findHover(x, y);
|
|
2126
2127
|
const hoveredTarget = hovered.target;
|
|
2127
2128
|
const proxy = this.proxy;
|
|
2128
|
-
proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor :
|
|
2129
|
+
proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor : this._defaultCursorStyle);
|
|
2129
2130
|
if (lastHoveredTarget && hoveredTarget !== lastHoveredTarget) {
|
|
2130
2131
|
this.dispatchToElement(lastHovered, "mouseout", event);
|
|
2131
2132
|
}
|
|
@@ -2160,6 +2161,11 @@ var Handler = class extends Eventful_default {
|
|
|
2160
2161
|
const proxy = this.proxy;
|
|
2161
2162
|
proxy.setCursor && proxy.setCursor(cursorStyle);
|
|
2162
2163
|
}
|
|
2164
|
+
setDefaultCursorStyle(cursorStyle) {
|
|
2165
|
+
this._defaultCursorStyle = cursorStyle;
|
|
2166
|
+
const proxy = this.proxy;
|
|
2167
|
+
proxy.setCursor && proxy.setCursor(cursorStyle);
|
|
2168
|
+
}
|
|
2163
2169
|
dispatchToElement(targetInfo, eventName, event) {
|
|
2164
2170
|
targetInfo = targetInfo || {};
|
|
2165
2171
|
let el = targetInfo.target;
|
|
@@ -7121,6 +7127,12 @@ var ZRender = class {
|
|
|
7121
7127
|
}
|
|
7122
7128
|
this.handler.setCursorStyle(cursorStyle);
|
|
7123
7129
|
}
|
|
7130
|
+
setDefaultCursorStyle(cursorStyle) {
|
|
7131
|
+
if (this._disposed) {
|
|
7132
|
+
return;
|
|
7133
|
+
}
|
|
7134
|
+
this.handler.setDefaultCursorStyle(cursorStyle);
|
|
7135
|
+
}
|
|
7124
7136
|
findHover(x, y) {
|
|
7125
7137
|
if (this._disposed) {
|
|
7126
7138
|
return;
|
|
@@ -7203,7 +7215,7 @@ function getElementSSRData(el) {
|
|
|
7203
7215
|
function registerSSRDataGetter(getter) {
|
|
7204
7216
|
ssrDataGetter = getter;
|
|
7205
7217
|
}
|
|
7206
|
-
var version = "5.6.
|
|
7218
|
+
var version = "5.6.74";
|
|
7207
7219
|
|
|
7208
7220
|
// src/util/number.ts
|
|
7209
7221
|
var RADIAN_EPSILON = 1e-4;
|
|
@@ -8715,7 +8727,7 @@ var DEFAULT_COMMON_ANIMATION_PROPS = {
|
|
|
8715
8727
|
}
|
|
8716
8728
|
};
|
|
8717
8729
|
DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY] = true;
|
|
8718
|
-
var PRIMARY_STATES_KEYS2 = ["z", "z2", "invisible"];
|
|
8730
|
+
var PRIMARY_STATES_KEYS2 = ["z", "z2", "invisible", "zlevel"];
|
|
8719
8731
|
var PRIMARY_STATES_KEYS_IN_HOVER_LAYER = ["invisible"];
|
|
8720
8732
|
var Displayable2 = class extends Element_default {
|
|
8721
8733
|
constructor(props) {
|
|
@@ -11176,7 +11188,7 @@ var ZRText = class extends Displayable_default {
|
|
|
11176
11188
|
setSeparateFont(subElStyle, style);
|
|
11177
11189
|
textY += lineHeight;
|
|
11178
11190
|
if (fixedBoundingRect) {
|
|
11179
|
-
el.setBoundingRect(new BoundingRect_default(adjustTextX(subElStyle.x,
|
|
11191
|
+
el.setBoundingRect(new BoundingRect_default(adjustTextX(subElStyle.x, contentWidth, subElStyle.textAlign), adjustTextY2(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline), contentWidth, calculatedLineHeight));
|
|
11180
11192
|
}
|
|
11181
11193
|
}
|
|
11182
11194
|
}
|
|
@@ -11878,11 +11890,33 @@ function findComponentHighDownDispatchers(componentMainType, componentIndex, nam
|
|
|
11878
11890
|
}
|
|
11879
11891
|
return {focusSelf, dispatchers};
|
|
11880
11892
|
}
|
|
11893
|
+
function findGroupHighDownDispatchers(groupId, api2) {
|
|
11894
|
+
const ecModel = api2.getModel();
|
|
11895
|
+
const dispatchers = [];
|
|
11896
|
+
ecModel.eachComponent(function(componentType, componentModel) {
|
|
11897
|
+
if (componentModel.get("groupId") === groupId) {
|
|
11898
|
+
const view = componentType === "series" ? api2.getViewOfSeriesModel(componentModel) : api2.getViewOfComponentModel(componentModel);
|
|
11899
|
+
dispatchers.push(view.group);
|
|
11900
|
+
}
|
|
11901
|
+
});
|
|
11902
|
+
return dispatchers;
|
|
11903
|
+
}
|
|
11904
|
+
function handleGroupMouseOverForHighDown(groupId, api2) {
|
|
11905
|
+
const dispatchers = findGroupHighDownDispatchers(groupId, api2);
|
|
11906
|
+
each(dispatchers, (el) => !el.__highByOuter && traverseUpdateState(el, singleEnterEmphasis));
|
|
11907
|
+
}
|
|
11881
11908
|
function handleGlobalMouseOverForHighDown(dispatcher, e2, api2) {
|
|
11882
11909
|
if (!isHighDownDispatcher(dispatcher)) {
|
|
11883
11910
|
error("param should be highDownDispatcher");
|
|
11884
11911
|
}
|
|
11885
11912
|
const ecData = getECData(dispatcher);
|
|
11913
|
+
const groupId = ecData.groupId;
|
|
11914
|
+
if (groupId) {
|
|
11915
|
+
const dispatchers2 = findGroupHighDownDispatchers(groupId, api2);
|
|
11916
|
+
each(dispatchers2, (dispatcher2) => enterEmphasisWhenMouseOver(dispatcher2, e2));
|
|
11917
|
+
api2.setMousemoveComponentGroupId(groupId);
|
|
11918
|
+
return;
|
|
11919
|
+
}
|
|
11886
11920
|
const {dispatchers, focusSelf} = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api2);
|
|
11887
11921
|
if (dispatchers) {
|
|
11888
11922
|
if (focusSelf) {
|
|
@@ -11895,15 +11929,21 @@ function handleGlobalMouseOverForHighDown(dispatcher, e2, api2) {
|
|
|
11895
11929
|
blurComponent(ecData.componentMainType, ecData.componentIndex, api2);
|
|
11896
11930
|
}
|
|
11897
11931
|
enterEmphasisWhenMouseOver(dispatcher, e2);
|
|
11898
|
-
console.log("%c [ ecData ]-666", "font-size:13px; background:pink; color:#bf2c9f;", ecData, e2);
|
|
11899
11932
|
}
|
|
11900
11933
|
}
|
|
11901
11934
|
function handleGlobalMouseOutForHighDown(dispatcher, e2, api2) {
|
|
11902
11935
|
if (!isHighDownDispatcher(dispatcher)) {
|
|
11903
11936
|
error("param should be highDownDispatcher");
|
|
11904
11937
|
}
|
|
11905
|
-
allLeaveBlur(api2);
|
|
11906
11938
|
const ecData = getECData(dispatcher);
|
|
11939
|
+
const groupId = ecData.groupId;
|
|
11940
|
+
if (groupId) {
|
|
11941
|
+
const dispatchers2 = findGroupHighDownDispatchers(groupId, api2);
|
|
11942
|
+
each(dispatchers2, (dispatcher2) => leaveEmphasisWhenMouseOut(dispatcher2, e2));
|
|
11943
|
+
api2.setMousemoveComponentGroupId("");
|
|
11944
|
+
return;
|
|
11945
|
+
}
|
|
11946
|
+
allLeaveBlur(api2);
|
|
11907
11947
|
const {dispatchers} = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api2);
|
|
11908
11948
|
if (dispatchers) {
|
|
11909
11949
|
each(dispatchers, (dispatcher2) => leaveEmphasisWhenMouseOut(dispatcher2, e2));
|
|
@@ -17995,7 +18035,7 @@ DefaultDataProvider.internalField = function() {
|
|
|
17995
18035
|
}
|
|
17996
18036
|
}
|
|
17997
18037
|
return {
|
|
17998
|
-
update: newData.length
|
|
18038
|
+
update: isMustAppend && newData.length === 1 ? 0 : 1
|
|
17999
18039
|
};
|
|
18000
18040
|
}
|
|
18001
18041
|
}();
|
|
@@ -20224,7 +20264,6 @@ var SeriesModel2 = class extends Component_default {
|
|
|
20224
20264
|
return item;
|
|
20225
20265
|
});
|
|
20226
20266
|
data.updateData(list, params.isMustAppend);
|
|
20227
|
-
console.log("%c [ list ]-380", "font-size:13px; background:pink; color:#bf2c9f;", list);
|
|
20228
20267
|
}
|
|
20229
20268
|
getData(dataType) {
|
|
20230
20269
|
const task = getCurrentTask(this);
|
|
@@ -24173,6 +24212,9 @@ var ECharts = class extends Eventful_default {
|
|
|
24173
24212
|
getOption(key) {
|
|
24174
24213
|
return this._model && this._model.getOption(key);
|
|
24175
24214
|
}
|
|
24215
|
+
setDefaultCursorStyle(cursorStyle) {
|
|
24216
|
+
this._zr.setDefaultCursorStyle(cursorStyle);
|
|
24217
|
+
}
|
|
24176
24218
|
getWidth() {
|
|
24177
24219
|
return this._zr.getWidth();
|
|
24178
24220
|
}
|
|
@@ -24839,7 +24881,7 @@ var ECharts = class extends Eventful_default {
|
|
|
24839
24881
|
const dataList = map(params.data, (item, index2) => {
|
|
24840
24882
|
const idx = ordinalMeta.parseAndCollect(item[0]);
|
|
24841
24883
|
if (!seriesModel.option.data[idx]) {
|
|
24842
|
-
console.log("\
|
|
24884
|
+
console.log("\u66F4\u65B0\u4E0B\u6807\u9519\u8BEF", idx, ordinalMeta, item[0]);
|
|
24843
24885
|
return;
|
|
24844
24886
|
}
|
|
24845
24887
|
const value = item.slice();
|
|
@@ -24866,7 +24908,7 @@ var ECharts = class extends Eventful_default {
|
|
|
24866
24908
|
const formatData = map(params.data, (item) => {
|
|
24867
24909
|
const idx = ordinalMeta.parseAndCollect(item[0]);
|
|
24868
24910
|
if (isNaN(idx)) {
|
|
24869
|
-
console.log("\
|
|
24911
|
+
console.log("\u6DFB\u52A0\u4E0B\u6807\u9519\u8BEFNaN", item[0], ordinalMeta);
|
|
24870
24912
|
return;
|
|
24871
24913
|
}
|
|
24872
24914
|
if (isCandletick) {
|
|
@@ -25557,7 +25599,11 @@ ECharts.internalField = function() {
|
|
|
25557
25599
|
updateZ3(seriesModel, chartView);
|
|
25558
25600
|
updateStates(seriesModel, chartView);
|
|
25559
25601
|
});
|
|
25560
|
-
|
|
25602
|
+
if (ecIns.mousemoveComponentGroupId && payload?.type !== "dataZoom") {
|
|
25603
|
+
console.log("\u4FDD\u7559\u9AD8\u4EAE\u72B6\u6001");
|
|
25604
|
+
handleGroupMouseOverForHighDown(ecIns.mousemoveComponentGroupId, api2);
|
|
25605
|
+
ecIns[STATUS_NEEDS_UPDATE_KEY] = true;
|
|
25606
|
+
}
|
|
25561
25607
|
ecIns._throttledSelectItem({
|
|
25562
25608
|
messageCenter: ecIns._messageCenter,
|
|
25563
25609
|
ecModel,
|
|
@@ -25790,6 +25836,12 @@ ECharts.internalField = function() {
|
|
|
25790
25836
|
getViewOfSeriesModel(seriesModel) {
|
|
25791
25837
|
return ecIns.getViewOfSeriesModel(seriesModel);
|
|
25792
25838
|
}
|
|
25839
|
+
setMousemoveComponentGroupId(id) {
|
|
25840
|
+
ecIns.mousemoveComponentGroupId = id;
|
|
25841
|
+
}
|
|
25842
|
+
setSelectedComponentGroupId(id) {
|
|
25843
|
+
ecIns.selectedComponentGroupId = id;
|
|
25844
|
+
}
|
|
25793
25845
|
}(ecIns);
|
|
25794
25846
|
};
|
|
25795
25847
|
enableConnect = function(chart) {
|
|
@@ -33354,7 +33406,7 @@ var Layer = class extends Eventful_default {
|
|
|
33354
33406
|
const verticalPixelRatio = this.verticalPixelRatio;
|
|
33355
33407
|
this.domBack = createDom("back-" + this.id, this.painter, horizontalPixelRatio, verticalPixelRatio);
|
|
33356
33408
|
this.ctxBack = this.domBack.getContext("2d");
|
|
33357
|
-
if (verticalPixelRatio !== 1 || horizontalPixelRatio
|
|
33409
|
+
if (verticalPixelRatio !== 1 || horizontalPixelRatio !== 1) {
|
|
33358
33410
|
this.ctxBack.scale(horizontalPixelRatio, verticalPixelRatio);
|
|
33359
33411
|
}
|
|
33360
33412
|
}
|
|
@@ -33480,7 +33532,7 @@ var Layer = class extends Eventful_default {
|
|
|
33480
33532
|
if (domBack) {
|
|
33481
33533
|
domBack.width = width * horizontalPixelRatio;
|
|
33482
33534
|
domBack.height = height * verticalPixelRatio;
|
|
33483
|
-
if (verticalPixelRatio !== 1 || horizontalPixelRatio
|
|
33535
|
+
if (verticalPixelRatio !== 1 || horizontalPixelRatio !== 1) {
|
|
33484
33536
|
this.ctxBack.scale(horizontalPixelRatio, verticalPixelRatio);
|
|
33485
33537
|
}
|
|
33486
33538
|
}
|
|
@@ -39143,14 +39195,7 @@ var Cartesian2D = class extends Cartesian_default {
|
|
|
39143
39195
|
return new BoundingRect_default(x, y, width, height);
|
|
39144
39196
|
}
|
|
39145
39197
|
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;
|
|
39198
|
+
return this.baseValue;
|
|
39154
39199
|
}
|
|
39155
39200
|
};
|
|
39156
39201
|
var Cartesian2D_default = Cartesian2D;
|
|
@@ -39634,7 +39679,10 @@ var Grid2 = class {
|
|
|
39634
39679
|
seriesModel.coordinateSystem = grid.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);
|
|
39635
39680
|
const copy3 = Object.create(Object.getPrototypeOf(seriesModel.coordinateSystem));
|
|
39636
39681
|
seriesModel.coordinateSystem = Object.assign(copy3, seriesModel.coordinateSystem);
|
|
39637
|
-
|
|
39682
|
+
const seriesData = seriesModel.getData();
|
|
39683
|
+
const dim = isCandle(seriesModel.subType) ? "close" : "y";
|
|
39684
|
+
const baseValue = seriesData.get(dim, 0);
|
|
39685
|
+
seriesModel.coordinateSystem.baseValue = baseValue;
|
|
39638
39686
|
});
|
|
39639
39687
|
return grids;
|
|
39640
39688
|
}
|
|
@@ -55817,6 +55865,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55817
55865
|
}
|
|
55818
55866
|
render(seriesModel, ecModel, api2) {
|
|
55819
55867
|
const data = seriesModel.getData();
|
|
55868
|
+
const groupId = seriesModel.get("groupId");
|
|
55820
55869
|
this._renderLine(data, seriesModel, api2);
|
|
55821
55870
|
this._renderArea(data, seriesModel, api2);
|
|
55822
55871
|
this._renderSymbol(data, seriesModel);
|
|
@@ -55828,6 +55877,8 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55828
55877
|
} else {
|
|
55829
55878
|
this.group.removeClipPath();
|
|
55830
55879
|
}
|
|
55880
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
55881
|
+
getECData(this.group).groupId = groupId;
|
|
55831
55882
|
this._finished = true;
|
|
55832
55883
|
}
|
|
55833
55884
|
_getClipShape(seriesModel) {
|
|
@@ -55841,6 +55892,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55841
55892
|
const linePointsByKey = data.getLayout("linePointsByKey");
|
|
55842
55893
|
const lineVisible = seriesModel.get("lineVisible");
|
|
55843
55894
|
if (lineVisible) {
|
|
55895
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
55844
55896
|
if (!this._lineGroup) {
|
|
55845
55897
|
this._lineGroup = new Group_default();
|
|
55846
55898
|
this.group.add(this._lineGroup);
|
|
@@ -55865,6 +55917,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55865
55917
|
},
|
|
55866
55918
|
z2: isDefaultColor ? LastZ2 : z2
|
|
55867
55919
|
});
|
|
55920
|
+
el.states.emphasis = emphasisState;
|
|
55868
55921
|
lineGroup.add(el);
|
|
55869
55922
|
});
|
|
55870
55923
|
} else if (this._lineGroup) {
|
|
@@ -55875,6 +55928,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55875
55928
|
}
|
|
55876
55929
|
_renderArea(data, seriesModel, api2) {
|
|
55877
55930
|
const areaVisible = seriesModel.get("areaVisible");
|
|
55931
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
55878
55932
|
if (areaVisible) {
|
|
55879
55933
|
if (!this._polygonGroup) {
|
|
55880
55934
|
this._polygonGroup = new Group_default();
|
|
@@ -55903,6 +55957,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55903
55957
|
},
|
|
55904
55958
|
z2: isDefaultColor ? LastZ2 : z2
|
|
55905
55959
|
});
|
|
55960
|
+
el.states.emphasis = emphasisState;
|
|
55906
55961
|
polygonGroup.add(el);
|
|
55907
55962
|
});
|
|
55908
55963
|
} else if (this._polygonGroup) {
|
|
@@ -55913,6 +55968,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55913
55968
|
}
|
|
55914
55969
|
_renderHistogram(data, seriesModel) {
|
|
55915
55970
|
const histogramVisible = seriesModel.get("histogramVisible");
|
|
55971
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
55916
55972
|
if (histogramVisible) {
|
|
55917
55973
|
if (!this._histogramGroup) {
|
|
55918
55974
|
this._histogramGroup = new Group_default();
|
|
@@ -55939,6 +55995,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55939
55995
|
},
|
|
55940
55996
|
z2: isDefaultColor ? LastZ2 : z2
|
|
55941
55997
|
});
|
|
55998
|
+
el.states.emphasis = emphasisState;
|
|
55942
55999
|
histogramGroup.add(el);
|
|
55943
56000
|
});
|
|
55944
56001
|
} else if (this._histogramGroup) {
|
|
@@ -55952,6 +56009,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55952
56009
|
const symbolPointsByColor = data.getLayout("symbolPointsByColor");
|
|
55953
56010
|
const shadowShape = seriesModel.get("shadowShape");
|
|
55954
56011
|
if (symbolVisible) {
|
|
56012
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
55955
56013
|
if (!this._symbolGroup) {
|
|
55956
56014
|
this._symbolGroup = new Group_default();
|
|
55957
56015
|
this.group.add(this._symbolGroup);
|
|
@@ -55973,6 +56031,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55973
56031
|
z2
|
|
55974
56032
|
});
|
|
55975
56033
|
shadowEl.symbolProxy = createSymbol(key, 0, 0, 0, 0);
|
|
56034
|
+
shadowEl.states.emphasis = emphasisState;
|
|
55976
56035
|
symbolGroup.add(shadowEl);
|
|
55977
56036
|
}
|
|
55978
56037
|
const el = new SymbolPath_default({
|
|
@@ -55980,11 +56039,12 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55980
56039
|
points: item
|
|
55981
56040
|
},
|
|
55982
56041
|
style: {
|
|
55983
|
-
fill: "
|
|
56042
|
+
fill: "#000000"
|
|
55984
56043
|
},
|
|
55985
56044
|
z2
|
|
55986
56045
|
});
|
|
55987
56046
|
el.symbolProxy = createSymbol(key, 0, 0, 0, 0);
|
|
56047
|
+
el.states.emphasis = emphasisState;
|
|
55988
56048
|
symbolGroup.add(el);
|
|
55989
56049
|
});
|
|
55990
56050
|
} else if (this._symbolGroup) {
|
|
@@ -55996,6 +56056,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
55996
56056
|
_renderBar(data, seriesModel) {
|
|
55997
56057
|
const barVisible = seriesModel.get("barVisible");
|
|
55998
56058
|
if (barVisible) {
|
|
56059
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
55999
56060
|
if (!this._barGroup) {
|
|
56000
56061
|
this._barGroup = new Group_default();
|
|
56001
56062
|
this.group.add(this._barGroup);
|
|
@@ -56023,6 +56084,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
56023
56084
|
},
|
|
56024
56085
|
z2: isDefaultColor ? LastZ2 : z2
|
|
56025
56086
|
});
|
|
56087
|
+
el.states.emphasis = emphasisState;
|
|
56026
56088
|
barGroup.add(el);
|
|
56027
56089
|
});
|
|
56028
56090
|
return;
|
|
@@ -56041,6 +56103,7 @@ var LinesPlotView2 = class extends Chart_default {
|
|
|
56041
56103
|
},
|
|
56042
56104
|
z2: isDefaultColor ? LastZ2 : z2
|
|
56043
56105
|
});
|
|
56106
|
+
el.states.emphasis = emphasisState;
|
|
56044
56107
|
barGroup.add(el);
|
|
56045
56108
|
});
|
|
56046
56109
|
} else if (this._barGroup) {
|
|
@@ -56083,6 +56146,7 @@ var LinesPlotSeriesModel2 = class extends Series_default {
|
|
|
56083
56146
|
constructor() {
|
|
56084
56147
|
super(...arguments);
|
|
56085
56148
|
this.type = LinesPlotSeriesModel2.type;
|
|
56149
|
+
this.ignoreStyleOnData = true;
|
|
56086
56150
|
this.hasSymbolVisual = true;
|
|
56087
56151
|
}
|
|
56088
56152
|
getInitialData(option) {
|
|
@@ -56114,6 +56178,11 @@ LinesPlotSeriesModel.defaultOption = {
|
|
|
56114
56178
|
yAxisIndex: 0,
|
|
56115
56179
|
symbol: "emptyCircle",
|
|
56116
56180
|
symbolSize: 10,
|
|
56181
|
+
emphasis: {
|
|
56182
|
+
emphasisState: {
|
|
56183
|
+
zlevel: 1
|
|
56184
|
+
}
|
|
56185
|
+
},
|
|
56117
56186
|
geoIndex: 0,
|
|
56118
56187
|
large: true,
|
|
56119
56188
|
largeThreshold: 600,
|
|
@@ -56230,6 +56299,9 @@ var linesPlotLayout = {
|
|
|
56230
56299
|
point[1] = lastPoints[lastPoints.length - 1][1];
|
|
56231
56300
|
}
|
|
56232
56301
|
lastPoints.push(point);
|
|
56302
|
+
if (!symbolByStep) {
|
|
56303
|
+
setSymbolPoint(pointInfo, point);
|
|
56304
|
+
}
|
|
56233
56305
|
continue;
|
|
56234
56306
|
}
|
|
56235
56307
|
if (!symbolByStep) {
|
|
@@ -56366,6 +56438,8 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56366
56438
|
}
|
|
56367
56439
|
const symbolGroup = this._symbolGroup;
|
|
56368
56440
|
const z2 = seriesModel.get("z2");
|
|
56441
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
56442
|
+
const groupId = seriesModel.get("groupId");
|
|
56369
56443
|
const upTriangle = data.getLayout("upTriangle");
|
|
56370
56444
|
if (upTriangle && upTriangle.length) {
|
|
56371
56445
|
const upTriangleEl = new SymbolPath_default2({
|
|
@@ -56379,6 +56453,7 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56379
56453
|
z2
|
|
56380
56454
|
});
|
|
56381
56455
|
upTriangleEl.symbolProxy = createSymbol("triangleRight", 0, 0, 0, 0);
|
|
56456
|
+
upTriangleEl.states.emphasis = emphasisState;
|
|
56382
56457
|
symbolGroup.add(upTriangleEl);
|
|
56383
56458
|
}
|
|
56384
56459
|
const closeUpTriangle = data.getLayout("closeUpTriangle");
|
|
@@ -56394,6 +56469,7 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56394
56469
|
z2
|
|
56395
56470
|
});
|
|
56396
56471
|
closeUpTriangleEl.symbolProxy = createSymbol("triangleRight", 0, 0, 0, 0);
|
|
56472
|
+
closeUpTriangleEl.states.emphasis = emphasisState;
|
|
56397
56473
|
symbolGroup.add(closeUpTriangleEl);
|
|
56398
56474
|
}
|
|
56399
56475
|
const upArrow = data.getLayout("upArrow");
|
|
@@ -56414,6 +56490,7 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56414
56490
|
triangleWidth: 4,
|
|
56415
56491
|
triangleHeight: 6
|
|
56416
56492
|
};
|
|
56493
|
+
arrowUpEl.states.emphasis = emphasisState;
|
|
56417
56494
|
symbolGroup.add(arrowUpEl);
|
|
56418
56495
|
}
|
|
56419
56496
|
const closeUpArrow = data.getLayout("closeUpArrow");
|
|
@@ -56434,6 +56511,7 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56434
56511
|
triangleWidth: 4,
|
|
56435
56512
|
triangleHeight: 6
|
|
56436
56513
|
};
|
|
56514
|
+
closeUpArrowEl.states.emphasis = emphasisState;
|
|
56437
56515
|
symbolGroup.add(closeUpArrowEl);
|
|
56438
56516
|
}
|
|
56439
56517
|
const downTriangle = data.getLayout("downTriangle");
|
|
@@ -56449,6 +56527,7 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56449
56527
|
z2
|
|
56450
56528
|
});
|
|
56451
56529
|
downTriangleEl.symbolProxy = createSymbol("triangleLeft", 0, 0, 0, 0);
|
|
56530
|
+
downTriangleEl.states.emphasis = emphasisState;
|
|
56452
56531
|
symbolGroup.add(downTriangleEl);
|
|
56453
56532
|
}
|
|
56454
56533
|
const closeDownTriangle = data.getLayout("closeDownTriangle");
|
|
@@ -56464,6 +56543,7 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56464
56543
|
z2
|
|
56465
56544
|
});
|
|
56466
56545
|
closeDownTriangleEl.symbolProxy = createSymbol("triangleLeft", 0, 0, 0, 0);
|
|
56546
|
+
closeDownTriangleEl.states.emphasis = emphasisState;
|
|
56467
56547
|
symbolGroup.add(closeDownTriangleEl);
|
|
56468
56548
|
}
|
|
56469
56549
|
const downArrow = data.getLayout("downArrow");
|
|
@@ -56484,6 +56564,7 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56484
56564
|
triangleWidth: 4,
|
|
56485
56565
|
triangleHeight: 6
|
|
56486
56566
|
};
|
|
56567
|
+
arrowDownEl.states.emphasis = emphasisState;
|
|
56487
56568
|
symbolGroup.add(arrowDownEl);
|
|
56488
56569
|
}
|
|
56489
56570
|
const closeDownArrow = data.getLayout("closeDownArrow");
|
|
@@ -56504,6 +56585,7 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56504
56585
|
triangleWidth: 4,
|
|
56505
56586
|
triangleHeight: 6
|
|
56506
56587
|
};
|
|
56588
|
+
closeDownArrowEl.states.emphasis = emphasisState;
|
|
56507
56589
|
symbolGroup.add(closeDownArrowEl);
|
|
56508
56590
|
}
|
|
56509
56591
|
const texts = data.getLayout("texts");
|
|
@@ -56525,9 +56607,12 @@ var StrategyView2 = class extends Chart_default {
|
|
|
56525
56607
|
x: point[0],
|
|
56526
56608
|
y: point[1]
|
|
56527
56609
|
});
|
|
56610
|
+
el.states.emphasis = emphasisState;
|
|
56528
56611
|
symbolGroup.add(el);
|
|
56529
56612
|
});
|
|
56530
56613
|
}
|
|
56614
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
56615
|
+
getECData(this.group).groupId = groupId;
|
|
56531
56616
|
}
|
|
56532
56617
|
remove(ecModel, api2) {
|
|
56533
56618
|
this._symbolGroup && this._symbolGroup.removeAll();
|
|
@@ -56546,6 +56631,7 @@ var StrategySeriesModel2 = class extends Series_default {
|
|
|
56546
56631
|
constructor() {
|
|
56547
56632
|
super(...arguments);
|
|
56548
56633
|
this.type = StrategySeriesModel2.type;
|
|
56634
|
+
this.ignoreStyleOnData = true;
|
|
56549
56635
|
}
|
|
56550
56636
|
getInitialData(option) {
|
|
56551
56637
|
if (true) {
|
|
@@ -56576,6 +56662,11 @@ StrategySeriesModel.defaultOption = {
|
|
|
56576
56662
|
legendHoverLink: true,
|
|
56577
56663
|
xAxisIndex: 0,
|
|
56578
56664
|
yAxisIndex: 0,
|
|
56665
|
+
emphasis: {
|
|
56666
|
+
emphasisState: {
|
|
56667
|
+
zlevel: 1
|
|
56668
|
+
}
|
|
56669
|
+
},
|
|
56579
56670
|
large: true,
|
|
56580
56671
|
largeThreshold: 600,
|
|
56581
56672
|
clip: true
|
|
@@ -56857,6 +56948,9 @@ var MineLinesView2 = class extends Chart_default {
|
|
|
56857
56948
|
} else {
|
|
56858
56949
|
this.group.removeClipPath();
|
|
56859
56950
|
}
|
|
56951
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
56952
|
+
const groupId = seriesModel.get("groupId");
|
|
56953
|
+
getECData(this.group).groupId = groupId;
|
|
56860
56954
|
}
|
|
56861
56955
|
_getClipShape(seriesModel) {
|
|
56862
56956
|
if (!seriesModel.get("clip", true)) {
|
|
@@ -56872,6 +56966,7 @@ var MineLinesView2 = class extends Chart_default {
|
|
|
56872
56966
|
} else {
|
|
56873
56967
|
this._linesGroup.removeAll();
|
|
56874
56968
|
}
|
|
56969
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
56875
56970
|
const linesGroup = this._linesGroup;
|
|
56876
56971
|
const z2 = seriesModel.get("z2");
|
|
56877
56972
|
const linesPointById = data.getLayout("linesPointById");
|
|
@@ -56895,6 +56990,7 @@ var MineLinesView2 = class extends Chart_default {
|
|
|
56895
56990
|
},
|
|
56896
56991
|
z2
|
|
56897
56992
|
});
|
|
56993
|
+
el.states.emphasis = emphasisState;
|
|
56898
56994
|
linesGroup.add(el);
|
|
56899
56995
|
});
|
|
56900
56996
|
}
|
|
@@ -56916,6 +57012,7 @@ var MineLinesSeriesModel2 = class extends Series_default {
|
|
|
56916
57012
|
super(...arguments);
|
|
56917
57013
|
this.type = MineLinesSeriesModel2.type;
|
|
56918
57014
|
this.xFilterMode = "weakFilter";
|
|
57015
|
+
this.ignoreStyleOnData = true;
|
|
56919
57016
|
this.dataIndexById = {};
|
|
56920
57017
|
}
|
|
56921
57018
|
getInitialData(option) {
|
|
@@ -56974,7 +57071,12 @@ MineLinesSeriesModel.defaultOption = {
|
|
|
56974
57071
|
large: true,
|
|
56975
57072
|
largeThreshold: 600,
|
|
56976
57073
|
clip: true,
|
|
56977
|
-
limit: 50
|
|
57074
|
+
limit: 50,
|
|
57075
|
+
emphasis: {
|
|
57076
|
+
emphasisState: {
|
|
57077
|
+
zlevel: 1
|
|
57078
|
+
}
|
|
57079
|
+
}
|
|
56978
57080
|
};
|
|
56979
57081
|
var MineLinesSeries_default = MineLinesSeriesModel;
|
|
56980
57082
|
|
|
@@ -57161,6 +57263,9 @@ var MinePolyLinesView2 = class extends Chart_default {
|
|
|
57161
57263
|
} else {
|
|
57162
57264
|
this.group.removeClipPath();
|
|
57163
57265
|
}
|
|
57266
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
57267
|
+
const groupId = seriesModel.get("groupId");
|
|
57268
|
+
getECData(this.group).groupId = groupId;
|
|
57164
57269
|
}
|
|
57165
57270
|
_getClipShape(seriesModel) {
|
|
57166
57271
|
if (!seriesModel.get("clip", true)) {
|
|
@@ -57176,6 +57281,7 @@ var MinePolyLinesView2 = class extends Chart_default {
|
|
|
57176
57281
|
} else {
|
|
57177
57282
|
this._linesGroup.removeAll();
|
|
57178
57283
|
}
|
|
57284
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
57179
57285
|
const linesGroup = this._linesGroup;
|
|
57180
57286
|
const z2 = seriesModel.get("z2");
|
|
57181
57287
|
const linesPointLayouts = data.getLayout("linesPointLayouts");
|
|
@@ -57199,6 +57305,7 @@ var MinePolyLinesView2 = class extends Chart_default {
|
|
|
57199
57305
|
},
|
|
57200
57306
|
z2
|
|
57201
57307
|
});
|
|
57308
|
+
el.states.emphasis = emphasisState;
|
|
57202
57309
|
linesGroup.add(el);
|
|
57203
57310
|
});
|
|
57204
57311
|
}
|
|
@@ -57220,6 +57327,7 @@ var MinePolyLinesSeriesModel2 = class extends Series_default {
|
|
|
57220
57327
|
super(...arguments);
|
|
57221
57328
|
this.type = MinePolyLinesSeriesModel2.type;
|
|
57222
57329
|
this.xFilterMode = "weakFilter";
|
|
57330
|
+
this.ignoreStyleOnData = true;
|
|
57223
57331
|
this.dataIndexById = {};
|
|
57224
57332
|
}
|
|
57225
57333
|
getInitialData(option) {
|
|
@@ -57275,6 +57383,11 @@ MinePolyLinesSeriesModel.defaultOption = {
|
|
|
57275
57383
|
x: ["x1", "x2"],
|
|
57276
57384
|
y: ["y1", "y2"]
|
|
57277
57385
|
},
|
|
57386
|
+
emphasis: {
|
|
57387
|
+
emphasisState: {
|
|
57388
|
+
zlevel: 1
|
|
57389
|
+
}
|
|
57390
|
+
},
|
|
57278
57391
|
large: true,
|
|
57279
57392
|
largeThreshold: 600,
|
|
57280
57393
|
clip: true,
|
|
@@ -57380,6 +57493,9 @@ var LineFillsView2 = class extends Chart_default {
|
|
|
57380
57493
|
} else {
|
|
57381
57494
|
this.group.removeClipPath();
|
|
57382
57495
|
}
|
|
57496
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
57497
|
+
const groupId = seriesModel.get("groupId");
|
|
57498
|
+
getECData(this.group).groupId = groupId;
|
|
57383
57499
|
}
|
|
57384
57500
|
_getClipShape(seriesModel) {
|
|
57385
57501
|
if (!seriesModel.get("clip", true)) {
|
|
@@ -57389,6 +57505,7 @@ var LineFillsView2 = class extends Chart_default {
|
|
|
57389
57505
|
return coordSys && coordSys.getArea && coordSys.getArea(0.1);
|
|
57390
57506
|
}
|
|
57391
57507
|
_renderLines(data, seriesModel, api2) {
|
|
57508
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
57392
57509
|
if (!this._linesGroup) {
|
|
57393
57510
|
this._linesGroup = new Group_default();
|
|
57394
57511
|
this.group.add(this._linesGroup);
|
|
@@ -57410,6 +57527,7 @@ var LineFillsView2 = class extends Chart_default {
|
|
|
57410
57527
|
},
|
|
57411
57528
|
z2
|
|
57412
57529
|
});
|
|
57530
|
+
el.states.emphasis = emphasisState;
|
|
57413
57531
|
linesGroup.add(el);
|
|
57414
57532
|
});
|
|
57415
57533
|
}
|
|
@@ -57430,6 +57548,7 @@ var LineFillsSeriesModel2 = class extends Series_default {
|
|
|
57430
57548
|
constructor() {
|
|
57431
57549
|
super(...arguments);
|
|
57432
57550
|
this.type = LineFillsSeriesModel2.type;
|
|
57551
|
+
this.ignoreStyleOnData = true;
|
|
57433
57552
|
this.dataIndexById = {};
|
|
57434
57553
|
}
|
|
57435
57554
|
getInitialData(option) {
|
|
@@ -57478,6 +57597,11 @@ LineFillsSeriesModel.defaultOption = {
|
|
|
57478
57597
|
z: 2,
|
|
57479
57598
|
z2: 0,
|
|
57480
57599
|
legendHoverLink: true,
|
|
57600
|
+
emphasis: {
|
|
57601
|
+
emphasisState: {
|
|
57602
|
+
zlevel: 1
|
|
57603
|
+
}
|
|
57604
|
+
},
|
|
57481
57605
|
xAxisIndex: 0,
|
|
57482
57606
|
yAxisIndex: 0,
|
|
57483
57607
|
large: true,
|
|
@@ -57635,6 +57759,8 @@ var BoxesView2 = class extends Chart_default {
|
|
|
57635
57759
|
} else {
|
|
57636
57760
|
this._linesGroup.removeAll();
|
|
57637
57761
|
}
|
|
57762
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
57763
|
+
const groupId = seriesModel.get("groupId");
|
|
57638
57764
|
const linesGroup = this._linesGroup;
|
|
57639
57765
|
const z2 = seriesModel.get("z2");
|
|
57640
57766
|
const linesPointById = data.getLayout("linesPointById");
|
|
@@ -57652,6 +57778,7 @@ var BoxesView2 = class extends Chart_default {
|
|
|
57652
57778
|
},
|
|
57653
57779
|
z2
|
|
57654
57780
|
});
|
|
57781
|
+
el.states.emphasis = emphasisState;
|
|
57655
57782
|
linesGroup.add(el);
|
|
57656
57783
|
});
|
|
57657
57784
|
const textList = data.getLayout("textList");
|
|
@@ -57682,8 +57809,11 @@ var BoxesView2 = class extends Chart_default {
|
|
|
57682
57809
|
} else {
|
|
57683
57810
|
el.useStyle({...textStyle, height: item.height});
|
|
57684
57811
|
}
|
|
57812
|
+
el.states.emphasis = emphasisState;
|
|
57685
57813
|
linesGroup.add(el);
|
|
57686
57814
|
});
|
|
57815
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
57816
|
+
getECData(this.group).groupId = groupId;
|
|
57687
57817
|
}
|
|
57688
57818
|
remove(ecModel, api2) {
|
|
57689
57819
|
this._linesGroup && this._linesGroup.removeAll();
|
|
@@ -57703,6 +57833,7 @@ var BoxesSeriesModel2 = class extends Series_default {
|
|
|
57703
57833
|
super(...arguments);
|
|
57704
57834
|
this.type = BoxesSeriesModel2.type;
|
|
57705
57835
|
this.xFilterMode = "weakFilter";
|
|
57836
|
+
this.ignoreStyleOnData = true;
|
|
57706
57837
|
}
|
|
57707
57838
|
getInitialData(option) {
|
|
57708
57839
|
if (true) {
|
|
@@ -57749,6 +57880,11 @@ BoxesSeriesModel.defaultOption = {
|
|
|
57749
57880
|
x: ["extend", "left", "right"],
|
|
57750
57881
|
y: ["top", "bottom"]
|
|
57751
57882
|
},
|
|
57883
|
+
emphasis: {
|
|
57884
|
+
emphasisState: {
|
|
57885
|
+
zlevel: 1
|
|
57886
|
+
}
|
|
57887
|
+
},
|
|
57752
57888
|
large: true,
|
|
57753
57889
|
largeThreshold: 600,
|
|
57754
57890
|
clip: true,
|
|
@@ -57945,6 +58081,7 @@ var CharPlotSeriesModel2 = class extends Series_default {
|
|
|
57945
58081
|
constructor() {
|
|
57946
58082
|
super(...arguments);
|
|
57947
58083
|
this.type = CharPlotSeriesModel2.type;
|
|
58084
|
+
this.ignoreStyleOnData = true;
|
|
57948
58085
|
}
|
|
57949
58086
|
getInitialData(option, ecModel) {
|
|
57950
58087
|
return createSeriesData_default(null, this, {
|
|
@@ -57981,7 +58118,9 @@ CharPlotSeriesModel.defaultOption = {
|
|
|
57981
58118
|
large: false,
|
|
57982
58119
|
largeThreshold: 2e3,
|
|
57983
58120
|
emphasis: {
|
|
57984
|
-
|
|
58121
|
+
emphasisState: {
|
|
58122
|
+
zlevel: 1
|
|
58123
|
+
}
|
|
57985
58124
|
},
|
|
57986
58125
|
clip: true
|
|
57987
58126
|
};
|
|
@@ -58011,6 +58150,8 @@ var CharPlotView2 = class extends Chart_default {
|
|
|
58011
58150
|
const textList = data.getLayout("textList");
|
|
58012
58151
|
const char = seriesModel.get("char");
|
|
58013
58152
|
const text = seriesModel.get("text");
|
|
58153
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
58154
|
+
const groupId = seriesModel.get("groupId");
|
|
58014
58155
|
each(charList, function(item) {
|
|
58015
58156
|
const el = new Text_default({
|
|
58016
58157
|
style: {
|
|
@@ -58023,6 +58164,7 @@ var CharPlotView2 = class extends Chart_default {
|
|
|
58023
58164
|
x: item.x,
|
|
58024
58165
|
y: item.y
|
|
58025
58166
|
});
|
|
58167
|
+
el.states.emphasis = emphasisState;
|
|
58026
58168
|
textGroup.add(el);
|
|
58027
58169
|
});
|
|
58028
58170
|
const location = seriesModel.get("location");
|
|
@@ -58042,8 +58184,11 @@ var CharPlotView2 = class extends Chart_default {
|
|
|
58042
58184
|
x: item.x,
|
|
58043
58185
|
y: item.y
|
|
58044
58186
|
});
|
|
58187
|
+
el.states.emphasis = emphasisState;
|
|
58045
58188
|
textGroup.add(el);
|
|
58046
58189
|
});
|
|
58190
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
58191
|
+
getECData(this.group).groupId = groupId;
|
|
58047
58192
|
}
|
|
58048
58193
|
_getClipShape(seriesModel) {
|
|
58049
58194
|
if (!seriesModel.get("clip", true)) {
|
|
@@ -58251,6 +58396,8 @@ var CandlePlotView2 = class extends Chart_default {
|
|
|
58251
58396
|
const data = seriesModel.getData();
|
|
58252
58397
|
const group = this.group;
|
|
58253
58398
|
group.removeAll();
|
|
58399
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
58400
|
+
const groupId = seriesModel.get("groupId");
|
|
58254
58401
|
const isSimpleBox = data.getLayout("isSimpleBox");
|
|
58255
58402
|
const bodyPointsByColor = data.getLayout("bodyPointsByColor");
|
|
58256
58403
|
const wickPointsByColor = data.getLayout("wickPointsByColor");
|
|
@@ -58266,6 +58413,7 @@ var CandlePlotView2 = class extends Chart_default {
|
|
|
58266
58413
|
stroke
|
|
58267
58414
|
}
|
|
58268
58415
|
});
|
|
58416
|
+
el.states.emphasis = emphasisState;
|
|
58269
58417
|
group.add(el);
|
|
58270
58418
|
});
|
|
58271
58419
|
each(wickPointsByColor, function(points4, key) {
|
|
@@ -58278,6 +58426,7 @@ var CandlePlotView2 = class extends Chart_default {
|
|
|
58278
58426
|
stroke
|
|
58279
58427
|
}
|
|
58280
58428
|
});
|
|
58429
|
+
el.states.emphasis = emphasisState;
|
|
58281
58430
|
group.add(el);
|
|
58282
58431
|
});
|
|
58283
58432
|
const clipPath = seriesModel.get("clip", true) ? createClipPath(seriesModel.coordinateSystem, false, seriesModel) : null;
|
|
@@ -58286,6 +58435,8 @@ var CandlePlotView2 = class extends Chart_default {
|
|
|
58286
58435
|
} else {
|
|
58287
58436
|
this.group.removeClipPath();
|
|
58288
58437
|
}
|
|
58438
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
58439
|
+
getECData(this.group).groupId = groupId;
|
|
58289
58440
|
}
|
|
58290
58441
|
remove(ecModel) {
|
|
58291
58442
|
this._clear();
|
|
@@ -58304,6 +58455,7 @@ var CandlePlotSeriesModel2 = class extends Series_default {
|
|
|
58304
58455
|
super(...arguments);
|
|
58305
58456
|
this.type = CandlePlotSeriesModel2.type;
|
|
58306
58457
|
this.notAddOrdinal = true;
|
|
58458
|
+
this.ignoreStyleOnData = true;
|
|
58307
58459
|
this.defaultValueDimensions = [
|
|
58308
58460
|
{name: "open", defaultTooltip: true},
|
|
58309
58461
|
{name: "close", defaultTooltip: true},
|
|
@@ -58335,9 +58487,8 @@ CandlePlotSeriesModel.defaultOption = {
|
|
|
58335
58487
|
borderWidth: 1
|
|
58336
58488
|
},
|
|
58337
58489
|
emphasis: {
|
|
58338
|
-
|
|
58339
|
-
|
|
58340
|
-
borderWidth: 2
|
|
58490
|
+
emphasisState: {
|
|
58491
|
+
zlevel: 1
|
|
58341
58492
|
}
|
|
58342
58493
|
},
|
|
58343
58494
|
barMaxWidth: null,
|
|
@@ -58556,6 +58707,8 @@ var BarPlotView2 = class extends Chart_default {
|
|
|
58556
58707
|
group.removeAll();
|
|
58557
58708
|
const candleWidth = data.getLayout("candleWidth");
|
|
58558
58709
|
const isSimpleBox = data.getLayout("isSimpleBox");
|
|
58710
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
58711
|
+
const groupId = seriesModel.get("groupId");
|
|
58559
58712
|
const bodyPointsByColor = data.getLayout("bodyPointsByColor");
|
|
58560
58713
|
each(bodyPointsByColor, function(points4, stroke) {
|
|
58561
58714
|
const el = new BarPath_default2({
|
|
@@ -58569,6 +58722,7 @@ var BarPlotView2 = class extends Chart_default {
|
|
|
58569
58722
|
fill: "none"
|
|
58570
58723
|
}
|
|
58571
58724
|
});
|
|
58725
|
+
el.states.emphasis = emphasisState;
|
|
58572
58726
|
group.add(el);
|
|
58573
58727
|
});
|
|
58574
58728
|
const clipPath = seriesModel.get("clip", true) ? createClipPath(seriesModel.coordinateSystem, false, seriesModel) : null;
|
|
@@ -58577,6 +58731,8 @@ var BarPlotView2 = class extends Chart_default {
|
|
|
58577
58731
|
} else {
|
|
58578
58732
|
this.group.removeClipPath();
|
|
58579
58733
|
}
|
|
58734
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
58735
|
+
getECData(this.group).groupId = groupId;
|
|
58580
58736
|
}
|
|
58581
58737
|
remove(ecModel) {
|
|
58582
58738
|
this._clear();
|
|
@@ -58595,6 +58751,7 @@ var BarPlotSeriesModel2 = class extends Series_default {
|
|
|
58595
58751
|
super(...arguments);
|
|
58596
58752
|
this.type = BarPlotSeriesModel2.type;
|
|
58597
58753
|
this.notAddOrdinal = true;
|
|
58754
|
+
this.ignoreStyleOnData = true;
|
|
58598
58755
|
this.defaultValueDimensions = [
|
|
58599
58756
|
{name: "open", defaultTooltip: true},
|
|
58600
58757
|
{name: "close", defaultTooltip: true},
|
|
@@ -58621,9 +58778,8 @@ BarPlotSeriesModel.defaultOption = {
|
|
|
58621
58778
|
borderWidth: 1
|
|
58622
58779
|
},
|
|
58623
58780
|
emphasis: {
|
|
58624
|
-
|
|
58625
|
-
|
|
58626
|
-
borderWidth: 2
|
|
58781
|
+
emphasisState: {
|
|
58782
|
+
zlevel: 1
|
|
58627
58783
|
}
|
|
58628
58784
|
},
|
|
58629
58785
|
barMaxWidth: null,
|
|
@@ -58748,6 +58904,7 @@ var ArrowsPlotSeriesModel2 = class extends Series_default {
|
|
|
58748
58904
|
constructor() {
|
|
58749
58905
|
super(...arguments);
|
|
58750
58906
|
this.type = ArrowsPlotSeriesModel2.type;
|
|
58907
|
+
this.ignoreStyleOnData = true;
|
|
58751
58908
|
}
|
|
58752
58909
|
getInitialData(option, ecModel) {
|
|
58753
58910
|
return createSeriesData_default(null, this, {
|
|
@@ -58764,7 +58921,9 @@ ArrowsPlotSeriesModel.defaultOption = {
|
|
|
58764
58921
|
large: false,
|
|
58765
58922
|
largeThreshold: 2e3,
|
|
58766
58923
|
emphasis: {
|
|
58767
|
-
|
|
58924
|
+
emphasisState: {
|
|
58925
|
+
zlevel: 1
|
|
58926
|
+
}
|
|
58768
58927
|
},
|
|
58769
58928
|
clip: true
|
|
58770
58929
|
};
|
|
@@ -58825,6 +58984,8 @@ var ArrowsPlotView2 = class extends Chart_default {
|
|
|
58825
58984
|
const bandWidth = seriesModel.coordinateSystem.getAxesByScale("ordinal")[0].scale.barSpace;
|
|
58826
58985
|
const maxheight = seriesModel.get("maxheight");
|
|
58827
58986
|
const minheight = seriesModel.get("minheight");
|
|
58987
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
58988
|
+
const groupId = seriesModel.get("groupId");
|
|
58828
58989
|
const upArrowsByColor = data.getLayout("upArrowsByColor");
|
|
58829
58990
|
const maxValue = data.getLayout("maxValue");
|
|
58830
58991
|
each(upArrowsByColor, function(item, color2) {
|
|
@@ -58839,6 +59000,7 @@ var ArrowsPlotView2 = class extends Chart_default {
|
|
|
58839
59000
|
fill: color2
|
|
58840
59001
|
}
|
|
58841
59002
|
});
|
|
59003
|
+
el.states.emphasis = emphasisState;
|
|
58842
59004
|
el.symbolProxy = createSymbol("arrowUp", 0, 0, 0, 0);
|
|
58843
59005
|
symbolGroup.add(el);
|
|
58844
59006
|
});
|
|
@@ -58856,9 +59018,12 @@ var ArrowsPlotView2 = class extends Chart_default {
|
|
|
58856
59018
|
fill: color2
|
|
58857
59019
|
}
|
|
58858
59020
|
});
|
|
59021
|
+
el.states.emphasis = emphasisState;
|
|
58859
59022
|
el.symbolProxy = createSymbol("arrowDown", 0, 0, 0, 0);
|
|
58860
59023
|
symbolGroup.add(el);
|
|
58861
59024
|
});
|
|
59025
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
59026
|
+
getECData(this.group).groupId = groupId;
|
|
58862
59027
|
}
|
|
58863
59028
|
_getClipShape(seriesModel) {
|
|
58864
59029
|
if (!seriesModel.get("clip", true)) {
|
|
@@ -58962,6 +59127,7 @@ var LabelsSeriesModel2 = class extends Series_default {
|
|
|
58962
59127
|
super(...arguments);
|
|
58963
59128
|
this.type = LabelsSeriesModel2.type;
|
|
58964
59129
|
this.dataIndexById = {};
|
|
59130
|
+
this.ignoreStyleOnData = true;
|
|
58965
59131
|
}
|
|
58966
59132
|
getInitialData(option, ecModel) {
|
|
58967
59133
|
return createSeriesData_default(null, this, {
|
|
@@ -59019,7 +59185,9 @@ LabelsSeriesModel.defaultOption = {
|
|
|
59019
59185
|
largeThreshold: 2e3,
|
|
59020
59186
|
itemStyle: {},
|
|
59021
59187
|
emphasis: {
|
|
59022
|
-
|
|
59188
|
+
emphasisState: {
|
|
59189
|
+
zlevel: 1
|
|
59190
|
+
}
|
|
59023
59191
|
},
|
|
59024
59192
|
clip: true,
|
|
59025
59193
|
limit: 50
|
|
@@ -59089,6 +59257,9 @@ var LabelsView2 = class extends Chart_default {
|
|
|
59089
59257
|
const data = seriesModel.getData();
|
|
59090
59258
|
this._renderSymbol(data, seriesModel);
|
|
59091
59259
|
this._renderText(data, seriesModel);
|
|
59260
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
59261
|
+
const groupId = seriesModel.get("groupId");
|
|
59262
|
+
getECData(this.group).groupId = groupId;
|
|
59092
59263
|
this._finished = true;
|
|
59093
59264
|
}
|
|
59094
59265
|
_renderText(data, seriesModel) {
|
|
@@ -59100,6 +59271,7 @@ var LabelsView2 = class extends Chart_default {
|
|
|
59100
59271
|
}
|
|
59101
59272
|
const textGroup = this._textGroup;
|
|
59102
59273
|
const textList = data.getLayout("textList");
|
|
59274
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
59103
59275
|
each(textList, function(item) {
|
|
59104
59276
|
const {
|
|
59105
59277
|
text,
|
|
@@ -59125,6 +59297,7 @@ var LabelsView2 = class extends Chart_default {
|
|
|
59125
59297
|
x: point[0] + offset[0],
|
|
59126
59298
|
y: point[1] + offset[1]
|
|
59127
59299
|
});
|
|
59300
|
+
el.states.emphasis = emphasisState;
|
|
59128
59301
|
textGroup.add(el);
|
|
59129
59302
|
});
|
|
59130
59303
|
}
|
|
@@ -59135,6 +59308,7 @@ var LabelsView2 = class extends Chart_default {
|
|
|
59135
59308
|
} else {
|
|
59136
59309
|
this._symbolGroup.removeAll();
|
|
59137
59310
|
}
|
|
59311
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
59138
59312
|
const symbolGroup = this._symbolGroup;
|
|
59139
59313
|
const symbolStyleMap = data.getLayout("symbolStyleMap");
|
|
59140
59314
|
each(symbolStyleMap, function(item, key) {
|
|
@@ -59146,11 +59320,12 @@ var LabelsView2 = class extends Chart_default {
|
|
|
59146
59320
|
isLine
|
|
59147
59321
|
},
|
|
59148
59322
|
style: {
|
|
59149
|
-
fill: "
|
|
59323
|
+
fill: "#000000",
|
|
59150
59324
|
lineWidth: isLine ? 3 : void 0
|
|
59151
59325
|
}
|
|
59152
59326
|
});
|
|
59153
59327
|
el.symbolProxy = createSymbol(key, 0, 0, 0, 0);
|
|
59328
|
+
el.states.emphasis = emphasisState;
|
|
59154
59329
|
symbolGroup.add(el);
|
|
59155
59330
|
});
|
|
59156
59331
|
}
|
|
@@ -59596,6 +59771,7 @@ var HLineSeriesModel2 = class extends Series_default {
|
|
|
59596
59771
|
constructor() {
|
|
59597
59772
|
super(...arguments);
|
|
59598
59773
|
this.type = HLineSeriesModel2.type;
|
|
59774
|
+
this.ignoreStyleOnData = true;
|
|
59599
59775
|
}
|
|
59600
59776
|
getInitialData(option) {
|
|
59601
59777
|
if (true) {
|
|
@@ -59623,7 +59799,9 @@ HLineSeriesModel.defaultOption = {
|
|
|
59623
59799
|
type: "solid"
|
|
59624
59800
|
},
|
|
59625
59801
|
emphasis: {
|
|
59626
|
-
|
|
59802
|
+
emphasisState: {
|
|
59803
|
+
zlevel: 1
|
|
59804
|
+
}
|
|
59627
59805
|
},
|
|
59628
59806
|
animationEasing: "linear",
|
|
59629
59807
|
progressive: 0,
|
|
@@ -59650,6 +59828,8 @@ var HLinesView2 = class extends Chart_default {
|
|
|
59650
59828
|
const data = seriesModel.getData();
|
|
59651
59829
|
const lineDraw = this._lineDraw;
|
|
59652
59830
|
lineDraw.updateData(data);
|
|
59831
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
59832
|
+
const groupId = seriesModel.get("groupId");
|
|
59653
59833
|
const clipPath = seriesModel.get("clip", true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
|
|
59654
59834
|
if (clipPath) {
|
|
59655
59835
|
this.group.setClipPath(clipPath);
|
|
@@ -59657,6 +59837,11 @@ var HLinesView2 = class extends Chart_default {
|
|
|
59657
59837
|
this.group.removeClipPath();
|
|
59658
59838
|
}
|
|
59659
59839
|
this._finished = true;
|
|
59840
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
59841
|
+
this.group.traverse(function(child) {
|
|
59842
|
+
child.states.emphasis = emphasisState;
|
|
59843
|
+
});
|
|
59844
|
+
getECData(this.group).groupId = groupId;
|
|
59660
59845
|
}
|
|
59661
59846
|
eachRendered(cb) {
|
|
59662
59847
|
this._lineDraw && this._lineDraw.eachRendered(cb);
|
|
@@ -59730,6 +59915,7 @@ var FillsSeriesModel2 = class extends Series_default {
|
|
|
59730
59915
|
constructor() {
|
|
59731
59916
|
super(...arguments);
|
|
59732
59917
|
this.type = FillsSeriesModel2.type;
|
|
59918
|
+
this.ignoreStyleOnData = true;
|
|
59733
59919
|
}
|
|
59734
59920
|
getInitialData(option) {
|
|
59735
59921
|
if (true) {
|
|
@@ -59753,7 +59939,9 @@ FillsSeriesModel.defaultOption = {
|
|
|
59753
59939
|
legendHoverLink: true,
|
|
59754
59940
|
clip: true,
|
|
59755
59941
|
emphasis: {
|
|
59756
|
-
|
|
59942
|
+
emphasisState: {
|
|
59943
|
+
zlevel: 1
|
|
59944
|
+
}
|
|
59757
59945
|
},
|
|
59758
59946
|
animationEasing: "linear",
|
|
59759
59947
|
progressive: 0,
|
|
@@ -59830,6 +60018,8 @@ var FillsView2 = class extends Chart_default {
|
|
|
59830
60018
|
const z2 = seriesModel.get("z2");
|
|
59831
60019
|
const polygonGroup = this._polygonGroup;
|
|
59832
60020
|
const coordSys = seriesModel.coordinateSystem;
|
|
60021
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
60022
|
+
const groupId = seriesModel.get("groupId");
|
|
59833
60023
|
each(pointsByColor, function(points4, key) {
|
|
59834
60024
|
const colors = key.split(":");
|
|
59835
60025
|
let fill = key;
|
|
@@ -59863,6 +60053,7 @@ var FillsView2 = class extends Chart_default {
|
|
|
59863
60053
|
},
|
|
59864
60054
|
z2: isDefaultFill ? -1 : z2
|
|
59865
60055
|
});
|
|
60056
|
+
el.states.emphasis = emphasisState;
|
|
59866
60057
|
polygonGroup.add(el);
|
|
59867
60058
|
});
|
|
59868
60059
|
const clipPath = seriesModel.get("clip", true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
|
|
@@ -59871,6 +60062,8 @@ var FillsView2 = class extends Chart_default {
|
|
|
59871
60062
|
} else {
|
|
59872
60063
|
this.group.removeClipPath();
|
|
59873
60064
|
}
|
|
60065
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
60066
|
+
getECData(this.group).groupId = groupId;
|
|
59874
60067
|
}
|
|
59875
60068
|
eachRendered(cb) {
|
|
59876
60069
|
traverseElements(this._polygonGroup, cb);
|
|
@@ -60018,6 +60211,7 @@ var BgColorSeriesModel2 = class extends Series_default {
|
|
|
60018
60211
|
constructor() {
|
|
60019
60212
|
super(...arguments);
|
|
60020
60213
|
this.type = BgColorSeriesModel2.type;
|
|
60214
|
+
this.ignoreStyleOnData = true;
|
|
60021
60215
|
}
|
|
60022
60216
|
getInitialData(option) {
|
|
60023
60217
|
if (true) {
|
|
@@ -60039,6 +60233,11 @@ BgColorSeriesModel.defaultOption = {
|
|
|
60039
60233
|
coordinateSystem: "cartesian2d",
|
|
60040
60234
|
legendHoverLink: true,
|
|
60041
60235
|
clip: true,
|
|
60236
|
+
emphasis: {
|
|
60237
|
+
emphasisState: {
|
|
60238
|
+
zlevel: 1
|
|
60239
|
+
}
|
|
60240
|
+
},
|
|
60042
60241
|
animationEasing: "linear",
|
|
60043
60242
|
progressive: 0,
|
|
60044
60243
|
hoverLayerThreshold: Infinity,
|
|
@@ -60081,10 +60280,20 @@ var BgColorPath = class extends Path_default {
|
|
|
60081
60280
|
ctx2.lineTo(x, y + height);
|
|
60082
60281
|
}
|
|
60083
60282
|
} else {
|
|
60283
|
+
let nextIndex = 0;
|
|
60084
60284
|
for (let index = 0; index < points4.length; index++) {
|
|
60085
60285
|
const point = points4[index];
|
|
60086
|
-
const {x, y
|
|
60286
|
+
const {x, y} = point;
|
|
60287
|
+
let width = point.width;
|
|
60288
|
+
nextIndex = index;
|
|
60289
|
+
let nextPoint = points4[nextIndex + 1];
|
|
60290
|
+
while (nextPoint && nextPoint.x === x + width) {
|
|
60291
|
+
width = width + nextPoint.width;
|
|
60292
|
+
nextIndex++;
|
|
60293
|
+
nextPoint = points4[nextIndex + 1];
|
|
60294
|
+
}
|
|
60087
60295
|
ctx2.rect(x, y, width, height);
|
|
60296
|
+
index = nextIndex;
|
|
60088
60297
|
}
|
|
60089
60298
|
}
|
|
60090
60299
|
}
|
|
@@ -60107,9 +60316,11 @@ var BgColorView2 = class extends Chart_default {
|
|
|
60107
60316
|
} else {
|
|
60108
60317
|
this._bgColorGroup.removeAll();
|
|
60109
60318
|
}
|
|
60319
|
+
const emphasisState = seriesModel.get("emphasis").emphasisState;
|
|
60320
|
+
const groupId = seriesModel.get("groupId");
|
|
60110
60321
|
const bgColorGroup = this._bgColorGroup;
|
|
60111
60322
|
const barWidth = Math.ceil(seriesModel.coordinateSystem.getBaseAxis().scale.barSpace) || 5;
|
|
60112
|
-
const isLine = barWidth <=
|
|
60323
|
+
const isLine = barWidth <= 4;
|
|
60113
60324
|
each(rectsByColor, function(rects, color2) {
|
|
60114
60325
|
const el = new BgColorPath_default({
|
|
60115
60326
|
shape: {
|
|
@@ -60120,9 +60331,10 @@ var BgColorView2 = class extends Chart_default {
|
|
|
60120
60331
|
style: {
|
|
60121
60332
|
fill: isLine ? null : color2,
|
|
60122
60333
|
stroke: isLine ? color2 : "none",
|
|
60123
|
-
lineWidth: isLine ? barWidth : void 0
|
|
60334
|
+
lineWidth: isLine ? +barWidth : void 0
|
|
60124
60335
|
}
|
|
60125
60336
|
});
|
|
60337
|
+
el.states.emphasis = emphasisState;
|
|
60126
60338
|
bgColorGroup.add(el);
|
|
60127
60339
|
});
|
|
60128
60340
|
const clipPath = seriesModel.get("clip", true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
|
|
@@ -60131,6 +60343,8 @@ var BgColorView2 = class extends Chart_default {
|
|
|
60131
60343
|
} else {
|
|
60132
60344
|
this.group.removeClipPath();
|
|
60133
60345
|
}
|
|
60346
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
60347
|
+
getECData(this.group).groupId = groupId;
|
|
60134
60348
|
}
|
|
60135
60349
|
eachRendered(cb) {
|
|
60136
60350
|
traverseElements(this._bgColorGroup, cb);
|
|
@@ -60182,6 +60396,7 @@ var bgColorLayout = {
|
|
|
60182
60396
|
progress(params, bgColorData) {
|
|
60183
60397
|
const rectsByColor = {};
|
|
60184
60398
|
const barWidth = Math.ceil(coordSys.getBaseAxis().scale.barSpace) || 5;
|
|
60399
|
+
const leftOffset = barWidth / 2;
|
|
60185
60400
|
const {height, startY} = getHeight(seriesModel);
|
|
60186
60401
|
const lastIndex = bgColorData.count(true) - 1;
|
|
60187
60402
|
for (let i = params.start; i < params.end; i++) {
|
|
@@ -60203,7 +60418,7 @@ var bgColorLayout = {
|
|
|
60203
60418
|
}
|
|
60204
60419
|
const rects = rectsByColor[color2] || [];
|
|
60205
60420
|
rects.push({
|
|
60206
|
-
x: xPx -
|
|
60421
|
+
x: xPx - leftOffset,
|
|
60207
60422
|
y: startY,
|
|
60208
60423
|
width
|
|
60209
60424
|
});
|
|
@@ -63877,7 +64092,6 @@ var BaseAxisPointer = class {
|
|
|
63877
64092
|
this._lastGraphicKey = graphicKey;
|
|
63878
64093
|
if (!group) {
|
|
63879
64094
|
group = this._group = new Group_default();
|
|
63880
|
-
this._group.zLevel = 2;
|
|
63881
64095
|
this.createPointerEl(group, elOption, axisModel, axisPointerModel);
|
|
63882
64096
|
this.createLabelEl(group, elOption, axisModel, axisPointerModel);
|
|
63883
64097
|
api2.getZr().add(group);
|
|
@@ -63923,6 +64137,7 @@ var BaseAxisPointer = class {
|
|
|
63923
64137
|
const pointerOption = elOption.pointer;
|
|
63924
64138
|
if (pointerOption) {
|
|
63925
64139
|
const pointerEl = inner11(group).pointerEl = new graphic_exports[pointerOption.type](clone4(elOption.pointer));
|
|
64140
|
+
pointerEl.zlevel = 2;
|
|
63926
64141
|
group.add(pointerEl);
|
|
63927
64142
|
}
|
|
63928
64143
|
}
|
|
@@ -71872,7 +72087,12 @@ TableModel.type = "table";
|
|
|
71872
72087
|
TableModel.defaultOption = {
|
|
71873
72088
|
z: 6,
|
|
71874
72089
|
tables: [],
|
|
71875
|
-
paddings: 10
|
|
72090
|
+
paddings: 10,
|
|
72091
|
+
emphasis: {
|
|
72092
|
+
emphasisState: {
|
|
72093
|
+
zlevel: 1
|
|
72094
|
+
}
|
|
72095
|
+
}
|
|
71876
72096
|
};
|
|
71877
72097
|
var TableModel_default = TableModel;
|
|
71878
72098
|
|
|
@@ -71965,6 +72185,7 @@ var TableView2 = class extends Component_default2 {
|
|
|
71965
72185
|
if (!tableModel.get("show")) {
|
|
71966
72186
|
return;
|
|
71967
72187
|
}
|
|
72188
|
+
const emphasisState = tableModel.get("emphasis").emphasisState;
|
|
71968
72189
|
const tables = tableModel.get("tables");
|
|
71969
72190
|
const tableByPosition = {};
|
|
71970
72191
|
each(tables, function(table) {
|
|
@@ -72135,6 +72356,7 @@ var TableView2 = class extends Component_default2 {
|
|
|
72135
72356
|
z,
|
|
72136
72357
|
z2: 10
|
|
72137
72358
|
});
|
|
72359
|
+
textEl.states.emphasis = emphasisState;
|
|
72138
72360
|
tableGroup.add(textEl);
|
|
72139
72361
|
if (border_width && border_color) {
|
|
72140
72362
|
const cellColumn = mergeCell ? mergeCell.end_column : column;
|
|
@@ -72169,6 +72391,7 @@ var TableView2 = class extends Component_default2 {
|
|
|
72169
72391
|
z,
|
|
72170
72392
|
z2: 11
|
|
72171
72393
|
});
|
|
72394
|
+
lineEl.states.emphasis = emphasisState;
|
|
72172
72395
|
tableGroup.add(lineEl);
|
|
72173
72396
|
}
|
|
72174
72397
|
});
|
|
@@ -72187,6 +72410,7 @@ var TableView2 = class extends Component_default2 {
|
|
|
72187
72410
|
z,
|
|
72188
72411
|
z2: 8
|
|
72189
72412
|
});
|
|
72413
|
+
rectEl.states.emphasis = emphasisState;
|
|
72190
72414
|
tableGroup.add(rectEl);
|
|
72191
72415
|
}
|
|
72192
72416
|
if (frame_color && frame_width) {
|
|
@@ -72209,10 +72433,14 @@ var TableView2 = class extends Component_default2 {
|
|
|
72209
72433
|
z,
|
|
72210
72434
|
z2: 15
|
|
72211
72435
|
});
|
|
72436
|
+
frameEl.states.emphasis = emphasisState;
|
|
72212
72437
|
tableGroup.add(frameEl);
|
|
72213
72438
|
}
|
|
72214
72439
|
group.add(tableGroup);
|
|
72215
72440
|
});
|
|
72441
|
+
toggleHoverEmphasis(this.group, null, null, false);
|
|
72442
|
+
const groupId = tableModel.get("groupId");
|
|
72443
|
+
getECData(this.group).groupId = groupId;
|
|
72216
72444
|
}
|
|
72217
72445
|
};
|
|
72218
72446
|
var TableView = TableView2;
|
|
@@ -74951,8 +75179,9 @@ var MarkLabelView2 = class extends Component_default2 {
|
|
|
74951
75179
|
const labelMap = markerModel.labelMap;
|
|
74952
75180
|
const updatedSeriesByName = {};
|
|
74953
75181
|
ecModel.eachSeries((seriesModel) => {
|
|
74954
|
-
const
|
|
74955
|
-
|
|
75182
|
+
const priceScaleInvisible = seriesModel.get("priceScaleInvisible");
|
|
75183
|
+
const invisible = seriesModel.get("invisible");
|
|
75184
|
+
if (priceScaleInvisible || invisible) {
|
|
74956
75185
|
return;
|
|
74957
75186
|
}
|
|
74958
75187
|
const seriesName = seriesModel.name;
|