import { Type } from '../common'; import { IGraphic } from '../core/graphic'; import { IComponentOption } from '../interface/file'; /** * 组件元数据 包含组件名称/组件定义/组件调色板信息/以及组件初始化配置 */ export interface IComponentMeta { id: string; graphicDef: Type; paletteMeta?: IPaletteMeta; componentOption: IComponentOption; } /** * 调色板配置信息 */ export interface IPaletteMeta { show?: boolean; displayName?: string; imageClass?: string; grabOption?: { width: number; height: number; backgroundImage: string; }; } export declare class ComponentMeta { private _meta; constructor(_meta: IComponentMeta); readonly id: string; readonly paletteMeta: { id: string; displayName: string; imageClass: string; grabOption: { width: number; height: number; backgroundImage: string; }; }; readonly grabOption: { width: number; height: number; backgroundImage: string; }; readonly componentOption: IComponentOption; readonly graphicDef: Type; }