UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

31 lines (30 loc) 844 B
import { ComponentCtor } from './base.js'; /** * 全局注册组件。 * @param name 组件名称 * @param plugin 注册的组件类 * @returns void */ export declare function registerComponent(name: string, plugin: ComponentCtor): void; /** * 删除全局组件。 * @param name 组件名 * @returns void */ export declare function unregisterComponent(name: string): void; /** * 获取以注册的组件名。 * @returns string[] 返回已注册的组件名称 */ export declare function getComponentNames(): string[]; /** * 根据组件名获取组件类。 * @param name 组件名 * @returns 返回组件类 */ export declare function getComponent(name: string): ComponentCtor; export * from './axis.js'; export * from './coordinate.js'; export * from './legend.js'; export * from './title.js'; export * from './tooltip.js';