velo-plot 2.20.0 → 3.1.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 (287) hide show
  1. package/README.md +26 -12
  2. package/dist/ChartCore-AnR_3Xkb.js +7338 -0
  3. package/dist/ChartCore-AnR_3Xkb.js.map +1 -0
  4. package/dist/GpuChartRenderer-Dxc0hrQA.js +75 -0
  5. package/dist/GpuChartRenderer-Dxc0hrQA.js.map +1 -0
  6. package/dist/{index.core-COREBDNq.js → PluginRegistry-CzMHebYP.js} +24 -38
  7. package/dist/PluginRegistry-CzMHebYP.js.map +1 -0
  8. package/dist/a11y-Bw6urYpr.js +105 -0
  9. package/dist/a11y-Bw6urYpr.js.map +1 -0
  10. package/dist/angular/hooks-entry.d.ts +1 -0
  11. package/dist/angular/hooks.d.ts +26 -0
  12. package/dist/angular/index.d.ts +8 -0
  13. package/dist/angular/velo-plot.component.d.ts +46 -0
  14. package/dist/angular-hooks.d.ts +1 -0
  15. package/dist/angular-hooks.js +9 -0
  16. package/dist/angular-hooks.js.map +1 -0
  17. package/dist/angular.d.ts +1 -0
  18. package/dist/angular.js +166 -0
  19. package/dist/angular.js.map +1 -0
  20. package/dist/assets/indicator.worker-bv0zC4EX.js.map +1 -1
  21. package/dist/astro/StackedPlot.astro +19 -0
  22. package/dist/astro/VeloPlot.astro +23 -0
  23. package/dist/{axisFormat-CzumxpCL.js → axisFormat-Sz4WIJfQ.js} +2 -2
  24. package/dist/{axisFormat-CzumxpCL.js.map → axisFormat-Sz4WIJfQ.js.map} +1 -1
  25. package/dist/bindings/shared/a11y.d.ts +26 -0
  26. package/dist/bindings/shared/chartLifecycle.d.ts +16 -0
  27. package/dist/bindings/shared/chartSyncBridge.d.ts +8 -0
  28. package/dist/bindings/shared/dimensions.d.ts +1 -0
  29. package/dist/bindings/shared/index.d.ts +9 -0
  30. package/dist/bindings/shared/indicatorBridge.d.ts +11 -0
  31. package/dist/bindings/shared/optionsSync.d.ts +7 -0
  32. package/dist/bindings/shared/seriesDiff.d.ts +8 -0
  33. package/dist/bindings/shared/stackedSync.d.ts +9 -0
  34. package/dist/bindings/shared/types.d.ts +46 -0
  35. package/dist/bindings/test-utils/index.d.ts +35 -0
  36. package/dist/bindings/test-utils/mockLifecycle.d.ts +120 -0
  37. package/dist/bindings/test-utils/vitestSveltePlugin.d.ts +3 -0
  38. package/dist/chartSyncBridge-D_rCtbFq.js +58 -0
  39. package/dist/chartSyncBridge-D_rCtbFq.js.map +1 -0
  40. package/dist/core/Chart.d.ts +1 -1
  41. package/dist/core/ChartStatistics.d.ts +1 -1
  42. package/dist/core/InteractionManager.d.ts +7 -1
  43. package/dist/core/OverlayRenderer.d.ts +5 -0
  44. package/dist/core/annotations/types.d.ts +1 -1
  45. package/dist/core/chart/ChartCore.d.ts +14 -19
  46. package/dist/core/chart/ChartFeatureHooks.d.ts +7 -0
  47. package/dist/core/chart/chartExportPatch.d.ts +2 -0
  48. package/dist/core/chart/overlaySeriesRegistry.d.ts +7 -0
  49. package/dist/core/chart/series/SeriesActions.d.ts +1 -0
  50. package/dist/core/chart/series/SeriesBufferLite.d.ts +13 -0
  51. package/dist/core/chart/series/seriesOptionsRegistry.d.ts +8 -0
  52. package/dist/core/chart/series/seriesTypeRegistry.d.ts +5 -0
  53. package/dist/core/chart/types.d.ts +1 -1
  54. package/dist/core/clipboard/index.d.ts +1 -1
  55. package/dist/core/debug/index.d.ts +1 -1
  56. package/dist/core/keybindings/index.d.ts +1 -1
  57. package/dist/core/loading/index.d.ts +1 -1
  58. package/dist/core/locale/index.d.ts +1 -1
  59. package/dist/core/stacked/paneResize.d.ts +3 -0
  60. package/dist/core/stacked/types.d.ts +10 -0
  61. package/dist/core/theme-editor/index.d.ts +1 -1
  62. package/dist/createStackedChart-DqcLCFGS.js +1338 -0
  63. package/dist/createStackedChart-DqcLCFGS.js.map +1 -0
  64. package/dist/examples/PluginDemonstration.d.ts +1 -1
  65. package/dist/hooks-DH-3bewj.js +69 -0
  66. package/dist/hooks-DH-3bewj.js.map +1 -0
  67. package/dist/{index-BBpJwOct.js → index-0InEyj0q.js} +119 -121
  68. package/dist/index-0InEyj0q.js.map +1 -0
  69. package/dist/{index-qunX30Xu.js → index-B7PTX94B.js} +2133 -2133
  70. package/dist/index-B7PTX94B.js.map +1 -0
  71. package/dist/{index-BMiZoKmm.js → index-BgrvqltV.js} +67 -67
  72. package/dist/index-BgrvqltV.js.map +1 -0
  73. package/dist/{index-DoYxf1cV.js → index-CWxIHdwX.js} +38 -98
  74. package/dist/index-CWxIHdwX.js.map +1 -0
  75. package/dist/index-CaXWSOTk.js.map +1 -1
  76. package/dist/{mockDatafeed-927foCM4.js → index-Cv6ZDLWf.js} +227 -217
  77. package/dist/index-Cv6ZDLWf.js.map +1 -0
  78. package/dist/index-Dag88bW4.js.map +1 -1
  79. package/dist/index-qhscKTDy.js.map +1 -1
  80. package/dist/index.core.d.ts +9 -7
  81. package/dist/index.d.ts +2 -15
  82. package/dist/indicators--eJGmVox.js.map +1 -1
  83. package/dist/optionsSync-QUiN4Inw.js +119 -0
  84. package/dist/optionsSync-QUiN4Inw.js.map +1 -0
  85. package/dist/plugins/3d/index.d.ts +2 -2
  86. package/dist/plugins/3d.d.ts +2 -2
  87. package/dist/plugins/3d.js +3 -1
  88. package/dist/plugins/3d.js.map +1 -1
  89. package/dist/plugins/analysis/index.d.ts +1 -1
  90. package/dist/plugins/analysis/indicators.d.ts +1 -1
  91. package/dist/plugins/analysis.d.ts +2 -2
  92. package/dist/plugins/analysis.js +2 -2
  93. package/dist/plugins/analysis.js.map +1 -1
  94. package/dist/plugins/annotations/index.d.ts +1 -1
  95. package/dist/plugins/annotations.d.ts +2 -2
  96. package/dist/plugins/annotations.js.map +1 -1
  97. package/dist/plugins/anomaly-detection.js +1 -1
  98. package/dist/plugins/anomaly-detection.js.map +1 -1
  99. package/dist/plugins/broken-axis.d.ts +2 -2
  100. package/dist/plugins/builtins/crosshair/CrosshairPlugin.d.ts +1 -1
  101. package/dist/plugins/builtins/index.d.ts +1 -1
  102. package/dist/plugins/caching.d.ts +2 -2
  103. package/dist/plugins/clipboard/index.d.ts +2 -2
  104. package/dist/plugins/clipboard.d.ts +2 -2
  105. package/dist/plugins/clipboard.js.map +1 -1
  106. package/dist/plugins/context-menu/index.d.ts +1 -1
  107. package/dist/plugins/context-menu.d.ts +2 -2
  108. package/dist/plugins/context-menu.js +1 -1
  109. package/dist/plugins/context-menu.js.map +1 -1
  110. package/dist/plugins/createPlugin.d.ts +8 -0
  111. package/dist/plugins/data-export/index.d.ts +1 -1
  112. package/dist/plugins/data-export.d.ts +2 -2
  113. package/dist/plugins/data-export.js +2 -2
  114. package/dist/plugins/data-export.js.map +1 -1
  115. package/dist/plugins/data-transform.d.ts +2 -2
  116. package/dist/plugins/data-transform.js +19 -19
  117. package/dist/plugins/data-transform.js.map +1 -1
  118. package/dist/plugins/debug/index.d.ts +2 -2
  119. package/dist/plugins/debug.d.ts +2 -2
  120. package/dist/plugins/debug.js +33 -33
  121. package/dist/plugins/debug.js.map +1 -1
  122. package/dist/plugins/forecasting/index.d.ts +1 -1
  123. package/dist/plugins/forecasting.js.map +1 -1
  124. package/dist/plugins/gpu/index.d.ts +2 -2
  125. package/dist/plugins/gpu.d.ts +2 -2
  126. package/dist/plugins/gpu.js +2033 -209
  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 +286 -23
  131. package/dist/plugins/i18n.js.map +1 -1
  132. package/dist/plugins/index.d.ts +1 -1
  133. package/dist/plugins/keyboard.d.ts +2 -2
  134. package/dist/plugins/keyboard.js +65 -5
  135. package/dist/plugins/keyboard.js.map +1 -1
  136. package/dist/plugins/latex.js +766 -207
  137. package/dist/plugins/latex.js.map +1 -1
  138. package/dist/plugins/lazy-load.d.ts +2 -2
  139. package/dist/plugins/loading/index.d.ts +2 -3
  140. package/dist/plugins/loading.d.ts +2 -2
  141. package/dist/plugins/loading.js +3 -4
  142. package/dist/plugins/ml-integration.d.ts +2 -2
  143. package/dist/plugins/ml-integration.js +5 -5
  144. package/dist/plugins/ml-integration.js.map +1 -1
  145. package/dist/plugins/offscreen.d.ts +2 -2
  146. package/dist/plugins/offscreen.js +11 -10
  147. package/dist/plugins/offscreen.js.map +1 -1
  148. package/dist/plugins/pattern-recognition.d.ts +2 -2
  149. package/dist/plugins/pattern-recognition.js +1 -1
  150. package/dist/plugins/pattern-recognition.js.map +1 -1
  151. package/dist/plugins/radar.d.ts +2 -2
  152. package/dist/plugins/regression.d.ts +2 -2
  153. package/dist/plugins/regression.js +255 -257
  154. package/dist/plugins/regression.js.map +1 -1
  155. package/dist/plugins/roi.js +9 -9
  156. package/dist/plugins/roi.js.map +1 -1
  157. package/dist/plugins/snapshot/index.d.ts +1 -1
  158. package/dist/plugins/snapshot/types.d.ts +1 -1
  159. package/dist/plugins/snapshot.d.ts +2 -2
  160. package/dist/plugins/snapshot.js.map +1 -1
  161. package/dist/plugins/streaming/index.d.ts +2 -2
  162. package/dist/plugins/streaming.d.ts +2 -2
  163. package/dist/plugins/streaming.js +1 -1
  164. package/dist/plugins/sync/index.d.ts +3 -2
  165. package/dist/plugins/sync.d.ts +2 -2
  166. package/dist/plugins/sync.js.map +1 -1
  167. package/dist/plugins/theme-editor/index.d.ts +1 -1
  168. package/dist/plugins/theme-editor.d.ts +2 -2
  169. package/dist/plugins/tools/index.d.ts +1 -1
  170. package/dist/plugins/tools/tooltip/index.d.ts +1 -1
  171. package/dist/plugins/tools.d.ts +2 -2
  172. package/dist/plugins/tools.js +1 -1
  173. package/dist/plugins/types.d.ts +1 -1
  174. package/dist/plugins/video-recorder.d.ts +2 -2
  175. package/dist/plugins/virtualization.d.ts +2 -2
  176. package/dist/plugins/virtualization.js +1 -1
  177. package/dist/pool-DZ8shSqv.js +109 -0
  178. package/dist/pool-DZ8shSqv.js.map +1 -0
  179. package/dist/react/StackedPlot.d.ts +31 -0
  180. package/dist/react/VeloPlot.d.ts +29 -0
  181. package/dist/react/index.d.ts +25 -3
  182. package/dist/react/useChartSync.d.ts +8 -0
  183. package/dist/react/useIndicator.d.ts +12 -0
  184. package/dist/react/useVeloPlot.d.ts +19 -0
  185. package/dist/react.js +325 -24
  186. package/dist/react.js.map +1 -1
  187. package/dist/renderer/NativeWebGLRenderer.d.ts +2 -1
  188. package/dist/renderer/native/NativeWebGLRenderer.d.ts +5 -1
  189. package/dist/renderer/native/draw.d.ts +2 -47
  190. package/dist/renderer/native/drawCore.d.ts +27 -0
  191. package/dist/renderer/native/drawExtended.d.ts +29 -0
  192. package/dist/renderer/native/frameRenderExtended.d.ts +1 -0
  193. package/dist/renderer/native/frameRenderRegistry.d.ts +27 -0
  194. package/dist/renderer/native/programFactoryCore.d.ts +6 -0
  195. package/dist/renderer/native/programFactoryExtended.d.ts +4 -0
  196. package/dist/renderer/native/utils.d.ts +3 -29
  197. package/dist/renderer/native/utilsCore.d.ts +14 -0
  198. package/dist/renderer/native/utilsExtended.d.ts +17 -0
  199. package/dist/renderer/overlaySeriesExtended.d.ts +1 -0
  200. package/dist/renderer/registerExtendedSeries.d.ts +1 -0
  201. package/dist/renderer/registerWebGPU.d.ts +2 -0
  202. package/dist/renderer/seriesBufferExtended.d.ts +4 -0
  203. package/dist/scientific/index.d.ts +44 -0
  204. package/dist/scientific/registerScientific.d.ts +1 -0
  205. package/dist/scientific.d.ts +1 -0
  206. package/dist/scientific.js +91 -0
  207. package/dist/scientific.js.map +1 -0
  208. package/dist/solid/VeloPlot.d.ts +16 -0
  209. package/dist/solid/index.d.ts +13 -0
  210. package/dist/solid/useChartSync.d.ts +6 -0
  211. package/dist/solid/useIndicator.d.ts +11 -0
  212. package/dist/solid/useStackedPlot.d.ts +14 -0
  213. package/dist/solid/useVeloPlot.d.ts +18 -0
  214. package/dist/solid.d.ts +1 -0
  215. package/dist/solid.js +169 -0
  216. package/dist/solid.js.map +1 -0
  217. package/dist/stackedSync-tnrunZMt.js +100 -0
  218. package/dist/stackedSync-tnrunZMt.js.map +1 -0
  219. package/dist/svelte/StackedPlot.svelte +29 -0
  220. package/dist/svelte/StackedPlot.test.ts +114 -0
  221. package/dist/svelte/VeloPlot.svelte +44 -0
  222. package/dist/svelte/VeloPlot.test.ts +105 -0
  223. package/dist/svelte/index.d.ts +11 -0
  224. package/dist/svelte/index.test.ts +20 -0
  225. package/dist/svelte/index.ts +15 -0
  226. package/dist/svelte/useChartSync.d.ts +8 -0
  227. package/dist/svelte/useChartSync.test.ts +49 -0
  228. package/dist/svelte/useChartSync.ts +29 -0
  229. package/dist/svelte/useIndicator.d.ts +13 -0
  230. package/dist/svelte/useIndicator.test.ts +67 -0
  231. package/dist/svelte/useIndicator.ts +43 -0
  232. package/dist/svelte/useStackedPlot.d.ts +16 -0
  233. package/dist/svelte/useStackedPlot.test.ts +76 -0
  234. package/dist/svelte/useStackedPlot.ts +54 -0
  235. package/dist/svelte/useVeloPlot.d.ts +21 -0
  236. package/dist/svelte/useVeloPlot.test.ts +100 -0
  237. package/dist/svelte/useVeloPlot.ts +81 -0
  238. package/dist/svelte.d.ts +1 -0
  239. package/dist/svelte.js +140 -0
  240. package/dist/svelte.js.map +1 -0
  241. package/dist/testing/index.d.ts +1 -1
  242. package/dist/theme/index.d.ts +2 -1
  243. package/dist/trading/index.d.ts +1 -4
  244. package/dist/trading/registerTrading.d.ts +3 -0
  245. package/dist/trading.js +42 -42
  246. package/dist/types.d.ts +4 -4
  247. package/dist/{utils-BK5UUXxj.js → utils-Dx0h0bgQ.js} +9 -9
  248. package/dist/{utils-BK5UUXxj.js.map → utils-Dx0h0bgQ.js.map} +1 -1
  249. package/dist/velo-plot.full.js +2216 -1346
  250. package/dist/velo-plot.full.js.map +1 -1
  251. package/dist/velo-plot.js +33 -28
  252. package/dist/velo-plot.js.map +1 -1
  253. package/dist/vue/StackedPlot.vue.d.ts +48 -0
  254. package/dist/vue/VeloPlot.vue.d.ts +64 -0
  255. package/dist/vue/index.d.ts +250 -0
  256. package/dist/vue/useChartSync.d.ts +52 -0
  257. package/dist/vue/useIndicator.d.ts +23 -0
  258. package/dist/vue/useStackedPlot.d.ts +15 -0
  259. package/dist/vue/useVeloPlot.d.ts +20 -0
  260. package/dist/vue.d.ts +1 -0
  261. package/dist/vue.js +309 -0
  262. package/dist/vue.js.map +1 -0
  263. package/dist/workers/indicatorsAsync.d.ts +2 -0
  264. package/dist/workers/pool.d.ts +9 -0
  265. package/package.json +96 -10
  266. package/dist/ChartCore-ivzLqxVb.js +0 -8350
  267. package/dist/ChartCore-ivzLqxVb.js.map +0 -1
  268. package/dist/SciPlot-CEU4ApgD.js +0 -463
  269. package/dist/SciPlot-CEU4ApgD.js.map +0 -1
  270. package/dist/createStackedChart-DxNW0VkF.js +0 -705
  271. package/dist/createStackedChart-DxNW0VkF.js.map +0 -1
  272. package/dist/gpuRenderer-BpaMYz-k.js +0 -1848
  273. package/dist/gpuRenderer-BpaMYz-k.js.map +0 -1
  274. package/dist/index-BBpJwOct.js.map +0 -1
  275. package/dist/index-BMiZoKmm.js.map +0 -1
  276. package/dist/index-DoYxf1cV.js.map +0 -1
  277. package/dist/index-qunX30Xu.js.map +0 -1
  278. package/dist/index-x4stH3jD.js +0 -282
  279. package/dist/index-x4stH3jD.js.map +0 -1
  280. package/dist/index.core-COREBDNq.js.map +0 -1
  281. package/dist/mockDatafeed-927foCM4.js.map +0 -1
  282. package/dist/pool-15HMCNv8.js +0 -88
  283. package/dist/pool-15HMCNv8.js.map +0 -1
  284. package/dist/react/SciPlot.d.ts +0 -60
  285. package/dist/react/useSciPlot.d.ts +0 -56
  286. package/dist/symbols-DT0eLlpW.js +0 -568
  287. package/dist/symbols-DT0eLlpW.js.map +0 -1
package/dist/velo-plot.js CHANGED
@@ -1,32 +1,37 @@
1
- import { A as r, D as s, l as t, f as n, L as i, j as g, u as l, N as o, a5 as c, S as E, c as m, N as u, a4 as T, v as A, B as N, k as f, o as L, F as P, y as d } from "./ChartCore-ivzLqxVb.js";
2
- import { E as h } from "./axisFormat-CzumxpCL.js";
3
- import { h as C, f as I, c as M, d as R, g as _, r as v } from "./index.core-COREBDNq.js";
1
+ import { E as g } from "./axisFormat-Sz4WIJfQ.js";
2
+ import { D as o, e as l, d as u, L as E, a as f, N as m, P, S as p, c as T, N as d, h as L, b as x, f as N, g as R, p as S } from "./ChartCore-AnR_3Xkb.js";
3
+ import { c as C, d as H, g as M, r as b } from "./PluginRegistry-CzMHebYP.js";
4
+ function t(e) {
5
+ return e;
6
+ }
7
+ function s(e, a) {
8
+ return (r) => ({
9
+ ...a(r),
10
+ manifest: e
11
+ });
12
+ }
4
13
  export {
5
- r as AnimationEngine,
6
- s as DARK_THEME,
7
- t as DEFAULT_ANIMATION_CONFIG,
8
- n as DEFAULT_THEME,
9
- h as EventEmitter,
10
- i as LIGHT_THEME,
11
- g as LinearScale,
12
- l as LogScale,
13
- o as NativeWebGLRenderer,
14
- c as PluginManagerImpl,
15
- E as Series,
16
- m as createChart,
17
- C as createConfigurablePlugin,
18
- u as createNativeRenderer,
19
- I as createPlugin,
20
- T as createPluginContext,
21
- M as createRenderer,
22
- A as createScale,
14
+ o as DARK_THEME,
15
+ l as DEFAULT_THEME,
16
+ g as EventEmitter,
17
+ u as LIGHT_THEME,
18
+ E as LinearScale,
19
+ f as LogScale,
20
+ m as NativeWebGLRenderer,
21
+ P as PluginManagerImpl,
22
+ p as Series,
23
+ T as createChart,
24
+ s as createConfigurablePlugin,
25
+ d as createNativeRenderer,
26
+ t as createPlugin,
27
+ L as createPluginContext,
28
+ C as createRenderer,
29
+ x as createScale,
23
30
  N as createTheme,
24
- R as definePlugin,
25
- f as easings,
26
- _ as getPluginRegistry,
27
- L as getSharedAnimationEngine,
28
- P as getThemeByName,
29
- d as parseColor,
30
- v as registerPlugin
31
+ H as definePlugin,
32
+ M as getPluginRegistry,
33
+ R as getThemeByName,
34
+ S as parseColor,
35
+ b as registerPlugin
31
36
  };
32
37
  //# sourceMappingURL=velo-plot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"velo-plot.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"velo-plot.js","sources":["../src/plugins/createPlugin.ts"],"sourcesContent":["import type { ChartPlugin, PluginFactory, PluginManifest } from \"./types\";\n\nexport function createPlugin<TConfig = void, TApi extends Record<string, unknown> = {}>(\n definition: ChartPlugin<TConfig> & { api?: TApi },\n): ChartPlugin<TConfig> & { api: TApi } {\n return definition as ChartPlugin<TConfig> & { api: TApi };\n}\n\nexport function createConfigurablePlugin<TConfig = void>(\n manifest: PluginManifest,\n factory: (config?: TConfig) => Omit<ChartPlugin<TConfig>, \"manifest\">,\n): PluginFactory<TConfig> {\n return (config?: TConfig) => ({\n ...factory(config),\n manifest,\n });\n}\n"],"names":["createPlugin","definition","createConfigurablePlugin","manifest","factory","config"],"mappings":";;;AAEO,SAASA,EACdC,GACsC;AACtC,SAAOA;AACT;AAEO,SAASC,EACdC,GACAC,GACwB;AACxB,SAAO,CAACC,OAAsB;AAAA,IAC5B,GAAGD,EAAQC,CAAM;AAAA,IACjB,UAAAF;AAAA,EAAA;AAEJ;"}
@@ -0,0 +1,48 @@
1
+ import { UseStackedPlotOptions } from './useStackedPlot';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UseStackedPlotOptions & {
4
+ width?: number | string;
5
+ height?: number | string;
6
+ class?: string;
7
+ ariaLabel?: string;
8
+ }>, {
9
+ width: string;
10
+ height: number;
11
+ }>>, {
12
+ getStack: () => import('..').StackedChart | null;
13
+ fitAll: (opts?: {
14
+ x?: import('..').Range;
15
+ padding?: number;
16
+ }) => void | undefined;
17
+ resetAll: () => void | undefined;
18
+ getBounds: () => import('..').Bounds | null;
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UseStackedPlotOptions & {
20
+ width?: number | string;
21
+ height?: number | string;
22
+ class?: string;
23
+ ariaLabel?: string;
24
+ }>, {
25
+ width: string;
26
+ height: number;
27
+ }>>> & Readonly<{}>, {
28
+ width: number | string;
29
+ height: number | string;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
+ export default _default;
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToRuntimeProps<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: import('vue').PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
41
+ type __VLS_WithDefaults<P, D> = {
42
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
+ default: D[K];
44
+ }> : P[K];
45
+ };
46
+ type __VLS_Prettify<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
@@ -0,0 +1,64 @@
1
+ import { UseVeloPlotOptions } from './useVeloPlot';
2
+ import { VeloPlotSeries } from '../bindings/shared';
3
+ import { Bounds, CursorOptions, ZoomOptions } from '../types';
4
+
5
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UseVeloPlotOptions & {
6
+ series?: VeloPlotSeries[];
7
+ zoom?: ZoomOptions;
8
+ width?: number | string;
9
+ height?: number | string;
10
+ class?: string;
11
+ cursor?: CursorOptions;
12
+ ariaLabel?: string;
13
+ keyboardNav?: boolean;
14
+ }>, {
15
+ series: () => never[];
16
+ width: string;
17
+ height: number;
18
+ keyboardNav: boolean;
19
+ }>>, {
20
+ getChart: () => import('..').Chart | null;
21
+ resetZoom: () => void;
22
+ getBounds: () => Bounds | null;
23
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ zoomChange: (bounds: Bounds) => void;
25
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UseVeloPlotOptions & {
26
+ series?: VeloPlotSeries[];
27
+ zoom?: ZoomOptions;
28
+ width?: number | string;
29
+ height?: number | string;
30
+ class?: string;
31
+ cursor?: CursorOptions;
32
+ ariaLabel?: string;
33
+ keyboardNav?: boolean;
34
+ }>, {
35
+ series: () => never[];
36
+ width: string;
37
+ height: number;
38
+ keyboardNav: boolean;
39
+ }>>> & Readonly<{
40
+ onZoomChange?: ((bounds: Bounds) => any) | undefined;
41
+ }>, {
42
+ width: number | string;
43
+ height: number | string;
44
+ series: VeloPlotSeries[];
45
+ keyboardNav: boolean;
46
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
+ export default _default;
48
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
+ type __VLS_TypePropsToRuntimeProps<T> = {
50
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
51
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
52
+ } : {
53
+ type: import('vue').PropType<T[K]>;
54
+ required: true;
55
+ };
56
+ };
57
+ type __VLS_WithDefaults<P, D> = {
58
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
59
+ default: D[K];
60
+ }> : P[K];
61
+ };
62
+ type __VLS_Prettify<T> = {
63
+ [K in keyof T]: T[K];
64
+ } & {};
@@ -0,0 +1,250 @@
1
+ import { useVeloPlot as useVeloPlotImpl } from './useVeloPlot';
2
+ export { default as VeloPlot } from './VeloPlot.vue';
3
+ export { default as StackedPlot } from './StackedPlot.vue';
4
+ export { useVeloPlot, type UseVeloPlotOptions, type UseVeloPlotReturn } from './useVeloPlot';
5
+ export { useStackedPlot, type UseStackedPlotOptions } from './useStackedPlot';
6
+ export { useIndicator } from './useIndicator';
7
+ export { useChartSync, useChartGroup } from './useChartSync';
8
+ /** @deprecated Use `VeloPlot` instead. **Removed in v4.0.** */
9
+ export declare const SciPlot: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
10
+ zoom: {
11
+ type: import('vue').PropType<import('..').ZoomOptions>;
12
+ };
13
+ xAxis: {
14
+ type: import('vue').PropType<import('..').AxisOptions>;
15
+ };
16
+ yAxis: {
17
+ type: import('vue').PropType<import('..').AxisOptions | import('..').AxisOptions[]>;
18
+ };
19
+ cursor: {
20
+ type: import('vue').PropType<import('..').CursorOptions>;
21
+ };
22
+ toolbar: {
23
+ type: import('vue').PropType<import('../types').ToolbarOptions>;
24
+ };
25
+ id: {
26
+ type: import('vue').PropType<string>;
27
+ };
28
+ width: {
29
+ type: import('vue').PropType<string | number>;
30
+ default: string;
31
+ };
32
+ tooltip: {
33
+ type: import('vue').PropType<import('..').TooltipOptions>;
34
+ };
35
+ theme: {
36
+ type: import('vue').PropType<string | object>;
37
+ };
38
+ loading: {
39
+ type: import('vue').PropType<boolean | import('..').PluginLoadingConfig>;
40
+ };
41
+ devicePixelRatio: {
42
+ type: import('vue').PropType<number>;
43
+ };
44
+ background: {
45
+ type: import('vue').PropType<string>;
46
+ };
47
+ colorScheme: {
48
+ type: import('vue').PropType<string>;
49
+ };
50
+ height: {
51
+ type: import('vue').PropType<string | number>;
52
+ default: number;
53
+ };
54
+ series: {
55
+ type: import('vue').PropType<import('..').VeloPlotSeries[]>;
56
+ default: () => never[];
57
+ };
58
+ renderer: {
59
+ type: import('vue').PropType<"webgl" | "webgpu">;
60
+ };
61
+ showLegend: {
62
+ type: import('vue').PropType<boolean>;
63
+ };
64
+ legendPosition: {
65
+ type: import('vue').PropType<{
66
+ x: number;
67
+ y: number;
68
+ }>;
69
+ };
70
+ showControls: {
71
+ type: import('vue').PropType<boolean>;
72
+ };
73
+ autoScroll: {
74
+ type: import('vue').PropType<boolean>;
75
+ };
76
+ showStatistics: {
77
+ type: import('vue').PropType<boolean>;
78
+ };
79
+ animations: {
80
+ type: import('vue').PropType<boolean | import('..').ChartAnimationConfig>;
81
+ };
82
+ responsive: {
83
+ type: import('vue').PropType<(boolean | import('../core').ResponsiveConfig) & (boolean | {
84
+ reducedMotion?: boolean | "auto";
85
+ })>;
86
+ };
87
+ plugins: {
88
+ type: import('vue').PropType<import('..').ChartPlugin<unknown>[]>;
89
+ };
90
+ layout: {
91
+ type: import('vue').PropType<import('..').LayoutOptions>;
92
+ };
93
+ readOnly: {
94
+ type: import('vue').PropType<boolean>;
95
+ };
96
+ debug: {
97
+ type: import('vue').PropType<boolean | import('..').DebugOverlayOptions>;
98
+ };
99
+ locale: {
100
+ type: import('vue').PropType<string | import('..').LocaleConfig>;
101
+ };
102
+ keyBindings: {
103
+ type: import('vue').PropType<boolean | import('..').KeyBinding[]>;
104
+ };
105
+ clipboard: {
106
+ type: import('vue').PropType<boolean | import('..').ClipboardOptions>;
107
+ };
108
+ class: {
109
+ type: import('vue').PropType<string>;
110
+ };
111
+ ariaLabel: {
112
+ type: import('vue').PropType<string>;
113
+ };
114
+ autoResize: {
115
+ type: import('vue').PropType<boolean>;
116
+ };
117
+ keyboardNav: {
118
+ type: import('vue').PropType<boolean>;
119
+ default: boolean;
120
+ };
121
+ }>, {
122
+ getChart: () => import('..').Chart | null;
123
+ resetZoom: () => void;
124
+ getBounds: () => import('..').Bounds | null;
125
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
126
+ zoomChange: (bounds: import('..').Bounds) => void;
127
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
128
+ zoom: {
129
+ type: import('vue').PropType<import('..').ZoomOptions>;
130
+ };
131
+ xAxis: {
132
+ type: import('vue').PropType<import('..').AxisOptions>;
133
+ };
134
+ yAxis: {
135
+ type: import('vue').PropType<import('..').AxisOptions | import('..').AxisOptions[]>;
136
+ };
137
+ cursor: {
138
+ type: import('vue').PropType<import('..').CursorOptions>;
139
+ };
140
+ toolbar: {
141
+ type: import('vue').PropType<import('../types').ToolbarOptions>;
142
+ };
143
+ id: {
144
+ type: import('vue').PropType<string>;
145
+ };
146
+ width: {
147
+ type: import('vue').PropType<string | number>;
148
+ default: string;
149
+ };
150
+ tooltip: {
151
+ type: import('vue').PropType<import('..').TooltipOptions>;
152
+ };
153
+ theme: {
154
+ type: import('vue').PropType<string | object>;
155
+ };
156
+ loading: {
157
+ type: import('vue').PropType<boolean | import('..').PluginLoadingConfig>;
158
+ };
159
+ devicePixelRatio: {
160
+ type: import('vue').PropType<number>;
161
+ };
162
+ background: {
163
+ type: import('vue').PropType<string>;
164
+ };
165
+ colorScheme: {
166
+ type: import('vue').PropType<string>;
167
+ };
168
+ height: {
169
+ type: import('vue').PropType<string | number>;
170
+ default: number;
171
+ };
172
+ series: {
173
+ type: import('vue').PropType<import('..').VeloPlotSeries[]>;
174
+ default: () => never[];
175
+ };
176
+ renderer: {
177
+ type: import('vue').PropType<"webgl" | "webgpu">;
178
+ };
179
+ showLegend: {
180
+ type: import('vue').PropType<boolean>;
181
+ };
182
+ legendPosition: {
183
+ type: import('vue').PropType<{
184
+ x: number;
185
+ y: number;
186
+ }>;
187
+ };
188
+ showControls: {
189
+ type: import('vue').PropType<boolean>;
190
+ };
191
+ autoScroll: {
192
+ type: import('vue').PropType<boolean>;
193
+ };
194
+ showStatistics: {
195
+ type: import('vue').PropType<boolean>;
196
+ };
197
+ animations: {
198
+ type: import('vue').PropType<boolean | import('..').ChartAnimationConfig>;
199
+ };
200
+ responsive: {
201
+ type: import('vue').PropType<(boolean | import('../core').ResponsiveConfig) & (boolean | {
202
+ reducedMotion?: boolean | "auto";
203
+ })>;
204
+ };
205
+ plugins: {
206
+ type: import('vue').PropType<import('..').ChartPlugin<unknown>[]>;
207
+ };
208
+ layout: {
209
+ type: import('vue').PropType<import('..').LayoutOptions>;
210
+ };
211
+ readOnly: {
212
+ type: import('vue').PropType<boolean>;
213
+ };
214
+ debug: {
215
+ type: import('vue').PropType<boolean | import('..').DebugOverlayOptions>;
216
+ };
217
+ locale: {
218
+ type: import('vue').PropType<string | import('..').LocaleConfig>;
219
+ };
220
+ keyBindings: {
221
+ type: import('vue').PropType<boolean | import('..').KeyBinding[]>;
222
+ };
223
+ clipboard: {
224
+ type: import('vue').PropType<boolean | import('..').ClipboardOptions>;
225
+ };
226
+ class: {
227
+ type: import('vue').PropType<string>;
228
+ };
229
+ ariaLabel: {
230
+ type: import('vue').PropType<string>;
231
+ };
232
+ autoResize: {
233
+ type: import('vue').PropType<boolean>;
234
+ };
235
+ keyboardNav: {
236
+ type: import('vue').PropType<boolean>;
237
+ default: boolean;
238
+ };
239
+ }>> & Readonly<{
240
+ onZoomChange?: ((bounds: import('..').Bounds) => any) | undefined;
241
+ }>, {
242
+ width: number | string;
243
+ height: number | string;
244
+ series: import('..').VeloPlotSeries[];
245
+ keyboardNav: boolean;
246
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
247
+ /** @deprecated Use `useVeloPlot` instead. **Removed in v4.0.** */
248
+ export declare const useSciPlot: typeof useVeloPlotImpl;
249
+ /** @deprecated Use `useVeloPlot` instead. **Removed in v4.0.** */
250
+ export declare const useSciChart: typeof useVeloPlotImpl;
@@ -0,0 +1,52 @@
1
+ import { ChartLike, SyncOptions, ChartGroup } from '../core/sync';
2
+
3
+ export declare function useChartSync(charts: () => ChartLike[], options?: SyncOptions): {
4
+ group: import('vue').Ref<{
5
+ add: (chart: ChartLike) => ChartGroup;
6
+ addAll: (...charts: ChartLike[]) => ChartGroup;
7
+ remove: (chart: ChartLike) => ChartGroup;
8
+ getCharts: () => ChartLike[];
9
+ size: () => number;
10
+ has: (chart: ChartLike) => boolean;
11
+ syncAxis: (axis: import('..').SyncAxis) => ChartGroup;
12
+ syncZoom: (enabled: boolean) => ChartGroup;
13
+ syncPan: (enabled: boolean) => ChartGroup;
14
+ syncCursor: (enabled: boolean) => ChartGroup;
15
+ syncSelection: (enabled: boolean) => ChartGroup;
16
+ updateOptions: (partial: Partial<SyncOptions>) => ChartGroup;
17
+ getOptions: () => Readonly<SyncOptions>;
18
+ syncTo: (bounds: Partial<import('..').Bounds>, excludeChartId?: string) => void;
19
+ resetAll: () => void;
20
+ fitAll: (options?: {
21
+ x?: import('..').Range;
22
+ padding?: number;
23
+ }) => void;
24
+ batch: <T>(fn: () => T) => T;
25
+ clearAllSelections: () => void;
26
+ destroy: () => void;
27
+ } | null, ChartGroup | {
28
+ add: (chart: ChartLike) => ChartGroup;
29
+ addAll: (...charts: ChartLike[]) => ChartGroup;
30
+ remove: (chart: ChartLike) => ChartGroup;
31
+ getCharts: () => ChartLike[];
32
+ size: () => number;
33
+ has: (chart: ChartLike) => boolean;
34
+ syncAxis: (axis: import('..').SyncAxis) => ChartGroup;
35
+ syncZoom: (enabled: boolean) => ChartGroup;
36
+ syncPan: (enabled: boolean) => ChartGroup;
37
+ syncCursor: (enabled: boolean) => ChartGroup;
38
+ syncSelection: (enabled: boolean) => ChartGroup;
39
+ updateOptions: (partial: Partial<SyncOptions>) => ChartGroup;
40
+ getOptions: () => Readonly<SyncOptions>;
41
+ syncTo: (bounds: Partial<import('..').Bounds>, excludeChartId?: string) => void;
42
+ resetAll: () => void;
43
+ fitAll: (options?: {
44
+ x?: import('..').Range;
45
+ padding?: number;
46
+ }) => void;
47
+ batch: <T>(fn: () => T) => T;
48
+ clearAllSelections: () => void;
49
+ destroy: () => void;
50
+ } | null>;
51
+ };
52
+ export declare const useChartGroup: typeof useChartSync;
@@ -0,0 +1,23 @@
1
+ import { AddIndicatorOptions, AddIndicatorResult } from '../core/indicator/addIndicator';
2
+ import { IndicatorPresetName } from '../core/indicator/indicatorPresets';
3
+ import { IndicatorHost } from '../bindings/shared';
4
+
5
+ export declare function useIndicator(host: () => IndicatorHost, preset: IndicatorPresetName, options?: AddIndicatorOptions): {
6
+ result: import('vue').Ref<{
7
+ id: string;
8
+ preset: IndicatorPresetName;
9
+ placement: "overlay" | "oscillator";
10
+ seriesIds: string[];
11
+ paneId?: string | undefined;
12
+ } | null, (AddIndicatorResult & {
13
+ paneId?: string;
14
+ }) | {
15
+ id: string;
16
+ preset: IndicatorPresetName;
17
+ placement: "overlay" | "oscillator";
18
+ seriesIds: string[];
19
+ paneId?: string | undefined;
20
+ } | null>;
21
+ isLoading: import('vue').Ref<boolean, boolean>;
22
+ error: import('vue').Ref<Error | null, Error | null>;
23
+ };
@@ -0,0 +1,15 @@
1
+ import { StackedChart, StackedChartOptions } from '../core/stacked';
2
+ import { Range } from '../types';
3
+
4
+ export interface UseStackedPlotOptions extends Omit<StackedChartOptions, "container"> {
5
+ }
6
+ export declare function useStackedPlot(options: UseStackedPlotOptions): {
7
+ containerRef: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
8
+ stack: import('vue').ShallowRef<StackedChart | null, StackedChart | null>;
9
+ isReady: import('vue').Ref<boolean, boolean>;
10
+ fitAll: (opts?: {
11
+ x?: Range;
12
+ padding?: number;
13
+ }) => void | undefined;
14
+ resetAll: () => void | undefined;
15
+ };
@@ -0,0 +1,20 @@
1
+ import { Ref } from 'vue';
2
+ import { Chart } from '../core/Chart';
3
+ import { SeriesOptions, SeriesUpdateData, ZoomOptions, Bounds } from '../types';
4
+ import { ChartBindingOptions } from '../bindings/shared';
5
+
6
+ export interface UseVeloPlotOptions extends ChartBindingOptions {
7
+ }
8
+ export interface UseVeloPlotReturn {
9
+ containerRef: Ref<HTMLDivElement | null>;
10
+ chart: Ref<Chart | null>;
11
+ isReady: Ref<boolean>;
12
+ error: Ref<Error | null>;
13
+ bounds: Ref<Bounds | null>;
14
+ addSeries: (options: SeriesOptions) => void;
15
+ updateSeries: (id: string, data: SeriesUpdateData) => void;
16
+ removeSeries: (id: string) => void;
17
+ zoom: (options: ZoomOptions) => void;
18
+ resetZoom: () => void;
19
+ }
20
+ export declare function useVeloPlot(options?: UseVeloPlotOptions): UseVeloPlotReturn;
package/dist/vue.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './vue/index'