LaneUtil.d.ts 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Return all lanes that are children of the given shape.
  3. *
  4. * @param shape
  5. * @param collectedShapes
  6. *
  7. * @return
  8. */
  9. export function collectLanes(shape: Shape, collectedShapes?: Shape[]): Shape[];
  10. /**
  11. * Return all lanes that are direct children of the given shape.
  12. *
  13. * @param shape
  14. *
  15. * @return
  16. */
  17. export function getChildLanes(shape: Shape): Shape[];
  18. /**
  19. * Return the parent shape of the given lane.
  20. *
  21. * @param shape
  22. *
  23. * @return
  24. */
  25. export function getLanesRoot(shape: Shape): Shape;
  26. /**
  27. * Compute the required resize operations for lanes
  28. * adjacent to the given shape, assuming it will be
  29. * resized to the given new bounds.
  30. *
  31. * @param shape
  32. * @param newBounds
  33. *
  34. * @return
  35. */
  36. export function computeLanesResize(shape: Shape, newBounds: Rect): {
  37. shape: Shape;
  38. newBounds: Rect;
  39. }[];
  40. export const LANE_INDENTATION: number;
  41. type Shape = import('../../../model/Types').Shape;
  42. type Rect = import('diagram-js/lib/util/Types').Rect;