Skip to content

Commit 314718f

Browse files
Export measure text functions from jimp package (#1333)
1 parent 497008d commit 314718f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/docs/src/content/docs/guides/migrate-to-v1.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ const resized = await image
157157

158158
## Removed Constants
159159

160+
Most constants have been moved to named exports.
161+
162+
Other changes:
163+
160164
- `Jimp.AUTO` - This constant was only needed for positional arguments. It is no longer needed with the new API.
161165

162166
### `Jimp.MIME_*`

packages/jimp/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export type {
180180
} from "@jimp/core";
181181
export type { Bitmap, Edge, RGBAColor, RGBColor } from "@jimp/types";
182182
export { loadFont } from "@jimp/plugin-print/load-font";
183+
export { measureText, measureTextHeight } from "@jimp/plugin-print";
183184
export { diff } from "@jimp/diff";
184185
export {
185186
intToRGBA,

0 commit comments

Comments
 (0)