gn-rtf.js
Version:
Render RTF documents in HTML. This also includes rendering WMF and EMF images which are often contained in RTF documents.
40 lines (39 loc) • 946 B
TypeScript
import { Blob } from "./Blob";
export declare class PointS {
x: number;
y: number;
constructor(reader: Blob, x?: number, y?: number);
clone(): PointS;
toString(): string;
}
export declare class PointL {
x: number;
y: number;
constructor(reader: Blob, x?: number, y?: number);
clone(): PointL;
toString(): string;
}
export declare class RectL {
left: number;
top: number;
right: number;
bottom: number;
constructor(reader: Blob, left?: number, top?: number, right?: number, bottom?: number);
clone(): RectL;
toString(): string;
empty(): boolean;
intersect(rectL: RectL): null | RectL;
}
export declare class SizeL {
cx: number;
cy: number;
constructor(reader: Blob, cx?: number, cy?: number);
clone(): SizeL;
toString(): string;
}
export declare class Obj {
type: string;
constructor(type: string);
clone(): Obj;
toString(): string;
}