@idux/charts-core 0.0.3

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.
@@ -0,0 +1,9 @@
1
+ import { type HTMLAttributes, type InjectionKey } from 'vue-demi';
2
+ import { type ChartOption, type AdditionalChartOption } from '../types';
3
+ export interface ChartProps extends ChartOption, AdditionalChartOption {
4
+ }
5
+ export declare const CHART_TOKEN: InjectionKey<ChartProps>;
6
+ export declare const defaultChartProps: ChartProps;
7
+ type IChartProps = Omit<HTMLAttributes, keyof ChartProps> & ChartProps;
8
+ declare const _default: import("vue-demi").DefineComponent<IChartProps, {}, {}, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<IChartProps>>, {}>;
9
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const IxChart: import("vue").DefineComponent<Omit<import("vue").HTMLAttributes, keyof import("./Chart").ChartProps> & import("./Chart").ChartProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Omit<import("vue").HTMLAttributes, keyof import("./Chart").ChartProps> & import("./Chart").ChartProps>>, {}>;
2
+ export { IxChart };
3
+ export { CHART_TOKEN, type ChartProps } from './Chart';
@@ -0,0 +1 @@
1
+ export { useChart } from './useChart';
@@ -0,0 +1,7 @@
1
+ import { type ComputedRef, type ShallowRef } from 'vue-demi';
2
+ import { type EChartsType } from 'echarts/core';
3
+ import { type ChartProps } from '../components';
4
+ export declare function useChart<U extends ChartProps>(options: ComputedRef<U>): {
5
+ containerRef: ShallowRef<HTMLDivElement | undefined>;
6
+ chartRef: ShallowRef<EChartsType | undefined>;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { type ComputedRef, type Ref } from 'vue-demi';
2
+ import { type EChartsType } from 'echarts/core';
3
+ export declare function useResizeObserver(containerRef: Ref<HTMLElement | undefined>, chartRef: Ref<EChartsType | undefined>, mergedAutoResize: ComputedRef<boolean | undefined>): void;
4
+ export type ResizeListener = (entry: ResizeObserverEntry) => void;
5
+ export declare function onResize(el: Element | null | undefined, listener: ResizeListener | undefined, options?: ResizeObserverOptions): void;
6
+ export declare function offResize(el: Element | null | undefined, listener: ResizeListener | undefined): void;
@@ -0,0 +1,5 @@
1
+ export * from './components';
2
+ export * from './composables';
3
+ export * from './themes';
4
+ export * from './types';
5
+ export * from './utils';