velo-plot 2.0.0 → 3.0.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 (265) hide show
  1. package/README.md +15 -8
  2. package/dist/{ChartCore-BhQ4j7f5.js → ChartCore-BpzRvN4Y.js} +998 -855
  3. package/dist/ChartCore-BpzRvN4Y.js.map +1 -0
  4. package/dist/a11y-Bw6urYpr.js +105 -0
  5. package/dist/a11y-Bw6urYpr.js.map +1 -0
  6. package/dist/angular/hooks-entry.d.ts +1 -0
  7. package/dist/angular/hooks.d.ts +26 -0
  8. package/dist/angular/index.d.ts +8 -0
  9. package/dist/angular/velo-plot.component.d.ts +46 -0
  10. package/dist/angular-hooks.d.ts +1 -0
  11. package/dist/angular-hooks.js +9 -0
  12. package/dist/angular-hooks.js.map +1 -0
  13. package/dist/angular.d.ts +1 -0
  14. package/dist/angular.js +166 -0
  15. package/dist/angular.js.map +1 -0
  16. package/dist/assets/indicator.worker-bv0zC4EX.js.map +1 -1
  17. package/dist/astro/StackedPlot.astro +19 -0
  18. package/dist/astro/VeloPlot.astro +23 -0
  19. package/dist/{axisFormat-SPX-CD5s.js → axisFormat-CzumxpCL.js} +3 -3
  20. package/dist/axisFormat-CzumxpCL.js.map +1 -0
  21. package/dist/bindings/shared/a11y.d.ts +26 -0
  22. package/dist/bindings/shared/chartLifecycle.d.ts +16 -0
  23. package/dist/bindings/shared/chartSyncBridge.d.ts +8 -0
  24. package/dist/bindings/shared/dimensions.d.ts +1 -0
  25. package/dist/bindings/shared/index.d.ts +9 -0
  26. package/dist/bindings/shared/indicatorBridge.d.ts +11 -0
  27. package/dist/bindings/shared/optionsSync.d.ts +7 -0
  28. package/dist/bindings/shared/seriesDiff.d.ts +8 -0
  29. package/dist/bindings/shared/stackedSync.d.ts +9 -0
  30. package/dist/bindings/shared/types.d.ts +46 -0
  31. package/dist/bindings/test-utils/index.d.ts +35 -0
  32. package/dist/bindings/test-utils/mockLifecycle.d.ts +120 -0
  33. package/dist/bindings/test-utils/vitestSveltePlugin.d.ts +3 -0
  34. package/dist/chartSyncBridge-DbWrwtyP.js +57 -0
  35. package/dist/chartSyncBridge-DbWrwtyP.js.map +1 -0
  36. package/dist/core/Chart.d.ts +1 -1
  37. package/dist/core/InteractionManager.d.ts +7 -1
  38. package/dist/core/OverlayRenderer.d.ts +5 -0
  39. package/dist/core/annotations/types.d.ts +1 -1
  40. package/dist/core/chart/ChartAxisManager.d.ts +2 -0
  41. package/dist/core/chart/ChartCore.d.ts +17 -2
  42. package/dist/core/chart/ChartPluginBridge.d.ts +1 -0
  43. package/dist/core/chart/ChartRenderLoop.d.ts +2 -0
  44. package/dist/core/chart/ChartStateManager.d.ts +2 -0
  45. package/dist/core/chart/types.d.ts +6 -1
  46. package/dist/core/clipboard/index.d.ts +1 -1
  47. package/dist/core/debug/index.d.ts +1 -1
  48. package/dist/core/keybindings/index.d.ts +1 -1
  49. package/dist/core/loading/index.d.ts +1 -1
  50. package/dist/core/locale/index.d.ts +1 -1
  51. package/dist/core/stacked/paneResize.d.ts +3 -0
  52. package/dist/core/stacked/types.d.ts +10 -0
  53. package/dist/core/sync/index.d.ts +0 -1
  54. package/dist/core/theme-editor/index.d.ts +1 -1
  55. package/dist/createStackedChart-Dm-YqUT7.js +756 -0
  56. package/dist/createStackedChart-Dm-YqUT7.js.map +1 -0
  57. package/dist/examples/PluginDemonstration.d.ts +1 -1
  58. package/dist/gpuRenderer-BpaMYz-k.js.map +1 -1
  59. package/dist/hooks-CYPCxoZx.js +69 -0
  60. package/dist/hooks-CYPCxoZx.js.map +1 -0
  61. package/dist/{index-D7dTq6VB.js → index-0InEyj0q.js} +130 -134
  62. package/dist/index-0InEyj0q.js.map +1 -0
  63. package/dist/index-BMiZoKmm.js.map +1 -1
  64. package/dist/{index-DoYxf1cV.js → index-CWxIHdwX.js} +38 -98
  65. package/dist/index-CWxIHdwX.js.map +1 -0
  66. package/dist/{index-CUGS98p4.js → index-CaXWSOTk.js} +3 -6
  67. package/dist/index-CaXWSOTk.js.map +1 -0
  68. package/dist/index-Dag88bW4.js.map +1 -1
  69. package/dist/index-qhscKTDy.js.map +1 -1
  70. package/dist/{index-CWipqOLP.js → index-qunX30Xu.js} +2 -2
  71. package/dist/index-qunX30Xu.js.map +1 -0
  72. package/dist/index-x4stH3jD.js.map +1 -1
  73. package/dist/{index.core-fpZ1dYN0.js → index.core-BmZe2jRQ.js} +30 -29
  74. package/dist/index.core-BmZe2jRQ.js.map +1 -0
  75. package/dist/index.core.d.ts +1 -1
  76. package/dist/index.d.ts +3 -3
  77. package/dist/indicators--eJGmVox.js.map +1 -1
  78. package/dist/{mockDatafeed-Cdg5hKEo.js → mockDatafeed-DHIDPcpX.js} +150 -146
  79. package/dist/mockDatafeed-DHIDPcpX.js.map +1 -0
  80. package/dist/optionsSync-QUiN4Inw.js +119 -0
  81. package/dist/optionsSync-QUiN4Inw.js.map +1 -0
  82. package/dist/plugins/3d/index.d.ts +2 -2
  83. package/dist/plugins/3d.d.ts +2 -2
  84. package/dist/plugins/3d.js.map +1 -1
  85. package/dist/plugins/analysis/contours.d.ts +31 -0
  86. package/dist/plugins/analysis/index.d.ts +1 -1
  87. package/dist/plugins/analysis/indicators.d.ts +1 -1
  88. package/dist/plugins/analysis.d.ts +2 -2
  89. package/dist/plugins/analysis.js +495 -408
  90. package/dist/plugins/analysis.js.map +1 -1
  91. package/dist/plugins/annotations/index.d.ts +1 -1
  92. package/dist/plugins/annotations.d.ts +2 -2
  93. package/dist/plugins/annotations.js.map +1 -1
  94. package/dist/plugins/anomaly-detection.js +1 -1
  95. package/dist/plugins/anomaly-detection.js.map +1 -1
  96. package/dist/plugins/broken-axis.d.ts +2 -2
  97. package/dist/plugins/broken-axis.js +170 -181
  98. package/dist/plugins/broken-axis.js.map +1 -1
  99. package/dist/plugins/builtins/crosshair/CrosshairPlugin.d.ts +1 -1
  100. package/dist/plugins/builtins/index.d.ts +1 -1
  101. package/dist/plugins/caching.d.ts +2 -2
  102. package/dist/plugins/clipboard/index.d.ts +2 -2
  103. package/dist/plugins/clipboard.d.ts +2 -2
  104. package/dist/plugins/clipboard.js.map +1 -1
  105. package/dist/plugins/context-menu/index.d.ts +1 -1
  106. package/dist/plugins/context-menu.d.ts +2 -2
  107. package/dist/plugins/context-menu.js +1 -1
  108. package/dist/plugins/context-menu.js.map +1 -1
  109. package/dist/plugins/data-export/index.d.ts +1 -1
  110. package/dist/plugins/data-export.d.ts +2 -2
  111. package/dist/plugins/data-export.js +2 -2
  112. package/dist/plugins/data-export.js.map +1 -1
  113. package/dist/plugins/data-transform.d.ts +2 -2
  114. package/dist/plugins/data-transform.js +19 -19
  115. package/dist/plugins/data-transform.js.map +1 -1
  116. package/dist/plugins/debug/index.d.ts +2 -2
  117. package/dist/plugins/debug.d.ts +2 -2
  118. package/dist/plugins/debug.js +2 -2
  119. package/dist/plugins/debug.js.map +1 -1
  120. package/dist/plugins/forecasting/algorithms.d.ts +7 -2
  121. package/dist/plugins/forecasting/index.d.ts +1 -1
  122. package/dist/plugins/forecasting/types.d.ts +13 -3
  123. package/dist/plugins/forecasting.js +355 -175
  124. package/dist/plugins/forecasting.js.map +1 -1
  125. package/dist/plugins/gpu/index.d.ts +2 -2
  126. package/dist/plugins/gpu.d.ts +2 -2
  127. package/dist/plugins/gpu.js.map +1 -1
  128. package/dist/plugins/i18n/index.d.ts +2 -2
  129. package/dist/plugins/i18n.d.ts +2 -2
  130. package/dist/plugins/i18n.js.map +1 -1
  131. package/dist/plugins/index.d.ts +1 -1
  132. package/dist/plugins/keyboard.d.ts +2 -2
  133. package/dist/plugins/keyboard.js +65 -5
  134. package/dist/plugins/keyboard.js.map +1 -1
  135. package/dist/plugins/latex/symbols.d.ts +50 -0
  136. package/dist/plugins/latex/types.d.ts +13 -1
  137. package/dist/plugins/latex.js +351 -331
  138. package/dist/plugins/latex.js.map +1 -1
  139. package/dist/plugins/lazy-load.d.ts +2 -2
  140. package/dist/plugins/loading/index.d.ts +1 -1
  141. package/dist/plugins/loading.d.ts +2 -2
  142. package/dist/plugins/ml-integration/native-algorithms.d.ts +24 -4
  143. package/dist/plugins/ml-integration/types.d.ts +19 -0
  144. package/dist/plugins/ml-integration.d.ts +2 -2
  145. package/dist/plugins/ml-integration.js +190 -139
  146. package/dist/plugins/ml-integration.js.map +1 -1
  147. package/dist/plugins/offscreen.d.ts +2 -2
  148. package/dist/plugins/pattern-recognition/types.d.ts +28 -1
  149. package/dist/plugins/pattern-recognition.d.ts +2 -2
  150. package/dist/plugins/pattern-recognition.js +417 -344
  151. package/dist/plugins/pattern-recognition.js.map +1 -1
  152. package/dist/plugins/radar.d.ts +2 -2
  153. package/dist/plugins/regression.d.ts +2 -2
  154. package/dist/plugins/regression.js +1 -1
  155. package/dist/plugins/regression.js.map +1 -1
  156. package/dist/plugins/roi.js +9 -9
  157. package/dist/plugins/roi.js.map +1 -1
  158. package/dist/plugins/snapshot/index.d.ts +1 -1
  159. package/dist/plugins/snapshot/types.d.ts +1 -1
  160. package/dist/plugins/snapshot.d.ts +2 -2
  161. package/dist/plugins/snapshot.js +36 -36
  162. package/dist/plugins/snapshot.js.map +1 -1
  163. package/dist/plugins/streaming/index.d.ts +2 -2
  164. package/dist/plugins/streaming.d.ts +2 -2
  165. package/dist/plugins/sync/index.d.ts +3 -2
  166. package/dist/plugins/sync.d.ts +2 -2
  167. package/dist/plugins/sync.js +1 -1
  168. package/dist/plugins/sync.js.map +1 -1
  169. package/dist/plugins/theme-editor/index.d.ts +1 -1
  170. package/dist/plugins/theme-editor.d.ts +2 -2
  171. package/dist/plugins/tools/index.d.ts +1 -1
  172. package/dist/plugins/tools/tooltip/index.d.ts +1 -1
  173. package/dist/plugins/tools.d.ts +2 -2
  174. package/dist/plugins/tools.js +1 -1
  175. package/dist/plugins/types.d.ts +1 -1
  176. package/dist/plugins/video-recorder.d.ts +2 -2
  177. package/dist/plugins/virtualization.d.ts +2 -2
  178. package/dist/plugins/virtualization.js +1 -1
  179. package/dist/pool-DZ8shSqv.js +109 -0
  180. package/dist/pool-DZ8shSqv.js.map +1 -0
  181. package/dist/react/StackedPlot.d.ts +31 -0
  182. package/dist/react/VeloPlot.d.ts +29 -0
  183. package/dist/react/index.d.ts +25 -3
  184. package/dist/react/useChartSync.d.ts +8 -0
  185. package/dist/react/useIndicator.d.ts +12 -0
  186. package/dist/react/useVeloPlot.d.ts +19 -0
  187. package/dist/react.js +328 -24
  188. package/dist/react.js.map +1 -1
  189. package/dist/scientific/index.d.ts +48 -0
  190. package/dist/scientific.d.ts +1 -0
  191. package/dist/scientific.js +91 -0
  192. package/dist/scientific.js.map +1 -0
  193. package/dist/solid/VeloPlot.d.ts +16 -0
  194. package/dist/solid/index.d.ts +13 -0
  195. package/dist/solid/useChartSync.d.ts +6 -0
  196. package/dist/solid/useIndicator.d.ts +11 -0
  197. package/dist/solid/useStackedPlot.d.ts +14 -0
  198. package/dist/solid/useVeloPlot.d.ts +18 -0
  199. package/dist/solid.d.ts +1 -0
  200. package/dist/solid.js +172 -0
  201. package/dist/solid.js.map +1 -0
  202. package/dist/stackedSync-tnrunZMt.js +100 -0
  203. package/dist/stackedSync-tnrunZMt.js.map +1 -0
  204. package/dist/svelte/StackedPlot.svelte +29 -0
  205. package/dist/svelte/StackedPlot.test.ts +114 -0
  206. package/dist/svelte/VeloPlot.svelte +44 -0
  207. package/dist/svelte/VeloPlot.test.ts +105 -0
  208. package/dist/svelte/index.d.ts +11 -0
  209. package/dist/svelte/index.test.ts +20 -0
  210. package/dist/svelte/index.ts +15 -0
  211. package/dist/svelte/useChartSync.d.ts +8 -0
  212. package/dist/svelte/useChartSync.test.ts +49 -0
  213. package/dist/svelte/useChartSync.ts +29 -0
  214. package/dist/svelte/useIndicator.d.ts +13 -0
  215. package/dist/svelte/useIndicator.test.ts +67 -0
  216. package/dist/svelte/useIndicator.ts +43 -0
  217. package/dist/svelte/useStackedPlot.d.ts +16 -0
  218. package/dist/svelte/useStackedPlot.test.ts +76 -0
  219. package/dist/svelte/useStackedPlot.ts +54 -0
  220. package/dist/svelte/useVeloPlot.d.ts +21 -0
  221. package/dist/svelte/useVeloPlot.test.ts +100 -0
  222. package/dist/svelte/useVeloPlot.ts +81 -0
  223. package/dist/svelte.d.ts +1 -0
  224. package/dist/svelte.js +143 -0
  225. package/dist/svelte.js.map +1 -0
  226. package/dist/symbols-DT0eLlpW.js +568 -0
  227. package/dist/symbols-DT0eLlpW.js.map +1 -0
  228. package/dist/testing/index.d.ts +1 -1
  229. package/dist/theme/index.d.ts +2 -1
  230. package/dist/trading.js +7 -7
  231. package/dist/types.d.ts +1 -1
  232. package/dist/{utils-BK5UUXxj.js → utils-Dx0h0bgQ.js} +9 -9
  233. package/dist/{utils-BK5UUXxj.js.map → utils-Dx0h0bgQ.js.map} +1 -1
  234. package/dist/velo-plot.full.js +444 -433
  235. package/dist/velo-plot.full.js.map +1 -1
  236. package/dist/velo-plot.js +15 -15
  237. package/dist/vue/StackedPlot.vue.d.ts +48 -0
  238. package/dist/vue/VeloPlot.vue.d.ts +64 -0
  239. package/dist/vue/index.d.ts +250 -0
  240. package/dist/vue/useChartSync.d.ts +52 -0
  241. package/dist/vue/useIndicator.d.ts +23 -0
  242. package/dist/vue/useStackedPlot.d.ts +15 -0
  243. package/dist/vue/useVeloPlot.d.ts +20 -0
  244. package/dist/vue.d.ts +1 -0
  245. package/dist/vue.js +312 -0
  246. package/dist/vue.js.map +1 -0
  247. package/dist/workers/indicatorsAsync.d.ts +26 -0
  248. package/dist/workers/pool.d.ts +9 -0
  249. package/package.json +88 -10
  250. package/dist/ChartCore-BhQ4j7f5.js.map +0 -1
  251. package/dist/SciPlot-GJvw7GJo.js +0 -463
  252. package/dist/SciPlot-GJvw7GJo.js.map +0 -1
  253. package/dist/axisFormat-SPX-CD5s.js.map +0 -1
  254. package/dist/createStackedChart-DJSmqerD.js +0 -706
  255. package/dist/createStackedChart-DJSmqerD.js.map +0 -1
  256. package/dist/index-CUGS98p4.js.map +0 -1
  257. package/dist/index-CWipqOLP.js.map +0 -1
  258. package/dist/index-D7dTq6VB.js.map +0 -1
  259. package/dist/index-DoYxf1cV.js.map +0 -1
  260. package/dist/index.core-fpZ1dYN0.js.map +0 -1
  261. package/dist/mockDatafeed-Cdg5hKEo.js.map +0 -1
  262. package/dist/pool-15HMCNv8.js +0 -88
  263. package/dist/pool-15HMCNv8.js.map +0 -1
  264. package/dist/react/SciPlot.d.ts +0 -60
  265. package/dist/react/useSciPlot.d.ts +0 -56
@@ -0,0 +1,69 @@
1
+ var K = Object.create;
2
+ var b = Object.defineProperty;
3
+ var M = Object.getOwnPropertyDescriptor;
4
+ var q = (t, r) => (r = Symbol[t]) ? r : Symbol.for("Symbol." + t), f = (t) => {
5
+ throw TypeError(t);
6
+ };
7
+ var v = (t, r, n) => r in t ? b(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
8
+ var L = (t, r) => b(t, "name", { value: r, configurable: !0 });
9
+ var z = (t) => [, , , K((t == null ? void 0 : t[q("metadata")]) ?? null)], B = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], y = (t) => t !== void 0 && typeof t != "function" ? f("Function expected") : t, N = (t, r, n, o, e) => ({ kind: B[t], name: r, metadata: o, addInitializer: (s) => n._ ? f("Already initialized") : e.push(y(s || null)) }), P = (t, r) => v(r, q("metadata"), t[3]), E = (t, r, n, o) => {
10
+ for (var e = 0, s = t[r >> 1], i = s && s.length; e < i; e++) r & 1 ? s[e].call(n) : o = s[e].call(n, o);
11
+ return o;
12
+ }, F = (t, r, n, o, e, s) => {
13
+ var i, u, w, h, m, a = r & 7, p = !!(r & 8), l = !!(r & 16), A = a > 3 ? t.length + 1 : a ? p ? 1 : 2 : 0, x = B[a + 5], D = a > 3 && (t[A - 1] = []), J = t[A] || (t[A] = []), d = a && (!l && !p && (e = e.prototype), a < 5 && (a > 3 || !l) && M(a < 4 ? e : { get [n]() {
14
+ return O(this, s);
15
+ }, set [n](c) {
16
+ return T(this, s, c);
17
+ } }, n));
18
+ a ? l && a < 4 && L(s, (a > 2 ? "set " : a > 1 ? "get " : "") + n) : L(e, n);
19
+ for (var C = o.length - 1; C >= 0; C--)
20
+ h = N(a, n, w = {}, t[3], J), a && (h.static = p, h.private = l, m = h.access = { has: l ? (c) => Q(e, c) : (c) => n in c }, a ^ 3 && (m.get = l ? (c) => (a ^ 1 ? O : R)(c, e, a ^ 4 ? s : d.get) : (c) => c[n]), a > 2 && (m.set = l ? (c, S) => T(c, e, S, a ^ 4 ? s : d.set) : (c, S) => c[n] = S)), u = (0, o[C])(a ? a < 4 ? l ? s : d[x] : a > 4 ? void 0 : { get: d.get, set: d.set } : e, h), w._ = 1, a ^ 4 || u === void 0 ? y(u) && (a > 4 ? D.unshift(u) : a ? l ? s = u : d[x] = u : e = u) : typeof u != "object" || u === null ? f("Object expected") : (y(i = u.get) && (d.get = i), y(i = u.set) && (d.set = i), y(i = u.init) && D.unshift(i));
21
+ return a || P(t, e), d && b(e, n, d), l ? a ^ 4 ? s : d : e;
22
+ }, k = (t, r, n) => v(t, typeof r != "symbol" ? r + "" : r, n), I = (t, r, n) => r.has(t) || f("Cannot " + n), Q = (t, r) => Object(r) !== r ? f('Cannot use the "in" operator on this value') : t.has(r), O = (t, r, n) => (I(t, r, "read from private field"), n ? n.call(t) : r.get(t));
23
+ var T = (t, r, n, o) => (I(t, r, "write to private field"), o ? o.call(t, n) : r.set(t, n), n), R = (t, r, n) => (I(t, r, "access private method"), n);
24
+ import { Injectable as U } from "@angular/core";
25
+ import { c as V, a as W, b as X } from "./chartSyncBridge-DbWrwtyP.js";
26
+ import { c as Y } from "./createStackedChart-Dm-YqUT7.js";
27
+ var G, j;
28
+ G = [U()];
29
+ class g {
30
+ constructor() {
31
+ k(this, "chart", null);
32
+ k(this, "destroy", null);
33
+ }
34
+ mount(r, n = {}) {
35
+ var e;
36
+ (e = this.destroy) == null || e.call(this);
37
+ const o = V(r, n);
38
+ this.chart = o.chart, this.destroy = o.destroy;
39
+ }
40
+ ngOnDestroy() {
41
+ var r;
42
+ (r = this.destroy) == null || r.call(this), this.chart = null;
43
+ }
44
+ }
45
+ j = z(null), g = F(j, 0, "VeloPlotHost", G, g), E(j, 1, g);
46
+ function tt() {
47
+ return new g();
48
+ }
49
+ function rt(t, r) {
50
+ const n = Y({ ...r, container: t });
51
+ return { stack: n, destroy: () => n.destroy() };
52
+ }
53
+ async function nt(t, r, n) {
54
+ return W(t, r, n ?? {});
55
+ }
56
+ function at(t, r) {
57
+ if (t.length < 2) return { group: null, destroy: () => {
58
+ } };
59
+ const n = X(t, r);
60
+ return { group: n.group, destroy: n.destroy };
61
+ }
62
+ export {
63
+ g as V,
64
+ rt as a,
65
+ nt as b,
66
+ at as c,
67
+ tt as u
68
+ };
69
+ //# sourceMappingURL=hooks-CYPCxoZx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks-CYPCxoZx.js","sources":["../src/angular/hooks.ts"],"sourcesContent":["/**\n * Angular service-style hooks (usable in components).\n */\n\nimport { Injectable, OnDestroy } from \"@angular/core\";\nimport type { Chart } from \"../core/Chart\";\nimport type { StackedChart, StackedChartOptions } from \"../core/stacked\";\nimport type { ChartLike, SyncOptions } from \"../core/sync\";\nimport { ChartGroup } from \"../core/sync\";\nimport {\n createChartLifecycle,\n createChartSync,\n addIndicatorToHost,\n type ChartBindingOptions,\n type IndicatorHost,\n} from \"../bindings/shared\";\nimport type { AddIndicatorOptions, AddIndicatorResult } from \"../core/indicator/addIndicator\";\nimport type { IndicatorPresetName } from \"../core/indicator/indicatorPresets\";\nimport { createStackedChart } from \"../core/stacked\";\n\n@Injectable()\nexport class VeloPlotHost implements OnDestroy {\n chart: Chart | null = null;\n private destroy: (() => void) | null = null;\n\n mount(container: HTMLDivElement, options: ChartBindingOptions = {}): void {\n this.destroy?.();\n const handle = createChartLifecycle(container, options);\n this.chart = handle.chart;\n this.destroy = handle.destroy;\n }\n\n ngOnDestroy(): void {\n this.destroy?.();\n this.chart = null;\n }\n}\n\nexport function useVeloPlotAngular() {\n return new VeloPlotHost();\n}\n\nexport function useStackedPlotAngular(\n container: HTMLDivElement,\n options: Omit<StackedChartOptions, \"container\">,\n): { stack: StackedChart; destroy: () => void } {\n const stack = createStackedChart({ ...options, container });\n return { stack, destroy: () => stack.destroy() };\n}\n\nexport async function useIndicatorAngular(\n host: IndicatorHost,\n preset: IndicatorPresetName,\n options?: AddIndicatorOptions,\n): Promise<AddIndicatorResult & { paneId?: string }> {\n return addIndicatorToHost(host, preset, options ?? {});\n}\n\nexport function useChartSyncAngular(\n charts: ChartLike[],\n options?: SyncOptions,\n): { group: ChartGroup | null; destroy: () => void } {\n if (charts.length < 2) return { group: null, destroy: () => {} };\n const handle = createChartSync(charts, options);\n return { group: handle.group, destroy: handle.destroy };\n}\n"],"names":["_VeloPlotHost_decorators","Injectable","VeloPlotHost","__publicField","container","options","_a","handle","createChartLifecycle","_init","__decoratorStart","__decorateElement","__runInitializers","useVeloPlotAngular","useStackedPlotAngular","stack","createStackedChart","useIndicatorAngular","host","preset","addIndicatorToHost","useChartSyncAngular","charts","createChartSync"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBAA,IAAA,CAACC,EAAA;AACM,MAAMC,EAAkC;AAAA,EAAxC;AACL,IAAAC,EAAA,eAAsB;AACd,IAAAA,EAAA,iBAA+B;AAAA;AAAA,EAEvC,MAAMC,GAA2BC,IAA+B,IAAU;;AACxE,KAAAC,IAAA,KAAK,YAAL,QAAAA,EAAA;AACA,UAAMC,IAASC,EAAqBJ,GAAWC,CAAO;AACtD,SAAK,QAAQE,EAAO,OACpB,KAAK,UAAUA,EAAO;AAAA,EACxB;AAAA,EAEA,cAAoB;;AAClB,KAAAD,IAAA,KAAK,YAAL,QAAAA,EAAA,YACA,KAAK,QAAQ;AAAA,EACf;AACF;AAfOG,IAAAC,EAAA,OAAMR,IAANS,EAAAF,GAAA,mBADPT,GACaE,IAANU,EAAAH,GAAA,GAAMP;AAiBN,SAASW,KAAqB;AACnC,SAAO,IAAIX,EAAA;AACb;AAEO,SAASY,GACdV,GACAC,GAC8C;AAC9C,QAAMU,IAAQC,EAAmB,EAAE,GAAGX,GAAS,WAAAD,GAAW;AAC1D,SAAO,EAAE,OAAAW,GAAO,SAAS,MAAMA,EAAM,UAAQ;AAC/C;AAEA,eAAsBE,GACpBC,GACAC,GACAd,GACmD;AACnD,SAAOe,EAAmBF,GAAMC,GAAQd,KAAW,CAAA,CAAE;AACvD;AAEO,SAASgB,GACdC,GACAjB,GACmD;AACnD,MAAIiB,EAAO,SAAS,EAAG,QAAO,EAAE,OAAO,MAAM,SAAS,MAAM;AAAA,EAAC,EAAA;AAC7D,QAAMf,IAASgB,EAAgBD,GAAQjB,CAAO;AAC9C,SAAO,EAAE,OAAOE,EAAO,OAAO,SAASA,EAAO,QAAA;AAChD;"}
@@ -1,52 +1,52 @@
1
- import { n as H, W as Z } from "./pool-15HMCNv8.js";
2
- function R(o, r, n) {
1
+ import { n as H, W as Z } from "./pool-DZ8shSqv.js";
2
+ function R(o, n, r) {
3
3
  const l = o.length;
4
- if (n >= l || n <= 2)
4
+ if (r >= l || r <= 2)
5
5
  return {
6
6
  x: new Float32Array(o),
7
- y: new Float32Array(r),
7
+ y: new Float32Array(n),
8
8
  indices: new Uint32Array(Array.from({ length: l }, (g, F) => F))
9
9
  };
10
- const u = new Float32Array(n), f = new Float32Array(n), s = new Uint32Array(n);
11
- u[0] = o[0], f[0] = r[0], s[0] = 0;
12
- const c = (l - 2) / (n - 2);
10
+ const u = new Float32Array(r), f = new Float32Array(r), s = new Uint32Array(r);
11
+ u[0] = o[0], f[0] = n[0], s[0] = 0;
12
+ const c = (l - 2) / (r - 2);
13
13
  let h = 0, p = 1;
14
- for (let g = 0; g < n - 2; g++) {
14
+ for (let g = 0; g < r - 2; g++) {
15
15
  const F = Math.floor((g + 1) * c) + 1, z = Math.floor((g + 2) * c) + 1, x = Math.min(z, l - 1), y = Math.min(
16
16
  Math.floor((g + 3) * c) + 1,
17
17
  l
18
18
  );
19
- let w = 0, E = 0, v = 0;
19
+ let w = 0, V = 0, v = 0;
20
20
  for (let D = x; D < y; D++)
21
- w += o[D], E += r[D], v++;
22
- v > 0 && (w /= v, E /= v);
21
+ w += o[D], V += n[D], v++;
22
+ v > 0 && (w /= v, V /= v);
23
23
  let b = -1, M = F;
24
- const S = o[h], L = r[h];
24
+ const S = o[h], B = n[h];
25
25
  for (let D = F; D < z && D < l; D++) {
26
- const P = Math.abs(
27
- (S - w) * (r[D] - L) - (S - o[D]) * (E - L)
26
+ const L = Math.abs(
27
+ (S - w) * (n[D] - B) - (S - o[D]) * (V - B)
28
28
  );
29
- P > b && (b = P, M = D);
29
+ L > b && (b = L, M = D);
30
30
  }
31
- u[p] = o[M], f[p] = r[M], s[p] = M, h = M, p++;
31
+ u[p] = o[M], f[p] = n[M], s[p] = M, h = M, p++;
32
32
  }
33
- return u[n - 1] = o[l - 1], f[n - 1] = r[l - 1], s[n - 1] = l - 1, { x: u, y: f, indices: s };
33
+ return u[r - 1] = o[l - 1], f[r - 1] = n[l - 1], s[r - 1] = l - 1, { x: u, y: f, indices: s };
34
34
  }
35
- function G(o, r, n) {
35
+ function G(o, n, r) {
36
36
  const l = o.length;
37
- if (n >= l / 2)
37
+ if (r >= l / 2)
38
38
  return {
39
39
  x: new Float32Array(o),
40
- y: new Float32Array(r),
40
+ y: new Float32Array(n),
41
41
  indices: new Uint32Array(Array.from({ length: l }, (h, p) => p))
42
42
  };
43
- const u = l / n, f = [], s = [], c = [];
44
- for (let h = 0; h < n; h++) {
43
+ const u = l / r, f = [], s = [], c = [];
44
+ for (let h = 0; h < r; h++) {
45
45
  const p = Math.floor(h * u), g = Math.floor((h + 1) * u);
46
46
  let F = 1 / 0, z = -1 / 0, x = p, y = p;
47
47
  for (let w = p; w < g && w < l; w++)
48
- r[w] < F && (F = r[w], x = w), r[w] > z && (z = r[w], y = w);
49
- x <= y ? (f.push(o[x], o[y]), s.push(r[x], r[y]), c.push(x, y)) : (f.push(o[y], o[x]), s.push(r[y], r[x]), c.push(y, x));
48
+ n[w] < F && (F = n[w], x = w), n[w] > z && (z = n[w], y = w);
49
+ x <= y ? (f.push(o[x], o[y]), s.push(n[x], n[y]), c.push(x, y)) : (f.push(o[y], o[x]), s.push(n[y], n[x]), c.push(y, x));
50
50
  }
51
51
  return {
52
52
  x: new Float32Array(f),
@@ -54,29 +54,29 @@ function G(o, r, n) {
54
54
  indices: new Uint32Array(c)
55
55
  };
56
56
  }
57
- function ee(o, r, n = 2) {
58
- const l = r * n;
57
+ function ee(o, n, r = 2) {
58
+ const l = n * r;
59
59
  return Math.min(o, l);
60
60
  }
61
- function q(o, r, n, l, u, f) {
61
+ function q(o, n, r, l, u, f) {
62
62
  const s = o.length;
63
63
  if (f >= s || f <= 1 || s === 0)
64
64
  return {
65
65
  x: new Float32Array(o),
66
- open: new Float32Array(r),
67
- high: new Float32Array(n),
66
+ open: new Float32Array(n),
67
+ high: new Float32Array(r),
68
68
  low: new Float32Array(l),
69
69
  close: new Float32Array(u),
70
70
  indices: new Uint32Array(Array.from({ length: s }, (y, w) => w))
71
71
  };
72
72
  const c = s / f, h = [], p = [], g = [], F = [], z = [], x = [];
73
73
  for (let y = 0; y < f; y++) {
74
- const w = Math.floor(y * c), E = Math.min(s, Math.floor((y + 1) * c));
75
- if (w >= E) continue;
74
+ const w = Math.floor(y * c), V = Math.min(s, Math.floor((y + 1) * c));
75
+ if (w >= V) continue;
76
76
  let v = -1 / 0, b = 1 / 0, M = w;
77
- for (let S = w; S < E; S++)
78
- n[S] > v && (v = n[S]), l[S] < b && (b = l[S]), M = S;
79
- p.push(r[w]), g.push(v), F.push(b), z.push(u[M]), h.push(o[M]), x.push(M);
77
+ for (let S = w; S < V; S++)
78
+ r[S] > v && (v = r[S]), l[S] < b && (b = l[S]), M = S;
79
+ p.push(n[w]), g.push(v), F.push(b), z.push(u[M]), h.push(o[M]), x.push(M);
80
80
  }
81
81
  return {
82
82
  x: new Float32Array(h),
@@ -87,27 +87,27 @@ function q(o, r, n, l, u, f) {
87
87
  indices: new Uint32Array(x)
88
88
  };
89
89
  }
90
- function te(o, r) {
91
- let n = 0, l = o.length;
92
- for (; n < l; ) {
93
- const u = n + l >>> 1;
94
- o[u] < r ? n = u + 1 : l = u;
90
+ function te(o, n) {
91
+ let r = 0, l = o.length;
92
+ for (; r < l; ) {
93
+ const u = r + l >>> 1;
94
+ o[u] < n ? r = u + 1 : l = u;
95
95
  }
96
- return n;
96
+ return r;
97
97
  }
98
- function ne(o, r) {
99
- let n = 0, l = o.length;
100
- for (; n < l; ) {
101
- const u = n + l >>> 1;
102
- o[u] <= r ? n = u + 1 : l = u;
98
+ function ne(o, n) {
99
+ let r = 0, l = o.length;
100
+ for (; r < l; ) {
101
+ const u = r + l >>> 1;
102
+ o[u] <= n ? r = u + 1 : l = u;
103
103
  }
104
- return n;
104
+ return r;
105
105
  }
106
- function re(o, r, n, l = 0.5) {
106
+ function re(o, n, r, l = 0.5) {
107
107
  const u = o.x.length;
108
108
  if (u === 0)
109
109
  return { x: new Float32Array(0), start: 0, end: 0 };
110
- const f = Math.max(n - r, 1e-12), s = r - f * l, c = n + f * l;
110
+ const f = Math.max(r - n, 1e-12), s = n - f * l, c = r + f * l;
111
111
  let h = te(o.x, s), p = ne(o.x, c);
112
112
  h = Math.max(0, h), p = Math.min(u, Math.max(p, h + 1));
113
113
  const g = (F) => {
@@ -138,10 +138,10 @@ function J() {
138
138
  syncFallback: !0,
139
139
  syncHandler: (o) => {
140
140
  if (o.type === "downsample") {
141
- const n = o.algorithm === "minmax" ? G(o.x, o.y, Math.ceil(o.targetPoints / 2)) : R(o.x, o.y, o.targetPoints);
142
- return { id: o.id, type: "downsample-result", x: n.x, y: n.y };
141
+ const r = o.algorithm === "minmax" ? G(o.x, o.y, Math.ceil(o.targetPoints / 2)) : R(o.x, o.y, o.targetPoints);
142
+ return { id: o.id, type: "downsample-result", x: r.x, y: r.y };
143
143
  }
144
- const r = q(
144
+ const n = q(
145
145
  o.x,
146
146
  o.open,
147
147
  o.high,
@@ -152,26 +152,25 @@ function J() {
152
152
  return {
153
153
  id: o.id,
154
154
  type: "ohlc-downsample-result",
155
- x: r.x,
156
- open: r.open,
157
- high: r.high,
158
- low: r.low,
159
- close: r.close
155
+ x: n.x,
156
+ open: n.open,
157
+ high: n.high,
158
+ low: n.low,
159
+ close: n.close
160
160
  };
161
161
  }
162
162
  }
163
163
  ), I);
164
164
  }
165
- async function oe(o, r, n, l = "lttb") {
165
+ async function oe(o, n, r, l = "lttb") {
166
166
  const u = H("downsample"), f = await J().run({
167
167
  id: u,
168
168
  type: "downsample",
169
169
  x: o,
170
- y: r,
171
- targetPoints: n,
170
+ y: n,
171
+ targetPoints: r,
172
172
  algorithm: l
173
173
  });
174
- if (f.type === "error") throw new Error(f.error);
175
174
  if (f.type !== "downsample-result")
176
175
  throw new Error("Unexpected downsample worker response");
177
176
  return {
@@ -180,18 +179,17 @@ async function oe(o, r, n, l = "lttb") {
180
179
  indices: new Uint32Array(f.x.length)
181
180
  };
182
181
  }
183
- async function ae(o, r, n, l, u, f) {
182
+ async function ae(o, n, r, l, u, f) {
184
183
  const s = H("ohlc-downsample"), c = await J().run({
185
184
  id: s,
186
185
  type: "ohlc-downsample",
187
186
  x: o,
188
- open: r,
189
- high: n,
187
+ open: n,
188
+ high: r,
190
189
  low: l,
191
190
  close: u,
192
191
  targetBars: f
193
192
  });
194
- if (c.type === "error") throw new Error(c.error);
195
193
  if (c.type !== "ohlc-downsample-result")
196
194
  throw new Error("Unexpected OHLC downsample worker response");
197
195
  return {
@@ -233,17 +231,17 @@ const le = {
233
231
  workerThreshold: 25e4
234
232
  };
235
233
  function de(o = {}) {
236
- const r = { ...ie, ...o };
237
- let n = null, l = !1;
234
+ const n = { ...ie, ...o };
235
+ let r = null, l = !1;
238
236
  const u = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
239
237
  let s = null, c = null, h = 0;
240
238
  const p = /* @__PURE__ */ new Map();
241
239
  let g = "";
242
240
  function F(e, ...t) {
243
- r.debug && n && n.log.info(`[Virtualization] ${e}`, ...t);
241
+ n.debug && r && r.log.info(`[Virtualization] ${e}`, ...t);
244
242
  }
245
243
  function z(e) {
246
- if (!r.enabled || r.precision === "full" || r.includeSeries.length > 0 && !r.includeSeries.includes(e.getId()) || r.excludeSeries.includes(e.getId())) return !1;
244
+ if (!n.enabled || n.precision === "full" || n.includeSeries.length > 0 && !n.includeSeries.includes(e.getId()) || n.excludeSeries.includes(e.getId())) return !1;
247
245
  const t = e.getType();
248
246
  return t === "line" || t === "scatter" || t === "line+scatter" || t === "step" || t === "step+scatter" || t === "candlestick" || t === "bar";
249
247
  }
@@ -260,12 +258,11 @@ function de(o = {}) {
260
258
  } : { x: e.x, y: e.y };
261
259
  }
262
260
  function w(e) {
263
- if (!n) return e;
264
- if (r.targetPoints !== "auto") return Math.max(2, r.targetPoints);
265
- const t = n.render.canvasSize.width / n.render.pixelRatio;
266
- return ee(e, t, r.pointsPerPixel);
261
+ if (n.targetPoints !== "auto") return Math.max(2, n.targetPoints);
262
+ const t = r.render.canvasSize.width / r.render.pixelRatio;
263
+ return ee(e, t, n.pointsPerPixel);
267
264
  }
268
- function E(e, t, a, i) {
265
+ function V(e, t, a, i) {
269
266
  if (a >= e.length || e.length <= 2)
270
267
  return { x: new Float32Array(e), y: new Float32Array(t) };
271
268
  if (i === "minmax") {
@@ -276,7 +273,7 @@ function de(o = {}) {
276
273
  return { x: d.x, y: d.y };
277
274
  }
278
275
  function v(e, t) {
279
- r.reuseOriginalData && (u.has(e) || u.set(e, { ...t }));
276
+ n.reuseOriginalData && u.set(e, { ...t });
280
277
  }
281
278
  function b(e) {
282
279
  return u.get(e) ?? null;
@@ -311,19 +308,18 @@ function de(o = {}) {
311
308
  const a = { x: t.x, y: t.y };
312
309
  return v(e.getId(), a), a;
313
310
  }
314
- function L(e) {
311
+ function B(e) {
315
312
  return b(e.getId()) ?? S(e);
316
313
  }
317
314
  function D(e) {
318
315
  var i, d;
319
- if (!n) return e;
320
- const t = (d = (i = n.data).getViewBounds) == null ? void 0 : d.call(i);
316
+ const t = (d = (i = r.data).getViewBounds) == null ? void 0 : d.call(i);
321
317
  if (!t) return e;
322
318
  const a = re(
323
319
  e,
324
320
  t.xMin,
325
321
  t.xMax,
326
- r.viewportBuffer
322
+ n.viewportBuffer
327
323
  );
328
324
  return a.end - a.start >= e.x.length ? e : {
329
325
  x: a.x,
@@ -334,98 +330,98 @@ function de(o = {}) {
334
330
  close: a.close
335
331
  };
336
332
  }
337
- function P(e, t) {
338
- s && (l = !0, s(e, t), l = !1);
333
+ function L(e, t) {
334
+ l = !0, s(e, t), l = !1;
339
335
  }
340
336
  async function K(e, t, a) {
341
337
  const i = new Float32Array(e.x), d = new Float32Array(e.y);
342
- if (r.useWorker && i.length >= r.workerThreshold) {
338
+ if (n.useWorker && i.length >= n.workerThreshold) {
343
339
  const A = await oe(i, d, t, a === "minmax" ? "minmax" : "lttb");
344
340
  return { x: A.x, y: A.y };
345
341
  }
346
- return E(i, d, t, a);
342
+ return V(i, d, t, a);
347
343
  }
348
344
  async function W(e) {
349
- var V;
350
- if (!n || !s) return;
345
+ var E;
346
+ if (!r || !s) return;
351
347
  const t = e.getId();
352
348
  if (!z(e)) {
353
349
  const O = b(t);
354
- O && r.reuseOriginalData && P(t, y(O));
350
+ O && n.reuseOriginalData && L(t, y(O));
355
351
  return;
356
352
  }
357
- const a = L(e);
358
- if (!((V = a == null ? void 0 : a.x) != null && V.length)) return;
353
+ const a = B(e);
354
+ if (!((E = a == null ? void 0 : a.x) != null && E.length)) return;
359
355
  const i = D(a), d = (p.get(t) ?? 0) + 1;
360
356
  if (p.set(t, d), x(e)) {
361
357
  if (!i.open || !i.high || !i.low || !i.close)
362
358
  return;
363
- const O = w(i.x.length), T = new Float32Array(i.x), $ = new Float32Array(i.open), j = new Float32Array(i.high), C = new Float32Array(i.low), _ = new Float32Array(i.close), k = r.useWorker && T.length >= r.workerThreshold ? await ae(T, $, j, C, _, O) : q(T, $, j, C, _, O);
359
+ const O = w(i.x.length), T = new Float32Array(i.x), $ = new Float32Array(i.open), j = new Float32Array(i.high), C = new Float32Array(i.low), _ = new Float32Array(i.close), P = n.useWorker && T.length >= n.workerThreshold ? await ae(T, $, j, C, _, O) : q(T, $, j, C, _, O);
364
360
  if (p.get(t) !== d) return;
365
- P(t, {
366
- x: k.x,
367
- open: k.open,
368
- high: k.high,
369
- low: k.low,
370
- close: k.close
371
- }), M(t, a.x.length, k.x.length, O, r.mode, "minmax");
361
+ L(t, {
362
+ x: P.x,
363
+ open: P.open,
364
+ high: P.high,
365
+ low: P.low,
366
+ close: P.close
367
+ }), M(t, a.x.length, P.x.length, O, n.mode, "minmax");
372
368
  return;
373
369
  }
374
370
  if (!i.y) return;
375
- const m = w(i.x.length), A = e.getType() === "bar" ? "minmax" : r.strategy, U = await K(i, m, A);
376
- p.get(t) === d && (P(t, { x: U.x, y: U.y }), M(t, a.x.length, U.x.length, m, r.mode, A));
371
+ const m = w(i.x.length), A = e.getType() === "bar" ? "minmax" : n.strategy, U = await K(i, m, A);
372
+ p.get(t) === d && (L(t, { x: U.x, y: U.y }), M(t, a.x.length, U.x.length, m, n.mode, A));
377
373
  }
378
- function B() {
379
- n && n.data.getAllSeries().forEach((e) => {
374
+ function k() {
375
+ r && r.data.getAllSeries().forEach((e) => {
380
376
  W(e);
381
377
  });
382
378
  }
383
379
  function X() {
384
380
  var t, a;
385
- if (!n) return;
386
- const e = (a = (t = n.data).getViewBounds) == null ? void 0 : a.call(t);
381
+ if (!r) return;
382
+ const e = (a = (t = r.data).getViewBounds) == null ? void 0 : a.call(t);
387
383
  if (e) {
388
- const i = `${e.xMin}:${e.xMax}:${e.yMin}:${e.yMax}:${n.render.canvasSize.width}`;
384
+ const i = `${e.xMin}:${e.xMax}:${e.yMin}:${e.yMax}:${r.render.canvasSize.width}`;
389
385
  if (i === g) return;
390
386
  g = i;
391
387
  }
392
388
  h || (h = requestAnimationFrame(() => {
393
- h = 0, B();
389
+ h = 0, k();
394
390
  }));
395
391
  }
396
392
  function N(e, t) {
397
- var m, A, U, V;
398
- if (!n || !s) return;
399
- if (!r.enabled || l) {
393
+ var m, A, U, E;
394
+ if (!r || !s) return;
395
+ if (!n.enabled || l) {
400
396
  s(e, t);
401
397
  return;
402
398
  }
403
- if (!((A = (m = n.chart).getSeries) == null ? void 0 : A.call(m, e))) {
399
+ if (!((A = (m = r.chart).getSeries) == null ? void 0 : A.call(m, e))) {
404
400
  s(e, t);
405
401
  return;
406
402
  }
407
403
  const i = b(e);
408
- i && r.reuseOriginalData && (l = !0, s(e, y(i)), l = !1), s(e, t);
409
- const d = (V = (U = n.chart).getSeries) == null ? void 0 : V.call(U, e);
404
+ i && n.reuseOriginalData && (l = !0, s(e, y(i)), l = !1), s(e, t);
405
+ const d = (E = (U = r.chart).getSeries) == null ? void 0 : E.call(U, e);
410
406
  d && (u.delete(e), S(d), W(d));
411
407
  }
412
408
  function Q(e, t, a) {
413
- var A, U, V, O;
414
- if (!n || !c || !s) return;
415
- if (!r.enabled || l) {
409
+ var A, U, E, O;
410
+ if (!r || !c || !s) return;
411
+ if (!n.enabled || l) {
416
412
  c(e, t, a);
417
413
  return;
418
414
  }
419
- if (!((U = (A = n.chart).getSeries) == null ? void 0 : U.call(A, e))) {
415
+ if (!((U = (A = r.chart).getSeries) == null ? void 0 : U.call(A, e))) {
420
416
  c(e, t, a);
421
417
  return;
422
418
  }
423
419
  const d = b(e);
424
- d && r.reuseOriginalData && (l = !0, s(e, y(d)), l = !1), c(e, t, a);
425
- const m = (O = (V = n.chart).getSeries) == null ? void 0 : O.call(V, e);
420
+ d && n.reuseOriginalData && (l = !0, s(e, y(d)), l = !1), c(e, t, a);
421
+ const m = (O = (E = r.chart).getSeries) == null ? void 0 : O.call(E, e);
426
422
  if (m) {
427
423
  const T = b(e);
428
- T != null && T.y && r.reuseOriginalData ? v(e, {
424
+ T != null && T.y && n.reuseOriginalData ? u.set(e, {
429
425
  x: Y(T.x, t),
430
426
  y: Y(T.y, a)
431
427
  }) : (u.delete(e), S(m)), W(m);
@@ -439,42 +435,42 @@ function de(o = {}) {
439
435
  manifest: le,
440
436
  onInit(e) {
441
437
  var a, i;
442
- n = e;
443
- const t = n.chart;
444
- s = ((a = t.updateSeries) == null ? void 0 : a.bind(t)) ?? null, c = ((i = t.appendData) == null ? void 0 : i.bind(t)) ?? null, s && (t.updateSeries = (d, m) => N(d, m)), c && (t.appendData = (d, m, A) => Q(d, m, A)), n.events.on("zoom", () => X()), n.events.on("pan", () => X()), n.events.on("resize", () => {
438
+ r = e;
439
+ const t = r.chart;
440
+ s = ((a = t.updateSeries) == null ? void 0 : a.bind(t)) ?? null, c = ((i = t.appendData) == null ? void 0 : i.bind(t)) ?? null, s && (t.updateSeries = (d, m) => N(d, m)), c && (t.appendData = (d, m, A) => Q(d, m, A)), r.events.on("zoom", () => X()), r.events.on("pan", () => X()), r.events.on("resize", () => {
445
441
  g = "", X();
446
- }), B(), F("Initialized");
442
+ }), k(), F("Initialized");
447
443
  },
448
444
  onDestroy(e) {
449
- h && cancelAnimationFrame(h), h = 0, p.clear(), s && (e.chart.updateSeries = s), c && (e.chart.appendData = c), n = null, u.clear(), f.clear();
445
+ h && cancelAnimationFrame(h), h = 0, p.clear(), s && (e.chart.updateSeries = s), c && (e.chart.appendData = c), r = null, u.clear(), f.clear();
450
446
  },
451
447
  api: {
452
448
  enable() {
453
- r.enabled = !0, B();
449
+ n.enabled = !0, k();
454
450
  },
455
451
  disable() {
456
- if (r.enabled = !1, !n || !s) return;
452
+ if (n.enabled = !1, !r || !s) return;
457
453
  const e = s;
458
- n.data.getAllSeries().forEach((t) => {
454
+ r.data.getAllSeries().forEach((t) => {
459
455
  const a = b(t.getId());
460
456
  a && (l = !0, e(t.getId(), y(a)), l = !1);
461
457
  });
462
458
  },
463
459
  isEnabled() {
464
- return r.enabled;
460
+ return n.enabled;
465
461
  },
466
462
  updateConfig(e) {
467
- Object.assign(r, e), B();
463
+ Object.assign(n, e), k();
468
464
  },
469
465
  invalidate(e) {
470
466
  var t, a;
471
- if (n) {
467
+ if (r) {
472
468
  if (e) {
473
- const i = (a = (t = n.chart).getSeries) == null ? void 0 : a.call(t, e);
469
+ const i = (a = (t = r.chart).getSeries) == null ? void 0 : a.call(t, e);
474
470
  i && W(i);
475
471
  return;
476
472
  }
477
- B();
473
+ k();
478
474
  }
479
475
  },
480
476
  getStats(e) {
@@ -488,16 +484,16 @@ function de(o = {}) {
488
484
  }
489
485
  export {
490
486
  de as P,
491
- te as a,
492
- ae as b,
487
+ ce as a,
488
+ q as b,
493
489
  ee as c,
494
490
  oe as d,
495
- ce as e,
491
+ te as e,
496
492
  fe as g,
497
493
  R as l,
498
494
  G as m,
499
- q as o,
495
+ ae as o,
500
496
  re as s,
501
497
  ne as u
502
498
  };
503
- //# sourceMappingURL=index-D7dTq6VB.js.map
499
+ //# sourceMappingURL=index-0InEyj0q.js.map