BpmnAutoPlaceUtil.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Get the position for given new target relative to the source it will be
  3. * connected to.
  4. *
  5. * @param source
  6. * @param element
  7. *
  8. * @return
  9. */
  10. export function getNewShapePosition(source: Shape, element: Shape): Point;
  11. /**
  12. * Get the position for given new flow node. Try placing the flow node right of
  13. * the source.
  14. *
  15. * @param source
  16. * @param element
  17. *
  18. * @return
  19. */
  20. export function getFlowNodePosition(source: Shape, element: Shape): Point;
  21. /**
  22. * Get the position for given text annotation. Try placing the text annotation
  23. * top-right of the source.
  24. *
  25. * @param source
  26. * @param element
  27. *
  28. * @return
  29. */
  30. export function getTextAnnotationPosition(source: Shape, element: Shape): Point;
  31. /**
  32. * Get the position for given new data element. Try placing the data element
  33. * bottom-right of the source.
  34. *
  35. * @param source
  36. * @param element
  37. *
  38. * @return
  39. */
  40. export function getDataElementPosition(source: Shape, element: Shape): Point;
  41. type Shape = import('../../model/Types').Shape;
  42. type Point = import('diagram-js/lib/util/Types').Point;
  43. type DirectionTRBL = import('diagram-js/lib/util/Types').DirectionTRBL;