ModdleCopy.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. export function getPropertyNames(descriptor: any, keepDefaultProperties: any): any[];
  2. /**
  3. * Utility for copying model properties from source element to target element.
  4. *
  5. */
  6. export default class ModdleCopy {
  7. static $inject: string[];
  8. /**
  9. * @param eventBus
  10. * @param bpmnFactory
  11. * @param moddle
  12. */
  13. constructor(eventBus: EventBus, bpmnFactory: BpmnFactory, moddle: Moddle);
  14. /**
  15. * Copy model properties of source element to target element.
  16. *
  17. * @param sourceElement
  18. * @param targetElement
  19. * @param propertyNames
  20. * @param clone
  21. *
  22. * @return
  23. */
  24. copyElement(sourceElement: ModdleElement, targetElement: ModdleElement, propertyNames?: string[], clone?: boolean): ModdleElement;
  25. /**
  26. * Copy model property.
  27. *
  28. * @param property
  29. * @param parent
  30. * @param propertyName
  31. * @param clone
  32. *
  33. * @return
  34. */
  35. copyProperty(property: any, parent: ModdleElement, propertyName: string, clone?: boolean): any;
  36. }
  37. type EventBus = import('diagram-js/lib/core/EventBus').default;
  38. type BpmnFactory = import('../modeling/BpmnFactory').default;
  39. type Moddle = import('../../model/Types').Moddle;
  40. type ModdleElement = import('../../model/Types').ModdleElement;