@vivliostyle/core 2.24.2 → 2.25.0
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/adaptive-viewer.d.ts +167 -167
- package/lib/vivliostyle/asserts.d.ts +21 -21
- package/lib/vivliostyle/assets.d.ts +35 -35
- package/lib/vivliostyle/base.d.ts +189 -189
- package/lib/vivliostyle/break-position.d.ts +39 -39
- package/lib/vivliostyle/break.d.ts +112 -112
- package/lib/vivliostyle/cfi.d.ts +77 -77
- package/lib/vivliostyle/columns.d.ts +52 -52
- package/lib/vivliostyle/constants.d.ts +53 -53
- package/lib/vivliostyle/core-viewer.d.ts +240 -240
- package/lib/vivliostyle/counters.d.ts +127 -127
- package/lib/vivliostyle/css-cascade.d.ts +974 -954
- package/lib/vivliostyle/css-logical-util.d.ts +3 -3
- package/lib/vivliostyle/css-page.d.ts +451 -450
- package/lib/vivliostyle/css-parser.d.ts +320 -320
- package/lib/vivliostyle/css-prop.d.ts +74 -74
- package/lib/vivliostyle/css-styler.d.ts +210 -210
- package/lib/vivliostyle/css-tokenizer.d.ts +243 -243
- package/lib/vivliostyle/css-validator.d.ts +319 -319
- package/lib/vivliostyle/css.d.ts +205 -205
- package/lib/vivliostyle/diff.d.ts +26 -26
- package/lib/vivliostyle/display.d.ts +62 -57
- package/lib/vivliostyle/epub.d.ts +329 -329
- package/lib/vivliostyle/exprs.d.ts +395 -395
- package/lib/vivliostyle/font.d.ts +87 -87
- package/lib/vivliostyle/footnotes.d.ts +41 -41
- package/lib/vivliostyle/geometry-util.d.ts +110 -110
- package/lib/vivliostyle/layout-helper.d.ts +16 -15
- package/lib/vivliostyle/layout-processor.d.ts +73 -73
- package/lib/vivliostyle/layout-retryers.d.ts +21 -21
- package/lib/vivliostyle/layout-util.d.ts +55 -55
- package/lib/vivliostyle/layout.d.ts +456 -456
- package/lib/vivliostyle/logging.d.ts +56 -56
- package/lib/vivliostyle/matchers.d.ts +36 -36
- package/lib/vivliostyle/math-util.d.ts +22 -22
- package/lib/vivliostyle/net.d.ts +72 -72
- package/lib/vivliostyle/ops.d.ts +263 -263
- package/lib/vivliostyle/page-floats.d.ts +178 -178
- package/lib/vivliostyle/page-master.d.ts +247 -247
- package/lib/vivliostyle/plugin.d.ts +172 -172
- package/lib/vivliostyle/print.d.ts +7 -7
- package/lib/vivliostyle/profile.d.ts +59 -59
- package/lib/vivliostyle/pseudo-element.d.ts +32 -32
- package/lib/vivliostyle/repetitive-element.d.ts +162 -162
- package/lib/vivliostyle/scripts.d.ts +15 -15
- package/lib/vivliostyle/sha1.d.ts +33 -33
- package/lib/vivliostyle/shared.d.ts +24 -24
- package/lib/vivliostyle/sizing.d.ts +29 -29
- package/lib/vivliostyle/table.d.ts +263 -263
- package/lib/vivliostyle/task-util.d.ts +37 -37
- package/lib/vivliostyle/task.d.ts +357 -357
- package/lib/vivliostyle/text-polyfill.d.ts +3 -3
- package/lib/vivliostyle/toc.d.ts +64 -64
- package/lib/vivliostyle/types.d.ts +977 -977
- package/lib/vivliostyle/urls.d.ts +25 -25
- package/lib/vivliostyle/vgen.d.ts +213 -213
- package/lib/vivliostyle/viewer-app.d.ts +19 -19
- package/lib/vivliostyle/vtree.d.ts +392 -392
- package/lib/vivliostyle/xml-doc.d.ts +88 -88
- package/lib/vivliostyle.d.ts +6 -6
- package/lib/vivliostyle.js +1 -1
- package/lib/vivliostyle.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
import * as LayoutProcessor from "./layout-processor";
|
|
2
|
-
import * as LayoutRetryers from "./layout-retryers";
|
|
3
|
-
import * as LayoutUtil from "./layout-util";
|
|
4
|
-
import * as Task from "./task";
|
|
5
|
-
import { FormattingContextType, FragmentLayoutConstraintType, Layout as LayoutType, RepetitiveElement, Vtree } from "./types";
|
|
6
|
-
export declare class RepetitiveElementsOwnerFormattingContext implements RepetitiveElement.RepetitiveElementsOwnerFormattingContext {
|
|
7
|
-
readonly parent: Vtree.FormattingContext;
|
|
8
|
-
readonly rootSourceNode: Element;
|
|
9
|
-
formattingContextType: FormattingContextType;
|
|
10
|
-
isRoot: boolean;
|
|
11
|
-
repetitiveElements: RepetitiveElement.RepetitiveElements;
|
|
12
|
-
constructor(parent: Vtree.FormattingContext, rootSourceNode: Element);
|
|
13
|
-
/** @override */
|
|
14
|
-
getName(): string;
|
|
15
|
-
/** @override */
|
|
16
|
-
isFirstTime(nodeContext: Vtree.NodeContext, firstTime: boolean): boolean;
|
|
17
|
-
/** @override */
|
|
18
|
-
getParent(): Vtree.FormattingContext;
|
|
19
|
-
getRepetitiveElements(): RepetitiveElement.RepetitiveElements;
|
|
20
|
-
getRootViewNode(position: Vtree.NodeContext): Element | null;
|
|
21
|
-
getRootNodeContext(nodeContext: Vtree.NodeContext): Vtree.NodeContext | null;
|
|
22
|
-
initializeRepetitiveElements(vertical: boolean): void;
|
|
23
|
-
/** @override */
|
|
24
|
-
saveState(): any;
|
|
25
|
-
/** @override */
|
|
26
|
-
restoreState(state: any): void;
|
|
27
|
-
}
|
|
28
|
-
export
|
|
29
|
-
export declare class RepetitiveElements implements RepetitiveElement.RepetitiveElements {
|
|
30
|
-
private readonly vertical;
|
|
31
|
-
ownerSourceNode: Element;
|
|
32
|
-
private headerSourceNode;
|
|
33
|
-
private footerSourceNode;
|
|
34
|
-
private headerViewNode;
|
|
35
|
-
private footerViewNode;
|
|
36
|
-
private headerNodePosition;
|
|
37
|
-
private footerNodePosition;
|
|
38
|
-
private headerHeight;
|
|
39
|
-
private footerHeight;
|
|
40
|
-
isSkipHeader: boolean;
|
|
41
|
-
isSkipFooter: boolean;
|
|
42
|
-
enableSkippingFooter: boolean;
|
|
43
|
-
enableSkippingHeader: boolean;
|
|
44
|
-
doneInitialLayout: boolean;
|
|
45
|
-
firstContentSourceNode: Element | null;
|
|
46
|
-
lastContentSourceNode: Element | null;
|
|
47
|
-
private affectedNodeCache;
|
|
48
|
-
private afterLastContentNodeCache;
|
|
49
|
-
allowInsert: boolean;
|
|
50
|
-
allowInsertRepeatitiveElements: boolean;
|
|
51
|
-
constructor(vertical: boolean, ownerSourceNode: Element);
|
|
52
|
-
setHeaderNodeContext(nodeContext: Vtree.NodeContext): void;
|
|
53
|
-
setFooterNodeContext(nodeContext: Vtree.NodeContext): void;
|
|
54
|
-
updateHeight(column: LayoutType.Column): void;
|
|
55
|
-
prepareLayoutFragment(): void;
|
|
56
|
-
appendHeaderToFragment(rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
57
|
-
appendFooterToFragment(rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
58
|
-
appendElementToFragment(nodePosition: Vtree.NodePosition, rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
59
|
-
moveChildren(from: Element, to: Element, firstChild: Node | null): void;
|
|
60
|
-
/** @override */
|
|
61
|
-
calculateOffset(nodeContext: Vtree.NodeContext): number;
|
|
62
|
-
/** @override */
|
|
63
|
-
calculateMinimumOffset(nodeContext: Vtree.NodeContext): number;
|
|
64
|
-
isAfterLastContent(nodeContext: Vtree.NodeContext): boolean;
|
|
65
|
-
private affectTo;
|
|
66
|
-
private findResultFromCache;
|
|
67
|
-
private isAfterNodeContextOf;
|
|
68
|
-
isFirstContentNode(nodeContext: Vtree.NodeContext): boolean;
|
|
69
|
-
isEnableToUpdateState(): boolean;
|
|
70
|
-
updateState(): void;
|
|
71
|
-
preventSkippingHeader(): void;
|
|
72
|
-
preventSkippingFooter(): void;
|
|
73
|
-
isHeaderRegistered(): boolean;
|
|
74
|
-
isFooterRegistered(): boolean;
|
|
75
|
-
isHeaderSourceNode(node: Node): boolean;
|
|
76
|
-
isFooterSourceNode(node: Node): boolean;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* @abstract
|
|
80
|
-
*/
|
|
81
|
-
export declare abstract class LayoutEntireBlock implements LayoutType.LayoutMode {
|
|
82
|
-
formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
83
|
-
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext);
|
|
84
|
-
/** @override */
|
|
85
|
-
abstract doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
86
|
-
/** @override */
|
|
87
|
-
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
88
|
-
/** @override */
|
|
89
|
-
postLayout(positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: LayoutType.Column, accepted: boolean): boolean;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* @abstract
|
|
93
|
-
*/
|
|
94
|
-
export declare abstract class LayoutFragmentedBlock implements LayoutType.LayoutMode {
|
|
95
|
-
formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
96
|
-
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext);
|
|
97
|
-
/** @override */
|
|
98
|
-
abstract doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
99
|
-
/** @override */
|
|
100
|
-
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
101
|
-
/** @override */
|
|
102
|
-
postLayout(positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: LayoutType.Column, accepted: boolean): boolean;
|
|
103
|
-
}
|
|
104
|
-
export declare class LayoutEntireOwnerBlock extends LayoutEntireBlock {
|
|
105
|
-
readonly processor: RepetitiveElementsOwnerLayoutProcessor;
|
|
106
|
-
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
107
|
-
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
108
|
-
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
109
|
-
}
|
|
110
|
-
export declare class LayoutFragmentedOwnerBlock extends LayoutFragmentedBlock {
|
|
111
|
-
readonly processor: RepetitiveElementsOwnerLayoutProcessor;
|
|
112
|
-
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
113
|
-
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
114
|
-
}
|
|
115
|
-
export declare class RepetitiveElementsOwnerLayoutConstraint implements RepetitiveElement.RepetitiveElementsOwnerLayoutConstraint {
|
|
116
|
-
flagmentLayoutConstraintType: FragmentLayoutConstraintType;
|
|
117
|
-
nodeContext: Vtree.NodeContext;
|
|
118
|
-
constructor(nodeContext: Vtree.NodeContext);
|
|
119
|
-
/** @override */
|
|
120
|
-
allowLayout(nodeContext: Vtree.NodeContext, overflownNodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
121
|
-
/** @override */
|
|
122
|
-
nextCandidate(nodeContext: Vtree.NodeContext): boolean;
|
|
123
|
-
/** @override */
|
|
124
|
-
postLayout(allowed: boolean, positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: LayoutType.Column): void;
|
|
125
|
-
/** @override */
|
|
126
|
-
finishBreak(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<boolean>;
|
|
127
|
-
getRepetitiveElements(): RepetitiveElement.RepetitiveElements;
|
|
128
|
-
/** @override */
|
|
129
|
-
equalsTo(constraint: LayoutType.FragmentLayoutConstraint): boolean;
|
|
130
|
-
/** @override */
|
|
131
|
-
getPriorityOfFinishBreak(): number;
|
|
132
|
-
}
|
|
133
|
-
export declare class RepetitiveElementsOwnerLayoutRetryer extends LayoutRetryers.AbstractLayoutRetryer {
|
|
134
|
-
readonly formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
135
|
-
private readonly processor;
|
|
136
|
-
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
137
|
-
resolveLayoutMode(nodeContext: Vtree.NodeContext): LayoutType.LayoutMode;
|
|
138
|
-
}
|
|
139
|
-
export declare class EntireBlockLayoutStrategy extends LayoutUtil.EdgeSkipper {
|
|
140
|
-
readonly formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
141
|
-
readonly column: LayoutType.Column;
|
|
142
|
-
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, column: LayoutType.Column);
|
|
143
|
-
startNonInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
144
|
-
afterNonInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
145
|
-
}
|
|
146
|
-
export declare class FragmentedBlockLayoutStrategy extends LayoutUtil.EdgeSkipper {
|
|
147
|
-
readonly formattingContext: RepetitiveElementsOwnerFormattingContext;
|
|
148
|
-
readonly column: LayoutType.Column;
|
|
149
|
-
constructor(formattingContext: RepetitiveElementsOwnerFormattingContext, column: LayoutType.Column);
|
|
150
|
-
}
|
|
151
|
-
export declare class RepetitiveElementsOwnerLayoutProcessor extends LayoutProcessor.BlockLayoutProcessor implements LayoutProcessor.LayoutProcessor {
|
|
152
|
-
layout(nodeContext: Vtree.NodeContext, column: LayoutType.Column, leadingEdge: boolean): Task.Result<Vtree.NodeContext>;
|
|
153
|
-
startNonInlineElementNode(nodeContext: Vtree.NodeContext): boolean;
|
|
154
|
-
doInitialLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
155
|
-
private layoutEntireBlock;
|
|
156
|
-
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
157
|
-
finishBreak(column: LayoutType.Column, nodeContext: Vtree.NodeContext, forceRemoveSelf: boolean, endOfColumn: boolean): Task.Result<boolean> | null;
|
|
158
|
-
clearOverflownViewNodes(column: LayoutType.Column, parentNodeContext: Vtree.NodeContext, nodeContext: Vtree.NodeContext, removeSelf: boolean): void;
|
|
159
|
-
}
|
|
160
|
-
export declare function appendHeaderToAncestors(nodeContext: Vtree.NodeContext, column: LayoutType.Column): void;
|
|
161
|
-
export declare function appendHeader(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<boolean>;
|
|
162
|
-
export declare function appendFooter(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<boolean>;
|
|
1
|
+
import * as LayoutProcessor from "./layout-processor";
|
|
2
|
+
import * as LayoutRetryers from "./layout-retryers";
|
|
3
|
+
import * as LayoutUtil from "./layout-util";
|
|
4
|
+
import * as Task from "./task";
|
|
5
|
+
import { FormattingContextType, FragmentLayoutConstraintType, Layout as LayoutType, RepetitiveElement, Vtree } from "./types";
|
|
6
|
+
export declare class RepetitiveElementsOwnerFormattingContext implements RepetitiveElement.RepetitiveElementsOwnerFormattingContext {
|
|
7
|
+
readonly parent: Vtree.FormattingContext;
|
|
8
|
+
readonly rootSourceNode: Element;
|
|
9
|
+
formattingContextType: FormattingContextType;
|
|
10
|
+
isRoot: boolean;
|
|
11
|
+
repetitiveElements: RepetitiveElement.RepetitiveElements;
|
|
12
|
+
constructor(parent: Vtree.FormattingContext, rootSourceNode: Element);
|
|
13
|
+
/** @override */
|
|
14
|
+
getName(): string;
|
|
15
|
+
/** @override */
|
|
16
|
+
isFirstTime(nodeContext: Vtree.NodeContext, firstTime: boolean): boolean;
|
|
17
|
+
/** @override */
|
|
18
|
+
getParent(): Vtree.FormattingContext;
|
|
19
|
+
getRepetitiveElements(): RepetitiveElement.RepetitiveElements;
|
|
20
|
+
getRootViewNode(position: Vtree.NodeContext): Element | null;
|
|
21
|
+
getRootNodeContext(nodeContext: Vtree.NodeContext): Vtree.NodeContext | null;
|
|
22
|
+
initializeRepetitiveElements(vertical: boolean): void;
|
|
23
|
+
/** @override */
|
|
24
|
+
saveState(): any;
|
|
25
|
+
/** @override */
|
|
26
|
+
restoreState(state: any): void;
|
|
27
|
+
}
|
|
28
|
+
export type ElementsOffset = RepetitiveElement.ElementsOffset;
|
|
29
|
+
export declare class RepetitiveElements implements RepetitiveElement.RepetitiveElements {
|
|
30
|
+
private readonly vertical;
|
|
31
|
+
ownerSourceNode: Element;
|
|
32
|
+
private headerSourceNode;
|
|
33
|
+
private footerSourceNode;
|
|
34
|
+
private headerViewNode;
|
|
35
|
+
private footerViewNode;
|
|
36
|
+
private headerNodePosition;
|
|
37
|
+
private footerNodePosition;
|
|
38
|
+
private headerHeight;
|
|
39
|
+
private footerHeight;
|
|
40
|
+
isSkipHeader: boolean;
|
|
41
|
+
isSkipFooter: boolean;
|
|
42
|
+
enableSkippingFooter: boolean;
|
|
43
|
+
enableSkippingHeader: boolean;
|
|
44
|
+
doneInitialLayout: boolean;
|
|
45
|
+
firstContentSourceNode: Element | null;
|
|
46
|
+
lastContentSourceNode: Element | null;
|
|
47
|
+
private affectedNodeCache;
|
|
48
|
+
private afterLastContentNodeCache;
|
|
49
|
+
allowInsert: boolean;
|
|
50
|
+
allowInsertRepeatitiveElements: boolean;
|
|
51
|
+
constructor(vertical: boolean, ownerSourceNode: Element);
|
|
52
|
+
setHeaderNodeContext(nodeContext: Vtree.NodeContext): void;
|
|
53
|
+
setFooterNodeContext(nodeContext: Vtree.NodeContext): void;
|
|
54
|
+
updateHeight(column: LayoutType.Column): void;
|
|
55
|
+
prepareLayoutFragment(): void;
|
|
56
|
+
appendHeaderToFragment(rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
57
|
+
appendFooterToFragment(rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
58
|
+
appendElementToFragment(nodePosition: Vtree.NodePosition, rootNodeContext: Vtree.NodeContext, firstChild: Node | null, column: LayoutType.Column): Task.Result<boolean>;
|
|
59
|
+
moveChildren(from: Element, to: Element, firstChild: Node | null): void;
|
|
60
|
+
/** @override */
|
|
61
|
+
calculateOffset(nodeContext: Vtree.NodeContext): number;
|
|
62
|
+
/** @override */
|
|
63
|
+
calculateMinimumOffset(nodeContext: Vtree.NodeContext): number;
|
|
64
|
+
isAfterLastContent(nodeContext: Vtree.NodeContext): boolean;
|
|
65
|
+
private affectTo;
|
|
66
|
+
private findResultFromCache;
|
|
67
|
+
private isAfterNodeContextOf;
|
|
68
|
+
isFirstContentNode(nodeContext: Vtree.NodeContext): boolean;
|
|
69
|
+
isEnableToUpdateState(): boolean;
|
|
70
|
+
updateState(): void;
|
|
71
|
+
preventSkippingHeader(): void;
|
|
72
|
+
preventSkippingFooter(): void;
|
|
73
|
+
isHeaderRegistered(): boolean;
|
|
74
|
+
isFooterRegistered(): boolean;
|
|
75
|
+
isHeaderSourceNode(node: Node): boolean;
|
|
76
|
+
isFooterSourceNode(node: Node): boolean;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @abstract
|
|
80
|
+
*/
|
|
81
|
+
export declare abstract class LayoutEntireBlock implements LayoutType.LayoutMode {
|
|
82
|
+
formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
83
|
+
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext);
|
|
84
|
+
/** @override */
|
|
85
|
+
abstract doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
86
|
+
/** @override */
|
|
87
|
+
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
88
|
+
/** @override */
|
|
89
|
+
postLayout(positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: LayoutType.Column, accepted: boolean): boolean;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @abstract
|
|
93
|
+
*/
|
|
94
|
+
export declare abstract class LayoutFragmentedBlock implements LayoutType.LayoutMode {
|
|
95
|
+
formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
96
|
+
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext);
|
|
97
|
+
/** @override */
|
|
98
|
+
abstract doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
99
|
+
/** @override */
|
|
100
|
+
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
101
|
+
/** @override */
|
|
102
|
+
postLayout(positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: LayoutType.Column, accepted: boolean): boolean;
|
|
103
|
+
}
|
|
104
|
+
export declare class LayoutEntireOwnerBlock extends LayoutEntireBlock {
|
|
105
|
+
readonly processor: RepetitiveElementsOwnerLayoutProcessor;
|
|
106
|
+
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
107
|
+
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
108
|
+
accept(nodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
109
|
+
}
|
|
110
|
+
export declare class LayoutFragmentedOwnerBlock extends LayoutFragmentedBlock {
|
|
111
|
+
readonly processor: RepetitiveElementsOwnerLayoutProcessor;
|
|
112
|
+
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
113
|
+
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
114
|
+
}
|
|
115
|
+
export declare class RepetitiveElementsOwnerLayoutConstraint implements RepetitiveElement.RepetitiveElementsOwnerLayoutConstraint {
|
|
116
|
+
flagmentLayoutConstraintType: FragmentLayoutConstraintType;
|
|
117
|
+
nodeContext: Vtree.NodeContext;
|
|
118
|
+
constructor(nodeContext: Vtree.NodeContext);
|
|
119
|
+
/** @override */
|
|
120
|
+
allowLayout(nodeContext: Vtree.NodeContext, overflownNodeContext: Vtree.NodeContext, column: LayoutType.Column): boolean;
|
|
121
|
+
/** @override */
|
|
122
|
+
nextCandidate(nodeContext: Vtree.NodeContext): boolean;
|
|
123
|
+
/** @override */
|
|
124
|
+
postLayout(allowed: boolean, positionAfter: Vtree.NodeContext, initialPosition: Vtree.NodeContext, column: LayoutType.Column): void;
|
|
125
|
+
/** @override */
|
|
126
|
+
finishBreak(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<boolean>;
|
|
127
|
+
getRepetitiveElements(): RepetitiveElement.RepetitiveElements;
|
|
128
|
+
/** @override */
|
|
129
|
+
equalsTo(constraint: LayoutType.FragmentLayoutConstraint): boolean;
|
|
130
|
+
/** @override */
|
|
131
|
+
getPriorityOfFinishBreak(): number;
|
|
132
|
+
}
|
|
133
|
+
export declare class RepetitiveElementsOwnerLayoutRetryer extends LayoutRetryers.AbstractLayoutRetryer {
|
|
134
|
+
readonly formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
135
|
+
private readonly processor;
|
|
136
|
+
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, processor: RepetitiveElementsOwnerLayoutProcessor);
|
|
137
|
+
resolveLayoutMode(nodeContext: Vtree.NodeContext): LayoutType.LayoutMode;
|
|
138
|
+
}
|
|
139
|
+
export declare class EntireBlockLayoutStrategy extends LayoutUtil.EdgeSkipper {
|
|
140
|
+
readonly formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext;
|
|
141
|
+
readonly column: LayoutType.Column;
|
|
142
|
+
constructor(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, column: LayoutType.Column);
|
|
143
|
+
startNonInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
144
|
+
afterNonInlineElementNode(state: LayoutUtil.LayoutIteratorState): void | Task.Result<boolean>;
|
|
145
|
+
}
|
|
146
|
+
export declare class FragmentedBlockLayoutStrategy extends LayoutUtil.EdgeSkipper {
|
|
147
|
+
readonly formattingContext: RepetitiveElementsOwnerFormattingContext;
|
|
148
|
+
readonly column: LayoutType.Column;
|
|
149
|
+
constructor(formattingContext: RepetitiveElementsOwnerFormattingContext, column: LayoutType.Column);
|
|
150
|
+
}
|
|
151
|
+
export declare class RepetitiveElementsOwnerLayoutProcessor extends LayoutProcessor.BlockLayoutProcessor implements LayoutProcessor.LayoutProcessor {
|
|
152
|
+
layout(nodeContext: Vtree.NodeContext, column: LayoutType.Column, leadingEdge: boolean): Task.Result<Vtree.NodeContext>;
|
|
153
|
+
startNonInlineElementNode(nodeContext: Vtree.NodeContext): boolean;
|
|
154
|
+
doInitialLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
155
|
+
private layoutEntireBlock;
|
|
156
|
+
doLayout(nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<Vtree.NodeContext>;
|
|
157
|
+
finishBreak(column: LayoutType.Column, nodeContext: Vtree.NodeContext, forceRemoveSelf: boolean, endOfColumn: boolean): Task.Result<boolean> | null;
|
|
158
|
+
clearOverflownViewNodes(column: LayoutType.Column, parentNodeContext: Vtree.NodeContext, nodeContext: Vtree.NodeContext, removeSelf: boolean): void;
|
|
159
|
+
}
|
|
160
|
+
export declare function appendHeaderToAncestors(nodeContext: Vtree.NodeContext, column: LayoutType.Column): void;
|
|
161
|
+
export declare function appendHeader(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<boolean>;
|
|
162
|
+
export declare function appendFooter(formattingContext: RepetitiveElement.RepetitiveElementsOwnerFormattingContext, nodeContext: Vtree.NodeContext, column: LayoutType.Column): Task.Result<boolean>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as CssStyler from "./css-styler";
|
|
2
|
-
import * as Task from "./task";
|
|
3
|
-
/**
|
|
4
|
-
* Enable or disable JavaScript in html support
|
|
5
|
-
*/
|
|
6
|
-
export declare let allowScripts: boolean;
|
|
7
|
-
export declare function setAllowScripts(value: boolean): void;
|
|
8
|
-
export declare function loadScript(srcScriptElem: HTMLScriptElement, window: Window, flags?: {
|
|
9
|
-
inHead?: boolean;
|
|
10
|
-
atEnd?: boolean;
|
|
11
|
-
forceDefer?: boolean;
|
|
12
|
-
}): Task.Result<boolean>;
|
|
13
|
-
export declare function loadScriptsInHead(srcDocument: Document, window: Window, styler: CssStyler.Styler): Task.Result<boolean>;
|
|
14
|
-
export declare function loadScriptsAtEnd(window: Window): Task.Result<boolean>;
|
|
15
|
-
export declare function hasScripts(window: Window): boolean;
|
|
1
|
+
import * as CssStyler from "./css-styler";
|
|
2
|
+
import * as Task from "./task";
|
|
3
|
+
/**
|
|
4
|
+
* Enable or disable JavaScript in html support
|
|
5
|
+
*/
|
|
6
|
+
export declare let allowScripts: boolean;
|
|
7
|
+
export declare function setAllowScripts(value: boolean): void;
|
|
8
|
+
export declare function loadScript(srcScriptElem: HTMLScriptElement, window: Window, flags?: {
|
|
9
|
+
inHead?: boolean;
|
|
10
|
+
atEnd?: boolean;
|
|
11
|
+
forceDefer?: boolean;
|
|
12
|
+
}): Task.Result<boolean>;
|
|
13
|
+
export declare function loadScriptsInHead(srcDocument: Document, window: Window, styler: CssStyler.Styler): Task.Result<boolean>;
|
|
14
|
+
export declare function loadScriptsAtEnd(window: Window): Task.Result<boolean>;
|
|
15
|
+
export declare function hasScripts(window: Window): boolean;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @return big-endian byte sequence
|
|
3
|
-
*/
|
|
4
|
-
export declare function encode32(n: number): string;
|
|
5
|
-
/**
|
|
6
|
-
* @param bytes big-endian byte sequence
|
|
7
|
-
*/
|
|
8
|
-
export declare function decode32(bytes: string): number;
|
|
9
|
-
/**
|
|
10
|
-
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
11
|
-
* @return big-endian uint32 numbers representing sha1 hash
|
|
12
|
-
*/
|
|
13
|
-
export declare function bytesToSHA1Int32(bytes: string): number[];
|
|
14
|
-
/**
|
|
15
|
-
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
16
|
-
* @return uint8 numbers representing sha1 hash
|
|
17
|
-
*/
|
|
18
|
-
export declare function bytesToSHA1Int8(bytes: string): number[];
|
|
19
|
-
/**
|
|
20
|
-
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
21
|
-
* @return chars with codes 0 - 255 equal to SHA1 hash of the input
|
|
22
|
-
*/
|
|
23
|
-
export declare function bytesToSHA1Bytes(bytes: string): string;
|
|
24
|
-
/**
|
|
25
|
-
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
26
|
-
* @return hex-encoded SHA1 hash
|
|
27
|
-
*/
|
|
28
|
-
export declare function bytesToSHA1Hex(bytes: string): string;
|
|
29
|
-
/**
|
|
30
|
-
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
31
|
-
* @return base64-encoded SHA1 hash of the input
|
|
32
|
-
*/
|
|
33
|
-
export declare function bytesToSHA1Base64(bytes: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* @return big-endian byte sequence
|
|
3
|
+
*/
|
|
4
|
+
export declare function encode32(n: number): string;
|
|
5
|
+
/**
|
|
6
|
+
* @param bytes big-endian byte sequence
|
|
7
|
+
*/
|
|
8
|
+
export declare function decode32(bytes: string): number;
|
|
9
|
+
/**
|
|
10
|
+
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
11
|
+
* @return big-endian uint32 numbers representing sha1 hash
|
|
12
|
+
*/
|
|
13
|
+
export declare function bytesToSHA1Int32(bytes: string): number[];
|
|
14
|
+
/**
|
|
15
|
+
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
16
|
+
* @return uint8 numbers representing sha1 hash
|
|
17
|
+
*/
|
|
18
|
+
export declare function bytesToSHA1Int8(bytes: string): number[];
|
|
19
|
+
/**
|
|
20
|
+
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
21
|
+
* @return chars with codes 0 - 255 equal to SHA1 hash of the input
|
|
22
|
+
*/
|
|
23
|
+
export declare function bytesToSHA1Bytes(bytes: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
26
|
+
* @return hex-encoded SHA1 hash
|
|
27
|
+
*/
|
|
28
|
+
export declare function bytesToSHA1Hex(bytes: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* @param bytes chars with codes 0 - 255 that represent message byte values
|
|
31
|
+
* @return base64-encoded SHA1 hash of the input
|
|
32
|
+
*/
|
|
33
|
+
export declare function bytesToSHA1Base64(bytes: string): string;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2019 Vivliostyle Foundation
|
|
3
|
-
*
|
|
4
|
-
* Vivliostyle.js is free software: you can redistribute it and/or modify
|
|
5
|
-
* it under the terms of the GNU Affero General Public License as published by
|
|
6
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
7
|
-
* (at your option) any later version.
|
|
8
|
-
*
|
|
9
|
-
* Vivliostyle.js is distributed in the hope that it will be useful,
|
|
10
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
* GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
* along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*
|
|
17
|
-
* @fileoverview Shared - Global variables of Vivliostyle.js
|
|
18
|
-
*/
|
|
19
|
-
import { RepetitiveElement } from "./types";
|
|
20
|
-
export declare let repetitiveElementsCache: {
|
|
21
|
-
root: Element;
|
|
22
|
-
elements: RepetitiveElement.RepetitiveElements;
|
|
23
|
-
}[];
|
|
24
|
-
export declare function clearRepetitiveElementsCache(): void;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2019 Vivliostyle Foundation
|
|
3
|
+
*
|
|
4
|
+
* Vivliostyle.js is free software: you can redistribute it and/or modify
|
|
5
|
+
* it under the terms of the GNU Affero General Public License as published by
|
|
6
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
* (at your option) any later version.
|
|
8
|
+
*
|
|
9
|
+
* Vivliostyle.js is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU Affero General Public License for more details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
15
|
+
* along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
*
|
|
17
|
+
* @fileoverview Shared - Global variables of Vivliostyle.js
|
|
18
|
+
*/
|
|
19
|
+
import { RepetitiveElement } from "./types";
|
|
20
|
+
export declare let repetitiveElementsCache: {
|
|
21
|
+
root: Element;
|
|
22
|
+
elements: RepetitiveElement.RepetitiveElements;
|
|
23
|
+
}[];
|
|
24
|
+
export declare function clearRepetitiveElementsCache(): void;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as Vtree from "./vtree";
|
|
2
|
-
/**
|
|
3
|
-
* Box sizes defined in css-sizing.
|
|
4
|
-
* @enum {string}
|
|
5
|
-
*/
|
|
6
|
-
export declare enum Size {
|
|
7
|
-
FILL_AVAILABLE_INLINE_SIZE = "fill-available inline size",
|
|
8
|
-
FILL_AVAILABLE_BLOCK_SIZE = "fill-available block size",
|
|
9
|
-
FILL_AVAILABLE_WIDTH = "fill-available width",
|
|
10
|
-
FILL_AVAILABLE_HEIGHT = "fill-available height",
|
|
11
|
-
MAX_CONTENT_INLINE_SIZE = "max-content inline size",
|
|
12
|
-
MAX_CONTENT_BLOCK_SIZE = "max-content block size",
|
|
13
|
-
MAX_CONTENT_WIDTH = "max-content width",
|
|
14
|
-
MAX_CONTENT_HEIGHT = "max-content height",
|
|
15
|
-
MIN_CONTENT_INLINE_SIZE = "min-content inline size",
|
|
16
|
-
MIN_CONTENT_BLOCK_SIZE = "min-content block size",
|
|
17
|
-
MIN_CONTENT_WIDTH = "min-content width",
|
|
18
|
-
MIN_CONTENT_HEIGHT = "min-content height",
|
|
19
|
-
FIT_CONTENT_INLINE_SIZE = "fit-content inline size",
|
|
20
|
-
FIT_CONTENT_BLOCK_SIZE = "fit-content block size",
|
|
21
|
-
FIT_CONTENT_WIDTH = "fit-content width",
|
|
22
|
-
FIT_CONTENT_HEIGHT = "fit-content height"
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Get specified sizes for the element.
|
|
26
|
-
*/
|
|
27
|
-
export declare function getSize(clientLayout: Vtree.ClientLayout, element: Element, sizes: Size[]): {
|
|
28
|
-
[key in Size]: number;
|
|
29
|
-
};
|
|
1
|
+
import * as Vtree from "./vtree";
|
|
2
|
+
/**
|
|
3
|
+
* Box sizes defined in css-sizing.
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*/
|
|
6
|
+
export declare enum Size {
|
|
7
|
+
FILL_AVAILABLE_INLINE_SIZE = "fill-available inline size",
|
|
8
|
+
FILL_AVAILABLE_BLOCK_SIZE = "fill-available block size",
|
|
9
|
+
FILL_AVAILABLE_WIDTH = "fill-available width",
|
|
10
|
+
FILL_AVAILABLE_HEIGHT = "fill-available height",
|
|
11
|
+
MAX_CONTENT_INLINE_SIZE = "max-content inline size",
|
|
12
|
+
MAX_CONTENT_BLOCK_SIZE = "max-content block size",
|
|
13
|
+
MAX_CONTENT_WIDTH = "max-content width",
|
|
14
|
+
MAX_CONTENT_HEIGHT = "max-content height",
|
|
15
|
+
MIN_CONTENT_INLINE_SIZE = "min-content inline size",
|
|
16
|
+
MIN_CONTENT_BLOCK_SIZE = "min-content block size",
|
|
17
|
+
MIN_CONTENT_WIDTH = "min-content width",
|
|
18
|
+
MIN_CONTENT_HEIGHT = "min-content height",
|
|
19
|
+
FIT_CONTENT_INLINE_SIZE = "fit-content inline size",
|
|
20
|
+
FIT_CONTENT_BLOCK_SIZE = "fit-content block size",
|
|
21
|
+
FIT_CONTENT_WIDTH = "fit-content width",
|
|
22
|
+
FIT_CONTENT_HEIGHT = "fit-content height"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get specified sizes for the element.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getSize(clientLayout: Vtree.ClientLayout, element: Element, sizes: Size[]): {
|
|
28
|
+
[key in Size]: number;
|
|
29
|
+
};
|