Skip to content

Commit

Permalink
3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbengtsson committed Oct 10, 2023
1 parent 3b34a2a commit 1dc9427
Show file tree
Hide file tree
Showing 6 changed files with 298 additions and 306 deletions.
8 changes: 5 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ declare class DocHandler {
* @param y Coordinate (in units declared at inception of PDF document) against upper edge of the page
* @param width Width (in units declared at inception of PDF document)
* @param height Height (in units declared at inception of PDF document)
* @param fillStyle A string specifying the painting style or null. Valid styles include: 'S' [default] - stroke, 'F' - fill, and 'DF' (or 'FD') - fill then stroke. In "compat" API mode, a null value postpones setting the style so that a shape may be composed using multiple method calls. The last drawing method call used to define the shape should not have a null style argument. **In "advanced" API mode this parameter is deprecated.**
* @param fillStyle A string specifying the painting style or null. Valid styles include: 'S' [default] - stroke, 'F' - fill, and 'DF' (or 'FD') - fill then stroke.
*/
rect(x: number, y: number, width: number, height: number, fillStyle: "S" | "F" | "DF" | "FD" | null): any;
rect(x: number, y: number, width: number, height: number, fillStyle: "S" | "F" | "DF" | "FD"): any;
getLastAutoTable(): Table | null;
getTextWidth(text: string | string[]): number;
getDocument(): any;
Expand All @@ -37,6 +37,8 @@ declare class DocHandler {
height: number;
};
scaleFactor(): number;
get lineHeightFactor(): number;
getLineHeight(fontSize: number): number;
pageNumber(): number;
}
declare class HookData {
Expand Down Expand Up @@ -187,7 +189,7 @@ export declare class Cell {
y: number;
constructor(raw: CellInput, styles: Styles, section: Section);
getTextPos(): Pos;
getContentHeight(scaleFactor: number): number;
getContentHeight(scaleFactor: number, lineHeightFactor?: number): number;
padding(name: "vertical" | "horizontal" | "top" | "bottom" | "left" | "right"): number;
}
export declare class Column {
Expand Down
Loading

0 comments on commit 1dc9427

Please sign in to comment.