timelineRowViewModel.d.ts 810 B

12345678910111213141516171819202122232425262728293031
  1. import { TimelineRow } from '../models/timelineRow';
  2. import { TimelineGroupViewModel } from './timelineGroupViewModel';
  3. import { TimelineKeyframeViewModel } from './timelineKeyframeViewModel';
  4. export interface TimelineRowViewModel {
  5. /**
  6. * Screen coordinates of the element.
  7. */
  8. size: DOMRect;
  9. /**
  10. * Related row model.
  11. */
  12. model: TimelineRow;
  13. /**
  14. * Current row index.
  15. */
  16. index: number;
  17. /**
  18. * Row margin bottom
  19. */
  20. marginBottom: number;
  21. /**
  22. * Collection of the keyframes groups view models exists in the current row.
  23. */
  24. groupsViewModels: TimelineGroupViewModel[];
  25. /**
  26. * All keyframes in the current row.
  27. */
  28. keyframesViewModels: TimelineKeyframeViewModel[];
  29. min: number | null;
  30. max: number | null;
  31. }