ResizeLaneHandler.d.ts 975 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * A handler that resizes a lane.
  3. *
  4. * @implements {CommandHandler}
  5. *
  6. */
  7. export default class ResizeLaneHandler implements CommandHandler {
  8. static $inject: string[];
  9. /**
  10. * @param modeling
  11. * @param spaceTool
  12. */
  13. constructor(modeling: Modeling, spaceTool: SpaceTool);
  14. preExecute(context: any): void;
  15. /**
  16. * Resize balanced, adjusting next / previous lane sizes.
  17. *
  18. * @param shape
  19. * @param newBounds
  20. */
  21. resizeBalanced(shape: Shape, newBounds: Rect): void;
  22. /**
  23. * Resize, making actual space and moving below / above elements.
  24. *
  25. * @param shape
  26. * @param newBounds
  27. */
  28. resizeSpace(shape: Shape, newBounds: Rect): void;
  29. }
  30. type CommandHandler = import('diagram-js/lib/command/CommandHandler').default;
  31. type Modeling = import('../Modeling').default;
  32. type SpaceTool = import('../../space-tool/BpmnSpaceTool').default;
  33. type Shape = import('../../../model/Types').Shape;
  34. type Rect = import('diagram-js/lib/util/Types').Rect;