/// import { Observable, Subscription } from 'rxjs'; import { IDestroyable } from '../../common'; export interface IGraphic extends IDestroyable { $element: JQuery; /** * 一般用于初始化 新建Graphic的时候调用 * 如果有content的,则创建相应的content;负责配置面板的创建 * @param params */ init(...params: Array): any; accept(model$: Observable>): Subscription; /** * 更新全局样式 目前只有Echart图表使用的到 * @param {string} theme */ updateTheme(theme: string): any; /** * 设计过程中 当region维度发生变化,调整graphic内容进行自适应 */ resize(): any; /** * graphic进入交互状态 */ activate(): any; /** * graphic退出交互状态 */ deactivate(): any; }