html2canvas
Version:
Screenshots with JavaScript
11 lines (10 loc) • 468 B
TypeScript
import { CSSParsedDeclaration } from '../index';
import { Bounds } from './bounds';
import { Context } from '../../core/context';
export declare class TextBounds {
readonly text: string;
readonly bounds: Bounds;
constructor(text: string, bounds: Bounds);
}
export declare const parseTextBounds: (context: Context, value: string, styles: CSSParsedDeclaration, node: Text) => TextBounds[];
export declare const segmentGraphemes: (value: string) => string[];