import { Graph, Cell } from "@edp-pmf/grapheditor"; import { BpmnModel } from "@edp-pmf/bpmn-model"; import { WfEditorUi } from "./WfEditorUi"; import { MxGraphNS } from "@edp-pmf/mxgraph-ts"; import { WfProcessCell } from "./wf-cell/WfProcessCell"; import { WfLocalePipe } from "../i18n/pipe/wf-process-editor-locale.pipe"; /** * 工作流画布类 */ export declare class WfGraph extends Graph { localePipe: WfLocalePipe; editorUi: WfEditorUi; /** * 流程元素实例 */ processCell: WfProcessCell; constructor(editorUi: WfEditorUi, container?: HTMLDivElement, model?: MxGraphNS.mxGraphModel, renderHint?: MxGraphNS.renderingHint, stylesheet?: MxGraphNS.mxStylesheet, themes?: Element); bpmnCellsSelectionChanged(cells: Cell[], sender: MxGraphNS.mxEventSource, eventObject: MxGraphNS.mxEventObject): void; /** * 重写创建流程元素实例方法 * @param bpmnModel * @returns */ createProcessCell(bpmnModel: BpmnModel): WfProcessCell; /** * 给定新流程信息创建BpmnModel * @param newProcInfo * @param bizCmps */ createBpmnModelWithProcInfo(newProcInfo: any, bizCmps: any): void; setDefaultStyles(): void; }