@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.
@@ -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.Ident, position: Css.Ident, float: Css.Val, isRoot: boolean): void;
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;