@pixldocs/canvas-renderer 0.5.112 → 0.5.113
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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -259,7 +259,7 @@ export declare function normalizeFontFamily(fontStack: string): string;
|
|
|
259
259
|
* Package version banner. Bump alongside package.json so we can confirm
|
|
260
260
|
* (via browser:log) that the deployed bundle matches the expected build.
|
|
261
261
|
*/
|
|
262
|
-
export declare const PACKAGE_VERSION = "0.5.
|
|
262
|
+
export declare const PACKAGE_VERSION = "0.5.113";
|
|
263
263
|
|
|
264
264
|
export declare interface PageSettings {
|
|
265
265
|
backgroundColor?: string;
|
|
@@ -305,7 +305,7 @@ export declare interface PdfFromFormOptions {
|
|
|
305
305
|
title?: string;
|
|
306
306
|
/** Base URL for TTF font files for PDF font embedding */
|
|
307
307
|
fontBaseUrl?: string;
|
|
308
|
-
/** PDF text rendering mode. Default:
|
|
308
|
+
/** PDF text rendering mode. Default: selectable text for client vector-PDF parity. */
|
|
309
309
|
textMode?: 'auto' | 'selectable' | 'pixel-perfect';
|
|
310
310
|
}
|
|
311
311
|
|
package/dist/index.js
CHANGED
|
@@ -13998,7 +13998,7 @@ function PixldocsPreview(props) {
|
|
|
13998
13998
|
!canvasSettled && /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
|
|
13999
13999
|
] });
|
|
14000
14000
|
}
|
|
14001
|
-
const PACKAGE_VERSION = "0.5.
|
|
14001
|
+
const PACKAGE_VERSION = "0.5.113";
|
|
14002
14002
|
const roundParityValue = (value) => {
|
|
14003
14003
|
if (typeof value !== "number") return value;
|
|
14004
14004
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -14285,7 +14285,7 @@ class PixldocsRenderer {
|
|
|
14285
14285
|
async renderPdf(templateConfig, options) {
|
|
14286
14286
|
const svgs = await this.renderAllPageSvgs(templateConfig);
|
|
14287
14287
|
const { assemblePdfFromSvgs: assemblePdfFromSvgs2 } = await Promise.resolve().then(() => pdfExport);
|
|
14288
|
-
return assemblePdfFromSvgs2(svgs, { title: options == null ? void 0 : options.title, fontBaseUrl: options == null ? void 0 : options.fontBaseUrl, textMode: (options == null ? void 0 : options.textMode) ?? "
|
|
14288
|
+
return assemblePdfFromSvgs2(svgs, { title: options == null ? void 0 : options.title, fontBaseUrl: options == null ? void 0 : options.fontBaseUrl, textMode: (options == null ? void 0 : options.textMode) ?? "selectable" });
|
|
14289
14289
|
}
|
|
14290
14290
|
/**
|
|
14291
14291
|
* Resolve from V2 sectionState and render a vector PDF.
|
|
@@ -14310,7 +14310,7 @@ class PixldocsRenderer {
|
|
|
14310
14310
|
}
|
|
14311
14311
|
const svgs = await this.renderAllPageSvgs(configToRender);
|
|
14312
14312
|
const { assemblePdfFromSvgs: assemblePdfFromSvgs2 } = await Promise.resolve().then(() => pdfExport);
|
|
14313
|
-
return assemblePdfFromSvgs2(svgs, { title: title ?? resolved.config.name, fontBaseUrl, textMode: options.textMode ?? "
|
|
14313
|
+
return assemblePdfFromSvgs2(svgs, { title: title ?? resolved.config.name, fontBaseUrl, textMode: options.textMode ?? "selectable" });
|
|
14314
14314
|
}
|
|
14315
14315
|
async renderById(templateId, formData, options) {
|
|
14316
14316
|
const resolved = await resolveTemplateData({
|