BpmnUpdater.d.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /**
  2. * A handler responsible for updating the underlying BPMN 2.0 XML & DI
  3. * once changes on the diagram happen.
  4. *
  5. */
  6. export default class BpmnUpdater extends CommandInterceptor {
  7. /**
  8. * @param eventBus
  9. * @param bpmnFactory
  10. * @param connectionDocking
  11. * @param translate
  12. */
  13. constructor(eventBus: EventBus, bpmnFactory: BpmnFactory, connectionDocking: CroppingConnectionDocking, translate: Translate);
  14. /**
  15. * @param context
  16. */
  17. updateAttachment(context: {
  18. shape: Shape;
  19. host: Shape;
  20. }): void;
  21. /**
  22. * @param element
  23. * @param oldParent
  24. */
  25. updateParent(element: Element, oldParent: Parent): void;
  26. /**
  27. * @param shape
  28. */
  29. updateBounds(shape: Shape): void;
  30. /**
  31. * @param businessObject
  32. * @param newContainment
  33. * @param oldContainment
  34. */
  35. updateFlowNodeRefs(businessObject: ModdleElement, newContainment: ModdleElement, oldContainment: ModdleElement): void;
  36. /**
  37. * @param connection
  38. * @param newSource
  39. * @param newTarget
  40. */
  41. updateDiConnection(connection: Connection, newSource: Element, newTarget: Element): void;
  42. /**
  43. * @param di
  44. * @param parentDi
  45. */
  46. updateDiParent(di: ModdleElement, parentDi: ModdleElement): void;
  47. /**
  48. * @param container
  49. *
  50. * @return
  51. */
  52. getLaneSet(container: ModdleElement): ModdleElement;
  53. /**
  54. * @param businessObject
  55. * @param newParent
  56. * @param visualParent
  57. */
  58. updateSemanticParent(businessObject: ModdleElement, newParent: ModdleElement, visualParent: ModdleElement): void;
  59. /**
  60. * @param connection
  61. */
  62. updateConnectionWaypoints(connection: Connection): void;
  63. /**
  64. * @param context
  65. */
  66. updateConnection(context: {
  67. connection: Connection;
  68. parent: Parent;
  69. newParent: Parent;
  70. }): void;
  71. }
  72. type EventBus = import('diagram-js/lib/core/EventBus').default;
  73. type BpmnFactory = import('./BpmnFactory').default;
  74. type CroppingConnectionDocking = import('diagram-js/lib/layout/CroppingConnectionDocking').default;
  75. export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
  76. type Connection = import('../../model/Types').Connection;
  77. type Element = import('../../model/Types').Element;
  78. type Shape = import('../../model/Types').Shape;
  79. type Parent = import('../../model/Types').Parent;
  80. type ModdleElement = import('../../model/Types').ModdleElement;
  81. import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';