1 | import { __decorate, __metadata, __param } from "tslib";
|
2 | import { inject, injectable, Syringe } from 'mana-syringe';
|
3 | import { LayoutObject } from './LayoutObject';
|
4 | import { LayoutContext } from './LayoutContext';
|
5 | export var FragmentResultFactory = Syringe.defineToken('FragmentResultFactory');
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export var FragmentResultOptions = Syringe.defineToken('FragmentResultOptions');
|
11 | export var ContextNode = Syringe.defineToken('contextNode');
|
12 |
|
13 | var FragmentResult =
|
14 |
|
15 | function () {
|
16 | function FragmentResult(_layoutContext, _node, options) {
|
17 | this._layoutContext = _layoutContext;
|
18 | this._node = _node;
|
19 | this.options = options;
|
20 | this.layoutContext = _layoutContext;
|
21 | this.inlineSize = options === null || options === void 0 ? void 0 : options.inlineSize;
|
22 | this.blockSize = options === null || options === void 0 ? void 0 : options.blockSize;
|
23 | this.childFragments = options === null || options === void 0 ? void 0 : options.childFragments;
|
24 | this.data = options.data;
|
25 | this.node = _node;
|
26 | }
|
27 |
|
28 | FragmentResult = __decorate([injectable(), __param(0, inject(LayoutContext)), __param(1, inject(ContextNode)), __param(2, inject(FragmentResultOptions)), __metadata("design:paramtypes", [LayoutContext, LayoutObject, Object])], FragmentResult);
|
29 | return FragmentResult;
|
30 | }();
|
31 |
|
32 | export { FragmentResult }; |
\ | No newline at end of file |