@vivliostyle/core 2.16.0 → 2.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/vivliostyle/base.d.ts +5 -14
- package/lib/vivliostyle/break-position.d.ts +1 -10
- package/lib/vivliostyle/cfi.d.ts +4 -12
- package/lib/vivliostyle/columns.d.ts +0 -21
- package/lib/vivliostyle/css-cascade.d.ts +74 -372
- package/lib/vivliostyle/css-page.d.ts +3 -141
- package/lib/vivliostyle/css-parser.d.ts +0 -169
- package/lib/vivliostyle/css-prop.d.ts +0 -25
- package/lib/vivliostyle/css-styler.d.ts +4 -11
- package/lib/vivliostyle/css-tokenizer.d.ts +9 -3
- package/lib/vivliostyle/css-validator.d.ts +1 -186
- package/lib/vivliostyle/css.d.ts +28 -178
- package/lib/vivliostyle/diff.d.ts +2 -8
- package/lib/vivliostyle/epub.d.ts +1 -6
- package/lib/vivliostyle/exprs.d.ts +1 -225
- package/lib/vivliostyle/footnotes.d.ts +7 -30
- package/lib/vivliostyle/layout-processor.d.ts +8 -24
- package/lib/vivliostyle/layout-util.d.ts +0 -9
- package/lib/vivliostyle/layout.d.ts +4 -37
- package/lib/vivliostyle/net.d.ts +2 -8
- package/lib/vivliostyle/ops.d.ts +5 -52
- package/lib/vivliostyle/page-floats.d.ts +7 -21
- package/lib/vivliostyle/page-master.d.ts +3 -54
- package/lib/vivliostyle/pseudo-element.d.ts +3 -7
- package/lib/vivliostyle/repetitive-element.d.ts +9 -54
- package/lib/vivliostyle/table.d.ts +11 -92
- package/lib/vivliostyle/task.d.ts +16 -49
- package/lib/vivliostyle/toc.d.ts +1 -3
- package/lib/vivliostyle/types.d.ts +5 -4
- package/lib/vivliostyle/vgen.d.ts +14 -43
- package/lib/vivliostyle/vtree.d.ts +0 -4
- package/lib/vivliostyle.js +1 -1
- package/lib/vivliostyle.js.map +1 -1
- package/package.json +2 -2
package/lib/vivliostyle/ops.d.ts
CHANGED
|
@@ -127,25 +127,14 @@ export declare class StyleInstance extends Exprs.Context implements CssStyler.Fl
|
|
|
127
127
|
}, pageNumberOffset: number, documentURLTransformer: Base.DocumentURLTransformer, counterStore: Counters.CounterStore, pageProgression?: Constants.PageProgression, isVersoFirstPage?: boolean);
|
|
128
128
|
init(): Task.Result<boolean>;
|
|
129
129
|
private matchStartPageSide;
|
|
130
|
-
/**
|
|
131
|
-
* @override
|
|
132
|
-
*/
|
|
130
|
+
/** @override */
|
|
133
131
|
getStylerForDoc(xmldoc: XmlDoc.XMLDocHolder): CssStyler.AbstractStyler;
|
|
134
|
-
/**
|
|
135
|
-
* @override
|
|
136
|
-
*/
|
|
132
|
+
/** @override */
|
|
137
133
|
registerInstance(key: string, instance: PageMaster.PageBoxInstance): void;
|
|
138
|
-
/**
|
|
139
|
-
* @override
|
|
140
|
-
*/
|
|
134
|
+
/** @override */
|
|
141
135
|
lookupInstance(key: string): PageMaster.PageBoxInstance;
|
|
142
|
-
/**
|
|
143
|
-
|
|
144
|
-
*/
|
|
145
|
-
encounteredFlowChunk(flowChunk: Vtree.FlowChunk, flow: Vtree.Flow): any;
|
|
146
|
-
/**
|
|
147
|
-
* @override
|
|
148
|
-
*/
|
|
136
|
+
/** @override */
|
|
137
|
+
encounteredFlowChunk(flowChunk: Vtree.FlowChunk, flow: Vtree.Flow): void;
|
|
149
138
|
evalSupportsTest(name: string, value: string, isFunc: boolean): boolean;
|
|
150
139
|
getConsumedOffset(flowPosition: Vtree.FlowPosition): number;
|
|
151
140
|
/**
|
|
@@ -192,49 +181,16 @@ export declare class BaseParserHandler extends CssCascade.CascadeParserHandler {
|
|
|
192
181
|
masterHandler: StyleParserHandler;
|
|
193
182
|
insideRegion: boolean;
|
|
194
183
|
constructor(masterHandler: StyleParserHandler, condition: Exprs.Val, parent: BaseParserHandler, regionId: string | null);
|
|
195
|
-
/**
|
|
196
|
-
* @override
|
|
197
|
-
*/
|
|
198
184
|
startPageTemplateRule(): void;
|
|
199
|
-
/**
|
|
200
|
-
* @override
|
|
201
|
-
*/
|
|
202
185
|
startPageMasterRule(name: string | null, pseudoName: string | null, classes: string[]): void;
|
|
203
|
-
/**
|
|
204
|
-
* @override
|
|
205
|
-
*/
|
|
206
186
|
startWhenRule(expr: Css.Expr): void;
|
|
207
|
-
/**
|
|
208
|
-
* @override
|
|
209
|
-
*/
|
|
210
187
|
startDefineRule(): void;
|
|
211
|
-
/**
|
|
212
|
-
* @override
|
|
213
|
-
*/
|
|
214
188
|
startFontFaceRule(): void;
|
|
215
|
-
/**
|
|
216
|
-
* @override
|
|
217
|
-
*/
|
|
218
189
|
startFlowRule(flowName: string): void;
|
|
219
|
-
/**
|
|
220
|
-
* @override
|
|
221
|
-
*/
|
|
222
190
|
startViewportRule(): void;
|
|
223
|
-
/**
|
|
224
|
-
* @override
|
|
225
|
-
*/
|
|
226
191
|
startFootnoteRule(pseudoelem: string | null): void;
|
|
227
|
-
/**
|
|
228
|
-
* @override
|
|
229
|
-
*/
|
|
230
192
|
startRegionRule(): void;
|
|
231
|
-
/**
|
|
232
|
-
* @override
|
|
233
|
-
*/
|
|
234
193
|
startPageRule(): void;
|
|
235
|
-
/**
|
|
236
|
-
* @override
|
|
237
|
-
*/
|
|
238
194
|
startRuleBody(): void;
|
|
239
195
|
}
|
|
240
196
|
export declare function processViewportMeta(meta: Element): string;
|
|
@@ -255,9 +211,6 @@ export declare class StyleParserHandler extends CssParser.DispatchParserHandler
|
|
|
255
211
|
[key: string]: CssCascade.ElementStyle;
|
|
256
212
|
};
|
|
257
213
|
constructor(validatorSet: CssValidator.ValidatorSet);
|
|
258
|
-
/**
|
|
259
|
-
* @override
|
|
260
|
-
*/
|
|
261
214
|
error(mnemonics: string, token: CssTokenizer.Token): void;
|
|
262
215
|
}
|
|
263
216
|
export declare type StyleSource = {
|
|
@@ -160,33 +160,19 @@ export declare class PageFloatLayoutStrategyResolver {
|
|
|
160
160
|
findByFloat(float: PageFloat): PageFloatLayoutStrategy;
|
|
161
161
|
}
|
|
162
162
|
export declare class NormalPageFloatLayoutStrategy implements PageFloatLayoutStrategy {
|
|
163
|
-
/**
|
|
164
|
-
* @override
|
|
165
|
-
*/
|
|
163
|
+
/** @override */
|
|
166
164
|
appliesToNodeContext(nodeContext: Vtree.NodeContext): boolean;
|
|
167
|
-
/**
|
|
168
|
-
* @override
|
|
169
|
-
*/
|
|
165
|
+
/** @override */
|
|
170
166
|
appliesToFloat(float: PageFloat): boolean;
|
|
171
|
-
/**
|
|
172
|
-
* @override
|
|
173
|
-
*/
|
|
167
|
+
/** @override */
|
|
174
168
|
createPageFloat(nodeContext: Vtree.NodeContext, pageFloatLayoutContext: PageFloatLayoutContext, column: LayoutType.Column): Task.Result<PageFloat>;
|
|
175
|
-
/**
|
|
176
|
-
* @override
|
|
177
|
-
*/
|
|
169
|
+
/** @override */
|
|
178
170
|
createPageFloatFragment(continuations: PageFloatContinuation[], floatSide: string, floatArea: LayoutType.PageFloatArea, continues: boolean): PageFloatFragment;
|
|
179
|
-
/**
|
|
180
|
-
* @override
|
|
181
|
-
*/
|
|
171
|
+
/** @override */
|
|
182
172
|
findPageFloatFragment(float: PageFloat, pageFloatLayoutContext: PageFloatLayoutContext): PageFloatFragment | null;
|
|
183
|
-
/**
|
|
184
|
-
* @override
|
|
185
|
-
*/
|
|
173
|
+
/** @override */
|
|
186
174
|
adjustPageFloatArea(floatArea: LayoutType.PageFloatArea, floatContainer: Vtree.Container, column: LayoutType.Column): void;
|
|
187
|
-
/**
|
|
188
|
-
* @override
|
|
189
|
-
*/
|
|
175
|
+
/** @override */
|
|
190
176
|
forbid(float: PageFloat, pageFloatLayoutContext: PageFloatLayoutContext): void;
|
|
191
177
|
}
|
|
192
178
|
export {};
|
|
@@ -63,13 +63,7 @@ export declare class PageMaster<I extends PageMasterInstance = PageMasterInstanc
|
|
|
63
63
|
[key: string]: string;
|
|
64
64
|
};
|
|
65
65
|
constructor(scope: Exprs.LexicalScope, name: string | null, pseudoName: string | null, classes: string[], parent: RootPageBox, condition: Exprs.Val, specificity: number);
|
|
66
|
-
/**
|
|
67
|
-
* @override
|
|
68
|
-
*/
|
|
69
66
|
createInstance(parentInstance: any): PageBoxInstance;
|
|
70
|
-
/**
|
|
71
|
-
* @override
|
|
72
|
-
*/
|
|
73
67
|
clone(param: any): PageMaster;
|
|
74
68
|
/**
|
|
75
69
|
* Point the pageMaster reference in the PageMasterScope to the current page
|
|
@@ -86,13 +80,7 @@ export declare class PageMaster<I extends PageMasterInstance = PageMasterInstanc
|
|
|
86
80
|
*/
|
|
87
81
|
export declare class PartitionGroup extends PageBox<PartitionGroupInstance> {
|
|
88
82
|
constructor(scope: Exprs.LexicalScope, name: string | null, pseudoName: string | null, classes: string[], parent: PageBox);
|
|
89
|
-
/**
|
|
90
|
-
* @override
|
|
91
|
-
*/
|
|
92
83
|
createInstance(parentInstance: PageBoxInstance): PageBoxInstance;
|
|
93
|
-
/**
|
|
94
|
-
* @override
|
|
95
|
-
*/
|
|
96
84
|
clone(param: any): PartitionGroup;
|
|
97
85
|
}
|
|
98
86
|
/**
|
|
@@ -100,13 +88,7 @@ export declare class PartitionGroup extends PageBox<PartitionGroupInstance> {
|
|
|
100
88
|
*/
|
|
101
89
|
export declare class Partition<I extends PartitionInstance = PartitionInstance> extends PageBox<I> {
|
|
102
90
|
constructor(scope: Exprs.LexicalScope, name: string | null, pseudoName: string | null, classes: string[], parent: PageBox);
|
|
103
|
-
/**
|
|
104
|
-
* @override
|
|
105
|
-
*/
|
|
106
91
|
createInstance(parentInstance: any): PageBoxInstance;
|
|
107
|
-
/**
|
|
108
|
-
* @override
|
|
109
|
-
*/
|
|
110
92
|
clone(param: any): Partition;
|
|
111
93
|
}
|
|
112
94
|
/**
|
|
@@ -218,16 +200,10 @@ export declare const delayedProperties: string[];
|
|
|
218
200
|
export declare const userAgentPageMasterPseudo = "background-host";
|
|
219
201
|
export declare class RootPageBoxInstance extends PageBoxInstance<RootPageBox> {
|
|
220
202
|
constructor(pageBox: RootPageBox);
|
|
221
|
-
/**
|
|
222
|
-
* @override
|
|
223
|
-
*/
|
|
224
203
|
applyCascadeAndInit(cascade: CssCascade.CascadeInstance, docElementStyle: CssCascade.ElementStyle): void;
|
|
225
204
|
}
|
|
226
205
|
export declare class PageMasterInstance<P extends PageMaster = PageMaster<PageMasterInstance<any>>> extends PageBoxInstance<P> {
|
|
227
206
|
constructor(parentInstance: PageBoxInstance, pageBox: P);
|
|
228
|
-
/**
|
|
229
|
-
* @override
|
|
230
|
-
*/
|
|
231
207
|
boxSpecificEnabled(enabled: Exprs.Val): Exprs.Val;
|
|
232
208
|
/**
|
|
233
209
|
* Called after layout of contents of the page has done to adjust the overall
|
|
@@ -241,34 +217,19 @@ export declare class PartitionGroupInstance extends PageBoxInstance<PartitionGro
|
|
|
241
217
|
export declare class PartitionInstance<P extends Partition = Partition<PartitionInstance<any>>> extends PageBoxInstance<P> {
|
|
242
218
|
constructor(parentInstance: PageBoxInstance, pageBox: P);
|
|
243
219
|
processPartitionList(enabled: Exprs.Val, listVal: Css.Val, conflicting: boolean): Exprs.Val;
|
|
244
|
-
/**
|
|
245
|
-
* @override
|
|
246
|
-
*/
|
|
247
220
|
boxSpecificEnabled(enabled: Exprs.Val): Exprs.Val;
|
|
248
|
-
/**
|
|
249
|
-
* @override
|
|
250
|
-
*/
|
|
251
221
|
prepareContainer(context: Exprs.Context, container: Vtree.Container, page: Vtree.Page, docFaces: Font.DocumentFaces, clientLayout: Vtree.ClientLayout): void;
|
|
252
222
|
}
|
|
253
223
|
export declare class PageBoxParserHandler extends CssParser.SlaveParserHandler implements CssValidator.PropertyReceiver {
|
|
254
224
|
readonly target: PageBox;
|
|
255
225
|
readonly validatorSet: CssValidator.ValidatorSet;
|
|
256
226
|
constructor(scope: Exprs.LexicalScope, owner: CssParser.DispatchParserHandler, target: PageBox, validatorSet: CssValidator.ValidatorSet);
|
|
257
|
-
/**
|
|
258
|
-
* @override
|
|
259
|
-
*/
|
|
260
227
|
property(name: string, value: Css.Val, important: boolean): void;
|
|
261
|
-
/**
|
|
262
|
-
* @override
|
|
263
|
-
*/
|
|
228
|
+
/** @override */
|
|
264
229
|
unknownProperty(name: string, value: Css.Val): void;
|
|
265
|
-
/**
|
|
266
|
-
* @override
|
|
267
|
-
*/
|
|
230
|
+
/** @override */
|
|
268
231
|
invalidPropertyValue(name: string, value: Css.Val): void;
|
|
269
|
-
/**
|
|
270
|
-
* @override
|
|
271
|
-
*/
|
|
232
|
+
/** @override */
|
|
272
233
|
simpleProperty(name: string, value: Css.Val, important: any): void;
|
|
273
234
|
}
|
|
274
235
|
export declare class PartitionParserHandler extends PageBoxParserHandler {
|
|
@@ -276,23 +237,11 @@ export declare class PartitionParserHandler extends PageBoxParserHandler {
|
|
|
276
237
|
}
|
|
277
238
|
export declare class PartitionGroupParserHandler extends PageBoxParserHandler {
|
|
278
239
|
constructor(scope: Exprs.LexicalScope, owner: CssParser.DispatchParserHandler, target: PartitionGroup, validatorSet: CssValidator.ValidatorSet);
|
|
279
|
-
/**
|
|
280
|
-
* @override
|
|
281
|
-
*/
|
|
282
240
|
startPartitionRule(name: string | null, pseudoName: string | null, classes: string[]): void;
|
|
283
|
-
/**
|
|
284
|
-
* @override
|
|
285
|
-
*/
|
|
286
241
|
startPartitionGroupRule(name: string | null, pseudoName: string | null, classes: string[]): void;
|
|
287
242
|
}
|
|
288
243
|
export declare class PageMasterParserHandler extends PageBoxParserHandler {
|
|
289
244
|
constructor(scope: Exprs.LexicalScope, owner: CssParser.DispatchParserHandler, target: PageMaster, validatorSet: CssValidator.ValidatorSet);
|
|
290
|
-
/**
|
|
291
|
-
* @override
|
|
292
|
-
*/
|
|
293
245
|
startPartitionRule(name: string | null, pseudoName: string | null, classes: string[]): void;
|
|
294
|
-
/**
|
|
295
|
-
* @override
|
|
296
|
-
*/
|
|
297
246
|
startPartitionGroupRule(name: string | null, pseudoName: string | null, classes: string[]): void;
|
|
298
247
|
}
|
|
@@ -23,14 +23,10 @@ export declare class PseudoelementStyler implements PseudoElement.PseudoelementS
|
|
|
23
23
|
[key: string]: boolean;
|
|
24
24
|
};
|
|
25
25
|
constructor(element: Element, style: CssCascade.ElementStyle, styler: CssStyler.AbstractStyler, context: Exprs.Context, exprContentListener: Vtree.ExprContentListener);
|
|
26
|
-
/**
|
|
27
|
-
* @override
|
|
28
|
-
*/
|
|
26
|
+
/** @override */
|
|
29
27
|
getStyle(element: Element, deep: boolean): CssCascade.ElementStyle;
|
|
30
|
-
/**
|
|
31
|
-
* @override
|
|
32
|
-
*/
|
|
28
|
+
/** @override */
|
|
33
29
|
processContent(element: Element, styles: {
|
|
34
30
|
[key: string]: Css.Val;
|
|
35
|
-
}): void;
|
|
31
|
+
}, viewNode: Node): void;
|
|
36
32
|
}
|
|
@@ -10,17 +10,11 @@ export declare class RepetitiveElementsOwnerFormattingContext implements Repetit
|
|
|
10
10
|
isRoot: boolean;
|
|
11
11
|
repetitiveElements: RepetitiveElement.RepetitiveElements;
|
|
12
12
|
constructor(parent: Vtree.FormattingContext, rootSourceNode: Element);
|
|
13
|
-
/**
|
|
14
|
-
* @override
|
|
15
|
-
*/
|
|
13
|
+
/** @override */
|
|
16
14
|
getName(): string;
|
|
17
|
-
/**
|
|
18
|
-
* @override
|
|
19
|
-
*/
|
|
15
|
+
/** @override */
|
|
20
16
|
isFirstTime(nodeContext: Vtree.NodeContext, firstTime: boolean): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* @override
|
|
23
|
-
*/
|
|
17
|
+
/** @override */
|
|
24
18
|
getParent(): Vtree.FormattingContext;
|
|
25
19
|
getRepetitiveElements(): RepetitiveElement.RepetitiveElements;
|
|
26
20
|
getRootViewNode(position: Vtree.NodeContext): Element | null;
|
|
@@ -61,9 +55,6 @@ export declare class RepetitiveElements implements RepetitiveElement.RepetitiveE
|
|
|
61
55
|
prepareLayoutFragment(): void;
|
|
62
56
|
appendHeaderToFragment(rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
63
57
|
appendFooterToFragment(rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
64
|
-
/**
|
|
65
|
-
* @return
|
|
66
|
-
*/
|
|
67
58
|
appendElementToFragment(nodePosition: Vtree.NodePosition, rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
68
59
|
moveChildren(from: Element, to: Element, firstChild: Node | null): void;
|
|
69
60
|
/** @override */
|
|
@@ -90,17 +81,11 @@ export declare class RepetitiveElements implements RepetitiveElement.RepetitiveE
|
|
|
90
81
|
export declare abstract class LayoutEntireBlock implements LayoutType.LayoutMode {
|
|
91
82
|
formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
92
83
|
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext);
|
|
93
|
-
/**
|
|
94
|
-
* @override
|
|
95
|
-
*/
|
|
84
|
+
/** @override */
|
|
96
85
|
abstract doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
97
|
-
/**
|
|
98
|
-
* @override
|
|
99
|
-
*/
|
|
86
|
+
/** @override */
|
|
100
87
|
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
101
|
-
/**
|
|
102
|
-
* @override
|
|
103
|
-
*/
|
|
88
|
+
/** @override */
|
|
104
89
|
postLayout(positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: LayoutType.Column, accepted: boolean): boolean;
|
|
105
90
|
}
|
|
106
91
|
/**
|
|
@@ -109,37 +94,22 @@ export declare abstract class LayoutEntireBlock implements LayoutType.LayoutMode
|
|
|
109
94
|
export declare abstract class LayoutFragmentedBlock implements LayoutType.LayoutMode {
|
|
110
95
|
formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
111
96
|
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext);
|
|
112
|
-
/**
|
|
113
|
-
* @override
|
|
114
|
-
*/
|
|
97
|
+
/** @override */
|
|
115
98
|
abstract doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
116
|
-
/**
|
|
117
|
-
* @override
|
|
118
|
-
*/
|
|
99
|
+
/** @override */
|
|
119
100
|
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
120
|
-
/**
|
|
121
|
-
* @override
|
|
122
|
-
*/
|
|
101
|
+
/** @override */
|
|
123
102
|
postLayout(positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: LayoutType.Column, accepted: boolean): boolean;
|
|
124
103
|
}
|
|
125
104
|
export declare class LayoutEntireOwnerBlock extends LayoutEntireBlock {
|
|
126
105
|
readonly processor: RepetitiveElementsOwnerLayoutProcessor;
|
|
127
106
|
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
128
|
-
/**
|
|
129
|
-
* @override
|
|
130
|
-
*/
|
|
131
107
|
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
132
|
-
/**
|
|
133
|
-
* @override
|
|
134
|
-
*/
|
|
135
108
|
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
136
109
|
}
|
|
137
110
|
export declare class LayoutFragmentedOwnerBlock extends LayoutFragmentedBlock {
|
|
138
111
|
readonly processor: RepetitiveElementsOwnerLayoutProcessor;
|
|
139
112
|
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
140
|
-
/**
|
|
141
|
-
* @override
|
|
142
|
-
*/
|
|
143
113
|
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
144
114
|
}
|
|
145
115
|
export declare class RepetitiveElementsOwnerLayoutConstraint implements RepetitiveElement.RepetitiveElementsOwnerLayoutConstraint {
|
|
@@ -164,22 +134,13 @@ export declare class RepetitiveElementsOwnerLayoutRetryer extends LayoutRetryers
|
|
|
164
134
|
readonly formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
165
135
|
private readonly processor;
|
|
166
136
|
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
167
|
-
/**
|
|
168
|
-
* @override
|
|
169
|
-
*/
|
|
170
137
|
resolveLayoutMode(nodeContext: Vtree.NodeContext): LayoutType.LayoutMode;
|
|
171
138
|
}
|
|
172
139
|
export declare class EntireBlockLayoutStrategy extends LayoutUtil.EdgeSkipper {
|
|
173
140
|
readonly formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
174
141
|
readonly column: LayoutType.Column;
|
|
175
142
|
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, column: LayoutType.Column);
|
|
176
|
-
/**
|
|
177
|
-
* @override
|
|
178
|
-
*/
|
|
179
143
|
startNonInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
180
|
-
/**
|
|
181
|
-
* @override
|
|
182
|
-
*/
|
|
183
144
|
afterNonInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
184
145
|
}
|
|
185
146
|
export declare class FragmentedBlockLayoutStrategy extends LayoutUtil.EdgeSkipper {
|
|
@@ -193,13 +154,7 @@ export declare class RepetitiveElementsOwnerLayoutProcessor extends LayoutProces
|
|
|
193
154
|
doInitialLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
194
155
|
private layoutEntireBlock;
|
|
195
156
|
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
196
|
-
/**
|
|
197
|
-
* @override
|
|
198
|
-
*/
|
|
199
157
|
finishBreak(column: LayoutType.Column, nodeContext: Vtree.NodeContext, forceRemoveSelf: boolean, endOfColumn: boolean): Task.Result<boolean> | null;
|
|
200
|
-
/**
|
|
201
|
-
* @override
|
|
202
|
-
*/
|
|
203
158
|
clearOverflownViewNodes(column: LayoutType.Column, parentNodeContext: Vtree.NodeContext, nodeContext: Vtree.NodeContext, removeSelf: boolean): void;
|
|
204
159
|
}
|
|
205
160
|
export declare function appendHeaderToAncestors(nodeContext: Vtree.NodeContext, column: LayoutType.Column): void;
|
|
@@ -50,13 +50,7 @@ export declare class BetweenTableRowBreakPosition extends BreakPosition.EdgeBrea
|
|
|
50
50
|
acceptableCellBreakPositions: Layout.BreakPositionAndNodeContext[];
|
|
51
51
|
private rowIndex;
|
|
52
52
|
constructor(position: Vtree.NodeContext, breakOnEdge: string | null, overflows: boolean, columnBlockSize: number);
|
|
53
|
-
/**
|
|
54
|
-
* @override
|
|
55
|
-
*/
|
|
56
53
|
findAcceptableBreak(column: Layout.Column, penalty: number): Vtree.NodeContext;
|
|
57
|
-
/**
|
|
58
|
-
* @override
|
|
59
|
-
*/
|
|
60
54
|
getMinBreakPenalty(): number;
|
|
61
55
|
getAcceptableCellBreakPositions(): Layout.BreakPositionAndNodeContext[];
|
|
62
56
|
private getRowIndex;
|
|
@@ -68,13 +62,7 @@ export declare class InsideTableRowBreakPosition extends BreakPosition.AbstractB
|
|
|
68
62
|
readonly formattingContext: TableFormattingContext;
|
|
69
63
|
acceptableCellBreakPositions: Layout.BreakPositionAndNodeContext[];
|
|
70
64
|
constructor(rowIndex: number, beforeNodeContext: Vtree.NodeContext, formattingContext: TableFormattingContext);
|
|
71
|
-
/**
|
|
72
|
-
* @override
|
|
73
|
-
*/
|
|
74
65
|
findAcceptableBreak(column: Layout.Column, penalty: number): Vtree.NodeContext;
|
|
75
|
-
/**
|
|
76
|
-
* @override
|
|
77
|
-
*/
|
|
78
66
|
getMinBreakPenalty(): number;
|
|
79
67
|
getAcceptableCellBreakPositions(): Layout.BreakPositionAndNodeContext[];
|
|
80
68
|
private getCellFragments;
|
|
@@ -104,17 +92,8 @@ export declare class TableFormattingContext extends RepetitiveElementImpl.Repeti
|
|
|
104
92
|
cellBreakPositions: BrokenTableCellPosition[];
|
|
105
93
|
repetitiveElements: RepetitiveElement.RepetitiveElements | null;
|
|
106
94
|
constructor(parent: Vtree.FormattingContext, tableSourceNode: Element);
|
|
107
|
-
/**
|
|
108
|
-
* @override
|
|
109
|
-
*/
|
|
110
95
|
getName(): string;
|
|
111
|
-
/**
|
|
112
|
-
* @override
|
|
113
|
-
*/
|
|
114
96
|
isFirstTime(nodeContext: Vtree.NodeContext, firstTime: boolean): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* @override
|
|
117
|
-
*/
|
|
118
97
|
getParent(): Vtree.FormattingContext;
|
|
119
98
|
finishFragment(): void;
|
|
120
99
|
addRow(rowIndex: number, row: TableRow): void;
|
|
@@ -142,9 +121,7 @@ export declare class TableFormattingContext extends RepetitiveElementImpl.Repeti
|
|
|
142
121
|
} | null): RepetitiveElement.ElementsOffset[];
|
|
143
122
|
collectElementsOffsetOfHighestColumn(): RepetitiveElement.ElementsOffset[];
|
|
144
123
|
private collectElementsOffsetFromColumn;
|
|
145
|
-
/** @override */
|
|
146
124
|
saveState(): any;
|
|
147
|
-
/** @override */
|
|
148
125
|
restoreState(state: any): void;
|
|
149
126
|
}
|
|
150
127
|
export declare class ElementsOffsetOfTableCell implements RepetitiveElement.ElementsOffset {
|
|
@@ -165,21 +142,11 @@ export declare class EntireTableLayoutStrategy extends LayoutUtil.EdgeSkipper {
|
|
|
165
142
|
checkPoints: Vtree.NodeContext[];
|
|
166
143
|
inHeaderOrFooter: boolean;
|
|
167
144
|
constructor(formattingContext: TableFormattingContext, column: Layout.Column);
|
|
168
|
-
/**
|
|
169
|
-
* @override
|
|
170
|
-
*/
|
|
171
145
|
startNonInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
172
|
-
/**
|
|
173
|
-
* @override
|
|
174
|
-
*/
|
|
175
146
|
afterNonInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
176
|
-
/** @override */
|
|
177
147
|
startNonElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
178
|
-
/** @override */
|
|
179
148
|
afterNonElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
180
|
-
/** @override */
|
|
181
149
|
startInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
182
|
-
/** @override */
|
|
183
150
|
afterInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
184
151
|
registerCheckPoint(state: LayoutUtil.LayoutIteratorState): void;
|
|
185
152
|
postLayoutBlockContents(state: LayoutUtil.LayoutIteratorState): void;
|
|
@@ -224,25 +191,15 @@ export declare class TableLayoutProcessor implements LayoutProcessor.LayoutProce
|
|
|
224
191
|
addColGroups(formattingContext: TableFormattingContext, rootViewNode: Element, firstChild: Node | null): void;
|
|
225
192
|
removeColGroups(formattingContext: TableFormattingContext, rootViewNode: Element): void;
|
|
226
193
|
doLayout(nodeContext: Vtree.NodeContext, column: Layout.Column): Task.Result<Vtree.NodeContext>;
|
|
227
|
-
/**
|
|
228
|
-
* @override
|
|
229
|
-
*/
|
|
194
|
+
/** @override */
|
|
230
195
|
layout(nodeContext: Vtree.NodeContext, column: Layout.Column, leadingEdge: boolean): Task.Result<Vtree.NodeContext>;
|
|
231
|
-
/**
|
|
232
|
-
* @override
|
|
233
|
-
*/
|
|
196
|
+
/** @override */
|
|
234
197
|
createEdgeBreakPosition(position: Vtree.NodeContext, breakOnEdge: string | null, overflows: boolean, columnBlockSize: number): LayoutType.BreakPosition;
|
|
235
|
-
/**
|
|
236
|
-
* @override
|
|
237
|
-
*/
|
|
198
|
+
/** @override */
|
|
238
199
|
startNonInlineElementNode(nodeContext: Vtree.NodeContext): boolean;
|
|
239
|
-
/**
|
|
240
|
-
* @override
|
|
241
|
-
*/
|
|
200
|
+
/** @override */
|
|
242
201
|
afterNonInlineElementNode(nodeContext: Vtree.NodeContext, stopAtOverflow: boolean): boolean;
|
|
243
|
-
/**
|
|
244
|
-
* @override
|
|
245
|
-
*/
|
|
202
|
+
/** @override */
|
|
246
203
|
finishBreak(column: Layout.Column, nodeContext: Vtree.NodeContext, forceRemoveSelf: boolean, endOfColumn: boolean): Task.Result<boolean>;
|
|
247
204
|
/** @override */
|
|
248
205
|
clearOverflownViewNodes(column: Layout.Column, parentNodeContext: Vtree.NodeContext, nodeContext: Vtree.NodeContext, removeSelf: boolean): void;
|
|
@@ -251,73 +208,40 @@ export declare class LayoutRetryer extends LayoutRetryers.AbstractLayoutRetryer
|
|
|
251
208
|
private tableFormattingContext;
|
|
252
209
|
private readonly processor;
|
|
253
210
|
constructor(tableFormattingContext: TableFormattingContext, processor: TableLayoutProcessor);
|
|
254
|
-
/**
|
|
255
|
-
* @override
|
|
256
|
-
*/
|
|
257
211
|
resolveLayoutMode(nodeContext: Vtree.NodeContext): LayoutType.LayoutMode;
|
|
258
|
-
/**
|
|
259
|
-
* @override
|
|
260
|
-
*/
|
|
261
212
|
clearNodes(initialPosition: Vtree.NodeContext): void;
|
|
262
|
-
/**
|
|
263
|
-
* @override
|
|
264
|
-
*/
|
|
265
213
|
restoreState(nodeContext: Vtree.NodeContext, column: Layout.Column): void;
|
|
266
214
|
}
|
|
267
215
|
export declare class LayoutEntireTable extends RepetitiveElementImpl.LayoutEntireBlock {
|
|
268
216
|
readonly processor: TableLayoutProcessor;
|
|
269
217
|
constructor(formattingContext: TableFormattingContext, processor: TableLayoutProcessor);
|
|
270
|
-
/**
|
|
271
|
-
* @override
|
|
272
|
-
*/
|
|
273
218
|
doLayout(nodeContext: Vtree.NodeContext, column: Layout.Column): Task.Result<Vtree.NodeContext>;
|
|
274
219
|
}
|
|
275
220
|
export declare class EntireTableBreakPosition extends BreakPosition.EdgeBreakPosition {
|
|
276
221
|
constructor(tableNodeContext: Vtree.NodeContext);
|
|
277
|
-
/**
|
|
278
|
-
* @override
|
|
279
|
-
*/
|
|
280
222
|
getMinBreakPenalty(): number;
|
|
281
|
-
/**
|
|
282
|
-
* @override
|
|
283
|
-
*/
|
|
284
223
|
breakPositionChosen(column: Layout.Column): void;
|
|
285
224
|
}
|
|
286
225
|
export declare class EntireTableLayoutConstraint implements Layout.FragmentLayoutConstraint {
|
|
287
226
|
tableRootNode: Node;
|
|
288
227
|
flagmentLayoutConstraintType: FragmentLayoutConstraintType;
|
|
289
228
|
constructor(tableRootNode: Node);
|
|
290
|
-
/**
|
|
291
|
-
* @override
|
|
292
|
-
*/
|
|
229
|
+
/** @override */
|
|
293
230
|
allowLayout(nodeContext: Vtree.NodeContext, overflownNodeContext: Vtree.NodeContext, column: Layout.Column): boolean;
|
|
294
|
-
/**
|
|
295
|
-
* @override
|
|
296
|
-
*/
|
|
231
|
+
/** @override */
|
|
297
232
|
nextCandidate(nodeContext: Vtree.NodeContext): boolean;
|
|
298
|
-
/**
|
|
299
|
-
* @override
|
|
300
|
-
*/
|
|
233
|
+
/** @override */
|
|
301
234
|
postLayout(allowed: boolean, positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: Layout.Column): void;
|
|
302
|
-
/**
|
|
303
|
-
* @override
|
|
304
|
-
*/
|
|
235
|
+
/** @override */
|
|
305
236
|
finishBreak(nodeContext: Vtree.NodeContext, column: Layout.Column): Task.Result<boolean>;
|
|
306
|
-
/**
|
|
307
|
-
* @override
|
|
308
|
-
*/
|
|
237
|
+
/** @override */
|
|
309
238
|
equalsTo(constraint: Layout.FragmentLayoutConstraint): boolean;
|
|
310
|
-
/**
|
|
311
|
-
* @override
|
|
312
|
-
*/
|
|
239
|
+
/** @override */
|
|
313
240
|
getPriorityOfFinishBreak(): number;
|
|
314
241
|
}
|
|
315
242
|
export declare class LayoutFragmentedTable extends RepetitiveElementImpl.LayoutFragmentedBlock {
|
|
316
243
|
readonly processor: TableLayoutProcessor;
|
|
317
244
|
constructor(formattingContext: TableFormattingContext, processor: TableLayoutProcessor);
|
|
318
|
-
/**
|
|
319
|
-
* @override
|
|
320
|
-
*/
|
|
321
245
|
doLayout(nodeContext: Vtree.NodeContext, column: Layout.Column): Task.Result<Vtree.NodeContext>;
|
|
322
246
|
}
|
|
323
247
|
export declare class TableRowLayoutConstraint extends RepetitiveElementImpl.RepetitiveElementsOwnerLayoutConstraint implements Table.TableRowLayoutConstraint {
|
|
@@ -327,18 +251,13 @@ export declare class TableRowLayoutConstraint extends RepetitiveElementImpl.Repe
|
|
|
327
251
|
breakPosition: Vtree.NodeContext;
|
|
328
252
|
}[];
|
|
329
253
|
constructor(nodeContext: Vtree.NodeContext);
|
|
330
|
-
/** @override */
|
|
331
254
|
allowLayout(nodeContext: Vtree.NodeContext, overflownNodeContext: Vtree.NodeContext, column: Layout.Column): boolean;
|
|
332
|
-
/** @override */
|
|
333
255
|
nextCandidate(nodeContext: Vtree.NodeContext): boolean;
|
|
334
|
-
/** @override */
|
|
335
256
|
postLayout(allowed: boolean, positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: Layout.Column): void;
|
|
336
|
-
/** @override */
|
|
337
257
|
finishBreak(nodeContext: Vtree.NodeContext, column: Layout.Column): Task.Result<boolean>;
|
|
338
258
|
removeDummyRowNodes(nodeContext: Vtree.NodeContext): void;
|
|
339
259
|
private collectCellFragmentLayoutConstraints;
|
|
340
260
|
private getCellFragemnts;
|
|
341
261
|
getElementsOffsetsForTableCell(column: Layout.Column): RepetitiveElement.ElementsOffset[];
|
|
342
|
-
/** @override */
|
|
343
262
|
equalsTo(constraint: Layout.FragmentLayoutConstraint): boolean;
|
|
344
263
|
}
|