BpmnTreeWalker.d.ts 833 B

12345678910111213141516171819202122
  1. export default class BpmnTreeWalker {
  2. /**
  3. * @param handler
  4. * @param translate
  5. */
  6. constructor(handler: Record<'element' | 'root' | 'error', Function>, translate: Translate);
  7. registerDi: (di: any) => void;
  8. /**
  9. * Handle definitions and return the rendered diagram (if any).
  10. *
  11. * @param definitions to walk and import
  12. * @param diagram specific diagram to import and display
  13. *
  14. * @throws {Error} if no diagram to display could be found
  15. */
  16. handleDefinitions: (definitions: ModdleElement, diagram?: ModdleElement) => void;
  17. handleDeferred: () => void;
  18. handleSubProcess: (subProcess: any, context: any) => void;
  19. }
  20. export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
  21. type ModdleElement = import('../model/Types').ModdleElement;