@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.
Files changed (63) hide show
  1. package/lib/vivliostyle/adaptive-viewer.d.ts +167 -167
  2. package/lib/vivliostyle/asserts.d.ts +21 -21
  3. package/lib/vivliostyle/assets.d.ts +35 -35
  4. package/lib/vivliostyle/base.d.ts +189 -189
  5. package/lib/vivliostyle/break-position.d.ts +39 -39
  6. package/lib/vivliostyle/break.d.ts +112 -112
  7. package/lib/vivliostyle/cfi.d.ts +77 -77
  8. package/lib/vivliostyle/columns.d.ts +52 -52
  9. package/lib/vivliostyle/constants.d.ts +53 -53
  10. package/lib/vivliostyle/core-viewer.d.ts +240 -240
  11. package/lib/vivliostyle/counters.d.ts +127 -127
  12. package/lib/vivliostyle/css-cascade.d.ts +974 -954
  13. package/lib/vivliostyle/css-logical-util.d.ts +3 -3
  14. package/lib/vivliostyle/css-page.d.ts +451 -450
  15. package/lib/vivliostyle/css-parser.d.ts +320 -320
  16. package/lib/vivliostyle/css-prop.d.ts +74 -74
  17. package/lib/vivliostyle/css-styler.d.ts +210 -210
  18. package/lib/vivliostyle/css-tokenizer.d.ts +243 -243
  19. package/lib/vivliostyle/css-validator.d.ts +319 -319
  20. package/lib/vivliostyle/css.d.ts +205 -205
  21. package/lib/vivliostyle/diff.d.ts +26 -26
  22. package/lib/vivliostyle/display.d.ts +62 -57
  23. package/lib/vivliostyle/epub.d.ts +329 -329
  24. package/lib/vivliostyle/exprs.d.ts +395 -395
  25. package/lib/vivliostyle/font.d.ts +87 -87
  26. package/lib/vivliostyle/footnotes.d.ts +41 -41
  27. package/lib/vivliostyle/geometry-util.d.ts +110 -110
  28. package/lib/vivliostyle/layout-helper.d.ts +16 -15
  29. package/lib/vivliostyle/layout-processor.d.ts +73 -73
  30. package/lib/vivliostyle/layout-retryers.d.ts +21 -21
  31. package/lib/vivliostyle/layout-util.d.ts +55 -55
  32. package/lib/vivliostyle/layout.d.ts +456 -456
  33. package/lib/vivliostyle/logging.d.ts +56 -56
  34. package/lib/vivliostyle/matchers.d.ts +36 -36
  35. package/lib/vivliostyle/math-util.d.ts +22 -22
  36. package/lib/vivliostyle/net.d.ts +72 -72
  37. package/lib/vivliostyle/ops.d.ts +263 -263
  38. package/lib/vivliostyle/page-floats.d.ts +178 -178
  39. package/lib/vivliostyle/page-master.d.ts +247 -247
  40. package/lib/vivliostyle/plugin.d.ts +172 -172
  41. package/lib/vivliostyle/print.d.ts +7 -7
  42. package/lib/vivliostyle/profile.d.ts +59 -59
  43. package/lib/vivliostyle/pseudo-element.d.ts +32 -32
  44. package/lib/vivliostyle/repetitive-element.d.ts +162 -162
  45. package/lib/vivliostyle/scripts.d.ts +15 -15
  46. package/lib/vivliostyle/sha1.d.ts +33 -33
  47. package/lib/vivliostyle/shared.d.ts +24 -24
  48. package/lib/vivliostyle/sizing.d.ts +29 -29
  49. package/lib/vivliostyle/table.d.ts +263 -263
  50. package/lib/vivliostyle/task-util.d.ts +37 -37
  51. package/lib/vivliostyle/task.d.ts +357 -357
  52. package/lib/vivliostyle/text-polyfill.d.ts +3 -3
  53. package/lib/vivliostyle/toc.d.ts +64 -64
  54. package/lib/vivliostyle/types.d.ts +977 -977
  55. package/lib/vivliostyle/urls.d.ts +25 -25
  56. package/lib/vivliostyle/vgen.d.ts +213 -213
  57. package/lib/vivliostyle/viewer-app.d.ts +19 -19
  58. package/lib/vivliostyle/vtree.d.ts +392 -392
  59. package/lib/vivliostyle/xml-doc.d.ts +88 -88
  60. package/lib/vivliostyle.d.ts +6 -6
  61. package/lib/vivliostyle.js +1 -1
  62. package/lib/vivliostyle.js.map +1 -1
  63. package/package.json +5 -5
@@ -1,243 +1,243 @@
1
- /**
2
- * Copyright 2013 Google, Inc.
3
- * Copyright 2017 Trim-marks Inc.
4
- * Copyright 2019 Vivliostyle Foundation
5
- *
6
- * Vivliostyle.js is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU Affero General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * Vivliostyle.js is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU Affero General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Affero General Public License
17
- * along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
18
- *
19
- * @fileoverview CssTokenizer - CSS Tokenizer.
20
- */
21
- /** */
22
- export interface TokenizerHandler {
23
- error(mnemonics: string, token: Token): void;
24
- }
25
- export declare function escapeParseSingle(str: string): string;
26
- export declare function escapeParse(str: string): string;
27
- /**
28
- * @enum {number}
29
- */
30
- export declare enum TokenType {
31
- EOF = 0,
32
- IDENT = 1,
33
- STR = 2,
34
- NUMERIC = 3,
35
- NUM = 4,
36
- INT = 5,
37
- FUNC = 6,
38
- HASH = 7,
39
- URL = 8,
40
- CLASS = 9,
41
- O_PAR = 10,
42
- C_PAR = 11,
43
- O_BRC = 12,
44
- C_BRC = 13,
45
- O_BRK = 14,
46
- C_BRK = 15,
47
- COMMA = 16,
48
- SEMICOL = 17,
49
- COLON = 18,
50
- SLASH = 19,
51
- AT = 20,
52
- PERCENT = 21,
53
- QMARK = 22,
54
- PLUS = 23,
55
- MINUS = 24,
56
- BAR_BAR = 25,
57
- AMP_AMP = 26,
58
- URANGE = 27,
59
- BANG = 31,
60
- DOLLAR = 32,
61
- HAT = 33,
62
- BAR = 34,
63
- TILDE = 35,
64
- STAR = 36,
65
- GT = 37,
66
- LT = 38,
67
- EQ = 39,
68
- BANG_EQ = 41,
69
- DOLLAR_EQ = 42,
70
- HAT_EQ = 43,
71
- BAR_EQ = 44,
72
- TILDE_EQ = 45,
73
- STAR_EQ = 46,
74
- GT_EQ = 47,
75
- LT_EQ = 48,
76
- EQ_EQ = 49,
77
- COL_COL = 50,
78
- CDO = 51,
79
- CDC = 52,
80
- UNKNOWN = 53,
81
- INVALID = 54,
82
- LAST = 54
83
- }
84
- export declare class Token {
85
- type: TokenType;
86
- precededBySpace: boolean;
87
- num: number;
88
- text: string;
89
- position: number;
90
- constructor();
91
- toString(): string;
92
- }
93
- /**
94
- * @enum {number}
95
- */
96
- export declare enum Action {
97
- SPACE = 1,
98
- INT = 2,
99
- IDENT = 3,
100
- BANG = 4,
101
- HASH = 6,
102
- DOLLAR = 7,
103
- PERCENT = 8,
104
- AMP = 9,
105
- O_PAR = 10,
106
- C_PAR = 11,
107
- STAR = 12,
108
- PLUS = 13,
109
- COMMA = 14,
110
- MINUS = 15,
111
- DOT = 16,
112
- SLASH = 17,
113
- COLON = 18,
114
- SEMICOL = 19,
115
- LT = 20,
116
- EQ = 21,
117
- GT = 22,
118
- QMARK = 23,
119
- AT = 24,
120
- O_BRK = 25,
121
- C_BRK = 26,
122
- O_BRC = 27,
123
- C_BRC = 28,
124
- BSLASH = 29,
125
- HAT = 30,
126
- BAR = 31,
127
- TILDE = 32,
128
- STR1 = 33,
129
- STR2 = 34,
130
- END = 35,
131
- EQTAIL = 36,
132
- ENDINT = 37,
133
- ENDNUM = 38,
134
- CONT = 39,
135
- UNIT = 40,
136
- PCUNIT = 41,
137
- NUMBER = 42,
138
- ENDIDNT = 43,
139
- IDNTESC = 44,
140
- ENDIDES = 45,
141
- ENDSTR = 46,
142
- ENDESTR = 47,
143
- STR1ESC = 48,
144
- STR2ESC = 49,
145
- BAR_BAR = 50,
146
- AMP_AMP = 51,
147
- FUNC = 52,
148
- FUNCES = 53,
149
- COMMENT = 54,
150
- COMMST = 55,
151
- ENDNOTK = 56,
152
- MINMIN = 57,
153
- TOINT = 58,
154
- TONUM = 59,
155
- TOIDENT = 60,
156
- TOIDES = 61,
157
- KILL1 = 62,
158
- KILL2 = 63,
159
- URL = 64,
160
- URL1 = 65,
161
- URL2 = 66,
162
- ENDURL = 67,
163
- TERMURL = 68,
164
- FINURL = 69,
165
- LT_BG = 70,
166
- LT_BG_M = 71,
167
- INVALID = 72,
168
- CHKPOSS = 73,
169
- CHKPOSN = 74,
170
- URLESC = 75,
171
- IDESCH = 76,
172
- COL_COL = 77,
173
- TOCLASS = 78,
174
- CHKSP = 79,
175
- EOF = 80,
176
- CDO = 81,
177
- CDC = 82
178
- }
179
- export declare function makeActions(def: Action, spec: Action[]): Action[];
180
- /**
181
- * Start of the token.
182
- */
183
- export declare const actionsNormal: Action[];
184
- /**
185
- * Inside identifier.
186
- */
187
- export declare const actionsIdent: Action[];
188
- /**
189
- * After dot (either .class or .123)
190
- */
191
- export declare const actionsNumOrClass: Action[];
192
- /**
193
- * after '-'
194
- */
195
- export declare const actionsMinus: Action[];
196
- /**
197
- * Inside identifier with escape sequence
198
- */
199
- export declare const actionsIdentEsc: Action[];
200
- /**
201
- * Inside integer
202
- */
203
- export declare const actionsInt: Action[];
204
- /**
205
- * inside real, after dot
206
- */
207
- export declare const actionsNumber: Action[];
208
- export declare const actionsCheckEq: Action[];
209
- export declare const actionsColon: Action[];
210
- export declare const actionsBar: Action[];
211
- export declare const actionsAmp: Action[];
212
- export declare const actionsSlash: Action[];
213
- export declare const actionsComment: Action[];
214
- export declare const actionsCommentStar: Action[];
215
- export declare const actionsMinusMinus: Action[];
216
- export declare const actionsLt: Action[];
217
- export declare const actionsLtBang: Action[];
218
- export declare const actionsLtBangMinus: Action[];
219
- export declare const actionsIdentEscChr: Action[];
220
- export declare const actionsStr1: Action[];
221
- export declare const actionsStr2: Action[];
222
- export declare const actionsStr1Esc: Action[];
223
- export declare const actionsStr2Esc: Action[];
224
- export declare const actionsURL: Action[];
225
- export declare const actionsURLInside: Action[];
226
- export declare const actionsURLInside1: Action[];
227
- export declare const actionsURLInside2: Action[];
228
- export declare const actionsURLTail: Action[];
229
- export declare const INITIAL_INDEX_MASK = 15;
230
- export declare class Tokenizer {
231
- input: string;
232
- readonly handler: TokenizerHandler;
233
- indexMask: number;
234
- buffer: Token[];
235
- tail: number;
236
- curr: number;
237
- position: number;
238
- constructor(input: string, handler: TokenizerHandler);
239
- token(): Token;
240
- nthToken(n: number): Token;
241
- consume(): void;
242
- private fillBuffer;
243
- }
1
+ /**
2
+ * Copyright 2013 Google, Inc.
3
+ * Copyright 2017 Trim-marks Inc.
4
+ * Copyright 2019 Vivliostyle Foundation
5
+ *
6
+ * Vivliostyle.js is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * Vivliostyle.js is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU Affero General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Affero General Public License
17
+ * along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
18
+ *
19
+ * @fileoverview CssTokenizer - CSS Tokenizer.
20
+ */
21
+ /** */
22
+ export interface TokenizerHandler {
23
+ error(mnemonics: string, token: Token): void;
24
+ }
25
+ export declare function escapeParseSingle(str: string): string;
26
+ export declare function escapeParse(str: string): string;
27
+ /**
28
+ * @enum {number}
29
+ */
30
+ export declare enum TokenType {
31
+ EOF = 0,
32
+ IDENT = 1,
33
+ STR = 2,
34
+ NUMERIC = 3,
35
+ NUM = 4,
36
+ INT = 5,
37
+ FUNC = 6,
38
+ HASH = 7,
39
+ URL = 8,
40
+ CLASS = 9,
41
+ O_PAR = 10,
42
+ C_PAR = 11,
43
+ O_BRC = 12,
44
+ C_BRC = 13,
45
+ O_BRK = 14,
46
+ C_BRK = 15,
47
+ COMMA = 16,
48
+ SEMICOL = 17,
49
+ COLON = 18,
50
+ SLASH = 19,
51
+ AT = 20,
52
+ PERCENT = 21,
53
+ QMARK = 22,
54
+ PLUS = 23,
55
+ MINUS = 24,
56
+ BAR_BAR = 25,
57
+ AMP_AMP = 26,
58
+ URANGE = 27,
59
+ BANG = 31,
60
+ DOLLAR = 32,
61
+ HAT = 33,
62
+ BAR = 34,
63
+ TILDE = 35,
64
+ STAR = 36,
65
+ GT = 37,
66
+ LT = 38,
67
+ EQ = 39,
68
+ BANG_EQ = 41,
69
+ DOLLAR_EQ = 42,
70
+ HAT_EQ = 43,
71
+ BAR_EQ = 44,
72
+ TILDE_EQ = 45,
73
+ STAR_EQ = 46,
74
+ GT_EQ = 47,
75
+ LT_EQ = 48,
76
+ EQ_EQ = 49,
77
+ COL_COL = 50,
78
+ CDO = 51,
79
+ CDC = 52,
80
+ UNKNOWN = 53,
81
+ INVALID = 54,
82
+ LAST = 54
83
+ }
84
+ export declare class Token {
85
+ type: TokenType;
86
+ precededBySpace: boolean;
87
+ num: number;
88
+ text: string;
89
+ position: number;
90
+ constructor();
91
+ toString(): string;
92
+ }
93
+ /**
94
+ * @enum {number}
95
+ */
96
+ export declare enum Action {
97
+ SPACE = 1,
98
+ INT = 2,
99
+ IDENT = 3,
100
+ BANG = 4,
101
+ HASH = 6,
102
+ DOLLAR = 7,
103
+ PERCENT = 8,
104
+ AMP = 9,
105
+ O_PAR = 10,
106
+ C_PAR = 11,
107
+ STAR = 12,
108
+ PLUS = 13,
109
+ COMMA = 14,
110
+ MINUS = 15,
111
+ DOT = 16,
112
+ SLASH = 17,
113
+ COLON = 18,
114
+ SEMICOL = 19,
115
+ LT = 20,
116
+ EQ = 21,
117
+ GT = 22,
118
+ QMARK = 23,
119
+ AT = 24,
120
+ O_BRK = 25,
121
+ C_BRK = 26,
122
+ O_BRC = 27,
123
+ C_BRC = 28,
124
+ BSLASH = 29,
125
+ HAT = 30,
126
+ BAR = 31,
127
+ TILDE = 32,
128
+ STR1 = 33,
129
+ STR2 = 34,
130
+ END = 35,
131
+ EQTAIL = 36,
132
+ ENDINT = 37,
133
+ ENDNUM = 38,
134
+ CONT = 39,
135
+ UNIT = 40,
136
+ PCUNIT = 41,
137
+ NUMBER = 42,
138
+ ENDIDNT = 43,
139
+ IDNTESC = 44,
140
+ ENDIDES = 45,
141
+ ENDSTR = 46,
142
+ ENDESTR = 47,
143
+ STR1ESC = 48,
144
+ STR2ESC = 49,
145
+ BAR_BAR = 50,
146
+ AMP_AMP = 51,
147
+ FUNC = 52,
148
+ FUNCES = 53,
149
+ COMMENT = 54,
150
+ COMMST = 55,
151
+ ENDNOTK = 56,
152
+ MINMIN = 57,
153
+ TOINT = 58,
154
+ TONUM = 59,
155
+ TOIDENT = 60,
156
+ TOIDES = 61,
157
+ KILL1 = 62,
158
+ KILL2 = 63,
159
+ URL = 64,
160
+ URL1 = 65,
161
+ URL2 = 66,
162
+ ENDURL = 67,
163
+ TERMURL = 68,
164
+ FINURL = 69,
165
+ LT_BG = 70,
166
+ LT_BG_M = 71,
167
+ INVALID = 72,
168
+ CHKPOSS = 73,
169
+ CHKPOSN = 74,
170
+ URLESC = 75,
171
+ IDESCH = 76,
172
+ COL_COL = 77,
173
+ TOCLASS = 78,
174
+ CHKSP = 79,
175
+ EOF = 80,
176
+ CDO = 81,
177
+ CDC = 82
178
+ }
179
+ export declare function makeActions(def: Action, spec: number[]): Action[];
180
+ /**
181
+ * Start of the token.
182
+ */
183
+ export declare const actionsNormal: Action[];
184
+ /**
185
+ * Inside identifier.
186
+ */
187
+ export declare const actionsIdent: Action[];
188
+ /**
189
+ * After dot (either .class or .123)
190
+ */
191
+ export declare const actionsNumOrClass: Action[];
192
+ /**
193
+ * after '-'
194
+ */
195
+ export declare const actionsMinus: Action[];
196
+ /**
197
+ * Inside identifier with escape sequence
198
+ */
199
+ export declare const actionsIdentEsc: Action[];
200
+ /**
201
+ * Inside integer
202
+ */
203
+ export declare const actionsInt: Action[];
204
+ /**
205
+ * inside real, after dot
206
+ */
207
+ export declare const actionsNumber: Action[];
208
+ export declare const actionsCheckEq: Action[];
209
+ export declare const actionsColon: Action[];
210
+ export declare const actionsBar: Action[];
211
+ export declare const actionsAmp: Action[];
212
+ export declare const actionsSlash: Action[];
213
+ export declare const actionsComment: Action[];
214
+ export declare const actionsCommentStar: Action[];
215
+ export declare const actionsMinusMinus: Action[];
216
+ export declare const actionsLt: Action[];
217
+ export declare const actionsLtBang: Action[];
218
+ export declare const actionsLtBangMinus: Action[];
219
+ export declare const actionsIdentEscChr: Action[];
220
+ export declare const actionsStr1: Action[];
221
+ export declare const actionsStr2: Action[];
222
+ export declare const actionsStr1Esc: Action[];
223
+ export declare const actionsStr2Esc: Action[];
224
+ export declare const actionsURL: Action[];
225
+ export declare const actionsURLInside: Action[];
226
+ export declare const actionsURLInside1: Action[];
227
+ export declare const actionsURLInside2: Action[];
228
+ export declare const actionsURLTail: Action[];
229
+ export declare const INITIAL_INDEX_MASK = 15;
230
+ export declare class Tokenizer {
231
+ input: string;
232
+ readonly handler: TokenizerHandler;
233
+ indexMask: number;
234
+ buffer: Token[];
235
+ tail: number;
236
+ curr: number;
237
+ position: number;
238
+ constructor(input: string, handler: TokenizerHandler);
239
+ token(): Token;
240
+ nthToken(n: number): Token;
241
+ consume(): void;
242
+ private fillBuffer;
243
+ }