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
package/dist/velo-plot.js CHANGED
@@ -1,32 +1,32 @@
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-BhQ4j7f5.js";
2
- import { E as h } from "./axisFormat-SPX-CD5s.js";
3
- import { h as C, f as I, c as M, d as R, g as _, r as v } from "./index.core-fpZ1dYN0.js";
1
+ import { A as r, D as s, z as t, e as n, d as i, L as g, a as c, N as l, a5 as o, S as E, c as m, N as T, a4 as u, b as A, f as N, y as P, C as d, g as f, P as L } from "./ChartCore-BpzRvN4Y.js";
2
+ import { E as S } from "./axisFormat-CzumxpCL.js";
3
+ import { h as p, f as I, c as M, d as R, g as _, r as x } from "./index.core-BmZe2jRQ.js";
4
4
  export {
5
5
  r as AnimationEngine,
6
6
  s as DARK_THEME,
7
7
  t as DEFAULT_ANIMATION_CONFIG,
8
8
  n as DEFAULT_THEME,
9
- h as EventEmitter,
9
+ S as EventEmitter,
10
10
  i as LIGHT_THEME,
11
11
  g as LinearScale,
12
- l as LogScale,
13
- o as NativeWebGLRenderer,
14
- c as PluginManagerImpl,
12
+ c as LogScale,
13
+ l as NativeWebGLRenderer,
14
+ o as PluginManagerImpl,
15
15
  E as Series,
16
16
  m as createChart,
17
- C as createConfigurablePlugin,
18
- u as createNativeRenderer,
17
+ p as createConfigurablePlugin,
18
+ T as createNativeRenderer,
19
19
  I as createPlugin,
20
- T as createPluginContext,
20
+ u as createPluginContext,
21
21
  M as createRenderer,
22
22
  A as createScale,
23
23
  N as createTheme,
24
24
  R as definePlugin,
25
- f as easings,
25
+ P as easings,
26
26
  _ as getPluginRegistry,
27
- L as getSharedAnimationEngine,
28
- P as getThemeByName,
29
- d as parseColor,
30
- v as registerPlugin
27
+ d as getSharedAnimationEngine,
28
+ f as getThemeByName,
29
+ L as parseColor,
30
+ x as registerPlugin
31
31
  };
32
32
  //# sourceMappingURL=velo-plot.js.map
@@ -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<any[]>;
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<any[]>;
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'