UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

18 lines (17 loc) 491 B
import { View } from '../../chart/view.js'; import { Action } from './action.js'; declare type ActionCtr = new (view: View, opt?: any) => Action; /** * 全局注册 action。 * @param name action 名称 * @param action action 实例 * @returns void */ export declare function registerAction(name: string, action: ActionCtr): void; /** * 获取动作类 * @param name action 名称 * @returns 返回动作类 */ export declare function getAction(name: string): ActionCtr; export {};