@vivliostyle/core 2.33.2 → 2.34.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/base.d.ts +5 -0
- package/lib/vivliostyle/css-cascade.d.ts +6 -0
- package/lib/vivliostyle/css-page.d.ts +29 -7
- package/lib/vivliostyle/page-master.d.ts +3 -2
- package/lib/vivliostyle/sizing.d.ts +0 -4
- package/lib/vivliostyle/types.d.ts +1 -0
- package/lib/vivliostyle/vtree.d.ts +1 -0
- package/lib/vivliostyle.js +9 -9
- package/lib/vivliostyle.js.map +3 -3
- package/package.json +2 -2
|
@@ -31,6 +31,11 @@ export declare function setResourceBaseURL(value: string): void;
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function resolveURL(relURL: string, baseURL: string): string;
|
|
33
33
|
/**
|
|
34
|
+
* Convert special URLs (e.g. GitHub, Gist) to their raw equivalents.
|
|
35
|
+
* This is useful for fetching content from these services in a format
|
|
36
|
+
* that can be easily processed by Vivliostyle.js.
|
|
37
|
+
*
|
|
38
|
+
* @param url URL to convert
|
|
34
39
|
* @return converted URL
|
|
35
40
|
*/
|
|
36
41
|
export declare function convertSpecialURL(url: string): string;
|
|
@@ -79,6 +79,7 @@ export declare const inheritedProps: {
|
|
|
79
79
|
"text-anchor": boolean;
|
|
80
80
|
"text-autospace": boolean;
|
|
81
81
|
"text-decoration-skip": boolean;
|
|
82
|
+
"text-decoration-skip-ink": boolean;
|
|
82
83
|
"text-emphasis-color": boolean;
|
|
83
84
|
"text-emphasis-position": boolean;
|
|
84
85
|
"text-emphasis-style": boolean;
|
|
@@ -88,12 +89,17 @@ export declare const inheritedProps: {
|
|
|
88
89
|
"text-justify": boolean;
|
|
89
90
|
"text-orientation": boolean;
|
|
90
91
|
"text-rendering": boolean;
|
|
92
|
+
"text-shadow": boolean;
|
|
91
93
|
"text-size-adjust": boolean;
|
|
92
94
|
"text-spacing-trim": boolean;
|
|
93
95
|
"text-stroke-color": boolean;
|
|
94
96
|
"text-stroke-width": boolean;
|
|
95
97
|
"text-transform": boolean;
|
|
98
|
+
"text-underline-offset": boolean;
|
|
96
99
|
"text-underline-position": boolean;
|
|
100
|
+
"text-wrap": boolean;
|
|
101
|
+
"text-wrap-mode": boolean;
|
|
102
|
+
"text-wrap-style": boolean;
|
|
97
103
|
visibility: boolean;
|
|
98
104
|
"white-space": boolean;
|
|
99
105
|
widows: boolean;
|
|
@@ -104,7 +104,7 @@ export declare function createCrossMark(doc: Document, position: CrossMarkPositi
|
|
|
104
104
|
*/
|
|
105
105
|
export declare function addPrinterMarks(cascadedPageStyle: CssCascade.ElementStyle, evaluatedPageSizeAndBleed: EvaluatedPageSizeAndBleed, page: Vtree.Page, context: Exprs.Context): void;
|
|
106
106
|
/**
|
|
107
|
-
* Properties
|
|
107
|
+
* Properties transferred from the PageRuleMaster to the PageRulePartition
|
|
108
108
|
*/
|
|
109
109
|
export declare const propertiesAppliedToPartition: {
|
|
110
110
|
width: boolean;
|
|
@@ -118,6 +118,17 @@ export declare const propertiesAppliedToPartition: {
|
|
|
118
118
|
"outline-width": boolean;
|
|
119
119
|
"outline-style": boolean;
|
|
120
120
|
"outline-color": boolean;
|
|
121
|
+
"border-radius": boolean;
|
|
122
|
+
"border-top-left-radius": boolean;
|
|
123
|
+
"border-top-right-radius": boolean;
|
|
124
|
+
"border-bottom-right-radius": boolean;
|
|
125
|
+
"border-bottom-left-radius": boolean;
|
|
126
|
+
"border-start-start-radius": boolean;
|
|
127
|
+
"border-start-end-radius": boolean;
|
|
128
|
+
"border-end-start-radius": boolean;
|
|
129
|
+
"border-end-end-radius": boolean;
|
|
130
|
+
"box-shadow": boolean;
|
|
131
|
+
"box-sizing": boolean;
|
|
121
132
|
};
|
|
122
133
|
/**
|
|
123
134
|
* Represents position of a margin box along the variable dimension of the page.
|
|
@@ -168,7 +179,6 @@ export declare const marginBoxesKey: string;
|
|
|
168
179
|
* @param style Cascaded style for `@page` rules
|
|
169
180
|
*/
|
|
170
181
|
export declare class PageRuleMaster extends PageMaster.PageMaster<PageRuleMasterInstance> {
|
|
171
|
-
private bodyPartitionKey;
|
|
172
182
|
private pageMarginBoxes;
|
|
173
183
|
constructor(scope: Exprs.LexicalScope, parent: PageMaster.RootPageBox, style: CssCascade.ElementStyle);
|
|
174
184
|
/**
|
|
@@ -180,7 +190,7 @@ export declare class PageRuleMaster extends PageMaster.PageMaster<PageRuleMaster
|
|
|
180
190
|
* PageBox
|
|
181
191
|
*/
|
|
182
192
|
private applySpecified;
|
|
183
|
-
createInstance(parentInstance:
|
|
193
|
+
createInstance(parentInstance: PageMaster.PageBoxInstance): PageRuleMasterInstance;
|
|
184
194
|
}
|
|
185
195
|
/**
|
|
186
196
|
* Represent a partition placed in a PageRuleMaster
|
|
@@ -194,7 +204,11 @@ export declare class PageRulePartition extends PageMaster.Partition<PageRulePart
|
|
|
194
204
|
* PageBox
|
|
195
205
|
*/
|
|
196
206
|
private applySpecified;
|
|
197
|
-
createInstance(parentInstance:
|
|
207
|
+
createInstance(parentInstance: PageMaster.PageBoxInstance): PageRulePartitionInstance;
|
|
208
|
+
}
|
|
209
|
+
export declare class PageAreaPartition extends PageMaster.Partition<PageAreaPartitionInstance> {
|
|
210
|
+
constructor(scope: Exprs.LexicalScope, parent: PageRulePartition);
|
|
211
|
+
createInstance(parentInstance: PageMaster.PageBoxInstance): PageMaster.PageBoxInstance;
|
|
198
212
|
}
|
|
199
213
|
/**
|
|
200
214
|
* Represent a partition for a page-margin box
|
|
@@ -207,7 +221,7 @@ export declare class PageMarginBoxPartition extends PageMaster.Partition<PageMar
|
|
|
207
221
|
* PageMarginBox
|
|
208
222
|
*/
|
|
209
223
|
applySpecified(style: CssCascade.ElementStyle): void;
|
|
210
|
-
createInstance(parentInstance:
|
|
224
|
+
createInstance(parentInstance: PageMaster.PageBoxInstance): PageMaster.PageBoxInstance;
|
|
211
225
|
}
|
|
212
226
|
export type PageAreaDimension = {
|
|
213
227
|
borderBoxWidth: Exprs.Val;
|
|
@@ -258,6 +272,8 @@ export declare class PageRuleMasterInstance extends PageMaster.PageMasterInstanc
|
|
|
258
272
|
export declare class PageRulePartitionInstance extends PageMaster.PartitionInstance<PageRulePartition> {
|
|
259
273
|
borderBoxWidth: Exprs.Val;
|
|
260
274
|
borderBoxHeight: Exprs.Val;
|
|
275
|
+
contentBoxWidth: Exprs.Val;
|
|
276
|
+
contentBoxHeight: Exprs.Val;
|
|
261
277
|
marginTop: Exprs.Val;
|
|
262
278
|
marginRight: Exprs.Val;
|
|
263
279
|
marginBottom: Exprs.Val;
|
|
@@ -274,7 +290,13 @@ export declare class PageRulePartitionInstance extends PageMaster.PartitionInsta
|
|
|
274
290
|
* dimension specified in the page at-rules.
|
|
275
291
|
*/
|
|
276
292
|
private resolvePageBoxDimensions;
|
|
277
|
-
|
|
293
|
+
prepareContainer(context: Exprs.Context, container: Vtree.Container, page: Vtree.Page, docFaces: Font.DocumentFaces, clientLayout: Vtree.ClientLayout): void;
|
|
294
|
+
}
|
|
295
|
+
export declare class PageAreaPartitionInstance extends PageMaster.PartitionInstance<PageAreaPartition> {
|
|
296
|
+
constructor(parentInstance: PageMaster.PageBoxInstance, pageAreaPartition: PageAreaPartition);
|
|
297
|
+
applyCascadeAndInit(cascade: CssCascade.CascadeInstance, docElementStyle: CssCascade.ElementStyle): void;
|
|
298
|
+
initHorizontal(): void;
|
|
299
|
+
initVertical(): void;
|
|
278
300
|
prepareContainer(context: Exprs.Context, container: Vtree.Container, page: Vtree.Page, docFaces: Font.DocumentFaces, clientLayout: Vtree.ClientLayout): void;
|
|
279
301
|
}
|
|
280
302
|
export declare class PageMarginBoxPartitionInstance extends PageMaster.PartitionInstance<PageMarginBoxPartition> {
|
|
@@ -287,7 +309,7 @@ export declare class PageMarginBoxPartitionInstance extends PageMaster.Partition
|
|
|
287
309
|
* Calculate page-margin boxes positions along the variable dimension of the
|
|
288
310
|
* page. For CENTER and END margin boxes, the position is calculated only if
|
|
289
311
|
* the dimension (width or height) is non-auto, so that it can be resolved at
|
|
290
|
-
* this point. If the dimension is auto, the calculation is
|
|
312
|
+
* this point. If the dimension is auto, the calculation is deferred.
|
|
291
313
|
*/
|
|
292
314
|
private positionAlongVariableDimension;
|
|
293
315
|
/**
|
|
@@ -63,7 +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
|
-
createInstance(parentInstance:
|
|
66
|
+
createInstance(parentInstance: PageBoxInstance): PageBoxInstance;
|
|
67
67
|
clone(param: any): PageMaster;
|
|
68
68
|
/**
|
|
69
69
|
* Point the pageMaster reference in the PageMasterScope to the current page
|
|
@@ -88,7 +88,7 @@ export declare class PartitionGroup extends PageBox<PartitionGroupInstance> {
|
|
|
88
88
|
*/
|
|
89
89
|
export declare class Partition<I extends PartitionInstance = PartitionInstance> extends PageBox<I> {
|
|
90
90
|
constructor(scope: Exprs.LexicalScope, name: string | null, pseudoName: string | null, classes: string[], parent: PageBox);
|
|
91
|
-
createInstance(parentInstance:
|
|
91
|
+
createInstance(parentInstance: PageBoxInstance): PageBoxInstance;
|
|
92
92
|
clone(param: any): Partition;
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
@@ -142,6 +142,7 @@ export declare class PageBoxInstance<P extends PageBox = PageBox<any>> {
|
|
|
142
142
|
vertical: boolean;
|
|
143
143
|
rtl: boolean;
|
|
144
144
|
suppressEmptyBoxGeneration: boolean;
|
|
145
|
+
borderBoxSizing: boolean;
|
|
145
146
|
constructor(parentInstance: PageBoxInstance, pageBox: P);
|
|
146
147
|
/**
|
|
147
148
|
* Reset information related to layout.
|
|
@@ -4,10 +4,6 @@ import * as Vtree from "./vtree";
|
|
|
4
4
|
* @enum {string}
|
|
5
5
|
*/
|
|
6
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
7
|
MAX_CONTENT_INLINE_SIZE = "max-content inline size",
|
|
12
8
|
MAX_CONTENT_BLOCK_SIZE = "max-content block size",
|
|
13
9
|
MAX_CONTENT_WIDTH = "max-content width",
|