@vivliostyle/core 2.36.4 → 2.37.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/assets.d.ts +4 -3
- package/lib/vivliostyle/counter-style.d.ts +146 -0
- package/lib/vivliostyle/css-cascade.d.ts +14 -35
- package/lib/vivliostyle/css-parser.d.ts +3 -0
- package/lib/vivliostyle/css-styler.d.ts +3 -2
- package/lib/vivliostyle/css-validator.d.ts +0 -21
- package/lib/vivliostyle/display.d.ts +8 -4
- package/lib/vivliostyle/ops.d.ts +5 -1
- package/lib/vivliostyle/plugin.d.ts +1 -1
- package/lib/vivliostyle/pseudo-element.d.ts +5 -1
- package/lib/vivliostyle/types.d.ts +6 -1
- package/lib/vivliostyle/vgen.d.ts +8 -1
- package/lib/vivliostyle/vtree.d.ts +1 -1
- package/lib/vivliostyle.js +294 -21
- package/lib/vivliostyle.js.map +4 -4
- package/package.json +3 -3
|
@@ -74,11 +74,17 @@ export declare class ViewFactory extends Base.SimpleEventTarget implements Vtree
|
|
|
74
74
|
transferPolyfilledInheritedProps(computedStyle: {
|
|
75
75
|
[key: string]: Css.Val;
|
|
76
76
|
}): void;
|
|
77
|
-
resolveFormattingContext(nodeContext: Vtree.NodeContext, firstTime: boolean, display: Css.
|
|
77
|
+
resolveFormattingContext(nodeContext: Vtree.NodeContext, firstTime: boolean, display: Css.Val, position: Css.Ident, float: Css.Val, isRoot: boolean): void;
|
|
78
78
|
/**
|
|
79
79
|
* @return holding true if children should be processed
|
|
80
80
|
*/
|
|
81
81
|
private createElementView;
|
|
82
|
+
/**
|
|
83
|
+
* Check if the current position is at the start of a page.
|
|
84
|
+
* This is used to determine whether a forced break should be ignored.
|
|
85
|
+
* (Issue #1608)
|
|
86
|
+
*/
|
|
87
|
+
private isAtStartOfPage;
|
|
82
88
|
/**
|
|
83
89
|
* Check if the current element is inside multi-column element
|
|
84
90
|
* that is not root or body element in the source tree.
|
|
@@ -179,6 +185,7 @@ export declare const propertiesNotPassedToDOM: {
|
|
|
179
185
|
export declare class DefaultClientLayout implements Vtree.ClientLayout {
|
|
180
186
|
layoutBox: Element;
|
|
181
187
|
window: Window;
|
|
188
|
+
pixelRatio: number;
|
|
182
189
|
scaleRatio: number;
|
|
183
190
|
layoutUnitPerPixel: number;
|
|
184
191
|
constructor(viewport: Viewport);
|
|
@@ -386,4 +386,4 @@ export declare class ContentPropertyHandler extends Css.Visitor {
|
|
|
386
386
|
visitSpaceList(list: Css.SpaceList): Css.Val;
|
|
387
387
|
visitExpr(expr: Css.Expr): Css.Val;
|
|
388
388
|
}
|
|
389
|
-
export declare function nonTrivialContent(val: Css.Val): boolean;
|
|
389
|
+
export declare function nonTrivialContent(val: Css.Val | null | undefined): boolean;
|