UNPKG

pangu

Version:

Opinionated paranoid text spacing: automatically inserts whitespace between CJK (Chinese, Japanese, Korean) and ANS (alphabetical letters, numerical digits and symbols)

17 lines 863 B
export declare class DomWalker { static readonly blockTags: RegExp; static readonly ignoredTags: RegExp; static readonly spaceLikeTags: RegExp; static readonly spaceSensitiveTags: RegExp; static readonly ignoredClass = "no-pangu-spacing"; static collectTextNodes(root: Node, reverse?: boolean): Text[]; static findAdjacentTextNode(textNode: Text, direction: 'previous' | 'next'): Text | null; static findBoundaryNode(textNode: Node, edge: 'first' | 'last'): Node; static isFirstTextChild(parentNode: Node, targetNode: Node): boolean; static isLastTextChild(parentNode: Node, targetNode: Node): boolean; private static createTextWalker; static isIgnoredNode(node: Node): boolean; static isIgnoredElement(element: Element): boolean; private static isContentEditable; } //# sourceMappingURL=dom-walker.d.ts.map