@weasel-js/diagram-formats 1.14.1 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -226,6 +226,8 @@ interface ExportPagesPdfOptions {
|
|
|
226
226
|
background?: string | null;
|
|
227
227
|
/** The document's title. */
|
|
228
228
|
title?: string;
|
|
229
|
+
/** The document's language, a BCP 47 tag. Default: the language every text on the pages shares, if they share one. */
|
|
230
|
+
lang?: string;
|
|
229
231
|
}
|
|
230
232
|
/**
|
|
231
233
|
* Write each of `pages` of `scene` as a page of one PDF, `page × 0.75` points
|
package/dist/index.js
CHANGED
|
@@ -3282,6 +3282,7 @@ async function exportPagesPdf(scene, pages, opts = {}) {
|
|
|
3282
3282
|
const { bytes, skipped } = await writePdf(out, {
|
|
3283
3283
|
fonts: registryFontSource,
|
|
3284
3284
|
...opts.title !== void 0 ? { title: opts.title } : {},
|
|
3285
|
+
...opts.lang !== void 0 ? { lang: opts.lang } : {},
|
|
3285
3286
|
rasterize: pageRasterizer(session)
|
|
3286
3287
|
});
|
|
3287
3288
|
const copy = new ArrayBuffer(bytes.byteLength);
|