@vivliostyle/core 2.24.3 → 2.25.1
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 +130 -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 -451
- 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,178 +1,178 @@
|
|
|
1
|
-
import * as Css from "./css";
|
|
2
|
-
import * as GeometryUtil from "./geometry-util";
|
|
3
|
-
import * as Task from "./task";
|
|
4
|
-
import { Layout as LayoutType, PageFloats, Vtree } from "./types";
|
|
5
|
-
export declare const FloatReference: typeof PageFloats.FloatReference;
|
|
6
|
-
export type FloatReference = PageFloats.FloatReference;
|
|
7
|
-
type PageFloatID = PageFloats.PageFloatID;
|
|
8
|
-
export declare function floatReferenceOf(str: string): FloatReference;
|
|
9
|
-
export declare function isPageFloat(floatReference: FloatReference): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Interpret a float value with the writing-mode and direction assuming the
|
|
12
|
-
* float-reference is inline and returns "left" or "right".
|
|
13
|
-
*/
|
|
14
|
-
export declare function resolveInlineFloatDirection(floatSide: string, vertical: boolean, direction: string): string;
|
|
15
|
-
export declare class PageFloat implements PageFloats.PageFloat {
|
|
16
|
-
readonly nodePosition: Vtree.NodePosition;
|
|
17
|
-
readonly floatReference: FloatReference;
|
|
18
|
-
readonly floatSide: string;
|
|
19
|
-
readonly clearSide: string | null;
|
|
20
|
-
readonly flowName: string;
|
|
21
|
-
readonly floatMinWrapBlock: Css.Numeric | null;
|
|
22
|
-
order: number | null;
|
|
23
|
-
id: PageFloatID | null;
|
|
24
|
-
constructor(nodePosition: Vtree.NodePosition, floatReference: FloatReference, floatSide: string, clearSide: string | null, flowName: string, floatMinWrapBlock: Css.Numeric | null);
|
|
25
|
-
getOrder(): number;
|
|
26
|
-
getId(): PageFloatID;
|
|
27
|
-
isAllowedOnContext(pageFloatLayoutContext: PageFloatLayoutContext): boolean;
|
|
28
|
-
isAllowedToPrecede(other: PageFloat): boolean;
|
|
29
|
-
}
|
|
30
|
-
export declare class PageFloatStore {
|
|
31
|
-
private floats;
|
|
32
|
-
private nextPageFloatIndex;
|
|
33
|
-
private nextOrder;
|
|
34
|
-
private createPageFloatId;
|
|
35
|
-
addPageFloat(float: PageFloat): void;
|
|
36
|
-
findPageFloatByNodePosition(nodePosition: Vtree.NodePosition): PageFloat | null;
|
|
37
|
-
findPageFloatById(id: PageFloatID): PageFloat;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @param continues Represents whether the float is fragmented and continues
|
|
41
|
-
* after this fragment
|
|
42
|
-
*/
|
|
43
|
-
export declare class PageFloatFragment implements PageFloats.PageFloatFragment {
|
|
44
|
-
readonly floatReference: FloatReference;
|
|
45
|
-
readonly floatSide: string;
|
|
46
|
-
readonly continuations: PageFloatContinuation[];
|
|
47
|
-
readonly area: Vtree.Container;
|
|
48
|
-
readonly continues: boolean;
|
|
49
|
-
constructor(floatReference: FloatReference, floatSide: string, continuations: PageFloatContinuation[], area: Vtree.Container, continues: boolean);
|
|
50
|
-
hasFloat(float: PageFloat): boolean;
|
|
51
|
-
findNotAllowedFloat(context: PageFloatLayoutContext): PageFloat | null;
|
|
52
|
-
getOuterShape(): GeometryUtil.Shape;
|
|
53
|
-
getOuterRect(): GeometryUtil.Rect;
|
|
54
|
-
getOrder(): number;
|
|
55
|
-
shouldBeStashedBefore(float: PageFloat): boolean;
|
|
56
|
-
addContinuations(continuations: PageFloatContinuation[]): void;
|
|
57
|
-
getFlowName(): string;
|
|
58
|
-
}
|
|
59
|
-
export declare class PageFloatContinuation implements PageFloats.PageFloatContinuation {
|
|
60
|
-
readonly float: PageFloat;
|
|
61
|
-
readonly nodePosition: Vtree.NodePosition;
|
|
62
|
-
constructor(float: PageFloat, nodePosition: Vtree.NodePosition);
|
|
63
|
-
equals(other: PageFloatContinuation | null): boolean;
|
|
64
|
-
}
|
|
65
|
-
export type PageFloatPlacementCondition = PageFloats.PageFloatPlacementCondition;
|
|
66
|
-
/**
|
|
67
|
-
* @param generatingNodePosition Source NodePosition generating the context.
|
|
68
|
-
* Specify when a column context is generated by a non-root element (for
|
|
69
|
-
* example page floats)
|
|
70
|
-
*/
|
|
71
|
-
export declare class PageFloatLayoutContext implements PageFloats.PageFloatLayoutContext {
|
|
72
|
-
readonly parent: PageFloatLayoutContext;
|
|
73
|
-
private readonly floatReference;
|
|
74
|
-
private container;
|
|
75
|
-
readonly flowName: string | null;
|
|
76
|
-
readonly generatingNodePosition: Vtree.NodePosition | null;
|
|
77
|
-
private children;
|
|
78
|
-
writingMode: Css.Val;
|
|
79
|
-
direction: Css.Val;
|
|
80
|
-
private invalidated;
|
|
81
|
-
private floatStore;
|
|
82
|
-
private forbiddenFloats;
|
|
83
|
-
floatFragments: PageFloatFragment[];
|
|
84
|
-
private stashedFloatFragments;
|
|
85
|
-
private floatAnchors;
|
|
86
|
-
private floatsDeferredToNext;
|
|
87
|
-
private floatsDeferredFromPrevious;
|
|
88
|
-
private layoutConstraints;
|
|
89
|
-
private locked;
|
|
90
|
-
constructor(parent: PageFloatLayoutContext, floatReference: FloatReference | null, container: Vtree.Container, flowName: string | null, generatingNodePosition: Vtree.NodePosition | null, writingMode: Css.Val | null, direction: Css.Val | null);
|
|
91
|
-
private getParent;
|
|
92
|
-
private getPreviousSiblingOf;
|
|
93
|
-
private getPreviousSibling;
|
|
94
|
-
getContainer(floatReference?: FloatReference): Vtree.Container;
|
|
95
|
-
setContainer(container: Vtree.Container): void;
|
|
96
|
-
addPageFloat(float: PageFloat): void;
|
|
97
|
-
getPageFloatLayoutContext(floatReference: FloatReference): PageFloatLayoutContext;
|
|
98
|
-
findPageFloatByNodePosition(nodePosition: Vtree.NodePosition): PageFloat | null;
|
|
99
|
-
private forbid;
|
|
100
|
-
isForbidden(float: PageFloat): boolean;
|
|
101
|
-
addPageFloatFragment(floatFragment: PageFloatFragment, dontInvalidate?: boolean): void;
|
|
102
|
-
removePageFloatFragment(floatFragment: PageFloatFragment, dontInvalidate?: boolean): void;
|
|
103
|
-
findPageFloatFragment(float: PageFloat): PageFloatFragment | null;
|
|
104
|
-
hasFloatFragments(condition?: (p1: PageFloatFragment) => boolean): boolean;
|
|
105
|
-
hasContinuingFloatFragmentsInFlow(flowName: string): boolean;
|
|
106
|
-
registerPageFloatAnchor(float: PageFloat, anchorViewNode: Node): void;
|
|
107
|
-
collectPageFloatAnchors(): any;
|
|
108
|
-
isAnchorAlreadyAppeared(floatId: PageFloatID): boolean;
|
|
109
|
-
deferPageFloat(continuation: PageFloatContinuation): void;
|
|
110
|
-
hasPrecedingFloatsDeferredToNext(float: PageFloat, ignoreReference?: boolean): boolean;
|
|
111
|
-
getLastFollowingFloatInFragments(float: PageFloat): PageFloat | null;
|
|
112
|
-
getDeferredPageFloatContinuations(flowName?: string | null): PageFloatContinuation[];
|
|
113
|
-
getPageFloatContinuationsDeferredToNext(flowName?: string | null): PageFloatContinuation[];
|
|
114
|
-
getFloatsDeferredToNextInChildContexts(): PageFloat[];
|
|
115
|
-
checkAndForbidNotAllowedFloat(): boolean;
|
|
116
|
-
checkAndForbidFloatFollowingDeferredFloat(): boolean;
|
|
117
|
-
finish(): void;
|
|
118
|
-
hasSameContainerAs(other: PageFloatLayoutContext): boolean;
|
|
119
|
-
invalidate(): void;
|
|
120
|
-
detachChildren(): PageFloatLayoutContext[];
|
|
121
|
-
attachChildren(children: PageFloatLayoutContext[]): void;
|
|
122
|
-
isInvalidated(): any;
|
|
123
|
-
validate(): void;
|
|
124
|
-
private toLogical;
|
|
125
|
-
private toPhysical;
|
|
126
|
-
removeEndFloatFragments(floatSide: string): void;
|
|
127
|
-
stashEndFloatFragments(float: PageFloat): void;
|
|
128
|
-
restoreStashedFragments(floatReference: FloatReference): void;
|
|
129
|
-
discardStashedFragments(floatReference: FloatReference): void;
|
|
130
|
-
getStashedFloatFragments(floatReference: FloatReference): PageFloatFragment[];
|
|
131
|
-
private getLimitValue;
|
|
132
|
-
private getLimitValueInner;
|
|
133
|
-
private getLimitValuesInner;
|
|
134
|
-
/**
|
|
135
|
-
* @param anchorEdge Null indicates that the anchor is not in the current
|
|
136
|
-
* container.
|
|
137
|
-
* @return Logical float side (snap-block is resolved when init=false). Null
|
|
138
|
-
* indicates that the float area does not fit inside the container
|
|
139
|
-
*/
|
|
140
|
-
setFloatAreaDimensions(area: LayoutType.PageFloatArea, floatReference: FloatReference, floatSide: string, anchorEdge: number | null, init: boolean, force: boolean, condition: PageFloatPlacementCondition): string | null;
|
|
141
|
-
getFloatFragmentExclusions(): GeometryUtil.Shape[];
|
|
142
|
-
private reattachFloatFragments;
|
|
143
|
-
getMaxReachedAfterEdge(): number;
|
|
144
|
-
getBlockStartEdgeOfBlockEndFloats(): number;
|
|
145
|
-
getPageFloatClearEdge(clear: string, column: LayoutType.Column): number;
|
|
146
|
-
getPageFloatPlacementCondition(float: PageFloat, floatSide: string, clearSide: string | null): PageFloatPlacementCondition;
|
|
147
|
-
getLayoutConstraints(): LayoutType.LayoutConstraint[];
|
|
148
|
-
addLayoutConstraint(layoutConstraint: LayoutType.LayoutConstraint, floatReference: FloatReference): void;
|
|
149
|
-
isColumnFullWithPageFloats(column: LayoutType.Column): boolean;
|
|
150
|
-
getMaxBlockSizeOfPageFloats(): number;
|
|
151
|
-
lock(): void;
|
|
152
|
-
unlock(): void;
|
|
153
|
-
isLocked(): boolean;
|
|
154
|
-
}
|
|
155
|
-
export interface PageFloatLayoutStrategy extends PageFloats.PageFloatLayoutStrategy {
|
|
156
|
-
}
|
|
157
|
-
export declare class PageFloatLayoutStrategyResolver {
|
|
158
|
-
static register(strategy: PageFloatLayoutStrategy): void;
|
|
159
|
-
findByNodeContext(nodeContext: Vtree.NodeContext): PageFloatLayoutStrategy;
|
|
160
|
-
findByFloat(float: PageFloat): PageFloatLayoutStrategy;
|
|
161
|
-
}
|
|
162
|
-
export declare class NormalPageFloatLayoutStrategy implements PageFloatLayoutStrategy {
|
|
163
|
-
/** @override */
|
|
164
|
-
appliesToNodeContext(nodeContext: Vtree.NodeContext): boolean;
|
|
165
|
-
/** @override */
|
|
166
|
-
appliesToFloat(float: PageFloat): boolean;
|
|
167
|
-
/** @override */
|
|
168
|
-
createPageFloat(nodeContext: Vtree.NodeContext, pageFloatLayoutContext: PageFloatLayoutContext, column: LayoutType.Column): Task.Result<PageFloat>;
|
|
169
|
-
/** @override */
|
|
170
|
-
createPageFloatFragment(continuations: PageFloatContinuation[], floatSide: string, floatArea: LayoutType.PageFloatArea, continues: boolean): PageFloatFragment;
|
|
171
|
-
/** @override */
|
|
172
|
-
findPageFloatFragment(float: PageFloat, pageFloatLayoutContext: PageFloatLayoutContext): PageFloatFragment | null;
|
|
173
|
-
/** @override */
|
|
174
|
-
adjustPageFloatArea(floatArea: LayoutType.PageFloatArea, floatContainer: Vtree.Container, column: LayoutType.Column): void;
|
|
175
|
-
/** @override */
|
|
176
|
-
forbid(float: PageFloat, pageFloatLayoutContext: PageFloatLayoutContext): void;
|
|
177
|
-
}
|
|
178
|
-
export {};
|
|
1
|
+
import * as Css from "./css";
|
|
2
|
+
import * as GeometryUtil from "./geometry-util";
|
|
3
|
+
import * as Task from "./task";
|
|
4
|
+
import { Layout as LayoutType, PageFloats, Vtree } from "./types";
|
|
5
|
+
export declare const FloatReference: typeof PageFloats.FloatReference;
|
|
6
|
+
export type FloatReference = PageFloats.FloatReference;
|
|
7
|
+
type PageFloatID = PageFloats.PageFloatID;
|
|
8
|
+
export declare function floatReferenceOf(str: string): FloatReference;
|
|
9
|
+
export declare function isPageFloat(floatReference: FloatReference): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Interpret a float value with the writing-mode and direction assuming the
|
|
12
|
+
* float-reference is inline and returns "left" or "right".
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveInlineFloatDirection(floatSide: string, vertical: boolean, direction: string): string;
|
|
15
|
+
export declare class PageFloat implements PageFloats.PageFloat {
|
|
16
|
+
readonly nodePosition: Vtree.NodePosition;
|
|
17
|
+
readonly floatReference: FloatReference;
|
|
18
|
+
readonly floatSide: string;
|
|
19
|
+
readonly clearSide: string | null;
|
|
20
|
+
readonly flowName: string;
|
|
21
|
+
readonly floatMinWrapBlock: Css.Numeric | null;
|
|
22
|
+
order: number | null;
|
|
23
|
+
id: PageFloatID | null;
|
|
24
|
+
constructor(nodePosition: Vtree.NodePosition, floatReference: FloatReference, floatSide: string, clearSide: string | null, flowName: string, floatMinWrapBlock: Css.Numeric | null);
|
|
25
|
+
getOrder(): number;
|
|
26
|
+
getId(): PageFloatID;
|
|
27
|
+
isAllowedOnContext(pageFloatLayoutContext: PageFloatLayoutContext): boolean;
|
|
28
|
+
isAllowedToPrecede(other: PageFloat): boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare class PageFloatStore {
|
|
31
|
+
private floats;
|
|
32
|
+
private nextPageFloatIndex;
|
|
33
|
+
private nextOrder;
|
|
34
|
+
private createPageFloatId;
|
|
35
|
+
addPageFloat(float: PageFloat): void;
|
|
36
|
+
findPageFloatByNodePosition(nodePosition: Vtree.NodePosition): PageFloat | null;
|
|
37
|
+
findPageFloatById(id: PageFloatID): PageFloat;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @param continues Represents whether the float is fragmented and continues
|
|
41
|
+
* after this fragment
|
|
42
|
+
*/
|
|
43
|
+
export declare class PageFloatFragment implements PageFloats.PageFloatFragment {
|
|
44
|
+
readonly floatReference: FloatReference;
|
|
45
|
+
readonly floatSide: string;
|
|
46
|
+
readonly continuations: PageFloatContinuation[];
|
|
47
|
+
readonly area: Vtree.Container;
|
|
48
|
+
readonly continues: boolean;
|
|
49
|
+
constructor(floatReference: FloatReference, floatSide: string, continuations: PageFloatContinuation[], area: Vtree.Container, continues: boolean);
|
|
50
|
+
hasFloat(float: PageFloat): boolean;
|
|
51
|
+
findNotAllowedFloat(context: PageFloatLayoutContext): PageFloat | null;
|
|
52
|
+
getOuterShape(): GeometryUtil.Shape;
|
|
53
|
+
getOuterRect(): GeometryUtil.Rect;
|
|
54
|
+
getOrder(): number;
|
|
55
|
+
shouldBeStashedBefore(float: PageFloat): boolean;
|
|
56
|
+
addContinuations(continuations: PageFloatContinuation[]): void;
|
|
57
|
+
getFlowName(): string;
|
|
58
|
+
}
|
|
59
|
+
export declare class PageFloatContinuation implements PageFloats.PageFloatContinuation {
|
|
60
|
+
readonly float: PageFloat;
|
|
61
|
+
readonly nodePosition: Vtree.NodePosition;
|
|
62
|
+
constructor(float: PageFloat, nodePosition: Vtree.NodePosition);
|
|
63
|
+
equals(other: PageFloatContinuation | null): boolean;
|
|
64
|
+
}
|
|
65
|
+
export type PageFloatPlacementCondition = PageFloats.PageFloatPlacementCondition;
|
|
66
|
+
/**
|
|
67
|
+
* @param generatingNodePosition Source NodePosition generating the context.
|
|
68
|
+
* Specify when a column context is generated by a non-root element (for
|
|
69
|
+
* example page floats)
|
|
70
|
+
*/
|
|
71
|
+
export declare class PageFloatLayoutContext implements PageFloats.PageFloatLayoutContext {
|
|
72
|
+
readonly parent: PageFloatLayoutContext;
|
|
73
|
+
private readonly floatReference;
|
|
74
|
+
private container;
|
|
75
|
+
readonly flowName: string | null;
|
|
76
|
+
readonly generatingNodePosition: Vtree.NodePosition | null;
|
|
77
|
+
private children;
|
|
78
|
+
writingMode: Css.Val;
|
|
79
|
+
direction: Css.Val;
|
|
80
|
+
private invalidated;
|
|
81
|
+
private floatStore;
|
|
82
|
+
private forbiddenFloats;
|
|
83
|
+
floatFragments: PageFloatFragment[];
|
|
84
|
+
private stashedFloatFragments;
|
|
85
|
+
private floatAnchors;
|
|
86
|
+
private floatsDeferredToNext;
|
|
87
|
+
private floatsDeferredFromPrevious;
|
|
88
|
+
private layoutConstraints;
|
|
89
|
+
private locked;
|
|
90
|
+
constructor(parent: PageFloatLayoutContext, floatReference: FloatReference | null, container: Vtree.Container, flowName: string | null, generatingNodePosition: Vtree.NodePosition | null, writingMode: Css.Val | null, direction: Css.Val | null);
|
|
91
|
+
private getParent;
|
|
92
|
+
private getPreviousSiblingOf;
|
|
93
|
+
private getPreviousSibling;
|
|
94
|
+
getContainer(floatReference?: FloatReference): Vtree.Container;
|
|
95
|
+
setContainer(container: Vtree.Container): void;
|
|
96
|
+
addPageFloat(float: PageFloat): void;
|
|
97
|
+
getPageFloatLayoutContext(floatReference: FloatReference): PageFloatLayoutContext;
|
|
98
|
+
findPageFloatByNodePosition(nodePosition: Vtree.NodePosition): PageFloat | null;
|
|
99
|
+
private forbid;
|
|
100
|
+
isForbidden(float: PageFloat): boolean;
|
|
101
|
+
addPageFloatFragment(floatFragment: PageFloatFragment, dontInvalidate?: boolean): void;
|
|
102
|
+
removePageFloatFragment(floatFragment: PageFloatFragment, dontInvalidate?: boolean): void;
|
|
103
|
+
findPageFloatFragment(float: PageFloat): PageFloatFragment | null;
|
|
104
|
+
hasFloatFragments(condition?: (p1: PageFloatFragment) => boolean): boolean;
|
|
105
|
+
hasContinuingFloatFragmentsInFlow(flowName: string): boolean;
|
|
106
|
+
registerPageFloatAnchor(float: PageFloat, anchorViewNode: Node): void;
|
|
107
|
+
collectPageFloatAnchors(): any;
|
|
108
|
+
isAnchorAlreadyAppeared(floatId: PageFloatID): boolean;
|
|
109
|
+
deferPageFloat(continuation: PageFloatContinuation): void;
|
|
110
|
+
hasPrecedingFloatsDeferredToNext(float: PageFloat, ignoreReference?: boolean): boolean;
|
|
111
|
+
getLastFollowingFloatInFragments(float: PageFloat): PageFloat | null;
|
|
112
|
+
getDeferredPageFloatContinuations(flowName?: string | null): PageFloatContinuation[];
|
|
113
|
+
getPageFloatContinuationsDeferredToNext(flowName?: string | null): PageFloatContinuation[];
|
|
114
|
+
getFloatsDeferredToNextInChildContexts(): PageFloat[];
|
|
115
|
+
checkAndForbidNotAllowedFloat(): boolean;
|
|
116
|
+
checkAndForbidFloatFollowingDeferredFloat(): boolean;
|
|
117
|
+
finish(): void;
|
|
118
|
+
hasSameContainerAs(other: PageFloatLayoutContext): boolean;
|
|
119
|
+
invalidate(): void;
|
|
120
|
+
detachChildren(): PageFloatLayoutContext[];
|
|
121
|
+
attachChildren(children: PageFloatLayoutContext[]): void;
|
|
122
|
+
isInvalidated(): any;
|
|
123
|
+
validate(): void;
|
|
124
|
+
private toLogical;
|
|
125
|
+
private toPhysical;
|
|
126
|
+
removeEndFloatFragments(floatSide: string): void;
|
|
127
|
+
stashEndFloatFragments(float: PageFloat): void;
|
|
128
|
+
restoreStashedFragments(floatReference: FloatReference): void;
|
|
129
|
+
discardStashedFragments(floatReference: FloatReference): void;
|
|
130
|
+
getStashedFloatFragments(floatReference: FloatReference): PageFloatFragment[];
|
|
131
|
+
private getLimitValue;
|
|
132
|
+
private getLimitValueInner;
|
|
133
|
+
private getLimitValuesInner;
|
|
134
|
+
/**
|
|
135
|
+
* @param anchorEdge Null indicates that the anchor is not in the current
|
|
136
|
+
* container.
|
|
137
|
+
* @return Logical float side (snap-block is resolved when init=false). Null
|
|
138
|
+
* indicates that the float area does not fit inside the container
|
|
139
|
+
*/
|
|
140
|
+
setFloatAreaDimensions(area: LayoutType.PageFloatArea, floatReference: FloatReference, floatSide: string, anchorEdge: number | null, init: boolean, force: boolean, condition: PageFloatPlacementCondition): string | null;
|
|
141
|
+
getFloatFragmentExclusions(): GeometryUtil.Shape[];
|
|
142
|
+
private reattachFloatFragments;
|
|
143
|
+
getMaxReachedAfterEdge(): number;
|
|
144
|
+
getBlockStartEdgeOfBlockEndFloats(): number;
|
|
145
|
+
getPageFloatClearEdge(clear: string, column: LayoutType.Column): number;
|
|
146
|
+
getPageFloatPlacementCondition(float: PageFloat, floatSide: string, clearSide: string | null): PageFloatPlacementCondition;
|
|
147
|
+
getLayoutConstraints(): LayoutType.LayoutConstraint[];
|
|
148
|
+
addLayoutConstraint(layoutConstraint: LayoutType.LayoutConstraint, floatReference: FloatReference): void;
|
|
149
|
+
isColumnFullWithPageFloats(column: LayoutType.Column): boolean;
|
|
150
|
+
getMaxBlockSizeOfPageFloats(): number;
|
|
151
|
+
lock(): void;
|
|
152
|
+
unlock(): void;
|
|
153
|
+
isLocked(): boolean;
|
|
154
|
+
}
|
|
155
|
+
export interface PageFloatLayoutStrategy extends PageFloats.PageFloatLayoutStrategy {
|
|
156
|
+
}
|
|
157
|
+
export declare class PageFloatLayoutStrategyResolver {
|
|
158
|
+
static register(strategy: PageFloatLayoutStrategy): void;
|
|
159
|
+
findByNodeContext(nodeContext: Vtree.NodeContext): PageFloatLayoutStrategy;
|
|
160
|
+
findByFloat(float: PageFloat): PageFloatLayoutStrategy;
|
|
161
|
+
}
|
|
162
|
+
export declare class NormalPageFloatLayoutStrategy implements PageFloatLayoutStrategy {
|
|
163
|
+
/** @override */
|
|
164
|
+
appliesToNodeContext(nodeContext: Vtree.NodeContext): boolean;
|
|
165
|
+
/** @override */
|
|
166
|
+
appliesToFloat(float: PageFloat): boolean;
|
|
167
|
+
/** @override */
|
|
168
|
+
createPageFloat(nodeContext: Vtree.NodeContext, pageFloatLayoutContext: PageFloatLayoutContext, column: LayoutType.Column): Task.Result<PageFloat>;
|
|
169
|
+
/** @override */
|
|
170
|
+
createPageFloatFragment(continuations: PageFloatContinuation[], floatSide: string, floatArea: LayoutType.PageFloatArea, continues: boolean): PageFloatFragment;
|
|
171
|
+
/** @override */
|
|
172
|
+
findPageFloatFragment(float: PageFloat, pageFloatLayoutContext: PageFloatLayoutContext): PageFloatFragment | null;
|
|
173
|
+
/** @override */
|
|
174
|
+
adjustPageFloatArea(floatArea: LayoutType.PageFloatArea, floatContainer: Vtree.Container, column: LayoutType.Column): void;
|
|
175
|
+
/** @override */
|
|
176
|
+
forbid(float: PageFloat, pageFloatLayoutContext: PageFloatLayoutContext): void;
|
|
177
|
+
}
|
|
178
|
+
export {};
|