first commit
This commit is contained in:
6
node_modules/pdf-lib/ts3.4/es/api/text/alignment.d.ts
generated
vendored
Normal file
6
node_modules/pdf-lib/ts3.4/es/api/text/alignment.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export declare enum TextAlignment {
|
||||
Left = 0,
|
||||
Center = 1,
|
||||
Right = 2
|
||||
}
|
||||
//# sourceMappingURL=alignment.d.ts.map
|
||||
3
node_modules/pdf-lib/ts3.4/es/api/text/index.d.ts
generated
vendored
Normal file
3
node_modules/pdf-lib/ts3.4/es/api/text/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./alignment";
|
||||
export * from "./layout";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
55
node_modules/pdf-lib/ts3.4/es/api/text/layout.d.ts
generated
vendored
Normal file
55
node_modules/pdf-lib/ts3.4/es/api/text/layout.d.ts
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
import PDFFont from "../PDFFont";
|
||||
import { TextAlignment } from "./alignment";
|
||||
import { PDFHexString } from "../../core";
|
||||
export interface TextPosition {
|
||||
text: string;
|
||||
encoded: PDFHexString;
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
}
|
||||
export interface LayoutBounds {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
}
|
||||
export interface LayoutTextOptions {
|
||||
alignment: TextAlignment;
|
||||
fontSize?: number;
|
||||
font: PDFFont;
|
||||
bounds: LayoutBounds;
|
||||
}
|
||||
export interface MultilineTextLayout {
|
||||
bounds: LayoutBounds;
|
||||
lines: TextPosition[];
|
||||
fontSize: number;
|
||||
lineHeight: number;
|
||||
}
|
||||
export declare const layoutMultilineText: (text: string, { alignment, fontSize, font, bounds }: LayoutTextOptions) => MultilineTextLayout;
|
||||
export interface LayoutCombedTextOptions {
|
||||
fontSize?: number;
|
||||
font: PDFFont;
|
||||
bounds: LayoutBounds;
|
||||
cellCount: number;
|
||||
}
|
||||
export interface CombedTextLayout {
|
||||
bounds: LayoutBounds;
|
||||
cells: TextPosition[];
|
||||
fontSize: number;
|
||||
}
|
||||
export declare const layoutCombedText: (text: string, { fontSize, font, bounds, cellCount }: LayoutCombedTextOptions) => CombedTextLayout;
|
||||
export interface LayoutSinglelineTextOptions {
|
||||
alignment: TextAlignment;
|
||||
fontSize?: number;
|
||||
font: PDFFont;
|
||||
bounds: LayoutBounds;
|
||||
}
|
||||
export interface SinglelineTextLayout {
|
||||
bounds: LayoutBounds;
|
||||
line: TextPosition;
|
||||
fontSize: number;
|
||||
}
|
||||
export declare const layoutSinglelineText: (text: string, { alignment, fontSize, font, bounds }: LayoutSinglelineTextOptions) => SinglelineTextLayout;
|
||||
//# sourceMappingURL=layout.d.ts.map
|
||||
Reference in New Issue
Block a user