UNPKG

pangu

Version:

Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).

16 lines (15 loc) 686 B
export declare class DomWalker { static readonly blockTags: RegExp; static readonly ignoredTags: RegExp; static readonly presentationalTags: RegExp; static readonly spaceLikeTags: RegExp; static readonly spaceSensitiveTags: RegExp; static readonly ignoredClass = "no-pangu-spacing"; static collectTextNodes(contextNode: Node, reverse?: boolean): Text[]; static canIgnoreNode(node: Node): boolean; static isFirstTextChild(parentNode: Node, targetNode: Node): boolean; static isLastTextChild(parentNode: Node, targetNode: Node): boolean; private static isSpecificTag; private static isContentEditable; private static hasIgnoredClass; }