@banyan_cloud/roots 1.0.41 → 1.0.42

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/cjs/index.js CHANGED
@@ -52259,7 +52259,7 @@ function isArrayLike(data) {
52259
52259
  }
52260
52260
  return typeof data.length === 'number';
52261
52261
  }
52262
- function each$3(arr, cb, context) {
52262
+ function each$4(arr, cb, context) {
52263
52263
  if (!(arr && cb)) {
52264
52264
  return;
52265
52265
  }
@@ -52363,7 +52363,7 @@ function bindPolyfill(func, context) {
52363
52363
  var bind$1 = (protoFunction && isFunction(protoFunction.bind))
52364
52364
  ? protoFunction.call.bind(protoFunction.bind)
52365
52365
  : bindPolyfill;
52366
- function curry(func) {
52366
+ function curry$1(func) {
52367
52367
  var args = [];
52368
52368
  for (var _i = 1; _i < arguments.length; _i++) {
52369
52369
  args[_i - 1] = arguments[_i];
@@ -52491,7 +52491,7 @@ var HashMap = (function () {
52491
52491
  var thisMap = this;
52492
52492
  (obj instanceof HashMap)
52493
52493
  ? obj.each(visit)
52494
- : (obj && each$3(obj, visit));
52494
+ : (obj && each$4(obj, visit));
52495
52495
  function visit(value, key) {
52496
52496
  isArr ? thisMap.set(value, key) : thisMap.set(key, value);
52497
52497
  }
@@ -52573,14 +52573,14 @@ var util$1 = /*#__PURE__*/Object.freeze({
52573
52573
  inherits: inherits,
52574
52574
  mixin: mixin,
52575
52575
  isArrayLike: isArrayLike,
52576
- each: each$3,
52576
+ each: each$4,
52577
52577
  map: map$1,
52578
52578
  reduce: reduce,
52579
52579
  filter: filter,
52580
52580
  find: find,
52581
52581
  keys: keys,
52582
52582
  bind: bind$1,
52583
- curry: curry,
52583
+ curry: curry$1,
52584
52584
  isArray: isArray,
52585
52585
  isFunction: isFunction,
52586
52586
  isString: isString,
@@ -53873,7 +53873,7 @@ var Handler = (function (_super) {
53873
53873
  this.proxy.dispose();
53874
53874
  }
53875
53875
  if (proxy) {
53876
- each$3(handlerNames, function (name) {
53876
+ each$4(handlerNames, function (name) {
53877
53877
  proxy.on && proxy.on(name, this[name], this);
53878
53878
  }, this);
53879
53879
  proxy.handler = this;
@@ -54019,7 +54019,7 @@ var Handler = (function (_super) {
54019
54019
  };
54020
54020
  return Handler;
54021
54021
  }(Eventful$1));
54022
- each$3(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) {
54022
+ each$4(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) {
54023
54023
  Handler.prototype[name] = function (event) {
54024
54024
  var x = event.zrX;
54025
54025
  var y = event.zrY;
@@ -57000,7 +57000,7 @@ var localDOMHandlers = {
57000
57000
  }
57001
57001
  }
57002
57002
  };
57003
- each$3(['click', 'dblclick', 'contextmenu'], function (name) {
57003
+ each$4(['click', 'dblclick', 'contextmenu'], function (name) {
57004
57004
  localDOMHandlers[name] = function (event) {
57005
57005
  event = normalizeEvent(this.dom, event);
57006
57006
  this.trigger(name, event);
@@ -57031,7 +57031,7 @@ var globalDOMHandlers = {
57031
57031
  function mountLocalDOMEventListeners(instance, scope) {
57032
57032
  var domHandlers = scope.domHandlers;
57033
57033
  if (env$1.pointerEventsSupported) {
57034
- each$3(localNativeListenerNames.pointer, function (nativeEventName) {
57034
+ each$4(localNativeListenerNames.pointer, function (nativeEventName) {
57035
57035
  mountSingleDOMEventListener(scope, nativeEventName, function (event) {
57036
57036
  domHandlers[nativeEventName].call(instance, event);
57037
57037
  });
@@ -57039,14 +57039,14 @@ function mountLocalDOMEventListeners(instance, scope) {
57039
57039
  }
57040
57040
  else {
57041
57041
  if (env$1.touchEventsSupported) {
57042
- each$3(localNativeListenerNames.touch, function (nativeEventName) {
57042
+ each$4(localNativeListenerNames.touch, function (nativeEventName) {
57043
57043
  mountSingleDOMEventListener(scope, nativeEventName, function (event) {
57044
57044
  domHandlers[nativeEventName].call(instance, event);
57045
57045
  setTouchTimer(scope);
57046
57046
  });
57047
57047
  });
57048
57048
  }
57049
- each$3(localNativeListenerNames.mouse, function (nativeEventName) {
57049
+ each$4(localNativeListenerNames.mouse, function (nativeEventName) {
57050
57050
  mountSingleDOMEventListener(scope, nativeEventName, function (event) {
57051
57051
  event = getNativeEvent(event);
57052
57052
  if (!scope.touching) {
@@ -57058,10 +57058,10 @@ function mountLocalDOMEventListeners(instance, scope) {
57058
57058
  }
57059
57059
  function mountGlobalDOMEventListeners(instance, scope) {
57060
57060
  if (env$1.pointerEventsSupported) {
57061
- each$3(globalNativeListenerNames.pointer, mount);
57061
+ each$4(globalNativeListenerNames.pointer, mount);
57062
57062
  }
57063
57063
  else if (!env$1.touchEventsSupported) {
57064
- each$3(globalNativeListenerNames.mouse, mount);
57064
+ each$4(globalNativeListenerNames.mouse, mount);
57065
57065
  }
57066
57066
  function mount(nativeEventName) {
57067
57067
  function nativeEventListener(event) {
@@ -58581,7 +58581,7 @@ function animateToShallow(animatable, topKey, animateObj, target, cfg, animation
58581
58581
  }
58582
58582
  var Element$1 = Element;
58583
58583
 
58584
- var Group = (function (_super) {
58584
+ var Group$2 = (function (_super) {
58585
58585
  __extends(Group, _super);
58586
58586
  function Group(opts) {
58587
58587
  var _this = _super.call(this) || this;
@@ -58754,8 +58754,8 @@ var Group = (function (_super) {
58754
58754
  };
58755
58755
  return Group;
58756
58756
  }(Element$1));
58757
- Group.prototype.type = 'group';
58758
- var Group$1 = Group;
58757
+ Group$2.prototype.type = 'group';
58758
+ var Group$3 = Group$2;
58759
58759
 
58760
58760
  /*!
58761
58761
  * ZRender, a high performance 2d drawing library.
@@ -58968,7 +58968,7 @@ var ZRender = (function () {
58968
58968
  ZRender.prototype.clear = function () {
58969
58969
  var roots = this.storage.getRoots();
58970
58970
  for (var i = 0; i < roots.length; i++) {
58971
- if (roots[i] instanceof Group$1) {
58971
+ if (roots[i] instanceof Group$3) {
58972
58972
  roots[i].removeSelfFromZr(this);
58973
58973
  }
58974
58974
  }
@@ -59810,7 +59810,7 @@ function mappingToExists(existings, newCmptOptions, mode) {
59810
59810
  newCmptOptions = (newCmptOptions || []).slice();
59811
59811
  var existingIdIdxMap = createHashMap(); // Validate id and name on user input option.
59812
59812
 
59813
- each$3(newCmptOptions, function (cmptOption, index) {
59813
+ each$4(newCmptOptions, function (cmptOption, index) {
59814
59814
  if (!isObject$2(cmptOption)) {
59815
59815
  newCmptOptions[index] = null;
59816
59816
  return;
@@ -59884,7 +59884,7 @@ function prepareResult(existings, existingIdIdxMap, mode) {
59884
59884
 
59885
59885
  function mappingById(result, existings, existingIdIdxMap, newCmptOptions) {
59886
59886
  // Mapping by id if specified.
59887
- each$3(newCmptOptions, function (cmptOption, index) {
59887
+ each$4(newCmptOptions, function (cmptOption, index) {
59888
59888
  if (!cmptOption || cmptOption.id == null) {
59889
59889
  return;
59890
59890
  }
@@ -59906,7 +59906,7 @@ function mappingById(result, existings, existingIdIdxMap, newCmptOptions) {
59906
59906
 
59907
59907
  function mappingByName(result, newCmptOptions) {
59908
59908
  // Mapping by name if specified.
59909
- each$3(newCmptOptions, function (cmptOption, index) {
59909
+ each$4(newCmptOptions, function (cmptOption, index) {
59910
59910
  if (!cmptOption || cmptOption.name == null) {
59911
59911
  return;
59912
59912
  }
@@ -59926,7 +59926,7 @@ function mappingByName(result, newCmptOptions) {
59926
59926
  }
59927
59927
 
59928
59928
  function mappingByIndex(result, newCmptOptions, brandNew) {
59929
- each$3(newCmptOptions, function (cmptOption) {
59929
+ each$4(newCmptOptions, function (cmptOption) {
59930
59930
  if (!cmptOption) {
59931
59931
  return;
59932
59932
  } // Find the first place that not mapped by id and not internal component (consider the "hole").
@@ -59964,7 +59964,7 @@ function mappingByIndex(result, newCmptOptions, brandNew) {
59964
59964
  }
59965
59965
 
59966
59966
  function mappingInReplaceAllMode(result, newCmptOptions) {
59967
- each$3(newCmptOptions, function (cmptOption) {
59967
+ each$4(newCmptOptions, function (cmptOption) {
59968
59968
  // The feature "reproduce" requires "hole" will also reproduced
59969
59969
  // in case that compoennt index referring are broken.
59970
59970
  result.push({
@@ -59992,11 +59992,11 @@ function makeIdAndName(mapResult) {
59992
59992
  // to specify multi components (like series) by one name.
59993
59993
  // Ensure that each id is distinct.
59994
59994
  var idMap = createHashMap();
59995
- each$3(mapResult, function (item) {
59995
+ each$4(mapResult, function (item) {
59996
59996
  var existing = item.existing;
59997
59997
  existing && idMap.set(existing.id, item);
59998
59998
  });
59999
- each$3(mapResult, function (item) {
59999
+ each$4(mapResult, function (item) {
60000
60000
  var opt = item.newOption; // Force ensure id not duplicated.
60001
60001
 
60002
60002
  assert(!opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item, 'id duplicates: ' + (opt && opt.id));
@@ -60004,7 +60004,7 @@ function makeIdAndName(mapResult) {
60004
60004
  !item.keyInfo && (item.keyInfo = {});
60005
60005
  }); // Make name and id.
60006
60006
 
60007
- each$3(mapResult, function (item, index) {
60007
+ each$4(mapResult, function (item, index) {
60008
60008
  var existing = item.existing;
60009
60009
  var opt = item.newOption;
60010
60010
  var keyInfo = item.keyInfo;
@@ -60097,7 +60097,7 @@ function isComponentIdInternal(cmptOption) {
60097
60097
  }
60098
60098
  function setComponentTypeToKeyInfo(mappingResult, mainType, componentModelCtor) {
60099
60099
  // Set mainType and complete subType.
60100
- each$3(mappingResult, function (item) {
60100
+ each$4(mappingResult, function (item) {
60101
60101
  var newOption = item.newOption;
60102
60102
 
60103
60103
  if (isObject$2(newOption)) {
@@ -60202,7 +60202,7 @@ function preParseFinder(finderInput, opt) {
60202
60202
  var queryOptionMap = createHashMap();
60203
60203
  var others = {};
60204
60204
  var mainTypeSpecified = false;
60205
- each$3(finder, function (value, key) {
60205
+ each$4(finder, function (value, key) {
60206
60206
  // Exclude 'dataIndex' and other illgal keys.
60207
60207
  if (key === 'dataIndex' || key === 'dataIndexInside') {
60208
60208
  others[key] = value;
@@ -60334,7 +60334,7 @@ function enableClassExtend(rootClz, mandatoryMethods) {
60334
60334
 
60335
60335
  rootClz.extend = function (proto) {
60336
60336
  if (process.env.NODE_ENV !== 'production') {
60337
- each$3(mandatoryMethods, function (method) {
60337
+ each$4(mandatoryMethods, function (method) {
60338
60338
  if (!proto[method]) {
60339
60339
  console.warn('Method `' + method + '` should be implemented' + (proto.type ? ' in ' + proto.type : '') + '.');
60340
60340
  }
@@ -60523,7 +60523,7 @@ function enableClassManagement(target) {
60523
60523
  var obj = storage[componentTypeInfo.main];
60524
60524
 
60525
60525
  if (obj && obj[IS_CONTAINER]) {
60526
- each$3(obj, function (o, type) {
60526
+ each$4(obj, function (o, type) {
60527
60527
  type !== IS_CONTAINER && result.push(o);
60528
60528
  });
60529
60529
  } else {
@@ -60545,7 +60545,7 @@ function enableClassManagement(target) {
60545
60545
 
60546
60546
  target.getAllClassMainTypes = function () {
60547
60547
  var types = [];
60548
- each$3(storage, function (obj, type) {
60548
+ each$4(storage, function (obj, type) {
60549
60549
  types.push(type);
60550
60550
  });
60551
60551
  return types;
@@ -63880,7 +63880,7 @@ function hasSeparateFont(style) {
63880
63880
  }
63881
63881
  function normalizeTextStyle(style) {
63882
63882
  normalizeStyle(style);
63883
- each$3(style.rich, normalizeStyle);
63883
+ each$4(style.rich, normalizeStyle);
63884
63884
  return style;
63885
63885
  }
63886
63886
  function normalizeStyle(style) {
@@ -64252,7 +64252,7 @@ function allLeaveBlur(api) {
64252
64252
 
64253
64253
  componentStates.isBlured = false;
64254
64254
  });
64255
- each$3(allComponentViews, function (view) {
64255
+ each$4(allComponentViews, function (view) {
64256
64256
  if (view && view.toggleBlurSeries) {
64257
64257
  view.toggleBlurSeries(leaveBlurredSeries, false, model);
64258
64258
  }
@@ -64454,7 +64454,7 @@ function handleGlobalMouseOverForHighDown(dispatcher, e, api) {
64454
64454
  blurComponent(ecData.componentMainType, ecData.componentIndex, api);
64455
64455
  }
64456
64456
 
64457
- each$3(dispatchers, function (dispatcher) {
64457
+ each$4(dispatchers, function (dispatcher) {
64458
64458
  return enterEmphasisWhenMouseOver(dispatcher, e);
64459
64459
  });
64460
64460
  } else {
@@ -64482,7 +64482,7 @@ function handleGlobalMouseOutForHighDown(dispatcher, e, api) {
64482
64482
  var dispatchers = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api).dispatchers;
64483
64483
 
64484
64484
  if (dispatchers) {
64485
- each$3(dispatchers, function (dispatcher) {
64485
+ each$4(dispatchers, function (dispatcher) {
64486
64486
  return leaveEmphasisWhenMouseOut(dispatcher, e);
64487
64487
  });
64488
64488
  } else {
@@ -64506,7 +64506,7 @@ function toggleSelectionFromPayload(seriesModel, payload, api) {
64506
64506
  }
64507
64507
  function updateSeriesElementSelection(seriesModel) {
64508
64508
  var allData = seriesModel.getAllData();
64509
- each$3(allData, function (_a) {
64509
+ each$4(allData, function (_a) {
64510
64510
  var data = _a.data,
64511
64511
  type = _a.type;
64512
64512
  data.eachItemGraphicEl(function (el, idx) {
@@ -64518,7 +64518,7 @@ function getAllSelectedIndices(ecModel) {
64518
64518
  var ret = [];
64519
64519
  ecModel.eachSeries(function (seriesModel) {
64520
64520
  var allData = seriesModel.getAllData();
64521
- each$3(allData, function (_a) {
64521
+ each$4(allData, function (_a) {
64522
64522
  _a.data;
64523
64523
  var type = _a.type;
64524
64524
  var dataIndices = seriesModel.getSelectedDataIndices();
@@ -66775,7 +66775,7 @@ function setTooltipConfig(opt) {
66775
66775
  var formatterParamsExtra = opt.formatterParamsExtra;
66776
66776
 
66777
66777
  if (formatterParamsExtra) {
66778
- each$3(keys(formatterParamsExtra), function (key) {
66778
+ each$4(keys(formatterParamsExtra), function (key) {
66779
66779
  if (!hasOwn(formatterParams, key)) {
66780
66780
  formatterParams[key] = formatterParamsExtra[key];
66781
66781
  formatterParams.$vars.push(key);
@@ -66861,7 +66861,7 @@ var graphic$1 = /*#__PURE__*/Object.freeze({
66861
66861
  lineLineIntersect: lineLineIntersect,
66862
66862
  setTooltipConfig: setTooltipConfig,
66863
66863
  traverseElements: traverseElements,
66864
- Group: Group$1,
66864
+ Group: Group$3,
66865
66865
  Image: ZRImage$1,
66866
66866
  Text: ZRText$1,
66867
66867
  Circle: Circle$1,
@@ -67674,7 +67674,7 @@ function enableTopologicalTravel(entity, dependencyGetter) {
67674
67674
  var graph = result.graph;
67675
67675
  var noEntryList = result.noEntryList;
67676
67676
  var targetNameSet = {};
67677
- each$3(targetNameList, function (name) {
67677
+ each$4(targetNameList, function (name) {
67678
67678
  targetNameSet[name] = true;
67679
67679
  });
67680
67680
 
@@ -67688,10 +67688,10 @@ function enableTopologicalTravel(entity, dependencyGetter) {
67688
67688
  delete targetNameSet[currComponentType];
67689
67689
  }
67690
67690
 
67691
- each$3(currVertex.successor, isInTargetNameSet ? removeEdgeAndAdd : removeEdge);
67691
+ each$4(currVertex.successor, isInTargetNameSet ? removeEdgeAndAdd : removeEdge);
67692
67692
  }
67693
67693
 
67694
- each$3(targetNameSet, function () {
67694
+ each$4(targetNameSet, function () {
67695
67695
  var errMsg = '';
67696
67696
 
67697
67697
  if (process.env.NODE_ENV !== 'production') {
@@ -67724,7 +67724,7 @@ function enableTopologicalTravel(entity, dependencyGetter) {
67724
67724
  function makeDepndencyGraph(fullNameList) {
67725
67725
  var graph = {};
67726
67726
  var noEntryList = [];
67727
- each$3(fullNameList, function (name) {
67727
+ each$4(fullNameList, function (name) {
67728
67728
  var thisItem = createDependencyGraphItem(graph, name);
67729
67729
  var originalDeps = thisItem.originalDeps = dependencyGetter(name);
67730
67730
  var availableDeps = getAvailableDependencies(originalDeps, fullNameList);
@@ -67734,7 +67734,7 @@ function enableTopologicalTravel(entity, dependencyGetter) {
67734
67734
  noEntryList.push(name);
67735
67735
  }
67736
67736
 
67737
- each$3(availableDeps, function (dependentName) {
67737
+ each$4(availableDeps, function (dependentName) {
67738
67738
  if (indexOf(thisItem.predecessor, dependentName) < 0) {
67739
67739
  thisItem.predecessor.push(dependentName);
67740
67740
  }
@@ -67765,7 +67765,7 @@ function enableTopologicalTravel(entity, dependencyGetter) {
67765
67765
 
67766
67766
  function getAvailableDependencies(originalDeps, fullNameList) {
67767
67767
  var availableDeps = [];
67768
- each$3(originalDeps, function (dep) {
67768
+ each$4(originalDeps, function (dep) {
67769
67769
  indexOf(fullNameList, dep) >= 0 && availableDeps.push(dep);
67770
67770
  });
67771
67771
  return availableDeps;
@@ -68599,7 +68599,7 @@ function windowOpen(link, target) {
68599
68599
  }
68600
68600
  }
68601
68601
 
68602
- var each$2 = each$3;
68602
+ var each$3 = each$4;
68603
68603
  /**
68604
68604
  * @public
68605
68605
  */
@@ -68669,6 +68669,17 @@ function boxLayout(orient, group, gap, maxWidth, maxHeight) {
68669
68669
  orient === 'horizontal' ? x = nextX + gap : y = nextY + gap;
68670
68670
  });
68671
68671
  }
68672
+ /**
68673
+ * VBox or HBox layouting
68674
+ * @param {string} orient
68675
+ * @param {module:zrender/graphic/Group} group
68676
+ * @param {number} gap
68677
+ * @param {number} [width=Infinity]
68678
+ * @param {number} [height=Infinity]
68679
+ */
68680
+
68681
+
68682
+ var box = boxLayout;
68672
68683
  /**
68673
68684
  * VBox layouting
68674
68685
  * @param {module:zrender/graphic/Group} group
@@ -68677,7 +68688,7 @@ function boxLayout(orient, group, gap, maxWidth, maxHeight) {
68677
68688
  * @param {number} [height=Infinity]
68678
68689
  */
68679
68690
 
68680
- curry(boxLayout, 'vertical');
68691
+ curry$1(boxLayout, 'vertical');
68681
68692
  /**
68682
68693
  * HBox layouting
68683
68694
  * @param {module:zrender/graphic/Group} group
@@ -68686,7 +68697,7 @@ curry(boxLayout, 'vertical');
68686
68697
  * @param {number} [height=Infinity]
68687
68698
  */
68688
68699
 
68689
- curry(boxLayout, 'horizontal');
68700
+ curry$1(boxLayout, 'horizontal');
68690
68701
  /**
68691
68702
  * Parse position info.
68692
68703
  */
@@ -68832,10 +68843,10 @@ function mergeLayoutParam(targetOption, newOption, opt) {
68832
68843
  var merged = {};
68833
68844
  var mergedValueCount = 0;
68834
68845
  var enoughParamNumber = 2;
68835
- each$2(names, function (name) {
68846
+ each$3(names, function (name) {
68836
68847
  merged[name] = targetOption[name];
68837
68848
  });
68838
- each$2(names, function (name) {
68849
+ each$3(names, function (name) {
68839
68850
  // Consider case: newOption.width is null, which is
68840
68851
  // set by user for removing width setting.
68841
68852
  hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]);
@@ -68889,7 +68900,7 @@ function mergeLayoutParam(targetOption, newOption, opt) {
68889
68900
  }
68890
68901
 
68891
68902
  function copy(names, target, source) {
68892
- each$2(names, function (name) {
68903
+ each$3(names, function (name) {
68893
68904
  target[name] = source[name];
68894
68905
  });
68895
68906
  }
@@ -68908,7 +68919,7 @@ function getLayoutParams(source) {
68908
68919
  */
68909
68920
 
68910
68921
  function copyLayoutParams(target, source) {
68911
- source && target && each$2(LOCATION_PARAMS, function (name) {
68922
+ source && target && each$3(LOCATION_PARAMS, function (name) {
68912
68923
  source.hasOwnProperty(name) && (target[name] = source[name]);
68913
68924
  });
68914
68925
  return target;
@@ -69114,7 +69125,7 @@ enableTopologicalTravel(ComponentModel, getDependencies);
69114
69125
 
69115
69126
  function getDependencies(componentType) {
69116
69127
  var deps = [];
69117
- each$3(ComponentModel.getClassesByMainType(componentType), function (clz) {
69128
+ each$4(ComponentModel.getClassesByMainType(componentType), function (clz) {
69118
69129
  deps = deps.concat(clz.dependencies || clz.prototype.dependencies || []);
69119
69130
  }); // Ensure main type.
69120
69131
 
@@ -69320,7 +69331,7 @@ function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) {
69320
69331
  var baseCategoryDimIndex;
69321
69332
  var categoryWayValueDimStart;
69322
69333
  coordDimensions = coordDimensions.slice();
69323
- each$3(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {
69334
+ each$4(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {
69324
69335
  var coordDimInfo = isObject$2(coordDimInfoLoose) ? coordDimInfoLoose : coordDimensions[coordDimIdx] = {
69325
69336
  name: coordDimInfoLoose
69326
69337
  };
@@ -69338,7 +69349,7 @@ function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) {
69338
69349
  }); // TODO
69339
69350
  // Auto detect first time axis and do arrangement.
69340
69351
 
69341
- each$3(coordDimensions, function (coordDimInfo, coordDimIdx) {
69352
+ each$4(coordDimensions, function (coordDimInfo, coordDimIdx) {
69342
69353
  var coordDimName = coordDimInfo.name;
69343
69354
  var count = getDataDimCountOnCoordDim(coordDimInfo); // In value way.
69344
69355
 
@@ -69399,7 +69410,7 @@ function makeSeriesEncodeForNameBased(seriesModel, source, dimCount) {
69399
69410
  var potentialNameDimIndex;
69400
69411
 
69401
69412
  if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {
69402
- each$3(dimensionsDefine, function (dim, idx) {
69413
+ each$4(dimensionsDefine, function (dim, idx) {
69403
69414
  if ((isObject$2(dim) ? dim.name : dim) === 'name') {
69404
69415
  potentialNameDimIndex = idx;
69405
69416
  }
@@ -69783,7 +69794,7 @@ var BUILTIN_CHARTS_MAP = {
69783
69794
  var componetsMissingLogPrinted = {};
69784
69795
 
69785
69796
  function checkMissingComponents(option) {
69786
- each$3(option, function (componentOption, mainType) {
69797
+ each$4(option, function (componentOption, mainType) {
69787
69798
  if (!ComponentModel$1.hasClass(mainType)) {
69788
69799
  var componentImportName = BUITIN_COMPONENTS_MAP[mainType];
69789
69800
 
@@ -69886,7 +69897,7 @@ function (_super) {
69886
69897
  var mediaOptions = optionManager.getMediaOption(this);
69887
69898
 
69888
69899
  if (mediaOptions.length) {
69889
- each$3(mediaOptions, function (mediaOption) {
69900
+ each$4(mediaOptions, function (mediaOption) {
69890
69901
  optionChanged = true;
69891
69902
 
69892
69903
  this._mergeOption(mediaOption, opt);
@@ -69911,7 +69922,7 @@ function (_super) {
69911
69922
  resetSourceDefaulter(this); // If no component class, merge directly.
69912
69923
  // For example: color, animaiton options, etc.
69913
69924
 
69914
- each$3(newOption, function (componentOption, mainType) {
69925
+ each$4(newOption, function (componentOption, mainType) {
69915
69926
  if (componentOption == null) {
69916
69927
  return;
69917
69928
  }
@@ -69959,7 +69970,7 @@ function (_super) {
69959
69970
  var cmptsCountByMainType = 0;
69960
69971
  var tooltipExists;
69961
69972
  var tooltipWarningLogged;
69962
- each$3(mappingResult, function (resultItem, index) {
69973
+ each$4(mappingResult, function (resultItem, index) {
69963
69974
  var componentModel = resultItem.existing;
69964
69975
  var newCmptOption = resultItem.newOption;
69965
69976
 
@@ -70072,7 +70083,7 @@ function (_super) {
70072
70083
 
70073
70084
  GlobalModel.prototype.getOption = function () {
70074
70085
  var option = clone$3(this.option);
70075
- each$3(option, function (optInMainType, mainType) {
70086
+ each$4(option, function (optInMainType, mainType) {
70076
70087
  if (ComponentModel$1.hasClass(mainType)) {
70077
70088
  var opts = normalizeToArray(optInMainType); // Inner cmpts need to be removed.
70078
70089
  // Inner cmpts might not be at last since ec5.0, but still
@@ -70162,7 +70173,7 @@ function (_super) {
70162
70173
 
70163
70174
  if (index != null) {
70164
70175
  result = [];
70165
- each$3(normalizeToArray(index), function (idx) {
70176
+ each$4(normalizeToArray(index), function (idx) {
70166
70177
  cmpts[idx] && result.push(cmpts[idx]);
70167
70178
  });
70168
70179
  } else if (id != null) {
@@ -70302,7 +70313,7 @@ function (_super) {
70302
70313
 
70303
70314
  GlobalModel.prototype.eachSeries = function (cb, context) {
70304
70315
  assertSeriesInitialized(this);
70305
- each$3(this._seriesIndices, function (rawSeriesIndex) {
70316
+ each$4(this._seriesIndices, function (rawSeriesIndex) {
70306
70317
  var series = this._componentsMap.get('series')[rawSeriesIndex];
70307
70318
 
70308
70319
  cb.call(context, series, rawSeriesIndex);
@@ -70317,7 +70328,7 @@ function (_super) {
70317
70328
 
70318
70329
 
70319
70330
  GlobalModel.prototype.eachRawSeries = function (cb, context) {
70320
- each$3(this._componentsMap.get('series'), function (series) {
70331
+ each$4(this._componentsMap.get('series'), function (series) {
70321
70332
  series && cb.call(context, series, series.componentIndex);
70322
70333
  });
70323
70334
  };
@@ -70329,7 +70340,7 @@ function (_super) {
70329
70340
 
70330
70341
  GlobalModel.prototype.eachSeriesByType = function (subType, cb, context) {
70331
70342
  assertSeriesInitialized(this);
70332
- each$3(this._seriesIndices, function (rawSeriesIndex) {
70343
+ each$4(this._seriesIndices, function (rawSeriesIndex) {
70333
70344
  var series = this._componentsMap.get('series')[rawSeriesIndex];
70334
70345
 
70335
70346
  if (series.subType === subType) {
@@ -70343,7 +70354,7 @@ function (_super) {
70343
70354
 
70344
70355
 
70345
70356
  GlobalModel.prototype.eachRawSeriesByType = function (subType, cb, context) {
70346
- return each$3(this.getSeriesByType(subType), cb, context);
70357
+ return each$4(this.getSeriesByType(subType), cb, context);
70347
70358
  };
70348
70359
 
70349
70360
  GlobalModel.prototype.isSeriesFiltered = function (seriesModel) {
@@ -70358,7 +70369,7 @@ function (_super) {
70358
70369
  GlobalModel.prototype.filterSeries = function (cb, context) {
70359
70370
  assertSeriesInitialized(this);
70360
70371
  var newSeriesIndices = [];
70361
- each$3(this._seriesIndices, function (seriesRawIdx) {
70372
+ each$4(this._seriesIndices, function (seriesRawIdx) {
70362
70373
  var series = this._componentsMap.get('series')[seriesRawIdx];
70363
70374
 
70364
70375
  cb.call(context, series, seriesRawIdx) && newSeriesIndices.push(seriesRawIdx);
@@ -70377,7 +70388,7 @@ function (_super) {
70377
70388
  }
70378
70389
  });
70379
70390
  ComponentModel$1.topologicalTravel(componentTypes, ComponentModel$1.getAllClassMainTypes(), function (componentType) {
70380
- each$3(componentsMap.get(componentType), function (component) {
70391
+ each$4(componentsMap.get(componentType), function (component) {
70381
70392
  if (component && (componentType !== 'series' || !isNotTargetSeries(component, payload))) {
70382
70393
  component.restoreData();
70383
70394
  }
@@ -70388,7 +70399,7 @@ function (_super) {
70388
70399
  GlobalModel.internalField = function () {
70389
70400
  reCreateSeriesIndices = function (ecModel) {
70390
70401
  var seriesIndices = ecModel._seriesIndices = [];
70391
- each$3(ecModel._componentsMap.get('series'), function (series) {
70402
+ each$4(ecModel._componentsMap.get('series'), function (series) {
70392
70403
  // series may have been removed by `replaceMerge`.
70393
70404
  series && seriesIndices.push(series.componentIndex);
70394
70405
  });
@@ -70448,7 +70459,7 @@ function mergeTheme(option, theme) {
70448
70459
  // PENDING
70449
70460
  // NOT use `colorLayer` in theme if option has `color`
70450
70461
  var notMergeColorLayer = option.color && !option.colorLayer;
70451
- each$3(theme, function (themeItem, name) {
70462
+ each$4(theme, function (themeItem, name) {
70452
70463
  if (name === 'colorLayer' && notMergeColorLayer) {
70453
70464
  return;
70454
70465
  } // If it is component model mainType, the model handles that merge later.
@@ -70472,7 +70483,7 @@ function queryByIdOrName(attr, idOrName, cmpts) {
70472
70483
  // treated as equal.
70473
70484
  if (isArray(idOrName)) {
70474
70485
  var keyMap_1 = createHashMap();
70475
- each$3(idOrName, function (idOrNameItem) {
70486
+ each$4(idOrName, function (idOrNameItem) {
70476
70487
  if (idOrNameItem != null) {
70477
70488
  var idName = convertOptionIdName(idOrNameItem, null);
70478
70489
  idName != null && keyMap_1.set(idOrNameItem, true);
@@ -70499,7 +70510,7 @@ function filterBySubType(components, condition) {
70499
70510
 
70500
70511
  function normalizeSetOptionInput(opts) {
70501
70512
  var replaceMergeMainTypeMap = createHashMap();
70502
- opts && each$3(normalizeToArray(opts.replaceMerge), function (mainType) {
70513
+ opts && each$4(normalizeToArray(opts.replaceMerge), function (mainType) {
70503
70514
  if (process.env.NODE_ENV !== 'production') {
70504
70515
  assert(ComponentModel$1.hasClass(mainType), '"' + mainType + '" is not valid component main type in "replaceMerge"');
70505
70516
  }
@@ -70523,7 +70534,7 @@ var ExtensionAPI =
70523
70534
  /** @class */
70524
70535
  function () {
70525
70536
  function ExtensionAPI(ecInstance) {
70526
- each$3(availableMethods, function (methodName) {
70537
+ each$4(availableMethods, function (methodName) {
70527
70538
  this[methodName] = bind$1(ecInstance[methodName], ecInstance);
70528
70539
  }, this);
70529
70540
  }
@@ -70544,7 +70555,7 @@ function () {
70544
70555
 
70545
70556
  CoordinateSystemManager.prototype.create = function (ecModel, api) {
70546
70557
  var coordinateSystems = [];
70547
- each$3(coordinateSystemCreators, function (creater, type) {
70558
+ each$4(coordinateSystemCreators, function (creater, type) {
70548
70559
  var list = creater.create(ecModel, api);
70549
70560
  coordinateSystems = coordinateSystems.concat(list || []);
70550
70561
  });
@@ -70552,7 +70563,7 @@ function () {
70552
70563
  };
70553
70564
 
70554
70565
  CoordinateSystemManager.prototype.update = function (ecModel, api) {
70555
- each$3(this._coordinateSystems, function (coordSys) {
70566
+ each$4(this._coordinateSystems, function (coordSys) {
70556
70567
  coordSys.update && coordSys.update(ecModel, api);
70557
70568
  });
70558
70569
  };
@@ -70608,10 +70619,10 @@ function () {
70608
70619
  OptionManager.prototype.setOption = function (rawOption, optionPreprocessorFuncs, opt) {
70609
70620
  if (rawOption) {
70610
70621
  // That set dat primitive is dangerous if user reuse the data when setOption again.
70611
- each$3(normalizeToArray(rawOption.series), function (series) {
70622
+ each$4(normalizeToArray(rawOption.series), function (series) {
70612
70623
  series && series.data && isTypedArray(series.data) && setAsPrimitive(series.data);
70613
70624
  });
70614
- each$3(normalizeToArray(rawOption.dataset), function (dataset) {
70625
+ each$4(normalizeToArray(rawOption.dataset), function (dataset) {
70615
70626
  dataset && dataset.source && isTypedArray(dataset.source) && setAsPrimitive(dataset.source);
70616
70627
  });
70617
70628
  } // Caution: some series modify option data, if do not clone,
@@ -70827,7 +70838,7 @@ rawOption, optionPreprocessorFuncs, isNew) {
70827
70838
 
70828
70839
  if (hasMedia) {
70829
70840
  if (isArray(mediaOnRoot)) {
70830
- each$3(mediaOnRoot, function (singleMedia) {
70841
+ each$4(mediaOnRoot, function (singleMedia) {
70831
70842
  if (process.env.NODE_ENV !== 'production') {
70832
70843
  // Real case of wrong config.
70833
70844
  if (singleMedia && !singleMedia.option && isObject$2(singleMedia.query) && isObject$2(singleMedia.query.option)) {
@@ -70853,15 +70864,15 @@ rawOption, optionPreprocessorFuncs, isNew) {
70853
70864
  }
70854
70865
 
70855
70866
  doPreprocess(baseOption);
70856
- each$3(timelineOptionsOnRoot, function (option) {
70867
+ each$4(timelineOptionsOnRoot, function (option) {
70857
70868
  return doPreprocess(option);
70858
70869
  });
70859
- each$3(mediaList, function (media) {
70870
+ each$4(mediaList, function (media) {
70860
70871
  return doPreprocess(media.option);
70861
70872
  });
70862
70873
 
70863
70874
  function doPreprocess(option) {
70864
- each$3(optionPreprocessorFuncs, function (preProcess) {
70875
+ each$4(optionPreprocessorFuncs, function (preProcess) {
70865
70876
  preProcess(option, isNew);
70866
70877
  });
70867
70878
  }
@@ -70888,7 +70899,7 @@ function applyMediaQuery(query, ecWidth, ecHeight) {
70888
70899
 
70889
70900
  };
70890
70901
  var applicatable = true;
70891
- each$3(query, function (value, attr) {
70902
+ each$4(query, function (value, attr) {
70892
70903
  var matched = attr.match(QUERY_REG);
70893
70904
 
70894
70905
  if (!matched || !matched[1] || !matched[2]) {
@@ -71018,7 +71029,7 @@ function indicesEquals(indices1, indices2) {
71018
71029
 
71019
71030
  var OptionManager$1 = OptionManager;
71020
71031
 
71021
- var each$1 = each$3;
71032
+ var each$2 = each$4;
71022
71033
  var isObject$1 = isObject$2;
71023
71034
  var POSSIBLE_STYLES = ['areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle', 'chordStyle', 'label', 'labelLine'];
71024
71035
 
@@ -71203,7 +71214,7 @@ function processSeries(seriesOpt) {
71203
71214
  }
71204
71215
  }
71205
71216
 
71206
- each$3(seriesOpt.categories, function (opt) {
71217
+ each$4(seriesOpt.categories, function (opt) {
71207
71218
  removeEC3NormalStatus(opt);
71208
71219
  });
71209
71220
  }
@@ -71248,7 +71259,7 @@ function processSeries(seriesOpt) {
71248
71259
  compatTextStyle(seriesOpt, 'detail');
71249
71260
  } else if (seriesOpt.type === 'treemap') {
71250
71261
  convertNormalEmphasis(seriesOpt.breadcrumb, 'itemStyle');
71251
- each$3(seriesOpt.levels, function (opt) {
71262
+ each$4(seriesOpt.levels, function (opt) {
71252
71263
  removeEC3NormalStatus(opt);
71253
71264
  });
71254
71265
  } else if (seriesOpt.type === 'tree') {
@@ -71266,32 +71277,32 @@ function toObj(o) {
71266
71277
  }
71267
71278
 
71268
71279
  function globalCompatStyle(option, isTheme) {
71269
- each$1(toArr(option.series), function (seriesOpt) {
71280
+ each$2(toArr(option.series), function (seriesOpt) {
71270
71281
  isObject$1(seriesOpt) && processSeries(seriesOpt);
71271
71282
  });
71272
71283
  var axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar'];
71273
71284
  isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis');
71274
- each$1(axes, function (axisName) {
71275
- each$1(toArr(option[axisName]), function (axisOpt) {
71285
+ each$2(axes, function (axisName) {
71286
+ each$2(toArr(option[axisName]), function (axisOpt) {
71276
71287
  if (axisOpt) {
71277
71288
  compatTextStyle(axisOpt, 'axisLabel');
71278
71289
  compatTextStyle(axisOpt.axisPointer, 'label');
71279
71290
  }
71280
71291
  });
71281
71292
  });
71282
- each$1(toArr(option.parallel), function (parallelOpt) {
71293
+ each$2(toArr(option.parallel), function (parallelOpt) {
71283
71294
  var parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault;
71284
71295
  compatTextStyle(parallelAxisDefault, 'axisLabel');
71285
71296
  compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label');
71286
71297
  });
71287
- each$1(toArr(option.calendar), function (calendarOpt) {
71298
+ each$2(toArr(option.calendar), function (calendarOpt) {
71288
71299
  convertNormalEmphasis(calendarOpt, 'itemStyle');
71289
71300
  compatTextStyle(calendarOpt, 'dayLabel');
71290
71301
  compatTextStyle(calendarOpt, 'monthLabel');
71291
71302
  compatTextStyle(calendarOpt, 'yearLabel');
71292
71303
  }); // radar.name.textStyle
71293
71304
 
71294
- each$1(toArr(option.radar), function (radarOpt) {
71305
+ each$2(toArr(option.radar), function (radarOpt) {
71295
71306
  compatTextStyle(radarOpt, 'name'); // Use axisName instead of name because component has name property
71296
71307
 
71297
71308
  if (radarOpt.name && radarOpt.axisName == null) {
@@ -71313,37 +71324,37 @@ function globalCompatStyle(option, isTheme) {
71313
71324
  }
71314
71325
 
71315
71326
  if (process.env.NODE_ENV !== 'production') {
71316
- each$1(radarOpt.indicator, function (indicatorOpt) {
71327
+ each$2(radarOpt.indicator, function (indicatorOpt) {
71317
71328
  if (indicatorOpt.text) {
71318
71329
  deprecateReplaceLog('text', 'name', 'radar.indicator');
71319
71330
  }
71320
71331
  });
71321
71332
  }
71322
71333
  });
71323
- each$1(toArr(option.geo), function (geoOpt) {
71334
+ each$2(toArr(option.geo), function (geoOpt) {
71324
71335
  if (isObject$1(geoOpt)) {
71325
71336
  compatEC3CommonStyles(geoOpt);
71326
- each$1(toArr(geoOpt.regions), function (regionObj) {
71337
+ each$2(toArr(geoOpt.regions), function (regionObj) {
71327
71338
  compatEC3CommonStyles(regionObj);
71328
71339
  });
71329
71340
  }
71330
71341
  });
71331
- each$1(toArr(option.timeline), function (timelineOpt) {
71342
+ each$2(toArr(option.timeline), function (timelineOpt) {
71332
71343
  compatEC3CommonStyles(timelineOpt);
71333
71344
  convertNormalEmphasis(timelineOpt, 'label');
71334
71345
  convertNormalEmphasis(timelineOpt, 'itemStyle');
71335
71346
  convertNormalEmphasis(timelineOpt, 'controlStyle', true);
71336
71347
  var data = timelineOpt.data;
71337
- isArray(data) && each$3(data, function (item) {
71348
+ isArray(data) && each$4(data, function (item) {
71338
71349
  if (isObject$2(item)) {
71339
71350
  convertNormalEmphasis(item, 'label');
71340
71351
  convertNormalEmphasis(item, 'itemStyle');
71341
71352
  }
71342
71353
  });
71343
71354
  });
71344
- each$1(toArr(option.toolbox), function (toolboxOpt) {
71355
+ each$2(toArr(option.toolbox), function (toolboxOpt) {
71345
71356
  convertNormalEmphasis(toolboxOpt, 'iconStyle');
71346
- each$1(toolboxOpt.feature, function (featureOpt) {
71357
+ each$2(toolboxOpt.feature, function (featureOpt) {
71347
71358
  convertNormalEmphasis(featureOpt, 'iconStyle');
71348
71359
  });
71349
71360
  });
@@ -71389,7 +71400,7 @@ function set(opt, path, val, overwrite) {
71389
71400
  }
71390
71401
 
71391
71402
  function compatLayoutProperties(option) {
71392
- option && each$3(LAYOUT_PROPERTIES, function (prop) {
71403
+ option && each$4(LAYOUT_PROPERTIES, function (prop) {
71393
71404
  if (prop[0] in option && !(prop[1] in option)) {
71394
71405
  option[prop[1]] = option[prop[0]];
71395
71406
  }
@@ -71478,7 +71489,7 @@ function globalBackwardCompat(option, isTheme) {
71478
71489
  globalCompatStyle(option, isTheme); // Make sure series array for model initialization.
71479
71490
 
71480
71491
  option.series = normalizeToArray(option.series);
71481
- each$3(option.series, function (seriesOpt) {
71492
+ each$4(option.series, function (seriesOpt) {
71482
71493
  if (!isObject$2(seriesOpt)) {
71483
71494
  return;
71484
71495
  }
@@ -71595,7 +71606,7 @@ function globalBackwardCompat(option, isTheme) {
71595
71606
  option.visualMap = option.dataRange;
71596
71607
  }
71597
71608
 
71598
- each$3(COMPATITABLE_COMPONENTS, function (componentName) {
71609
+ each$4(COMPATITABLE_COMPONENTS, function (componentName) {
71599
71610
  var options = option[componentName];
71600
71611
 
71601
71612
  if (options) {
@@ -71603,7 +71614,7 @@ function globalBackwardCompat(option, isTheme) {
71603
71614
  options = [options];
71604
71615
  }
71605
71616
 
71606
- each$3(options, function (option) {
71617
+ each$4(options, function (option) {
71607
71618
  compatLayoutProperties(option);
71608
71619
  });
71609
71620
  }
@@ -71647,7 +71658,7 @@ function dataStack$1(ecModel) {
71647
71658
  }
71648
71659
 
71649
71660
  function calculateStack(stackInfoList) {
71650
- each$3(stackInfoList, function (targetStackInfo, idxInStack) {
71661
+ each$4(stackInfoList, function (targetStackInfo, idxInStack) {
71651
71662
  var resultVal = [];
71652
71663
  var resultNaN = [NaN, NaN];
71653
71664
  var dims = [targetStackInfo.stackResultDimension, targetStackInfo.stackedOverDimension];
@@ -71885,7 +71896,7 @@ dimensionsDefine) {
71885
71896
  } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {
71886
71897
  if (!dimensionsDefine) {
71887
71898
  dimensionsDefine = [];
71888
- each$3(data, function (colArr, key) {
71899
+ each$4(data, function (colArr, key) {
71889
71900
  dimensionsDefine.push(key);
71890
71901
  });
71891
71902
  }
@@ -71914,7 +71925,7 @@ function objectRowsCollectDimensions(data) {
71914
71925
 
71915
71926
  if (obj) {
71916
71927
  var dimensions_1 = [];
71917
- each$3(obj, function (value, key) {
71928
+ each$4(obj, function (value, key) {
71918
71929
  dimensions_1.push(key);
71919
71930
  });
71920
71931
  return dimensions_1;
@@ -72176,7 +72187,7 @@ function () {
72176
72187
  pure: true,
72177
72188
  appendData: function (newData) {
72178
72189
  var data = this._data;
72179
- each$3(newData, function (newCol, key) {
72190
+ each$4(newData, function (newCol, key) {
72180
72191
  var oldCol = data[key] || (data[key] = []);
72181
72192
 
72182
72193
  for (var i = 0; i < (newCol || []).length; i++) {
@@ -73083,7 +73094,7 @@ function createExternalSource(internalSource, externalTransform) {
73083
73094
  var dimsDef = internalSource.dimensionsDefine;
73084
73095
 
73085
73096
  if (dimsDef) {
73086
- each$3(dimsDef, function (dimDef, idx) {
73097
+ each$4(dimsDef, function (dimDef, idx) {
73087
73098
  var name = dimDef.name;
73088
73099
  var dimDefExt = {
73089
73100
  index: idx,
@@ -74837,7 +74848,7 @@ function () {
74837
74848
  var sourceList;
74838
74849
  var upSourceList = [];
74839
74850
  var upstreamSignList = [];
74840
- each$3(upMgrList, function (upMgr) {
74851
+ each$4(upMgrList, function (upMgr) {
74841
74852
  upMgr.prepareSource();
74842
74853
  var upSource = upMgr.getSource(fromTransformResult || 0);
74843
74854
  var errMsg = '';
@@ -75074,7 +75085,7 @@ function getBlockGapLevel(frag) {
75074
75085
  var gapLevel_1 = 0;
75075
75086
  var subBlockLen = frag.blocks.length;
75076
75087
  var hasInnerGap_1 = subBlockLen > 1 || subBlockLen > 0 && !frag.noHeader;
75077
- each$3(frag.blocks, function (subBlock) {
75088
+ each$4(frag.blocks, function (subBlock) {
75078
75089
  var subGapLevel = getBlockGapLevel(subBlock); // If the some of the sub-blocks have some gaps (like 10px) inside, this block
75079
75090
  // should use a larger gap (like 20px) to distinguish those sub-blocks.
75080
75091
 
@@ -75118,7 +75129,7 @@ function buildSection(ctx, fragment, topMarginForOuterGap, toolTipTextStyle) {
75118
75129
  }
75119
75130
  }
75120
75131
 
75121
- each$3(subBlocks, function (subBlock, idx) {
75132
+ each$4(subBlocks, function (subBlock, idx) {
75122
75133
  var valueFormatter = fragment.valueFormatter;
75123
75134
  var subMarkupText = getBuilder(subBlock)( // Inherit valueFormatter
75124
75135
  valueFormatter ? extend(extend({}, ctx), {
@@ -75313,7 +75324,7 @@ function () {
75313
75324
  var finalStl = {};
75314
75325
 
75315
75326
  if (isArray(styles)) {
75316
- each$3(styles, function (stl) {
75327
+ each$4(styles, function (stl) {
75317
75328
  return extend(finalStl, stl);
75318
75329
  });
75319
75330
  } else {
@@ -75396,10 +75407,10 @@ function formatTooltipArrayValue(value, series, dataIndex, tooltipDims, colorStr
75396
75407
  var inlineValues = [];
75397
75408
  var inlineValueTypes = [];
75398
75409
  var blocks = [];
75399
- tooltipDims.length ? each$3(tooltipDims, function (dim) {
75410
+ tooltipDims.length ? each$4(tooltipDims, function (dim) {
75400
75411
  setEachItem(retrieveRawValue(data, dataIndex, dim), dim);
75401
75412
  }) // By default, all dims is used on tooltip.
75402
- : each$3(value, setEachItem);
75413
+ : each$4(value, setEachItem);
75403
75414
 
75404
75415
  function setEachItem(val, dim) {
75405
75416
  var dimInfo = data.getDimensionInfo(dim); // If `dimInfo.tooltip` is not set, show tooltip.
@@ -75962,7 +75973,7 @@ function getSeriesAutoName(seriesModel) {
75962
75973
  var data = seriesModel.getRawData();
75963
75974
  var dataDims = data.mapDimensionsAll('seriesName');
75964
75975
  var nameArr = [];
75965
- each$3(dataDims, function (dataDim) {
75976
+ each$4(dataDims, function (dataDim) {
75966
75977
  var dimInfo = data.getDimensionInfo(dataDim);
75967
75978
  dimInfo.displayName && nameArr.push(dimInfo.displayName);
75968
75979
  });
@@ -75988,8 +75999,8 @@ function dataTaskProgress(param, context) {
75988
75999
 
75989
76000
 
75990
76001
  function wrapData(data, seriesModel) {
75991
- each$3(concatArray(data.CHANGABLE_METHODS, data.DOWNSAMPLE_METHODS), function (methodName) {
75992
- data.wrapMethod(methodName, curry(onDataChange, seriesModel));
76002
+ each$4(concatArray(data.CHANGABLE_METHODS, data.DOWNSAMPLE_METHODS), function (methodName) {
76003
+ data.wrapMethod(methodName, curry$1(onDataChange, seriesModel));
75993
76004
  });
75994
76005
  }
75995
76006
 
@@ -76031,7 +76042,7 @@ var ComponentView =
76031
76042
  /** @class */
76032
76043
  function () {
76033
76044
  function ComponentView() {
76034
- this.group = new Group$1();
76045
+ this.group = new Group$3();
76035
76046
  this.uid = getUID('viewComponent');
76036
76047
  }
76037
76048
 
@@ -76106,7 +76117,7 @@ var ChartView =
76106
76117
  /** @class */
76107
76118
  function () {
76108
76119
  function ChartView() {
76109
- this.group = new Group$1();
76120
+ this.group = new Group$3();
76110
76121
  this.uid = getUID('viewChart');
76111
76122
  this.renderTask = createTask({
76112
76123
  plan: renderTaskPlan,
@@ -76226,7 +76237,7 @@ function toggleHighlight(data, payload, state) {
76226
76237
  var highlightDigit = payload && payload.highlightKey != null ? getHighlightDigit(payload.highlightKey) : null;
76227
76238
 
76228
76239
  if (dataIndex != null) {
76229
- each$3(normalizeToArray(dataIndex), function (dataIdx) {
76240
+ each$4(normalizeToArray(dataIndex), function (dataIdx) {
76230
76241
  elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit);
76231
76242
  });
76232
76243
  } else {
@@ -76685,7 +76696,7 @@ function defaultLoading(api, opts) {
76685
76696
  lineWidth: 5,
76686
76697
  zlevel: 0
76687
76698
  });
76688
- var group = new Group$1();
76699
+ var group = new Group$3();
76689
76700
  var mask = new Rect$1({
76690
76701
  style: {
76691
76702
  fill: opts.maskColor
@@ -76905,7 +76916,7 @@ function () {
76905
76916
  var stageTaskMap = this._stageTaskMap;
76906
76917
  var ecModel = this.api.getModel();
76907
76918
  var api = this.api;
76908
- each$3(this._allHandlers, function (handler) {
76919
+ each$4(this._allHandlers, function (handler) {
76909
76920
  var record = stageTaskMap.get(handler.uid) || stageTaskMap.set(handler.uid, {});
76910
76921
  var errMsg = '';
76911
76922
 
@@ -76946,7 +76957,7 @@ function () {
76946
76957
  opt = opt || {};
76947
76958
  var unfinished = false;
76948
76959
  var scheduler = this;
76949
- each$3(stageHandlers, function (stageHandler, idx) {
76960
+ each$4(stageHandlers, function (stageHandler, idx) {
76950
76961
  if (opt.visualType && opt.visualType !== stageHandler.visualType) {
76951
76962
  return;
76952
76963
  }
@@ -77127,7 +77138,7 @@ function () {
77127
77138
  // dirty info from upsteam.
77128
77139
  else {
77129
77140
  overallProgress = false;
77130
- each$3(ecModel.getSeries(), createStub);
77141
+ each$4(ecModel.getSeries(), createStub);
77131
77142
  }
77132
77143
 
77133
77144
  function createStub(seriesModel) {
@@ -77597,7 +77608,7 @@ function () {
77597
77608
  dataIndex: 1,
77598
77609
  dataType: 1
77599
77610
  };
77600
- each$3(query, function (val, key) {
77611
+ each$4(query, function (val, key) {
77601
77612
  var reserved = false;
77602
77613
 
77603
77614
  for (var i = 0; i < suffixes_1.length; i++) {
@@ -77863,7 +77874,7 @@ function createLegacyDataSelectAction(seriesType, ecRegisterAction) {
77863
77874
  return seriesIndices;
77864
77875
  }
77865
77876
 
77866
- each$3([[seriesType + 'ToggleSelect', 'toggleSelect'], [seriesType + 'Select', 'select'], [seriesType + 'UnSelect', 'unselect']], function (eventsMap) {
77877
+ each$4([[seriesType + 'ToggleSelect', 'toggleSelect'], [seriesType + 'Select', 'select'], [seriesType + 'UnSelect', 'unselect']], function (eventsMap) {
77867
77878
  ecRegisterAction(eventsMap[0], function (payload, ecModel, api) {
77868
77879
  payload = extend({}, payload);
77869
77880
 
@@ -78220,7 +78231,7 @@ var symbolShapeMakers = {
78220
78231
  }
78221
78232
  };
78222
78233
  var symbolBuildProxies = {};
78223
- each$3(symbolCtors, function (Ctor, name) {
78234
+ each$4(symbolCtors, function (Ctor, name) {
78224
78235
  symbolBuildProxies[name] = new Ctor();
78225
78236
  });
78226
78237
  var SymbolClz = Path$1.extend({
@@ -79926,7 +79937,7 @@ function (_super) {
79926
79937
  var zr = this._zr;
79927
79938
  var list = zr.storage.getDisplayList(); // Stop animations
79928
79939
 
79929
- each$3(list, function (el) {
79940
+ each$4(list, function (el) {
79930
79941
  el.stopAnimation(null, true);
79931
79942
  });
79932
79943
  return zr.painter.toDataURL();
@@ -79943,7 +79954,7 @@ function (_super) {
79943
79954
  var ecModel = this._model;
79944
79955
  var excludesComponentViews = [];
79945
79956
  var self = this;
79946
- each$3(excludeComponents, function (componentType) {
79957
+ each$4(excludeComponents, function (componentType) {
79947
79958
  ecModel.eachComponent({
79948
79959
  mainType: componentType
79949
79960
  }, function (component) {
@@ -79956,7 +79967,7 @@ function (_super) {
79956
79967
  });
79957
79968
  });
79958
79969
  var url = this._zr.painter.getType() === 'svg' ? this.getSvgDataURL() : this.renderToCanvas(opts).toDataURL('image/' + (opts && opts.type || 'png'));
79959
- each$3(excludesComponentViews, function (view) {
79970
+ each$4(excludesComponentViews, function (view) {
79960
79971
  view.group.ignore = false;
79961
79972
  });
79962
79973
  return url;
@@ -79981,7 +79992,7 @@ function (_super) {
79981
79992
  var bottom_1 = -MAX_NUMBER;
79982
79993
  var canvasList_1 = [];
79983
79994
  var dpr_1 = opts && opts.pixelRatio || this.getDevicePixelRatio();
79984
- each$3(instances, function (chart, id) {
79995
+ each$4(instances, function (chart, id) {
79985
79996
  if (chart.group === groupId) {
79986
79997
  var canvas = isSvg ? chart.getZr().painter.getSvgDom().innerHTML : chart.renderToCanvas(clone$3(opts));
79987
79998
  var boundingRect = chart.getDom().getBoundingClientRect();
@@ -80013,7 +80024,7 @@ function (_super) {
80013
80024
 
80014
80025
  if (isSvg) {
80015
80026
  var content_1 = '';
80016
- each$3(canvasList_1, function (item) {
80027
+ each$4(canvasList_1, function (item) {
80017
80028
  var x = item.left - left_1;
80018
80029
  var y = item.top - top_1;
80019
80030
  content_1 += '<g transform="translate(' + x + ',' + y + ')">' + item.dom + '</g>';
@@ -80042,7 +80053,7 @@ function (_super) {
80042
80053
  }));
80043
80054
  }
80044
80055
 
80045
- each$3(canvasList_1, function (item) {
80056
+ each$4(canvasList_1, function (item) {
80046
80057
  var img = new ZRImage$1({
80047
80058
  style: {
80048
80059
  x: item.left * dpr_1 - left_1,
@@ -80083,8 +80094,8 @@ function (_super) {
80083
80094
  var ecModel = this._model;
80084
80095
  var result;
80085
80096
  var findResult = parseFinder(ecModel, finder);
80086
- each$3(findResult, function (models, key) {
80087
- key.indexOf('Models') >= 0 && each$3(models, function (model) {
80097
+ each$4(findResult, function (models, key) {
80098
+ key.indexOf('Models') >= 0 && each$4(models, function (model) {
80088
80099
  var coordSys = model.coordinateSystem;
80089
80100
 
80090
80101
  if (coordSys && coordSys.containPoint) {
@@ -80162,7 +80173,7 @@ function (_super) {
80162
80173
  ECharts.prototype._initEvents = function () {
80163
80174
  var _this = this;
80164
80175
 
80165
- each$3(MOUSE_EVENT_NAMES, function (eveName) {
80176
+ each$4(MOUSE_EVENT_NAMES, function (eveName) {
80166
80177
  var handler = function (e) {
80167
80178
  var ecModel = _this.getModel();
80168
80179
 
@@ -80242,14 +80253,14 @@ function (_super) {
80242
80253
 
80243
80254
  _this._zr.on(eveName, handler, _this);
80244
80255
  });
80245
- each$3(eventActionMap, function (actionType, eventType) {
80256
+ each$4(eventActionMap, function (actionType, eventType) {
80246
80257
  _this._messageCenter.on(eventType, function (event) {
80247
80258
  this.trigger(eventType, event);
80248
80259
  }, _this);
80249
80260
  }); // Extra events
80250
80261
  // TODO register?
80251
80262
 
80252
- each$3(['selectchanged'], function (eventType) {
80263
+ each$4(['selectchanged'], function (eventType) {
80253
80264
  _this._messageCenter.on(eventType, function (event) {
80254
80265
  this.trigger(eventType, event);
80255
80266
  }, _this);
@@ -80288,10 +80299,10 @@ function (_super) {
80288
80299
  var chart = this;
80289
80300
  var api = chart._api;
80290
80301
  var ecModel = chart._model;
80291
- each$3(chart._componentsViews, function (component) {
80302
+ each$4(chart._componentsViews, function (component) {
80292
80303
  component.dispose(ecModel, api);
80293
80304
  });
80294
- each$3(chart._chartsViews, function (chart) {
80305
+ each$4(chart._chartsViews, function (chart) {
80295
80306
  chart.dispose(ecModel, api);
80296
80307
  }); // Dispose after all views disposed
80297
80308
 
@@ -80609,7 +80620,7 @@ function (_super) {
80609
80620
  // FIXME
80610
80621
  // Chart will not be update directly here, except set dirty.
80611
80622
  // But there is no such scenario now.
80612
- each$3([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView);
80623
+ each$4([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView);
80613
80624
  return;
80614
80625
  }
80615
80626
 
@@ -80628,7 +80639,7 @@ function (_super) {
80628
80639
 
80629
80640
  if (excludeSeriesId != null) {
80630
80641
  excludeSeriesIdMap = createHashMap();
80631
- each$3(normalizeToArray(excludeSeriesId), function (id) {
80642
+ each$4(normalizeToArray(excludeSeriesId), function (id) {
80632
80643
  var modelId = convertOptionIdName(id, null);
80633
80644
 
80634
80645
  if (modelId != null) {
@@ -80664,7 +80675,7 @@ function (_super) {
80664
80675
 
80665
80676
 
80666
80677
  if (dispatchers) {
80667
- each$3(dispatchers, function (dispatcher) {
80678
+ each$4(dispatchers, function (dispatcher) {
80668
80679
  payload.type === HIGHLIGHT_ACTION_TYPE ? enterEmphasis(dispatcher) : leaveEmphasis(dispatcher);
80669
80680
  });
80670
80681
  }
@@ -80926,7 +80937,7 @@ function (_super) {
80926
80937
  allLeaveBlur(this._api);
80927
80938
  }
80928
80939
 
80929
- each$3(payloads, function (batchItem) {
80940
+ each$4(payloads, function (batchItem) {
80930
80941
  // Action can specify the event by return it.
80931
80942
  eventObj = actionWrap.action(batchItem, _this._model, _this._api); // Emit event outside
80932
80943
 
@@ -81117,7 +81128,7 @@ function (_super) {
81117
81128
 
81118
81129
  return a.zlevel - b.zlevel;
81119
81130
  });
81120
- each$3(zLevels, function (item) {
81131
+ each$4(zLevels, function (item) {
81121
81132
  var componentModel = ecModel.getComponent(item.type, item.idx);
81122
81133
  var zlevel = item.zlevel;
81123
81134
  var key = item.key;
@@ -81149,12 +81160,12 @@ function (_super) {
81149
81160
  render = function (ecIns, ecModel, api, payload, updateParams) {
81150
81161
  allocateZlevels(ecModel);
81151
81162
  renderComponents(ecIns, ecModel, api, payload, updateParams);
81152
- each$3(ecIns._chartsViews, function (chart) {
81163
+ each$4(ecIns._chartsViews, function (chart) {
81153
81164
  chart.__alive = false;
81154
81165
  });
81155
81166
  renderSeries(ecIns, ecModel, api, payload, updateParams); // Remove groups of unrendered charts
81156
81167
 
81157
- each$3(ecIns._chartsViews, function (chart) {
81168
+ each$4(ecIns._chartsViews, function (chart) {
81158
81169
  if (!chart.__alive) {
81159
81170
  chart.remove(ecModel, api);
81160
81171
  }
@@ -81162,7 +81173,7 @@ function (_super) {
81162
81173
  };
81163
81174
 
81164
81175
  renderComponents = function (ecIns, ecModel, api, payload, updateParams, dirtyList) {
81165
- each$3(dirtyList || ecIns._componentsViews, function (componentView) {
81176
+ each$4(dirtyList || ecIns._componentsViews, function (componentView) {
81166
81177
  var componentModel = componentView.__model;
81167
81178
  clearStates(componentModel, componentView);
81168
81179
  componentView.render(componentModel, ecModel, api, payload);
@@ -81537,7 +81548,7 @@ function (_super) {
81537
81548
  }
81538
81549
  }
81539
81550
 
81540
- each$3(eventActionMap, function (actionType, eventType) {
81551
+ each$4(eventActionMap, function (actionType, eventType) {
81541
81552
  chart._messageCenter.on(eventType, function (event) {
81542
81553
  if (connectedGroups[chart.group] && chart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_PENDING) {
81543
81554
  if (event && event.escapeConnect) {
@@ -81546,13 +81557,13 @@ function (_super) {
81546
81557
 
81547
81558
  var action_1 = chart.makeActionFromEvent(event);
81548
81559
  var otherCharts_1 = [];
81549
- each$3(instances, function (otherChart) {
81560
+ each$4(instances, function (otherChart) {
81550
81561
  if (otherChart !== chart && otherChart.group === chart.group) {
81551
81562
  otherCharts_1.push(otherChart);
81552
81563
  }
81553
81564
  });
81554
81565
  updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_PENDING);
81555
- each$3(otherCharts_1, function (otherChart) {
81566
+ each$4(otherCharts_1, function (otherChart) {
81556
81567
  if (otherChart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_UPDATING) {
81557
81568
  otherChart.dispatchAction(action_1);
81558
81569
  }
@@ -81688,13 +81699,13 @@ function connect(groupId) {
81688
81699
  var charts = groupId;
81689
81700
  groupId = null; // If any chart has group
81690
81701
 
81691
- each$3(charts, function (chart) {
81702
+ each$4(charts, function (chart) {
81692
81703
  if (chart.group != null) {
81693
81704
  groupId = chart.group;
81694
81705
  }
81695
81706
  });
81696
81707
  groupId = groupId || 'g_' + groupIdBase++;
81697
- each$3(charts, function (chart) {
81708
+ each$4(charts, function (chart) {
81698
81709
  chart.group = groupId;
81699
81710
  });
81700
81711
  }
@@ -81842,7 +81853,7 @@ function normalizeRegister(targetList, priority, fn, defaultPriority, visualType
81842
81853
  } // Check duplicate
81843
81854
 
81844
81855
 
81845
- each$3(targetList, function (wrap) {
81856
+ each$4(targetList, function (wrap) {
81846
81857
  assert(wrap.__raw !== fn);
81847
81858
  });
81848
81859
  } // Already registered
@@ -82293,7 +82304,7 @@ function summarizeDimensions(data, schema) {
82293
82304
  var defaultedLabel = [];
82294
82305
  var defaultedTooltip = [];
82295
82306
  var userOutputEncode = {};
82296
- each$3(data.dimensions, function (dimName) {
82307
+ each$4(data.dimensions, function (dimName) {
82297
82308
  var dimItem = data.getDimensionInfo(dimName);
82298
82309
  var coordDim = dimItem.coordDim;
82299
82310
 
@@ -82790,7 +82801,7 @@ function () {
82790
82801
 
82791
82802
  if (this._dimOmitted) {
82792
82803
  var dimIdxToName_1 = this._dimIdxToName = createHashMap();
82793
- each$3(dimensionNames, function (dimName) {
82804
+ each$4(dimensionNames, function (dimName) {
82794
82805
  dimIdxToName_1.set(dimensionInfos[dimName].storeDimIndex, dimName);
82795
82806
  });
82796
82807
  }
@@ -83383,7 +83394,7 @@ function () {
83383
83394
 
83384
83395
  var innerRange = {};
83385
83396
  var dims = keys(range);
83386
- each$3(dims, function (dim) {
83397
+ each$4(dims, function (dim) {
83387
83398
  var dimIdx = _this._getStoreDimIndex(dim);
83388
83399
 
83389
83400
  innerRange[dimIdx] = range[dim];
@@ -83427,7 +83438,7 @@ function () {
83427
83438
  var fCtx = ctx || ctxCompat || this;
83428
83439
 
83429
83440
  if (process.env.NODE_ENV !== 'production') {
83430
- each$3(normalizeDimensions(dims), function (dim) {
83441
+ each$4(normalizeDimensions(dims), function (dim) {
83431
83442
  var dimInfo = _this.getDimensionInfo(dim);
83432
83443
 
83433
83444
  if (!dimInfo.isCalculationCoord) {
@@ -83641,7 +83652,7 @@ function () {
83641
83652
  };
83642
83653
 
83643
83654
  SeriesData.prototype.eachItemGraphicEl = function (cb, context) {
83644
- each$3(this._graphicEls, function (el, idx) {
83655
+ each$4(this._graphicEls, function (el, idx) {
83645
83656
  if (el) {
83646
83657
  cb && cb.call(context, el, idx);
83647
83658
  }
@@ -83690,7 +83701,7 @@ function () {
83690
83701
  SeriesData.internalField = function () {
83691
83702
  prepareInvertedIndex = function (data) {
83692
83703
  var invertedIndicesMap = data._invertedIndicesMap;
83693
- each$3(invertedIndicesMap, function (invertedIndices, dim) {
83704
+ each$4(invertedIndicesMap, function (invertedIndices, dim) {
83694
83705
  var dimInfo = data._dimInfos[dim]; // Currently, only dimensions that has ordinalMeta can create inverted indices.
83695
83706
 
83696
83707
  var ordinalMeta = dimInfo.ordinalMeta;
@@ -83754,13 +83765,13 @@ function () {
83754
83765
  };
83755
83766
 
83756
83767
  transferProperties = function (target, source) {
83757
- each$3(TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), function (propName) {
83768
+ each$4(TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), function (propName) {
83758
83769
  if (source.hasOwnProperty(propName)) {
83759
83770
  target[propName] = source[propName];
83760
83771
  }
83761
83772
  });
83762
83773
  target.__wrappedMethods = source.__wrappedMethods;
83763
- each$3(CLONE_PROPERTIES, function (propName) {
83774
+ each$4(CLONE_PROPERTIES, function (propName) {
83764
83775
  target[propName] = clone$3(source[propName]);
83765
83776
  });
83766
83777
  target._calculationInfo = extend({}, source._calculationInfo);
@@ -83899,7 +83910,7 @@ source, opt) {
83899
83910
  }
83900
83911
 
83901
83912
  var validDataDims = encodeDefMap.set(coordDim, []);
83902
- each$3(dataDims, function (resultDimIdxOrName, idx) {
83913
+ each$4(dataDims, function (resultDimIdxOrName, idx) {
83903
83914
  // The input resultDimIdx can be dim name or index.
83904
83915
  var resultDimIdx = isString(resultDimIdxOrName) ? dataDimNameMap.get(resultDimIdxOrName) : resultDimIdxOrName;
83905
83916
 
@@ -83911,7 +83922,7 @@ source, opt) {
83911
83922
  }); // Apply templetes and default order from `sysDims`.
83912
83923
 
83913
83924
  var availDimIdx = 0;
83914
- each$3(sysDims, function (sysDimItemRaw) {
83925
+ each$4(sysDims, function (sysDimItemRaw) {
83915
83926
  var coordDim;
83916
83927
  var sysDimItemDimsDef;
83917
83928
  var sysDimItemOtherDims;
@@ -83952,7 +83963,7 @@ source, opt) {
83952
83963
  } // Apply templates.
83953
83964
 
83954
83965
 
83955
- each$3(dataDims, function (resultDimIdx, coordDimIndex) {
83966
+ each$4(dataDims, function (resultDimIdx, coordDimIndex) {
83956
83967
  var resultItem = getResultItem(resultDimIdx); // Coordinate system has a higher priority on dim type than source.
83957
83968
 
83958
83969
  if (isUsingSourceDimensionsDef && sysDimItem.type != null) {
@@ -84036,7 +84047,7 @@ source, opt) {
84036
84047
  }
84037
84048
  }
84038
84049
  } else {
84039
- each$3(resultList, function (resultItem) {
84050
+ each$4(resultList, function (resultItem) {
84040
84051
  // PENDING: guessOrdinal or let user specify type: 'ordinal' manually?
84041
84052
  ifNoNameFillWithCoordName(resultItem);
84042
84053
  }); // Sort dimensions: there are some rule that use the last dim as label,
@@ -84088,7 +84099,7 @@ function getDimCount(source, sysDims, dimsDef, optDimCount) {
84088
84099
  // Note that the result dimCount should not small than columns count
84089
84100
  // of data, otherwise `dataDimNameMap` checking will be incorrect.
84090
84101
  var dimCount = Math.max(source.dimensionsDetectedCount || 1, sysDims.length, dimsDef.length, optDimCount || 0);
84091
- each$3(sysDims, function (sysDimItem) {
84102
+ each$4(sysDims, function (sysDimItem) {
84092
84103
  var sysDimItemDimsDef;
84093
84104
 
84094
84105
  if (isObject$2(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) {
@@ -84241,7 +84252,7 @@ var fetchers = {
84241
84252
  var ecModel = seriesModel.ecModel;
84242
84253
  var parallelModel = ecModel.getComponent('parallel', seriesModel.get('parallelIndex'));
84243
84254
  var coordSysDims = result.coordSysDims = parallelModel.dimensions.slice();
84244
- each$3(parallelModel.parallelAxisIndex, function (axisIndex, index) {
84255
+ each$4(parallelModel.parallelAxisIndex, function (axisIndex, index) {
84245
84256
  var axisModel = ecModel.getComponent('parallelAxis', axisIndex);
84246
84257
  var axisDim = coordSysDims[index];
84247
84258
  axisMap.set(axisDim, axisModel);
@@ -84304,7 +84315,7 @@ function enableDataStack(seriesModel, dimensionsInput, opt) {
84304
84315
  var stackedDimInfo;
84305
84316
  var stackResultDimension;
84306
84317
  var stackedOverDimension;
84307
- each$3(dimensionDefineList, function (dimensionInfo, index) {
84318
+ each$4(dimensionDefineList, function (dimensionInfo, index) {
84308
84319
  if (isString(dimensionInfo)) {
84309
84320
  dimensionDefineList[index] = dimensionInfo = {
84310
84321
  name: dimensionInfo
@@ -84347,7 +84358,7 @@ function enableDataStack(seriesModel, dimensionsInput, opt) {
84347
84358
  var stackedDimCoordDim_1 = stackedDimInfo.coordDim;
84348
84359
  var stackedDimType = stackedDimInfo.type;
84349
84360
  var stackedDimCoordIndex_1 = 0;
84350
- each$3(dimensionDefineList, function (dimensionInfo) {
84361
+ each$4(dimensionDefineList, function (dimensionInfo) {
84351
84362
  if (dimensionInfo.coordDim === stackedDimCoordDim_1) {
84352
84363
  stackedDimCoordIndex_1++;
84353
84364
  }
@@ -84441,7 +84452,7 @@ function getCoordSysDimDefs(seriesModel, coordSysInfo) {
84441
84452
  function injectOrdinalMeta(dimInfoList, createInvertedIndices, coordSysInfo) {
84442
84453
  var firstCategoryDimIndex;
84443
84454
  var hasNameEncode;
84444
- coordSysInfo && each$3(dimInfoList, function (dimInfo, dimIndex) {
84455
+ coordSysInfo && each$4(dimInfoList, function (dimInfo, dimIndex) {
84445
84456
  var coordDim = dimInfo.coordDim;
84446
84457
  var categoryAxisModel = coordSysInfo.categoryAxisMap.get(coordDim);
84447
84458
 
@@ -84492,7 +84503,7 @@ function createSeriesData(sourceRaw, seriesModel, opt) {
84492
84503
  var coordSysInfo = getCoordSysInfoBySeries(seriesModel);
84493
84504
  var coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo);
84494
84505
  var useEncodeDefaulter = opt.useEncodeDefaulter;
84495
- var encodeDefaulter = isFunction(useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter ? curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) : null;
84506
+ var encodeDefaulter = isFunction(useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter ? curry$1(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) : null;
84496
84507
  var createDimensionOptions = {
84497
84508
  coordDimensions: coordSysDimDefs,
84498
84509
  generateCoord: opt.generateCoord,
@@ -85330,7 +85341,7 @@ function getValueAxesMinGaps(barSeries) {
85330
85341
  * series.
85331
85342
  */
85332
85343
  var axisValues = {};
85333
- each$3(barSeries, function (seriesModel) {
85344
+ each$4(barSeries, function (seriesModel) {
85334
85345
  var cartesian = seriesModel.coordinateSystem;
85335
85346
  var baseAxis = cartesian.getBaseAxis();
85336
85347
 
@@ -85390,7 +85401,7 @@ function getValueAxesMinGaps(barSeries) {
85390
85401
  function makeColumnLayout(barSeries) {
85391
85402
  var axisMinGaps = getValueAxesMinGaps(barSeries);
85392
85403
  var seriesInfoList = [];
85393
- each$3(barSeries, function (seriesModel) {
85404
+ each$4(barSeries, function (seriesModel) {
85394
85405
  var cartesian = seriesModel.coordinateSystem;
85395
85406
  var baseAxis = cartesian.getBaseAxis();
85396
85407
  var axisExtent = baseAxis.getExtent();
@@ -85434,7 +85445,7 @@ function makeColumnLayout(barSeries) {
85434
85445
  function doCalBarWidthAndOffset(seriesInfoList) {
85435
85446
  // Columns info on each category axis. Key is cartesian name
85436
85447
  var columnsMap = {};
85437
- each$3(seriesInfoList, function (seriesInfo, idx) {
85448
+ each$4(seriesInfoList, function (seriesInfo, idx) {
85438
85449
  var axisKey = seriesInfo.axisKey;
85439
85450
  var bandWidth = seriesInfo.bandWidth;
85440
85451
  var columnsOnAxis = columnsMap[axisKey] || {
@@ -85480,7 +85491,7 @@ function doCalBarWidthAndOffset(seriesInfoList) {
85480
85491
  barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap);
85481
85492
  });
85482
85493
  var result = {};
85483
- each$3(columnsMap, function (columnsOnAxis, coordSysName) {
85494
+ each$4(columnsMap, function (columnsOnAxis, coordSysName) {
85484
85495
  result[coordSysName] = {};
85485
85496
  var stacks = columnsOnAxis.stacks;
85486
85497
  var bandWidth = columnsOnAxis.bandWidth;
@@ -85500,7 +85511,7 @@ function doCalBarWidthAndOffset(seriesInfoList) {
85500
85511
  var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
85501
85512
  autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth
85502
85513
 
85503
- each$3(stacks, function (column) {
85514
+ each$4(stacks, function (column) {
85504
85515
  var maxWidth = column.maxWidth;
85505
85516
  var minWidth = column.minWidth;
85506
85517
 
@@ -85550,7 +85561,7 @@ function doCalBarWidthAndOffset(seriesInfoList) {
85550
85561
  autoWidth = Math.max(autoWidth, 0);
85551
85562
  var widthSum = 0;
85552
85563
  var lastColumn;
85553
- each$3(stacks, function (column, idx) {
85564
+ each$4(stacks, function (column, idx) {
85554
85565
  if (!column.width) {
85555
85566
  column.width = autoWidth;
85556
85567
  }
@@ -85564,7 +85575,7 @@ function doCalBarWidthAndOffset(seriesInfoList) {
85564
85575
  }
85565
85576
 
85566
85577
  var offset = -widthSum / 2;
85567
- each$3(stacks, function (column, stackId) {
85578
+ each$4(stacks, function (column, stackId) {
85568
85579
  result[coordSysName][stackId] = result[coordSysName][stackId] || {
85569
85580
  bandWidth: bandWidth,
85570
85581
  offset: offset,
@@ -85590,7 +85601,7 @@ function retrieveColumnLayout(barWidthAndOffset, axis, seriesModel) {
85590
85601
  function layout$1(seriesType, ecModel) {
85591
85602
  var seriesModels = prepareLayoutBarSeries(seriesType, ecModel);
85592
85603
  var barWidthAndOffset = makeColumnLayout(seriesModels);
85593
- each$3(seriesModels, function (seriesModel) {
85604
+ each$4(seriesModels, function (seriesModel) {
85594
85605
  var data = seriesModel.getData();
85595
85606
  var cartesian = seriesModel.coordinateSystem;
85596
85607
  var baseAxis = cartesian.getBaseAxis();
@@ -86690,7 +86701,7 @@ function getScaleExtent(scale, model) {
86690
86701
  ) {
86691
86702
  var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);
86692
86703
  var isBaseAxisAndHasBarSeries_1 = false;
86693
- each$3(barSeriesModels, function (seriesModel) {
86704
+ each$4(barSeriesModels, function (seriesModel) {
86694
86705
  isBaseAxisAndHasBarSeries_1 = isBaseAxisAndHasBarSeries_1 || seriesModel.getBaseAxis() === model.axis;
86695
86706
  });
86696
86707
 
@@ -86730,11 +86741,11 @@ barWidthAndOffset) {
86730
86741
  }
86731
86742
 
86732
86743
  var minOverflow = Infinity;
86733
- each$3(barsOnCurrentAxis, function (item) {
86744
+ each$4(barsOnCurrentAxis, function (item) {
86734
86745
  minOverflow = Math.min(item.offset, minOverflow);
86735
86746
  });
86736
86747
  var maxOverflow = -Infinity;
86737
- each$3(barsOnCurrentAxis, function (item) {
86748
+ each$4(barsOnCurrentAxis, function (item) {
86738
86749
  maxOverflow = Math.max(item.offset + item.width, maxOverflow);
86739
86750
  });
86740
86751
  minOverflow = Math.abs(minOverflow);
@@ -86962,7 +86973,7 @@ function getDataDimensionsOnAxis(data, axisDim) {
86962
86973
  // PENDING: is it reasonable? Do we need to remove the original dim from "coord dim" since
86963
86974
  // there has been stacked result dim?
86964
86975
 
86965
- each$3(data.mapDimensionsAll(axisDim), function (dataDim) {
86976
+ each$4(data.mapDimensionsAll(axisDim), function (dataDim) {
86966
86977
  // For example, the extent of the original dimension
86967
86978
  // is [0.1, 0.5], the extent of the `stackResultDimension`
86968
86979
  // is [7, 9], the final extent should NOT include [0.1, 0.5],
@@ -87153,7 +87164,7 @@ var extensionRegisters = {
87153
87164
  function use(ext) {
87154
87165
  if (isArray(ext)) {
87155
87166
  // use([ChartLine, ChartBar]);
87156
- each$3(ext, function (singleExt) {
87167
+ each$4(ext, function (singleExt) {
87157
87168
  use(singleExt);
87158
87169
  });
87159
87170
  return;
@@ -87348,12 +87359,12 @@ function (_super) {
87348
87359
  var min = [Infinity, Infinity];
87349
87360
  var max = [-Infinity, -Infinity];
87350
87361
  var geometries = this.geometries;
87351
- each$3(geometries, function (geo) {
87362
+ each$4(geometries, function (geo) {
87352
87363
  if (geo.type === 'polygon') {
87353
87364
  // Doesn't consider hole
87354
87365
  updateBBoxFromPoints(geo.exterior, min, max, projection);
87355
87366
  } else {
87356
- each$3(geo.points, function (points) {
87367
+ each$4(geo.points, function (points) {
87357
87368
  updateBBoxFromPoints(points, min, max, projection);
87358
87369
  });
87359
87370
  }
@@ -87432,11 +87443,11 @@ function (_super) {
87432
87443
 
87433
87444
  if (geo.type === 'polygon') {
87434
87445
  transformPoints(geo.exterior, transform);
87435
- each$3(geo.interiors, function (interior) {
87446
+ each$4(geo.interiors, function (interior) {
87436
87447
  transformPoints(interior, transform);
87437
87448
  });
87438
87449
  } else {
87439
- each$3(geo.points, function (points) {
87450
+ each$4(geo.points, function (points) {
87440
87451
  transformPoints(points, transform);
87441
87452
  });
87442
87453
  }
@@ -87505,7 +87516,7 @@ function decode(json) {
87505
87516
  }
87506
87517
 
87507
87518
  var features = jsonCompressed.features;
87508
- each$3(features, function (feature) {
87519
+ each$4(features, function (feature) {
87509
87520
  var geometry = feature.geometry;
87510
87521
  var encodeOffsets = geometry.encodeOffsets;
87511
87522
  var coordinates = geometry.coordinates; // Geometry may be appeded manually in the script after json loaded.
@@ -87529,7 +87540,7 @@ function decode(json) {
87529
87540
  break;
87530
87541
 
87531
87542
  case 'MultiPolygon':
87532
- each$3(coordinates, function (rings, idx) {
87543
+ each$4(coordinates, function (rings, idx) {
87533
87544
  return decodeRings(rings, encodeOffsets[idx], encodeScale);
87534
87545
  });
87535
87546
  }
@@ -87587,7 +87598,7 @@ function parseGeoJSON(geoJson, nameProperty) {
87587
87598
  break;
87588
87599
 
87589
87600
  case 'MultiPolygon':
87590
- each$3(geo.coordinates, function (item) {
87601
+ each$4(geo.coordinates, function (item) {
87591
87602
  if (item[0]) {
87592
87603
  geometries.push(new GeoJSONPolygonGeometry(item[0], item.slice(1)));
87593
87604
  }
@@ -87652,7 +87663,7 @@ var graphic = /*#__PURE__*/Object.freeze({
87652
87663
  clipRectByRect: clipRectByRect,
87653
87664
  registerShape: registerShape,
87654
87665
  getShapeClass: getShapeClass,
87655
- Group: Group$1,
87666
+ Group: Group$3,
87656
87667
  Image: ZRImage$1,
87657
87668
  Text: ZRText$1,
87658
87669
  Circle: Circle$1,
@@ -87689,13 +87700,13 @@ var format = /*#__PURE__*/Object.freeze({
87689
87700
  var util = /*#__PURE__*/Object.freeze({
87690
87701
  __proto__: null,
87691
87702
  map: map$1,
87692
- each: each$3,
87703
+ each: each$4,
87693
87704
  indexOf: indexOf,
87694
87705
  inherits: inherits,
87695
87706
  reduce: reduce,
87696
87707
  filter: filter,
87697
87708
  bind: bind$1,
87698
- curry: curry,
87709
+ curry: curry$1,
87699
87710
  isArray: isArray,
87700
87711
  isString: isString,
87701
87712
  isObject: isObject$2,
@@ -87999,7 +88010,7 @@ function makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick
87999
88010
  var ordinalScale = axis.scale;
88000
88011
  var labelFormatter = makeLabelFormatter(axis);
88001
88012
  var result = [];
88002
- each$3(ordinalScale.getTicks(), function (tick) {
88013
+ each$4(ordinalScale.getTicks(), function (tick) {
88003
88014
  var rawLabel = ordinalScale.getLabel(tick);
88004
88015
  var tickValue = tick.value;
88005
88016
 
@@ -88252,7 +88263,7 @@ function fixOnBandTicksCoords(axis, ticksCoords, alignWithLabel, clamp) {
88252
88263
  } else {
88253
88264
  var crossLen = ticksCoords[ticksLen - 1].tickValue - ticksCoords[0].tickValue;
88254
88265
  var shift_1 = (ticksCoords[ticksLen - 1].coord - ticksCoords[0].coord) / crossLen;
88255
- each$3(ticksCoords, function (ticksItem) {
88266
+ each$4(ticksCoords, function (ticksItem) {
88256
88267
  ticksItem.coord -= shift_1 / 2;
88257
88268
  });
88258
88269
  var dataExtent = axis.scale.getExtent();
@@ -89957,7 +89968,7 @@ function (_super) {
89957
89968
  var el = oldData.getItemGraphicEl(dataIndex);
89958
89969
  el && removeElementWithFadeOut(el, seriesModel, dataIndex);
89959
89970
  }).execute();
89960
- var bgGroup = this._backgroundGroup || (this._backgroundGroup = new Group$1());
89971
+ var bgGroup = this._backgroundGroup || (this._backgroundGroup = new Group$3());
89961
89972
  bgGroup.removeAll();
89962
89973
 
89963
89974
  for (var i = 0; i < bgEls.length; ++i) {
@@ -90454,7 +90465,7 @@ function updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHori
90454
90465
  if (isZeroOnPolar(layout)) {
90455
90466
  el.style.fill = 'none';
90456
90467
  el.style.stroke = 'none';
90457
- each$3(el.states, function (state) {
90468
+ each$4(el.states, function (state) {
90458
90469
  if (state.style) {
90459
90470
  state.style.fill = state.style.stroke = 'none';
90460
90471
  }
@@ -90645,10 +90656,10 @@ function createBackgroundEl(coord, isHorizontalOrRadial, layout) {
90645
90656
 
90646
90657
  var BarView$1 = BarView;
90647
90658
 
90648
- function install$8(registers) {
90659
+ function install$b(registers) {
90649
90660
  registers.registerChartView(BarView$1);
90650
90661
  registers.registerSeriesModel(BarSeries);
90651
- registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, curry(layout$1, 'bar')); // Do layout after other overall layout, which can preapre some informations.
90662
+ registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, curry$1(layout$1, 'bar')); // Do layout after other overall layout, which can preapre some informations.
90652
90663
 
90653
90664
  registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, createProgressiveLayout('bar')); // Down sample after filter
90654
90665
 
@@ -91216,8 +91227,8 @@ function pieLabelLayout(seriesModel) {
91216
91227
  labelLineLen2 = parsePercent(labelLineLen2, viewWidth);
91217
91228
 
91218
91229
  if (Math.abs(sectorShape.endAngle - sectorShape.startAngle) < minShowLabelRadian) {
91219
- each$3(label.states, setNotShow);
91220
- each$3(labelLine.states, setNotShow);
91230
+ each$4(label.states, setNotShow);
91231
+ each$4(labelLine.states, setNotShow);
91221
91232
  label.ignore = labelLine.ignore = true;
91222
91233
  return;
91223
91234
  }
@@ -91362,7 +91373,7 @@ function pieLabelLayout(seriesModel) {
91362
91373
  });
91363
91374
 
91364
91375
  if (notShowLabel) {
91365
- each$3(label.states, setNotShow);
91376
+ each$4(label.states, setNotShow);
91366
91377
  label.ignore = true;
91367
91378
  }
91368
91379
 
@@ -91378,7 +91389,7 @@ function pieLabelLayout(seriesModel) {
91378
91389
  var linePoints = layout.linePoints;
91379
91390
 
91380
91391
  if (notShowLabel || !linePoints) {
91381
- each$3(labelLine.states, setNotShow);
91392
+ each$4(labelLine.states, setNotShow);
91382
91393
  labelLine.ignore = true;
91383
91394
  } else {
91384
91395
  limitTurnAngle(linePoints, layout.minTurnAngle);
@@ -91833,7 +91844,7 @@ function (_super) {
91833
91844
  PieSeriesModel.prototype.getInitialData = function () {
91834
91845
  var data = createSeriesDataSimply(this, {
91835
91846
  coordDimensions: ['value'],
91836
- encodeDefaulter: curry(makeSeriesEncodeForNameBased, this)
91847
+ encodeDefaulter: curry$1(makeSeriesEncodeForNameBased, this)
91837
91848
  });
91838
91849
  var valueList = [];
91839
91850
  data.each(data.mapDimension('value'), function (value) {
@@ -91988,11 +91999,11 @@ function negativeDataFilter(seriesType) {
91988
91999
  };
91989
92000
  }
91990
92001
 
91991
- function install$7(registers) {
92002
+ function install$a(registers) {
91992
92003
  registers.registerChartView(PieView$1);
91993
92004
  registers.registerSeriesModel(PieSeriesModel$1);
91994
92005
  createLegacyDataSelectAction('pie', registers.registerAction);
91995
- registers.registerLayout(curry(pieLayout, 'pie'));
92006
+ registers.registerLayout(curry$1(pieLayout, 'pie'));
91996
92007
  registers.registerProcessor(dataFilter('pie'));
91997
92008
  registers.registerProcessor(negativeDataFilter('pie'));
91998
92009
  }
@@ -92261,7 +92272,7 @@ var AXIS_TYPES = {
92261
92272
  */
92262
92273
 
92263
92274
  function axisModelCreator(registers, axisName, BaseAxisModelClass, extraDefaultOption) {
92264
- each$3(AXIS_TYPES, function (v, axisType) {
92275
+ each$4(AXIS_TYPES, function (v, axisType) {
92265
92276
  var defaultOption = merge(merge({}, axisDefault[axisType], true), extraDefaultOption, true);
92266
92277
 
92267
92278
  var AxisModel =
@@ -92649,7 +92660,7 @@ function findAxisModels(seriesModel) {
92649
92660
  xAxisModel: null,
92650
92661
  yAxisModel: null
92651
92662
  };
92652
- each$3(axisModelMap, function (v, key) {
92663
+ each$4(axisModelMap, function (v, key) {
92653
92664
  var axisType = key.replace(/Model$/, '');
92654
92665
  var axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];
92655
92666
 
@@ -92831,7 +92842,7 @@ function () {
92831
92842
  niceScaleExtent(alignTo.scale, alignTo.model);
92832
92843
  }
92833
92844
 
92834
- each$3(axisNeedsAlign, function (axis) {
92845
+ each$4(axisNeedsAlign, function (axis) {
92835
92846
  alignScaleTicks(axis.scale, axis.model, alignTo.scale);
92836
92847
  });
92837
92848
  }
@@ -92841,10 +92852,10 @@ function () {
92841
92852
  updateAxisTicks(axesMap.y); // Key: axisDim_axisIndex, value: boolean, whether onZero target.
92842
92853
 
92843
92854
  var onZeroRecords = {};
92844
- each$3(axesMap.x, function (xAxis) {
92855
+ each$4(axesMap.x, function (xAxis) {
92845
92856
  fixAxisOnZero(axesMap, 'y', xAxis, onZeroRecords);
92846
92857
  });
92847
- each$3(axesMap.y, function (yAxis) {
92858
+ each$4(axesMap.y, function (yAxis) {
92848
92859
  fixAxisOnZero(axesMap, 'x', yAxis, onZeroRecords);
92849
92860
  }); // Resize again if containLabel is enabled
92850
92861
  // FIXME It may cause getting wrong grid size in data processing stage
@@ -92868,7 +92879,7 @@ function () {
92868
92879
  adjustAxes(); // Minus label size
92869
92880
 
92870
92881
  if (isContainLabel) {
92871
- each$3(axesList, function (axis) {
92882
+ each$4(axesList, function (axis) {
92872
92883
  if (!axis.model.get(['axisLabel', 'inside'])) {
92873
92884
  var labelUnionRect = estimateLabelUnionRect(axis);
92874
92885
 
@@ -92888,14 +92899,14 @@ function () {
92888
92899
  adjustAxes();
92889
92900
  }
92890
92901
 
92891
- each$3(this._coordsList, function (coord) {
92902
+ each$4(this._coordsList, function (coord) {
92892
92903
  // Calculate affine matrix to accelerate the data to point transform.
92893
92904
  // If all the axes scales are time or value.
92894
92905
  coord.calcAffineTransform();
92895
92906
  });
92896
92907
 
92897
92908
  function adjustAxes() {
92898
- each$3(axesList, function (axis) {
92909
+ each$4(axesList, function (axis) {
92899
92910
  var isHorizontal = axis.isHorizontal();
92900
92911
  var extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height];
92901
92912
  var idx = axis.inverse ? 1 : 0;
@@ -93039,8 +93050,8 @@ function () {
93039
93050
 
93040
93051
  this._axesMap = axesMap; /// Create cartesian2d
93041
93052
 
93042
- each$3(axesMap.x, function (xAxis, xAxisIndex) {
93043
- each$3(axesMap.y, function (yAxis, yAxisIndex) {
93053
+ each$4(axesMap.x, function (xAxis, xAxisIndex) {
93054
+ each$4(axesMap.y, function (yAxis, yAxisIndex) {
93044
93055
  var key = 'x' + xAxisIndex + 'y' + yAxisIndex;
93045
93056
  var cartesian = new Cartesian2D(key);
93046
93057
  cartesian.master = _this;
@@ -93104,7 +93115,7 @@ function () {
93104
93115
 
93105
93116
  Grid.prototype._updateScale = function (ecModel, gridModel) {
93106
93117
  // Reset scale
93107
- each$3(this._axesList, function (axis) {
93118
+ each$4(this._axesList, function (axis) {
93108
93119
  axis.scale.setExtent(Infinity, -Infinity);
93109
93120
 
93110
93121
  if (axis.type === 'category') {
@@ -93132,7 +93143,7 @@ function () {
93132
93143
  }, this);
93133
93144
 
93134
93145
  function unionExtent(data, axis) {
93135
- each$3(getDataDimensionsOnAxis(data, axis.dim), function (dim) {
93146
+ each$4(getDataDimensionsOnAxis(data, axis.dim), function (dim) {
93136
93147
  axis.scale.unionExtentFromData(data, dim);
93137
93148
  });
93138
93149
  }
@@ -93145,7 +93156,7 @@ function () {
93145
93156
  Grid.prototype.getTooltipAxes = function (dim) {
93146
93157
  var baseAxes = [];
93147
93158
  var otherAxes = [];
93148
- each$3(this.getCartesians(), function (cartesian) {
93159
+ each$4(this.getCartesians(), function (cartesian) {
93149
93160
  var baseAxis = dim != null && dim !== 'auto' ? cartesian.getAxis(dim) : cartesian.getBaseAxis();
93150
93161
  var otherAxis = cartesian.getOtherAxis(baseAxis);
93151
93162
  indexOf(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis);
@@ -93304,7 +93315,7 @@ var AxisBuilder =
93304
93315
  /** @class */
93305
93316
  function () {
93306
93317
  function AxisBuilder(axisModel, opt) {
93307
- this.group = new Group$1();
93318
+ this.group = new Group$3();
93308
93319
  this.opt = opt;
93309
93320
  this.axisModel = axisModel; // Default value
93310
93321
 
@@ -93319,7 +93330,7 @@ function () {
93319
93330
  }
93320
93331
  }); // FIXME Not use a seperate text group?
93321
93332
 
93322
- var transformGroup = new Group$1({
93333
+ var transformGroup = new Group$3({
93323
93334
  x: opt.position[0],
93324
93335
  y: opt.position[1],
93325
93336
  rotation: opt.rotation
@@ -93448,7 +93459,7 @@ var builders = {
93448
93459
  var arrowOffset = normalizeSymbolOffset(axisModel.get(['axisLine', 'symbolOffset']) || 0, arrowSize);
93449
93460
  var symbolWidth_1 = arrowSize[0];
93450
93461
  var symbolHeight_1 = arrowSize[1];
93451
- each$3([{
93462
+ each$4([{
93452
93463
  rotate: opt.rotation + Math.PI / 2,
93453
93464
  offset: arrowOffset[0],
93454
93465
  r: 0
@@ -93794,7 +93805,7 @@ function buildAxisLabel(group, transformGroup, axisModel, opt) {
93794
93805
  var labelEls = [];
93795
93806
  var silent = AxisBuilder.isLabelSilent(axisModel);
93796
93807
  var triggerEvent = axisModel.get('triggerEvent');
93797
- each$3(labels, function (labelItem, index) {
93808
+ each$4(labels, function (labelItem, index) {
93798
93809
  var tickValue = axis.scale.type === 'ordinal' ? axis.scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue;
93799
93810
  var formattedLabel = labelItem.formattedLabel;
93800
93811
  var rawLabel = labelItem.rawLabel;
@@ -93897,7 +93908,7 @@ function collectAxesInfo(result, ecModel, api) {
93897
93908
  var linksOption = globalAxisPointerModel.get('link', true) || [];
93898
93909
  var linkGroups = []; // Collect axes info.
93899
93910
 
93900
- each$3(api.getCoordinateSystems(), function (coordSys) {
93911
+ each$4(api.getCoordinateSystems(), function (coordSys) {
93901
93912
  // Some coordinate system do not support axes, like geo.
93902
93913
  if (!coordSys.axisPointerEnabled) {
93903
93914
  return;
@@ -93910,7 +93921,7 @@ function collectAxesInfo(result, ecModel, api) {
93910
93921
 
93911
93922
  var coordSysModel = coordSys.model;
93912
93923
  var baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel);
93913
- each$3(coordSys.getAxes(), curry(saveTooltipAxisInfo, false, null)); // If axis tooltip used, choose tooltip axis for each coordSys.
93924
+ each$4(coordSys.getAxes(), curry$1(saveTooltipAxisInfo, false, null)); // If axis tooltip used, choose tooltip axis for each coordSys.
93914
93925
  // Notice this case: coordSys is `grid` but not `cartesian2D` here.
93915
93926
 
93916
93927
  if (coordSys.getTooltipAxes && globalTooltipModel // If tooltip.showContent is set as false, tooltip will not
@@ -93923,11 +93934,11 @@ function collectAxesInfo(result, ecModel, api) {
93923
93934
  var tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get(['axisPointer', 'axis']));
93924
93935
 
93925
93936
  if (triggerAxis || cross) {
93926
- each$3(tooltipAxes.baseAxes, curry(saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis));
93937
+ each$4(tooltipAxes.baseAxes, curry$1(saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis));
93927
93938
  }
93928
93939
 
93929
93940
  if (cross) {
93930
- each$3(tooltipAxes.otherAxes, curry(saveTooltipAxisInfo, 'cross', false));
93941
+ each$4(tooltipAxes.otherAxes, curry$1(saveTooltipAxisInfo, 'cross', false));
93931
93942
  }
93932
93943
  } // fromTooltip: true | false | 'cross'
93933
93944
  // triggerTooltip: true | false | null
@@ -93982,7 +93993,7 @@ function makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ec
93982
93993
  var tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer');
93983
93994
  var fields = ['type', 'snap', 'lineStyle', 'shadowStyle', 'label', 'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z'];
93984
93995
  var volatileOption = {};
93985
- each$3(fields, function (field) {
93996
+ each$4(fields, function (field) {
93986
93997
  volatileOption[field] = clone$3(tooltipAxisPointerModel.get(field));
93987
93998
  }); // category axis do not auto snap, otherwise some tick that do not
93988
93999
  // has value can not be hovered. value/time/log axis default snap if
@@ -94026,7 +94037,7 @@ function collectSeriesInfo(result, ecModel) {
94026
94037
  return;
94027
94038
  }
94028
94039
 
94029
- each$3(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) {
94040
+ each$4(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) {
94030
94041
  var axis = axisInfo.axis;
94031
94042
 
94032
94043
  if (coordSys.getAxis(axis.dim) === axis) {
@@ -94346,7 +94357,7 @@ function (_super) {
94346
94357
  CartesianAxisView.prototype.render = function (axisModel, ecModel, api, payload) {
94347
94358
  this.group.removeAll();
94348
94359
  var oldAxisGroup = this._axisGroup;
94349
- this._axisGroup = new Group$1();
94360
+ this._axisGroup = new Group$3();
94350
94361
  this.group.add(this._axisGroup);
94351
94362
 
94352
94363
  if (!axisModel.get('show')) {
@@ -94370,11 +94381,11 @@ function (_super) {
94370
94381
  return false;
94371
94382
  }
94372
94383
  }, layout$1));
94373
- each$3(axisBuilderAttrs, axisBuilder.add, axisBuilder);
94384
+ each$4(axisBuilderAttrs, axisBuilder.add, axisBuilder);
94374
94385
 
94375
94386
  this._axisGroup.add(axisBuilder.getGroup());
94376
94387
 
94377
- each$3(selfBuilderAttrs, function (name) {
94388
+ each$4(selfBuilderAttrs, function (name) {
94378
94389
  if (axisModel.get([name, 'show'])) {
94379
94390
  axisElementBuilders[name](this, this._axisGroup, axisModel, gridModel);
94380
94391
  }
@@ -94578,7 +94589,7 @@ var extraOption = {
94578
94589
  // gridId: '',
94579
94590
  offset: 0
94580
94591
  };
94581
- function install$6(registers) {
94592
+ function install$9(registers) {
94582
94593
  registers.registerComponentView(GridView);
94583
94594
  registers.registerComponentModel(GridModel$1);
94584
94595
  registers.registerCoordinateSystem('cartesian2d', Grid$1);
@@ -94661,12 +94672,12 @@ function () {
94661
94672
  var moveAnimation = this._moveAnimation = this.determineAnimation(axisModel, axisPointerModel);
94662
94673
 
94663
94674
  if (!group) {
94664
- group = this._group = new Group$1();
94675
+ group = this._group = new Group$3();
94665
94676
  this.createPointerEl(group, elOption, axisModel, axisPointerModel);
94666
94677
  this.createLabelEl(group, elOption, axisModel, axisPointerModel);
94667
94678
  api.getZr().add(group);
94668
94679
  } else {
94669
- var doUpdateProps = curry(updateProps, axisPointerModel, moveAnimation);
94680
+ var doUpdateProps = curry$1(updateProps, axisPointerModel, moveAnimation);
94670
94681
  this.updatePointerEl(group, elOption, doUpdateProps);
94671
94682
  this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel);
94672
94683
  }
@@ -94980,7 +94991,7 @@ function updateProps(animationModel, moveAnimation, el, props) {
94980
94991
  function propsEqual(lastProps, newProps) {
94981
94992
  if (isObject$2(lastProps) && isObject$2(newProps)) {
94982
94993
  var equals_1 = true;
94983
- each$3(newProps, function (item, key) {
94994
+ each$4(newProps, function (item, key) {
94984
94995
  equals_1 = equals_1 && propsEqual(lastProps[key], item);
94985
94996
  });
94986
94997
  return !!equals_1;
@@ -95107,7 +95118,7 @@ function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) {
95107
95118
  axisIndex: axis.index,
95108
95119
  seriesData: []
95109
95120
  };
95110
- each$3(seriesDataIndices, function (idxItem) {
95121
+ each$4(seriesDataIndices, function (idxItem) {
95111
95122
  var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);
95112
95123
  var dataIndex = idxItem.dataIndexInside;
95113
95124
  var dataParams = series && series.getDataParams(dataIndex);
@@ -95349,7 +95360,7 @@ function (_super) {
95349
95360
  var AxisPointerModel$1 = AxisPointerModel;
95350
95361
 
95351
95362
  var inner$1 = makeInner();
95352
- var each = each$3;
95363
+ var each$1 = each$4;
95353
95364
  /**
95354
95365
  * @param {string} key
95355
95366
  * @param {module:echarts/ExtensionAPI} api
@@ -95376,15 +95387,15 @@ function initGlobalListeners(zr, api) {
95376
95387
  }
95377
95388
 
95378
95389
  inner$1(zr).initialized = true;
95379
- useHandler('click', curry(doEnter, 'click'));
95380
- useHandler('mousemove', curry(doEnter, 'mousemove')); // useHandler('mouseout', onLeave);
95390
+ useHandler('click', curry$1(doEnter, 'click'));
95391
+ useHandler('mousemove', curry$1(doEnter, 'mousemove')); // useHandler('mouseout', onLeave);
95381
95392
 
95382
95393
  useHandler('globalout', onLeave);
95383
95394
 
95384
95395
  function useHandler(eventType, cb) {
95385
95396
  zr.on(eventType, function (e) {
95386
95397
  var dis = makeDispatchAction$1(api);
95387
- each(inner$1(zr).records, function (record) {
95398
+ each$1(inner$1(zr).records, function (record) {
95388
95399
  record && cb(record, e, dis.dispatchAction);
95389
95400
  });
95390
95401
  dispatchTooltipFinally(dis.pendings, api);
@@ -95608,14 +95619,14 @@ function axisTrigger(payload, ecModel, api) {
95608
95619
  map: {}
95609
95620
  };
95610
95621
  var updaters = {
95611
- showPointer: curry(showPointer, showValueMap),
95612
- showTooltip: curry(showTooltip, dataByCoordSys)
95622
+ showPointer: curry$1(showPointer, showValueMap),
95623
+ showTooltip: curry$1(showTooltip, dataByCoordSys)
95613
95624
  }; // Process for triggered axes.
95614
95625
 
95615
- each$3(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) {
95626
+ each$4(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) {
95616
95627
  // If a point given, it must be contained by the coordinate system.
95617
95628
  var coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point);
95618
- each$3(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) {
95629
+ each$4(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) {
95619
95630
  var axis = axisInfo.axis;
95620
95631
  var inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo); // If no inputAxesInfo, no axis is restricted.
95621
95632
 
@@ -95632,11 +95643,11 @@ function axisTrigger(payload, ecModel, api) {
95632
95643
  }); // Process for linked axes.
95633
95644
 
95634
95645
  var linkTriggers = {};
95635
- each$3(axesInfo, function (tarAxisInfo, tarKey) {
95646
+ each$4(axesInfo, function (tarAxisInfo, tarKey) {
95636
95647
  var linkGroup = tarAxisInfo.linkGroup; // If axis has been triggered in the previous stage, it should not be triggered by link.
95637
95648
 
95638
95649
  if (linkGroup && !showValueMap[tarKey]) {
95639
- each$3(linkGroup.axesInfo, function (srcAxisInfo, srcKey) {
95650
+ each$4(linkGroup.axesInfo, function (srcAxisInfo, srcKey) {
95640
95651
  var srcValItem = showValueMap[srcKey]; // If srcValItem exist, source axis is triggered, so link to target axis.
95641
95652
 
95642
95653
  if (srcAxisInfo !== tarAxisInfo && srcValItem) {
@@ -95647,7 +95658,7 @@ function axisTrigger(payload, ecModel, api) {
95647
95658
  });
95648
95659
  }
95649
95660
  });
95650
- each$3(linkTriggers, function (val, tarKey) {
95661
+ each$4(linkTriggers, function (val, tarKey) {
95651
95662
  processOnAxis(axesInfo[tarKey], val, updaters, true, outputPayload);
95652
95663
  });
95653
95664
  updateModelActually(showValueMap, axesInfo, outputPayload);
@@ -95699,7 +95710,7 @@ function buildPayloadsBySeries(value, axisInfo) {
95699
95710
  var payloadBatch = [];
95700
95711
  var minDist = Number.MAX_VALUE;
95701
95712
  var minDiff = -1;
95702
- each$3(axisInfo.seriesModels, function (series, idx) {
95713
+ each$4(axisInfo.seriesModels, function (series, idx) {
95703
95714
  var dataDim = series.getData().mapDimensionsAll(dim);
95704
95715
  var seriesNestestValue;
95705
95716
  var dataIndices;
@@ -95736,7 +95747,7 @@ function buildPayloadsBySeries(value, axisInfo) {
95736
95747
  payloadBatch.length = 0;
95737
95748
  }
95738
95749
 
95739
- each$3(dataIndices, function (dataIndex) {
95750
+ each$4(dataIndices, function (dataIndex) {
95740
95751
  payloadBatch.push({
95741
95752
  seriesIndex: series.seriesIndex,
95742
95753
  dataIndexInside: dataIndex,
@@ -95805,7 +95816,7 @@ function showTooltip(dataByCoordSys, axisInfo, payloadInfo, value) {
95805
95816
  function updateModelActually(showValueMap, axesInfo, outputPayload) {
95806
95817
  var outputAxesInfo = outputPayload.axesInfo = []; // Basic logic: If no 'show' required, 'hide' this axisPointer.
95807
95818
 
95808
- each$3(axesInfo, function (axisInfo, key) {
95819
+ each$4(axesInfo, function (axisInfo, key) {
95809
95820
  var option = axisInfo.axisPointerModel.option;
95810
95821
  var valItem = showValueMap[key];
95811
95822
 
@@ -95869,9 +95880,9 @@ function dispatchHighDownActually(axesInfo, dispatchAction, api) {
95869
95880
  var newHighlights = inner(zr)[highDownKey] = {}; // Update highlight/downplay status according to axisPointer model.
95870
95881
  // Build hash map and remove duplicate incidentally.
95871
95882
 
95872
- each$3(axesInfo, function (axisInfo, key) {
95883
+ each$4(axesInfo, function (axisInfo, key) {
95873
95884
  var option = axisInfo.axisPointerModel.option;
95874
- option.status === 'show' && each$3(option.seriesDataIndices, function (batchItem) {
95885
+ option.status === 'show' && each$4(option.seriesDataIndices, function (batchItem) {
95875
95886
  var key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex;
95876
95887
  newHighlights[key] = batchItem;
95877
95888
  });
@@ -95879,10 +95890,10 @@ function dispatchHighDownActually(axesInfo, dispatchAction, api) {
95879
95890
 
95880
95891
  var toHighlight = [];
95881
95892
  var toDownplay = [];
95882
- each$3(lastHighlights, function (batchItem, key) {
95893
+ each$4(lastHighlights, function (batchItem, key) {
95883
95894
  !newHighlights[key] && toDownplay.push(batchItem);
95884
95895
  });
95885
- each$3(newHighlights, function (batchItem, key) {
95896
+ each$4(newHighlights, function (batchItem, key) {
95886
95897
  !lastHighlights[key] && toHighlight.push(batchItem);
95887
95898
  });
95888
95899
  toDownplay.length && api.dispatchAction({
@@ -95925,7 +95936,7 @@ function illegalPoint(point) {
95925
95936
  return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]);
95926
95937
  }
95927
95938
 
95928
- function install$5(registers) {
95939
+ function install$8(registers) {
95929
95940
  // CartesianAxisPointer is not supposed to be required here. But consider
95930
95941
  // echarts.simple.js and online build tooltip, which only require gridSimple,
95931
95942
  // CartesianAxisPointer should be able to required somewhere.
@@ -95960,9 +95971,32 @@ function install$5(registers) {
95960
95971
  }, axisTrigger);
95961
95972
  }
95962
95973
 
95963
- function install$4(registers) {
95964
- use(install$6);
95965
- use(install$5);
95974
+ function install$7(registers) {
95975
+ use(install$9);
95976
+ use(install$8);
95977
+ }
95978
+
95979
+ function makeBackground(rect, componentModel) {
95980
+ var padding = normalizeCssArray(componentModel.get('padding'));
95981
+ var style = componentModel.getItemStyle(['color', 'opacity']);
95982
+ style.fill = componentModel.get('backgroundColor');
95983
+ rect = new Rect$1({
95984
+ shape: {
95985
+ x: rect.x - padding[3],
95986
+ y: rect.y - padding[0],
95987
+ width: rect.width + padding[1] + padding[3],
95988
+ height: rect.height + padding[0] + padding[2],
95989
+ r: componentModel.get('borderRadius')
95990
+ },
95991
+ style: style,
95992
+ silent: true,
95993
+ z2: -1
95994
+ }); // FIXME
95995
+ // `subPixelOptimizeRect` may bring some gap between edge of viewpart
95996
+ // and background rect when setting like `left: 0`, `top: 0`.
95997
+ // graphic.subPixelOptimizeRect(rect);
95998
+
95999
+ return rect;
95966
96000
  }
95967
96001
 
95968
96002
  var TooltipModel =
@@ -96182,7 +96216,7 @@ function assembleFont(textStyleModel) {
96182
96216
  var shadowOffsetX = textStyleModel.get('textShadowOffsetX') || 0;
96183
96217
  var shadowOffsetY = textStyleModel.get('textShadowOffsetY') || 0;
96184
96218
  shadowColor && shadowBlur && cssText.push('text-shadow:' + shadowOffsetX + 'px ' + shadowOffsetY + 'px ' + shadowBlur + 'px ' + shadowColor);
96185
- each$3(['decoration', 'align'], function (name) {
96219
+ each$4(['decoration', 'align'], function (name) {
96186
96220
  var val = textStyleModel.get(name);
96187
96221
  val && cssText.push('text-' + name + ':' + val);
96188
96222
  });
@@ -96209,7 +96243,7 @@ function assembleCssText(tooltipModel, enableTransition, onlyFade) {
96209
96243
  } // Border style
96210
96244
 
96211
96245
 
96212
- each$3(['width', 'color', 'radius'], function (name) {
96246
+ each$4(['width', 'color', 'radius'], function (name) {
96213
96247
  var borderName = 'border-' + name;
96214
96248
  var camelCase = toCamelCase(borderName);
96215
96249
  var val = tooltipModel.get(camelCase);
@@ -96432,7 +96466,7 @@ function () {
96432
96466
  if (styleCoord[0] != null && styleCoord[1] != null) {
96433
96467
  var style_1 = this.el.style;
96434
96468
  var transforms = assembleTransform(styleCoord[0], styleCoord[1]);
96435
- each$3(transforms, function (transform) {
96469
+ each$4(transforms, function (transform) {
96436
96470
  style_1[transform[0]] = transform[1];
96437
96471
  });
96438
96472
  }
@@ -96550,10 +96584,10 @@ function () {
96550
96584
  },
96551
96585
  z: tooltipModel.get('z')
96552
96586
  });
96553
- each$3(['backgroundColor', 'borderRadius', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'], function (propName) {
96587
+ each$4(['backgroundColor', 'borderRadius', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'], function (propName) {
96554
96588
  _this.el.style[propName] = tooltipModel.get(propName);
96555
96589
  });
96556
- each$3(['textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'], function (propName) {
96590
+ each$4(['textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'], function (propName) {
96557
96591
  _this.el.style[propName] = textStyleModel.get(propName) || 0;
96558
96592
  });
96559
96593
 
@@ -97015,8 +97049,8 @@ function (_super) {
97015
97049
 
97016
97050
  var markupTextArrLegacy = [];
97017
97051
  var markupStyleCreator = new TooltipMarkupStyleCreator();
97018
- each$3(dataByCoordSys, function (itemCoordSys) {
97019
- each$3(itemCoordSys.dataByAxis, function (axisItem) {
97052
+ each$4(dataByCoordSys, function (itemCoordSys) {
97053
+ each$4(itemCoordSys.dataByAxis, function (axisItem) {
97020
97054
  var axisModel = ecModel.getComponent(axisItem.axisDim + 'Axis', axisItem.axisIndex);
97021
97055
  var axisValue = axisItem.value;
97022
97056
 
@@ -97032,7 +97066,7 @@ function (_super) {
97032
97066
  blocks: []
97033
97067
  });
97034
97068
  articleMarkup.blocks.push(axisSectionMarkup);
97035
- each$3(axisItem.seriesDataIndices, function (idxItem) {
97069
+ each$4(axisItem.seriesDataIndices, function (idxItem) {
97036
97070
  var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);
97037
97071
  var dataIndex = idxItem.dataIndexInside;
97038
97072
  var cbParams = series.getDataParams(dataIndex); // Can't find data.
@@ -97334,22 +97368,22 @@ function (_super) {
97334
97368
  var lastCoordSys = this._lastDataByCoordSys;
97335
97369
  var lastCbParamsList = this._cbParamsList;
97336
97370
  var contentNotChanged = !!lastCoordSys && lastCoordSys.length === dataByCoordSys.length;
97337
- contentNotChanged && each$3(lastCoordSys, function (lastItemCoordSys, indexCoordSys) {
97371
+ contentNotChanged && each$4(lastCoordSys, function (lastItemCoordSys, indexCoordSys) {
97338
97372
  var lastDataByAxis = lastItemCoordSys.dataByAxis || [];
97339
97373
  var thisItemCoordSys = dataByCoordSys[indexCoordSys] || {};
97340
97374
  var thisDataByAxis = thisItemCoordSys.dataByAxis || [];
97341
97375
  contentNotChanged = contentNotChanged && lastDataByAxis.length === thisDataByAxis.length;
97342
- contentNotChanged && each$3(lastDataByAxis, function (lastItem, indexAxis) {
97376
+ contentNotChanged && each$4(lastDataByAxis, function (lastItem, indexAxis) {
97343
97377
  var thisItem = thisDataByAxis[indexAxis] || {};
97344
97378
  var lastIndices = lastItem.seriesDataIndices || [];
97345
97379
  var newIndices = thisItem.seriesDataIndices || [];
97346
97380
  contentNotChanged = contentNotChanged && lastItem.value === thisItem.value && lastItem.axisType === thisItem.axisType && lastItem.axisId === thisItem.axisId && lastIndices.length === newIndices.length;
97347
- contentNotChanged && each$3(lastIndices, function (lastIdxItem, j) {
97381
+ contentNotChanged && each$4(lastIndices, function (lastIdxItem, j) {
97348
97382
  var newIdxItem = newIndices[j];
97349
97383
  contentNotChanged = contentNotChanged && lastIdxItem.seriesIndex === newIdxItem.seriesIndex && lastIdxItem.dataIndex === newIdxItem.dataIndex;
97350
97384
  }); // check is cbParams data value changed
97351
97385
 
97352
- lastCbParamsList && each$3(lastItem.seriesDataIndices, function (idxItem) {
97386
+ lastCbParamsList && each$4(lastItem.seriesDataIndices, function (idxItem) {
97353
97387
  var seriesIdx = idxItem.seriesIndex;
97354
97388
  var cbParams = cbParamsList[seriesIdx];
97355
97389
  var lastCbParams = lastCbParamsList[seriesIdx];
@@ -97575,8 +97609,8 @@ function findComponentReference(payload, ecModel, api) {
97575
97609
 
97576
97610
  var TooltipView$1 = TooltipView;
97577
97611
 
97578
- function install$3(registers) {
97579
- use(install$5);
97612
+ function install$6(registers) {
97613
+ use(install$8);
97580
97614
  registers.registerComponentModel(TooltipModel$1);
97581
97615
  registers.registerComponentView(TooltipView$1);
97582
97616
  /**
@@ -97792,11 +97826,1521 @@ function (_super) {
97792
97826
  return TitleView;
97793
97827
  }(ComponentView$1);
97794
97828
 
97795
- function install$2(registers) {
97829
+ function install$5(registers) {
97796
97830
  registers.registerComponentModel(TitleModel);
97797
97831
  registers.registerComponentView(TitleView);
97798
97832
  }
97799
97833
 
97834
+ var getDefaultSelectorOptions = function (ecModel, type) {
97835
+ if (type === 'all') {
97836
+ return {
97837
+ type: 'all',
97838
+ title: ecModel.getLocaleModel().get(['legend', 'selector', 'all'])
97839
+ };
97840
+ } else if (type === 'inverse') {
97841
+ return {
97842
+ type: 'inverse',
97843
+ title: ecModel.getLocaleModel().get(['legend', 'selector', 'inverse'])
97844
+ };
97845
+ }
97846
+ };
97847
+
97848
+ var LegendModel =
97849
+ /** @class */
97850
+ function (_super) {
97851
+ __extends$1(LegendModel, _super);
97852
+
97853
+ function LegendModel() {
97854
+ var _this = _super !== null && _super.apply(this, arguments) || this;
97855
+
97856
+ _this.type = LegendModel.type;
97857
+ _this.layoutMode = {
97858
+ type: 'box',
97859
+ // legend.width/height are maxWidth/maxHeight actually,
97860
+ // whereas realy width/height is calculated by its content.
97861
+ // (Setting {left: 10, right: 10} does not make sense).
97862
+ // So consider the case:
97863
+ // `setOption({legend: {left: 10});`
97864
+ // then `setOption({legend: {right: 10});`
97865
+ // The previous `left` should be cleared by setting `ignoreSize`.
97866
+ ignoreSize: true
97867
+ };
97868
+ return _this;
97869
+ }
97870
+
97871
+ LegendModel.prototype.init = function (option, parentModel, ecModel) {
97872
+ this.mergeDefaultAndTheme(option, ecModel);
97873
+ option.selected = option.selected || {};
97874
+
97875
+ this._updateSelector(option);
97876
+ };
97877
+
97878
+ LegendModel.prototype.mergeOption = function (option, ecModel) {
97879
+ _super.prototype.mergeOption.call(this, option, ecModel);
97880
+
97881
+ this._updateSelector(option);
97882
+ };
97883
+
97884
+ LegendModel.prototype._updateSelector = function (option) {
97885
+ var selector = option.selector;
97886
+ var ecModel = this.ecModel;
97887
+
97888
+ if (selector === true) {
97889
+ selector = option.selector = ['all', 'inverse'];
97890
+ }
97891
+
97892
+ if (isArray(selector)) {
97893
+ each$4(selector, function (item, index) {
97894
+ isString(item) && (item = {
97895
+ type: item
97896
+ });
97897
+ selector[index] = merge(item, getDefaultSelectorOptions(ecModel, item.type));
97898
+ });
97899
+ }
97900
+ };
97901
+
97902
+ LegendModel.prototype.optionUpdated = function () {
97903
+ this._updateData(this.ecModel);
97904
+
97905
+ var legendData = this._data; // If selectedMode is single, try to select one
97906
+
97907
+ if (legendData[0] && this.get('selectedMode') === 'single') {
97908
+ var hasSelected = false; // If has any selected in option.selected
97909
+
97910
+ for (var i = 0; i < legendData.length; i++) {
97911
+ var name_1 = legendData[i].get('name');
97912
+
97913
+ if (this.isSelected(name_1)) {
97914
+ // Force to unselect others
97915
+ this.select(name_1);
97916
+ hasSelected = true;
97917
+ break;
97918
+ }
97919
+ } // Try select the first if selectedMode is single
97920
+
97921
+
97922
+ !hasSelected && this.select(legendData[0].get('name'));
97923
+ }
97924
+ };
97925
+
97926
+ LegendModel.prototype._updateData = function (ecModel) {
97927
+ var potentialData = [];
97928
+ var availableNames = [];
97929
+ ecModel.eachRawSeries(function (seriesModel) {
97930
+ var seriesName = seriesModel.name;
97931
+ availableNames.push(seriesName);
97932
+ var isPotential;
97933
+
97934
+ if (seriesModel.legendVisualProvider) {
97935
+ var provider = seriesModel.legendVisualProvider;
97936
+ var names = provider.getAllNames();
97937
+
97938
+ if (!ecModel.isSeriesFiltered(seriesModel)) {
97939
+ availableNames = availableNames.concat(names);
97940
+ }
97941
+
97942
+ if (names.length) {
97943
+ potentialData = potentialData.concat(names);
97944
+ } else {
97945
+ isPotential = true;
97946
+ }
97947
+ } else {
97948
+ isPotential = true;
97949
+ }
97950
+
97951
+ if (isPotential && isNameSpecified(seriesModel)) {
97952
+ potentialData.push(seriesModel.name);
97953
+ }
97954
+ });
97955
+ /**
97956
+ * @type {Array.<string>}
97957
+ * @private
97958
+ */
97959
+
97960
+ this._availableNames = availableNames; // If legend.data not specified in option, use availableNames as data,
97961
+ // which is convinient for user preparing option.
97962
+
97963
+ var rawData = this.get('data') || potentialData;
97964
+ var legendData = map$1(rawData, function (dataItem) {
97965
+ // Can be string or number
97966
+ if (isString(dataItem) || isNumber(dataItem)) {
97967
+ dataItem = {
97968
+ name: dataItem
97969
+ };
97970
+ }
97971
+
97972
+ return new Model$1(dataItem, this, this.ecModel);
97973
+ }, this);
97974
+ /**
97975
+ * @type {Array.<module:echarts/model/Model>}
97976
+ * @private
97977
+ */
97978
+
97979
+ this._data = legendData;
97980
+ };
97981
+
97982
+ LegendModel.prototype.getData = function () {
97983
+ return this._data;
97984
+ };
97985
+
97986
+ LegendModel.prototype.select = function (name) {
97987
+ var selected = this.option.selected;
97988
+ var selectedMode = this.get('selectedMode');
97989
+
97990
+ if (selectedMode === 'single') {
97991
+ var data = this._data;
97992
+ each$4(data, function (dataItem) {
97993
+ selected[dataItem.get('name')] = false;
97994
+ });
97995
+ }
97996
+
97997
+ selected[name] = true;
97998
+ };
97999
+
98000
+ LegendModel.prototype.unSelect = function (name) {
98001
+ if (this.get('selectedMode') !== 'single') {
98002
+ this.option.selected[name] = false;
98003
+ }
98004
+ };
98005
+
98006
+ LegendModel.prototype.toggleSelected = function (name) {
98007
+ var selected = this.option.selected; // Default is true
98008
+
98009
+ if (!selected.hasOwnProperty(name)) {
98010
+ selected[name] = true;
98011
+ }
98012
+
98013
+ this[selected[name] ? 'unSelect' : 'select'](name);
98014
+ };
98015
+
98016
+ LegendModel.prototype.allSelect = function () {
98017
+ var data = this._data;
98018
+ var selected = this.option.selected;
98019
+ each$4(data, function (dataItem) {
98020
+ selected[dataItem.get('name', true)] = true;
98021
+ });
98022
+ };
98023
+
98024
+ LegendModel.prototype.inverseSelect = function () {
98025
+ var data = this._data;
98026
+ var selected = this.option.selected;
98027
+ each$4(data, function (dataItem) {
98028
+ var name = dataItem.get('name', true); // Initially, default value is true
98029
+
98030
+ if (!selected.hasOwnProperty(name)) {
98031
+ selected[name] = true;
98032
+ }
98033
+
98034
+ selected[name] = !selected[name];
98035
+ });
98036
+ };
98037
+
98038
+ LegendModel.prototype.isSelected = function (name) {
98039
+ var selected = this.option.selected;
98040
+ return !(selected.hasOwnProperty(name) && !selected[name]) && indexOf(this._availableNames, name) >= 0;
98041
+ };
98042
+
98043
+ LegendModel.prototype.getOrient = function () {
98044
+ return this.get('orient') === 'vertical' ? {
98045
+ index: 1,
98046
+ name: 'vertical'
98047
+ } : {
98048
+ index: 0,
98049
+ name: 'horizontal'
98050
+ };
98051
+ };
98052
+
98053
+ LegendModel.type = 'legend.plain';
98054
+ LegendModel.dependencies = ['series'];
98055
+ LegendModel.defaultOption = {
98056
+ // zlevel: 0,
98057
+ z: 4,
98058
+ show: true,
98059
+ orient: 'horizontal',
98060
+ left: 'center',
98061
+ // right: 'center',
98062
+ top: 0,
98063
+ // bottom: null,
98064
+ align: 'auto',
98065
+ backgroundColor: 'rgba(0,0,0,0)',
98066
+ borderColor: '#ccc',
98067
+ borderRadius: 0,
98068
+ borderWidth: 0,
98069
+ padding: 5,
98070
+ itemGap: 10,
98071
+ itemWidth: 25,
98072
+ itemHeight: 14,
98073
+ symbolRotate: 'inherit',
98074
+ symbolKeepAspect: true,
98075
+ inactiveColor: '#ccc',
98076
+ inactiveBorderColor: '#ccc',
98077
+ inactiveBorderWidth: 'auto',
98078
+ itemStyle: {
98079
+ color: 'inherit',
98080
+ opacity: 'inherit',
98081
+ borderColor: 'inherit',
98082
+ borderWidth: 'auto',
98083
+ borderCap: 'inherit',
98084
+ borderJoin: 'inherit',
98085
+ borderDashOffset: 'inherit',
98086
+ borderMiterLimit: 'inherit'
98087
+ },
98088
+ lineStyle: {
98089
+ width: 'auto',
98090
+ color: 'inherit',
98091
+ inactiveColor: '#ccc',
98092
+ inactiveWidth: 2,
98093
+ opacity: 'inherit',
98094
+ type: 'inherit',
98095
+ cap: 'inherit',
98096
+ join: 'inherit',
98097
+ dashOffset: 'inherit',
98098
+ miterLimit: 'inherit'
98099
+ },
98100
+ textStyle: {
98101
+ color: '#333'
98102
+ },
98103
+ selectedMode: true,
98104
+ selector: false,
98105
+ selectorLabel: {
98106
+ show: true,
98107
+ borderRadius: 10,
98108
+ padding: [3, 5, 3, 5],
98109
+ fontSize: 12,
98110
+ fontFamily: 'sans-serif',
98111
+ color: '#666',
98112
+ borderWidth: 1,
98113
+ borderColor: '#666'
98114
+ },
98115
+ emphasis: {
98116
+ selectorLabel: {
98117
+ show: true,
98118
+ color: '#eee',
98119
+ backgroundColor: '#666'
98120
+ }
98121
+ },
98122
+ selectorPosition: 'auto',
98123
+ selectorItemGap: 7,
98124
+ selectorButtonGap: 10,
98125
+ tooltip: {
98126
+ show: false
98127
+ }
98128
+ };
98129
+ return LegendModel;
98130
+ }(ComponentModel$1);
98131
+
98132
+ var LegendModel$1 = LegendModel;
98133
+
98134
+ var curry = curry$1;
98135
+ var each = each$4;
98136
+ var Group$1 = Group$3;
98137
+
98138
+ var LegendView =
98139
+ /** @class */
98140
+ function (_super) {
98141
+ __extends$1(LegendView, _super);
98142
+
98143
+ function LegendView() {
98144
+ var _this = _super !== null && _super.apply(this, arguments) || this;
98145
+
98146
+ _this.type = LegendView.type;
98147
+ _this.newlineDisabled = false;
98148
+ return _this;
98149
+ }
98150
+
98151
+ LegendView.prototype.init = function () {
98152
+ this.group.add(this._contentGroup = new Group$1());
98153
+ this.group.add(this._selectorGroup = new Group$1());
98154
+ this._isFirstRender = true;
98155
+ };
98156
+ /**
98157
+ * @protected
98158
+ */
98159
+
98160
+
98161
+ LegendView.prototype.getContentGroup = function () {
98162
+ return this._contentGroup;
98163
+ };
98164
+ /**
98165
+ * @protected
98166
+ */
98167
+
98168
+
98169
+ LegendView.prototype.getSelectorGroup = function () {
98170
+ return this._selectorGroup;
98171
+ };
98172
+ /**
98173
+ * @override
98174
+ */
98175
+
98176
+
98177
+ LegendView.prototype.render = function (legendModel, ecModel, api) {
98178
+ var isFirstRender = this._isFirstRender;
98179
+ this._isFirstRender = false;
98180
+ this.resetInner();
98181
+
98182
+ if (!legendModel.get('show', true)) {
98183
+ return;
98184
+ }
98185
+
98186
+ var itemAlign = legendModel.get('align');
98187
+ var orient = legendModel.get('orient');
98188
+
98189
+ if (!itemAlign || itemAlign === 'auto') {
98190
+ itemAlign = legendModel.get('left') === 'right' && orient === 'vertical' ? 'right' : 'left';
98191
+ } // selector has been normalized to an array in model
98192
+
98193
+
98194
+ var selector = legendModel.get('selector', true);
98195
+ var selectorPosition = legendModel.get('selectorPosition', true);
98196
+
98197
+ if (selector && (!selectorPosition || selectorPosition === 'auto')) {
98198
+ selectorPosition = orient === 'horizontal' ? 'end' : 'start';
98199
+ }
98200
+
98201
+ this.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition); // Perform layout.
98202
+
98203
+ var positionInfo = legendModel.getBoxLayoutParams();
98204
+ var viewportSize = {
98205
+ width: api.getWidth(),
98206
+ height: api.getHeight()
98207
+ };
98208
+ var padding = legendModel.get('padding');
98209
+ var maxSize = getLayoutRect(positionInfo, viewportSize, padding);
98210
+ var mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition); // Place mainGroup, based on the calculated `mainRect`.
98211
+
98212
+ var layoutRect = getLayoutRect(defaults({
98213
+ width: mainRect.width,
98214
+ height: mainRect.height
98215
+ }, positionInfo), viewportSize, padding);
98216
+ this.group.x = layoutRect.x - mainRect.x;
98217
+ this.group.y = layoutRect.y - mainRect.y;
98218
+ this.group.markRedraw(); // Render background after group is layout.
98219
+
98220
+ this.group.add(this._backgroundEl = makeBackground(mainRect, legendModel));
98221
+ };
98222
+
98223
+ LegendView.prototype.resetInner = function () {
98224
+ this.getContentGroup().removeAll();
98225
+ this._backgroundEl && this.group.remove(this._backgroundEl);
98226
+ this.getSelectorGroup().removeAll();
98227
+ };
98228
+
98229
+ LegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) {
98230
+ var contentGroup = this.getContentGroup();
98231
+ var legendDrawnMap = createHashMap();
98232
+ var selectMode = legendModel.get('selectedMode');
98233
+ var excludeSeriesId = [];
98234
+ ecModel.eachRawSeries(function (seriesModel) {
98235
+ !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id);
98236
+ });
98237
+ each(legendModel.getData(), function (legendItemModel, dataIndex) {
98238
+ var name = legendItemModel.get('name'); // Use empty string or \n as a newline string
98239
+
98240
+ if (!this.newlineDisabled && (name === '' || name === '\n')) {
98241
+ var g = new Group$1(); // @ts-ignore
98242
+
98243
+ g.newline = true;
98244
+ contentGroup.add(g);
98245
+ return;
98246
+ } // Representitive series.
98247
+
98248
+
98249
+ var seriesModel = ecModel.getSeriesByName(name)[0];
98250
+
98251
+ if (legendDrawnMap.get(name)) {
98252
+ // Have been drawed
98253
+ return;
98254
+ } // Legend to control series.
98255
+
98256
+
98257
+ if (seriesModel) {
98258
+ var data = seriesModel.getData();
98259
+ var lineVisualStyle = data.getVisual('legendLineStyle') || {};
98260
+ var legendIcon = data.getVisual('legendIcon');
98261
+ /**
98262
+ * `data.getVisual('style')` may be the color from the register
98263
+ * in series. For example, for line series,
98264
+ */
98265
+
98266
+ var style = data.getVisual('style');
98267
+
98268
+ var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, style, legendIcon, selectMode, api);
98269
+
98270
+ itemGroup.on('click', curry(dispatchSelectAction, name, null, api, excludeSeriesId)).on('mouseover', curry(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId));
98271
+ legendDrawnMap.set(name, true);
98272
+ } else {
98273
+ // Legend to control data. In pie and funnel.
98274
+ ecModel.eachRawSeries(function (seriesModel) {
98275
+ // In case multiple series has same data name
98276
+ if (legendDrawnMap.get(name)) {
98277
+ return;
98278
+ }
98279
+
98280
+ if (seriesModel.legendVisualProvider) {
98281
+ var provider = seriesModel.legendVisualProvider;
98282
+
98283
+ if (!provider.containName(name)) {
98284
+ return;
98285
+ }
98286
+
98287
+ var idx = provider.indexOfName(name);
98288
+ var style = provider.getItemVisual(idx, 'style');
98289
+ var legendIcon = provider.getItemVisual(idx, 'legendIcon');
98290
+ var colorArr = parse(style.fill); // Color may be set to transparent in visualMap when data is out of range.
98291
+ // Do not show nothing.
98292
+
98293
+ if (colorArr && colorArr[3] === 0) {
98294
+ colorArr[3] = 0.2; // TODO color is set to 0, 0, 0, 0. Should show correct RGBA
98295
+
98296
+ style = extend(extend({}, style), {
98297
+ fill: stringify(colorArr, 'rgba')
98298
+ });
98299
+ }
98300
+
98301
+ var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, {}, style, legendIcon, selectMode, api); // FIXME: consider different series has items with the same name.
98302
+
98303
+
98304
+ itemGroup.on('click', curry(dispatchSelectAction, null, name, api, excludeSeriesId)) // Should not specify the series name, consider legend controls
98305
+ // more than one pie series.
98306
+ .on('mouseover', curry(dispatchHighlightAction, null, name, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, null, name, api, excludeSeriesId));
98307
+ legendDrawnMap.set(name, true);
98308
+ }
98309
+ }, this);
98310
+ }
98311
+
98312
+ if (process.env.NODE_ENV !== 'production') {
98313
+ if (!legendDrawnMap.get(name)) {
98314
+ console.warn(name + ' series not exists. Legend data should be same with series name or data name.');
98315
+ }
98316
+ }
98317
+ }, this);
98318
+
98319
+ if (selector) {
98320
+ this._createSelector(selector, legendModel, api, orient, selectorPosition);
98321
+ }
98322
+ };
98323
+
98324
+ LegendView.prototype._createSelector = function (selector, legendModel, api, orient, selectorPosition) {
98325
+ var selectorGroup = this.getSelectorGroup();
98326
+ each(selector, function createSelectorButton(selectorItem) {
98327
+ var type = selectorItem.type;
98328
+ var labelText = new ZRText$1({
98329
+ style: {
98330
+ x: 0,
98331
+ y: 0,
98332
+ align: 'center',
98333
+ verticalAlign: 'middle'
98334
+ },
98335
+ onclick: function () {
98336
+ api.dispatchAction({
98337
+ type: type === 'all' ? 'legendAllSelect' : 'legendInverseSelect'
98338
+ });
98339
+ }
98340
+ });
98341
+ selectorGroup.add(labelText);
98342
+ var labelModel = legendModel.getModel('selectorLabel');
98343
+ var emphasisLabelModel = legendModel.getModel(['emphasis', 'selectorLabel']);
98344
+ setLabelStyle(labelText, {
98345
+ normal: labelModel,
98346
+ emphasis: emphasisLabelModel
98347
+ }, {
98348
+ defaultText: selectorItem.title
98349
+ });
98350
+ enableHoverEmphasis(labelText);
98351
+ });
98352
+ };
98353
+
98354
+ LegendView.prototype._createItem = function (seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, itemVisualStyle, legendIcon, selectMode, api) {
98355
+ var drawType = seriesModel.visualDrawType;
98356
+ var itemWidth = legendModel.get('itemWidth');
98357
+ var itemHeight = legendModel.get('itemHeight');
98358
+ var isSelected = legendModel.isSelected(name);
98359
+ var iconRotate = legendItemModel.get('symbolRotate');
98360
+ var symbolKeepAspect = legendItemModel.get('symbolKeepAspect');
98361
+ var legendIconType = legendItemModel.get('icon');
98362
+ legendIcon = legendIconType || legendIcon || 'roundRect';
98363
+ var style = getLegendStyle(legendIcon, legendItemModel, lineVisualStyle, itemVisualStyle, drawType, isSelected, api);
98364
+ var itemGroup = new Group$1();
98365
+ var textStyleModel = legendItemModel.getModel('textStyle');
98366
+
98367
+ if (isFunction(seriesModel.getLegendIcon) && (!legendIconType || legendIconType === 'inherit')) {
98368
+ // Series has specific way to define legend icon
98369
+ itemGroup.add(seriesModel.getLegendIcon({
98370
+ itemWidth: itemWidth,
98371
+ itemHeight: itemHeight,
98372
+ icon: legendIcon,
98373
+ iconRotate: iconRotate,
98374
+ itemStyle: style.itemStyle,
98375
+ lineStyle: style.lineStyle,
98376
+ symbolKeepAspect: symbolKeepAspect
98377
+ }));
98378
+ } else {
98379
+ // Use default legend icon policy for most series
98380
+ var rotate = legendIconType === 'inherit' && seriesModel.getData().getVisual('symbol') ? iconRotate === 'inherit' ? seriesModel.getData().getVisual('symbolRotate') : iconRotate : 0; // No rotation for no icon
98381
+
98382
+ itemGroup.add(getDefaultLegendIcon({
98383
+ itemWidth: itemWidth,
98384
+ itemHeight: itemHeight,
98385
+ icon: legendIcon,
98386
+ iconRotate: rotate,
98387
+ itemStyle: style.itemStyle,
98388
+ lineStyle: style.lineStyle,
98389
+ symbolKeepAspect: symbolKeepAspect
98390
+ }));
98391
+ }
98392
+
98393
+ var textX = itemAlign === 'left' ? itemWidth + 5 : -5;
98394
+ var textAlign = itemAlign;
98395
+ var formatter = legendModel.get('formatter');
98396
+ var content = name;
98397
+
98398
+ if (isString(formatter) && formatter) {
98399
+ content = formatter.replace('{name}', name != null ? name : '');
98400
+ } else if (isFunction(formatter)) {
98401
+ content = formatter(name);
98402
+ }
98403
+
98404
+ var inactiveColor = legendItemModel.get('inactiveColor');
98405
+ itemGroup.add(new ZRText$1({
98406
+ style: createTextStyle$1(textStyleModel, {
98407
+ text: content,
98408
+ x: textX,
98409
+ y: itemHeight / 2,
98410
+ fill: isSelected ? textStyleModel.getTextColor() : inactiveColor,
98411
+ align: textAlign,
98412
+ verticalAlign: 'middle'
98413
+ })
98414
+ })); // Add a invisible rect to increase the area of mouse hover
98415
+
98416
+ var hitRect = new Rect$1({
98417
+ shape: itemGroup.getBoundingRect(),
98418
+ invisible: true
98419
+ });
98420
+ var tooltipModel = legendItemModel.getModel('tooltip');
98421
+
98422
+ if (tooltipModel.get('show')) {
98423
+ setTooltipConfig({
98424
+ el: hitRect,
98425
+ componentModel: legendModel,
98426
+ itemName: name,
98427
+ itemTooltipOption: tooltipModel.option
98428
+ });
98429
+ }
98430
+
98431
+ itemGroup.add(hitRect);
98432
+ itemGroup.eachChild(function (child) {
98433
+ child.silent = true;
98434
+ });
98435
+ hitRect.silent = !selectMode;
98436
+ this.getContentGroup().add(itemGroup);
98437
+ enableHoverEmphasis(itemGroup); // @ts-ignore
98438
+
98439
+ itemGroup.__legendDataIndex = dataIndex;
98440
+ return itemGroup;
98441
+ };
98442
+
98443
+ LegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) {
98444
+ var contentGroup = this.getContentGroup();
98445
+ var selectorGroup = this.getSelectorGroup(); // Place items in contentGroup.
98446
+
98447
+ box(legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), maxSize.width, maxSize.height);
98448
+ var contentRect = contentGroup.getBoundingRect();
98449
+ var contentPos = [-contentRect.x, -contentRect.y];
98450
+ selectorGroup.markRedraw();
98451
+ contentGroup.markRedraw();
98452
+
98453
+ if (selector) {
98454
+ // Place buttons in selectorGroup
98455
+ box( // Buttons in selectorGroup always layout horizontally
98456
+ 'horizontal', selectorGroup, legendModel.get('selectorItemGap', true));
98457
+ var selectorRect = selectorGroup.getBoundingRect();
98458
+ var selectorPos = [-selectorRect.x, -selectorRect.y];
98459
+ var selectorButtonGap = legendModel.get('selectorButtonGap', true);
98460
+ var orientIdx = legendModel.getOrient().index;
98461
+ var wh = orientIdx === 0 ? 'width' : 'height';
98462
+ var hw = orientIdx === 0 ? 'height' : 'width';
98463
+ var yx = orientIdx === 0 ? 'y' : 'x';
98464
+
98465
+ if (selectorPosition === 'end') {
98466
+ selectorPos[orientIdx] += contentRect[wh] + selectorButtonGap;
98467
+ } else {
98468
+ contentPos[orientIdx] += selectorRect[wh] + selectorButtonGap;
98469
+ } //Always align selector to content as 'middle'
98470
+
98471
+
98472
+ selectorPos[1 - orientIdx] += contentRect[hw] / 2 - selectorRect[hw] / 2;
98473
+ selectorGroup.x = selectorPos[0];
98474
+ selectorGroup.y = selectorPos[1];
98475
+ contentGroup.x = contentPos[0];
98476
+ contentGroup.y = contentPos[1];
98477
+ var mainRect = {
98478
+ x: 0,
98479
+ y: 0
98480
+ };
98481
+ mainRect[wh] = contentRect[wh] + selectorButtonGap + selectorRect[wh];
98482
+ mainRect[hw] = Math.max(contentRect[hw], selectorRect[hw]);
98483
+ mainRect[yx] = Math.min(0, selectorRect[yx] + selectorPos[1 - orientIdx]);
98484
+ return mainRect;
98485
+ } else {
98486
+ contentGroup.x = contentPos[0];
98487
+ contentGroup.y = contentPos[1];
98488
+ return this.group.getBoundingRect();
98489
+ }
98490
+ };
98491
+ /**
98492
+ * @protected
98493
+ */
98494
+
98495
+
98496
+ LegendView.prototype.remove = function () {
98497
+ this.getContentGroup().removeAll();
98498
+ this._isFirstRender = true;
98499
+ };
98500
+
98501
+ LegendView.type = 'legend.plain';
98502
+ return LegendView;
98503
+ }(ComponentView$1);
98504
+
98505
+ function getLegendStyle(iconType, legendItemModel, lineVisualStyle, itemVisualStyle, drawType, isSelected, api) {
98506
+ /**
98507
+ * Use series style if is inherit;
98508
+ * elsewise, use legend style
98509
+ */
98510
+ function handleCommonProps(style, visualStyle) {
98511
+ // If lineStyle.width is 'auto', it is set to be 2 if series has border
98512
+ if (style.lineWidth === 'auto') {
98513
+ style.lineWidth = visualStyle.lineWidth > 0 ? 2 : 0;
98514
+ }
98515
+
98516
+ each(style, function (propVal, propName) {
98517
+ style[propName] === 'inherit' && (style[propName] = visualStyle[propName]);
98518
+ });
98519
+ } // itemStyle
98520
+
98521
+
98522
+ var itemStyleModel = legendItemModel.getModel('itemStyle');
98523
+ var itemStyle = itemStyleModel.getItemStyle();
98524
+ var iconBrushType = iconType.lastIndexOf('empty', 0) === 0 ? 'fill' : 'stroke';
98525
+ var decalStyle = itemStyleModel.getShallow('decal');
98526
+ itemStyle.decal = !decalStyle || decalStyle === 'inherit' ? itemVisualStyle.decal : createOrUpdatePatternFromDecal(decalStyle, api);
98527
+
98528
+ if (itemStyle.fill === 'inherit') {
98529
+ /**
98530
+ * Series with visualDrawType as 'stroke' should have
98531
+ * series stroke as legend fill
98532
+ */
98533
+ itemStyle.fill = itemVisualStyle[drawType];
98534
+ }
98535
+
98536
+ if (itemStyle.stroke === 'inherit') {
98537
+ /**
98538
+ * icon type with "emptyXXX" should use fill color
98539
+ * in visual style
98540
+ */
98541
+ itemStyle.stroke = itemVisualStyle[iconBrushType];
98542
+ }
98543
+
98544
+ if (itemStyle.opacity === 'inherit') {
98545
+ /**
98546
+ * Use lineStyle.opacity if drawType is stroke
98547
+ */
98548
+ itemStyle.opacity = (drawType === 'fill' ? itemVisualStyle : lineVisualStyle).opacity;
98549
+ }
98550
+
98551
+ handleCommonProps(itemStyle, itemVisualStyle); // lineStyle
98552
+
98553
+ var legendLineModel = legendItemModel.getModel('lineStyle');
98554
+ var lineStyle = legendLineModel.getLineStyle();
98555
+ handleCommonProps(lineStyle, lineVisualStyle); // Fix auto color to real color
98556
+
98557
+ itemStyle.fill === 'auto' && (itemStyle.fill = itemVisualStyle.fill);
98558
+ itemStyle.stroke === 'auto' && (itemStyle.stroke = itemVisualStyle.fill);
98559
+ lineStyle.stroke === 'auto' && (lineStyle.stroke = itemVisualStyle.fill);
98560
+
98561
+ if (!isSelected) {
98562
+ var borderWidth = legendItemModel.get('inactiveBorderWidth');
98563
+ /**
98564
+ * Since stroke is set to be inactiveBorderColor, it may occur that
98565
+ * there is no border in series but border in legend, so we need to
98566
+ * use border only when series has border if is set to be auto
98567
+ */
98568
+
98569
+ var visualHasBorder = itemStyle[iconBrushType];
98570
+ itemStyle.lineWidth = borderWidth === 'auto' ? itemVisualStyle.lineWidth > 0 && visualHasBorder ? 2 : 0 : itemStyle.lineWidth;
98571
+ itemStyle.fill = legendItemModel.get('inactiveColor');
98572
+ itemStyle.stroke = legendItemModel.get('inactiveBorderColor');
98573
+ lineStyle.stroke = legendLineModel.get('inactiveColor');
98574
+ lineStyle.lineWidth = legendLineModel.get('inactiveWidth');
98575
+ }
98576
+
98577
+ return {
98578
+ itemStyle: itemStyle,
98579
+ lineStyle: lineStyle
98580
+ };
98581
+ }
98582
+
98583
+ function getDefaultLegendIcon(opt) {
98584
+ var symboType = opt.icon || 'roundRect';
98585
+ var icon = createSymbol(symboType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill, opt.symbolKeepAspect);
98586
+ icon.setStyle(opt.itemStyle);
98587
+ icon.rotation = (opt.iconRotate || 0) * Math.PI / 180;
98588
+ icon.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);
98589
+
98590
+ if (symboType.indexOf('empty') > -1) {
98591
+ icon.style.stroke = icon.style.fill;
98592
+ icon.style.fill = '#fff';
98593
+ icon.style.lineWidth = 2;
98594
+ }
98595
+
98596
+ return icon;
98597
+ }
98598
+
98599
+ function dispatchSelectAction(seriesName, dataName, api, excludeSeriesId) {
98600
+ // downplay before unselect
98601
+ dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId);
98602
+ api.dispatchAction({
98603
+ type: 'legendToggleSelect',
98604
+ name: seriesName != null ? seriesName : dataName
98605
+ }); // highlight after select
98606
+ // TODO higlight immediately may cause animation loss.
98607
+
98608
+ dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId);
98609
+ }
98610
+
98611
+ function isUseHoverLayer(api) {
98612
+ var list = api.getZr().storage.getDisplayList();
98613
+ var emphasisState;
98614
+ var i = 0;
98615
+ var len = list.length;
98616
+
98617
+ while (i < len && !(emphasisState = list[i].states.emphasis)) {
98618
+ i++;
98619
+ }
98620
+
98621
+ return emphasisState && emphasisState.hoverLayer;
98622
+ }
98623
+
98624
+ function dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId) {
98625
+ // If element hover will move to a hoverLayer.
98626
+ if (!isUseHoverLayer(api)) {
98627
+ api.dispatchAction({
98628
+ type: 'highlight',
98629
+ seriesName: seriesName,
98630
+ name: dataName,
98631
+ excludeSeriesId: excludeSeriesId
98632
+ });
98633
+ }
98634
+ }
98635
+
98636
+ function dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId) {
98637
+ // If element hover will move to a hoverLayer.
98638
+ if (!isUseHoverLayer(api)) {
98639
+ api.dispatchAction({
98640
+ type: 'downplay',
98641
+ seriesName: seriesName,
98642
+ name: dataName,
98643
+ excludeSeriesId: excludeSeriesId
98644
+ });
98645
+ }
98646
+ }
98647
+
98648
+ var LegendView$1 = LegendView;
98649
+
98650
+ /*
98651
+ * Licensed to the Apache Software Foundation (ASF) under one
98652
+ * or more contributor license agreements. See the NOTICE file
98653
+ * distributed with this work for additional information
98654
+ * regarding copyright ownership. The ASF licenses this file
98655
+ * to you under the Apache License, Version 2.0 (the
98656
+ * "License"); you may not use this file except in compliance
98657
+ * with the License. You may obtain a copy of the License at
98658
+ *
98659
+ * http://www.apache.org/licenses/LICENSE-2.0
98660
+ *
98661
+ * Unless required by applicable law or agreed to in writing,
98662
+ * software distributed under the License is distributed on an
98663
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
98664
+ * KIND, either express or implied. See the License for the
98665
+ * specific language governing permissions and limitations
98666
+ * under the License.
98667
+ */
98668
+
98669
+
98670
+ /**
98671
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
98672
+ */
98673
+
98674
+ /*
98675
+ * Licensed to the Apache Software Foundation (ASF) under one
98676
+ * or more contributor license agreements. See the NOTICE file
98677
+ * distributed with this work for additional information
98678
+ * regarding copyright ownership. The ASF licenses this file
98679
+ * to you under the Apache License, Version 2.0 (the
98680
+ * "License"); you may not use this file except in compliance
98681
+ * with the License. You may obtain a copy of the License at
98682
+ *
98683
+ * http://www.apache.org/licenses/LICENSE-2.0
98684
+ *
98685
+ * Unless required by applicable law or agreed to in writing,
98686
+ * software distributed under the License is distributed on an
98687
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
98688
+ * KIND, either express or implied. See the License for the
98689
+ * specific language governing permissions and limitations
98690
+ * under the License.
98691
+ */
98692
+ function legendFilter(ecModel) {
98693
+ var legendModels = ecModel.findComponents({
98694
+ mainType: 'legend'
98695
+ });
98696
+
98697
+ if (legendModels && legendModels.length) {
98698
+ ecModel.filterSeries(function (series) {
98699
+ // If in any legend component the status is not selected.
98700
+ // Because in legend series is assumed selected when it is not in the legend data.
98701
+ for (var i = 0; i < legendModels.length; i++) {
98702
+ if (!legendModels[i].isSelected(series.name)) {
98703
+ return false;
98704
+ }
98705
+ }
98706
+
98707
+ return true;
98708
+ });
98709
+ }
98710
+ }
98711
+
98712
+ function legendSelectActionHandler(methodName, payload, ecModel) {
98713
+ var selectedMap = {};
98714
+ var isToggleSelect = methodName === 'toggleSelected';
98715
+ var isSelected; // Update all legend components
98716
+
98717
+ ecModel.eachComponent('legend', function (legendModel) {
98718
+ if (isToggleSelect && isSelected != null) {
98719
+ // Force other legend has same selected status
98720
+ // Or the first is toggled to true and other are toggled to false
98721
+ // In the case one legend has some item unSelected in option. And if other legend
98722
+ // doesn't has the item, they will assume it is selected.
98723
+ legendModel[isSelected ? 'select' : 'unSelect'](payload.name);
98724
+ } else if (methodName === 'allSelect' || methodName === 'inverseSelect') {
98725
+ legendModel[methodName]();
98726
+ } else {
98727
+ legendModel[methodName](payload.name);
98728
+ isSelected = legendModel.isSelected(payload.name);
98729
+ }
98730
+
98731
+ var legendData = legendModel.getData();
98732
+ each$4(legendData, function (model) {
98733
+ var name = model.get('name'); // Wrap element
98734
+
98735
+ if (name === '\n' || name === '') {
98736
+ return;
98737
+ }
98738
+
98739
+ var isItemSelected = legendModel.isSelected(name);
98740
+
98741
+ if (selectedMap.hasOwnProperty(name)) {
98742
+ // Unselected if any legend is unselected
98743
+ selectedMap[name] = selectedMap[name] && isItemSelected;
98744
+ } else {
98745
+ selectedMap[name] = isItemSelected;
98746
+ }
98747
+ });
98748
+ }); // Return the event explicitly
98749
+
98750
+ return methodName === 'allSelect' || methodName === 'inverseSelect' ? {
98751
+ selected: selectedMap
98752
+ } : {
98753
+ name: payload.name,
98754
+ selected: selectedMap
98755
+ };
98756
+ }
98757
+
98758
+ function installLegendAction(registers) {
98759
+ /**
98760
+ * @event legendToggleSelect
98761
+ * @type {Object}
98762
+ * @property {string} type 'legendToggleSelect'
98763
+ * @property {string} [from]
98764
+ * @property {string} name Series name or data item name
98765
+ */
98766
+ registers.registerAction('legendToggleSelect', 'legendselectchanged', curry$1(legendSelectActionHandler, 'toggleSelected'));
98767
+ registers.registerAction('legendAllSelect', 'legendselectall', curry$1(legendSelectActionHandler, 'allSelect'));
98768
+ registers.registerAction('legendInverseSelect', 'legendinverseselect', curry$1(legendSelectActionHandler, 'inverseSelect'));
98769
+ /**
98770
+ * @event legendSelect
98771
+ * @type {Object}
98772
+ * @property {string} type 'legendSelect'
98773
+ * @property {string} name Series name or data item name
98774
+ */
98775
+
98776
+ registers.registerAction('legendSelect', 'legendselected', curry$1(legendSelectActionHandler, 'select'));
98777
+ /**
98778
+ * @event legendUnSelect
98779
+ * @type {Object}
98780
+ * @property {string} type 'legendUnSelect'
98781
+ * @property {string} name Series name or data item name
98782
+ */
98783
+
98784
+ registers.registerAction('legendUnSelect', 'legendunselected', curry$1(legendSelectActionHandler, 'unSelect'));
98785
+ }
98786
+
98787
+ function install$4(registers) {
98788
+ registers.registerComponentModel(LegendModel$1);
98789
+ registers.registerComponentView(LegendView$1);
98790
+ registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);
98791
+ registers.registerSubTypeDefaulter('legend', function () {
98792
+ return 'plain';
98793
+ });
98794
+ installLegendAction(registers);
98795
+ }
98796
+
98797
+ var ScrollableLegendModel =
98798
+ /** @class */
98799
+ function (_super) {
98800
+ __extends$1(ScrollableLegendModel, _super);
98801
+
98802
+ function ScrollableLegendModel() {
98803
+ var _this = _super !== null && _super.apply(this, arguments) || this;
98804
+
98805
+ _this.type = ScrollableLegendModel.type;
98806
+ return _this;
98807
+ }
98808
+ /**
98809
+ * @param {number} scrollDataIndex
98810
+ */
98811
+
98812
+
98813
+ ScrollableLegendModel.prototype.setScrollDataIndex = function (scrollDataIndex) {
98814
+ this.option.scrollDataIndex = scrollDataIndex;
98815
+ };
98816
+
98817
+ ScrollableLegendModel.prototype.init = function (option, parentModel, ecModel) {
98818
+ var inputPositionParams = getLayoutParams(option);
98819
+
98820
+ _super.prototype.init.call(this, option, parentModel, ecModel);
98821
+
98822
+ mergeAndNormalizeLayoutParams(this, option, inputPositionParams);
98823
+ };
98824
+ /**
98825
+ * @override
98826
+ */
98827
+
98828
+
98829
+ ScrollableLegendModel.prototype.mergeOption = function (option, ecModel) {
98830
+ _super.prototype.mergeOption.call(this, option, ecModel);
98831
+
98832
+ mergeAndNormalizeLayoutParams(this, this.option, option);
98833
+ };
98834
+
98835
+ ScrollableLegendModel.type = 'legend.scroll';
98836
+ ScrollableLegendModel.defaultOption = inheritDefaultOption(LegendModel$1.defaultOption, {
98837
+ scrollDataIndex: 0,
98838
+ pageButtonItemGap: 5,
98839
+ pageButtonGap: null,
98840
+ pageButtonPosition: 'end',
98841
+ pageFormatter: '{current}/{total}',
98842
+ pageIcons: {
98843
+ horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],
98844
+ vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']
98845
+ },
98846
+ pageIconColor: '#2f4554',
98847
+ pageIconInactiveColor: '#aaa',
98848
+ pageIconSize: 15,
98849
+ pageTextStyle: {
98850
+ color: '#333'
98851
+ },
98852
+ animationDurationUpdate: 800
98853
+ });
98854
+ return ScrollableLegendModel;
98855
+ }(LegendModel$1);
98856
+
98857
+ function mergeAndNormalizeLayoutParams(legendModel, target, raw) {
98858
+ var orient = legendModel.getOrient();
98859
+ var ignoreSize = [1, 1];
98860
+ ignoreSize[orient.index] = 0;
98861
+ mergeLayoutParam(target, raw, {
98862
+ type: 'box',
98863
+ ignoreSize: !!ignoreSize
98864
+ });
98865
+ }
98866
+
98867
+ var ScrollableLegendModel$1 = ScrollableLegendModel;
98868
+
98869
+ var Group = Group$3;
98870
+ var WH = ['width', 'height'];
98871
+ var XY = ['x', 'y'];
98872
+
98873
+ var ScrollableLegendView =
98874
+ /** @class */
98875
+ function (_super) {
98876
+ __extends$1(ScrollableLegendView, _super);
98877
+
98878
+ function ScrollableLegendView() {
98879
+ var _this = _super !== null && _super.apply(this, arguments) || this;
98880
+
98881
+ _this.type = ScrollableLegendView.type;
98882
+ _this.newlineDisabled = true;
98883
+ _this._currentIndex = 0;
98884
+ return _this;
98885
+ }
98886
+
98887
+ ScrollableLegendView.prototype.init = function () {
98888
+ _super.prototype.init.call(this);
98889
+
98890
+ this.group.add(this._containerGroup = new Group());
98891
+
98892
+ this._containerGroup.add(this.getContentGroup());
98893
+
98894
+ this.group.add(this._controllerGroup = new Group());
98895
+ };
98896
+ /**
98897
+ * @override
98898
+ */
98899
+
98900
+
98901
+ ScrollableLegendView.prototype.resetInner = function () {
98902
+ _super.prototype.resetInner.call(this);
98903
+
98904
+ this._controllerGroup.removeAll();
98905
+
98906
+ this._containerGroup.removeClipPath();
98907
+
98908
+ this._containerGroup.__rectSize = null;
98909
+ };
98910
+ /**
98911
+ * @override
98912
+ */
98913
+
98914
+
98915
+ ScrollableLegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) {
98916
+ var self = this; // Render content items.
98917
+
98918
+ _super.prototype.renderInner.call(this, itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);
98919
+
98920
+ var controllerGroup = this._controllerGroup; // FIXME: support be 'auto' adapt to size number text length,
98921
+ // e.g., '3/12345' should not overlap with the control arrow button.
98922
+
98923
+ var pageIconSize = legendModel.get('pageIconSize', true);
98924
+ var pageIconSizeArr = isArray(pageIconSize) ? pageIconSize : [pageIconSize, pageIconSize];
98925
+ createPageButton('pagePrev', 0);
98926
+ var pageTextStyleModel = legendModel.getModel('pageTextStyle');
98927
+ controllerGroup.add(new ZRText$1({
98928
+ name: 'pageText',
98929
+ style: {
98930
+ // Placeholder to calculate a proper layout.
98931
+ text: 'xx/xx',
98932
+ fill: pageTextStyleModel.getTextColor(),
98933
+ font: pageTextStyleModel.getFont(),
98934
+ verticalAlign: 'middle',
98935
+ align: 'center'
98936
+ },
98937
+ silent: true
98938
+ }));
98939
+ createPageButton('pageNext', 1);
98940
+
98941
+ function createPageButton(name, iconIdx) {
98942
+ var pageDataIndexName = name + 'DataIndex';
98943
+ var icon = createIcon(legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx], {
98944
+ // Buttons will be created in each render, so we do not need
98945
+ // to worry about avoiding using legendModel kept in scope.
98946
+ onclick: bind$1(self._pageGo, self, pageDataIndexName, legendModel, api)
98947
+ }, {
98948
+ x: -pageIconSizeArr[0] / 2,
98949
+ y: -pageIconSizeArr[1] / 2,
98950
+ width: pageIconSizeArr[0],
98951
+ height: pageIconSizeArr[1]
98952
+ });
98953
+ icon.name = name;
98954
+ controllerGroup.add(icon);
98955
+ }
98956
+ };
98957
+ /**
98958
+ * @override
98959
+ */
98960
+
98961
+
98962
+ ScrollableLegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) {
98963
+ var selectorGroup = this.getSelectorGroup();
98964
+ var orientIdx = legendModel.getOrient().index;
98965
+ var wh = WH[orientIdx];
98966
+ var xy = XY[orientIdx];
98967
+ var hw = WH[1 - orientIdx];
98968
+ var yx = XY[1 - orientIdx];
98969
+ selector && box( // Buttons in selectorGroup always layout horizontally
98970
+ 'horizontal', selectorGroup, legendModel.get('selectorItemGap', true));
98971
+ var selectorButtonGap = legendModel.get('selectorButtonGap', true);
98972
+ var selectorRect = selectorGroup.getBoundingRect();
98973
+ var selectorPos = [-selectorRect.x, -selectorRect.y];
98974
+ var processMaxSize = clone$3(maxSize);
98975
+ selector && (processMaxSize[wh] = maxSize[wh] - selectorRect[wh] - selectorButtonGap);
98976
+
98977
+ var mainRect = this._layoutContentAndController(legendModel, isFirstRender, processMaxSize, orientIdx, wh, hw, yx, xy);
98978
+
98979
+ if (selector) {
98980
+ if (selectorPosition === 'end') {
98981
+ selectorPos[orientIdx] += mainRect[wh] + selectorButtonGap;
98982
+ } else {
98983
+ var offset = selectorRect[wh] + selectorButtonGap;
98984
+ selectorPos[orientIdx] -= offset;
98985
+ mainRect[xy] -= offset;
98986
+ }
98987
+
98988
+ mainRect[wh] += selectorRect[wh] + selectorButtonGap;
98989
+ selectorPos[1 - orientIdx] += mainRect[yx] + mainRect[hw] / 2 - selectorRect[hw] / 2;
98990
+ mainRect[hw] = Math.max(mainRect[hw], selectorRect[hw]);
98991
+ mainRect[yx] = Math.min(mainRect[yx], selectorRect[yx] + selectorPos[1 - orientIdx]);
98992
+ selectorGroup.x = selectorPos[0];
98993
+ selectorGroup.y = selectorPos[1];
98994
+ selectorGroup.markRedraw();
98995
+ }
98996
+
98997
+ return mainRect;
98998
+ };
98999
+
99000
+ ScrollableLegendView.prototype._layoutContentAndController = function (legendModel, isFirstRender, maxSize, orientIdx, wh, hw, yx, xy) {
99001
+ var contentGroup = this.getContentGroup();
99002
+ var containerGroup = this._containerGroup;
99003
+ var controllerGroup = this._controllerGroup; // Place items in contentGroup.
99004
+
99005
+ box(legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), !orientIdx ? null : maxSize.width, orientIdx ? null : maxSize.height);
99006
+ box( // Buttons in controller are layout always horizontally.
99007
+ 'horizontal', controllerGroup, legendModel.get('pageButtonItemGap', true));
99008
+ var contentRect = contentGroup.getBoundingRect();
99009
+ var controllerRect = controllerGroup.getBoundingRect();
99010
+ var showController = this._showController = contentRect[wh] > maxSize[wh]; // In case that the inner elements of contentGroup layout do not based on [0, 0]
99011
+
99012
+ var contentPos = [-contentRect.x, -contentRect.y]; // Remain contentPos when scroll animation perfroming.
99013
+ // If first rendering, `contentGroup.position` is [0, 0], which
99014
+ // does not make sense and may cause unexepcted animation if adopted.
99015
+
99016
+ if (!isFirstRender) {
99017
+ contentPos[orientIdx] = contentGroup[xy];
99018
+ } // Layout container group based on 0.
99019
+
99020
+
99021
+ var containerPos = [0, 0];
99022
+ var controllerPos = [-controllerRect.x, -controllerRect.y];
99023
+ var pageButtonGap = retrieve2(legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true)); // Place containerGroup and controllerGroup and contentGroup.
99024
+
99025
+ if (showController) {
99026
+ var pageButtonPosition = legendModel.get('pageButtonPosition', true); // controller is on the right / bottom.
99027
+
99028
+ if (pageButtonPosition === 'end') {
99029
+ controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh];
99030
+ } // controller is on the left / top.
99031
+ else {
99032
+ containerPos[orientIdx] += controllerRect[wh] + pageButtonGap;
99033
+ }
99034
+ } // Always align controller to content as 'middle'.
99035
+
99036
+
99037
+ controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2;
99038
+ contentGroup.setPosition(contentPos);
99039
+ containerGroup.setPosition(containerPos);
99040
+ controllerGroup.setPosition(controllerPos); // Calculate `mainRect` and set `clipPath`.
99041
+ // mainRect should not be calculated by `this.group.getBoundingRect()`
99042
+ // for sake of the overflow.
99043
+
99044
+ var mainRect = {
99045
+ x: 0,
99046
+ y: 0
99047
+ }; // Consider content may be overflow (should be clipped).
99048
+
99049
+ mainRect[wh] = showController ? maxSize[wh] : contentRect[wh];
99050
+ mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]); // `containerRect[yx] + containerPos[1 - orientIdx]` is 0.
99051
+
99052
+ mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]);
99053
+ containerGroup.__rectSize = maxSize[wh];
99054
+
99055
+ if (showController) {
99056
+ var clipShape = {
99057
+ x: 0,
99058
+ y: 0
99059
+ };
99060
+ clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0);
99061
+ clipShape[hw] = mainRect[hw];
99062
+ containerGroup.setClipPath(new Rect$1({
99063
+ shape: clipShape
99064
+ })); // Consider content may be larger than container, container rect
99065
+ // can not be obtained from `containerGroup.getBoundingRect()`.
99066
+
99067
+ containerGroup.__rectSize = clipShape[wh];
99068
+ } else {
99069
+ // Do not remove or ignore controller. Keep them set as placeholders.
99070
+ controllerGroup.eachChild(function (child) {
99071
+ child.attr({
99072
+ invisible: true,
99073
+ silent: true
99074
+ });
99075
+ });
99076
+ } // Content translate animation.
99077
+
99078
+
99079
+ var pageInfo = this._getPageInfo(legendModel);
99080
+
99081
+ pageInfo.pageIndex != null && updateProps$1(contentGroup, {
99082
+ x: pageInfo.contentPosition[0],
99083
+ y: pageInfo.contentPosition[1]
99084
+ }, // When switch from "show controller" to "not show controller", view should be
99085
+ // updated immediately without animation, otherwise causes weird effect.
99086
+ showController ? legendModel : null);
99087
+
99088
+ this._updatePageInfoView(legendModel, pageInfo);
99089
+
99090
+ return mainRect;
99091
+ };
99092
+
99093
+ ScrollableLegendView.prototype._pageGo = function (to, legendModel, api) {
99094
+ var scrollDataIndex = this._getPageInfo(legendModel)[to];
99095
+
99096
+ scrollDataIndex != null && api.dispatchAction({
99097
+ type: 'legendScroll',
99098
+ scrollDataIndex: scrollDataIndex,
99099
+ legendId: legendModel.id
99100
+ });
99101
+ };
99102
+
99103
+ ScrollableLegendView.prototype._updatePageInfoView = function (legendModel, pageInfo) {
99104
+ var controllerGroup = this._controllerGroup;
99105
+ each$4(['pagePrev', 'pageNext'], function (name) {
99106
+ var key = name + 'DataIndex';
99107
+ var canJump = pageInfo[key] != null;
99108
+ var icon = controllerGroup.childOfName(name);
99109
+
99110
+ if (icon) {
99111
+ icon.setStyle('fill', canJump ? legendModel.get('pageIconColor', true) : legendModel.get('pageIconInactiveColor', true));
99112
+ icon.cursor = canJump ? 'pointer' : 'default';
99113
+ }
99114
+ });
99115
+ var pageText = controllerGroup.childOfName('pageText');
99116
+ var pageFormatter = legendModel.get('pageFormatter');
99117
+ var pageIndex = pageInfo.pageIndex;
99118
+ var current = pageIndex != null ? pageIndex + 1 : 0;
99119
+ var total = pageInfo.pageCount;
99120
+ pageText && pageFormatter && pageText.setStyle('text', isString(pageFormatter) ? pageFormatter.replace('{current}', current == null ? '' : current + '').replace('{total}', total == null ? '' : total + '') : pageFormatter({
99121
+ current: current,
99122
+ total: total
99123
+ }));
99124
+ };
99125
+ /**
99126
+ * contentPosition: Array.<number>, null when data item not found.
99127
+ * pageIndex: number, null when data item not found.
99128
+ * pageCount: number, always be a number, can be 0.
99129
+ * pagePrevDataIndex: number, null when no previous page.
99130
+ * pageNextDataIndex: number, null when no next page.
99131
+ * }
99132
+ */
99133
+
99134
+
99135
+ ScrollableLegendView.prototype._getPageInfo = function (legendModel) {
99136
+ var scrollDataIndex = legendModel.get('scrollDataIndex', true);
99137
+ var contentGroup = this.getContentGroup();
99138
+ var containerRectSize = this._containerGroup.__rectSize;
99139
+ var orientIdx = legendModel.getOrient().index;
99140
+ var wh = WH[orientIdx];
99141
+ var xy = XY[orientIdx];
99142
+
99143
+ var targetItemIndex = this._findTargetItemIndex(scrollDataIndex);
99144
+
99145
+ var children = contentGroup.children();
99146
+ var targetItem = children[targetItemIndex];
99147
+ var itemCount = children.length;
99148
+ var pCount = !itemCount ? 0 : 1;
99149
+ var result = {
99150
+ contentPosition: [contentGroup.x, contentGroup.y],
99151
+ pageCount: pCount,
99152
+ pageIndex: pCount - 1,
99153
+ pagePrevDataIndex: null,
99154
+ pageNextDataIndex: null
99155
+ };
99156
+
99157
+ if (!targetItem) {
99158
+ return result;
99159
+ }
99160
+
99161
+ var targetItemInfo = getItemInfo(targetItem);
99162
+ result.contentPosition[orientIdx] = -targetItemInfo.s; // Strategy:
99163
+ // (1) Always align based on the left/top most item.
99164
+ // (2) It is user-friendly that the last item shown in the
99165
+ // current window is shown at the begining of next window.
99166
+ // Otherwise if half of the last item is cut by the window,
99167
+ // it will have no chance to display entirely.
99168
+ // (3) Consider that item size probably be different, we
99169
+ // have calculate pageIndex by size rather than item index,
99170
+ // and we can not get page index directly by division.
99171
+ // (4) The window is to narrow to contain more than
99172
+ // one item, we should make sure that the page can be fliped.
99173
+
99174
+ for (var i = targetItemIndex + 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i <= itemCount; ++i) {
99175
+ currItemInfo = getItemInfo(children[i]);
99176
+
99177
+ if ( // Half of the last item is out of the window.
99178
+ !currItemInfo && winEndItemInfo.e > winStartItemInfo.s + containerRectSize || // If the current item does not intersect with the window, the new page
99179
+ // can be started at the current item or the last item.
99180
+ currItemInfo && !intersect(currItemInfo, winStartItemInfo.s)) {
99181
+ if (winEndItemInfo.i > winStartItemInfo.i) {
99182
+ winStartItemInfo = winEndItemInfo;
99183
+ } else {
99184
+ // e.g., when page size is smaller than item size.
99185
+ winStartItemInfo = currItemInfo;
99186
+ }
99187
+
99188
+ if (winStartItemInfo) {
99189
+ if (result.pageNextDataIndex == null) {
99190
+ result.pageNextDataIndex = winStartItemInfo.i;
99191
+ }
99192
+
99193
+ ++result.pageCount;
99194
+ }
99195
+ }
99196
+
99197
+ winEndItemInfo = currItemInfo;
99198
+ }
99199
+
99200
+ for (var i = targetItemIndex - 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i >= -1; --i) {
99201
+ currItemInfo = getItemInfo(children[i]);
99202
+
99203
+ if ( // If the the end item does not intersect with the window started
99204
+ // from the current item, a page can be settled.
99205
+ (!currItemInfo || !intersect(winEndItemInfo, currItemInfo.s)) && // e.g., when page size is smaller than item size.
99206
+ winStartItemInfo.i < winEndItemInfo.i) {
99207
+ winEndItemInfo = winStartItemInfo;
99208
+
99209
+ if (result.pagePrevDataIndex == null) {
99210
+ result.pagePrevDataIndex = winStartItemInfo.i;
99211
+ }
99212
+
99213
+ ++result.pageCount;
99214
+ ++result.pageIndex;
99215
+ }
99216
+
99217
+ winStartItemInfo = currItemInfo;
99218
+ }
99219
+
99220
+ return result;
99221
+
99222
+ function getItemInfo(el) {
99223
+ if (el) {
99224
+ var itemRect = el.getBoundingRect();
99225
+ var start = itemRect[xy] + el[xy];
99226
+ return {
99227
+ s: start,
99228
+ e: start + itemRect[wh],
99229
+ i: el.__legendDataIndex
99230
+ };
99231
+ }
99232
+ }
99233
+
99234
+ function intersect(itemInfo, winStart) {
99235
+ return itemInfo.e >= winStart && itemInfo.s <= winStart + containerRectSize;
99236
+ }
99237
+ };
99238
+
99239
+ ScrollableLegendView.prototype._findTargetItemIndex = function (targetDataIndex) {
99240
+ if (!this._showController) {
99241
+ return 0;
99242
+ }
99243
+
99244
+ var index;
99245
+ var contentGroup = this.getContentGroup();
99246
+ var defaultIndex;
99247
+ contentGroup.eachChild(function (child, idx) {
99248
+ var legendDataIdx = child.__legendDataIndex; // FIXME
99249
+ // If the given targetDataIndex (from model) is illegal,
99250
+ // we use defaultIndex. But the index on the legend model and
99251
+ // action payload is still illegal. That case will not be
99252
+ // changed until some scenario requires.
99253
+
99254
+ if (defaultIndex == null && legendDataIdx != null) {
99255
+ defaultIndex = idx;
99256
+ }
99257
+
99258
+ if (legendDataIdx === targetDataIndex) {
99259
+ index = idx;
99260
+ }
99261
+ });
99262
+ return index != null ? index : defaultIndex;
99263
+ };
99264
+
99265
+ ScrollableLegendView.type = 'legend.scroll';
99266
+ return ScrollableLegendView;
99267
+ }(LegendView$1);
99268
+
99269
+ var ScrollableLegendView$1 = ScrollableLegendView;
99270
+
99271
+ /*
99272
+ * Licensed to the Apache Software Foundation (ASF) under one
99273
+ * or more contributor license agreements. See the NOTICE file
99274
+ * distributed with this work for additional information
99275
+ * regarding copyright ownership. The ASF licenses this file
99276
+ * to you under the Apache License, Version 2.0 (the
99277
+ * "License"); you may not use this file except in compliance
99278
+ * with the License. You may obtain a copy of the License at
99279
+ *
99280
+ * http://www.apache.org/licenses/LICENSE-2.0
99281
+ *
99282
+ * Unless required by applicable law or agreed to in writing,
99283
+ * software distributed under the License is distributed on an
99284
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
99285
+ * KIND, either express or implied. See the License for the
99286
+ * specific language governing permissions and limitations
99287
+ * under the License.
99288
+ */
99289
+
99290
+
99291
+ /**
99292
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
99293
+ */
99294
+
99295
+ /*
99296
+ * Licensed to the Apache Software Foundation (ASF) under one
99297
+ * or more contributor license agreements. See the NOTICE file
99298
+ * distributed with this work for additional information
99299
+ * regarding copyright ownership. The ASF licenses this file
99300
+ * to you under the Apache License, Version 2.0 (the
99301
+ * "License"); you may not use this file except in compliance
99302
+ * with the License. You may obtain a copy of the License at
99303
+ *
99304
+ * http://www.apache.org/licenses/LICENSE-2.0
99305
+ *
99306
+ * Unless required by applicable law or agreed to in writing,
99307
+ * software distributed under the License is distributed on an
99308
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
99309
+ * KIND, either express or implied. See the License for the
99310
+ * specific language governing permissions and limitations
99311
+ * under the License.
99312
+ */
99313
+ function installScrollableLegendAction(registers) {
99314
+ /**
99315
+ * @event legendScroll
99316
+ * @type {Object}
99317
+ * @property {string} type 'legendScroll'
99318
+ * @property {string} scrollDataIndex
99319
+ */
99320
+ registers.registerAction('legendScroll', 'legendscroll', function (payload, ecModel) {
99321
+ var scrollDataIndex = payload.scrollDataIndex;
99322
+ scrollDataIndex != null && ecModel.eachComponent({
99323
+ mainType: 'legend',
99324
+ subType: 'scroll',
99325
+ query: payload
99326
+ }, function (legendModel) {
99327
+ legendModel.setScrollDataIndex(scrollDataIndex);
99328
+ });
99329
+ });
99330
+ }
99331
+
99332
+ function install$3(registers) {
99333
+ use(install$4);
99334
+ registers.registerComponentModel(ScrollableLegendModel$1);
99335
+ registers.registerComponentView(ScrollableLegendView$1);
99336
+ installScrollableLegendAction(registers);
99337
+ }
99338
+
99339
+ function install$2(registers) {
99340
+ use(install$4);
99341
+ use(install$3);
99342
+ }
99343
+
97800
99344
  var DatasetModel =
97801
99345
  /** @class */
97802
99346
  function (_super) {
@@ -98131,7 +99675,7 @@ var Layer = (function (_super) {
98131
99675
  doClear(0, 0, width, height);
98132
99676
  }
98133
99677
  else if (repaintRects.length) {
98134
- each$3(repaintRects, function (rect) {
99678
+ each$4(repaintRects, function (rect) {
98135
99679
  doClear(rect.x * dpr, rect.y * dpr, rect.width * dpr, rect.height * dpr);
98136
99680
  });
98137
99681
  }
@@ -98431,7 +99975,7 @@ var CanvasPainter = (function () {
98431
99975
  _loop_1(k);
98432
99976
  }
98433
99977
  if (env$1.wxa) {
98434
- each$3(this._layers, function (layer) {
99978
+ each$4(this._layers, function (layer) {
98435
99979
  if (layer && layer.ctx && layer.ctx.draw) {
98436
99980
  layer.ctx.draw();
98437
99981
  }
@@ -98645,7 +100189,7 @@ var CanvasPainter = (function () {
98645
100189
  };
98646
100190
  CanvasPainter.prototype.setBackgroundColor = function (backgroundColor) {
98647
100191
  this._backgroundColor = backgroundColor;
98648
- each$3(this._layers, function (layer) {
100192
+ each$4(this._layers, function (layer) {
98649
100193
  layer.setUnpainted();
98650
100194
  });
98651
100195
  };
@@ -98781,13 +100325,14 @@ var css$5 = ".BaseVerticalBarChart_module_root__db36f9d1 {\n width: \"100%\";\n
98781
100325
  var modules_8757388c = {"root":"BaseVerticalBarChart_module_root__db36f9d1"};
98782
100326
  n(css$5,{});
98783
100327
 
98784
- use([install$2, install$3, install$4, install$1, install$8, install]);
100328
+ use([install$5, install$6, install$7, install$1, install$2, install$b, install]);
98785
100329
  var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
98786
100330
  var _seriesOption$length, _seriesData$metaData$, _seriesData$metaData, _seriesData$metaData$2, _seriesData$chartData, _seriesData$chartData9;
98787
100331
  var title = props.title,
98788
100332
  gridContainLabel = props.gridContainLabel,
98789
100333
  gridOptions = props.gridOptions,
98790
100334
  xAxisShow = props.xAxisShow,
100335
+ xAxisLabel = props.xAxisLabel,
98791
100336
  seriesData = props.seriesData,
98792
100337
  onEvents = props.onEvents,
98793
100338
  yAxisLabelShow = props.yAxisLabelShow,
@@ -98795,6 +100340,7 @@ var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
98795
100340
  yAxisLineShow = props.yAxisLineShow,
98796
100341
  yAxisTickShow = props.yAxisTickShow,
98797
100342
  axisColor = props.axisColor,
100343
+ splitType = props.splitType,
98798
100344
  barWidth = props.barWidth,
98799
100345
  cursor = props.cursor,
98800
100346
  legend = props.legend,
@@ -98816,9 +100362,7 @@ var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
98816
100362
  },
98817
100363
  label: {
98818
100364
  color: 'black',
98819
- position: 'insideBottomLeft',
98820
- offset: [0, -10],
98821
- rotate: 90,
100365
+ position: 'outside',
98822
100366
  formatter: function formatter(param) {
98823
100367
  return param.value;
98824
100368
  },
@@ -98865,7 +100409,11 @@ var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
98865
100409
  xAxis: {
98866
100410
  data: Object.keys((_seriesData$chartData9 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData9 !== void 0 ? _seriesData$chartData9 : {}),
98867
100411
  show: xAxisShow,
98868
- type: 'category'
100412
+ type: 'category',
100413
+ axisTick: {
100414
+ show: false
100415
+ },
100416
+ axisLabel: _objectSpread2({}, xAxisLabel)
98869
100417
  },
98870
100418
  legend: _objectSpread2({}, legend),
98871
100419
  tooltip: _objectSpread2({}, tooltip),
@@ -98879,7 +100427,7 @@ var BaseVerticalBarChart = function BaseVerticalBarChart(props) {
98879
100427
  show: ySplitLineShow,
98880
100428
  lineStyle: {
98881
100429
  color: axisColor,
98882
- type: 'dashed'
100430
+ type: splitType
98883
100431
  }
98884
100432
  },
98885
100433
  axisLine: {
@@ -98904,6 +100452,7 @@ BaseVerticalBarChart.propTypes = {
98904
100452
  gridContainLabel: propTypes$1.exports.bool,
98905
100453
  gridOptions: propTypes$1.exports.object,
98906
100454
  xAxisShow: propTypes$1.exports.bool,
100455
+ xAxisLabel: propTypes$1.exports.object,
98907
100456
  tooltip: propTypes$1.exports.object,
98908
100457
  seriesData: propTypes$1.exports.shape({
98909
100458
  chartData: propTypes$1.exports.object,
@@ -98915,6 +100464,7 @@ BaseVerticalBarChart.propTypes = {
98915
100464
  yAxisLineShow: propTypes$1.exports.bool,
98916
100465
  yAxisTickShow: propTypes$1.exports.bool,
98917
100466
  axisColor: propTypes$1.exports.string,
100467
+ splitType: propTypes$1.exports.string,
98918
100468
  barWidth: propTypes$1.exports.string,
98919
100469
  legend: propTypes$1.exports.object,
98920
100470
  seriesName: propTypes$1.exports.func,
@@ -98933,7 +100483,14 @@ BaseVerticalBarChart.defaultProps = {
98933
100483
  bottom: 0,
98934
100484
  top: 5
98935
100485
  },
98936
- xAxisShow: false,
100486
+ xAxisShow: true,
100487
+ xAxisLabel: {
100488
+ show: true,
100489
+ rotate: 90,
100490
+ inside: true,
100491
+ verticalAlign: 'bottom',
100492
+ padding: [0, 0, 90, 0]
100493
+ },
98937
100494
  tooltip: {
98938
100495
  trigger: 'item'
98939
100496
  },
@@ -98944,6 +100501,7 @@ BaseVerticalBarChart.defaultProps = {
98944
100501
  yAxisLineShow: false,
98945
100502
  yAxisTickShow: false,
98946
100503
  axisColor: 'grey',
100504
+ splitType: 'dashed',
98947
100505
  barWidth: '50%',
98948
100506
  seriesName: function seriesName() {},
98949
100507
  legend: {
@@ -98965,7 +100523,7 @@ var css$4 = ".BaseHorizontalBarChart_module_root__75f8867a {\n width: \"100%\";
98965
100523
  var modules_8904c6a0 = {"root":"BaseHorizontalBarChart_module_root__75f8867a"};
98966
100524
  n(css$4,{});
98967
100525
 
98968
- use([install$2, install$3, install$4, install$1, install$8, install]);
100526
+ use([install$5, install$6, install$7, install$1, install$b, install]);
98969
100527
  var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
98970
100528
  var _seriesOption$length, _seriesData$metaData$, _seriesData$metaData, _seriesData$metaData$2, _seriesData$chartData, _seriesData$chartData9;
98971
100529
  var title = props.title,
@@ -99138,13 +100696,14 @@ var css$3 = ".BasePieChart_module_root__45f70e28 {\n width: \"100%\";\n}";
99138
100696
  var modules_c20882aa = {"root":"BasePieChart_module_root__45f70e28"};
99139
100697
  n(css$3,{});
99140
100698
 
99141
- use([install$2, install$3, install$4, install$1, install$7, install]);
100699
+ use([install$5, install$6, install$7, install$1, install$a, install, install$2]);
99142
100700
  var BasePieChart = function BasePieChart(props) {
99143
100701
  var _seriesData$chartData;
99144
100702
  var title = props.title,
99145
100703
  gridOptions = props.gridOptions,
99146
100704
  tooltip = props.tooltip,
99147
100705
  seriesData = props.seriesData,
100706
+ startAngle = props.startAngle,
99148
100707
  semiDoughnut = props.semiDoughnut,
99149
100708
  radius = props.radius,
99150
100709
  cursor = props.cursor,
@@ -99177,16 +100736,17 @@ var BasePieChart = function BasePieChart(props) {
99177
100736
  var _seriesData$chartData3, _seriesData$chartData7;
99178
100737
  var semiDoughnutValue = 0;
99179
100738
  return _objectSpread2(_objectSpread2(_objectSpread2({}, seriesOptionObject), seriesOption), {}, {
99180
- startAngle: semiDoughnut ? 180 : 90,
100739
+ startAngle: semiDoughnut ? 180 : startAngle,
99181
100740
  data: semiDoughnut ? [].concat(_toConsumableArray$1(Object.keys((_seriesData$chartData3 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData3 !== void 0 ? _seriesData$chartData3 : {}).map(function (key, subIndex) {
99182
- var _seriesData$chartData4, _seriesData$chartData5, _seriesData$chartData6, _seriesData$metaData, _seriesOption$subInde, _seriesOption$subInde2, _seriesOption$subInde3, _seriesOption$subInde4;
100741
+ var _seriesData$chartData4, _seriesData$chartData5, _seriesData$chartData6, _seriesData$metaData, _seriesOption$subInde, _seriesOption$subInde2, _seriesOption$subInde3, _seriesOption$subInde4, _seriesOption$subInde5;
99183
100742
  semiDoughnutValue += (_seriesData$chartData4 = seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData5 = seriesData.chartData) === null || _seriesData$chartData5 === void 0 ? void 0 : _seriesData$chartData5[key]) !== null && _seriesData$chartData4 !== void 0 ? _seriesData$chartData4 : 0;
99184
100743
  return {
99185
100744
  value: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData6 = seriesData.chartData) === null || _seriesData$chartData6 === void 0 ? void 0 : _seriesData$chartData6[key],
99186
100745
  name: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$metaData = seriesData.metaData) === null || _seriesData$metaData === void 0 ? void 0 : _seriesData$metaData.keyData[key],
99187
100746
  itemStyle: _objectSpread2({}, (_seriesOption$subInde = seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde2 = seriesOption[subIndex]) === null || _seriesOption$subInde2 === void 0 ? void 0 : _seriesOption$subInde2.itemStyle) !== null && _seriesOption$subInde !== void 0 ? _seriesOption$subInde : {}),
99188
100747
  label: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde3 = seriesOption[subIndex]) === null || _seriesOption$subInde3 === void 0 ? void 0 : _seriesOption$subInde3.label),
99189
- tooltip: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde4 = seriesOption[subIndex]) === null || _seriesOption$subInde4 === void 0 ? void 0 : _seriesOption$subInde4.tooltip)
100748
+ tooltip: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde4 = seriesOption[subIndex]) === null || _seriesOption$subInde4 === void 0 ? void 0 : _seriesOption$subInde4.tooltip),
100749
+ emphasis: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde5 = seriesOption[subIndex]) === null || _seriesOption$subInde5 === void 0 ? void 0 : _seriesOption$subInde5.emphasis)
99190
100750
  };
99191
100751
  })), [{
99192
100752
  value: semiDoughnutValue,
@@ -99198,13 +100758,13 @@ var BasePieChart = function BasePieChart(props) {
99198
100758
  show: false
99199
100759
  }
99200
100760
  }]) : Object.keys((_seriesData$chartData7 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData7 !== void 0 ? _seriesData$chartData7 : {}).map(function (key, subIndex) {
99201
- var _seriesData$chartData8, _seriesData$metaData2, _seriesData$metaData3, _seriesOption$subInde5, _seriesOption$subInde6, _seriesOption$subInde7;
100761
+ var _seriesData$chartData8, _seriesData$metaData2, _seriesData$metaData3, _seriesOption$subInde6, _seriesOption$subInde7, _seriesOption$subInde8;
99202
100762
  return {
99203
100763
  value: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$chartData8 = seriesData.chartData) === null || _seriesData$chartData8 === void 0 ? void 0 : _seriesData$chartData8[key],
99204
100764
  name: seriesData === null || seriesData === void 0 ? void 0 : (_seriesData$metaData2 = seriesData.metaData) === null || _seriesData$metaData2 === void 0 ? void 0 : (_seriesData$metaData3 = _seriesData$metaData2.keyData) === null || _seriesData$metaData3 === void 0 ? void 0 : _seriesData$metaData3[key],
99205
- itemStyle: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde5 = seriesOption[subIndex]) === null || _seriesOption$subInde5 === void 0 ? void 0 : _seriesOption$subInde5.itemStyle),
99206
- label: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde6 = seriesOption[subIndex]) === null || _seriesOption$subInde6 === void 0 ? void 0 : _seriesOption$subInde6.label),
99207
- tooltip: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde7 = seriesOption[subIndex]) === null || _seriesOption$subInde7 === void 0 ? void 0 : _seriesOption$subInde7.tooltip)
100765
+ itemStyle: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde6 = seriesOption[subIndex]) === null || _seriesOption$subInde6 === void 0 ? void 0 : _seriesOption$subInde6.itemStyle),
100766
+ label: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde7 = seriesOption[subIndex]) === null || _seriesOption$subInde7 === void 0 ? void 0 : _seriesOption$subInde7.label),
100767
+ tooltip: _objectSpread2({}, seriesOption === null || seriesOption === void 0 ? void 0 : (_seriesOption$subInde8 = seriesOption[subIndex]) === null || _seriesOption$subInde8 === void 0 ? void 0 : _seriesOption$subInde8.tooltip)
99208
100768
  };
99209
100769
  })
99210
100770
  });
@@ -99234,6 +100794,7 @@ BasePieChart.propTypes = {
99234
100794
  chartData: propTypes$1.exports.object,
99235
100795
  metaData: propTypes$1.exports.object
99236
100796
  }),
100797
+ startAngle: propTypes$1.exports.number,
99237
100798
  semiDoughnut: propTypes$1.exports.bool,
99238
100799
  cursor: propTypes$1.exports.string,
99239
100800
  radius: propTypes$1.exports.arrayOf(propTypes$1.exports.string),
@@ -99256,6 +100817,7 @@ BasePieChart.defaultProps = {
99256
100817
  trigger: 'item'
99257
100818
  },
99258
100819
  seriesData: {},
100820
+ startAngle: 90,
99259
100821
  semiDoughnut: true,
99260
100822
  cursor: 'default',
99261
100823
  radius: ['30%', '60%'],