AppendPreview.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * A preview for appending.
  3. *
  4. */
  5. export default class AppendPreview {
  6. static $inject: string[];
  7. /**
  8. * @param complexPreview
  9. * @param connectionDocking
  10. * @param elementFactory
  11. * @param eventBus
  12. * @param layouter
  13. * @param rules
  14. */
  15. constructor(complexPreview: ComplexPreview, connectionDocking: ConnectionDocking, elementFactory: ElementFactory, eventBus: EventBus, layouter: any, rules: Rules);
  16. /**
  17. * Create a preview of appending a shape of the given type to the given source.
  18. *
  19. * @param source
  20. * @param type
  21. * @param options
  22. */
  23. create(source: Shape, type: string, options: Partial<Shape>): void;
  24. cleanUp(): void;
  25. }
  26. type ComplexPreview = import('diagram-js/lib/features/complex-preview/ComplexPreview').default;
  27. type ConnectionDocking = import('diagram-js/lib/layout/ConnectionDocking').default;
  28. type ElementFactory = import('../modeling/ElementFactory').default;
  29. type EventBus = import('diagram-js/lib/core/EventBus').default;
  30. type ManhattanLayout = import('diagram-js/lib/layout/ManhattanLayout').default;
  31. type Rules = import('diagram-js/lib/features/rules/Rules').default;
  32. type Shape = import('../../model/Types').Shape;