bpmn-js
Version:
A bpmn 2.0 toolkit and web modeler
23 lines (21 loc) • 833 B
TypeScript
export default class BpmnTreeWalker {
/**
* @param handler
* @param translate
*/
constructor(handler: Record<'element' | 'root' | 'error', Function>, translate: Translate);
registerDi: (di: any) => void;
/**
* Handle definitions and return the rendered diagram (if any).
*
* @param definitions to walk and import
* @param diagram specific diagram to import and display
*
* @throws {Error} if no diagram to display could be found
*/
handleDefinitions: (definitions: ModdleElement, diagram?: ModdleElement) => void;
handleDeferred: () => void;
handleSubProcess: (subProcess: any, context: any) => void;
}
export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
type ModdleElement = import('../model/Types').ModdleElement;