/** * Copyright (c) 2019-present Houfeng * @author Houfeng */ import { IRectInit } from "vector-helper"; import { ISceneModel } from "../Scene/ISceneModel"; import { IStageModel } from "../Stage/IStageModel"; import { ITextStyle } from "./ITextStyle"; import { ShapeStates } from "./ShapeStates"; /** * 图形模型接口定义 * 主要用于定义模型的初始化数据的结构 */ export interface IShapeModel extends IRectInit { id?: string; type?: string; state?: ShapeStates; fill?: string; stroke?: string; strokeWidth?: number; strokeDasharray?: string; opacity?: number; text?: any; textStyle?: ITextStyle; attachment?: any; stage?: IStageModel; scene?: ISceneModel; translateX?: number; translateY?: number; [name: string]: any; }