LabelLayoutUtil.d.ts 888 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @param oldWaypoints
  3. * @param newWaypoints
  4. * @param attachment
  5. * @param hints
  6. *
  7. * @return
  8. */
  9. export function findNewLabelLineStartIndex(
  10. oldWaypoints: Point[],
  11. newWaypoints: Point[],
  12. attachment: Attachment,
  13. hints: FindNewLineStartIndexHints
  14. ): number;
  15. /**
  16. * Calculate the required adjustment (move delta) for the given label
  17. * after the connection waypoints got updated.
  18. *
  19. * @param label
  20. * @param newWaypoints
  21. * @param oldWaypoints
  22. * @param hints
  23. *
  24. * @return
  25. */
  26. export function getLabelAdjustment(label: Label, newWaypoints: Point[], oldWaypoints: Point[], hints: FindNewLineStartIndexHints): Point;
  27. type Attachment = import('./LineAttachmentUtil').Attachment;
  28. type FindNewLineStartIndexHints = import('./LayoutUtil').FindNewLineStartIndexHints;
  29. type Label = import('../../../../model/Types').Label;
  30. type Point = import('diagram-js/lib/util/Types').Point;