@vivliostyle/core 2.24.3 → 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 -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,127 +1,127 @@
|
|
|
1
|
-
import * as Base from "./base";
|
|
2
|
-
import * as CssCascade from "./css-cascade";
|
|
3
|
-
import * as Exprs from "./exprs";
|
|
4
|
-
import * as Vgen from "./vgen";
|
|
5
|
-
import * as Vtree from "./vtree";
|
|
6
|
-
import { Layout } from "./types";
|
|
7
|
-
/**
|
|
8
|
-
* Class representing a reference by target-counter(s).
|
|
9
|
-
* @param targetId ID of the referenced element (transformed by
|
|
10
|
-
* DocumentURLTransformer to handle a reference across multiple source
|
|
11
|
-
* documents)
|
|
12
|
-
* @param resolved If the reference is already resolved or not
|
|
13
|
-
*/
|
|
14
|
-
export declare class TargetCounterReference {
|
|
15
|
-
readonly targetId: string;
|
|
16
|
-
resolved: boolean;
|
|
17
|
-
pageCounters: CssCascade.CounterValues;
|
|
18
|
-
spineIndex: number;
|
|
19
|
-
pageIndex: number;
|
|
20
|
-
constructor(targetId: string, resolved: boolean);
|
|
21
|
-
equals(other: TargetCounterReference): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Returns if the reference is resolved or not.
|
|
24
|
-
*/
|
|
25
|
-
isResolved(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Marks that this reference is resolved.
|
|
28
|
-
*/
|
|
29
|
-
resolve(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Marks that this reference is unresolved.
|
|
32
|
-
*/
|
|
33
|
-
unresolve(): void;
|
|
34
|
-
}
|
|
35
|
-
export declare class CounterStore {
|
|
36
|
-
readonly documentURLTransformer: Base.DocumentURLTransformer;
|
|
37
|
-
countersById: {
|
|
38
|
-
[key: string]: CssCascade.CounterValues;
|
|
39
|
-
};
|
|
40
|
-
pageCountersById: {
|
|
41
|
-
[key: string]: CssCascade.CounterValues;
|
|
42
|
-
};
|
|
43
|
-
currentPageCounters: CssCascade.CounterValues;
|
|
44
|
-
previousPageCounters: CssCascade.CounterValues;
|
|
45
|
-
currentPageCountersStack: CssCascade.CounterValues[];
|
|
46
|
-
pageIndicesById: {
|
|
47
|
-
[key: string]: {
|
|
48
|
-
spineIndex: number;
|
|
49
|
-
pageIndex: number;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
currentPage: Vtree.Page;
|
|
53
|
-
newReferencesOfCurrentPage: TargetCounterReference[];
|
|
54
|
-
referencesToSolve: TargetCounterReference[];
|
|
55
|
-
referencesToSolveStack: TargetCounterReference[][];
|
|
56
|
-
unresolvedReferences: {
|
|
57
|
-
[key: string]: TargetCounterReference[];
|
|
58
|
-
};
|
|
59
|
-
resolvedReferences: {
|
|
60
|
-
[key: string]: TargetCounterReference[];
|
|
61
|
-
};
|
|
62
|
-
private pagesCounterExprs;
|
|
63
|
-
constructor(documentURLTransformer: Base.DocumentURLTransformer);
|
|
64
|
-
createCounterListener(baseURL: string): CssCascade.CounterListener;
|
|
65
|
-
createCounterResolver(baseURL: string, rootScope: Exprs.LexicalScope, pageScope: Exprs.LexicalScope): CssCascade.CounterResolver;
|
|
66
|
-
setCurrentPage(page: Vtree.Page): void;
|
|
67
|
-
private definePageCounter;
|
|
68
|
-
/**
|
|
69
|
-
* Forcefully set the `page` page-based counter to the specified value.
|
|
70
|
-
*/
|
|
71
|
-
forceSetPageCounter(pageNumber: number): void;
|
|
72
|
-
/**
|
|
73
|
-
* Update the page-based counters with 'counter-reset' and 'counter-increment'
|
|
74
|
-
* properties within the page context. Call before starting layout of the
|
|
75
|
-
* page.
|
|
76
|
-
*/
|
|
77
|
-
updatePageCounters(cascadedPageStyle: CssCascade.ElementStyle, context: Exprs.Context): void;
|
|
78
|
-
/**
|
|
79
|
-
* Save current page-based counters values and set them to the values passed
|
|
80
|
-
* in. The saved counter values can be restored by popPageCounters method.
|
|
81
|
-
*/
|
|
82
|
-
pushPageCounters(counters: CssCascade.CounterValues): void;
|
|
83
|
-
/**
|
|
84
|
-
* Restore previously saved page-based counter values.
|
|
85
|
-
*/
|
|
86
|
-
popPageCounters(): void;
|
|
87
|
-
/**
|
|
88
|
-
* Resolve a reference with the specified ID.
|
|
89
|
-
*/
|
|
90
|
-
resolveReference(id: string): void;
|
|
91
|
-
/**
|
|
92
|
-
* Save a reference appeared in the current page.
|
|
93
|
-
* @param resolved If the reference is already resolved or not.
|
|
94
|
-
*/
|
|
95
|
-
saveReferenceOfCurrentPage(id: string, resolved: boolean): void;
|
|
96
|
-
/**
|
|
97
|
-
* Finish the current page; elements with ID are collected and saved with
|
|
98
|
-
* current page-based counter values internally.
|
|
99
|
-
* @param spineIndex Index of the currently laid out spine item
|
|
100
|
-
* @param pageIndex Index of the currently laid out page in its spine item
|
|
101
|
-
*/
|
|
102
|
-
finishPage(spineIndex: number, pageIndex: number): void;
|
|
103
|
-
/**
|
|
104
|
-
* Returns unresolved references pointing to the specified page.
|
|
105
|
-
*/
|
|
106
|
-
getUnresolvedRefsToPage(page: Vtree.Page): {
|
|
107
|
-
spineIndex: number;
|
|
108
|
-
pageIndex: number;
|
|
109
|
-
pageCounters: CssCascade.CounterValues;
|
|
110
|
-
refs: TargetCounterReference[];
|
|
111
|
-
}[];
|
|
112
|
-
/**
|
|
113
|
-
* Save current references to solve and set them to the values passed in.
|
|
114
|
-
* The saved references can be restored by popReferencesToSolve method.
|
|
115
|
-
*/
|
|
116
|
-
pushReferencesToSolve(refs: TargetCounterReference[]): void;
|
|
117
|
-
/**
|
|
118
|
-
* Restore previously saved references to solve.
|
|
119
|
-
*/
|
|
120
|
-
popReferencesToSolve(): void;
|
|
121
|
-
registerPageCounterExpr(name: string, format: (p1: number[]) => string, expr: Exprs.Val): void;
|
|
122
|
-
getExprContentListener(): Vtree.ExprContentListener;
|
|
123
|
-
private exprContentListener;
|
|
124
|
-
finishLastPage(viewport: Vgen.Viewport): void;
|
|
125
|
-
createLayoutConstraint(pageIndex: number): Layout.LayoutConstraint;
|
|
126
|
-
}
|
|
127
|
-
export declare const PAGES_COUNTER_ATTR = "data-vivliostyle-pages-counter";
|
|
1
|
+
import * as Base from "./base";
|
|
2
|
+
import * as CssCascade from "./css-cascade";
|
|
3
|
+
import * as Exprs from "./exprs";
|
|
4
|
+
import * as Vgen from "./vgen";
|
|
5
|
+
import * as Vtree from "./vtree";
|
|
6
|
+
import { Layout } from "./types";
|
|
7
|
+
/**
|
|
8
|
+
* Class representing a reference by target-counter(s).
|
|
9
|
+
* @param targetId ID of the referenced element (transformed by
|
|
10
|
+
* DocumentURLTransformer to handle a reference across multiple source
|
|
11
|
+
* documents)
|
|
12
|
+
* @param resolved If the reference is already resolved or not
|
|
13
|
+
*/
|
|
14
|
+
export declare class TargetCounterReference {
|
|
15
|
+
readonly targetId: string;
|
|
16
|
+
resolved: boolean;
|
|
17
|
+
pageCounters: CssCascade.CounterValues;
|
|
18
|
+
spineIndex: number;
|
|
19
|
+
pageIndex: number;
|
|
20
|
+
constructor(targetId: string, resolved: boolean);
|
|
21
|
+
equals(other: TargetCounterReference): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Returns if the reference is resolved or not.
|
|
24
|
+
*/
|
|
25
|
+
isResolved(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Marks that this reference is resolved.
|
|
28
|
+
*/
|
|
29
|
+
resolve(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Marks that this reference is unresolved.
|
|
32
|
+
*/
|
|
33
|
+
unresolve(): void;
|
|
34
|
+
}
|
|
35
|
+
export declare class CounterStore {
|
|
36
|
+
readonly documentURLTransformer: Base.DocumentURLTransformer;
|
|
37
|
+
countersById: {
|
|
38
|
+
[key: string]: CssCascade.CounterValues;
|
|
39
|
+
};
|
|
40
|
+
pageCountersById: {
|
|
41
|
+
[key: string]: CssCascade.CounterValues;
|
|
42
|
+
};
|
|
43
|
+
currentPageCounters: CssCascade.CounterValues;
|
|
44
|
+
previousPageCounters: CssCascade.CounterValues;
|
|
45
|
+
currentPageCountersStack: CssCascade.CounterValues[];
|
|
46
|
+
pageIndicesById: {
|
|
47
|
+
[key: string]: {
|
|
48
|
+
spineIndex: number;
|
|
49
|
+
pageIndex: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
currentPage: Vtree.Page;
|
|
53
|
+
newReferencesOfCurrentPage: TargetCounterReference[];
|
|
54
|
+
referencesToSolve: TargetCounterReference[];
|
|
55
|
+
referencesToSolveStack: TargetCounterReference[][];
|
|
56
|
+
unresolvedReferences: {
|
|
57
|
+
[key: string]: TargetCounterReference[];
|
|
58
|
+
};
|
|
59
|
+
resolvedReferences: {
|
|
60
|
+
[key: string]: TargetCounterReference[];
|
|
61
|
+
};
|
|
62
|
+
private pagesCounterExprs;
|
|
63
|
+
constructor(documentURLTransformer: Base.DocumentURLTransformer);
|
|
64
|
+
createCounterListener(baseURL: string): CssCascade.CounterListener;
|
|
65
|
+
createCounterResolver(baseURL: string, rootScope: Exprs.LexicalScope, pageScope: Exprs.LexicalScope): CssCascade.CounterResolver;
|
|
66
|
+
setCurrentPage(page: Vtree.Page): void;
|
|
67
|
+
private definePageCounter;
|
|
68
|
+
/**
|
|
69
|
+
* Forcefully set the `page` page-based counter to the specified value.
|
|
70
|
+
*/
|
|
71
|
+
forceSetPageCounter(pageNumber: number): void;
|
|
72
|
+
/**
|
|
73
|
+
* Update the page-based counters with 'counter-reset' and 'counter-increment'
|
|
74
|
+
* properties within the page context. Call before starting layout of the
|
|
75
|
+
* page.
|
|
76
|
+
*/
|
|
77
|
+
updatePageCounters(cascadedPageStyle: CssCascade.ElementStyle, context: Exprs.Context): void;
|
|
78
|
+
/**
|
|
79
|
+
* Save current page-based counters values and set them to the values passed
|
|
80
|
+
* in. The saved counter values can be restored by popPageCounters method.
|
|
81
|
+
*/
|
|
82
|
+
pushPageCounters(counters: CssCascade.CounterValues): void;
|
|
83
|
+
/**
|
|
84
|
+
* Restore previously saved page-based counter values.
|
|
85
|
+
*/
|
|
86
|
+
popPageCounters(): void;
|
|
87
|
+
/**
|
|
88
|
+
* Resolve a reference with the specified ID.
|
|
89
|
+
*/
|
|
90
|
+
resolveReference(id: string): void;
|
|
91
|
+
/**
|
|
92
|
+
* Save a reference appeared in the current page.
|
|
93
|
+
* @param resolved If the reference is already resolved or not.
|
|
94
|
+
*/
|
|
95
|
+
saveReferenceOfCurrentPage(id: string, resolved: boolean): void;
|
|
96
|
+
/**
|
|
97
|
+
* Finish the current page; elements with ID are collected and saved with
|
|
98
|
+
* current page-based counter values internally.
|
|
99
|
+
* @param spineIndex Index of the currently laid out spine item
|
|
100
|
+
* @param pageIndex Index of the currently laid out page in its spine item
|
|
101
|
+
*/
|
|
102
|
+
finishPage(spineIndex: number, pageIndex: number): void;
|
|
103
|
+
/**
|
|
104
|
+
* Returns unresolved references pointing to the specified page.
|
|
105
|
+
*/
|
|
106
|
+
getUnresolvedRefsToPage(page: Vtree.Page): {
|
|
107
|
+
spineIndex: number;
|
|
108
|
+
pageIndex: number;
|
|
109
|
+
pageCounters: CssCascade.CounterValues;
|
|
110
|
+
refs: TargetCounterReference[];
|
|
111
|
+
}[];
|
|
112
|
+
/**
|
|
113
|
+
* Save current references to solve and set them to the values passed in.
|
|
114
|
+
* The saved references can be restored by popReferencesToSolve method.
|
|
115
|
+
*/
|
|
116
|
+
pushReferencesToSolve(refs: TargetCounterReference[]): void;
|
|
117
|
+
/**
|
|
118
|
+
* Restore previously saved references to solve.
|
|
119
|
+
*/
|
|
120
|
+
popReferencesToSolve(): void;
|
|
121
|
+
registerPageCounterExpr(name: string, format: (p1: number[]) => string, expr: Exprs.Val): void;
|
|
122
|
+
getExprContentListener(): Vtree.ExprContentListener;
|
|
123
|
+
private exprContentListener;
|
|
124
|
+
finishLastPage(viewport: Vgen.Viewport): void;
|
|
125
|
+
createLayoutConstraint(pageIndex: number): Layout.LayoutConstraint;
|
|
126
|
+
}
|
|
127
|
+
export declare const PAGES_COUNTER_ATTR = "data-vivliostyle-pages-counter";
|