@visactor/vchart 2.0.12 → 2.0.13-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 (52) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +31 -27
  3. package/build/index.js +31 -27
  4. package/build/index.min.js +2 -2
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/animation/callback-disappear.js +2 -3
  7. package/cjs/animation/callback-disappear.js.map +1 -1
  8. package/cjs/animation/index.js +2 -1
  9. package/cjs/animation/interface.d.ts +1 -1
  10. package/cjs/animation/interface.js.map +1 -1
  11. package/cjs/compile/compiler.js +1 -1
  12. package/cjs/compile/grammar-item.js +1 -1
  13. package/cjs/compile/morph.js +1 -1
  14. package/cjs/compile/state-manager.js +1 -1
  15. package/cjs/compile/util.js +1 -1
  16. package/cjs/component/marker/mark-point/base-mark-point.js +22 -20
  17. package/cjs/component/marker/mark-point/base-mark-point.js.map +1 -1
  18. package/cjs/component/tooltip/utils/show-tooltip.js +10 -2
  19. package/cjs/component/tooltip/utils/show-tooltip.js.map +1 -1
  20. package/cjs/component/util.js +2 -1
  21. package/cjs/constant/data.js +1 -2
  22. package/cjs/constant/gradient.js +2 -1
  23. package/cjs/constant/sunburst.js +1 -1
  24. package/cjs/constant/waterfall.js +1 -1
  25. package/cjs/constant/word-cloud.js +1 -1
  26. package/cjs/core/index.js +1 -2
  27. package/cjs/env/env.js +1 -1
  28. package/cjs/env/index.js +1 -1
  29. package/esm/animation/callback-disappear.js +2 -3
  30. package/esm/animation/callback-disappear.js.map +1 -1
  31. package/esm/animation/index.js +2 -1
  32. package/esm/animation/interface.d.ts +1 -1
  33. package/esm/animation/interface.js.map +1 -1
  34. package/esm/compile/compiler.js +1 -1
  35. package/esm/compile/grammar-item.js +1 -1
  36. package/esm/compile/morph.js +1 -1
  37. package/esm/compile/state-manager.js +1 -1
  38. package/esm/compile/util.js +1 -1
  39. package/esm/component/marker/mark-point/base-mark-point.js +22 -20
  40. package/esm/component/marker/mark-point/base-mark-point.js.map +1 -1
  41. package/esm/component/tooltip/utils/show-tooltip.js +10 -2
  42. package/esm/component/tooltip/utils/show-tooltip.js.map +1 -1
  43. package/esm/component/util.js +2 -1
  44. package/esm/constant/data.js +1 -2
  45. package/esm/constant/gradient.js +2 -1
  46. package/esm/constant/sunburst.js +1 -1
  47. package/esm/constant/waterfall.js +1 -1
  48. package/esm/constant/word-cloud.js +1 -1
  49. package/esm/core/index.js +1 -2
  50. package/esm/env/env.js +1 -1
  51. package/esm/env/index.js +1 -1
  52. package/package.json +5 -5
package/build/index.es.js CHANGED
@@ -59687,7 +59687,7 @@ class CallbackDisappearAnimate extends AStageAnimate {
59687
59687
  }
59688
59688
  afterStageRender(stage, canvas) {
59689
59689
  var _a, _b;
59690
- (_b = (_a = this.params) === null || _a === void 0 ? void 0 : _a.callBack) === null || _b === void 0 ? void 0 : _b.call(_a, stage, canvas, this.currentAnimationRatio, this.animationTime);
59690
+ return (_b = (_a = this.params) === null || _a === void 0 ? void 0 : _a.callBack) === null || _b === void 0 ? void 0 : _b.call(_a, stage, canvas, this.currentAnimationRatio, this.animationTime);
59691
59691
  }
59692
59692
  }
59693
59693
 
@@ -95659,11 +95659,15 @@ function showTooltip(datum, options, component) {
95659
95659
  });
95660
95660
  return originDatum;
95661
95661
  };
95662
+ const transform = region.getOption().globalInstance.getStage().window.getViewBoxTransform().getInverse();
95662
95663
  const getMockEvent = (originPos) => {
95663
95664
  var _a, _b;
95664
95665
  const pos = bound(originPos);
95665
- const canvasX = (_a = opt.x) !== null && _a !== void 0 ? _a : regionPos.x + pos.x;
95666
- const canvasY = (_b = opt.y) !== null && _b !== void 0 ? _b : regionPos.y + pos.y;
95666
+ const tempX = (_a = opt.x) !== null && _a !== void 0 ? _a : regionPos.x + pos.x;
95667
+ const tempY = (_b = opt.y) !== null && _b !== void 0 ? _b : regionPos.y + pos.y;
95668
+ const canvasPoint = { x: 0, y: 0 };
95669
+ transform.transformPoint({ x: tempX, y: tempY }, canvasPoint);
95670
+ const { x: canvasX, y: canvasY } = canvasPoint;
95667
95671
  return {
95668
95672
  canvasX,
95669
95673
  canvasY,
@@ -102732,9 +102736,9 @@ class BaseMarkPoint extends BaseMarker {
102732
102736
  return 'cartesian';
102733
102737
  }
102734
102738
  _createMarkerComponent() {
102735
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
102739
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
102736
102740
  const { itemContent = {}, itemLine = {}, targetSymbol = {} } = this._spec;
102737
- const _8 = itemContent, { type = 'text', text: label, symbol, image, richText, customMark, textStyle, symbolStyle, imageStyle, richTextStyle, customMarkStyle, style = {}, state = {} } = _8, restItemContent = __rest$e(_8, ["type", "text", "symbol", "image", "richText", "customMark", "textStyle", "symbolStyle", "imageStyle", "richTextStyle", "customMarkStyle", "style", "state"]);
102741
+ const _9 = itemContent, { type = 'text', text: label, symbol, image, richText, customMark, textStyle, symbolStyle, imageStyle, richTextStyle, customMarkStyle, style = {}, state = {} } = _9, restItemContent = __rest$e(_9, ["type", "text", "symbol", "image", "richText", "customMark", "textStyle", "symbolStyle", "imageStyle", "richTextStyle", "customMarkStyle", "style", "state"]);
102738
102742
  let itemContentState = null;
102739
102743
  let itemContentStyle = null;
102740
102744
  let defaultStyle = {};
@@ -102744,61 +102748,61 @@ class BaseMarkPoint extends BaseMarker {
102744
102748
  dx: 0,
102745
102749
  dy: 0
102746
102750
  };
102747
- itemContentStyle = transformLabelAttributes(merge$1(defaultStyle, (_b = label !== null && label !== void 0 ? label : textStyle) !== null && _b !== void 0 ? _b : style), this._markerData, this._markAttributeContext);
102751
+ itemContentStyle = transformLabelAttributes(Object.assign(Object.assign({}, label), { style: merge$1(defaultStyle, (_c = (_b = label === null || label === void 0 ? void 0 : label.textStyle) !== null && _b !== void 0 ? _b : textStyle) !== null && _c !== void 0 ? _c : style) }), this._markerData, this._markAttributeContext);
102748
102752
  }
102749
102753
  else if (type === 'richText') {
102750
- itemContentState = (_c = richText === null || richText === void 0 ? void 0 : richText.state) !== null && _c !== void 0 ? _c : state;
102754
+ itemContentState = (_d = richText === null || richText === void 0 ? void 0 : richText.state) !== null && _d !== void 0 ? _d : state;
102751
102755
  defaultStyle = {
102752
102756
  width: 100,
102753
102757
  height: 100
102754
102758
  };
102755
- itemContentStyle = transformStyle(merge$1(defaultStyle, (_e = (_d = richText === null || richText === void 0 ? void 0 : richText.style) !== null && _d !== void 0 ? _d : richTextStyle) !== null && _e !== void 0 ? _e : style), this._markerData, this._markAttributeContext);
102759
+ itemContentStyle = transformStyle(merge$1(defaultStyle, (_f = (_e = richText === null || richText === void 0 ? void 0 : richText.style) !== null && _e !== void 0 ? _e : richTextStyle) !== null && _f !== void 0 ? _f : style), this._markerData, this._markAttributeContext);
102756
102760
  }
102757
102761
  else if (type === 'symbol') {
102758
- itemContentState = (_f = symbol === null || symbol === void 0 ? void 0 : symbol.state) !== null && _f !== void 0 ? _f : state;
102762
+ itemContentState = (_g = symbol === null || symbol === void 0 ? void 0 : symbol.state) !== null && _g !== void 0 ? _g : state;
102759
102763
  defaultStyle = {
102760
102764
  symbolType: 'star',
102761
102765
  fill: 'rgb(48, 115, 242)',
102762
102766
  fillOpacity: 0.8,
102763
102767
  size: 20
102764
102768
  };
102765
- itemContentStyle = transformToGraphic(transformStyle(merge$1(defaultStyle, (_h = (_g = symbol === null || symbol === void 0 ? void 0 : symbol.style) !== null && _g !== void 0 ? _g : symbolStyle) !== null && _h !== void 0 ? _h : style), this._markerData, this._markAttributeContext));
102769
+ itemContentStyle = transformToGraphic(transformStyle(merge$1(defaultStyle, (_j = (_h = symbol === null || symbol === void 0 ? void 0 : symbol.style) !== null && _h !== void 0 ? _h : symbolStyle) !== null && _j !== void 0 ? _j : style), this._markerData, this._markAttributeContext));
102766
102770
  }
102767
102771
  else if (type === 'image') {
102768
- itemContentState = (_j = image === null || image === void 0 ? void 0 : image.state) !== null && _j !== void 0 ? _j : state;
102772
+ itemContentState = (_k = image === null || image === void 0 ? void 0 : image.state) !== null && _k !== void 0 ? _k : state;
102769
102773
  defaultStyle = {
102770
102774
  width: 80,
102771
102775
  height: 80
102772
102776
  };
102773
- itemContentStyle = transformStyle(merge$1(defaultStyle, (_l = (_k = image === null || image === void 0 ? void 0 : image.style) !== null && _k !== void 0 ? _k : imageStyle) !== null && _l !== void 0 ? _l : style), this._markerData, this._markAttributeContext);
102777
+ itemContentStyle = transformStyle(merge$1(defaultStyle, (_m = (_l = image === null || image === void 0 ? void 0 : image.style) !== null && _l !== void 0 ? _l : imageStyle) !== null && _m !== void 0 ? _m : style), this._markerData, this._markAttributeContext);
102774
102778
  }
102775
102779
  else if (type === 'custom') {
102776
- itemContentState = (_m = customMark === null || customMark === void 0 ? void 0 : customMark.state) !== null && _m !== void 0 ? _m : state;
102777
- itemContentStyle = transformStyle((_p = (_o = customMark === null || customMark === void 0 ? void 0 : customMark.style) !== null && _o !== void 0 ? _o : customMarkStyle) !== null && _p !== void 0 ? _p : style, this._markerData, this._markAttributeContext);
102780
+ itemContentState = (_o = customMark === null || customMark === void 0 ? void 0 : customMark.state) !== null && _o !== void 0 ? _o : state;
102781
+ itemContentStyle = transformStyle((_q = (_p = customMark === null || customMark === void 0 ? void 0 : customMark.style) !== null && _p !== void 0 ? _p : customMarkStyle) !== null && _q !== void 0 ? _q : style, this._markerData, this._markAttributeContext);
102778
102782
  }
102779
102783
  const markPointAttrs = {
102780
102784
  zIndex: this.layoutZIndex,
102781
- interactive: (_q = this._spec.interactive) !== null && _q !== void 0 ? _q : true,
102782
- hover: (_r = this._spec.interactive) !== null && _r !== void 0 ? _r : true,
102783
- select: (_s = this._spec.interactive) !== null && _s !== void 0 ? _s : true,
102785
+ interactive: (_r = this._spec.interactive) !== null && _r !== void 0 ? _r : true,
102786
+ hover: (_s = this._spec.interactive) !== null && _s !== void 0 ? _s : true,
102787
+ select: (_t = this._spec.interactive) !== null && _t !== void 0 ? _t : true,
102784
102788
  position: { x: 0, y: 0 },
102785
- clipInRange: (_t = this._spec.clip) !== null && _t !== void 0 ? _t : false,
102789
+ clipInRange: (_u = this._spec.clip) !== null && _u !== void 0 ? _u : false,
102786
102790
  itemContent: Object.assign(Object.assign({ type, offsetX: transformOffset(itemContent.offsetX, this._relativeSeries.getRegion()), offsetY: transformOffset(itemContent.offsetX, this._relativeSeries.getRegion()) }, restItemContent), { style: transformStyle(itemContentStyle, this._markerData, this._markAttributeContext) }),
102787
102791
  targetSymbol: {
102788
- offset: (_u = targetSymbol.offset) !== null && _u !== void 0 ? _u : 0,
102789
- visible: (_v = targetSymbol.visible) !== null && _v !== void 0 ? _v : false,
102790
- size: (_w = targetSymbol.size) !== null && _w !== void 0 ? _w : 20,
102792
+ offset: (_v = targetSymbol.offset) !== null && _v !== void 0 ? _v : 0,
102793
+ visible: (_w = targetSymbol.visible) !== null && _w !== void 0 ? _w : false,
102794
+ size: (_x = targetSymbol.size) !== null && _x !== void 0 ? _x : 20,
102791
102795
  style: transformStyle(targetSymbol.style, this._markerData, this._markAttributeContext)
102792
102796
  },
102793
102797
  state: {
102794
- line: transformState((_y = (_x = this._spec.itemLine.line) === null || _x === void 0 ? void 0 : _x.state) !== null && _y !== void 0 ? _y : {}, this._markerData, this._markAttributeContext),
102795
- lineStartSymbol: transformState((_0 = (_z = this._spec.itemLine.startSymbol) === null || _z === void 0 ? void 0 : _z.state) !== null && _0 !== void 0 ? _0 : {}, this._markerData, this._markAttributeContext),
102796
- lineEndSymbol: transformState((_2 = (_1 = this._spec.itemLine.endSymbol) === null || _1 === void 0 ? void 0 : _1.state) !== null && _2 !== void 0 ? _2 : {}, this._markerData, this._markAttributeContext),
102798
+ line: transformState((_z = (_y = this._spec.itemLine.line) === null || _y === void 0 ? void 0 : _y.state) !== null && _z !== void 0 ? _z : {}, this._markerData, this._markAttributeContext),
102799
+ lineStartSymbol: transformState((_1 = (_0 = this._spec.itemLine.startSymbol) === null || _0 === void 0 ? void 0 : _0.state) !== null && _1 !== void 0 ? _1 : {}, this._markerData, this._markAttributeContext),
102800
+ lineEndSymbol: transformState((_3 = (_2 = this._spec.itemLine.endSymbol) === null || _2 === void 0 ? void 0 : _2.state) !== null && _3 !== void 0 ? _3 : {}, this._markerData, this._markAttributeContext),
102797
102801
  itemContent: transformState(itemContentState, this._markerData, this._markAttributeContext),
102798
- textBackground: transformState((_4 = (_3 = this._spec.itemContent.text) === null || _3 === void 0 ? void 0 : _3.labelBackground) === null || _4 === void 0 ? void 0 : _4.state, this._markerData, this._markAttributeContext),
102799
- targetItem: transformState((_6 = (_5 = this._spec.targetSymbol) === null || _5 === void 0 ? void 0 : _5.state) !== null && _6 !== void 0 ? _6 : {}, this._markerData, this._markAttributeContext)
102802
+ textBackground: transformState((_5 = (_4 = this._spec.itemContent.text) === null || _4 === void 0 ? void 0 : _4.labelBackground) === null || _5 === void 0 ? void 0 : _5.state, this._markerData, this._markAttributeContext),
102803
+ targetItem: transformState((_7 = (_6 = this._spec.targetSymbol) === null || _6 === void 0 ? void 0 : _6.state) !== null && _7 !== void 0 ? _7 : {}, this._markerData, this._markAttributeContext)
102800
102804
  },
102801
- animation: (_7 = this._spec.animation) !== null && _7 !== void 0 ? _7 : false,
102805
+ animation: (_8 = this._spec.animation) !== null && _8 !== void 0 ? _8 : false,
102802
102806
  animationEnter: this._spec.animationEnter,
102803
102807
  animationExit: this._spec.animationExit,
102804
102808
  animationUpdate: this._spec.animationUpdate
package/build/index.js CHANGED
@@ -59693,7 +59693,7 @@
59693
59693
  }
59694
59694
  afterStageRender(stage, canvas) {
59695
59695
  var _a, _b;
59696
- (_b = (_a = this.params) === null || _a === void 0 ? void 0 : _a.callBack) === null || _b === void 0 ? void 0 : _b.call(_a, stage, canvas, this.currentAnimationRatio, this.animationTime);
59696
+ return (_b = (_a = this.params) === null || _a === void 0 ? void 0 : _a.callBack) === null || _b === void 0 ? void 0 : _b.call(_a, stage, canvas, this.currentAnimationRatio, this.animationTime);
59697
59697
  }
59698
59698
  }
59699
59699
 
@@ -95665,11 +95665,15 @@
95665
95665
  });
95666
95666
  return originDatum;
95667
95667
  };
95668
+ const transform = region.getOption().globalInstance.getStage().window.getViewBoxTransform().getInverse();
95668
95669
  const getMockEvent = (originPos) => {
95669
95670
  var _a, _b;
95670
95671
  const pos = bound(originPos);
95671
- const canvasX = (_a = opt.x) !== null && _a !== void 0 ? _a : regionPos.x + pos.x;
95672
- const canvasY = (_b = opt.y) !== null && _b !== void 0 ? _b : regionPos.y + pos.y;
95672
+ const tempX = (_a = opt.x) !== null && _a !== void 0 ? _a : regionPos.x + pos.x;
95673
+ const tempY = (_b = opt.y) !== null && _b !== void 0 ? _b : regionPos.y + pos.y;
95674
+ const canvasPoint = { x: 0, y: 0 };
95675
+ transform.transformPoint({ x: tempX, y: tempY }, canvasPoint);
95676
+ const { x: canvasX, y: canvasY } = canvasPoint;
95673
95677
  return {
95674
95678
  canvasX,
95675
95679
  canvasY,
@@ -102738,9 +102742,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
102738
102742
  return 'cartesian';
102739
102743
  }
102740
102744
  _createMarkerComponent() {
102741
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
102745
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
102742
102746
  const { itemContent = {}, itemLine = {}, targetSymbol = {} } = this._spec;
102743
- const _8 = itemContent, { type = 'text', text: label, symbol, image, richText, customMark, textStyle, symbolStyle, imageStyle, richTextStyle, customMarkStyle, style = {}, state = {} } = _8, restItemContent = __rest$e(_8, ["type", "text", "symbol", "image", "richText", "customMark", "textStyle", "symbolStyle", "imageStyle", "richTextStyle", "customMarkStyle", "style", "state"]);
102747
+ const _9 = itemContent, { type = 'text', text: label, symbol, image, richText, customMark, textStyle, symbolStyle, imageStyle, richTextStyle, customMarkStyle, style = {}, state = {} } = _9, restItemContent = __rest$e(_9, ["type", "text", "symbol", "image", "richText", "customMark", "textStyle", "symbolStyle", "imageStyle", "richTextStyle", "customMarkStyle", "style", "state"]);
102744
102748
  let itemContentState = null;
102745
102749
  let itemContentStyle = null;
102746
102750
  let defaultStyle = {};
@@ -102750,61 +102754,61 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
102750
102754
  dx: 0,
102751
102755
  dy: 0
102752
102756
  };
102753
- itemContentStyle = transformLabelAttributes(merge$1(defaultStyle, (_b = label !== null && label !== void 0 ? label : textStyle) !== null && _b !== void 0 ? _b : style), this._markerData, this._markAttributeContext);
102757
+ itemContentStyle = transformLabelAttributes(Object.assign(Object.assign({}, label), { style: merge$1(defaultStyle, (_c = (_b = label === null || label === void 0 ? void 0 : label.textStyle) !== null && _b !== void 0 ? _b : textStyle) !== null && _c !== void 0 ? _c : style) }), this._markerData, this._markAttributeContext);
102754
102758
  }
102755
102759
  else if (type === 'richText') {
102756
- itemContentState = (_c = richText === null || richText === void 0 ? void 0 : richText.state) !== null && _c !== void 0 ? _c : state;
102760
+ itemContentState = (_d = richText === null || richText === void 0 ? void 0 : richText.state) !== null && _d !== void 0 ? _d : state;
102757
102761
  defaultStyle = {
102758
102762
  width: 100,
102759
102763
  height: 100
102760
102764
  };
102761
- itemContentStyle = transformStyle(merge$1(defaultStyle, (_e = (_d = richText === null || richText === void 0 ? void 0 : richText.style) !== null && _d !== void 0 ? _d : richTextStyle) !== null && _e !== void 0 ? _e : style), this._markerData, this._markAttributeContext);
102765
+ itemContentStyle = transformStyle(merge$1(defaultStyle, (_f = (_e = richText === null || richText === void 0 ? void 0 : richText.style) !== null && _e !== void 0 ? _e : richTextStyle) !== null && _f !== void 0 ? _f : style), this._markerData, this._markAttributeContext);
102762
102766
  }
102763
102767
  else if (type === 'symbol') {
102764
- itemContentState = (_f = symbol === null || symbol === void 0 ? void 0 : symbol.state) !== null && _f !== void 0 ? _f : state;
102768
+ itemContentState = (_g = symbol === null || symbol === void 0 ? void 0 : symbol.state) !== null && _g !== void 0 ? _g : state;
102765
102769
  defaultStyle = {
102766
102770
  symbolType: 'star',
102767
102771
  fill: 'rgb(48, 115, 242)',
102768
102772
  fillOpacity: 0.8,
102769
102773
  size: 20
102770
102774
  };
102771
- itemContentStyle = transformToGraphic(transformStyle(merge$1(defaultStyle, (_h = (_g = symbol === null || symbol === void 0 ? void 0 : symbol.style) !== null && _g !== void 0 ? _g : symbolStyle) !== null && _h !== void 0 ? _h : style), this._markerData, this._markAttributeContext));
102775
+ itemContentStyle = transformToGraphic(transformStyle(merge$1(defaultStyle, (_j = (_h = symbol === null || symbol === void 0 ? void 0 : symbol.style) !== null && _h !== void 0 ? _h : symbolStyle) !== null && _j !== void 0 ? _j : style), this._markerData, this._markAttributeContext));
102772
102776
  }
102773
102777
  else if (type === 'image') {
102774
- itemContentState = (_j = image === null || image === void 0 ? void 0 : image.state) !== null && _j !== void 0 ? _j : state;
102778
+ itemContentState = (_k = image === null || image === void 0 ? void 0 : image.state) !== null && _k !== void 0 ? _k : state;
102775
102779
  defaultStyle = {
102776
102780
  width: 80,
102777
102781
  height: 80
102778
102782
  };
102779
- itemContentStyle = transformStyle(merge$1(defaultStyle, (_l = (_k = image === null || image === void 0 ? void 0 : image.style) !== null && _k !== void 0 ? _k : imageStyle) !== null && _l !== void 0 ? _l : style), this._markerData, this._markAttributeContext);
102783
+ itemContentStyle = transformStyle(merge$1(defaultStyle, (_m = (_l = image === null || image === void 0 ? void 0 : image.style) !== null && _l !== void 0 ? _l : imageStyle) !== null && _m !== void 0 ? _m : style), this._markerData, this._markAttributeContext);
102780
102784
  }
102781
102785
  else if (type === 'custom') {
102782
- itemContentState = (_m = customMark === null || customMark === void 0 ? void 0 : customMark.state) !== null && _m !== void 0 ? _m : state;
102783
- itemContentStyle = transformStyle((_p = (_o = customMark === null || customMark === void 0 ? void 0 : customMark.style) !== null && _o !== void 0 ? _o : customMarkStyle) !== null && _p !== void 0 ? _p : style, this._markerData, this._markAttributeContext);
102786
+ itemContentState = (_o = customMark === null || customMark === void 0 ? void 0 : customMark.state) !== null && _o !== void 0 ? _o : state;
102787
+ itemContentStyle = transformStyle((_q = (_p = customMark === null || customMark === void 0 ? void 0 : customMark.style) !== null && _p !== void 0 ? _p : customMarkStyle) !== null && _q !== void 0 ? _q : style, this._markerData, this._markAttributeContext);
102784
102788
  }
102785
102789
  const markPointAttrs = {
102786
102790
  zIndex: this.layoutZIndex,
102787
- interactive: (_q = this._spec.interactive) !== null && _q !== void 0 ? _q : true,
102788
- hover: (_r = this._spec.interactive) !== null && _r !== void 0 ? _r : true,
102789
- select: (_s = this._spec.interactive) !== null && _s !== void 0 ? _s : true,
102791
+ interactive: (_r = this._spec.interactive) !== null && _r !== void 0 ? _r : true,
102792
+ hover: (_s = this._spec.interactive) !== null && _s !== void 0 ? _s : true,
102793
+ select: (_t = this._spec.interactive) !== null && _t !== void 0 ? _t : true,
102790
102794
  position: { x: 0, y: 0 },
102791
- clipInRange: (_t = this._spec.clip) !== null && _t !== void 0 ? _t : false,
102795
+ clipInRange: (_u = this._spec.clip) !== null && _u !== void 0 ? _u : false,
102792
102796
  itemContent: Object.assign(Object.assign({ type, offsetX: transformOffset(itemContent.offsetX, this._relativeSeries.getRegion()), offsetY: transformOffset(itemContent.offsetX, this._relativeSeries.getRegion()) }, restItemContent), { style: transformStyle(itemContentStyle, this._markerData, this._markAttributeContext) }),
102793
102797
  targetSymbol: {
102794
- offset: (_u = targetSymbol.offset) !== null && _u !== void 0 ? _u : 0,
102795
- visible: (_v = targetSymbol.visible) !== null && _v !== void 0 ? _v : false,
102796
- size: (_w = targetSymbol.size) !== null && _w !== void 0 ? _w : 20,
102798
+ offset: (_v = targetSymbol.offset) !== null && _v !== void 0 ? _v : 0,
102799
+ visible: (_w = targetSymbol.visible) !== null && _w !== void 0 ? _w : false,
102800
+ size: (_x = targetSymbol.size) !== null && _x !== void 0 ? _x : 20,
102797
102801
  style: transformStyle(targetSymbol.style, this._markerData, this._markAttributeContext)
102798
102802
  },
102799
102803
  state: {
102800
- line: transformState((_y = (_x = this._spec.itemLine.line) === null || _x === void 0 ? void 0 : _x.state) !== null && _y !== void 0 ? _y : {}, this._markerData, this._markAttributeContext),
102801
- lineStartSymbol: transformState((_0 = (_z = this._spec.itemLine.startSymbol) === null || _z === void 0 ? void 0 : _z.state) !== null && _0 !== void 0 ? _0 : {}, this._markerData, this._markAttributeContext),
102802
- lineEndSymbol: transformState((_2 = (_1 = this._spec.itemLine.endSymbol) === null || _1 === void 0 ? void 0 : _1.state) !== null && _2 !== void 0 ? _2 : {}, this._markerData, this._markAttributeContext),
102804
+ line: transformState((_z = (_y = this._spec.itemLine.line) === null || _y === void 0 ? void 0 : _y.state) !== null && _z !== void 0 ? _z : {}, this._markerData, this._markAttributeContext),
102805
+ lineStartSymbol: transformState((_1 = (_0 = this._spec.itemLine.startSymbol) === null || _0 === void 0 ? void 0 : _0.state) !== null && _1 !== void 0 ? _1 : {}, this._markerData, this._markAttributeContext),
102806
+ lineEndSymbol: transformState((_3 = (_2 = this._spec.itemLine.endSymbol) === null || _2 === void 0 ? void 0 : _2.state) !== null && _3 !== void 0 ? _3 : {}, this._markerData, this._markAttributeContext),
102803
102807
  itemContent: transformState(itemContentState, this._markerData, this._markAttributeContext),
102804
- textBackground: transformState((_4 = (_3 = this._spec.itemContent.text) === null || _3 === void 0 ? void 0 : _3.labelBackground) === null || _4 === void 0 ? void 0 : _4.state, this._markerData, this._markAttributeContext),
102805
- targetItem: transformState((_6 = (_5 = this._spec.targetSymbol) === null || _5 === void 0 ? void 0 : _5.state) !== null && _6 !== void 0 ? _6 : {}, this._markerData, this._markAttributeContext)
102808
+ textBackground: transformState((_5 = (_4 = this._spec.itemContent.text) === null || _4 === void 0 ? void 0 : _4.labelBackground) === null || _5 === void 0 ? void 0 : _5.state, this._markerData, this._markAttributeContext),
102809
+ targetItem: transformState((_7 = (_6 = this._spec.targetSymbol) === null || _6 === void 0 ? void 0 : _6.state) !== null && _7 !== void 0 ? _7 : {}, this._markerData, this._markAttributeContext)
102806
102810
  },
102807
- animation: (_7 = this._spec.animation) !== null && _7 !== void 0 ? _7 : false,
102811
+ animation: (_8 = this._spec.animation) !== null && _8 !== void 0 ? _8 : false,
102808
102812
  animationEnter: this._spec.animationEnter,
102809
102813
  animationExit: this._spec.animationExit,
102810
102814
  animationUpdate: this._spec.animationUpdate