Skip to content

Commit

Permalink
Export measure text functions from jimp package (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie authored Sep 7, 2024
1 parent 497008d commit 314718f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/docs/src/content/docs/guides/migrate-to-v1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ const resized = await image

## Removed Constants

Most constants have been moved to named exports.

Other changes:

- `Jimp.AUTO` - This constant was only needed for positional arguments. It is no longer needed with the new API.

### `Jimp.MIME_*`
Expand Down
1 change: 1 addition & 0 deletions packages/jimp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export type {
} from "@jimp/core";
export type { Bitmap, Edge, RGBAColor, RGBColor } from "@jimp/types";
export { loadFont } from "@jimp/plugin-print/load-font";
export { measureText, measureTextHeight } from "@jimp/plugin-print";
export { diff } from "@jimp/diff";
export {
intToRGBA,
Expand Down

0 comments on commit 314718f

Please sign in to comment.