UNPKG

@adyen/lume-vue3

Version:

Lume is a Vue data visualization component library, built with Typescript and D3.

36 lines 1.32 kB
import { ComputedRef, PropType, Ref } from 'vue'; import { Colors, type DivergentColors, type Orientation } from '@/types/utils'; import type { Data, DatasetValue, DatasetValueObject, InternalData } from '@/types/dataset'; import type { ContainerSize } from '@/types/size'; import type { Options } from '@/types/options'; export type DataValidator = (value: Data) => boolean; export declare const withBase: (dataValidator?: DataValidator) => { data: { type: PropType<Data<DatasetValue<number>>>; required: boolean; validator: DataValidator; }; labels: { type: PropType<string[]>; default: any; }; color: { type: PropType<Colors | DivergentColors>; default: Colors; }; title: { type: StringConstructor; default: any; }; }; export declare function useBase(data?: Ref<Data | InternalData>, labels?: Ref<Array<string>>, color?: Ref<Colors | DivergentColors>, options?: Ref<Options>, orientation?: Ref<Orientation>): { chartID: string; computedLabels: ComputedRef<number[] | string[]>; containerSize: { width: number; height: number; }; internalData: ComputedRef<InternalData<DatasetValueObject<number>>>; updateSize: (size: ContainerSize) => void; }; //# sourceMappingURL=base.d.ts.map