apexcharts 8.2.0 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/README.md +7 -7
  2. package/dist/apexcharts.common.js +2 -2
  3. package/dist/apexcharts.core.js +271 -173
  4. package/dist/apexcharts.core.min.js +2 -2
  5. package/dist/apexcharts.css +35 -0
  6. package/dist/apexcharts.esm.js +1722 -1527
  7. package/dist/apexcharts.full.js +1459 -1075
  8. package/dist/apexcharts.full.min.js +2 -2
  9. package/dist/apexcharts.js +994 -715
  10. package/dist/apexcharts.min.js +2 -2
  11. package/dist/apexcharts.ssr.common.js +2 -2
  12. package/dist/apexcharts.ssr.esm.js +994 -715
  13. package/dist/area.common.js +2 -2
  14. package/dist/area.esm.js +91 -40
  15. package/dist/bar.common.js +2 -2
  16. package/dist/bar.esm.js +433 -394
  17. package/dist/bar.js +2 -2
  18. package/dist/boxPlot.common.js +2 -2
  19. package/dist/boxPlot.esm.js +364 -322
  20. package/dist/bubble.common.js +2 -2
  21. package/dist/bubble.esm.js +91 -40
  22. package/dist/candlestick.common.js +2 -2
  23. package/dist/candlestick.esm.js +364 -322
  24. package/dist/candlestick.js +2 -2
  25. package/dist/column.common.js +2 -2
  26. package/dist/column.esm.js +433 -394
  27. package/dist/core.common.js +2 -2
  28. package/dist/core.esm.js +271 -173
  29. package/dist/donut.common.js +1 -1
  30. package/dist/donut.esm.js +1 -1
  31. package/dist/dumbbell.common.js +2 -2
  32. package/dist/dumbbell.esm.js +433 -394
  33. package/dist/features/all.common.js +2 -2
  34. package/dist/features/all.esm.js +250 -187
  35. package/dist/features/annotations.common.js +1 -1
  36. package/dist/features/annotations.esm.js +1 -1
  37. package/dist/features/annotations.js +1 -1
  38. package/dist/features/context-menu.common.js +1 -1
  39. package/dist/features/context-menu.esm.js +1 -1
  40. package/dist/features/context-menu.js +1 -1
  41. package/dist/features/drilldown.common.js +2 -2
  42. package/dist/features/drilldown.esm.js +4 -2
  43. package/dist/features/drilldown.js +2 -2
  44. package/dist/features/dumbbell.common.js +1 -1
  45. package/dist/features/dumbbell.esm.js +1 -1
  46. package/dist/features/dumbbell.js +1 -1
  47. package/dist/features/exports.common.js +1 -1
  48. package/dist/features/exports.esm.js +1 -1
  49. package/dist/features/exports.js +1 -1
  50. package/dist/features/facet.common.js +1 -1
  51. package/dist/features/facet.esm.js +1 -1
  52. package/dist/features/facet.js +1 -1
  53. package/dist/features/highlight-filter.common.js +2 -2
  54. package/dist/features/highlight-filter.esm.js +14 -9
  55. package/dist/features/highlight-filter.js +2 -2
  56. package/dist/features/history.common.js +1 -1
  57. package/dist/features/history.esm.js +1 -1
  58. package/dist/features/history.js +1 -1
  59. package/dist/features/ink.common.js +1 -1
  60. package/dist/features/ink.esm.js +1 -1
  61. package/dist/features/ink.js +1 -1
  62. package/dist/features/keyboard.common.js +2 -2
  63. package/dist/features/keyboard.esm.js +97 -145
  64. package/dist/features/keyboard.js +2 -2
  65. package/dist/features/legend.common.js +2 -2
  66. package/dist/features/legend.esm.js +63 -43
  67. package/dist/features/legend.js +2 -2
  68. package/dist/features/link.common.js +1 -1
  69. package/dist/features/link.esm.js +1 -1
  70. package/dist/features/link.js +1 -1
  71. package/dist/features/marks.common.js +1 -1
  72. package/dist/features/marks.esm.js +1 -1
  73. package/dist/features/marks.js +1 -1
  74. package/dist/features/measure.common.js +1 -1
  75. package/dist/features/measure.esm.js +1 -1
  76. package/dist/features/measure.js +1 -1
  77. package/dist/features/morph.common.js +1 -1
  78. package/dist/features/morph.esm.js +1 -1
  79. package/dist/features/morph.js +1 -1
  80. package/dist/features/perspectives.common.js +1 -1
  81. package/dist/features/perspectives.esm.js +1 -1
  82. package/dist/features/perspectives.js +1 -1
  83. package/dist/features/raincloud.common.js +1 -1
  84. package/dist/features/raincloud.esm.js +1 -1
  85. package/dist/features/raincloud.js +1 -1
  86. package/dist/features/renderer-canvas.common.js +2 -2
  87. package/dist/features/renderer-canvas.esm.js +2 -1
  88. package/dist/features/renderer-canvas.js +2 -2
  89. package/dist/features/stats.common.js +1 -1
  90. package/dist/features/stats.esm.js +1 -1
  91. package/dist/features/stats.js +1 -1
  92. package/dist/features/storyboard.common.js +1 -1
  93. package/dist/features/storyboard.esm.js +1 -1
  94. package/dist/features/storyboard.js +1 -1
  95. package/dist/features/streamgraph.common.js +2 -2
  96. package/dist/features/streamgraph.esm.js +3 -2
  97. package/dist/features/streamgraph.js +2 -2
  98. package/dist/features/toolbar.common.js +2 -2
  99. package/dist/features/toolbar.esm.js +92 -2
  100. package/dist/features/toolbar.js +2 -2
  101. package/dist/features/trellis.common.js +2 -2
  102. package/dist/features/trellis.esm.js +83 -47
  103. package/dist/features/trellis.js +2 -2
  104. package/dist/features/waterfall.common.js +1 -1
  105. package/dist/features/waterfall.esm.js +1 -1
  106. package/dist/features/waterfall.js +1 -1
  107. package/dist/features/weave.common.js +1 -1
  108. package/dist/features/weave.esm.js +1 -1
  109. package/dist/features/weave.js +1 -1
  110. package/dist/full.common.js +2 -2
  111. package/dist/full.esm.js +950 -795
  112. package/dist/heatmap.common.js +2 -2
  113. package/dist/heatmap.esm.js +3 -17
  114. package/dist/heatmap.js +2 -2
  115. package/dist/histogram.common.js +2 -2
  116. package/dist/histogram.esm.js +433 -394
  117. package/dist/icicle.common.js +2 -2
  118. package/dist/icicle.esm.js +54 -38
  119. package/dist/icicle.js +2 -2
  120. package/dist/line.common.js +2 -2
  121. package/dist/line.esm.js +91 -40
  122. package/dist/line.js +2 -2
  123. package/dist/locales/en.json +2 -1
  124. package/dist/locales/ro.json +3 -2
  125. package/dist/pictograms.common.js +1 -1
  126. package/dist/pictograms.esm.js +1 -1
  127. package/dist/pictograms.js +1 -1
  128. package/dist/pie.common.js +1 -1
  129. package/dist/pie.esm.js +1 -1
  130. package/dist/pie.js +1 -1
  131. package/dist/polarArea.common.js +1 -1
  132. package/dist/polarArea.esm.js +1 -1
  133. package/dist/radar.common.js +2 -2
  134. package/dist/radar.esm.js +5 -4
  135. package/dist/radar.js +2 -2
  136. package/dist/radialBar.common.js +1 -1
  137. package/dist/radialBar.esm.js +1 -1
  138. package/dist/radialBar.js +1 -1
  139. package/dist/raincloud.common.js +2 -2
  140. package/dist/raincloud.esm.js +72 -26
  141. package/dist/rangeArea.common.js +2 -2
  142. package/dist/rangeArea.esm.js +91 -40
  143. package/dist/rangeBar.common.js +2 -2
  144. package/dist/rangeBar.esm.js +433 -394
  145. package/dist/scatter.common.js +2 -2
  146. package/dist/scatter.esm.js +91 -40
  147. package/dist/streamgraph.common.js +2 -2
  148. package/dist/streamgraph.esm.js +93 -41
  149. package/dist/sunburst.common.js +2 -2
  150. package/dist/sunburst.esm.js +103 -93
  151. package/dist/sunburst.js +2 -2
  152. package/dist/treemap.common.js +2 -2
  153. package/dist/treemap.esm.js +105 -86
  154. package/dist/treemap.js +2 -2
  155. package/dist/unit-shapes.common.js +1 -1
  156. package/dist/unit-shapes.esm.js +1 -1
  157. package/dist/unit-shapes.js +1 -1
  158. package/dist/unit.common.js +2 -2
  159. package/dist/unit.esm.js +280 -202
  160. package/dist/unit.js +2 -2
  161. package/dist/violin.common.js +2 -2
  162. package/dist/violin.esm.js +72 -26
  163. package/dist/violin.js +2 -2
  164. package/dist/waterfall.common.js +2 -2
  165. package/dist/waterfall.esm.js +432 -393
  166. package/package.json +1 -1
  167. package/src/apexcharts.js +13 -6
  168. package/src/assets/apexcharts.css +35 -0
  169. package/src/charts/Bar.js +62 -55
  170. package/src/charts/BarStacked.js +80 -88
  171. package/src/charts/BoxCandleStick.js +28 -31
  172. package/src/charts/Icicle.js +37 -37
  173. package/src/charts/Line.js +118 -42
  174. package/src/charts/Radar.js +5 -7
  175. package/src/charts/RangeBar.js +47 -43
  176. package/src/charts/Sunburst.js +101 -98
  177. package/src/charts/Treemap.js +108 -66
  178. package/src/charts/Unit.js +368 -250
  179. package/src/charts/Violin.js +48 -30
  180. package/src/charts/common/Breadcrumb.js +2 -2
  181. package/src/charts/common/Hierarchy.js +32 -11
  182. package/src/charts/common/Jitter.js +32 -7
  183. package/src/charts/common/bar/DataLabels.js +76 -81
  184. package/src/charts/common/bar/Helpers.js +43 -7
  185. package/src/charts/common/line/Helpers.js +12 -15
  186. package/src/charts/common/partition/NodeTooltip.js +8 -1
  187. package/src/charts/common/partition/Partition.js +33 -1
  188. package/src/charts/common/treemap/Helpers.js +3 -11
  189. package/src/locales/en.json +2 -1
  190. package/src/locales/ro.json +3 -2
  191. package/src/modules/Core.js +4 -0
  192. package/src/modules/CoreUtils.js +18 -42
  193. package/src/modules/Data.js +23 -24
  194. package/src/modules/DataLabels.js +6 -6
  195. package/src/modules/Graphics.js +62 -49
  196. package/src/modules/Markers.js +3 -1
  197. package/src/modules/Range.js +44 -29
  198. package/src/modules/RendererController.js +17 -3
  199. package/src/modules/Scales.js +32 -9
  200. package/src/modules/Series.js +39 -18
  201. package/src/modules/Theme.js +1 -1
  202. package/src/modules/ZoomPanSelection.js +119 -2
  203. package/src/modules/accessibility/KeyboardNavigation.js +114 -186
  204. package/src/modules/animations/LengthTransition.js +22 -2
  205. package/src/modules/drilldown/Breadcrumb.js +5 -2
  206. package/src/modules/helpers/Destroy.js +1 -1
  207. package/src/modules/highlightFilter/HighlightFilter.js +8 -9
  208. package/src/modules/highlightFilter/TreemapPart.js +2 -2
  209. package/src/modules/legend/HeatmapGradientLegend.js +76 -45
  210. package/src/modules/legend/Helpers.js +2 -0
  211. package/src/modules/legend/Legend.js +11 -12
  212. package/src/modules/settings/Options.js +7 -0
  213. package/src/modules/streamgraph/StreamLabels.js +1 -0
  214. package/src/modules/tooltip/Tooltip.js +20 -4
  215. package/src/modules/tooltip/Utils.js +8 -0
  216. package/src/modules/trellis/Trellis.js +6 -0
  217. package/src/modules/trellis/TrellisChrome.js +18 -7
  218. package/src/modules/trellis/TrellisSync.js +2 -0
  219. package/src/renderers/canvas/CanvasGraphics.js +1 -0
  220. package/src/ssr/DOMShim.js +10 -0
  221. package/src/types/internal.d.ts +9 -3
  222. package/types/apexcharts.d.ts +31 -12
@@ -38,7 +38,7 @@ var __async = (__this, __arguments, generator) => {
38
38
  });
39
39
  };
40
40
  /*!
41
- * ApexCharts v8.2.0
41
+ * ApexCharts v8.3.0
42
42
  * (c) 2018-2026 ApexCharts
43
43
  */
44
44
  import * as _core from "apexcharts/core";
@@ -277,7 +277,8 @@ class RendererController {
277
277
  this._activate(desired, this._instances[desired]);
278
278
  return this._activeKind;
279
279
  }
280
- if (mode === desired) {
280
+ if (mode === desired && !this._warned) {
281
+ this._warned = 1;
281
282
  warnMissingFeature(
282
283
  `\`chart.renderer: '${desired}'\``,
283
284
  `renderer-${desired}`,
@@ -286,11 +287,17 @@ class RendererController {
286
287
  }
287
288
  );
288
289
  }
289
- } else if (mode === "canvas" && hasCanvasUnsupportedFeature(this.w)) {
290
+ } else if (mode === "canvas" && !this._warned && hasCanvasUnsupportedFeature(this.w)) {
291
+ this._warned = 1;
290
292
  console.warn(
291
293
  `[apexcharts] renderer:"canvas" requested but this chart uses a feature the canvas renderer does not render yet (gradient/pattern/image fill or a state color-matrix filter); falling back to SVG.`
292
294
  );
293
295
  }
296
+ const prev = this._instances[this._activeKind];
297
+ if (prev) {
298
+ prev.destroy();
299
+ delete this._instances[this._activeKind];
300
+ }
294
301
  this._activate("svg", this.svg);
295
302
  return this._activeKind;
296
303
  }
@@ -1581,9 +1588,11 @@ class HeatmapGradientLegend {
1581
1588
  this._min = 0;
1582
1589
  this._max = 0;
1583
1590
  this._geom = null;
1591
+ this._grad = null;
1584
1592
  this._bandHitEls = [];
1585
1593
  this._activeBandIndex = -1;
1586
1594
  this._targetEl = null;
1595
+ this.panelsW = null;
1587
1596
  this._onCellEnter = this._onCellEnter.bind(this);
1588
1597
  this._onCellLeave = this._onCellLeave.bind(this);
1589
1598
  this._onBandEnter = this._onBandEnter.bind(this);
@@ -1698,15 +1707,8 @@ class HeatmapGradientLegend {
1698
1707
  linearGrad.setAttribute("x2", "1");
1699
1708
  linearGrad.setAttribute("y2", "0");
1700
1709
  }
1701
- const { min, max, stops, bands } = this._computeStops();
1702
- this._min = min;
1703
- this._max = max;
1704
- stops.forEach((s) => {
1705
- const stopEl = BrowserAPIs.createElementNS(SVG_NS, "stop");
1706
- stopEl.setAttribute("offset", `${(s.percent * 100).toFixed(2)}%`);
1707
- stopEl.setAttribute("stop-color", s.color);
1708
- linearGrad.appendChild(stopEl);
1709
- });
1710
+ this._grad = linearGrad;
1711
+ const { min, max, bands } = this._paintStops();
1710
1712
  defs.appendChild(linearGrad);
1711
1713
  svg.appendChild(defs);
1712
1714
  const rect = BrowserAPIs.createElementNS(SVG_NS, "rect");
@@ -1915,6 +1917,7 @@ class HeatmapGradientLegend {
1915
1917
  */
1916
1918
  repositionToPlot() {
1917
1919
  var _a, _b;
1920
+ if (this._grad) this._paintStops();
1918
1921
  if (!Environment.isBrowser()) return;
1919
1922
  if (this._targetEl) return;
1920
1923
  const w = this.w;
@@ -2049,14 +2052,25 @@ class HeatmapGradientLegend {
2049
2052
  if (idx < 0 || idx === this._activeBandIndex) return;
2050
2053
  this._activeBandIndex = idx;
2051
2054
  (_d = (_c = (_b = this.ctx) == null ? void 0 : _b.events) == null ? void 0 : _c.fireEvent) == null ? void 0 : _d.call(_c, "legendHover", [this.ctx, idx, w]);
2052
- new Series(w).highlightRangeInSeries(idx, "highlight");
2055
+ this._highlightRange(idx, "highlight");
2053
2056
  }
2054
2057
  /** Leaving a band clears the highlight. */
2055
2058
  _onBandLeave() {
2056
2059
  if (this._activeBandIndex < 0) return;
2057
2060
  const idx = this._activeBandIndex;
2058
2061
  this._activeBandIndex = -1;
2059
- new Series(this.w).highlightRangeInSeries(idx, "reset");
2062
+ this._highlightRange(idx, "reset");
2063
+ }
2064
+ /**
2065
+ * A shared trellis strip sets `panelsW` so a band reaches every panel.
2066
+ * @param {number} idx
2067
+ * @param {'highlight'|'reset'} action
2068
+ */
2069
+ _highlightRange(idx, action) {
2070
+ var _a;
2071
+ (((_a = this.panelsW) == null ? void 0 : _a.call(this)) || [this.w]).forEach(
2072
+ (w) => new Series(w).highlightRangeInSeries(idx, action)
2073
+ );
2060
2074
  }
2061
2075
  _attachHoverListeners() {
2062
2076
  var _a, _b;
@@ -2078,10 +2092,10 @@ class HeatmapGradientLegend {
2078
2092
  */
2079
2093
  _onCellEnter(...args) {
2080
2094
  var _a, _b, _c;
2081
- const w = this.w;
2082
2095
  if (!this.arrowEl) return;
2083
2096
  const opts = args[args.length - 1];
2084
2097
  if (!opts || typeof opts !== "object") return;
2098
+ const w = opts.w || this.w;
2085
2099
  const i = opts.seriesIndex;
2086
2100
  const j = opts.dataPointIndex;
2087
2101
  if (typeof i !== "number" || typeof j !== "number") return;
@@ -2193,6 +2207,21 @@ class HeatmapGradientLegend {
2193
2207
  polygon.setAttribute("pointer-events", "none");
2194
2208
  return polygon;
2195
2209
  }
2210
+ /** (Re)write the strip's stops; returns `_computeStops()`. */
2211
+ _paintStops() {
2212
+ const r = this._computeStops();
2213
+ const grad = this._grad;
2214
+ this._min = r.min;
2215
+ this._max = r.max;
2216
+ grad.innerHTML = "";
2217
+ r.stops.forEach((s) => {
2218
+ const stopEl = BrowserAPIs.createElementNS(SVG_NS, "stop");
2219
+ stopEl.setAttribute("offset", `${(s.percent * 100).toFixed(2)}%`);
2220
+ stopEl.setAttribute("stop-color", s.color);
2221
+ grad.appendChild(stopEl);
2222
+ });
2223
+ return r;
2224
+ }
2196
2225
  /**
2197
2226
  * Build gradient stops + return effective min/max.
2198
2227
  * - If `colorScale.ranges` is set, stops are placed at each range boundary
@@ -2234,7 +2263,8 @@ class HeatmapGradientLegend {
2234
2263
  if (!Number.isFinite(dataMax)) dataMax = 0;
2235
2264
  let min = dataMin;
2236
2265
  let max = dataMax;
2237
- if (typeof cs.min !== "undefined" && typeof cs.max !== "undefined" && cs.max > cs.min) {
2266
+ const csWindow = typeof cs.min !== "undefined" && typeof cs.max !== "undefined" && cs.max > cs.min;
2267
+ if (csWindow) {
2238
2268
  min = cs.min;
2239
2269
  max = cs.max;
2240
2270
  } else {
@@ -2265,34 +2295,30 @@ class HeatmapGradientLegend {
2265
2295
  } else {
2266
2296
  const baseColor = w.globals.colors[0] || "#008FFB";
2267
2297
  const utils = new Utils();
2268
- const plot = w.config.plotOptions[w.config.chart.type] || {};
2298
+ const type = w.config.chart.type;
2299
+ const plot = w.config.plotOptions[type] || {};
2269
2300
  const shadeIntensity = (_b = plot.shadeIntensity) != null ? _b : 0.5;
2270
- const hasNegs = (
2301
+ const g = (
2271
2302
  /** @type {any} */
2272
- w.globals.hasNegs
2303
+ w.globals
2273
2304
  );
2305
+ const hasNegs = g.hasNegs;
2306
+ const yExt = type === "heatmap" && !plot.distributed && !csWindow && g.maxY >= g.minY;
2307
+ const hi = yExt ? g.maxY : max;
2308
+ const total = Math.abs(hi) + Math.abs(yExt ? cs.min < g.minY ? cs.min : g.minY : min);
2309
+ const k2 = shadeIntensity * 1.25;
2274
2310
  const n = Math.max(2, cfg.stops || 16);
2275
2311
  for (let s = 0; s < n; s++) {
2276
2312
  const t = s / (n - 1);
2277
- const v = min + t * (max - min);
2278
- const total = Math.abs(max) + Math.abs(min);
2279
- const percent_v = total === 0 ? 0 : 100 * v / total;
2280
- let colorShadePercent;
2281
- if (hasNegs) {
2282
- if (plot.reverseNegativeShade) {
2283
- colorShadePercent = percent_v < 0 ? percent_v / 100 * (shadeIntensity * 1.25) : (1 - percent_v / 100) * (shadeIntensity * 1.25);
2284
- } else {
2285
- colorShadePercent = percent_v <= 0 ? 1 - (1 + percent_v / 100) * shadeIntensity : (1 - percent_v / 100) * shadeIntensity;
2286
- }
2287
- } else {
2288
- colorShadePercent = 1 - percent_v / 100;
2289
- }
2290
- if (colorShadePercent > 1) colorShadePercent = 1;
2291
- if (colorShadePercent < -1) colorShadePercent = -1;
2292
- const shaded = plot.enableShades ? utils.shadeColor(
2293
- w.config.theme.mode === "dark" ? colorShadePercent * -1 : colorShadePercent,
2294
- baseColor
2295
- ) : baseColor;
2313
+ const p = total === 0 ? 0 : Math.min(min + t * (max - min), hi) / total;
2314
+ const c = Math.max(
2315
+ -1,
2316
+ Math.min(
2317
+ 1,
2318
+ hasNegs ? plot.reverseNegativeShade ? (p < 0 ? p : 1 - p) * k2 : p <= 0 ? 1 - (1 + p) * shadeIntensity : (1 - p) * shadeIntensity : (1 - p) * (type === "treemap" ? k2 : 1)
2319
+ )
2320
+ );
2321
+ const shaded = plot.enableShades ? utils.shadeColor(w.config.theme.mode === "dark" ? -c : c, baseColor) : baseColor;
2296
2322
  stops.push({ percent: t, color: shaded });
2297
2323
  }
2298
2324
  }
@@ -2317,6 +2343,7 @@ class TrellisChrome {
2317
2343
  this.elBreadcrumb = null;
2318
2344
  this.gradientLegend = null;
2319
2345
  this._gradPending = null;
2346
+ this._gradWire = null;
2320
2347
  }
2321
2348
  /**
2322
2349
  * The per-cell facet header. Built with the cell, before the panel mounts,
@@ -2547,17 +2574,20 @@ class TrellisChrome {
2547
2574
  const legend = new HeatmapGradientLegend(chart.w, chart.ctx);
2548
2575
  legend.draw(slot);
2549
2576
  this.gradientLegend = legend;
2550
- t.panels.forEach((p) => {
2577
+ legend.panelsW = () => t.panels.filter((p) => p.chart).map((p) => (
2578
+ /** @type {any} */
2579
+ p.chart.w
2580
+ ));
2581
+ const wire = (_, p) => {
2551
2582
  var _a;
2552
- if (!p.chart || p === mounted) return;
2553
- const ev = (
2554
- /** @type {any} */
2555
- (_a = p.chart.ctx) == null ? void 0 : _a.events
2556
- );
2557
- if (!(ev == null ? void 0 : ev.addEventListener)) return;
2583
+ const ev = p.chart !== chart && ((_a = p.chart) == null ? void 0 : _a.ctx.events);
2584
+ if (!ev) return;
2558
2585
  ev.addEventListener("dataPointMouseEnter", legend._onCellEnter);
2559
2586
  ev.addEventListener("dataPointMouseLeave", legend._onCellLeave);
2560
- });
2587
+ };
2588
+ t.panels.forEach((p) => wire(0, p));
2589
+ t.ctx.events.addEventListener("panelMounted", wire);
2590
+ this._gradWire = wire;
2561
2591
  }
2562
2592
  /** Tear down the shared gradient strip (P5). */
2563
2593
  destroyGradientLegend() {
@@ -2567,6 +2597,7 @@ class TrellisChrome {
2567
2597
  (_b = (_a = t.ctx.events).removeEventListener) == null ? void 0 : _b.call(_a, "panelMounted", this._gradPending);
2568
2598
  this._gradPending = null;
2569
2599
  }
2600
+ t.ctx.events.removeEventListener("panelMounted", this._gradWire);
2570
2601
  if (this.gradientLegend) {
2571
2602
  try {
2572
2603
  this.gradientLegend.destroy();
@@ -2883,6 +2914,7 @@ class TrellisSync {
2883
2914
  });
2884
2915
  };
2885
2916
  const loop = () => {
2917
+ if (elGrid !== this.trellis.elGrid) return raf2 = 0;
2886
2918
  apply();
2887
2919
  raf2 = hoverTarget ? requestAnimationFrame(loop) : 0;
2888
2920
  };
@@ -4528,8 +4560,12 @@ class Trellis {
4528
4560
  // gap is the breathing room here).
4529
4561
  parentHeightOffset: 0,
4530
4562
  toolbar: { show: false },
4563
+ // the shared toolbar owns the one reset (TrellisSync.resetAll); with
4564
+ // toolbar 'none' a panel's own reset is the only way back, unless the
4565
+ // page turned it off
4531
4566
  zoom: {
4532
- enabled: this.cfg.zoom !== "none"
4567
+ enabled: this.cfg.zoom !== "none",
4568
+ resetControl: this.cfg.toolbar == "none" && w.config.chart.zoom.resetControl !== false
4533
4569
  }
4534
4570
  }, animationsOff ? { animations: { enabled: false } } : {}), this._panelRenderer ? { renderer: this._panelRenderer } : {}), {
4535
4571
  events: __spreadProps(__spreadValues({}, userEvents), {