LayoutFragment.d.ts 759 B

123456789101112131415161718192021222324
  1. import type { LayoutContext } from './LayoutContext';
  2. export interface LayoutFragmentFactory<T = void> {
  3. (options: LayoutFragmentOptions<T>): LayoutFragment<T>;
  4. }
  5. export interface LayoutFragmentOptions<T = void> {
  6. inlineSize: number;
  7. blockSize: number;
  8. data: T;
  9. }
  10. /**
  11. * 布局的结果
  12. */
  13. export declare class LayoutFragment<T = void> {
  14. protected readonly _layoutContext: LayoutContext;
  15. protected readonly options: LayoutFragmentOptions<T>;
  16. layoutContext: LayoutContext;
  17. readonly inlineSize: number;
  18. readonly blockSize: number;
  19. inlineOffset: number;
  20. blockOffset: number;
  21. data: T;
  22. constructor(_layoutContext: LayoutContext, options: LayoutFragmentOptions<T>);
  23. }
  24. //# sourceMappingURL=LayoutFragment.d.ts.map