Skip to content

Commit

Permalink
update 2.1.0
Browse files Browse the repository at this point in the history
0
  • Loading branch information
Project-Econome committed Jul 2, 2024
1 parent e4771d0 commit 516dc97
Show file tree
Hide file tree
Showing 32 changed files with 213 additions and 56 deletions.
19 changes: 14 additions & 5 deletions dist/classes/builder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,19 @@ export declare enum Filter {
saturate = 7
}
export declare enum textAlign {
start = 0,
right = 1,
center = 2,
left = 3,
end = 4
start = "end",
left = "right",
center = "center",
right = "left",
end = "start"
}
export declare enum textBaseline {
alphabetic = 0,
bottom = 1,
hanging = 2,
ideographic = 3,
middle = 4,
top = 5
}
export declare enum MeasureTextProperty {
actualBoundingBoxAscent = 0,
Expand Down Expand Up @@ -65,6 +73,7 @@ export declare class CanvasBuilder {
setShadow: (blur: number, color: number, offset?: number | number[]) => typeof CanvasBuilder;
trim: () => typeof CanvasBuilder;
setTextAlign: (align: textAlign) => typeof CanvasBuilder;
setTextBaseline: (baseline: textBaseline) => typeof CanvasBuilder;
measureText: (text: string, font: string) => TextMetrics | undefined;
rotate: (angle: number) => typeof CanvasBuilder;
resize: (width: number, height: number) => typeof CanvasBuilder;
Expand Down
2 changes: 1 addition & 1 deletion dist/classes/builder.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 23 additions & 7 deletions dist/classes/builder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 516dc97

Please sign in to comment.