@visactor/react-vchart 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/build/index.js +259 -119
  2. package/build/index.min.js +3 -3
  3. package/cjs/charts/AreaChart.js +1 -1
  4. package/cjs/charts/Bar3dChart.js +1 -1
  5. package/cjs/charts/BarChart.js +1 -1
  6. package/cjs/charts/BaseChart.js +1 -1
  7. package/cjs/charts/BoxPlotChart.js +1 -1
  8. package/cjs/charts/CirclePackingChart.js +1 -1
  9. package/cjs/charts/CircularProgressChart.js +1 -1
  10. package/cjs/charts/CommonChart.js +1 -1
  11. package/cjs/charts/CorrelationChart.js +1 -1
  12. package/cjs/charts/Funnel3dChart.js +1 -1
  13. package/cjs/charts/FunnelChart.js +1 -1
  14. package/cjs/charts/GaugeChart.js +1 -1
  15. package/cjs/charts/HeatmapChart.js +1 -1
  16. package/cjs/charts/Histogram3dChart.js +1 -1
  17. package/cjs/charts/HistogramChart.js +1 -2
  18. package/cjs/charts/LineChart.js +1 -1
  19. package/cjs/charts/LinearProgressChart.js +1 -1
  20. package/cjs/charts/LiquidChart.js +1 -1
  21. package/cjs/charts/MapChart.js +1 -1
  22. package/cjs/charts/MosaicChart.js +1 -1
  23. package/cjs/charts/PictogramChart.js +1 -1
  24. package/cjs/charts/Pie3dChart.js +1 -1
  25. package/cjs/charts/PieChart.js +1 -1
  26. package/cjs/charts/RadarChart.js +1 -1
  27. package/cjs/charts/RangeAreaChart.js +1 -1
  28. package/cjs/charts/RangeColumn3dChart.js +1 -1
  29. package/cjs/charts/RangeColumnChart.js +1 -1
  30. package/cjs/charts/RoseChart.js +1 -1
  31. package/cjs/charts/SankeyChart.js +1 -1
  32. package/cjs/charts/ScatterChart.js +1 -1
  33. package/cjs/charts/SequenceChart.js +1 -2
  34. package/cjs/charts/SunburstChart.js +1 -1
  35. package/cjs/charts/TreemapChart.js +1 -1
  36. package/cjs/charts/VennChart.js +1 -1
  37. package/cjs/charts/WaterfallChart.js +1 -1
  38. package/cjs/charts/WordCloud3dChart.js +1 -1
  39. package/cjs/charts/WordCloudChart.js +1 -1
  40. package/cjs/components/Region.js +2 -1
  41. package/cjs/components/ScrollBar.js +1 -2
  42. package/cjs/context/chart.js +1 -1
  43. package/cjs/context/stage.js +1 -1
  44. package/cjs/index.d.ts +1 -1
  45. package/cjs/index.js +1 -1
  46. package/cjs/index.js.map +1 -1
  47. package/cjs/series/Area.js +1 -1
  48. package/cjs/series/Bar.js +1 -1
  49. package/cjs/series/Bar3d.js +1 -1
  50. package/cjs/series/BaseSeries.js +1 -1
  51. package/cjs/series/BoxPlot.js +1 -1
  52. package/cjs/series/CirclePacking.js +1 -1
  53. package/cjs/series/CircularProgress.js +1 -1
  54. package/cjs/series/Correlation.js +1 -1
  55. package/cjs/series/Dot.js +1 -1
  56. package/cjs/series/Funnel.js +1 -1
  57. package/cjs/series/Funnel3d.js +1 -1
  58. package/cjs/series/Gauge.js +2 -1
  59. package/cjs/series/GaugePointer.js +1 -1
  60. package/cjs/series/Heatmap.js +1 -1
  61. package/cjs/series/Line.js +1 -1
  62. package/cjs/series/LinearProgress.js +1 -1
  63. package/cjs/series/Link.js +1 -1
  64. package/cjs/series/Liquid.js +1 -1
  65. package/cjs/series/Map.js +1 -1
  66. package/cjs/series/Mosaic.js +1 -1
  67. package/cjs/series/Pictogram.js +1 -1
  68. package/cjs/series/Pie.js +1 -1
  69. package/cjs/series/Pie3d.js +1 -1
  70. package/cjs/series/Radar.js +1 -1
  71. package/cjs/series/RangeArea.js +1 -1
  72. package/cjs/series/RangeColumn.js +1 -1
  73. package/cjs/series/RangeColumn3d.js +1 -1
  74. package/cjs/series/Rose.js +2 -1
  75. package/cjs/series/Sankey.js +1 -1
  76. package/cjs/series/Scatter.js +1 -1
  77. package/cjs/series/Series.js +1 -1
  78. package/cjs/series/Sunburst.js +1 -1
  79. package/cjs/series/Treemap.js +1 -1
  80. package/cjs/series/Venn.js +1 -1
  81. package/cjs/series/Waterfall.js +1 -1
  82. package/esm/charts/AreaChart.js +1 -1
  83. package/esm/charts/Bar3dChart.js +1 -1
  84. package/esm/charts/BarChart.js +1 -1
  85. package/esm/charts/BaseChart.js +1 -1
  86. package/esm/charts/BoxPlotChart.js +1 -1
  87. package/esm/charts/CirclePackingChart.js +1 -1
  88. package/esm/charts/CircularProgressChart.js +1 -1
  89. package/esm/charts/CommonChart.js +1 -1
  90. package/esm/charts/CorrelationChart.js +1 -1
  91. package/esm/charts/Funnel3dChart.js +1 -1
  92. package/esm/charts/FunnelChart.js +1 -1
  93. package/esm/charts/GaugeChart.js +1 -1
  94. package/esm/charts/HeatmapChart.js +1 -1
  95. package/esm/charts/Histogram3dChart.js +1 -1
  96. package/esm/charts/HistogramChart.js +1 -2
  97. package/esm/charts/LineChart.js +1 -1
  98. package/esm/charts/LinearProgressChart.js +1 -1
  99. package/esm/charts/LiquidChart.js +1 -1
  100. package/esm/charts/MapChart.js +1 -1
  101. package/esm/charts/MosaicChart.js +1 -1
  102. package/esm/charts/PictogramChart.js +1 -1
  103. package/esm/charts/Pie3dChart.js +1 -1
  104. package/esm/charts/PieChart.js +1 -1
  105. package/esm/charts/RadarChart.js +1 -1
  106. package/esm/charts/RangeAreaChart.js +1 -1
  107. package/esm/charts/RangeColumn3dChart.js +1 -1
  108. package/esm/charts/RangeColumnChart.js +1 -1
  109. package/esm/charts/RoseChart.js +1 -1
  110. package/esm/charts/SankeyChart.js +1 -1
  111. package/esm/charts/ScatterChart.js +1 -1
  112. package/esm/charts/SequenceChart.js +1 -2
  113. package/esm/charts/SunburstChart.js +1 -1
  114. package/esm/charts/TreemapChart.js +1 -1
  115. package/esm/charts/VennChart.js +1 -1
  116. package/esm/charts/WaterfallChart.js +1 -1
  117. package/esm/charts/WordCloud3dChart.js +1 -1
  118. package/esm/charts/WordCloudChart.js +1 -1
  119. package/esm/components/Region.js +2 -1
  120. package/esm/components/ScrollBar.js +1 -2
  121. package/esm/context/chart.js +1 -1
  122. package/esm/context/stage.js +1 -1
  123. package/esm/index.d.ts +1 -1
  124. package/esm/index.js +1 -1
  125. package/esm/index.js.map +1 -1
  126. package/esm/series/Area.js +1 -1
  127. package/esm/series/Bar.js +1 -1
  128. package/esm/series/Bar3d.js +1 -1
  129. package/esm/series/BaseSeries.js +1 -1
  130. package/esm/series/BoxPlot.js +1 -1
  131. package/esm/series/CirclePacking.js +1 -1
  132. package/esm/series/CircularProgress.js +1 -1
  133. package/esm/series/Correlation.js +1 -1
  134. package/esm/series/Dot.js +1 -1
  135. package/esm/series/Funnel.js +1 -1
  136. package/esm/series/Funnel3d.js +1 -1
  137. package/esm/series/Gauge.js +2 -1
  138. package/esm/series/GaugePointer.js +1 -1
  139. package/esm/series/Heatmap.js +1 -1
  140. package/esm/series/Line.js +1 -1
  141. package/esm/series/LinearProgress.js +1 -1
  142. package/esm/series/Link.js +1 -1
  143. package/esm/series/Liquid.js +1 -1
  144. package/esm/series/Map.js +1 -1
  145. package/esm/series/Mosaic.js +1 -1
  146. package/esm/series/Pictogram.js +1 -1
  147. package/esm/series/Pie.js +1 -1
  148. package/esm/series/Pie3d.js +1 -1
  149. package/esm/series/Radar.js +1 -1
  150. package/esm/series/RangeArea.js +1 -1
  151. package/esm/series/RangeColumn.js +1 -1
  152. package/esm/series/RangeColumn3d.js +1 -1
  153. package/esm/series/Rose.js +2 -1
  154. package/esm/series/Sankey.js +1 -1
  155. package/esm/series/Scatter.js +1 -1
  156. package/esm/series/Series.js +1 -1
  157. package/esm/series/Sunburst.js +1 -1
  158. package/esm/series/Treemap.js +1 -1
  159. package/esm/series/Venn.js +1 -1
  160. package/esm/series/Waterfall.js +1 -1
  161. package/package.json +7 -7
package/build/index.js CHANGED
@@ -13828,9 +13828,10 @@
13828
13828
  } else assignFallbackAttr(this.getStateTransitionDefaultAttribute(key, staticTargetAttrs));
13829
13829
  }), extraAttrs;
13830
13830
  }
13831
- syncObjectToSnapshot(target, snapshot) {
13831
+ syncObjectToSnapshot(target, snapshot, excludedKeys) {
13832
13832
  const delta = new Map();
13833
13833
  return new Set([...Object.keys(target), ...Object.keys(snapshot)]).forEach(key => {
13834
+ if (!0 === (null == excludedKeys ? void 0 : excludedKeys[key])) return;
13834
13835
  const hasNext = Object.prototype.hasOwnProperty.call(snapshot, key),
13835
13836
  previousValue = target[key];
13836
13837
  if (!hasNext) return void (Object.prototype.hasOwnProperty.call(target, key) && (delta.set(key, {
@@ -13844,17 +13845,17 @@
13844
13845
  }), target[key] = cloneAttributeValue(nextValue));
13845
13846
  }), delta;
13846
13847
  }
13847
- _syncAttribute() {
13848
+ _syncAttribute(excludedKeys) {
13848
13849
  this.attribute === this.baseAttributes && this.resolvedStatePatch && this.detachAttributeFromBaseAttributes();
13849
13850
  const snapshot = this.buildStaticAttributeSnapshot(),
13850
- delta = this.syncObjectToSnapshot(this.attribute, snapshot);
13851
- return this.valid = this.isValid(), this.attributeMayContainTransientAttrs = !1, delta;
13851
+ delta = this.syncObjectToSnapshot(this.attribute, snapshot, excludedKeys);
13852
+ return this.valid = this.isValid(), this.attributeMayContainTransientAttrs = !!excludedKeys, delta;
13852
13853
  }
13853
- _syncFinalAttributeFromStaticTruth() {
13854
+ _syncFinalAttributeFromStaticTruth(excludedKeys) {
13854
13855
  const target = this.finalAttribute;
13855
13856
  if (!target) return;
13856
13857
  const snapshot = this.buildStaticAttributeSnapshot();
13857
- this.syncObjectToSnapshot(target, snapshot);
13858
+ this.syncObjectToSnapshot(target, snapshot, excludedKeys);
13858
13859
  }
13859
13860
  mergeAttributeDeltaCategory(category, key, prev, next) {
13860
13861
  var _a;
@@ -13911,6 +13912,25 @@
13911
13912
  this.getBaseAttributesStorage()[key] = params[key];
13912
13913
  }
13913
13914
  }
13915
+ _commitAnimationStaticAttributes(params, context) {
13916
+ if (!params) return;
13917
+ const source = params,
13918
+ baseAttributes = this.getBaseAttributesStorage(),
13919
+ target = this.attribute,
13920
+ delta = new Map();
13921
+ let hasKeys = !1;
13922
+ for (const key in source) {
13923
+ if (!Object.prototype.hasOwnProperty.call(source, key)) continue;
13924
+ hasKeys = !0;
13925
+ const previousValue = target[key],
13926
+ nextValue = source[key];
13927
+ baseAttributes[key] = nextValue, target[key] = nextValue, areAttributeValuesEqual(previousValue, nextValue) || delta.set(key, {
13928
+ prev: previousValue,
13929
+ next: nextValue
13930
+ });
13931
+ }
13932
+ hasKeys && (this.valid = this.isValid(), this.attributeMayContainTransientAttrs = !0, this.submitUpdateByDelta(delta), this.onAttributeUpdate(context));
13933
+ }
13914
13934
  applyAnimationTransientAttributes(params, forceUpdateTag = !1, context) {
13915
13935
  const source = params;
13916
13936
  let target,
@@ -13933,9 +13953,9 @@
13933
13953
  }
13934
13954
  delta.size && (this.attributeMayContainTransientAttrs = !0), this.valid = this.isValid(), this.submitUpdateByDelta(delta, forceUpdateTag), this.onAttributeUpdate(context);
13935
13955
  }
13936
- _restoreAttributeFromStaticTruth(context) {
13937
- this._syncFinalAttributeFromStaticTruth();
13938
- const delta = this._syncAttribute();
13956
+ _restoreAttributeFromStaticTruth(context, excludedKeys) {
13957
+ this._syncFinalAttributeFromStaticTruth(excludedKeys);
13958
+ const delta = this._syncAttribute(excludedKeys);
13939
13959
  this.submitUpdateByDelta(delta), this.onAttributeUpdate(context);
13940
13960
  }
13941
13961
  collectStatePatchDeltaKeys(previousPatch, nextPatch) {
@@ -20746,14 +20766,18 @@
20746
20766
  }
20747
20767
  class ContributionStore {
20748
20768
  static getStore(id) {
20749
- return this.store.get(id);
20769
+ var _a;
20770
+ return null === (_a = this.store.get(id)) || void 0 === _a ? void 0 : _a.values().next().value;
20750
20771
  }
20751
20772
  static setStore(id, cache) {
20752
- this.store.set(id, cache);
20773
+ let caches = this.store.get(id);
20774
+ caches || (caches = new Set(), this.store.set(id, caches)), caches.add(cache);
20753
20775
  }
20754
20776
  static refreshAllContributions() {
20755
- this.store.forEach(cache => {
20756
- cache.refresh();
20777
+ this.store.forEach(caches => {
20778
+ caches.forEach(cache => {
20779
+ cache.refresh();
20780
+ });
20757
20781
  });
20758
20782
  }
20759
20783
  }
@@ -22054,6 +22078,9 @@
22054
22078
  }
22055
22079
  const defaultGroupBackgroundRenderContribution = new DefaultGroupBackgroundRenderContribution();
22056
22080
 
22081
+ function hasDisabledStrokeSide(stroke) {
22082
+ return Array.isArray(stroke) && stroke.some(s => !1 === s || null === s);
22083
+ }
22057
22084
  class DefaultRectRenderContribution {
22058
22085
  constructor() {
22059
22086
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -22109,7 +22136,7 @@
22109
22136
  const {
22110
22137
  stroke = groupAttribute.stroke
22111
22138
  } = group.attribute;
22112
- Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
22139
+ hasDisabledStrokeSide(stroke) && (doFillOrStroke.doStroke = !1);
22113
22140
  }
22114
22141
  }
22115
22142
  class SplitRectAfterRenderContribution {
@@ -22130,7 +22157,7 @@
22130
22157
  width: width,
22131
22158
  height: height
22132
22159
  } = rect.attribute;
22133
- if (width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0, Array.isArray(stroke) && stroke.some(s => !1 === s)) {
22160
+ if (width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0, hasDisabledStrokeSide(stroke)) {
22134
22161
  if (context.setStrokeStyle(rect, rect.attribute, x, y, groupAttribute), !(0 === cornerRadius || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num))) {
22135
22162
  let lastStroke,
22136
22163
  lastStrokeI = 0;
@@ -24929,8 +24956,13 @@
24929
24956
  const runtimeInstallerContext = createLegacyBindingContext();
24930
24957
  let runtimeGlobal,
24931
24958
  runtimeInstallerPreloaded = !1;
24932
- const runtimeEntryKeys = new WeakMap(),
24933
- runtimeDrawContributions = new WeakMap();
24959
+ const RUNTIME_RENDERER_NAMESPACE = "vrender:runtime-renderer",
24960
+ RUNTIME_PICKER_NAMESPACE = "vrender:runtime-picker",
24961
+ runtimeEntryKeys = new WeakMap(),
24962
+ runtimeDrawContributions = new WeakMap(),
24963
+ loadedRuntimeContributionModules = new WeakMap(),
24964
+ DEFAULT_RUNTIME_CONTRIBUTION_TARGETS = ["graphic-renderer"],
24965
+ noopUnbindRuntimeContributionService = () => {};
24934
24966
  function ensureRuntimeInstallerPreloaded() {
24935
24967
  runtimeInstallerPreloaded || (runtimeInstallerPreloaded = !0, bindCoreModules({
24936
24968
  bind: runtimeInstallerContext.bind
@@ -24991,11 +25023,11 @@
24991
25023
  const bindingContext = getRuntimeInstallerBindingContext();
24992
25024
  refreshRuntimeInstallerContributions();
24993
25025
  const renderers = bindingContext.getAll(GraphicRender),
24994
- registeredKeys = getTrackedEntryKeys$1(app.registry.renderer, "vrender:runtime-renderer");
24995
- clearTrackedEntryKeys$1(app.registry.renderer, "vrender:runtime-renderer", null === (_a = app.registry.renderer.unregister) || void 0 === _a ? void 0 : _a.bind(app.registry.renderer)), registerRuntimeEntries((key, renderer) => {
25026
+ registeredKeys = getTrackedEntryKeys$1(app.registry.renderer, RUNTIME_RENDERER_NAMESPACE);
25027
+ clearTrackedEntryKeys$1(app.registry.renderer, RUNTIME_RENDERER_NAMESPACE, null === (_a = app.registry.renderer.unregister) || void 0 === _a ? void 0 : _a.bind(app.registry.renderer)), registerRuntimeEntries((key, renderer) => {
24996
25028
  var _a;
24997
25029
  null === (_a = null == renderer ? void 0 : renderer.reInit) || void 0 === _a || _a.call(renderer), app.registry.renderer.register(key, renderer), registeredKeys.add(key);
24998
- }, renderers, "vrender:runtime-renderer");
25030
+ }, renderers, RUNTIME_RENDERER_NAMESPACE);
24999
25031
  }
25000
25032
  function installRuntimeDrawContributionsToApp(app) {
25001
25033
  var _a;
@@ -25017,10 +25049,45 @@
25017
25049
  const bindingContext = getRuntimeInstallerBindingContext();
25018
25050
  refreshRuntimeInstallerContributions();
25019
25051
  const pickers = bindingContext.getAll(serviceIdentifier),
25020
- registeredKeys = getTrackedEntryKeys$1(app.registry.picker, "vrender:runtime-picker");
25021
- clearTrackedEntryKeys$1(app.registry.picker, "vrender:runtime-picker", null === (_a = app.registry.picker.unregister) || void 0 === _a ? void 0 : _a.bind(app.registry.picker)), registerRuntimeEntries((key, picker) => {
25052
+ registeredKeys = getTrackedEntryKeys$1(app.registry.picker, RUNTIME_PICKER_NAMESPACE);
25053
+ clearTrackedEntryKeys$1(app.registry.picker, RUNTIME_PICKER_NAMESPACE, null === (_a = app.registry.picker.unregister) || void 0 === _a ? void 0 : _a.bind(app.registry.picker)), registerRuntimeEntries((key, picker) => {
25022
25054
  app.registry.picker.register(key, picker), registeredKeys.add(key);
25023
- }, pickers, "vrender:runtime-picker");
25055
+ }, pickers, RUNTIME_PICKER_NAMESPACE);
25056
+ }
25057
+ function getRuntimeContributionModuleIdentity(module) {
25058
+ return module;
25059
+ }
25060
+ function hasLoadedRuntimeContributionModule(context, module) {
25061
+ var _a, _b;
25062
+ return null !== (_b = null === (_a = loadedRuntimeContributionModules.get(context)) || void 0 === _a ? void 0 : _a.has(getRuntimeContributionModuleIdentity(module))) && void 0 !== _b && _b;
25063
+ }
25064
+ function markRuntimeContributionModuleLoaded(context, module) {
25065
+ let modules = loadedRuntimeContributionModules.get(context);
25066
+ modules || (modules = new WeakSet(), loadedRuntimeContributionModules.set(context, modules)), modules.add(getRuntimeContributionModuleIdentity(module));
25067
+ }
25068
+ function loadRuntimeContributionModuleToContext(context, module) {
25069
+ hasLoadedRuntimeContributionModule(context, module) || ("function" == typeof module ? module(context) : module.registry(context.bind, noopUnbindRuntimeContributionService, context.isBound, context.rebind), markRuntimeContributionModuleLoaded(context, module));
25070
+ }
25071
+ function isRuntimePickerTarget(target) {
25072
+ return "object" == typeof target && null !== target && "picker" in target;
25073
+ }
25074
+ function installRuntimeContributionTargetsToApp(app, targets) {
25075
+ const resolvedTargets = null != targets ? targets : DEFAULT_RUNTIME_CONTRIBUTION_TARGETS;
25076
+ let installGraphicRenderers = !1,
25077
+ installDrawContributions = !1;
25078
+ const pickerTargets = new Set();
25079
+ resolvedTargets.forEach(target => {
25080
+ "graphic-renderer" === target ? installGraphicRenderers = !0 : "draw-contribution" === target ? installDrawContributions = !0 : isRuntimePickerTarget(target) && pickerTargets.add(target.picker);
25081
+ }), installDrawContributions && installRuntimeDrawContributionsToApp(app), installGraphicRenderers && installRuntimeGraphicRenderersToApp(app), pickerTargets.forEach(serviceIdentifier => {
25082
+ installRuntimePickersToApp(app, serviceIdentifier);
25083
+ });
25084
+ }
25085
+ function installRuntimeContributionModule(module, {
25086
+ app: app,
25087
+ legacy = !0,
25088
+ targets: targets
25089
+ } = {}) {
25090
+ loadRuntimeContributionModuleToContext(getRuntimeInstallerBindingContext(), module), legacy && (preLoadAllModule(), loadRuntimeContributionModuleToContext(getLegacyBindingContext(), module)), refreshRuntimeInstallerContributions(), app && installRuntimeContributionTargetsToApp(app, targets);
25024
25091
  }
25025
25092
 
25026
25093
  function simplifyRadialDist(points, sqTolerance) {
@@ -28405,6 +28472,7 @@
28405
28472
  identityMat4: identityMat4,
28406
28473
  imageModule: imageModule,
28407
28474
  incrementalAddTo: incrementalAddTo,
28475
+ installRuntimeContributionModule: installRuntimeContributionModule,
28408
28476
  installRuntimeDrawContributionsToApp: installRuntimeDrawContributionsToApp,
28409
28477
  installRuntimeGraphicRenderersToApp: installRuntimeGraphicRenderersToApp,
28410
28478
  installRuntimePickersToApp: installRuntimePickersToApp,
@@ -37390,6 +37458,30 @@
37390
37458
  return 2;
37391
37459
  }
37392
37460
 
37461
+ function buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs) {
37462
+ var _a;
37463
+ const commitTarget = target,
37464
+ contextFinalAttrs = null === (_a = commitTarget.context) || void 0 === _a ? void 0 : _a.finalAttrs,
37465
+ finalAttribute = commitTarget.getFinalAttribute();
37466
+ let commitAttrs = null;
37467
+ for (let i = 0; i < keys.length; i++) {
37468
+ const key = keys[i];
37469
+ animate && !animate.validAttr(key) || (contextFinalAttrs && Object.prototype.hasOwnProperty.call(contextFinalAttrs, key) ? (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = contextFinalAttrs[key]) : finalAttribute && Object.prototype.hasOwnProperty.call(finalAttribute, key) ? (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = finalAttribute[key]) : fallbackAttrs && Object.prototype.hasOwnProperty.call(fallbackAttrs, key) && (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = fallbackAttrs[key]));
37470
+ }
37471
+ return commitAttrs;
37472
+ }
37473
+ function commitAnimationStaticAttrs(target, keys, animate, fallbackAttrs) {
37474
+ const commitAttrs = buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs);
37475
+ if (!commitAttrs) return !1;
37476
+ target.setFinalAttributes(commitAttrs);
37477
+ const commitStaticAttributes = target._commitAnimationStaticAttributes;
37478
+ return "function" == typeof commitStaticAttributes ? commitStaticAttributes.call(target, commitAttrs, {
37479
+ type: AttributeUpdateType.ANIMATE_END
37480
+ }) : target.setAttributes(commitAttrs, !1, {
37481
+ type: AttributeUpdateType.ANIMATE_END
37482
+ }), !0;
37483
+ }
37484
+
37393
37485
  class AnimateExecutor {
37394
37486
  static registerBuiltInAnimate(name, animate) {
37395
37487
  AnimateExecutor.builtInAnimateMap[name] = animate;
@@ -37569,7 +37661,7 @@
37569
37661
  props = params.to,
37570
37662
  from = params.from;
37571
37663
  const commitAttrOutChannel = this.shouldCommitAttrOutChannel(type);
37572
- props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
37664
+ props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic), this.commitAnimatedUpdateDiffAttrsOnEnd(animate, graphic, type, props);
37573
37665
  let totalDelay = 0;
37574
37666
  oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
37575
37667
  const delayAfterValue = isFunction$1(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
@@ -37651,6 +37743,25 @@
37651
37743
  shouldCommitAttrOutChannel(type) {
37652
37744
  return "update" !== type;
37653
37745
  }
37746
+ commitAnimatedUpdateDiffAttrsOnEnd(animate, graphic, type, props) {
37747
+ if ("update" === type || !props || !this.isUpdateDiffContext(graphic)) return;
37748
+ const keys = this.collectAnimatedUpdateDiffAttrKeys(graphic, props);
37749
+ (null == keys ? void 0 : keys.length) && animate.onEnd(() => {
37750
+ commitAnimationStaticAttrs(graphic, keys, animate, props);
37751
+ });
37752
+ }
37753
+ isUpdateDiffContext(graphic) {
37754
+ const context = graphic.context;
37755
+ return "update" === (null == context ? void 0 : context.diffState) || "update" === (null == context ? void 0 : context.animationState);
37756
+ }
37757
+ collectAnimatedUpdateDiffAttrKeys(graphic, props) {
37758
+ var _a;
37759
+ const diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
37760
+ if (!diffAttrs) return null;
37761
+ let keys = null;
37762
+ for (const key in props) Object.prototype.hasOwnProperty.call(props, key) && Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && (null != keys || (keys = []), keys.push(key));
37763
+ return keys;
37764
+ }
37654
37765
  createCustomAnimation(animate, CustomAnimateConstructor, from, props, duration, easing, customParams) {
37655
37766
  const customAnimate = new CustomAnimateConstructor(from, props, duration, easing, customParams);
37656
37767
  animate.play(customAnimate);
@@ -39682,25 +39793,6 @@
39682
39793
  }
39683
39794
  }
39684
39795
 
39685
- function buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs) {
39686
- var _a;
39687
- const commitTarget = target,
39688
- contextFinalAttrs = null === (_a = commitTarget.context) || void 0 === _a ? void 0 : _a.finalAttrs,
39689
- finalAttribute = commitTarget.getFinalAttribute();
39690
- let commitAttrs = null;
39691
- for (let i = 0; i < keys.length; i++) {
39692
- const key = keys[i];
39693
- animate && !animate.validAttr(key) || (contextFinalAttrs && Object.prototype.hasOwnProperty.call(contextFinalAttrs, key) ? (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = contextFinalAttrs[key]) : finalAttribute && Object.prototype.hasOwnProperty.call(finalAttribute, key) ? (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = finalAttribute[key]) : fallbackAttrs && Object.prototype.hasOwnProperty.call(fallbackAttrs, key) && (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = fallbackAttrs[key]));
39694
- }
39695
- return commitAttrs;
39696
- }
39697
- function commitAnimationStaticAttrs(target, keys, animate, fallbackAttrs) {
39698
- const commitAttrs = buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs);
39699
- return !!commitAttrs && (target.setFinalAttributes(commitAttrs), target.setAttributes(commitAttrs, !1, {
39700
- type: AttributeUpdateType.ANIMATE_END
39701
- }), !0);
39702
- }
39703
-
39704
39796
  const clipPathGeometryAttrs = {
39705
39797
  x: !0,
39706
39798
  y: !0,
@@ -42972,6 +43064,24 @@
42972
43064
  for (const key in record) Object.prototype.hasOwnProperty.call(record, key) && !includesKey(keys, key) && (nextRecord[key] = record[key]);
42973
43065
  return nextRecord;
42974
43066
  }
43067
+ function collectActiveSiblingAttrKeys(target, currentAnimate) {
43068
+ var _a;
43069
+ const getTrackedAnimates = null == target ? void 0 : target.getTrackedAnimates;
43070
+ if ("function" == typeof getTrackedAnimates) {
43071
+ const trackedAnimates = getTrackedAnimates.call(target);
43072
+ if (trackedAnimates && trackedAnimates.size <= 1) return;
43073
+ }
43074
+ const forEachTrackedAnimate = null == target ? void 0 : target.forEachTrackedAnimate;
43075
+ if ("function" != typeof forEachTrackedAnimate) return;
43076
+ let keys;
43077
+ const currentEndProps = null === (_a = currentAnimate.getEndProps) || void 0 === _a ? void 0 : _a.call(currentAnimate);
43078
+ return forEachTrackedAnimate.call(target, animate => {
43079
+ var _a;
43080
+ if (animate === currentAnimate || animate.status === AnimateStatus.END) return;
43081
+ const endProps = null === (_a = animate.getEndProps) || void 0 === _a ? void 0 : _a.call(animate);
43082
+ if (endProps) for (const key in endProps) !Object.prototype.hasOwnProperty.call(endProps, key) || currentEndProps && Object.prototype.hasOwnProperty.call(currentEndProps, key) || ((null != keys ? keys : keys = Object.create(null))[key] = !0);
43083
+ }), keys;
43084
+ }
42975
43085
  class Animate {
42976
43086
  constructor(id = Generator.GenAutoIncrementId(), timeline = defaultTimeline, slience) {
42977
43087
  this.id = id, this.status = AnimateStatus.INITIAL, this._timeline = timeline, timeline.addAnimate(this), this.slience = slience, this._startTime = 0, this._duration = 0, this._totalDuration = 0, this._loopCount = 0, this._currentLoop = 0, this._bounce = !1, this._firstStep = null, this._lastStep = null, this._startProps = {}, this._endProps = {}, this._preventAttrs = new Set(), this.currentTime = 0, this.interpolateUpdateFunction = null, this.priority = 0;
@@ -42995,7 +43105,7 @@
42995
43105
  this.target = target;
42996
43106
  const trackerTarget = this.target;
42997
43107
  return trackerTarget.detachAttributeFromBaseAttributes(), trackerTarget.trackAnimate(this), this.onRemove(() => {
42998
- this.stop(), this.__skipRestoreStaticAttributeOnRemove || trackerTarget.restoreStaticAttribute(), trackerTarget.untrackAnimate(this.id);
43108
+ this.stop(), this.__skipRestoreStaticAttributeOnRemove || trackerTarget.restoreStaticAttribute(collectActiveSiblingAttrKeys(trackerTarget, this)), trackerTarget.untrackAnimate(this.id);
42999
43109
  }), this.target.onAnimateBind && !this.slience && this.target.onAnimateBind(this), this.target.animationAttribute || (this.target.animationAttribute = {}), this;
43000
43110
  }
43001
43111
  to(props, duration = 300, easing = "linear") {
@@ -43132,7 +43242,8 @@
43132
43242
  if (nextTime < this._startTime) return void (this.currentTime = nextTime);
43133
43243
  if (nextTime >= this._startTime + this._totalDuration) {
43134
43244
  null === (_a = this._lastStep) || void 0 === _a || _a.onUpdate(!0, 1, {}), null === (_b = this._lastStep) || void 0 === _b || _b.onEnd(), this.onEnd(), this.status = AnimateStatus.END;
43135
- return this.target.restoreStaticAttribute(), void (this.__skipRestoreStaticAttributeOnRemove = !0);
43245
+ const trackerTarget = this.target;
43246
+ return trackerTarget.restoreStaticAttribute(collectActiveSiblingAttrKeys(trackerTarget, this)), void (this.__skipRestoreStaticAttributeOnRemove = !0);
43136
43247
  }
43137
43248
  this.status = AnimateStatus.RUNNING, this.currentTime <= this._startTime && this.onStart(), this.currentTime = nextTime;
43138
43249
  let cycleTime = nextTime - this._startTime,
@@ -43346,10 +43457,10 @@
43346
43457
  type: AttributeUpdateType.ANIMATE_BIND
43347
43458
  });
43348
43459
  }
43349
- restoreStaticAttribute() {
43460
+ restoreStaticAttribute(excludedKeys) {
43350
43461
  this._restoreAttributeFromStaticTruth({
43351
43462
  type: AttributeUpdateType.ANIMATE_END
43352
- });
43463
+ }, excludedKeys);
43353
43464
  }
43354
43465
  executeAnimation(config) {
43355
43466
  return this.initAnimateExecutor(), this._animateExecutor.execute(config), this;
@@ -43481,6 +43592,86 @@
43481
43592
  return bootstrap.installEnv(app, envParams), installDefaultGraphicsToApp(app), installMathPickersToApp(app), bootstrap.loadEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp(app), syncLegacyPickersToApp(app, MathPickerContribution), registerDefaultPipeline(), app;
43482
43593
  }
43483
43594
 
43595
+ const SHARED_APP_REGISTRY_KEY = Symbol.for("visactor.vrender.sharedAppRegistry");
43596
+ function getSharedAppRegistry() {
43597
+ var _a;
43598
+ const target = globalThis,
43599
+ registry = null !== (_a = target[SHARED_APP_REGISTRY_KEY]) && void 0 !== _a ? _a : new Map();
43600
+ return target[SHARED_APP_REGISTRY_KEY] = registry, registry;
43601
+ }
43602
+ function getSharedAppEnvRegistry(env, create) {
43603
+ const registry = getSharedAppRegistry(),
43604
+ envRegistry = registry.get(env);
43605
+ if (envRegistry || !create) return envRegistry;
43606
+ const nextEnvRegistry = new Map();
43607
+ return registry.set(env, nextEnvRegistry), nextEnvRegistry;
43608
+ }
43609
+ function getOrCreateSharedAppEnvRegistry(env) {
43610
+ return getSharedAppEnvRegistry(env, !0);
43611
+ }
43612
+ function removeSharedAppRecord(env, key, record) {
43613
+ const registry = getSharedAppRegistry(),
43614
+ envRegistry = registry.get(env);
43615
+ (null == envRegistry ? void 0 : envRegistry.get(key)) === record && (envRegistry.delete(key), envRegistry.size || registry.delete(env));
43616
+ }
43617
+ function releaseSharedAppRecord(env, key, record) {
43618
+ record.released || (record.released = !0, record.refCount = 0, removeSharedAppRecord(env, key, record), record.releaseApp());
43619
+ }
43620
+ function createSharedAppRecord(env, key, options, createApp) {
43621
+ const app = createApp(options),
43622
+ originalRelease = app.release.bind(app),
43623
+ record = {
43624
+ app: app,
43625
+ refCount: 0,
43626
+ released: !1,
43627
+ releaseApp: originalRelease
43628
+ };
43629
+ return app.release = () => releaseSharedAppRecord(env, key, record), record;
43630
+ }
43631
+ function createSharedAppHandle(registryEnv, handleEnv, key, record) {
43632
+ let released = !1;
43633
+ return {
43634
+ app: record.app,
43635
+ env: handleEnv,
43636
+ key: key,
43637
+ release() {
43638
+ if (released) return;
43639
+ released = !0;
43640
+ const envRegistry = getSharedAppEnvRegistry(registryEnv, !1);
43641
+ (null == envRegistry ? void 0 : envRegistry.get(key)) !== record || record.released || (record.refCount -= 1, record.refCount <= 0 && releaseSharedAppRecord(registryEnv, key, record));
43642
+ }
43643
+ };
43644
+ }
43645
+ function acquireSharedApp(registryEnv, options, createApp, handleEnv = registryEnv) {
43646
+ var _a;
43647
+ const key = null !== (_a = options.key) && void 0 !== _a ? _a : "default",
43648
+ envRegistry = getOrCreateSharedAppEnvRegistry(registryEnv);
43649
+ let record = envRegistry.get(key);
43650
+ return (null == record ? void 0 : record.app.released) && (releaseSharedAppRecord(registryEnv, key, record), record = void 0), record || (record = createSharedAppRecord(registryEnv, key, options, createApp), envRegistry.set(key, record)), record.refCount += 1, createSharedAppHandle(registryEnv, handleEnv, key, record);
43651
+ }
43652
+
43653
+ undefined && undefined.__rest || function (s, e) {
43654
+ var t = {};
43655
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
43656
+ if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
43657
+ var i = 0;
43658
+ for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
43659
+ }
43660
+ return t;
43661
+ };
43662
+ const installCoreRuntimeContributionModule = installRuntimeContributionModule,
43663
+ pendingRuntimeContributionModules = [];
43664
+ function installPendingRuntimeContributionModulesToApp(app) {
43665
+ pendingRuntimeContributionModules.forEach(({
43666
+ module: module,
43667
+ options: options
43668
+ }) => {
43669
+ installCoreRuntimeContributionModule(module, Object.assign(Object.assign({}, options), {
43670
+ app: app
43671
+ }));
43672
+ });
43673
+ }
43674
+
43484
43675
  var __rest$y = undefined && undefined.__rest || function (s, e) {
43485
43676
  var t = {};
43486
43677
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
@@ -43494,8 +43685,9 @@
43494
43685
  const {
43495
43686
  envParams: envParams
43496
43687
  } = options,
43497
- entryOptions = __rest$y(options, ["envParams"]);
43498
- return bootstrapVRenderBrowserApp(createBrowserApp(entryOptions), envParams);
43688
+ entryOptions = __rest$y(options, ["envParams"]),
43689
+ app = bootstrapVRenderBrowserApp(createBrowserApp(entryOptions), envParams);
43690
+ return installPendingRuntimeContributionModulesToApp(app), app;
43499
43691
  }
43500
43692
 
43501
43693
  var __rest$x = undefined && undefined.__rest || function (s, e) {
@@ -43514,8 +43706,9 @@
43514
43706
  const {
43515
43707
  envParams: envParams
43516
43708
  } = options,
43517
- entryOptions = __rest$x(options, ["envParams"]);
43518
- return bootstrapVRenderMiniApp(createMiniappApp(entryOptions), env, envParams);
43709
+ entryOptions = __rest$x(options, ["envParams"]),
43710
+ app = bootstrapVRenderMiniApp(createMiniappApp(entryOptions), env, envParams);
43711
+ return installPendingRuntimeContributionModulesToApp(app), app;
43519
43712
  }
43520
43713
  function createTaroVRenderApp(options = {}) {
43521
43714
  return createMiniEnvVRenderApp("taro", options);
@@ -43552,66 +43745,9 @@
43552
43745
  const {
43553
43746
  envParams: envParams
43554
43747
  } = options,
43555
- entryOptions = __rest$w(options, ["envParams"]);
43556
- return bootstrapVRenderNodeApp(createNodeApp(entryOptions), envParams);
43557
- }
43558
-
43559
- const SHARED_APP_REGISTRY_KEY = Symbol.for("visactor.vrender.sharedAppRegistry");
43560
- function getSharedAppRegistry() {
43561
- var _a;
43562
- const target = globalThis,
43563
- registry = null !== (_a = target[SHARED_APP_REGISTRY_KEY]) && void 0 !== _a ? _a : new Map();
43564
- return target[SHARED_APP_REGISTRY_KEY] = registry, registry;
43565
- }
43566
- function getSharedAppEnvRegistry(env, create) {
43567
- const registry = getSharedAppRegistry(),
43568
- envRegistry = registry.get(env);
43569
- if (envRegistry || !create) return envRegistry;
43570
- const nextEnvRegistry = new Map();
43571
- return registry.set(env, nextEnvRegistry), nextEnvRegistry;
43572
- }
43573
- function getOrCreateSharedAppEnvRegistry(env) {
43574
- return getSharedAppEnvRegistry(env, !0);
43575
- }
43576
- function removeSharedAppRecord(env, key, record) {
43577
- const registry = getSharedAppRegistry(),
43578
- envRegistry = registry.get(env);
43579
- (null == envRegistry ? void 0 : envRegistry.get(key)) === record && (envRegistry.delete(key), envRegistry.size || registry.delete(env));
43580
- }
43581
- function releaseSharedAppRecord(env, key, record) {
43582
- record.released || (record.released = !0, record.refCount = 0, removeSharedAppRecord(env, key, record), record.releaseApp());
43583
- }
43584
- function createSharedAppRecord(env, key, options, createApp) {
43585
- const app = createApp(options),
43586
- originalRelease = app.release.bind(app),
43587
- record = {
43588
- app: app,
43589
- refCount: 0,
43590
- released: !1,
43591
- releaseApp: originalRelease
43592
- };
43593
- return app.release = () => releaseSharedAppRecord(env, key, record), record;
43594
- }
43595
- function createSharedAppHandle(registryEnv, handleEnv, key, record) {
43596
- let released = !1;
43597
- return {
43598
- app: record.app,
43599
- env: handleEnv,
43600
- key: key,
43601
- release() {
43602
- if (released) return;
43603
- released = !0;
43604
- const envRegistry = getSharedAppEnvRegistry(registryEnv, !1);
43605
- (null == envRegistry ? void 0 : envRegistry.get(key)) !== record || record.released || (record.refCount -= 1, record.refCount <= 0 && releaseSharedAppRecord(registryEnv, key, record));
43606
- }
43607
- };
43608
- }
43609
- function acquireSharedApp(registryEnv, options, createApp, handleEnv = registryEnv) {
43610
- var _a;
43611
- const key = null !== (_a = options.key) && void 0 !== _a ? _a : "default",
43612
- envRegistry = getOrCreateSharedAppEnvRegistry(registryEnv);
43613
- let record = envRegistry.get(key);
43614
- return (null == record ? void 0 : record.app.released) && (releaseSharedAppRecord(registryEnv, key, record), record = void 0), record || (record = createSharedAppRecord(registryEnv, key, options, createApp), envRegistry.set(key, record)), record.refCount += 1, createSharedAppHandle(registryEnv, handleEnv, key, record);
43748
+ entryOptions = __rest$w(options, ["envParams"]),
43749
+ app = bootstrapVRenderNodeApp(createNodeApp(entryOptions), envParams);
43750
+ return installPendingRuntimeContributionModulesToApp(app), app;
43615
43751
  }
43616
43752
 
43617
43753
  function createAppForSharedEnv(options) {
@@ -48604,6 +48740,7 @@
48604
48740
  return this._beforeRender(option) ? (null === (_a = this._compiler) || void 0 === _a || _a.render(option.morphConfig), this._updateAnimateState(!1), this._afterRender(), self) : self;
48605
48741
  }, this._updateSpec = (spec, forceMerge = !1, userUpdateOptions) => {
48606
48742
  var _a;
48743
+ if (this._isReleased) return;
48607
48744
  this._reSetRenderState();
48608
48745
  const lastSpec = this._spec,
48609
48746
  result = {
@@ -48874,9 +49011,10 @@
48874
49011
  });
48875
49012
  }
48876
49013
  updateDataSync(id, data, parserOptions, userUpdateOptions) {
48877
- return this._reSetRenderState(), isNil$1(this._dataSet) ? this : this._chart ? (this._chart.updateData(id, data, !0, parserOptions), (null == userUpdateOptions ? void 0 : userUpdateOptions.reAnimate) && (this.stopAnimation(), this._updateAnimateState(!0)), this._compiler.render(), this) : (this._spec.data = array(this._spec.data), this._updateDataById(id, data, parserOptions), this);
49014
+ return this._isReleased ? this : (this._reSetRenderState(), isNil$1(this._dataSet) ? this : this._chart ? (this._chart.updateData(id, data, !0, parserOptions), (null == userUpdateOptions ? void 0 : userUpdateOptions.reAnimate) && (this.stopAnimation(), this._updateAnimateState(!0)), this._compiler.render(), this) : (this._spec.data = array(this._spec.data), this._updateDataById(id, data, parserOptions), this));
48878
49015
  }
48879
49016
  updateFullDataSync(data, reRender = !0, userUpdateOptions) {
49017
+ if (this._isReleased) return this;
48880
49018
  if (this._reSetRenderState(), this._chart) return this._chart.updateFullData(data), reRender && ((null == userUpdateOptions ? void 0 : userUpdateOptions.reAnimate) && (this.stopAnimation(), this._updateAnimateState(!0)), this._compiler.render()), this;
48881
49019
  const prevData = array(this._spec.data);
48882
49020
  return array(data).forEach(d => {
@@ -49370,7 +49508,7 @@
49370
49508
  }
49371
49509
  _reSetRenderState() {
49372
49510
  var _a, _b;
49373
- this._renderState = RenderStateEnum.render, null === (_b = null === (_a = this.getStage()) || void 0 === _a ? void 0 : _a.eventSystem) || void 0 === _b || _b.resumeTriggerEvent();
49511
+ !this._isReleased && this._compiler && (this._renderState = RenderStateEnum.render, null === (_b = null === (_a = this.getStage()) || void 0 === _a ? void 0 : _a.eventSystem) || void 0 === _b || _b.resumeTriggerEvent());
49374
49512
  }
49375
49513
  };
49376
49514
  VChart$1.InstanceManager = InstanceManager, VChart$1.ThemeManager = ThemeManager, VChart$1.globalConfig = {
@@ -94374,7 +94512,7 @@
94374
94512
  return sliderHeight >= controllersHeight ? sliderHeight - controllersHeight : 0;
94375
94513
  }, this.autoPlayCallback = () => {
94376
94514
  var _a;
94377
- (null === (_a = this._spec) || void 0 === _a ? void 0 : _a.auto) && (this._playerComponent.pause(), this._playerComponent.play());
94515
+ (null === (_a = this._spec) || void 0 === _a ? void 0 : _a.auto) && this._playerComponent && (this._playerComponent.pause(), this._playerComponent.play());
94378
94516
  }, this._initEvent = () => {
94379
94517
  this._option.disableTriggerEvent || (this._option.globalInstance.off(ChartEvent.rendered, this.autoPlayCallback), this._option.globalInstance.on(ChartEvent.rendered, this.autoPlayCallback), this._playerComponent.addEventListener(PlayerEventEnum.end, () => {
94380
94518
  var _a;
@@ -94526,18 +94664,20 @@
94526
94664
  return isHorizontal(this._orient) || "start" === this._position ? 0 : "middle" === this._position ? (rect.height - this._height) / 2 : rect.height - this._height;
94527
94665
  }
94528
94666
  changePlayerIndex(index) {
94529
- const spec = this._specs[index];
94530
- this._option.globalInstance.updateFullData(spec.data), this.event.emit(ChartEvent.playerChange, {
94667
+ var _a, _b;
94668
+ const spec = null === (_a = this._specs) || void 0 === _a ? void 0 : _a[index];
94669
+ spec && (null === (_b = this._option) || void 0 === _b ? void 0 : _b.globalInstance) && (this._option.globalInstance.updateFullData(spec.data), this.event.emit(ChartEvent.playerChange, {
94531
94670
  model: this,
94532
94671
  value: {
94533
94672
  spec: spec,
94534
94673
  index: index,
94535
94674
  specs: this._specs
94536
94675
  }
94537
- });
94676
+ }));
94538
94677
  }
94539
94678
  release() {
94540
- this._option.globalInstance.off(ChartEvent.rendered, this.autoPlayCallback);
94679
+ var _a, _b, _c, _d;
94680
+ null === (_b = null === (_a = this._playerComponent) || void 0 === _a ? void 0 : _a.pause) || void 0 === _b || _b.call(_a), null === (_d = null === (_c = this._option) || void 0 === _c ? void 0 : _c.globalInstance) || void 0 === _d || _d.off(ChartEvent.rendered, this.autoPlayCallback), super.release(), this._playerComponent = null, this._cacheAttrs = null, this._specs = [];
94541
94681
  }
94542
94682
  };
94543
94683
  Player$1.builtInTheme = {
@@ -100769,7 +100909,7 @@
100769
100909
 
100770
100910
  const VChartSimple = createChart('VChartSimple');
100771
100911
 
100772
- const version = "2.1.0";
100912
+ const version = "2.1.1";
100773
100913
 
100774
100914
  exports.Area = Area;
100775
100915
  exports.AreaChart = AreaChart;