@vivliostyle/core
Version:
Vivliostyle Core library for HTML+CSS typesetting with EPUB/Web publications support
16 lines (15 loc) • 1.05 kB
TypeScript
import { Layout, Vtree } from "./types";
/**
* Calculate the position of the "after" edge in the block-progression
* dimension. Return 0 if position was determined successfully and return
* non-zero if position could not be determined and the node should be
* considered zero-height.
*/
export declare function calculateEdge(nodeContext: Vtree.NodeContext, clientLayout: Vtree.ClientLayout, extraOffset: number, vertical: boolean): number;
export declare function getElementHeight(element: Element, column: Layout.Column, vertical: boolean): number;
export declare function isOrphan(node: Node): boolean;
export declare function removeFollowingSiblings(parentNode: Node, viewNode: Node): void;
export declare function isSpecial(e: Element): boolean;
export declare function isSpecialNodeContext(nodeContext: Vtree.NodeContext): boolean;
export declare function isSpecialInlineDisplay(display: string): boolean;
export declare function findAncestorSpecialInlineNodeContext(nodeContext: Vtree.NodeContext): Vtree.NodeContext | null;