velo-plot 2.20.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.
- package/README.md +15 -8
- package/dist/{ChartCore-ivzLqxVb.js → ChartCore-BpzRvN4Y.js} +978 -861
- package/dist/ChartCore-BpzRvN4Y.js.map +1 -0
- package/dist/a11y-Bw6urYpr.js +105 -0
- package/dist/a11y-Bw6urYpr.js.map +1 -0
- package/dist/angular/hooks-entry.d.ts +1 -0
- package/dist/angular/hooks.d.ts +26 -0
- package/dist/angular/index.d.ts +8 -0
- package/dist/angular/velo-plot.component.d.ts +46 -0
- package/dist/angular-hooks.d.ts +1 -0
- package/dist/angular-hooks.js +9 -0
- package/dist/angular-hooks.js.map +1 -0
- package/dist/angular.d.ts +1 -0
- package/dist/angular.js +166 -0
- package/dist/angular.js.map +1 -0
- package/dist/assets/indicator.worker-bv0zC4EX.js.map +1 -1
- package/dist/astro/StackedPlot.astro +19 -0
- package/dist/astro/VeloPlot.astro +23 -0
- package/dist/bindings/shared/a11y.d.ts +26 -0
- package/dist/bindings/shared/chartLifecycle.d.ts +16 -0
- package/dist/bindings/shared/chartSyncBridge.d.ts +8 -0
- package/dist/bindings/shared/dimensions.d.ts +1 -0
- package/dist/bindings/shared/index.d.ts +9 -0
- package/dist/bindings/shared/indicatorBridge.d.ts +11 -0
- package/dist/bindings/shared/optionsSync.d.ts +7 -0
- package/dist/bindings/shared/seriesDiff.d.ts +8 -0
- package/dist/bindings/shared/stackedSync.d.ts +9 -0
- package/dist/bindings/shared/types.d.ts +46 -0
- package/dist/bindings/test-utils/index.d.ts +35 -0
- package/dist/bindings/test-utils/mockLifecycle.d.ts +120 -0
- package/dist/bindings/test-utils/vitestSveltePlugin.d.ts +3 -0
- package/dist/chartSyncBridge-DbWrwtyP.js +57 -0
- package/dist/chartSyncBridge-DbWrwtyP.js.map +1 -0
- package/dist/core/Chart.d.ts +1 -1
- package/dist/core/InteractionManager.d.ts +7 -1
- package/dist/core/OverlayRenderer.d.ts +5 -0
- package/dist/core/annotations/types.d.ts +1 -1
- package/dist/core/chart/ChartCore.d.ts +2 -2
- package/dist/core/chart/types.d.ts +1 -1
- package/dist/core/clipboard/index.d.ts +1 -1
- package/dist/core/debug/index.d.ts +1 -1
- package/dist/core/keybindings/index.d.ts +1 -1
- package/dist/core/loading/index.d.ts +1 -1
- package/dist/core/locale/index.d.ts +1 -1
- package/dist/core/stacked/paneResize.d.ts +3 -0
- package/dist/core/stacked/types.d.ts +10 -0
- package/dist/core/theme-editor/index.d.ts +1 -1
- package/dist/createStackedChart-Dm-YqUT7.js +756 -0
- package/dist/createStackedChart-Dm-YqUT7.js.map +1 -0
- package/dist/examples/PluginDemonstration.d.ts +1 -1
- package/dist/gpuRenderer-BpaMYz-k.js.map +1 -1
- package/dist/hooks-CYPCxoZx.js +69 -0
- package/dist/hooks-CYPCxoZx.js.map +1 -0
- package/dist/{index-BBpJwOct.js → index-0InEyj0q.js} +119 -121
- package/dist/index-0InEyj0q.js.map +1 -0
- package/dist/index-BMiZoKmm.js.map +1 -1
- package/dist/{index-DoYxf1cV.js → index-CWxIHdwX.js} +38 -98
- package/dist/index-CWxIHdwX.js.map +1 -0
- package/dist/index-CaXWSOTk.js.map +1 -1
- package/dist/index-Dag88bW4.js.map +1 -1
- package/dist/index-qhscKTDy.js.map +1 -1
- package/dist/index-qunX30Xu.js.map +1 -1
- package/dist/index-x4stH3jD.js.map +1 -1
- package/dist/{index.core-COREBDNq.js → index.core-BmZe2jRQ.js} +9 -9
- package/dist/index.core-BmZe2jRQ.js.map +1 -0
- package/dist/index.core.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/indicators--eJGmVox.js.map +1 -1
- package/dist/{mockDatafeed-927foCM4.js → mockDatafeed-DHIDPcpX.js} +150 -146
- package/dist/mockDatafeed-DHIDPcpX.js.map +1 -0
- package/dist/optionsSync-QUiN4Inw.js +119 -0
- package/dist/optionsSync-QUiN4Inw.js.map +1 -0
- package/dist/plugins/3d/index.d.ts +2 -2
- package/dist/plugins/3d.d.ts +2 -2
- package/dist/plugins/3d.js.map +1 -1
- package/dist/plugins/analysis/index.d.ts +1 -1
- package/dist/plugins/analysis/indicators.d.ts +1 -1
- package/dist/plugins/analysis.d.ts +2 -2
- package/dist/plugins/analysis.js +2 -2
- package/dist/plugins/analysis.js.map +1 -1
- package/dist/plugins/annotations/index.d.ts +1 -1
- package/dist/plugins/annotations.d.ts +2 -2
- package/dist/plugins/annotations.js.map +1 -1
- package/dist/plugins/anomaly-detection.js +1 -1
- package/dist/plugins/anomaly-detection.js.map +1 -1
- package/dist/plugins/broken-axis.d.ts +2 -2
- package/dist/plugins/builtins/crosshair/CrosshairPlugin.d.ts +1 -1
- package/dist/plugins/builtins/index.d.ts +1 -1
- package/dist/plugins/caching.d.ts +2 -2
- package/dist/plugins/clipboard/index.d.ts +2 -2
- package/dist/plugins/clipboard.d.ts +2 -2
- package/dist/plugins/clipboard.js.map +1 -1
- package/dist/plugins/context-menu/index.d.ts +1 -1
- package/dist/plugins/context-menu.d.ts +2 -2
- package/dist/plugins/context-menu.js +1 -1
- package/dist/plugins/context-menu.js.map +1 -1
- package/dist/plugins/data-export/index.d.ts +1 -1
- package/dist/plugins/data-export.d.ts +2 -2
- package/dist/plugins/data-export.js +2 -2
- package/dist/plugins/data-export.js.map +1 -1
- package/dist/plugins/data-transform.d.ts +2 -2
- package/dist/plugins/data-transform.js +19 -19
- package/dist/plugins/data-transform.js.map +1 -1
- package/dist/plugins/debug/index.d.ts +2 -2
- package/dist/plugins/debug.d.ts +2 -2
- package/dist/plugins/debug.js +2 -2
- package/dist/plugins/debug.js.map +1 -1
- package/dist/plugins/forecasting/index.d.ts +1 -1
- package/dist/plugins/forecasting.js.map +1 -1
- package/dist/plugins/gpu/index.d.ts +2 -2
- package/dist/plugins/gpu.d.ts +2 -2
- package/dist/plugins/gpu.js.map +1 -1
- package/dist/plugins/i18n/index.d.ts +2 -2
- package/dist/plugins/i18n.d.ts +2 -2
- package/dist/plugins/i18n.js.map +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/keyboard.d.ts +2 -2
- package/dist/plugins/keyboard.js +65 -5
- package/dist/plugins/keyboard.js.map +1 -1
- package/dist/plugins/latex.js.map +1 -1
- package/dist/plugins/lazy-load.d.ts +2 -2
- package/dist/plugins/loading/index.d.ts +1 -1
- package/dist/plugins/loading.d.ts +2 -2
- package/dist/plugins/ml-integration.d.ts +2 -2
- package/dist/plugins/ml-integration.js +5 -5
- package/dist/plugins/ml-integration.js.map +1 -1
- package/dist/plugins/offscreen.d.ts +2 -2
- package/dist/plugins/pattern-recognition.d.ts +2 -2
- package/dist/plugins/pattern-recognition.js +1 -1
- package/dist/plugins/pattern-recognition.js.map +1 -1
- package/dist/plugins/radar.d.ts +2 -2
- package/dist/plugins/regression.d.ts +2 -2
- package/dist/plugins/regression.js +1 -1
- package/dist/plugins/regression.js.map +1 -1
- package/dist/plugins/roi.js +9 -9
- package/dist/plugins/roi.js.map +1 -1
- package/dist/plugins/snapshot/index.d.ts +1 -1
- package/dist/plugins/snapshot/types.d.ts +1 -1
- package/dist/plugins/snapshot.d.ts +2 -2
- package/dist/plugins/snapshot.js.map +1 -1
- package/dist/plugins/streaming/index.d.ts +2 -2
- package/dist/plugins/streaming.d.ts +2 -2
- package/dist/plugins/sync/index.d.ts +3 -2
- package/dist/plugins/sync.d.ts +2 -2
- package/dist/plugins/sync.js.map +1 -1
- package/dist/plugins/theme-editor/index.d.ts +1 -1
- package/dist/plugins/theme-editor.d.ts +2 -2
- package/dist/plugins/tools/index.d.ts +1 -1
- package/dist/plugins/tools/tooltip/index.d.ts +1 -1
- package/dist/plugins/tools.d.ts +2 -2
- package/dist/plugins/types.d.ts +1 -1
- package/dist/plugins/video-recorder.d.ts +2 -2
- package/dist/plugins/virtualization.d.ts +2 -2
- package/dist/plugins/virtualization.js +1 -1
- package/dist/pool-DZ8shSqv.js +109 -0
- package/dist/pool-DZ8shSqv.js.map +1 -0
- package/dist/react/StackedPlot.d.ts +31 -0
- package/dist/react/VeloPlot.d.ts +29 -0
- package/dist/react/index.d.ts +25 -3
- package/dist/react/useChartSync.d.ts +8 -0
- package/dist/react/useIndicator.d.ts +12 -0
- package/dist/react/useVeloPlot.d.ts +19 -0
- package/dist/react.js +328 -24
- package/dist/react.js.map +1 -1
- package/dist/scientific/index.d.ts +48 -0
- package/dist/scientific.d.ts +1 -0
- package/dist/scientific.js +91 -0
- package/dist/scientific.js.map +1 -0
- package/dist/solid/VeloPlot.d.ts +16 -0
- package/dist/solid/index.d.ts +13 -0
- package/dist/solid/useChartSync.d.ts +6 -0
- package/dist/solid/useIndicator.d.ts +11 -0
- package/dist/solid/useStackedPlot.d.ts +14 -0
- package/dist/solid/useVeloPlot.d.ts +18 -0
- package/dist/solid.d.ts +1 -0
- package/dist/solid.js +172 -0
- package/dist/solid.js.map +1 -0
- package/dist/stackedSync-tnrunZMt.js +100 -0
- package/dist/stackedSync-tnrunZMt.js.map +1 -0
- package/dist/svelte/StackedPlot.svelte +29 -0
- package/dist/svelte/StackedPlot.test.ts +114 -0
- package/dist/svelte/VeloPlot.svelte +44 -0
- package/dist/svelte/VeloPlot.test.ts +105 -0
- package/dist/svelte/index.d.ts +11 -0
- package/dist/svelte/index.test.ts +20 -0
- package/dist/svelte/index.ts +15 -0
- package/dist/svelte/useChartSync.d.ts +8 -0
- package/dist/svelte/useChartSync.test.ts +49 -0
- package/dist/svelte/useChartSync.ts +29 -0
- package/dist/svelte/useIndicator.d.ts +13 -0
- package/dist/svelte/useIndicator.test.ts +67 -0
- package/dist/svelte/useIndicator.ts +43 -0
- package/dist/svelte/useStackedPlot.d.ts +16 -0
- package/dist/svelte/useStackedPlot.test.ts +76 -0
- package/dist/svelte/useStackedPlot.ts +54 -0
- package/dist/svelte/useVeloPlot.d.ts +21 -0
- package/dist/svelte/useVeloPlot.test.ts +100 -0
- package/dist/svelte/useVeloPlot.ts +81 -0
- package/dist/svelte.d.ts +1 -0
- package/dist/svelte.js +143 -0
- package/dist/svelte.js.map +1 -0
- package/dist/testing/index.d.ts +1 -1
- package/dist/theme/index.d.ts +2 -1
- package/dist/trading.js +6 -6
- package/dist/types.d.ts +1 -1
- package/dist/{utils-BK5UUXxj.js → utils-Dx0h0bgQ.js} +9 -9
- package/dist/{utils-BK5UUXxj.js.map → utils-Dx0h0bgQ.js.map} +1 -1
- package/dist/velo-plot.full.js +452 -443
- package/dist/velo-plot.full.js.map +1 -1
- package/dist/velo-plot.js +15 -15
- package/dist/vue/StackedPlot.vue.d.ts +48 -0
- package/dist/vue/VeloPlot.vue.d.ts +64 -0
- package/dist/vue/index.d.ts +250 -0
- package/dist/vue/useChartSync.d.ts +52 -0
- package/dist/vue/useIndicator.d.ts +23 -0
- package/dist/vue/useStackedPlot.d.ts +15 -0
- package/dist/vue/useVeloPlot.d.ts +20 -0
- package/dist/vue.d.ts +1 -0
- package/dist/vue.js +312 -0
- package/dist/vue.js.map +1 -0
- package/dist/workers/indicatorsAsync.d.ts +2 -0
- package/dist/workers/pool.d.ts +9 -0
- package/package.json +88 -10
- package/dist/ChartCore-ivzLqxVb.js.map +0 -1
- package/dist/SciPlot-CEU4ApgD.js +0 -463
- package/dist/SciPlot-CEU4ApgD.js.map +0 -1
- package/dist/createStackedChart-DxNW0VkF.js +0 -705
- package/dist/createStackedChart-DxNW0VkF.js.map +0 -1
- package/dist/index-BBpJwOct.js.map +0 -1
- package/dist/index-DoYxf1cV.js.map +0 -1
- package/dist/index.core-COREBDNq.js.map +0 -1
- package/dist/mockDatafeed-927foCM4.js.map +0 -1
- package/dist/pool-15HMCNv8.js +0 -88
- package/dist/pool-15HMCNv8.js.map +0 -1
- package/dist/react/SciPlot.d.ts +0 -60
- 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,
|
|
2
|
-
import { E as
|
|
3
|
-
import { h as
|
|
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
|
-
|
|
9
|
+
S as EventEmitter,
|
|
10
10
|
i as LIGHT_THEME,
|
|
11
11
|
g as LinearScale,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
c as LogScale,
|
|
13
|
+
l as NativeWebGLRenderer,
|
|
14
|
+
o as PluginManagerImpl,
|
|
15
15
|
E as Series,
|
|
16
16
|
m as createChart,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
p as createConfigurablePlugin,
|
|
18
|
+
T as createNativeRenderer,
|
|
19
19
|
I as createPlugin,
|
|
20
|
-
|
|
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
|
-
|
|
25
|
+
P as easings,
|
|
26
26
|
_ as getPluginRegistry,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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'
|