@visactor/vchart 1.10.6-alpha.2 → 1.10.7-alpha.0

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 (37) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +85 -31
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/chart/range-column/range-column-transformer.js +5 -1
  6. package/cjs/chart/range-column/range-column-transformer.js.map +1 -1
  7. package/cjs/chart/stack.js +2 -1
  8. package/cjs/compile/compiler.d.ts +1 -0
  9. package/cjs/compile/compiler.js +7 -5
  10. package/cjs/compile/compiler.js.map +1 -1
  11. package/cjs/compile/grammar-item.js +1 -2
  12. package/cjs/core/index.d.ts +1 -1
  13. package/cjs/core/index.js +1 -1
  14. package/cjs/core/index.js.map +1 -1
  15. package/cjs/series/base/base-series.js +4 -4
  16. package/cjs/series/base/base-series.js.map +1 -1
  17. package/cjs/series/sankey/sankey.js +4 -3
  18. package/cjs/series/sankey/sankey.js.map +1 -1
  19. package/cjs/series/scatter/scatter.js +1 -1
  20. package/cjs/series/scatter/scatter.js.map +1 -1
  21. package/esm/chart/range-column/range-column-transformer.js +5 -1
  22. package/esm/chart/range-column/range-column-transformer.js.map +1 -1
  23. package/esm/chart/stack.js +2 -1
  24. package/esm/compile/compiler.d.ts +1 -0
  25. package/esm/compile/compiler.js +8 -6
  26. package/esm/compile/compiler.js.map +1 -1
  27. package/esm/compile/grammar-item.js +1 -2
  28. package/esm/core/index.d.ts +1 -1
  29. package/esm/core/index.js +1 -1
  30. package/esm/core/index.js.map +1 -1
  31. package/esm/series/base/base-series.js +3 -4
  32. package/esm/series/base/base-series.js.map +1 -1
  33. package/esm/series/sankey/sankey.js +4 -3
  34. package/esm/series/sankey/sankey.js.map +1 -1
  35. package/esm/series/scatter/scatter.js +1 -1
  36. package/esm/series/scatter/scatter.js.map +1 -1
  37. package/package.json +13 -13
package/build/index.js CHANGED
@@ -8656,6 +8656,8 @@
8656
8656
  pickStrokeBuffer: 0
8657
8657
  };
8658
8658
  const DefaultStyle = Object.assign(Object.assign(Object.assign(Object.assign({
8659
+ forceBoundsWidth: void 0,
8660
+ forceBoundsHeight: void 0,
8659
8661
  opacity: 1,
8660
8662
  background: null,
8661
8663
  backgroundOpacity: 1,
@@ -8682,6 +8684,7 @@
8682
8684
  };
8683
8685
  const DefaultAttribute = Object.assign(Object.assign(Object.assign({
8684
8686
  strokeSeg: null,
8687
+ renderable: !0,
8685
8688
  pickable: !0,
8686
8689
  childrenPickable: !0,
8687
8690
  fillPickable: !0,
@@ -8773,7 +8776,7 @@
8773
8776
  strokeBoundsBuffer: 0,
8774
8777
  cornerRadius: 0
8775
8778
  });
8776
- const DefaultRect3dAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
8779
+ Object.assign(Object.assign({}, DefaultAttribute), {
8777
8780
  width: 0,
8778
8781
  height: 0,
8779
8782
  x1: 0,
@@ -9972,7 +9975,6 @@
9972
9975
  symbol: DefaultSymbolAttribute,
9973
9976
  text: DefaultTextAttribute,
9974
9977
  rect: DefaultRectAttribute,
9975
- rect3d: DefaultRect3dAttribute,
9976
9978
  polygon: DefaultPolygonAttribute,
9977
9979
  richtext: DefaultRichTextAttribute,
9978
9980
  richtextIcon: DefaultRichTextIconAttribute,
@@ -9991,7 +9993,6 @@
9991
9993
  symbol: Object.assign({}, defaultThemeObj.symbol),
9992
9994
  text: Object.assign({}, defaultThemeObj.text),
9993
9995
  rect: Object.assign({}, defaultThemeObj.rect),
9994
- rect3d: Object.assign({}, defaultThemeObj.rect3d),
9995
9996
  polygon: Object.assign({}, defaultThemeObj.polygon),
9996
9997
  richtext: Object.assign({}, defaultThemeObj.richtext),
9997
9998
  richtextIcon: Object.assign({}, defaultThemeObj.richtextIcon),
@@ -14597,7 +14598,7 @@
14597
14598
  }
14598
14599
  function drawPathProxy(graphic, context, x, y, drawContext, params, fillCb, strokeCb) {
14599
14600
  if (!graphic.pathProxy) return !1;
14600
- const themeAttributes = getTheme$1(graphic, null == params ? void 0 : params.theme)[graphic.type],
14601
+ const themeAttributes = getTheme$1(graphic, null == params ? void 0 : params.theme)[graphic.type.replace("3d", "")],
14601
14602
  {
14602
14603
  fill = themeAttributes.fill,
14603
14604
  stroke = themeAttributes.stroke,
@@ -16245,7 +16246,7 @@
16245
16246
  vertices: [],
16246
16247
  edges: []
16247
16248
  },
16248
- rectTheme = getTheme$1(this).rect3d,
16249
+ rectTheme = getTheme$1(this).rect,
16249
16250
  {
16250
16251
  x1: x1,
16251
16252
  y1: y1,
@@ -17972,6 +17973,22 @@
17972
17973
  aabbBounds.union(node.AABBBounds);
17973
17974
  }), aabbBounds) : aabbBounds;
17974
17975
  }
17976
+ updateHTMLTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
17977
+ const {
17978
+ textAlign: textAlign,
17979
+ textBaseline: textBaseline
17980
+ } = attribute;
17981
+ if (null != attribute.forceBoundsHeight) {
17982
+ const h = isNumber$3(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight(),
17983
+ dy = textLayoutOffsetY(textBaseline, h, h);
17984
+ aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
17985
+ }
17986
+ if (null != attribute.forceBoundsWidth) {
17987
+ const w = isNumber$3(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth(),
17988
+ dx = textDrawOffsetX(textAlign, w);
17989
+ aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
17990
+ }
17991
+ }
17975
17992
  updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
17976
17993
  if (!this._validCheck(attribute, richtextTheme, aabbBounds, graphic)) return aabbBounds;
17977
17994
  if (!graphic) return aabbBounds;
@@ -18018,7 +18035,7 @@
18018
18035
  aabbBounds.translate(deltaX, deltaY);
18019
18036
  const tb1 = this.tempAABBBounds1,
18020
18037
  tb2 = this.tempAABBBounds2;
18021
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, !1, graphic), aabbBounds;
18038
+ return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), null == attribute.forceBoundsHeight && null == attribute.forceBoundsWidth || this.updateHTMLTextAABBBounds(attribute, richtextTheme, aabbBounds), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, !1, graphic), aabbBounds;
18022
18039
  }
18023
18040
  updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
18024
18041
  if (!this._validCheck(attribute, textTheme, aabbBounds, graphic)) return aabbBounds;
@@ -18040,7 +18057,7 @@
18040
18057
  const shadowBlurHalfWidth = shadowBlur / Math.abs(scaleX + scaleY);
18041
18058
  boundStroke(tb1, shadowBlurHalfWidth, !0, strokeBoundsBuffer), aabbBounds.union(tb1);
18042
18059
  }
18043
- return this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix), aabbBounds;
18060
+ return this.combindShadowAABBBounds(aabbBounds, graphic), null == attribute.forceBoundsHeight && null == attribute.forceBoundsWidth || this.updateHTMLTextAABBBounds(attribute, textTheme, aabbBounds), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix), aabbBounds;
18044
18061
  }
18045
18062
  updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
18046
18063
  if (!this._validCheck(attribute, pathTheme, aabbBounds, graphic)) return aabbBounds;
@@ -18322,6 +18339,7 @@
18322
18339
  }
18323
18340
  _validCheck(attribute, theme, aabbBounds, graphic) {
18324
18341
  if (!graphic) return !0;
18342
+ if (null != attribute.forceBoundsHeight || null != attribute.forceBoundsWidth) return !0;
18325
18343
  if (!graphic.valid) return aabbBounds.clear(), !1;
18326
18344
  const {
18327
18345
  visible = theme.visible
@@ -18469,6 +18487,10 @@
18469
18487
  context: context
18470
18488
  } = drawContext;
18471
18489
  if (!context) return;
18490
+ const {
18491
+ renderable: renderable
18492
+ } = graphic.attribute;
18493
+ if (!1 === renderable) return;
18472
18494
  context.highPerformanceSave();
18473
18495
  const data = this.transform(graphic, defaultAttr, context, computed3dMatrix),
18474
18496
  {
@@ -19347,11 +19369,17 @@
19347
19369
  }
19348
19370
  drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, groupAttribute, drawContext, fillCb, strokeCb) {
19349
19371
  const {
19350
- width = groupAttribute.width,
19351
- height = groupAttribute.height,
19372
+ x1: x1,
19373
+ y1: y1,
19374
+ x: originX = groupAttribute.x,
19375
+ y: originY = groupAttribute.y,
19352
19376
  stroke = groupAttribute.stroke
19353
19377
  } = rect.attribute;
19354
- if (Array.isArray(stroke) && stroke.some(s => !1 === s)) {
19378
+ let {
19379
+ width: width,
19380
+ height: height
19381
+ } = rect.attribute;
19382
+ if (width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0, Array.isArray(stroke) && stroke.some(s => !1 === s)) {
19355
19383
  if (context.setStrokeStyle(rect, rect.attribute, x, y, groupAttribute), context.beginPath(), context.moveTo(x, y), stroke[0] ? context.lineTo(x + width, y) : context.moveTo(x + width, y), stroke[1] ? context.lineTo(x + width, y + height) : context.moveTo(x + width, y + height), stroke[2] ? context.lineTo(x, y + height) : context.moveTo(x, y + height), stroke[3]) {
19356
19384
  const adjustY = stroke[0] ? y - context.lineWidth / 2 : y;
19357
19385
  context.lineTo(x, adjustY);
@@ -20775,7 +20803,7 @@
20775
20803
  strokeOpacity: fillOpacity
20776
20804
  };
20777
20805
  if (underline) {
20778
- attribute.lineWidth = underline, context.setStrokeStyle(text, attribute, x, y, textAttribute), context.setLineDash(underlineDash), context.beginPath();
20806
+ attribute.lineWidth = underline, context.setStrokeStyle(text, attribute, x, y, textAttribute), underlineDash && context.setLineDash(underlineDash), context.beginPath();
20779
20807
  const dy = y + offsetY + fontSize + underlineOffset;
20780
20808
  context.moveTo(x + offsetX, dy, z), context.lineTo(x + offsetX + w, dy, z), context.stroke();
20781
20809
  }
@@ -20804,7 +20832,7 @@
20804
20832
  };
20805
20833
  let deltaY = -3;
20806
20834
  if (underline) {
20807
- attribute.lineWidth = underline, context.setStrokeStyle(text, attribute, x, y, textAttribute), context.setLineDash(underlineDash), context.beginPath();
20835
+ attribute.lineWidth = underline, context.setStrokeStyle(text, attribute, x, y, textAttribute), underlineDash && context.setLineDash(underlineDash), context.beginPath();
20808
20836
  const dy = y + offsetY + fontSize + deltaY + underlineOffset;
20809
20837
  context.moveTo(x + 0, dy, z), context.lineTo(x + 0 + w, dy, z), context.stroke();
20810
20838
  }
@@ -22700,7 +22728,7 @@
22700
22728
  }
22701
22729
  } else if ("flex-end" === justifyContent) {
22702
22730
  let pos = main.len;
22703
- for (let i = lastIdx; i <= currSeg.idx; i++) {
22731
+ for (let i = currSeg.idx; i >= lastIdx; i--) {
22704
22732
  pos -= mianLenArray[i].mainLen;
22705
22733
  const posBaseLeftTop = pos + getPadding(children[i], main.field),
22706
22734
  b = this.getAABBBounds(children[i]);
@@ -24235,7 +24263,7 @@
24235
24263
  }
24236
24264
  drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
24237
24265
  var _a;
24238
- const rectAttribute = getTheme$1(rect, null == params ? void 0 : params.theme).rect3d,
24266
+ const rectAttribute = getTheme$1(rect, null == params ? void 0 : params.theme).rect,
24239
24267
  {
24240
24268
  fill = rectAttribute.fill,
24241
24269
  stroke = rectAttribute.stroke,
@@ -26590,7 +26618,7 @@
26590
26618
  setLineDash(segments) {
26591
26619
  const a = arguments,
26592
26620
  _context = this.nativeContext;
26593
- this.nativeContext.setLineDash ? _context.setLineDash(a[0]) : "mozDash" in _context ? _context.mozDash = a[0] : "webkitLineDash" in _context && (_context.webkitLineDash = a[0]);
26621
+ this.nativeContext.setLineDash ? a[0] && _context.setLineDash(a[0]) : "mozDash" in _context ? _context.mozDash = a[0] : "webkitLineDash" in _context && (_context.webkitLineDash = a[0]);
26594
26622
  }
26595
26623
  stroke(path) {
26596
26624
  this.disableStroke || (path ? this.nativeContext.stroke(path) : this.nativeContext.stroke());
@@ -26681,7 +26709,7 @@
26681
26709
  lineCap = defaultParams.lineCap,
26682
26710
  miterLimit = defaultParams.miterLimit
26683
26711
  } = attribute;
26684
- _context.globalAlpha = strokeOpacity * opacity, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
26712
+ _context.globalAlpha = strokeOpacity * opacity, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
26685
26713
  }
26686
26714
  }
26687
26715
  setTextStyleWithoutAlignBaseline(params, defaultParams, z) {
@@ -27774,7 +27802,7 @@
27774
27802
  if (this.nativeContext.setLineDash) {
27775
27803
  const lineDash = a[0];
27776
27804
  if (0 === lineDash[0] && 0 === lineDash[1]) return;
27777
- _context.setLineDash(lineDash);
27805
+ lineDash && _context.setLineDash(lineDash);
27778
27806
  }
27779
27807
  }
27780
27808
  _setStrokeStyle(params, attribute, offsetX, offsetY, defaultParams) {
@@ -27793,7 +27821,7 @@
27793
27821
  lineCap = defaultParams.lineCap,
27794
27822
  miterLimit = defaultParams.miterLimit
27795
27823
  } = attribute;
27796
- _context.globalAlpha = strokeOpacity * opacity, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, 0 === lineDash[0] && 0 === lineDash[1] || _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
27824
+ _context.globalAlpha = strokeOpacity * opacity, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, 0 === lineDash[0] && 0 === lineDash[1] || lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
27797
27825
  }
27798
27826
  }
27799
27827
  measureText(text) {
@@ -28410,7 +28438,7 @@
28410
28438
  lineCap = defaultParams.lineCap,
28411
28439
  miterLimit = defaultParams.miterLimit
28412
28440
  } = attribute;
28413
- _context.setGlobalAlpha(strokeOpacity * opacity), _context.setLineWidth(getScaledStroke(this, lineWidth, this.dpr)), _context.setStrokeStyle(createColor(this, stroke, params, offsetX, offsetY)), _context.setLineJoin(lineJoin), _context.setLineDash(lineDash), _context.setLineCap(lineCap), _context.setMiterLimit(miterLimit);
28441
+ _context.setGlobalAlpha(strokeOpacity * opacity), _context.setLineWidth(getScaledStroke(this, lineWidth, this.dpr)), _context.setStrokeStyle(createColor(this, stroke, params, offsetX, offsetY)), _context.setLineJoin(lineJoin), lineDash && _context.setLineDash(lineDash), _context.setLineCap(lineCap), _context.setMiterLimit(miterLimit);
28414
28442
  }
28415
28443
  }
28416
28444
  setTextStyleWithoutAlignBaseline(params, defaultParams) {
@@ -32520,7 +32548,7 @@
32520
32548
  {
32521
32549
  visible: showLabelLine
32522
32550
  } = null !== (_a = this.attribute.line) && void 0 !== _a ? _a : {};
32523
- labels.forEach((text, index) => {
32551
+ labels && labels.forEach((text, index) => {
32524
32552
  const relatedGraphic = this.getRelatedGraphic(text.attribute),
32525
32553
  textId = text.attribute.id,
32526
32554
  textKey = this._isCollectionBase ? textId : relatedGraphic,
@@ -32880,6 +32908,7 @@
32880
32908
  };
32881
32909
  }
32882
32910
  _layout(texts) {
32911
+ if (!texts || !texts.length) return;
32883
32912
  const labels = super._layout(texts),
32884
32913
  textBoundsArray = labels.map(label => this.getGraphicBounds(label)),
32885
32914
  ellipsisLabelAttribute = Object.assign(Object.assign({}, this.attribute.textStyle), {
@@ -32983,9 +33012,11 @@
32983
33012
  align = this._computeAlign(arc, attribute);
32984
33013
  let labelRadius,
32985
33014
  alignOffset = 0;
32986
- "inside" === position && (alignOffset = "left" === align ? labelWidth : "right" === align ? 0 : labelWidth / 2), labelRadius = "inside-inner" === position ? innerRadius - offsetRadius + alignOffset : outerRadius + offsetRadius - alignOffset, arc.labelPosition = circlePoint(arc.circleCenter.x, arc.circleCenter.y, labelRadius, arc.middleAngle), arc.labelLimit = labelWidth, isGreater(labelWidth, 0) || (arc.labelVisible = !1), arc.angle = null !== (_b = null === (_a = attribute.textStyle) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : arc.middleAngle;
32987
- let offsetAngle = null !== (_c = labelConfig.offsetAngle) && void 0 !== _c ? _c : 0;
32988
- ["inside-inner", "inside-outer"].includes(position) && (offsetAngle += Math.PI / 2), arc.angle += offsetAngle;
33015
+ if ("inside" === position && (alignOffset = "left" === align ? labelWidth : "right" === align ? 0 : labelWidth / 2), labelRadius = "inside-inner" === position ? innerRadius - offsetRadius + alignOffset : outerRadius + offsetRadius - alignOffset, arc.labelPosition = circlePoint(arc.circleCenter.x, arc.circleCenter.y, labelRadius, arc.middleAngle), arc.labelLimit = labelWidth, isGreater(labelWidth, 0) || (arc.labelVisible = !1), !1 !== labelConfig.rotate) {
33016
+ arc.angle = null !== (_b = null === (_a = attribute.textStyle) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : arc.middleAngle;
33017
+ let offsetAngle = null !== (_c = labelConfig.offsetAngle) && void 0 !== _c ? _c : 0;
33018
+ ["inside-inner", "inside-outer"].includes(position) && (offsetAngle += Math.PI / 2), arc.angle += offsetAngle;
33019
+ }
32989
33020
  }), arcs;
32990
33021
  }
32991
33022
  _layoutOutsideLabels(arcs, attribute, currentMarks) {
@@ -54955,6 +54986,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
54955
54986
  this._canvasListeners = new Map();
54956
54987
  this.isInited = false;
54957
54988
  this._isRunning = false;
54989
+ this._released = false;
54958
54990
  this._model = {
54959
54991
  [GrammarType.signal]: {},
54960
54992
  [GrammarType.data]: {},
@@ -54982,6 +55014,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
54982
55014
  }
54983
55015
  initView() {
54984
55016
  var _a, _b, _c, _d;
55017
+ if (this._released) {
55018
+ return;
55019
+ }
54985
55020
  this.isInited = true;
54986
55021
  if (this._view) {
54987
55022
  return;
@@ -55056,6 +55091,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55056
55091
  }
55057
55092
  }
55058
55093
  compile(ctx, option) {
55094
+ if (this._released) {
55095
+ return;
55096
+ }
55059
55097
  const { chart } = ctx;
55060
55098
  this._compileChart = chart;
55061
55099
  this.initView();
@@ -55073,6 +55111,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55073
55111
  this.releaseGrammar(removeGraphicItems);
55074
55112
  }
55075
55113
  renderNextTick(morphConfig) {
55114
+ if (this._released) {
55115
+ return;
55116
+ }
55076
55117
  if (!this._nextRafId) {
55077
55118
  this._nextRafId = VChart.vglobal.getRequestAnimationFrame()(() => {
55078
55119
  this._nextRafId = null;
@@ -55082,6 +55123,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55082
55123
  }
55083
55124
  render(morphConfig) {
55084
55125
  var _a;
55126
+ if (this._released) {
55127
+ return;
55128
+ }
55085
55129
  if (this._nextRafId) {
55086
55130
  VChart.vglobal.getCancelAnimationFrame()(this._nextRafId);
55087
55131
  this._nextRafId = null;
@@ -55242,6 +55286,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55242
55286
  this._view = null;
55243
55287
  this.isInited = false;
55244
55288
  this._compileChart = null;
55289
+ this._released = true;
55245
55290
  }
55246
55291
  releaseGrammar(removeGraphicItems = false) {
55247
55292
  var _a, _b;
@@ -64531,7 +64576,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64531
64576
  registerComponentPlugin(CanvasTooltipHandler);
64532
64577
  };
64533
64578
 
64534
- const version = "1.10.6-alpha.2";
64579
+ const version = "1.10.7-alpha.0";
64535
64580
 
64536
64581
  const addVChartProperty = (data, op) => {
64537
64582
  const context = op.beforeCall();
@@ -65580,7 +65625,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65580
65625
  return selector;
65581
65626
  }
65582
65627
  _parseDefaultInteractionConfig(mainMarks) {
65583
- var _a;
65584
65628
  if (!(mainMarks === null || mainMarks === void 0 ? void 0 : mainMarks.length)) {
65585
65629
  return [];
65586
65630
  }
@@ -65620,6 +65664,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65620
65664
  }
65621
65665
  if (finalSelectSpec.enable) {
65622
65666
  const selector = this._parseSelectorOfInteraction(finalSelectSpec, mainMarks);
65667
+ const isMultiple = finalSelectSpec.mode === 'multiple';
65668
+ const triggerOff = isValid$3(finalSelectSpec.triggerOff)
65669
+ ? finalSelectSpec.triggerOff
65670
+ : isMultiple
65671
+ ? ['empty']
65672
+ : ['empty', finalSelectSpec.trigger];
65623
65673
  selector.length &&
65624
65674
  res.push({
65625
65675
  type: 'element-select',
@@ -65627,10 +65677,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65627
65677
  regionId: this._region.id,
65628
65678
  selector,
65629
65679
  trigger: finalSelectSpec.trigger,
65630
- triggerOff: ((_a = finalSelectSpec.triggerOff) !== null && _a !== void 0 ? _a : 'empty'),
65680
+ triggerOff: triggerOff,
65631
65681
  reverseState: STATE_VALUE_ENUM.STATE_SELECTED_REVERSE,
65632
65682
  state: STATE_VALUE_ENUM.STATE_SELECTED,
65633
- isMultiple: finalSelectSpec.mode === 'multiple'
65683
+ isMultiple
65634
65684
  });
65635
65685
  }
65636
65686
  return res;
@@ -70168,6 +70218,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
70168
70218
  else {
70169
70219
  this.setMarkStyle(this._symbolMark, { visible: this._getInvalidDefined.bind(this) }, 'normal', exports.AttributeLevel.Series);
70170
70220
  }
70221
+ if (this._symbolMark.getProduct()) {
70222
+ this._symbolMark.compileEncode();
70223
+ }
70171
70224
  }
70172
70225
  initLabelMarkStyle(labelMark) {
70173
70226
  if (!labelMark) {
@@ -82360,15 +82413,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
82360
82413
  }
82361
82414
  };
82362
82415
  this._handleClearEmpty = () => {
82363
- const allNodeElements = this._nodeMark.getProductElements();
82416
+ var _a, _b, _c;
82417
+ const allNodeElements = (_a = this._nodeMark) === null || _a === void 0 ? void 0 : _a.getProductElements();
82364
82418
  if (!allNodeElements || !allNodeElements.length) {
82365
82419
  return;
82366
82420
  }
82367
- const allLinkElements = this._linkMark.getProductElements();
82421
+ const allLinkElements = (_b = this._linkMark) === null || _b === void 0 ? void 0 : _b.getProductElements();
82368
82422
  if (!allLinkElements || !allLinkElements.length) {
82369
82423
  return;
82370
82424
  }
82371
- const allLabelElements = this._labelMark.getProductElements();
82425
+ const allLabelElements = (_c = this._labelMark) === null || _c === void 0 ? void 0 : _c.getProductElements();
82372
82426
  if (!allLabelElements || !allLabelElements.length) {
82373
82427
  return;
82374
82428
  }
@@ -85926,7 +85980,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85926
85980
  class RangeColumnChartSpecTransformer extends CartesianChartSpecTransformer {
85927
85981
  _getDefaultSeriesSpec(spec) {
85928
85982
  var _a, _b;
85929
- const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { barGapInGroup: spec.barGapInGroup, barBackground: spec.barBackground, barMinHeight: spec.barMinHeight });
85983
+ const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { barWidth: spec.barWidth, barMaxWidth: spec.barMaxWidth, barMinWidth: spec.barMinWidth, barGapInGroup: spec.barGapInGroup, barBackground: spec.barBackground, barMinHeight: spec.barMinHeight, stackCornerRadius: spec.stackCornerRadius });
85930
85984
  series.bar = spec.bar;
85931
85985
  if (spec.direction === "horizontal") {
85932
85986
  series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];