import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, ComponentPropsOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, ExtractPropTypes, InjectionKey, MaybeRefOrGetter, PropType, Slot, SlotsType, VNodeProps } from "vue"; import { AxisBreakChangedEvent, DownplayPayload, ECElementEvent, ElementEvent, HighlightPayload, Payload, SelectChangedEvent, SetOptionOpts, init } from "echarts/core"; import { TooltipComponentFormatterCallbackParams } from "echarts"; //#region src/types.d.ts type EventProps = { [K in string & keyof T as `on${Capitalize}`]?: T[K] extends ((...args: infer P) => unknown) ? (...args: P) => any : never; }; type Component> = DefineComponent, Record, Record, ComponentOptionsMixin, ComponentOptionsMixin, Events, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly> & Readonly>, ExtractDefaultPropTypes, Slots>; type Injection = MaybeRefOrGetter; type InitParameters = Parameters; type Theme = NonNullable; type ThemeInjection = Injection; type InitOptions = NonNullable; type InitOptionsInjection = Injection; type UpdateOptions = SetOptionOpts; type UpdateOptionsInjection = Injection; type EChartsType = ReturnType; type SetOptionType = EChartsType["setOption"]; type Option = Parameters[0]; type AutoResize = boolean | { throttle?: number; onResize?: () => void; }; type FontStyle = "normal" | "italic" | "oblique"; type FontWeight = "normal" | "bold" | "bolder" | "lighter" | number; type LoadingOptions = { [key: string]: unknown; text?: string; textColor?: string; fontSize?: number; fontWeight?: FontWeight; fontStyle?: FontStyle; fontFamily?: string; maskColor?: string; showSpinner?: boolean; color?: string; spinnerRadius?: number; lineWidth?: number; zlevel?: number; }; type LoadingOptionsInjection = Injection; type ChartMouseEventName = "click" | "dblclick" | "mouseover" | "mouseout" | "mousemove" | "mousedown" | "mouseup" | "globalout" | "contextmenu"; type MouseEventAlias = "dblClick" | "contextMenu" | "globalOut" | `mouse${Capitalize<"out" | "over" | "up" | "down" | "move">}`; type ElementEventAlias = MouseEventAlias | "mouseWheel" | `drag${Capitalize<"start" | "end" | "enter" | "leave" | "over">}`; type ZRenderEventName = `zr:${ElementEvent["type"] | ElementEventAlias}`; type OtherEventName = "legendselectchanged" | "legendselected" | "legendunselected" | "legendselectall" | "legendinverseselect" | "legendscroll" | "datazoom" | "datarangeselected" | `${"graph" | "geo" | "tree" | "sankey"}roam` | `${"focus" | "unfocus"}nodeadjacency` | "dragnode" | "treeexpandandcollapse" | "timelinechanged" | "timelineplaychanged" | "restore" | "dataviewchanged" | "magictypechanged" | "geoselectchanged" | "geoselected" | "geounselected" | "axisareaselected" | "brush" | "brushend" | "brushselected" | `${"show" | "hide"}tip` | "updateaxispointer" | "globalcursortaken"; type OtherEventAlias = `legend${Capitalize<"selectChanged" | "selected" | "unselected" | "selectAll" | "inverseSelect" | "scroll">}` | `data${Capitalize<"zoom" | "rangeSelected" | "viewChanged">}` | `${"graph" | "geo" | "tree" | "sankey"}Roam` | `${"focus" | "unfocus"}NodeAdjacency` | "dragNode" | "treeExpandAndCollapse" | `timeline${Capitalize<"changed" | "playChanged">}` | "magicTypeChanged" | `geo${Capitalize<"selectChanged" | "selected" | "unselected">}` | "axisAreaSelected" | `brush${Capitalize<"end" | "selected">}` | `${"show" | "hide"}Tip` | "updateAxisPointer" | "globalCursorTaken"; type MouseEmits = { [key in ChartMouseEventName | MouseEventAlias]: (params: ECElementEvent) => void; }; type ZRenderEmits = { [key in ZRenderEventName]: (params: ElementEvent) => void; }; type NativeEmits = { [key in `native:${string}`]: (params: any) => void; }; type OtherEmits = { [key in OtherEventName | OtherEventAlias]: (params: Payload) => void; }; type WithOnce = T & { [key in keyof T as `${key & string}Once`]: T[key]; }; type ChartEmits = MouseEmits & OtherEmits & { highlight: (params: HighlightPayload) => void; downplay: (params: DownplayPayload) => void; selectchanged: (params: SelectChangedEvent) => void; selectChanged: (params: SelectChangedEvent) => void; axisbreakchanged: (params: AxisBreakChangedEvent) => void; axisBreakChanged: (params: AxisBreakChangedEvent) => void; updated: () => void; rendered: (params: { elapsedTime: number; }) => void; finished: () => void; } & ZRenderEmits; type Emits = WithOnce & NativeEmits; //#endregion //#region src/composables/api.d.ts declare const METHOD_NAMES: readonly ["getWidth", "getHeight", "getDom", "getZr", "getId", "getOption", "isSSR", "getDevicePixelRatio", "resize", "makeActionFromEvent", "dispatchAction", "updateLabelLayout", "convertToPixel", "convertToLayout", "convertFromPixel", "containPixel", "getVisual", "renderToCanvas", "renderToSVGString", "getSvgDataURL", "getDataURL", "getConnectedDataURL", "appendData", "clear"]; type MethodName = (typeof METHOD_NAMES)[number]; type PublicMethods = Pick; //#endregion //#region src/composables/slot.d.ts type Slots = SlotsType & Record<"dataView" | `dataView-${string}`, Option> & VChartSlotsExtension>; //#endregion //#region src/composables/loading.d.ts declare const LOADING_OPTIONS_KEY: InjectionKey; //#endregion //#region src/ECharts.d.ts declare const THEME_KEY: InjectionKey; declare const INIT_OPTIONS_KEY: InjectionKey; declare const UPDATE_OPTIONS_KEY: InjectionKey; declare const chartProps: { loading: BooleanConstructor; loadingType: StringConstructor; loadingOptions: PropType; autoresize: PropType; option: PropType