UNPKG

@logicflow/core

Version:

LogicFlow, help you quickly create flowcharts

21 lines (20 loc) 746 B
import BaseNodeModel from './BaseNodeModel'; import { Model } from '../BaseModel'; import { ModelType } from '../../constant'; import AnchorConfig = Model.AnchorConfig; import LogicFlow from '../../LogicFlow'; import GraphModel from '../GraphModel'; export interface IHtmlNodeProperties { width?: number; height?: number; style?: LogicFlow.CommonTheme; textStyle?: LogicFlow.CommonTheme; [key: string]: unknown; } export declare class HtmlNodeModel<P extends IHtmlNodeProperties = IHtmlNodeProperties> extends BaseNodeModel<P> { modelType: ModelType; constructor(data: LogicFlow.NodeConfig<P>, graphModel: GraphModel); setAttributes(): void; getDefaultAnchor(): AnchorConfig[]; } export default HtmlNodeModel;