@oiij/v-charts
Version:
A Vue Composable for VCharts
27 lines (26 loc) • 1.14 kB
TypeScript
import { IInitOption, ISpec, VChart } from "@visactor/vchart";
import * as _vueuse_core0 from "@vueuse/core";
import * as vue0 from "vue";
import { ComputedRef, Ref } from "vue";
//#region src/index.d.ts
declare const registerBase: (() => void)[];
declare const registerPolar: (() => void)[];
declare const registerCartesian: (() => void)[];
declare const baseChat: (() => void)[];
declare function register(comps: (() => void)[]): void;
declare function useVCharts(options?: Ref<ISpec> | ComputedRef<ISpec> | ISpec, darkMode?: Ref<boolean> | ComputedRef<boolean>, initOptions?: IInitOption & {
treeShaking?: boolean;
}): {
domRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
vChart: vue0.ShallowRef<VChart | null, VChart | null>;
options: Ref<ISpec | undefined, ISpec | undefined>;
onRender: _vueuse_core0.EventHookOn<VChart>;
onUpdate: _vueuse_core0.EventHookOn<ISpec>;
onResize: _vueuse_core0.EventHookOn<{
width: number;
height: number;
}>;
onDispose: _vueuse_core0.EventHookOn<any>;
};
//#endregion
export { type ISpec, baseChat, register, registerBase, registerCartesian, registerPolar, useVCharts };