BpmnAutoResize.d.ts 636 B

12345678910111213141516171819202122232425
  1. /**
  2. * BPMN-specific resize behavior.
  3. *
  4. */
  5. export default class BpmnAutoResize extends AutoResize {
  6. /**
  7. * @param injector
  8. */
  9. constructor(injector: Injector);
  10. /**
  11. * Perform BPMN-specific resizing of participants.
  12. *
  13. * @param target
  14. * @param newBounds
  15. * @param hints
  16. */
  17. resize(target: Shape, newBounds: Rect, hints?: {
  18. autoResize?: string;
  19. }): void;
  20. }
  21. type Injector = import('didi').Injector;
  22. type Shape = import('../../model/Types').Shape;
  23. type Rect = import('diagram-js/lib/util/Types').Rect;
  24. import AutoResize from 'diagram-js/lib/features/auto-resize/AutoResize';