@visactor/vchart 2.0.4-alpha.1 → 2.0.4-alpha.3

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 +35 -59
  3. package/build/index.js +35 -59
  4. package/build/index.min.js +2 -2
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/component/base/base-component.js.map +1 -1
  7. package/cjs/component/custom-mark/custom-mark.js +1 -2
  8. package/cjs/component/custom-mark/custom-mark.js.map +1 -1
  9. package/cjs/constant/attribute.js +1 -2
  10. package/cjs/constant/label.js +2 -1
  11. package/cjs/constant/waterfall.js +1 -2
  12. package/cjs/constant/word-cloud.js +1 -1
  13. package/cjs/core/expression-function.js +2 -1
  14. package/cjs/core/index.d.ts +1 -1
  15. package/cjs/core/index.js +1 -1
  16. package/cjs/core/index.js.map +1 -1
  17. package/cjs/core/vchart.js +1 -1
  18. package/cjs/event/event-dispatcher.d.ts +0 -1
  19. package/cjs/event/event-dispatcher.js +1 -12
  20. package/cjs/event/event-dispatcher.js.map +1 -1
  21. package/cjs/series/treemap/treemap.js +2 -2
  22. package/cjs/series/treemap/treemap.js.map +1 -1
  23. package/esm/component/base/base-component.js.map +1 -1
  24. package/esm/component/custom-mark/custom-mark.js +1 -2
  25. package/esm/component/custom-mark/custom-mark.js.map +1 -1
  26. package/esm/constant/attribute.js +1 -2
  27. package/esm/constant/label.js +2 -1
  28. package/esm/constant/waterfall.js +1 -2
  29. package/esm/constant/word-cloud.js +1 -1
  30. package/esm/core/expression-function.js +2 -1
  31. package/esm/core/index.d.ts +1 -1
  32. package/esm/core/index.js +1 -1
  33. package/esm/core/index.js.map +1 -1
  34. package/esm/core/vchart.js +1 -1
  35. package/esm/event/event-dispatcher.d.ts +0 -1
  36. package/esm/event/event-dispatcher.js +1 -12
  37. package/esm/event/event-dispatcher.js.map +1 -1
  38. package/esm/series/treemap/treemap.js +2 -2
  39. package/esm/series/treemap/treemap.js.map +1 -1
  40. package/package.json +8 -8
package/build/index.es.js CHANGED
@@ -9493,8 +9493,7 @@ const DefaultRectAttribute = Object.assign(Object.assign({}, DefaultAttribute),
9493
9493
  y1: 0,
9494
9494
  strokeBoundsBuffer: 0,
9495
9495
  cornerRadius: 0,
9496
- cornerType: "round",
9497
- drawStrokeWhenZeroWH: !1
9496
+ cornerType: "round"
9498
9497
  });
9499
9498
  Object.assign(Object.assign({}, DefaultAttribute), {
9500
9499
  width: 0,
@@ -9503,8 +9502,7 @@ Object.assign(Object.assign({}, DefaultAttribute), {
9503
9502
  y1: 0,
9504
9503
  cornerRadius: 0,
9505
9504
  length: 0,
9506
- cornerType: "round",
9507
- drawStrokeWhenZeroWH: !1
9505
+ cornerType: "round"
9508
9506
  });
9509
9507
  const DefaultSymbolAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
9510
9508
  symbolType: "circle",
@@ -14177,7 +14175,7 @@ class Graphic extends Node {
14177
14175
  });
14178
14176
  }
14179
14177
  setAttributes(params, forceUpdateTag = !1, context) {
14180
- 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));
14178
+ (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);
14181
14179
  }
14182
14180
  _setAttributes(params, forceUpdateTag = !1, context) {
14183
14181
  const keys = Object.keys(params);
@@ -15002,8 +15000,8 @@ function rectFillVisible(opacity, fillOpacity, width, height, fill) {
15002
15000
  function strokeVisible(opacity, strokeOpacity) {
15003
15001
  return opacity * strokeOpacity > 0;
15004
15002
  }
15005
- function rectStrokeVisible(opacity, strokeOpacity, width, height, drawStrokeWhenZeroWH) {
15006
- return drawStrokeWhenZeroWH ? opacity * strokeOpacity > 0 : opacity * strokeOpacity > 0 && 0 !== width && 0 !== height;
15003
+ function rectStrokeVisible(opacity, strokeOpacity, width, height) {
15004
+ return opacity * strokeOpacity > 0 && 0 !== width && 0 !== height;
15007
15005
  }
15008
15006
  function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
15009
15007
  const x10 = x1 - x0,
@@ -16373,10 +16371,14 @@ class Glyph extends Graphic {
16373
16371
  attrs && (Object.assign(stateAttrs, attrs.attributes), (null === (_a = attrs.subAttributes) || void 0 === _a ? void 0 : _a.length) && subAttrs.forEach((subAttrs, index) => {
16374
16372
  Object.assign(subAttrs, attrs.subAttributes[index]);
16375
16373
  }));
16374
+ }), this.subGraphic.forEach((graphic, index) => {
16375
+ graphic.updateNormalAttrs(subAttrs[index]), graphic.applyStateAttrs(subAttrs[index], states, hasAnimation);
16376
16376
  }), this.updateNormalAttrs(stateAttrs), this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation);
16377
16377
  }
16378
16378
  clearStates(hasAnimation) {
16379
- this.stopStateAnimates(), this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
16379
+ this.stopStateAnimates(), this.hasState() && this.normalAttrs ? (this.currentStates = [], this.subGraphic.forEach(graphic => {
16380
+ graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, !0), graphic.normalAttrs = null;
16381
+ }), this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
16380
16382
  }
16381
16383
  clone() {
16382
16384
  const glyph = new Glyph(Object.assign({}, this.attribute));
@@ -19635,8 +19637,7 @@ let DefaultCanvasRectRender = class extends BaseRender {
19635
19637
  y1: y1,
19636
19638
  x: originX = rectAttribute.x,
19637
19639
  y: originY = rectAttribute.y,
19638
- fillStrokeOrder = rectAttribute.fillStrokeOrder,
19639
- drawStrokeWhenZeroWH = rectAttribute.drawStrokeWhenZeroWH
19640
+ fillStrokeOrder = rectAttribute.fillStrokeOrder
19640
19641
  } = rect.attribute;
19641
19642
  let {
19642
19643
  width: width,
@@ -19644,7 +19645,7 @@ let DefaultCanvasRectRender = class extends BaseRender {
19644
19645
  } = rect.attribute;
19645
19646
  width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0;
19646
19647
  const fVisible = rectFillVisible(opacity, fillOpacity, width, height, fill),
19647
- sVisible = rectStrokeVisible(opacity, strokeOpacity, width, height, drawStrokeWhenZeroWH),
19648
+ sVisible = rectStrokeVisible(opacity, strokeOpacity, width, height),
19648
19649
  doFill = runFill(fill, background),
19649
19650
  doStroke = runStroke(stroke, lineWidth);
19650
19651
  if (!rect.valid || !visible) return;
@@ -21702,13 +21703,13 @@ class Stage extends Group$1 {
21702
21703
  this._skipRender > 1 && this.renderNextFrame(), this._skipRender = 0;
21703
21704
  } else this._skipRender = 1;
21704
21705
  }, this.beforeRender = stage => {
21705
- this._beforeRenderList.forEach(cb => cb(stage));
21706
+ this._beforeRender && this._beforeRender(stage);
21706
21707
  }, this.afterClearScreen = drawParams => {
21707
21708
  this._afterClearScreen && this._afterClearScreen(drawParams);
21708
21709
  }, this.afterClearRect = drawParams => {
21709
21710
  this._afterClearRect && this._afterClearRect(drawParams);
21710
21711
  }, this.afterRender = stage => {
21711
- this.renderCount++, this._afterRenderList.forEach(cb => cb(stage)), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
21712
+ this.renderCount++, this._afterRender && this._afterRender(stage), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
21712
21713
  }, this.afterTickCb = () => {
21713
21714
  this.tickedBeforeRender = !0, "rendering" !== this.state && this.renderNextFrame();
21714
21715
  }, this.params = params, this.theme = new Theme(), this.hooks = {
@@ -21716,7 +21717,7 @@ class Stage extends Group$1 {
21716
21717
  afterRender: new SyncHook(["stage"]),
21717
21718
  afterClearScreen: new SyncHook(["stage"]),
21718
21719
  afterClearRect: new SyncHook(["stage"])
21719
- }, 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({
21720
+ }, 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({
21720
21721
  width: params.width,
21721
21722
  height: params.height,
21722
21723
  viewBox: params.viewBox,
@@ -21727,7 +21728,7 @@ class Stage extends Group$1 {
21727
21728
  canvas: params.canvas
21728
21729
  }), 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, {
21729
21730
  main: !0
21730
- })), 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 = {
21731
+ })), 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 = {
21731
21732
  tickRenderMode: "effect"
21732
21733
  }), this.optmize(params.optimize), params.background && isString$1(this._background) && this._background.includes("/") && this.setAttributes({
21733
21734
  background: this._background
@@ -21842,16 +21843,10 @@ class Stage extends Group$1 {
21842
21843
  options.enableView3dTransform && this.enableView3dTransform();
21843
21844
  }
21844
21845
  setBeforeRender(cb) {
21845
- this._beforeRenderList.push(cb);
21846
- }
21847
- removeBeforeRender(cb) {
21848
- this._beforeRenderList = this._beforeRenderList.filter(c => c !== cb);
21846
+ this._beforeRender = cb;
21849
21847
  }
21850
21848
  setAfterRender(cb) {
21851
- this._afterRenderList.push(cb);
21852
- }
21853
- removeAfterRender(cb) {
21854
- this._afterRenderList = this._afterRenderList.filter(c => c !== cb);
21849
+ this._afterRender = cb;
21855
21850
  }
21856
21851
  afterNextRender(cb) {
21857
21852
  this._afterNextRenderCbs || (this._afterNextRenderCbs = []), this._afterNextRenderCbs.push(cb);
@@ -31718,7 +31713,6 @@ class Step {
31718
31713
  return this.getEndProps();
31719
31714
  }
31720
31715
  stop() {}
31721
- release() {}
31722
31716
  }
31723
31717
  class WaitStep extends Step {
31724
31718
  constructor(type, props, duration, easing) {
@@ -31936,9 +31930,7 @@ class Animate {
31936
31930
  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
31931
  }
31938
31932
  release() {
31939
- this.status = AnimateStatus.END, this._onRemove && this._onRemove.forEach(cb => cb()), this._onStart = [], this._onFrame = [], this._onEnd = [], this._onRemove = [], this.forEachStep(step => {
31940
- step.release();
31941
- });
31933
+ this.status = AnimateStatus.END, this._onRemove && this._onRemove.forEach(cb => cb()), this._onStart = [], this._onFrame = [], this._onEnd = [], this._onRemove = [];
31942
31934
  }
31943
31935
  getDuration() {
31944
31936
  return this._duration;
@@ -32012,10 +32004,6 @@ class Animate {
32012
32004
  getLoop() {
32013
32005
  return this._loopCount;
32014
32006
  }
32015
- forEachStep(cb) {
32016
- let step = this._firstStep;
32017
- for (; step;) cb(step), step = step.next;
32018
- }
32019
32007
  }
32020
32008
 
32021
32009
  const performanceRAF = new PerformanceRAF();
@@ -32295,9 +32283,6 @@ class AnimateExecutor {
32295
32283
  constructor(target) {
32296
32284
  this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._target = target;
32297
32285
  }
32298
- get started() {
32299
- return this._started;
32300
- }
32301
32286
  onStart(cb) {
32302
32287
  cb ? (this._startCallbacks.push(cb), this._started && this._activeCount > 0 && cb()) : this._startCallbacks.forEach(cb => {
32303
32288
  cb();
@@ -32438,14 +32423,14 @@ class AnimateExecutor {
32438
32423
  return delayAfterValue > 0 && (totalDelay += delayAfterValue), totalDelay > 0 && animate.wait(totalDelay), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
32439
32424
  }
32440
32425
  _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
32441
- var _a, _b, _c, _d, _e, _f;
32426
+ var _a, _b, _c, _d;
32442
32427
  if (custom && customType) {
32443
32428
  const customParams = Object.assign({
32444
- width: (null === (_a = graphic.stage) || void 0 === _a ? void 0 : _a.width) || 0,
32445
- height: (null === (_b = graphic.stage) || void 0 === _b ? void 0 : _b.height) || 0,
32429
+ width: graphic.stage.width,
32430
+ height: graphic.stage.height,
32446
32431
  group: this._target.parent
32447
32432
  }, this.resolveValue(customParameters, graphic)),
32448
- 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;
32433
+ 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;
32449
32434
  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);
32450
32435
  } else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
32451
32436
  }
@@ -32665,7 +32650,7 @@ class AnimationStateManager {
32665
32650
  reApplyState(state) {
32666
32651
  var _a;
32667
32652
  const stateInfo = null === (_a = this.stateList) || void 0 === _a ? void 0 : _a.find(stateInfo => stateInfo.state === state);
32668
- if (stateInfo && stateInfo.executor.started) {
32653
+ if (stateInfo) {
32669
32654
  const stateList = this.stateList.slice();
32670
32655
  stateInfo.executor.stop(), this.stateList = stateList, stateInfo.executor.execute(stateInfo.animationConfig);
32671
32656
  }
@@ -33709,7 +33694,7 @@ class GrowAngleBase extends ACustomAnimate {
33709
33694
  }
33710
33695
  class GrowAngleIn extends GrowAngleBase {
33711
33696
  onBind() {
33712
- var _a, _b, _c;
33697
+ var _a, _b;
33713
33698
  super.onBind();
33714
33699
  const {
33715
33700
  from: from,
@@ -33718,7 +33703,7 @@ class GrowAngleIn extends GrowAngleBase {
33718
33703
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
33719
33704
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
33720
33705
  const finalAttribute = this.target.getFinalAttribute();
33721
- finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs), this.determineUpdateFunction();
33706
+ finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs), this.determineUpdateFunction();
33722
33707
  }
33723
33708
  }
33724
33709
  class GrowAngleOut extends GrowAngleBase {
@@ -34326,7 +34311,7 @@ class GrowPointsBase extends ACustomAnimate {
34326
34311
  }
34327
34312
  class GrowRadiusIn extends GrowPointsBase {
34328
34313
  onBind() {
34329
- var _a, _b, _c;
34314
+ var _a, _b;
34330
34315
  super.onBind();
34331
34316
  const {
34332
34317
  from: from,
@@ -34335,7 +34320,7 @@ class GrowRadiusIn extends GrowPointsBase {
34335
34320
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
34336
34321
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
34337
34322
  const finalAttribute = this.target.getFinalAttribute();
34338
- finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
34323
+ finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
34339
34324
  }
34340
34325
  }
34341
34326
  class GrowRadiusOut extends GrowPointsBase {
@@ -34450,7 +34435,7 @@ class GrowWidthIn extends ACustomAnimate {
34450
34435
  super(from, to, duration, easing, params);
34451
34436
  }
34452
34437
  onBind() {
34453
- var _a, _b, _c;
34438
+ var _a, _b;
34454
34439
  super.onBind();
34455
34440
  const {
34456
34441
  from: from,
@@ -34459,7 +34444,7 @@ class GrowWidthIn extends ACustomAnimate {
34459
34444
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
34460
34445
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
34461
34446
  const finalAttribute = this.target.getFinalAttribute();
34462
- finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
34447
+ finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
34463
34448
  }
34464
34449
  onEnd(cb) {
34465
34450
  super.onEnd(cb);
@@ -49717,21 +49702,13 @@ class EventDispatcher {
49717
49702
  }
49718
49703
  return true;
49719
49704
  }
49720
- _prepareParams(filter, params) {
49721
- var _a, _b, _c;
49722
- if (filter.markName && params.mark) {
49723
- 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];
49724
- return Object.assign(Object.assign({}, params), { item: markGraphic, datum: getDatumOfGraphic(markGraphic) });
49725
- }
49726
- return Object.assign({}, params);
49727
- }
49728
49705
  _invoke(handlers, type, params) {
49729
49706
  const result = handlers.map(handler => {
49730
49707
  var _a, _b, _c;
49731
49708
  const filter = handler.filter;
49732
49709
  if (!handler.prevented && (!handler.query || this._filter(filter, type, params))) {
49733
49710
  const callback = handler.wrappedCallback || handler.callback;
49734
- const stopBubble = callback.call(null, this._prepareParams(filter, params));
49711
+ const stopBubble = callback.call(null, Object.assign({}, params));
49735
49712
  const doStopBubble = stopBubble !== null && stopBubble !== void 0 ? stopBubble : (_a = handler.query) === null || _a === void 0 ? void 0 : _a.consume;
49736
49713
  if (doStopBubble) {
49737
49714
  (_b = params.event) === null || _b === void 0 ? void 0 : _b.stopPropagation();
@@ -56941,7 +56918,7 @@ const lookup = (data, opt) => {
56941
56918
  });
56942
56919
  };
56943
56920
 
56944
- const version = "2.0.4-alpha.1";
56921
+ const version = "2.0.4-alpha.3";
56945
56922
 
56946
56923
  const addVChartProperty = (data, op) => {
56947
56924
  const context = op.beforeCall();
@@ -84243,7 +84220,7 @@ class TreemapSeries extends CartesianSeries {
84243
84220
  });
84244
84221
  [this._labelMark, this._nonLeafLabelMark].forEach(m => {
84245
84222
  if (m && m.getComponent()) {
84246
- m.getComponent().getProduct().getGroupGraphicItem().enableAnimation();
84223
+ m.getComponent().getProduct().enableAnimation();
84247
84224
  }
84248
84225
  });
84249
84226
  this.event.off(HOOK_EVENT.AFTER_DO_RENDER, this._enableAnimationHook);
@@ -84253,7 +84230,7 @@ class TreemapSeries extends CartesianSeries {
84253
84230
  });
84254
84231
  [this._labelMark, this._nonLeafLabelMark].forEach(m => {
84255
84232
  if (m && m.getComponent()) {
84256
- m.getComponent().getProduct().getGroupGraphicItem().disableAnimation();
84233
+ m.getComponent().getProduct().disableAnimation();
84257
84234
  }
84258
84235
  });
84259
84236
  }
@@ -97121,14 +97098,13 @@ class CustomMark extends BaseComponent {
97121
97098
  getVRenderComponents() {
97122
97099
  const comps = [];
97123
97100
  const checkFunc = (m) => {
97124
- var _a;
97125
97101
  if (m && m.type === "group") {
97126
97102
  m.getMarks().forEach(child => {
97127
97103
  checkFunc(child);
97128
97104
  });
97129
97105
  }
97130
97106
  else if (m.type === "component") {
97131
- const comp = (_a = m === null || m === void 0 ? void 0 : m.getProduct()) === null || _a === void 0 ? void 0 : _a.getGroupGraphicItem();
97107
+ const comp = m === null || m === void 0 ? void 0 : m.getComponent();
97132
97108
  if (comp) {
97133
97109
  comps.push(comp);
97134
97110
  }
package/build/index.js CHANGED
@@ -9499,8 +9499,7 @@
9499
9499
  y1: 0,
9500
9500
  strokeBoundsBuffer: 0,
9501
9501
  cornerRadius: 0,
9502
- cornerType: "round",
9503
- drawStrokeWhenZeroWH: !1
9502
+ cornerType: "round"
9504
9503
  });
9505
9504
  Object.assign(Object.assign({}, DefaultAttribute), {
9506
9505
  width: 0,
@@ -9509,8 +9508,7 @@
9509
9508
  y1: 0,
9510
9509
  cornerRadius: 0,
9511
9510
  length: 0,
9512
- cornerType: "round",
9513
- drawStrokeWhenZeroWH: !1
9511
+ cornerType: "round"
9514
9512
  });
9515
9513
  const DefaultSymbolAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
9516
9514
  symbolType: "circle",
@@ -14183,7 +14181,7 @@
14183
14181
  });
14184
14182
  }
14185
14183
  setAttributes(params, forceUpdateTag = !1, 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));
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);
14187
14185
  }
14188
14186
  _setAttributes(params, forceUpdateTag = !1, context) {
14189
14187
  const keys = Object.keys(params);
@@ -15008,8 +15006,8 @@
15008
15006
  function strokeVisible(opacity, strokeOpacity) {
15009
15007
  return opacity * strokeOpacity > 0;
15010
15008
  }
15011
- function rectStrokeVisible(opacity, strokeOpacity, width, height, drawStrokeWhenZeroWH) {
15012
- return drawStrokeWhenZeroWH ? opacity * strokeOpacity > 0 : opacity * strokeOpacity > 0 && 0 !== width && 0 !== height;
15009
+ function rectStrokeVisible(opacity, strokeOpacity, width, height) {
15010
+ return opacity * strokeOpacity > 0 && 0 !== width && 0 !== height;
15013
15011
  }
15014
15012
  function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
15015
15013
  const x10 = x1 - x0,
@@ -16379,10 +16377,14 @@
16379
16377
  attrs && (Object.assign(stateAttrs, attrs.attributes), (null === (_a = attrs.subAttributes) || void 0 === _a ? void 0 : _a.length) && subAttrs.forEach((subAttrs, index) => {
16380
16378
  Object.assign(subAttrs, attrs.subAttributes[index]);
16381
16379
  }));
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.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
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;
16386
16388
  }
16387
16389
  clone() {
16388
16390
  const glyph = new Glyph(Object.assign({}, this.attribute));
@@ -19641,8 +19643,7 @@
19641
19643
  y1: y1,
19642
19644
  x: originX = rectAttribute.x,
19643
19645
  y: originY = rectAttribute.y,
19644
- fillStrokeOrder = rectAttribute.fillStrokeOrder,
19645
- drawStrokeWhenZeroWH = rectAttribute.drawStrokeWhenZeroWH
19646
+ fillStrokeOrder = rectAttribute.fillStrokeOrder
19646
19647
  } = rect.attribute;
19647
19648
  let {
19648
19649
  width: width,
@@ -19650,7 +19651,7 @@
19650
19651
  } = rect.attribute;
19651
19652
  width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0;
19652
19653
  const fVisible = rectFillVisible(opacity, fillOpacity, width, height, fill),
19653
- sVisible = rectStrokeVisible(opacity, strokeOpacity, width, height, drawStrokeWhenZeroWH),
19654
+ sVisible = rectStrokeVisible(opacity, strokeOpacity, width, height),
19654
19655
  doFill = runFill(fill, background),
19655
19656
  doStroke = runStroke(stroke, lineWidth);
19656
19657
  if (!rect.valid || !visible) return;
@@ -21708,13 +21709,13 @@
21708
21709
  this._skipRender > 1 && this.renderNextFrame(), this._skipRender = 0;
21709
21710
  } else this._skipRender = 1;
21710
21711
  }, this.beforeRender = stage => {
21711
- this._beforeRenderList.forEach(cb => cb(stage));
21712
+ this._beforeRender && this._beforeRender(stage);
21712
21713
  }, this.afterClearScreen = drawParams => {
21713
21714
  this._afterClearScreen && this._afterClearScreen(drawParams);
21714
21715
  }, this.afterClearRect = drawParams => {
21715
21716
  this._afterClearRect && this._afterClearRect(drawParams);
21716
21717
  }, this.afterRender = stage => {
21717
- this.renderCount++, this._afterRenderList.forEach(cb => cb(stage)), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
21718
+ this.renderCount++, this._afterRender && this._afterRender(stage), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
21718
21719
  }, this.afterTickCb = () => {
21719
21720
  this.tickedBeforeRender = !0, "rendering" !== this.state && this.renderNextFrame();
21720
21721
  }, this.params = params, this.theme = new Theme(), this.hooks = {
@@ -21722,7 +21723,7 @@
21722
21723
  afterRender: new SyncHook(["stage"]),
21723
21724
  afterClearScreen: new SyncHook(["stage"]),
21724
21725
  afterClearRect: new SyncHook(["stage"])
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({
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({
21726
21727
  width: params.width,
21727
21728
  height: params.height,
21728
21729
  viewBox: params.viewBox,
@@ -21733,7 +21734,7 @@
21733
21734
  canvas: params.canvas
21734
21735
  }), 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, {
21735
21736
  main: !0
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 = {
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 = {
21737
21738
  tickRenderMode: "effect"
21738
21739
  }), this.optmize(params.optimize), params.background && isString$1(this._background) && this._background.includes("/") && this.setAttributes({
21739
21740
  background: this._background
@@ -21848,16 +21849,10 @@
21848
21849
  options.enableView3dTransform && this.enableView3dTransform();
21849
21850
  }
21850
21851
  setBeforeRender(cb) {
21851
- this._beforeRenderList.push(cb);
21852
- }
21853
- removeBeforeRender(cb) {
21854
- this._beforeRenderList = this._beforeRenderList.filter(c => c !== cb);
21852
+ this._beforeRender = cb;
21855
21853
  }
21856
21854
  setAfterRender(cb) {
21857
- this._afterRenderList.push(cb);
21858
- }
21859
- removeAfterRender(cb) {
21860
- this._afterRenderList = this._afterRenderList.filter(c => c !== cb);
21855
+ this._afterRender = cb;
21861
21856
  }
21862
21857
  afterNextRender(cb) {
21863
21858
  this._afterNextRenderCbs || (this._afterNextRenderCbs = []), this._afterNextRenderCbs.push(cb);
@@ -31724,7 +31719,6 @@
31724
31719
  return this.getEndProps();
31725
31720
  }
31726
31721
  stop() {}
31727
- release() {}
31728
31722
  }
31729
31723
  class WaitStep extends Step {
31730
31724
  constructor(type, props, duration, easing) {
@@ -31942,9 +31936,7 @@
31942
31936
  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));
31943
31937
  }
31944
31938
  release() {
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
- });
31939
+ this.status = AnimateStatus.END, this._onRemove && this._onRemove.forEach(cb => cb()), this._onStart = [], this._onFrame = [], this._onEnd = [], this._onRemove = [];
31948
31940
  }
31949
31941
  getDuration() {
31950
31942
  return this._duration;
@@ -32018,10 +32010,6 @@
32018
32010
  getLoop() {
32019
32011
  return this._loopCount;
32020
32012
  }
32021
- forEachStep(cb) {
32022
- let step = this._firstStep;
32023
- for (; step;) cb(step), step = step.next;
32024
- }
32025
32013
  }
32026
32014
 
32027
32015
  const performanceRAF = new PerformanceRAF();
@@ -32301,9 +32289,6 @@
32301
32289
  constructor(target) {
32302
32290
  this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._target = target;
32303
32291
  }
32304
- get started() {
32305
- return this._started;
32306
- }
32307
32292
  onStart(cb) {
32308
32293
  cb ? (this._startCallbacks.push(cb), this._started && this._activeCount > 0 && cb()) : this._startCallbacks.forEach(cb => {
32309
32294
  cb();
@@ -32444,14 +32429,14 @@
32444
32429
  return delayAfterValue > 0 && (totalDelay += delayAfterValue), totalDelay > 0 && animate.wait(totalDelay), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
32445
32430
  }
32446
32431
  _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
32447
- var _a, _b, _c, _d, _e, _f;
32432
+ var _a, _b, _c, _d;
32448
32433
  if (custom && customType) {
32449
32434
  const customParams = Object.assign({
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,
32435
+ width: graphic.stage.width,
32436
+ height: graphic.stage.height,
32452
32437
  group: this._target.parent
32453
32438
  }, this.resolveValue(customParameters, graphic)),
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;
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;
32455
32440
  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);
32456
32441
  } else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
32457
32442
  }
@@ -32671,7 +32656,7 @@
32671
32656
  reApplyState(state) {
32672
32657
  var _a;
32673
32658
  const stateInfo = null === (_a = this.stateList) || void 0 === _a ? void 0 : _a.find(stateInfo => stateInfo.state === state);
32674
- if (stateInfo && stateInfo.executor.started) {
32659
+ if (stateInfo) {
32675
32660
  const stateList = this.stateList.slice();
32676
32661
  stateInfo.executor.stop(), this.stateList = stateList, stateInfo.executor.execute(stateInfo.animationConfig);
32677
32662
  }
@@ -33715,7 +33700,7 @@
33715
33700
  }
33716
33701
  class GrowAngleIn extends GrowAngleBase {
33717
33702
  onBind() {
33718
- var _a, _b, _c;
33703
+ var _a, _b;
33719
33704
  super.onBind();
33720
33705
  const {
33721
33706
  from: from,
@@ -33724,7 +33709,7 @@
33724
33709
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
33725
33710
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
33726
33711
  const finalAttribute = this.target.getFinalAttribute();
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();
33712
+ finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs), this.determineUpdateFunction();
33728
33713
  }
33729
33714
  }
33730
33715
  class GrowAngleOut extends GrowAngleBase {
@@ -34332,7 +34317,7 @@
34332
34317
  }
34333
34318
  class GrowRadiusIn extends GrowPointsBase {
34334
34319
  onBind() {
34335
- var _a, _b, _c;
34320
+ var _a, _b;
34336
34321
  super.onBind();
34337
34322
  const {
34338
34323
  from: from,
@@ -34341,7 +34326,7 @@
34341
34326
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
34342
34327
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
34343
34328
  const finalAttribute = this.target.getFinalAttribute();
34344
- finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
34329
+ finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
34345
34330
  }
34346
34331
  }
34347
34332
  class GrowRadiusOut extends GrowPointsBase {
@@ -34456,7 +34441,7 @@
34456
34441
  super(from, to, duration, easing, params);
34457
34442
  }
34458
34443
  onBind() {
34459
- var _a, _b, _c;
34444
+ var _a, _b;
34460
34445
  super.onBind();
34461
34446
  const {
34462
34447
  from: from,
@@ -34465,7 +34450,7 @@
34465
34450
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
34466
34451
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
34467
34452
  const finalAttribute = this.target.getFinalAttribute();
34468
- finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
34453
+ finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
34469
34454
  }
34470
34455
  onEnd(cb) {
34471
34456
  super.onEnd(cb);
@@ -49723,21 +49708,13 @@
49723
49708
  }
49724
49709
  return true;
49725
49710
  }
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
- }
49734
49711
  _invoke(handlers, type, params) {
49735
49712
  const result = handlers.map(handler => {
49736
49713
  var _a, _b, _c;
49737
49714
  const filter = handler.filter;
49738
49715
  if (!handler.prevented && (!handler.query || this._filter(filter, type, params))) {
49739
49716
  const callback = handler.wrappedCallback || handler.callback;
49740
- const stopBubble = callback.call(null, this._prepareParams(filter, params));
49717
+ const stopBubble = callback.call(null, Object.assign({}, params));
49741
49718
  const doStopBubble = stopBubble !== null && stopBubble !== void 0 ? stopBubble : (_a = handler.query) === null || _a === void 0 ? void 0 : _a.consume;
49742
49719
  if (doStopBubble) {
49743
49720
  (_b = params.event) === null || _b === void 0 ? void 0 : _b.stopPropagation();
@@ -56947,7 +56924,7 @@
56947
56924
  });
56948
56925
  };
56949
56926
 
56950
- const version = "2.0.4-alpha.1";
56927
+ const version = "2.0.4-alpha.3";
56951
56928
 
56952
56929
  const addVChartProperty = (data, op) => {
56953
56930
  const context = op.beforeCall();
@@ -84249,7 +84226,7 @@
84249
84226
  });
84250
84227
  [this._labelMark, this._nonLeafLabelMark].forEach(m => {
84251
84228
  if (m && m.getComponent()) {
84252
- m.getComponent().getProduct().getGroupGraphicItem().enableAnimation();
84229
+ m.getComponent().getProduct().enableAnimation();
84253
84230
  }
84254
84231
  });
84255
84232
  this.event.off(HOOK_EVENT.AFTER_DO_RENDER, this._enableAnimationHook);
@@ -84259,7 +84236,7 @@
84259
84236
  });
84260
84237
  [this._labelMark, this._nonLeafLabelMark].forEach(m => {
84261
84238
  if (m && m.getComponent()) {
84262
- m.getComponent().getProduct().getGroupGraphicItem().disableAnimation();
84239
+ m.getComponent().getProduct().disableAnimation();
84263
84240
  }
84264
84241
  });
84265
84242
  }
@@ -97127,14 +97104,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97127
97104
  getVRenderComponents() {
97128
97105
  const comps = [];
97129
97106
  const checkFunc = (m) => {
97130
- var _a;
97131
97107
  if (m && m.type === "group") {
97132
97108
  m.getMarks().forEach(child => {
97133
97109
  checkFunc(child);
97134
97110
  });
97135
97111
  }
97136
97112
  else if (m.type === "component") {
97137
- const comp = (_a = m === null || m === void 0 ? void 0 : m.getProduct()) === null || _a === void 0 ? void 0 : _a.getGroupGraphicItem();
97113
+ const comp = m === null || m === void 0 ? void 0 : m.getComponent();
97138
97114
  if (comp) {
97139
97115
  comps.push(comp);
97140
97116
  }