@@ -1845,7 +1845,7 @@ export class Canvas {
18451845 * Gets a JPEG buffer. \
18461846 * @param config The render configuration. \
18471847 * @returns A JPEG buffer. \
1848- * @see {@link jpegAsync } for the async version. \
1848+ * @see {@link jpeg } for the sync version. \
18491849 */ \
18501850 public jpegAsync(config?: JpegConfig): Promise<Buffer> { \
18511851 return this.toBufferAsync('image/jpeg', config); \
@@ -1855,7 +1855,7 @@ export class Canvas {
18551855 * Gets a JPEG buffer. \
18561856 * @param quality The quality to use, defaults to `92`. \
18571857 * @returns A JPEG buffer. \
1858- * @see {@link jpegAsync } for the async version. \
1858+ * @see {@link jpeg } for the sync version. \
18591859 */ \
18601860 public jpegAsync(quality?: number): Promise<Buffer> { \
18611861 return this.canvas.encode('jpeg', quality); \
@@ -1896,7 +1896,7 @@ export class Canvas {
18961896 * Gets a WebP buffer. \
18971897 * @param quality The quality to use, defaults to `80`. \
18981898 * @returns A WebP buffer. \
1899- * @see {@link webpAsync } for the async version. \
1899+ * @see {@link webp } for the sync version. \
19001900 */ \
19011901 public webpAsync(quality?: number): Promise<Buffer> { \
19021902 return this.canvas.encode('webp', quality); \
@@ -1937,7 +1937,7 @@ export class Canvas {
19371937 * Gets a PNG buffer. \
19381938 * @param config The render configuration. \
19391939 * @returns A PNG buffer. \
1940- * @see {@link pngAsync } for the async version. \
1940+ * @see {@link png } for the sync version. \
19411941 */ \
19421942 public pngAsync(config?: PngConfig): Promise<Buffer> { \
19431943 return this.toBufferAsync('image/png', config); \
@@ -1946,7 +1946,7 @@ export class Canvas {
19461946 /** \
19471947 * Gets a PNG buffer. \
19481948 * @returns A PNG buffer. \
1949- * @see {@link pngAsync } for the async version. \
1949+ * @see {@link png } for the sync version. \
19501950 */ \
19511951 public pngAsync(): Promise<Buffer> { \
19521952 return this.canvas.encode('png'); \
@@ -1956,6 +1956,7 @@ export class Canvas {
19561956 * Gets a PNG buffer. \
19571957 * @param options The render options. \
19581958 * @returns A PNG buffer. \
1959+ * @see {@link png} for the sync version. \
19591960 */ \
19601961 public pngAsync(options?: RenderOptions): Promise<Buffer> { \
19611962 return this.canvas.toBuffer('png', options); \
@@ -1997,7 +1998,7 @@ export class Canvas {
19971998 * Gets a PDF buffer. \
19981999 * @param config The render configuration. \
19992000 * @returns A PDF buffer. \
2000- * @see {@link pngAsync } for the async version. \
2001+ * @see {@link pdf } for the sync version. \
20012002 */ \
20022003 public pdfAsync(config?: PdfConfig): Promise<Buffer> { \
20032004 return this.toBufferAsync('application/pdf', config); \
@@ -2057,7 +2058,7 @@ export class Canvas {
20572058 /** \
20582059 * Gets an AVIF buffer. \
20592060 * @returns A AVIF buffer. \
2060- * @see {@link avifAsync } for the async version. \
2061+ * @see {@link avif } for the sync version. \
20612062 */ \
20622063 public avifAsync(cfg?: AvifConfig): Promise<Buffer> { \
20632064 return this.canvas.encode('avif', cfg); \
@@ -2356,7 +2357,7 @@ interface ResolvedCircularCoordinates {
23562357 sizeY: number;
23572358}
23582359
2359- // IF(CAIRO): export { loadImage, NativeImage as Image };
2360+ // IF(CAIRO): export { loadImage, loadFont, NativeImage as Image };
23602361// IF(NAPI_RS): export { Path2D, GlobalFonts, NativeImage as Image };
23612362// IF(SKIA): export { Path2D, FontLibrary, NativeImage as Image, loadImage };
23622363
0 commit comments