@visactor/vchart 2.0.4-alpha.6 → 2.0.4-alpha.8

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 (40) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +62 -41
  3. package/build/index.js +62 -41
  4. package/build/index.min.js +2 -2
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/animation/utils.js +1 -1
  7. package/cjs/animation/utils.js.map +1 -1
  8. package/cjs/compile/compiler.js +3 -4
  9. package/cjs/compile/compiler.js.map +1 -1
  10. package/cjs/component/base/base-component.js.map +1 -1
  11. package/cjs/component/custom-mark/custom-mark.js +2 -1
  12. package/cjs/component/custom-mark/custom-mark.js.map +1 -1
  13. package/cjs/core/index.d.ts +1 -1
  14. package/cjs/core/index.js +1 -1
  15. package/cjs/core/index.js.map +1 -1
  16. package/cjs/event/event-dispatcher.d.ts +1 -0
  17. package/cjs/event/event-dispatcher.js +12 -1
  18. package/cjs/event/event-dispatcher.js.map +1 -1
  19. package/cjs/series/treemap/treemap.js +2 -2
  20. package/cjs/series/treemap/treemap.js.map +1 -1
  21. package/cjs/util/style.js +2 -3
  22. package/cjs/util/style.js.map +1 -1
  23. package/esm/animation/utils.js +1 -1
  24. package/esm/animation/utils.js.map +1 -1
  25. package/esm/compile/compiler.js +3 -4
  26. package/esm/compile/compiler.js.map +1 -1
  27. package/esm/component/base/base-component.js.map +1 -1
  28. package/esm/component/custom-mark/custom-mark.js +2 -1
  29. package/esm/component/custom-mark/custom-mark.js.map +1 -1
  30. package/esm/core/index.d.ts +1 -1
  31. package/esm/core/index.js +1 -1
  32. package/esm/core/index.js.map +1 -1
  33. package/esm/event/event-dispatcher.d.ts +1 -0
  34. package/esm/event/event-dispatcher.js +12 -1
  35. package/esm/event/event-dispatcher.js.map +1 -1
  36. package/esm/series/treemap/treemap.js +2 -2
  37. package/esm/series/treemap/treemap.js.map +1 -1
  38. package/esm/util/style.js +2 -3
  39. package/esm/util/style.js.map +1 -1
  40. package/package.json +6 -6
package/build/index.js CHANGED
@@ -9499,7 +9499,8 @@
9499
9499
  y1: 0,
9500
9500
  strokeBoundsBuffer: 0,
9501
9501
  cornerRadius: 0,
9502
- cornerType: "round"
9502
+ cornerType: "round",
9503
+ drawStrokeWhenZeroWH: !1
9503
9504
  });
9504
9505
  Object.assign(Object.assign({}, DefaultAttribute), {
9505
9506
  width: 0,
@@ -9508,7 +9509,8 @@
9508
9509
  y1: 0,
9509
9510
  cornerRadius: 0,
9510
9511
  length: 0,
9511
- cornerType: "round"
9512
+ cornerType: "round",
9513
+ drawStrokeWhenZeroWH: !1
9512
9514
  });
9513
9515
  const DefaultSymbolAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
9514
9516
  symbolType: "circle",
@@ -14181,7 +14183,7 @@
14181
14183
  });
14182
14184
  }
14183
14185
  setAttributes(params, forceUpdateTag = !1, context) {
14184
- (params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background ? this.loadImage(params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._setAttributes(params, forceUpdateTag, context);
14186
+ params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background ? this.loadImage(params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._setAttributes(params, forceUpdateTag, context));
14185
14187
  }
14186
14188
  _setAttributes(params, forceUpdateTag = !1, context) {
14187
14189
  const keys = Object.keys(params);
@@ -15006,8 +15008,8 @@
15006
15008
  function strokeVisible(opacity, strokeOpacity) {
15007
15009
  return opacity * strokeOpacity > 0;
15008
15010
  }
15009
- function rectStrokeVisible(opacity, strokeOpacity, width, height) {
15010
- return opacity * strokeOpacity > 0 && 0 !== width && 0 !== height;
15011
+ function rectStrokeVisible(opacity, strokeOpacity, width, height, drawStrokeWhenZeroWH) {
15012
+ return drawStrokeWhenZeroWH ? opacity * strokeOpacity > 0 : opacity * strokeOpacity > 0 && 0 !== width && 0 !== height;
15011
15013
  }
15012
15014
  function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
15013
15015
  const x10 = x1 - x0,
@@ -16377,14 +16379,10 @@
16377
16379
  attrs && (Object.assign(stateAttrs, attrs.attributes), (null === (_a = attrs.subAttributes) || void 0 === _a ? void 0 : _a.length) && subAttrs.forEach((subAttrs, index) => {
16378
16380
  Object.assign(subAttrs, attrs.subAttributes[index]);
16379
16381
  }));
16380
- }), this.subGraphic.forEach((graphic, index) => {
16381
- graphic.updateNormalAttrs(subAttrs[index]), graphic.applyStateAttrs(subAttrs[index], states, hasAnimation);
16382
16382
  }), this.updateNormalAttrs(stateAttrs), this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation);
16383
16383
  }
16384
16384
  clearStates(hasAnimation) {
16385
- this.stopStateAnimates(), this.hasState() && this.normalAttrs ? (this.currentStates = [], this.subGraphic.forEach(graphic => {
16386
- graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, !0), graphic.normalAttrs = null;
16387
- }), this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
16385
+ this.stopStateAnimates(), this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
16388
16386
  }
16389
16387
  clone() {
16390
16388
  const glyph = new Glyph(Object.assign({}, this.attribute));
@@ -19643,7 +19641,8 @@
19643
19641
  y1: y1,
19644
19642
  x: originX = rectAttribute.x,
19645
19643
  y: originY = rectAttribute.y,
19646
- fillStrokeOrder = rectAttribute.fillStrokeOrder
19644
+ fillStrokeOrder = rectAttribute.fillStrokeOrder,
19645
+ drawStrokeWhenZeroWH = rectAttribute.drawStrokeWhenZeroWH
19647
19646
  } = rect.attribute;
19648
19647
  let {
19649
19648
  width: width,
@@ -19651,7 +19650,7 @@
19651
19650
  } = rect.attribute;
19652
19651
  width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0;
19653
19652
  const fVisible = rectFillVisible(opacity, fillOpacity, width, height, fill),
19654
- sVisible = rectStrokeVisible(opacity, strokeOpacity, width, height),
19653
+ sVisible = rectStrokeVisible(opacity, strokeOpacity, width, height, drawStrokeWhenZeroWH),
19655
19654
  doFill = runFill(fill, background),
19656
19655
  doStroke = runStroke(stroke, lineWidth);
19657
19656
  if (!rect.valid || !visible) return;
@@ -21709,13 +21708,13 @@
21709
21708
  this._skipRender > 1 && this.renderNextFrame(), this._skipRender = 0;
21710
21709
  } else this._skipRender = 1;
21711
21710
  }, this.beforeRender = stage => {
21712
- this._beforeRender && this._beforeRender(stage);
21711
+ this._beforeRenderList.forEach(cb => cb(stage));
21713
21712
  }, this.afterClearScreen = drawParams => {
21714
21713
  this._afterClearScreen && this._afterClearScreen(drawParams);
21715
21714
  }, this.afterClearRect = drawParams => {
21716
21715
  this._afterClearRect && this._afterClearRect(drawParams);
21717
21716
  }, this.afterRender = stage => {
21718
- this.renderCount++, this._afterRender && this._afterRender(stage), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
21717
+ this.renderCount++, this._afterRenderList.forEach(cb => cb(stage)), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
21719
21718
  }, this.afterTickCb = () => {
21720
21719
  this.tickedBeforeRender = !0, "rendering" !== this.state && this.renderNextFrame();
21721
21720
  }, this.params = params, this.theme = new Theme(), this.hooks = {
@@ -21723,7 +21722,7 @@
21723
21722
  afterRender: new SyncHook(["stage"]),
21724
21723
  afterClearScreen: new SyncHook(["stage"]),
21725
21724
  afterClearRect: new SyncHook(["stage"])
21726
- }, this.global = application.global, !this.global.env && isBrowserEnv() && this.global.setEnv("browser"), this.window = container.get(VWindow), this.renderService = container.get(RenderService), this.pluginService = container.get(PluginService), this.layerService = container.get(LayerService), this.graphicService = container.get(GraphicService), this.pluginService.active(this, params), this.window.create({
21725
+ }, this.global = application.global, !this.global.env && isBrowserEnv() && this.global.setEnv("browser"), this.window = container.get(VWindow), this.renderService = container.get(RenderService), this.pluginService = container.get(PluginService), this.layerService = container.get(LayerService), this.graphicService = container.get(GraphicService), this.pluginService.active(this, params), this._beforeRenderList = [], this._afterRenderList = [], this.window.create({
21727
21726
  width: params.width,
21728
21727
  height: params.height,
21729
21728
  viewBox: params.viewBox,
@@ -21734,7 +21733,7 @@
21734
21733
  canvas: params.canvas
21735
21734
  }), this.state = "normal", this.renderCount = 0, this.tryInitEventSystem(), this._background = null !== (_a = params.background) && void 0 !== _a ? _a : DefaultConfig.BACKGROUND, this.appendChild(this.layerService.createLayer(this, {
21736
21735
  main: !0
21737
- })), this.nextFrameRenderLayerSet = new Set(), this.willNextFrameRender = !1, this.stage = this, this.renderStyle = params.renderStyle, params.autoRender && this.enableAutoRender(), params.autoRefresh && this.enableAutoRefresh(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.ReactDOM && this.enableReactAttribute(params.ReactDOM), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this.hooks.afterClearScreen.tap("constructor", this.afterClearScreen), this.hooks.afterClearRect.tap("constructor", this.afterClearRect), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this._afterClearScreen = params.afterClearScreen, this._afterClearRect = params.afterClearRect, this.supportInteractiveLayer = !1 !== params.interactiveLayer, params.optimize || (params.optimize = {
21736
+ })), this.nextFrameRenderLayerSet = new Set(), this.willNextFrameRender = !1, this.stage = this, this.renderStyle = params.renderStyle, params.autoRender && this.enableAutoRender(), params.autoRefresh && this.enableAutoRefresh(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.ReactDOM && this.enableReactAttribute(params.ReactDOM), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), params.beforeRender && this._beforeRenderList.push(params.beforeRender), params.afterRender && this._afterRenderList.push(params.afterRender), this.hooks.afterClearScreen.tap("constructor", this.afterClearScreen), this.hooks.afterClearRect.tap("constructor", this.afterClearRect), this._afterClearScreen = params.afterClearScreen, this._afterClearRect = params.afterClearRect, this.supportInteractiveLayer = !1 !== params.interactiveLayer, params.optimize || (params.optimize = {
21738
21737
  tickRenderMode: "effect"
21739
21738
  }), this.optmize(params.optimize), params.background && isString$1(this._background) && this._background.includes("/") && this.setAttributes({
21740
21739
  background: this._background
@@ -21849,10 +21848,16 @@
21849
21848
  options.enableView3dTransform && this.enableView3dTransform();
21850
21849
  }
21851
21850
  setBeforeRender(cb) {
21852
- this._beforeRender = cb;
21851
+ this._beforeRenderList.push(cb);
21852
+ }
21853
+ removeBeforeRender(cb) {
21854
+ this._beforeRenderList = this._beforeRenderList.filter(c => c !== cb);
21853
21855
  }
21854
21856
  setAfterRender(cb) {
21855
- this._afterRender = cb;
21857
+ this._afterRenderList.push(cb);
21858
+ }
21859
+ removeAfterRender(cb) {
21860
+ this._afterRenderList = this._afterRenderList.filter(c => c !== cb);
21856
21861
  }
21857
21862
  afterNextRender(cb) {
21858
21863
  this._afterNextRenderCbs || (this._afterNextRenderCbs = []), this._afterNextRenderCbs.push(cb);
@@ -31719,6 +31724,7 @@
31719
31724
  return this.getEndProps();
31720
31725
  }
31721
31726
  stop() {}
31727
+ release() {}
31722
31728
  }
31723
31729
  class WaitStep extends Step {
31724
31730
  constructor(type, props, duration, easing) {
@@ -31936,7 +31942,9 @@
31936
31942
  this.status !== AnimateStatus.END && this.onEnd(), this.status = AnimateStatus.END, this.target && ("start" === type ? this.target.setAttributes(this._startProps) : "end" === type ? this.target.setAttributes(this._endProps) : type && this.target.setAttributes(type));
31937
31943
  }
31938
31944
  release() {
31939
- this.status = AnimateStatus.END, this._onRemove && this._onRemove.forEach(cb => cb()), this._onStart = [], this._onFrame = [], this._onEnd = [], this._onRemove = [];
31945
+ this.status = AnimateStatus.END, this._onRemove && this._onRemove.forEach(cb => cb()), this._onStart = [], this._onFrame = [], this._onEnd = [], this._onRemove = [], this.forEachStep(step => {
31946
+ step.release();
31947
+ });
31940
31948
  }
31941
31949
  getDuration() {
31942
31950
  return this._duration;
@@ -32010,6 +32018,10 @@
32010
32018
  getLoop() {
32011
32019
  return this._loopCount;
32012
32020
  }
32021
+ forEachStep(cb) {
32022
+ let step = this._firstStep;
32023
+ for (; step;) cb(step), step = step.next;
32024
+ }
32013
32025
  }
32014
32026
 
32015
32027
  const performanceRAF = new PerformanceRAF();
@@ -32289,6 +32301,9 @@
32289
32301
  constructor(target) {
32290
32302
  this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._target = target;
32291
32303
  }
32304
+ get started() {
32305
+ return this._started;
32306
+ }
32292
32307
  onStart(cb) {
32293
32308
  cb ? (this._startCallbacks.push(cb), this._started && this._activeCount > 0 && cb()) : this._startCallbacks.forEach(cb => {
32294
32309
  cb();
@@ -32429,14 +32444,14 @@
32429
32444
  return delayAfterValue > 0 && (totalDelay += delayAfterValue), totalDelay > 0 && animate.wait(totalDelay), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
32430
32445
  }
32431
32446
  _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
32432
- var _a, _b, _c, _d;
32447
+ var _a, _b, _c, _d, _e, _f;
32433
32448
  if (custom && customType) {
32434
32449
  const customParams = Object.assign({
32435
- width: graphic.stage.width,
32436
- height: graphic.stage.height,
32450
+ width: (null === (_a = graphic.stage) || void 0 === _a ? void 0 : _a.width) || 0,
32451
+ height: (null === (_b = graphic.stage) || void 0 === _b ? void 0 : _b.height) || 0,
32437
32452
  group: this._target.parent
32438
32453
  }, this.resolveValue(customParameters, graphic)),
32439
- objOptions = isFunction$1(options) ? options.call(null, null !== (_b = customParams && (null === (_a = customParams.data) || void 0 === _a ? void 0 : _a[0])) && void 0 !== _b ? _b : null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, customParams) : options;
32454
+ objOptions = isFunction$1(options) ? options.call(null, null !== (_d = customParams && (null === (_c = customParams.data) || void 0 === _c ? void 0 : _c[0])) && void 0 !== _d ? _d : null === (_f = null === (_e = graphic.context) || void 0 === _e ? void 0 : _e.data) || void 0 === _f ? void 0 : _f[0], graphic, customParams) : options;
32440
32455
  customParams.options = objOptions, customParams.controlOptions = controlOptions, 1 === customType ? this.createCustomAnimation(animate, custom, from, props, duration, easing, customParams) : 2 === customType && this.createCustomInterpolatorAnimation(animate, custom, props, duration, easing, customParams);
32441
32456
  } else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
32442
32457
  }
@@ -32656,7 +32671,7 @@
32656
32671
  reApplyState(state) {
32657
32672
  var _a;
32658
32673
  const stateInfo = null === (_a = this.stateList) || void 0 === _a ? void 0 : _a.find(stateInfo => stateInfo.state === state);
32659
- if (stateInfo) {
32674
+ if (stateInfo && stateInfo.executor.started) {
32660
32675
  const stateList = this.stateList.slice();
32661
32676
  stateInfo.executor.stop(), this.stateList = stateList, stateInfo.executor.execute(stateInfo.animationConfig);
32662
32677
  }
@@ -33700,7 +33715,7 @@
33700
33715
  }
33701
33716
  class GrowAngleIn extends GrowAngleBase {
33702
33717
  onBind() {
33703
- var _a, _b;
33718
+ var _a, _b, _c;
33704
33719
  super.onBind();
33705
33720
  const {
33706
33721
  from: from,
@@ -33709,7 +33724,7 @@
33709
33724
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
33710
33725
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
33711
33726
  const finalAttribute = this.target.getFinalAttribute();
33712
- finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs), this.determineUpdateFunction();
33727
+ finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs), this.determineUpdateFunction();
33713
33728
  }
33714
33729
  }
33715
33730
  class GrowAngleOut extends GrowAngleBase {
@@ -34317,7 +34332,7 @@
34317
34332
  }
34318
34333
  class GrowRadiusIn extends GrowPointsBase {
34319
34334
  onBind() {
34320
- var _a, _b;
34335
+ var _a, _b, _c;
34321
34336
  super.onBind();
34322
34337
  const {
34323
34338
  from: from,
@@ -34326,7 +34341,7 @@
34326
34341
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
34327
34342
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
34328
34343
  const finalAttribute = this.target.getFinalAttribute();
34329
- finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
34344
+ finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
34330
34345
  }
34331
34346
  }
34332
34347
  class GrowRadiusOut extends GrowPointsBase {
@@ -34441,7 +34456,7 @@
34441
34456
  super(from, to, duration, easing, params);
34442
34457
  }
34443
34458
  onBind() {
34444
- var _a, _b;
34459
+ var _a, _b, _c;
34445
34460
  super.onBind();
34446
34461
  const {
34447
34462
  from: from,
@@ -34450,7 +34465,7 @@
34450
34465
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
34451
34466
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
34452
34467
  const finalAttribute = this.target.getFinalAttribute();
34453
- finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
34468
+ finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
34454
34469
  }
34455
34470
  onEnd(cb) {
34456
34471
  super.onEnd(cb);
@@ -49142,7 +49157,7 @@
49142
49157
  }
49143
49158
  function transformToGraphic(style) {
49144
49159
  if (style === null || style === void 0 ? void 0 : style.angle) {
49145
- return Object.assign(Object.assign({}, style), { angle: degreeToRadian(style.angle) });
49160
+ style.angle = degreeToRadian(style.angle);
49146
49161
  }
49147
49162
  return style;
49148
49163
  }
@@ -49708,13 +49723,21 @@
49708
49723
  }
49709
49724
  return true;
49710
49725
  }
49726
+ _prepareParams(filter, params) {
49727
+ var _a, _b, _c;
49728
+ if (filter.markName && params.mark) {
49729
+ const markGraphic = (_c = (_b = (_a = params.mark).getGraphics) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c[0];
49730
+ return Object.assign(Object.assign({}, params), { item: markGraphic, datum: getDatumOfGraphic(markGraphic) });
49731
+ }
49732
+ return Object.assign({}, params);
49733
+ }
49711
49734
  _invoke(handlers, type, params) {
49712
49735
  const result = handlers.map(handler => {
49713
49736
  var _a, _b, _c;
49714
49737
  const filter = handler.filter;
49715
49738
  if (!handler.prevented && (!handler.query || this._filter(filter, type, params))) {
49716
49739
  const callback = handler.wrappedCallback || handler.callback;
49717
- const stopBubble = callback.call(null, Object.assign({}, params));
49740
+ const stopBubble = callback.call(null, this._prepareParams(filter, params));
49718
49741
  const doStopBubble = stopBubble !== null && stopBubble !== void 0 ? stopBubble : (_a = handler.query) === null || _a === void 0 ? void 0 : _a.consume;
49719
49742
  if (doStopBubble) {
49720
49743
  (_b = params.event) === null || _b === void 0 ? void 0 : _b.stopPropagation();
@@ -50244,7 +50267,7 @@
50244
50267
  (_b = (_a = this._compileChart) === null || _a === void 0 ? void 0 : _a.getEvent()) === null || _b === void 0 ? void 0 : _b.emit(exports.ChartEvent.afterRender, { chart: this._compileChart });
50245
50268
  };
50246
50269
  this._handleAfterNextRender = () => {
50247
- var _a, _b, _c, _d;
50270
+ var _a, _b;
50248
50271
  if (this._stage && !this._option.disableDirtyBounds) {
50249
50272
  this._stage.enableDirtyBounds();
50250
50273
  }
@@ -50254,7 +50277,6 @@
50254
50277
  vchart: (_b = this._compileChart.getOption()) === null || _b === void 0 ? void 0 : _b.globalInstance
50255
50278
  });
50256
50279
  }
50257
- (_d = (_c = this._option.performanceHook) === null || _c === void 0 ? void 0 : _c.afterVRenderDraw) === null || _d === void 0 ? void 0 : _d.call(_c, this._compileChart.getOption().globalInstance);
50258
50280
  };
50259
50281
  this.handleProgressiveFrame = () => {
50260
50282
  if (this._progressiveMarks.length) {
@@ -50404,7 +50426,6 @@
50404
50426
  });
50405
50427
  }
50406
50428
  _doRender(immediately) {
50407
- var _a, _b;
50408
50429
  if (this._stage) {
50409
50430
  this._rootMarks.forEach(g => {
50410
50431
  traverseGroupMark(g, m => {
@@ -50421,7 +50442,6 @@
50421
50442
  this._stage.afterNextRender(this._handleAfterNextRender);
50422
50443
  if (immediately) {
50423
50444
  this._stage.render();
50424
- (_b = (_a = this._option.performanceHook) === null || _a === void 0 ? void 0 : _a.afterVRenderDraw) === null || _b === void 0 ? void 0 : _b.call(_a, this._compileChart.getOption().globalInstance);
50425
50445
  }
50426
50446
  }
50427
50447
  }
@@ -56927,7 +56947,7 @@
56927
56947
  });
56928
56948
  };
56929
56949
 
56930
- const version = "2.0.4-alpha.6";
56950
+ const version = "2.0.4-alpha.8";
56931
56951
 
56932
56952
  const addVChartProperty = (data, op) => {
56933
56953
  const context = op.beforeCall();
@@ -57676,7 +57696,7 @@
57676
57696
  traverseSpec(spec[index], transform, excludeKeys);
57677
57697
  });
57678
57698
  }
57679
- else if (isObject$2(spec)) {
57699
+ else if (isObject$2(spec) && typeof spec !== 'function') {
57680
57700
  for (const key in spec) {
57681
57701
  if (!excludeKeys.includes(key)) {
57682
57702
  spec[key] = transform(spec[key], key);
@@ -84229,7 +84249,7 @@
84229
84249
  });
84230
84250
  [this._labelMark, this._nonLeafLabelMark].forEach(m => {
84231
84251
  if (m && m.getComponent()) {
84232
- m.getComponent().getProduct().enableAnimation();
84252
+ m.getComponent().getProduct().getGroupGraphicItem().enableAnimation();
84233
84253
  }
84234
84254
  });
84235
84255
  this.event.off(HOOK_EVENT.AFTER_DO_RENDER, this._enableAnimationHook);
@@ -84239,7 +84259,7 @@
84239
84259
  });
84240
84260
  [this._labelMark, this._nonLeafLabelMark].forEach(m => {
84241
84261
  if (m && m.getComponent()) {
84242
- m.getComponent().getProduct().disableAnimation();
84262
+ m.getComponent().getProduct().getGroupGraphicItem().disableAnimation();
84243
84263
  }
84244
84264
  });
84245
84265
  }
@@ -97107,13 +97127,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97107
97127
  getVRenderComponents() {
97108
97128
  const comps = [];
97109
97129
  const checkFunc = (m) => {
97130
+ var _a;
97110
97131
  if (m && m.type === "group") {
97111
97132
  m.getMarks().forEach(child => {
97112
97133
  checkFunc(child);
97113
97134
  });
97114
97135
  }
97115
97136
  else if (m.type === "component") {
97116
- const comp = m === null || m === void 0 ? void 0 : m.getComponent();
97137
+ const comp = (_a = m === null || m === void 0 ? void 0 : m.getProduct()) === null || _a === void 0 ? void 0 : _a.getGroupGraphicItem();
97117
97138
  if (comp) {
97118
97139
  comps.push(comp);
97119
97140
  }