1 | import { Syringe } from 'mana-syringe';
|
2 | import { LayoutContext } from './LayoutContext';
|
3 | export declare const LayoutFragmentFactory: Syringe.DefinedToken;
|
4 | export interface LayoutFragmentFactory<T = void> {
|
5 | (options: LayoutFragmentOptions<T>): LayoutFragment<T>;
|
6 | }
|
7 | export declare const LayoutFragmentOptions: Syringe.DefinedToken;
|
8 | export interface LayoutFragmentOptions<T = void> {
|
9 | inlineSize: number;
|
10 | blockSize: number;
|
11 | data: T;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 | export declare class LayoutFragment<T = void> {
|
17 | protected readonly _layoutContext: LayoutContext;
|
18 | protected readonly options: LayoutFragmentOptions<T>;
|
19 | layoutContext: LayoutContext;
|
20 | readonly inlineSize: number;
|
21 | readonly blockSize: number;
|
22 | inlineOffset: number;
|
23 | blockOffset: number;
|
24 | data: T;
|
25 | constructor(_layoutContext: LayoutContext, options: LayoutFragmentOptions<T>);
|
26 | }
|