UNPKG

@oiij/v-charts

Version:

A Vue Composable for VCharts

27 lines (26 loc) 1.19 kB
import { IInitOption, ISpec, VChart } from "@visactor/vchart"; import * as _vueuse_core0 from "@vueuse/core"; import * as vue0 from "vue"; import { ComputedRef, Ref, TemplateRef } 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(templateRef: TemplateRef<HTMLElement>, options?: Ref<ISpec> | ComputedRef<ISpec> | ISpec, darkMode?: Ref<boolean> | ComputedRef<boolean>, initOptions?: IInitOption & { treeShaking?: boolean; }): { templateRef: Readonly<vue0.ShallowRef<HTMLElement | null>>; 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 };