@visactor/vchart 1.6.1-alpha.0 → 1.6.1

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.
Files changed (107) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +108 -117
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/component/marker/mark-point/interface/spec.d.ts +2 -2
  6. package/cjs/component/marker/mark-point/interface/spec.js.map +1 -1
  7. package/cjs/component/marker/mark-point/interface/theme.d.ts +5 -5
  8. package/cjs/component/marker/mark-point/interface/theme.js.map +1 -1
  9. package/cjs/core/index.d.ts +1 -1
  10. package/cjs/core/index.js +1 -1
  11. package/cjs/core/index.js.map +1 -1
  12. package/cjs/layout/grid-layout/grid-layout.js +4 -4
  13. package/cjs/layout/grid-layout/grid-layout.js.map +1 -1
  14. package/cjs/theme/builtin/common/component/axis/cartesian-axis.js +2 -2
  15. package/cjs/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
  16. package/cjs/theme/builtin/common/component/axis/common-axis.js +1 -1
  17. package/cjs/theme/builtin/common/component/axis/common-axis.js.map +1 -1
  18. package/cjs/theme/builtin/common/component/crosshair.js +5 -5
  19. package/cjs/theme/builtin/common/component/crosshair.js.map +1 -1
  20. package/cjs/theme/builtin/common/component/data-zoom.js +10 -10
  21. package/cjs/theme/builtin/common/component/data-zoom.js.map +1 -1
  22. package/cjs/theme/builtin/common/component/indicator.js +1 -1
  23. package/cjs/theme/builtin/common/component/indicator.js.map +1 -1
  24. package/cjs/theme/builtin/common/component/legend/color-legend.js +4 -3
  25. package/cjs/theme/builtin/common/component/legend/color-legend.js.map +1 -1
  26. package/cjs/theme/builtin/common/component/legend/discrete-legend.js +2 -2
  27. package/cjs/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  28. package/cjs/theme/builtin/common/component/legend/size-legend.js +6 -6
  29. package/cjs/theme/builtin/common/component/legend/size-legend.js.map +1 -1
  30. package/cjs/theme/builtin/common/component/map-label.js.map +1 -1
  31. package/cjs/theme/builtin/common/component/mark-area.js.map +1 -1
  32. package/cjs/theme/builtin/common/component/mark-line.js +9 -9
  33. package/cjs/theme/builtin/common/component/mark-line.js.map +1 -1
  34. package/cjs/theme/builtin/common/component/mark-point.js +3 -15
  35. package/cjs/theme/builtin/common/component/mark-point.js.map +1 -1
  36. package/cjs/theme/builtin/common/component/player.js +7 -7
  37. package/cjs/theme/builtin/common/component/player.js.map +1 -1
  38. package/cjs/theme/builtin/common/component/poptip.js +4 -3
  39. package/cjs/theme/builtin/common/component/poptip.js.map +1 -1
  40. package/cjs/theme/builtin/common/component/scroll-bar.js +1 -1
  41. package/cjs/theme/builtin/common/component/scroll-bar.js.map +1 -1
  42. package/cjs/theme/builtin/common/component/title.js +1 -1
  43. package/cjs/theme/builtin/common/component/title.js.map +1 -1
  44. package/cjs/theme/builtin/common/component/tooltip.js +4 -3
  45. package/cjs/theme/builtin/common/component/tooltip.js.map +1 -1
  46. package/cjs/theme/builtin/common/component/total-label.js.map +1 -1
  47. package/cjs/theme/builtin/common/mark.js.map +1 -1
  48. package/cjs/theme/builtin/common/series/rangeColumn.js +1 -1
  49. package/cjs/theme/builtin/common/series/rangeColumn.js.map +1 -1
  50. package/cjs/theme/builtin/dark/color-scheme.js +12 -19
  51. package/cjs/theme/builtin/dark/color-scheme.js.map +1 -1
  52. package/cjs/theme/builtin/light/color-scheme.js +11 -18
  53. package/cjs/theme/builtin/light/color-scheme.js.map +1 -1
  54. package/cjs/theme/color-scheme/builtin/interface.d.ts +9 -16
  55. package/cjs/theme/color-scheme/builtin/interface.js.map +1 -1
  56. package/esm/component/marker/mark-point/interface/spec.d.ts +2 -2
  57. package/esm/component/marker/mark-point/interface/spec.js.map +1 -1
  58. package/esm/component/marker/mark-point/interface/theme.d.ts +5 -5
  59. package/esm/component/marker/mark-point/interface/theme.js.map +1 -1
  60. package/esm/core/index.d.ts +1 -1
  61. package/esm/core/index.js +1 -1
  62. package/esm/core/index.js.map +1 -1
  63. package/esm/layout/grid-layout/grid-layout.js +4 -4
  64. package/esm/layout/grid-layout/grid-layout.js.map +1 -1
  65. package/esm/theme/builtin/common/component/axis/cartesian-axis.js +2 -2
  66. package/esm/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
  67. package/esm/theme/builtin/common/component/axis/common-axis.js +1 -1
  68. package/esm/theme/builtin/common/component/axis/common-axis.js.map +1 -1
  69. package/esm/theme/builtin/common/component/crosshair.js +5 -5
  70. package/esm/theme/builtin/common/component/crosshair.js.map +1 -1
  71. package/esm/theme/builtin/common/component/data-zoom.js +10 -10
  72. package/esm/theme/builtin/common/component/data-zoom.js.map +1 -1
  73. package/esm/theme/builtin/common/component/indicator.js +1 -1
  74. package/esm/theme/builtin/common/component/indicator.js.map +1 -1
  75. package/esm/theme/builtin/common/component/legend/color-legend.js +4 -3
  76. package/esm/theme/builtin/common/component/legend/color-legend.js.map +1 -1
  77. package/esm/theme/builtin/common/component/legend/discrete-legend.js +2 -2
  78. package/esm/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  79. package/esm/theme/builtin/common/component/legend/size-legend.js +6 -6
  80. package/esm/theme/builtin/common/component/legend/size-legend.js.map +1 -1
  81. package/esm/theme/builtin/common/component/map-label.js.map +1 -1
  82. package/esm/theme/builtin/common/component/mark-area.js.map +1 -1
  83. package/esm/theme/builtin/common/component/mark-line.js +9 -9
  84. package/esm/theme/builtin/common/component/mark-line.js.map +1 -1
  85. package/esm/theme/builtin/common/component/mark-point.js +3 -15
  86. package/esm/theme/builtin/common/component/mark-point.js.map +1 -1
  87. package/esm/theme/builtin/common/component/player.js +7 -7
  88. package/esm/theme/builtin/common/component/player.js.map +1 -1
  89. package/esm/theme/builtin/common/component/poptip.js +4 -3
  90. package/esm/theme/builtin/common/component/poptip.js.map +1 -1
  91. package/esm/theme/builtin/common/component/scroll-bar.js +1 -1
  92. package/esm/theme/builtin/common/component/scroll-bar.js.map +1 -1
  93. package/esm/theme/builtin/common/component/title.js +1 -1
  94. package/esm/theme/builtin/common/component/title.js.map +1 -1
  95. package/esm/theme/builtin/common/component/tooltip.js +4 -3
  96. package/esm/theme/builtin/common/component/tooltip.js.map +1 -1
  97. package/esm/theme/builtin/common/component/total-label.js.map +1 -1
  98. package/esm/theme/builtin/common/mark.js.map +1 -1
  99. package/esm/theme/builtin/common/series/rangeColumn.js +1 -1
  100. package/esm/theme/builtin/common/series/rangeColumn.js.map +1 -1
  101. package/esm/theme/builtin/dark/color-scheme.js +12 -19
  102. package/esm/theme/builtin/dark/color-scheme.js.map +1 -1
  103. package/esm/theme/builtin/light/color-scheme.js +11 -18
  104. package/esm/theme/builtin/light/color-scheme.js.map +1 -1
  105. package/esm/theme/color-scheme/builtin/interface.d.ts +9 -16
  106. package/esm/theme/color-scheme/builtin/interface.js.map +1 -1
  107. package/package.json +7 -7
package/build/index.js CHANGED
@@ -6889,31 +6889,24 @@
6889
6889
  palette: {
6890
6890
  backgroundColor: '#ffffff',
6891
6891
  borderColor: '#e3e5e8',
6892
- shadowColor: 'rgba(33,37,44,0.1)',
6893
- hoverBackgroundColor: '#f1f2f5',
6894
- sliderRailColor: '#f1f3f4',
6895
- sliderHandleColor: '#ffffff',
6896
- sliderTrackColor: '#0040ff',
6897
- popupBackgroundColor: '#ffffff',
6892
+ shadowColor: '#21252c',
6898
6893
  primaryFontColor: '#21252c',
6899
6894
  secondaryFontColor: '#606773',
6900
- tertiaryFontColor: '#89909d',
6901
- axisLabelFontColor: '#89909d',
6895
+ axisFontColor: '#89909d',
6902
6896
  disableFontColor: '#bcc1cb',
6903
- axisMarkerFontColor: '#ffffff',
6897
+ labelReverseFontColor: '#ffffff',
6904
6898
  axisGridColor: '#f1f2f5',
6905
6899
  axisDomainColor: '#d9dde4',
6906
- dataZoomHandleStrokeColor: '#aeb5be',
6900
+ dataZoomHandlerStrokeColor: '#aeb5be',
6901
+ dataZoomHandlerFillColor: '#ffffff',
6902
+ dataZoomBackgroundColor: '#f1f3f4',
6907
6903
  dataZoomChartColor: '#c9ced8',
6908
- playerControllerColor: '#0040ff',
6904
+ dataZoomSelectedColor: '#0040ff',
6909
6905
  scrollBarSliderColor: '#000000',
6910
- axisMarkerBackgroundColor: '#21252c',
6911
- markLabelBackgroundColor: '#f1f2f5',
6912
- markLineStrokeColor: '#606773',
6913
- dangerColor: '#e33232',
6914
- warningColor: '#ffc528',
6915
- successColor: '#07a35a',
6916
- infoColor: '#3073f2'
6906
+ tooltipBackgroundColor: '#ffffff',
6907
+ markLabelBackgroundColor: '#ffc528',
6908
+ titleFontColor: '#21252c',
6909
+ labelFontColor: '#89909d'
6917
6910
  }
6918
6911
  }
6919
6912
  };
@@ -13749,13 +13742,12 @@
13749
13742
  };
13750
13743
  }
13751
13744
  onBind() {
13752
- var _a, _b, _c, _d, _e, _f;
13753
- this.fromNumber = isNumber$2(null === (_a = this.from) || void 0 === _a ? void 0 : _a.text) ? null === (_b = this.from) || void 0 === _b ? void 0 : _b.text : Number.parseFloat(null === (_c = this.from) || void 0 === _c ? void 0 : _c.text), this.toNumber = isNumber$2(null === (_d = this.to) || void 0 === _d ? void 0 : _d.text) ? null === (_e = this.to) || void 0 === _e ? void 0 : _e.text : Number.parseFloat(null === (_f = this.to) || void 0 === _f ? void 0 : _f.text), Number.isFinite(this.toNumber) || (this.fromNumber = 0), Number.isFinite(this.toNumber) || (this.valid = !1);
13745
+ var _a, _b, _c, _d, _e, _f, _g, _h;
13746
+ this.fromNumber = isNumber$2(null === (_a = this.from) || void 0 === _a ? void 0 : _a.text) ? null === (_b = this.from) || void 0 === _b ? void 0 : _b.text : Number.parseFloat(null === (_c = this.from) || void 0 === _c ? void 0 : _c.text), this.toNumber = isNumber$2(null === (_d = this.to) || void 0 === _d ? void 0 : _d.text) ? null === (_e = this.to) || void 0 === _e ? void 0 : _e.text : Number.parseFloat(null === (_f = this.to) || void 0 === _f ? void 0 : _f.text), Number.isFinite(this.toNumber) || (this.fromNumber = 0), Number.isFinite(this.toNumber) || (this.valid = !1), !1 !== this.valid && (this.decimalLength = null !== (_h = null === (_g = this.params) || void 0 === _g ? void 0 : _g.fixed) && void 0 !== _h ? _h : Math.max(getDecimalPlaces(this.fromNumber), getDecimalPlaces(this.toNumber)));
13754
13747
  }
13755
13748
  onEnd() {}
13756
13749
  onUpdate(end, ratio, out) {
13757
- var _a, _b;
13758
- !1 !== this.valid && (out.text = end ? this.toNumber.toFixed() : (this.fromNumber + (this.toNumber - this.fromNumber) * ratio).toFixed(null !== (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.fixed) && void 0 !== _b ? _b : 0));
13750
+ !1 !== this.valid && (out.text = end ? this.toNumber : (this.fromNumber + (this.toNumber - this.fromNumber) * ratio).toFixed(this.decimalLength));
13759
13751
  }
13760
13752
  }
13761
13753
  var Direction$1;
@@ -31834,7 +31826,7 @@
31834
31826
  var _a;
31835
31827
  this.setAttribute("pickable", !1);
31836
31828
  const markerVisible = null === (_a = this.attribute.visible) || void 0 === _a || _a;
31837
- !1 === this.attribute.interactive && this.setAttribute("childrenPickable", !1), markerVisible && (this._container ? (this._updateContainer(), this.updateMarker()) : (this._initContainer(), this.initMarker(this._container)));
31829
+ !1 === this.attribute.interactive && this.setAttribute("childrenPickable", !1), markerVisible && (!this._container && this.isValidPoints() ? (this._initContainer(), this.initMarker(this._container)) : this.isValidPoints() ? (this._updateContainer(), this.updateMarker()) : (this._container = null, this.removeAllChild()));
31838
31830
  }
31839
31831
  }
31840
31832
 
@@ -32093,7 +32085,7 @@
32093
32085
  return this._label;
32094
32086
  }
32095
32087
  constructor(attributes) {
32096
- super(merge$1({}, MarkLine.defaultAttributes, attributes));
32088
+ super(merge$1({}, MarkLine.defaultAttributes, attributes)), this.name = "markLine";
32097
32089
  }
32098
32090
  setLabelPos() {
32099
32091
  var _a, _b;
@@ -32185,6 +32177,12 @@
32185
32177
  dy: 0
32186
32178
  }, label)), this.setLabelPos();
32187
32179
  }
32180
+ isValidPoints() {
32181
+ const {
32182
+ points: points
32183
+ } = this.attribute;
32184
+ return !(!points || points.length < 2);
32185
+ }
32188
32186
  };
32189
32187
  MarkLine$1.defaultAttributes = DEFAULT_MARK_LINE_THEME;
32190
32188
 
@@ -32196,7 +32194,7 @@
32196
32194
  return this._label;
32197
32195
  }
32198
32196
  constructor(attributes) {
32199
- super(merge$1({}, MarkArea.defaultAttributes, attributes));
32197
+ super(merge$1({}, MarkArea.defaultAttributes, attributes)), this.name = "markArea";
32200
32198
  }
32201
32199
  _getPositionByDirection(area, direction) {
32202
32200
  const {
@@ -32275,12 +32273,18 @@
32275
32273
  dy: 0
32276
32274
  }, label)), this.setLabelPos();
32277
32275
  }
32276
+ isValidPoints() {
32277
+ const {
32278
+ points: points
32279
+ } = this.attribute;
32280
+ return !(!points || points.length < 3);
32281
+ }
32278
32282
  };
32279
32283
  MarkArea$1.defaultAttributes = DEFAULT_MARK_AREA_THEME;
32280
32284
 
32281
32285
  let MarkPoint$1 = class MarkPoint extends Marker {
32282
32286
  constructor(attributes) {
32283
- super(merge$1({}, MarkPoint.defaultAttributes, attributes));
32287
+ super(merge$1({}, MarkPoint.defaultAttributes, attributes)), this.name = "markPoint";
32284
32288
  }
32285
32289
  setLabelPos() {}
32286
32290
  setItemAttributes(item, itemContent, itemPosition, itemType) {
@@ -32439,6 +32443,9 @@
32439
32443
  };
32440
32444
  this.setItemLineAttr(itemLine, position, itemPosition, null == itemLine ? void 0 : itemLine.visible), this.setDecorativeLineAttr(itemLine, itemPosition, null === (_a = null == itemLine ? void 0 : itemLine.decorativeLine) || void 0 === _a ? void 0 : _a.visible), this.setItemAttributes(this._item, itemContent, itemPosition, type);
32441
32445
  }
32446
+ isValidPoints() {
32447
+ return !0;
32448
+ }
32442
32449
  };
32443
32450
  MarkPoint$1.defaultAttributes = DEFAULT_MARK_POINT_THEME;
32444
32451
 
@@ -33989,8 +33996,8 @@
33989
33996
  } else niceType = "all";
33990
33997
  if (niceType) {
33991
33998
  const niceDomain = nice(originalDomain.slice(), {
33992
- floor: x => this._pows(Math.floor(this._logs(x))),
33993
- ceil: x => this._pows(Math.ceil(this._logs(x)))
33999
+ floor: x => Math.floor(x),
34000
+ ceil: x => Math.ceil(x)
33994
34001
  });
33995
34002
  return "min" === niceType ? niceDomain[niceDomain.length - 1] = null !== (_a = niceMinMax[1]) && void 0 !== _a ? _a : niceDomain[niceDomain.length - 1] : "max" === niceType && (niceDomain[0] = null !== (_b = niceMinMax[0]) && void 0 !== _b ? _b : niceDomain[0]), this._niceDomain = niceDomain, this.rescale(), this;
33996
34003
  }
@@ -34185,8 +34192,8 @@
34185
34192
  } else niceType = "all";
34186
34193
  if (niceType) {
34187
34194
  const niceDomain = nice(originalDomain.slice(), {
34188
- floor: x => this.untransformer(Math.floor(this.transformer(x))),
34189
- ceil: x => this.untransformer(Math.ceil(this.transformer(x)))
34195
+ floor: x => Math.floor(x),
34196
+ ceil: x => Math.ceil(x)
34190
34197
  });
34191
34198
  return "min" === niceType ? niceDomain[niceDomain.length - 1] = null !== (_a = niceMinMax[1]) && void 0 !== _a ? _a : niceDomain[niceDomain.length - 1] : "max" === niceType && (niceDomain[0] = null !== (_b = niceMinMax[0]) && void 0 !== _b ? _b : niceDomain[0]), this._niceDomain = niceDomain, this.rescale(), this;
34192
34199
  }
@@ -35179,7 +35186,7 @@
35179
35186
  subtextWidth = this._subTitle ? null === (_1 = this._subTitle) || void 0 === _1 ? void 0 : _1.AABBBounds.width() : 0;
35180
35187
  let titleWidth = Math.max(maintextWidth, subtextWidth),
35181
35188
  titleHeight = maintextHeight + (null !== (_2 = null == subtextStyle ? void 0 : subtextStyle.height) && void 0 !== _2 ? _2 : subtextHeight);
35182
- if (isValid$1(width) && (titleWidth = width, null === (_3 = this._mainTitle) || void 0 === _3 || _3.setAttribute("maxLineWidth", width), null === (_4 = this._subTitle) || void 0 === _4 || _4.setAttribute("maxLineWidth", width)), isValid$1(height) && (titleHeight = height), isValid$1(minWidth) && titleWidth < minWidth && (titleWidth = minWidth), isValid$1(maxWidth) && (null === (_5 = this._mainTitle) || void 0 === _5 || _5.setAttribute("maxLineWidth", maxWidth), null === (_6 = this._subTitle) || void 0 === _6 || _6.setAttribute("maxLineWidth", maxWidth), null === (_7 = this._mainTitle) || void 0 === _7 || _7.setAttribute("maxWidth", maxWidth), null === (_8 = this._subTitle) || void 0 === _8 || _8.setAttribute("maxWidth", maxWidth), titleWidth > maxWidth && (titleWidth = maxWidth)), isValid$1(minHeight) && titleHeight < minHeight && (titleHeight = minHeight), isValid$1(maxHeight) && (null === (_9 = this._mainTitle) || void 0 === _9 || _9.setAttribute("maxHeight", maxHeight), null === (_10 = this._subTitle) || void 0 === _10 || _10.setAttribute("maxHeight", maxHeight - maintextHeight), titleHeight > maxHeight && (titleHeight = maxHeight)), group.attribute.width = titleWidth + parsedPadding[1] + parsedPadding[3], group.attribute.height = titleHeight + parsedPadding[0] + parsedPadding[2], isValid$1(align) || isValid$1(null == textStyle ? void 0 : textStyle.align)) {
35189
+ if (isValid$1(width) && (titleWidth = width, null === (_3 = this._mainTitle) || void 0 === _3 || _3.setAttribute("maxLineWidth", width), null === (_4 = this._subTitle) || void 0 === _4 || _4.setAttribute("maxLineWidth", width)), isValid$1(height) && (titleHeight = height), isValid$1(minWidth) && titleWidth < minWidth && (titleWidth = minWidth), isValid$1(maxWidth) && (null === (_5 = this._mainTitle) || void 0 === _5 || _5.setAttribute("maxLineWidth", maxWidth), null === (_6 = this._subTitle) || void 0 === _6 || _6.setAttribute("maxLineWidth", maxWidth), null === (_7 = this._mainTitle) || void 0 === _7 || _7.setAttribute("maxWidth", maxWidth), null === (_8 = this._subTitle) || void 0 === _8 || _8.setAttribute("maxWidth", maxWidth), titleWidth > maxWidth && (titleWidth = maxWidth)), isValid$1(minHeight) && titleHeight < minHeight && (titleHeight = minHeight), isValid$1(maxHeight) && (null === (_9 = this._mainTitle) || void 0 === _9 || _9.setAttribute("maxHeight", maxHeight), null === (_10 = this._subTitle) || void 0 === _10 || _10.setAttribute("maxHeight", maxHeight - maintextHeight), titleHeight > maxHeight && (titleHeight = maxHeight)), group.attribute.width = titleWidth, group.attribute.height = titleHeight, group.attribute.boundsPadding = parsedPadding, isValid$1(align) || isValid$1(null == textStyle ? void 0 : textStyle.align)) {
35183
35190
  const mainTitleAlign = (null == textStyle ? void 0 : textStyle.align) ? null == textStyle ? void 0 : textStyle.align : align,
35184
35191
  mainTitleWidth = null !== (_11 = null == textStyle ? void 0 : textStyle.width) && void 0 !== _11 ? _11 : maintextWidth;
35185
35192
  "left" === mainTitleAlign ? (null === (_12 = this._mainTitle) || void 0 === _12 || _12.setAttribute("x", 0), null === (_13 = this._mainTitle) || void 0 === _13 || _13.setAttribute("textAlign", "left")) : "center" === mainTitleAlign ? (null === (_14 = this._mainTitle) || void 0 === _14 || _14.setAttribute("x", mainTitleWidth / 2), null === (_15 = this._mainTitle) || void 0 === _15 || _15.setAttribute("textAlign", "center")) : "right" === mainTitleAlign && (null === (_16 = this._mainTitle) || void 0 === _16 || _16.setAttribute("x", mainTitleWidth), null === (_17 = this._mainTitle) || void 0 === _17 || _17.setAttribute("textAlign", "right"));
@@ -38175,7 +38182,7 @@
38175
38182
  return 0;
38176
38183
  }
38177
38184
  getStaticCanvasCount() {
38178
- return 1;
38185
+ return 999;
38179
38186
  }
38180
38187
  loadJson(url) {
38181
38188
  const jsonPromise = fetch(url).then(data => data.json());
@@ -48404,7 +48411,7 @@
48404
48411
  offset: 5,
48405
48412
  position: 'inside',
48406
48413
  style: {
48407
- fill: { type: 'palette', key: 'axisMarkerFontColor' }
48414
+ fill: { type: 'palette', key: 'labelReverseFontColor' }
48408
48415
  },
48409
48416
  minLabel: {
48410
48417
  position: minMaxPositionEnum.end
@@ -48635,7 +48642,7 @@
48635
48642
  visible: false,
48636
48643
  style: {
48637
48644
  fontSize: THEME_CONSTANTS.l5FontSize,
48638
- fill: { type: 'palette', key: 'axisLabelFontColor' },
48645
+ fill: { type: 'palette', key: 'axisFontColor' },
48639
48646
  fontWeight: 'normal',
48640
48647
  fillOpacity: 1
48641
48648
  }
@@ -48655,7 +48662,7 @@
48655
48662
  visible: false,
48656
48663
  style: {
48657
48664
  fontSize: THEME_CONSTANTS.l5FontSize,
48658
- fill: { type: 'palette', key: 'axisLabelFontColor' },
48665
+ fill: { type: 'palette', key: 'axisFontColor' },
48659
48666
  fontWeight: 'normal',
48660
48667
  fillOpacity: 1
48661
48668
  }
@@ -48712,7 +48719,7 @@
48712
48719
  space: 10,
48713
48720
  style: {
48714
48721
  fontSize: THEME_CONSTANTS.l5FontSize,
48715
- fill: { type: 'palette', key: 'axisLabelFontColor' },
48722
+ fill: { type: 'palette', key: 'axisFontColor' },
48716
48723
  fontWeight: 'normal',
48717
48724
  fillOpacity: 1
48718
48725
  }
@@ -48788,7 +48795,7 @@
48788
48795
  visible: false,
48789
48796
  style: {
48790
48797
  fontWeight: 'normal',
48791
- fill: { type: 'palette', key: 'axisMarkerFontColor' },
48798
+ fill: { type: 'palette', key: 'labelReverseFontColor' },
48792
48799
  fontSize: THEME_CONSTANTS.l5FontSize
48793
48800
  },
48794
48801
  labelBackground: {
@@ -48799,9 +48806,9 @@
48799
48806
  right: 2
48800
48807
  },
48801
48808
  style: {
48802
- fill: { type: 'palette', key: 'axisMarkerBackgroundColor' },
48809
+ fill: { type: 'palette', key: 'primaryFontColor' },
48803
48810
  outerBorder: {
48804
- stroke: { type: 'palette', key: 'axisMarkerBackgroundColor' },
48811
+ stroke: { type: 'palette', key: 'primaryFontColor' },
48805
48812
  distance: 0,
48806
48813
  lineWidth: 3
48807
48814
  },
@@ -48828,7 +48835,7 @@
48828
48835
  type: 'line',
48829
48836
  visible: true,
48830
48837
  style: {
48831
- stroke: { type: 'palette', key: 'markLineStrokeColor' },
48838
+ stroke: { type: 'palette', key: 'secondaryFontColor' },
48832
48839
  opacity: 0.7,
48833
48840
  lineDash: [2, 3]
48834
48841
  }
@@ -48854,15 +48861,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
48854
48861
  background: {
48855
48862
  size: 6,
48856
48863
  style: {
48857
- stroke: { type: 'palette', key: 'dataZoomHandleStrokeColor' },
48864
+ stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },
48858
48865
  cornerRadius: 2
48859
48866
  }
48860
48867
  },
48861
48868
  icon: {
48862
48869
  style: {
48863
48870
  size: 4,
48864
- fill: { type: 'palette', key: 'sliderHandleColor' },
48865
- stroke: { type: 'palette', key: 'dataZoomHandleStrokeColor' },
48871
+ fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },
48872
+ stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },
48866
48873
  symbolType: 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',
48867
48874
  lineWidth: 0.5
48868
48875
  }
@@ -48871,16 +48878,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
48871
48878
  background: {
48872
48879
  size: 20,
48873
48880
  style: {
48874
- fill: { type: 'palette', key: 'sliderRailColor' },
48881
+ fill: { type: 'palette', key: 'dataZoomBackgroundColor' },
48875
48882
  lineWidth: 0
48876
48883
  }
48877
48884
  },
48878
48885
  selectedBackground: {
48879
48886
  style: {
48880
- fill: { type: 'palette', key: 'sliderTrackColor' },
48887
+ fill: { type: 'palette', key: 'dataZoomSelectedColor' },
48881
48888
  fillOpacity: 0.1,
48882
48889
  outerBorder: {
48883
- stroke: { type: 'palette', key: 'sliderTrackColor' },
48890
+ stroke: { type: 'palette', key: 'dataZoomSelectedColor' },
48884
48891
  strokeOpacity: 0.2,
48885
48892
  distance: -0.5,
48886
48893
  lineWidth: 1
@@ -48906,10 +48913,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
48906
48913
  startHandler: {
48907
48914
  style: {
48908
48915
  symbolType: DataZoomHandlerSymbolType,
48909
- fill: { type: 'palette', key: 'sliderHandleColor' },
48916
+ fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },
48910
48917
  scaleX: 1.2,
48911
48918
  scaleY: 1.2,
48912
- stroke: { type: 'palette', key: 'dataZoomHandleStrokeColor' },
48919
+ stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },
48913
48920
  lineWidth: 1,
48914
48921
  zIndex: 100
48915
48922
  }
@@ -48917,10 +48924,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
48917
48924
  endHandler: {
48918
48925
  style: {
48919
48926
  symbolType: DataZoomHandlerSymbolType,
48920
- fill: { type: 'palette', key: 'sliderHandleColor' },
48927
+ fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },
48921
48928
  scaleX: 1.2,
48922
48929
  scaleY: 1.2,
48923
- stroke: { type: 'palette', key: 'dataZoomHandleStrokeColor' },
48930
+ stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },
48924
48931
  lineWidth: 1,
48925
48932
  zIndex: 100
48926
48933
  }
@@ -48975,7 +48982,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
48975
48982
  visible: true,
48976
48983
  style: {
48977
48984
  fontSize: THEME_CONSTANTS.l2FontSize,
48978
- fill: { type: 'palette', key: 'tertiaryFontColor' },
48985
+ fill: { type: 'palette', key: 'secondaryFontColor' },
48979
48986
  fontWeight: 'normal',
48980
48987
  fillOpacity: 1,
48981
48988
  textBaseline: 'top',
@@ -49043,7 +49050,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49043
49050
  shadowBlur: 12,
49044
49051
  shadowOffsetX: 0,
49045
49052
  shadowOffsetY: 4,
49046
- shadowColor: { type: 'palette', key: 'shadowColor' }
49053
+ shadowColor: { type: 'palette', key: 'shadowColor', a: 0.3 }
49047
49054
  }
49048
49055
  };
49049
49056
  const colorLegend$1 = {
@@ -49051,14 +49058,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49051
49058
  width: 200,
49052
49059
  height: 8,
49053
49060
  style: {
49054
- fill: { type: 'palette', key: 'sliderRailColor' }
49061
+ fill: { type: 'palette', key: 'dataZoomBackgroundColor' }
49055
49062
  }
49056
49063
  }, handler: handlerTheme$2 }),
49057
49064
  vertical: Object.assign(Object.assign({}, DEFAULT_CONTINUOUS_LEGEND_THEME$1), { rail: {
49058
49065
  width: 8,
49059
49066
  height: 200,
49060
49067
  style: {
49061
- fill: { type: 'palette', key: 'sliderRailColor' }
49068
+ fill: { type: 'palette', key: 'dataZoomBackgroundColor' }
49062
49069
  }
49063
49070
  }, handler: handlerTheme$2 })
49064
49071
  };
@@ -49086,10 +49093,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49086
49093
  background: {
49087
49094
  state: {
49088
49095
  selectedHover: {
49089
- fill: { type: 'palette', key: 'hoverBackgroundColor' }
49096
+ fill: { type: 'palette', key: 'axisGridColor' }
49090
49097
  },
49091
49098
  unSelectedHover: {
49092
- fill: { type: 'palette', key: 'hoverBackgroundColor' }
49099
+ fill: { type: 'palette', key: 'axisGridColor' }
49093
49100
  }
49094
49101
  }
49095
49102
  },
@@ -49133,9 +49140,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49133
49140
  outerBorder: {
49134
49141
  lineWidth: 2,
49135
49142
  distance: 0.8,
49136
- stroke: { type: 'palette', key: 'sliderTrackColor' }
49143
+ stroke: { type: 'palette', key: 'dataZoomSelectedColor' }
49137
49144
  },
49138
- fill: { type: 'palette', key: 'sliderHandleColor' }
49145
+ fill: { type: 'palette', key: 'dataZoomHandlerFillColor' }
49139
49146
  }
49140
49147
  };
49141
49148
  const sizeLegend$1 = {
@@ -49143,26 +49150,26 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49143
49150
  fill: { type: 'palette', key: 'dataZoomChartColor' }
49144
49151
  }, track: {
49145
49152
  style: {
49146
- fill: { type: 'palette', key: 'sliderTrackColor', a: 0.8 }
49153
+ fill: { type: 'palette', key: 'dataZoomSelectedColor', a: 0.8 }
49147
49154
  }
49148
49155
  }, rail: {
49149
49156
  width: 200,
49150
49157
  height: 4,
49151
49158
  style: {
49152
- fill: { type: 'palette', key: 'sliderRailColor' }
49159
+ fill: { type: 'palette', key: 'dataZoomBackgroundColor' }
49153
49160
  }
49154
49161
  }, handler: handlerTheme$1 }),
49155
49162
  vertical: Object.assign(Object.assign({}, DEFAULT_CONTINUOUS_LEGEND_THEME$1), { sizeBackground: {
49156
49163
  fill: { type: 'palette', key: 'dataZoomChartColor' }
49157
49164
  }, track: {
49158
49165
  style: {
49159
- fill: { type: 'palette', key: 'sliderTrackColor', a: 0.8 }
49166
+ fill: { type: 'palette', key: 'dataZoomSelectedColor', a: 0.8 }
49160
49167
  }
49161
49168
  }, rail: {
49162
49169
  width: 4,
49163
49170
  height: 200,
49164
49171
  style: {
49165
- fill: { type: 'palette', key: 'sliderRailColor' }
49172
+ fill: { type: 'palette', key: 'dataZoomBackgroundColor' }
49166
49173
  }
49167
49174
  }, handler: handlerTheme$1 })
49168
49175
  };
@@ -49241,7 +49248,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49241
49248
  line: {
49242
49249
  style: {
49243
49250
  lineDash: [3, 3],
49244
- stroke: { type: 'palette', key: 'markLineStrokeColor' }
49251
+ stroke: { type: 'palette', key: 'primaryFontColor' }
49245
49252
  }
49246
49253
  },
49247
49254
  startSymbol: {
@@ -49249,9 +49256,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49249
49256
  symbolType: 'triangle',
49250
49257
  size: 10,
49251
49258
  style: {
49252
- fill: { type: 'palette', key: 'markLineStrokeColor' },
49253
49259
  stroke: null,
49254
- lineWidth: 0
49260
+ lineWidth: 0,
49261
+ fill: { type: 'palette', key: 'primaryFontColor' }
49255
49262
  }
49256
49263
  },
49257
49264
  endSymbol: {
@@ -49259,9 +49266,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49259
49266
  symbolType: 'triangle',
49260
49267
  size: 10,
49261
49268
  style: {
49262
- fill: { type: 'palette', key: 'markLineStrokeColor' },
49263
49269
  stroke: null,
49264
- lineWidth: 0
49270
+ lineWidth: 0,
49271
+ fill: { type: 'palette', key: 'primaryFontColor' }
49265
49272
  }
49266
49273
  },
49267
49274
  label: {
@@ -49296,21 +49303,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49296
49303
  size: 5,
49297
49304
  visible: true,
49298
49305
  style: {
49299
- fill: { type: 'palette', key: 'markLineStrokeColor' },
49300
- stroke: null,
49301
- lineWidth: 0
49302
- }
49303
- },
49304
- endSymbol: {
49305
- style: {
49306
- fill: { type: 'palette', key: 'markLineStrokeColor' },
49307
- stroke: null,
49308
- lineWidth: 0
49306
+ fill: { type: 'palette', key: 'primaryFontColor' }
49309
49307
  }
49310
49308
  },
49311
49309
  line: {
49312
49310
  style: {
49313
- stroke: { type: 'palette', key: 'markLineStrokeColor' }
49311
+ stroke: { type: 'palette', key: 'primaryFontColor' }
49314
49312
  }
49315
49313
  }
49316
49314
  },
@@ -49329,17 +49327,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49329
49327
  slider: {
49330
49328
  space: 10,
49331
49329
  trackStyle: {
49332
- fill: { type: 'palette', key: 'sliderTrackColor' },
49330
+ fill: { type: 'palette', key: 'dataZoomSelectedColor' },
49333
49331
  fillOpacity: 0.8
49334
49332
  },
49335
49333
  railStyle: {
49336
- fill: { type: 'palette', key: 'sliderRailColor' }
49334
+ fill: { type: 'palette', key: 'dataZoomBackgroundColor' }
49337
49335
  },
49338
49336
  handlerStyle: {
49339
49337
  size: 15,
49340
49338
  stroke: { type: 'palette', key: 'backgroundColor' },
49341
49339
  lineWidth: 2,
49342
- fill: { type: 'palette', key: 'playerControllerColor' }
49340
+ fill: { type: 'palette', key: 'dataZoomSelectedColor' }
49343
49341
  }
49344
49342
  },
49345
49343
  controller: {
@@ -49348,7 +49346,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49348
49346
  space: 0,
49349
49347
  style: {
49350
49348
  size: 25,
49351
- fill: { type: 'palette', key: 'playerControllerColor' },
49349
+ fill: { type: 'palette', key: 'dataZoomSelectedColor' },
49352
49350
  fillOpacity: 0.8
49353
49351
  }
49354
49352
  },
@@ -49357,7 +49355,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49357
49355
  space: 0,
49358
49356
  style: {
49359
49357
  size: 25,
49360
- fill: { type: 'palette', key: 'playerControllerColor' },
49358
+ fill: { type: 'palette', key: 'dataZoomSelectedColor' },
49361
49359
  fillOpacity: 0.8
49362
49360
  }
49363
49361
  },
@@ -49367,7 +49365,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49367
49365
  position: 'start',
49368
49366
  style: {
49369
49367
  size: 12,
49370
- fill: { type: 'palette', key: 'playerControllerColor' },
49368
+ fill: { type: 'palette', key: 'dataZoomSelectedColor' },
49371
49369
  fillOpacity: 0.8
49372
49370
  }
49373
49371
  },
@@ -49377,7 +49375,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49377
49375
  position: 'end',
49378
49376
  style: {
49379
49377
  size: 12,
49380
- fill: { type: 'palette', key: 'playerControllerColor' },
49378
+ fill: { type: 'palette', key: 'dataZoomSelectedColor' },
49381
49379
  fillOpacity: 0.8
49382
49380
  }
49383
49381
  }
@@ -49397,7 +49395,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49397
49395
  subtextStyle: {
49398
49396
  fontSize: THEME_CONSTANTS.l4FontSize,
49399
49397
  lineHeight: THEME_CONSTANTS.l4LineHeight,
49400
- fill: { type: 'palette', key: 'tertiaryFontColor' }
49398
+ fill: { type: 'palette', key: 'secondaryFontColor' }
49401
49399
  }
49402
49400
  };
49403
49401
 
@@ -49413,9 +49411,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49413
49411
  right: 10,
49414
49412
  bottom: 10
49415
49413
  },
49416
- backgroundColor: { type: 'palette', key: 'popupBackgroundColor' },
49414
+ backgroundColor: { type: 'palette', key: 'tooltipBackgroundColor' },
49417
49415
  border: {
49418
- color: { type: 'palette', key: 'popupBackgroundColor' },
49416
+ color: { type: 'palette', key: 'tooltipBackgroundColor' },
49419
49417
  width: 0,
49420
49418
  radius: 3
49421
49419
  },
@@ -49424,7 +49422,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49424
49422
  y: 4,
49425
49423
  blur: 12,
49426
49424
  spread: 0,
49427
- color: { type: 'palette', key: 'shadowColor' }
49425
+ color: { type: 'palette', key: 'shadowColor', a: 0.1 }
49428
49426
  }
49429
49427
  },
49430
49428
  spaceRow: 6,
@@ -49470,17 +49468,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49470
49468
  },
49471
49469
  contentStyle: {
49472
49470
  fontSize: THEME_CONSTANTS.l5FontSize,
49473
- fill: { type: 'palette', key: 'primaryFontColor' }
49471
+ fill: { type: 'palette', key: 'secondaryFontColor' }
49474
49472
  },
49475
49473
  panel: {
49476
49474
  visible: true,
49477
- fill: { type: 'palette', key: 'popupBackgroundColor' },
49475
+ fill: { type: 'palette', key: 'tooltipBackgroundColor' },
49478
49476
  cornerRadius: 3,
49479
49477
  lineWidth: 0,
49480
49478
  shadowBlur: 12,
49481
49479
  shadowOffsetX: 0,
49482
49480
  shadowOffsetY: 4,
49483
- shadowColor: { type: 'palette', key: 'shadowColor' },
49481
+ shadowColor: { type: 'palette', key: 'shadowColor', a: 0.1 },
49484
49482
  size: 0,
49485
49483
  space: 12
49486
49484
  }
@@ -49505,7 +49503,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49505
49503
  slider: {
49506
49504
  style: {
49507
49505
  fill: { type: 'palette', key: 'scrollBarSliderColor' },
49508
- fillOpacity: 0.3
49506
+ fillOpacity: 0.5
49509
49507
  }
49510
49508
  }
49511
49509
  };
@@ -49996,31 +49994,24 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49996
49994
  palette: {
49997
49995
  backgroundColor: '#202226',
49998
49996
  borderColor: '#404349',
49999
- shadowColor: 'rgba(0,0,0,0.1)',
50000
- hoverBackgroundColor: '#404349',
50001
- sliderRailColor: '#404349',
50002
- sliderHandleColor: '#202226',
50003
- sliderTrackColor: '#4284FF',
50004
- popupBackgroundColor: '#404349',
49997
+ shadowColor: '#000000',
50005
49998
  primaryFontColor: '#fdfdfd',
50006
- secondaryFontColor: '#bbbdc3',
50007
- tertiaryFontColor: '#888c93',
50008
- axisLabelFontColor: '#888c93',
49999
+ secondaryFontColor: '#888c93',
50000
+ axisFontColor: '#bbbdc3',
50009
50001
  disableFontColor: '#55595f',
50010
- axisMarkerFontColor: '#202226',
50002
+ labelReverseFontColor: '#202226',
50011
50003
  axisGridColor: '#404349',
50012
50004
  axisDomainColor: '#4b4f54',
50013
- dataZoomHandleStrokeColor: '#bbbdc3',
50005
+ dataZoomHandlerStrokeColor: '#888c93',
50006
+ dataZoomHandlerFillColor: '#202226',
50007
+ dataZoomBackgroundColor: '#404349',
50014
50008
  dataZoomChartColor: '#55595F',
50015
- playerControllerColor: '#4284FF',
50009
+ dataZoomSelectedColor: '#4284FF',
50016
50010
  scrollBarSliderColor: '#ffffff',
50017
- axisMarkerBackgroundColor: '#fdfdfd',
50018
- markLabelBackgroundColor: '#404349',
50019
- markLineStrokeColor: '#bbbdc3',
50020
- dangerColor: '#eb4b4b',
50021
- warningColor: '#f0bd30',
50022
- successColor: '#14b267',
50023
- infoColor: '#4284ff'
50011
+ tooltipBackgroundColor: '#404349',
50012
+ markLabelBackgroundColor: '#f0bd30',
50013
+ titleFontColor: '#fdfdfd',
50014
+ labelFontColor: '#bbbdc3'
50024
50015
  }
50025
50016
  }
50026
50017
  };
@@ -57791,7 +57782,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57791
57782
  };
57792
57783
  registerVChartCore();
57793
57784
 
57794
- const version = "1.6.1-alpha.0";
57785
+ const version = "1.6.1";
57795
57786
 
57796
57787
  class ChartData {
57797
57788
  get dataList() {
@@ -90511,13 +90502,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90511
90502
  return result;
90512
90503
  }
90513
90504
  getSizeFromUser(spec, type) {
90514
- var _a;
90505
+ var _a, _b;
90515
90506
  const sizeList = type === 'col' ? this._colSize : this._rowSize;
90516
- if (!sizeList[spec[type]].isUserSetting) {
90507
+ if (!((_a = sizeList[spec[type]]) === null || _a === void 0 ? void 0 : _a.isUserSetting)) {
90517
90508
  return undefined;
90518
90509
  }
90519
90510
  let result = 0;
90520
- for (let index = spec[type]; index < spec[type] + ((_a = spec[`${type}Span`]) !== null && _a !== void 0 ? _a : 1); index++) {
90511
+ for (let index = spec[type]; index < spec[type] + ((_b = spec[`${type}Span`]) !== null && _b !== void 0 ? _b : 1); index++) {
90521
90512
  if (!sizeList[index].isUserSetting) {
90522
90513
  return undefined;
90523
90514
  }
@@ -90595,7 +90586,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90595
90586
  this._chartViewBox = chartViewBox;
90596
90587
  this.clearLayoutSize();
90597
90588
  items.sort((a, b) => b.layoutLevel - a.layoutLevel);
90598
- const normalItems = items.filter(item => item.layoutType === 'normal');
90589
+ const normalItems = items.filter(item => item.layoutType === 'normal' && item.getVisible() !== false);
90599
90590
  const normalItemsCol = normalItems.filter(item => isColItem(item));
90600
90591
  const normalItemsRow = normalItems.filter(item => !isColItem(item));
90601
90592
  normalItems.forEach(item => {