@pixldocs/canvas-renderer 0.5.119 → 0.5.120
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-81pAjQOk.cjs → index-DjwTSk_C.cjs} +5 -4
- package/dist/{index-81pAjQOk.cjs.map → index-DjwTSk_C.cjs.map} +1 -1
- package/dist/{index-CuTWdeXZ.js → index-Dm9AEQy0.js} +36 -35
- package/dist/{index-CuTWdeXZ.js.map → index-Dm9AEQy0.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +31 -31
- package/dist/{pdfFonts-CB5z77qO.js → pdfFonts-BUnZcHhp.js} +14 -8
- package/dist/{pdfFonts-CB5z77qO.js.map → pdfFonts-BUnZcHhp.js.map} +1 -1
- package/dist/{pdfFonts-CHHpRsRK.cjs → pdfFonts-DpkEz6IN.cjs} +7 -1
- package/dist/{pdfFonts-CHHpRsRK.cjs.map → pdfFonts-DpkEz6IN.cjs.map} +1 -1
- package/dist/{svgTextToPath-B6FmPvcr.js → svgTextToPath-DR7QIEWZ.js} +2 -2
- package/dist/{svgTextToPath-B6FmPvcr.js.map → svgTextToPath-DR7QIEWZ.js.map} +1 -1
- package/dist/{svgTextToPath-B77kYzHp.cjs → svgTextToPath-DcQKj5Mc.cjs} +2 -2
- package/dist/{svgTextToPath-B77kYzHp.cjs.map → svgTextToPath-DcQKj5Mc.cjs.map} +1 -1
- package/dist/{vectorPdfExport-BrHHt_7L.js → vectorPdfExport-CxWPJs_l.js} +57 -27
- package/dist/vectorPdfExport-CxWPJs_l.js.map +1 -0
- package/dist/{vectorPdfExport-CyJXH2cR.cjs → vectorPdfExport-yAT4k3Je.cjs} +57 -27
- package/dist/vectorPdfExport-yAT4k3Je.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/vectorPdfExport-BrHHt_7L.js.map +0 -1
- package/dist/vectorPdfExport-CyJXH2cR.cjs.map +0 -1
|
@@ -15645,7 +15645,7 @@ function PixldocsPreview(props) {
|
|
|
15645
15645
|
!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..." }) })
|
|
15646
15646
|
] });
|
|
15647
15647
|
}
|
|
15648
|
-
const PACKAGE_VERSION = "0.5.
|
|
15648
|
+
const PACKAGE_VERSION = "0.5.120";
|
|
15649
15649
|
const roundParityValue = (value) => {
|
|
15650
15650
|
if (typeof value !== "number") return value;
|
|
15651
15651
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -16064,7 +16064,7 @@ class PixldocsRenderer {
|
|
|
16064
16064
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16065
16065
|
}
|
|
16066
16066
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16067
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
16067
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CxWPJs_l.js");
|
|
16068
16068
|
const prepared = preparePagesForExport(
|
|
16069
16069
|
cloned.pages,
|
|
16070
16070
|
canvasWidth,
|
|
@@ -18259,7 +18259,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
|
|
|
18259
18259
|
}
|
|
18260
18260
|
if (shouldOutlineText) {
|
|
18261
18261
|
try {
|
|
18262
|
-
const { convertAllTextToPath } = await import("./svgTextToPath-
|
|
18262
|
+
const { convertAllTextToPath } = await import("./svgTextToPath-DR7QIEWZ.js");
|
|
18263
18263
|
pageSvg = await convertAllTextToPath(pageSvg, fontBaseUrl, { mode: outlineSubMode });
|
|
18264
18264
|
try {
|
|
18265
18265
|
dumpSvgTextDiagnostics(pageSvg, i, PARITY_TAG, "STAGE-1b-after-text-to-path-raw");
|
|
@@ -18420,30 +18420,31 @@ function setAutoShrinkDebug(enabled) {
|
|
|
18420
18420
|
}
|
|
18421
18421
|
export {
|
|
18422
18422
|
API_URL as A,
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18423
|
+
configHasAutoShrinkText$1 as B,
|
|
18424
|
+
dumpSvgTextDiagnostics as C,
|
|
18425
|
+
embedFont as D,
|
|
18426
|
+
embedFontsForConfig as E,
|
|
18427
18427
|
FONT_FALLBACK_DEVANAGARI as F,
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
|
|
18435
|
-
|
|
18436
|
-
|
|
18428
|
+
embedFontsInPdf as G,
|
|
18429
|
+
ensureFontsForResolvedConfig as H,
|
|
18430
|
+
extractFontFamiliesFromSvgs as I,
|
|
18431
|
+
getEmbeddedJsPDFFontName as J,
|
|
18432
|
+
isBundledAssetUrl as K,
|
|
18433
|
+
isFontAvailable as L,
|
|
18434
|
+
isPrivateUrl as M,
|
|
18435
|
+
loadGoogleFontCSS as N,
|
|
18436
|
+
normalizeFontFamily as O,
|
|
18437
18437
|
PACKAGE_VERSION as P,
|
|
18438
|
-
|
|
18439
|
-
|
|
18440
|
-
|
|
18438
|
+
resolveFontWeight as Q,
|
|
18439
|
+
resolveFromForm as R,
|
|
18440
|
+
resolveTemplateData as S,
|
|
18441
18441
|
TRIANGLE_STROKE_MITER_LIMIT as T,
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18445
|
-
|
|
18446
|
-
|
|
18442
|
+
rewriteSvgFontsForJsPDF as U,
|
|
18443
|
+
setAutoShrinkDebug as V,
|
|
18444
|
+
setBundledAssetPrefixes as W,
|
|
18445
|
+
warmResolvedTemplateForPreview as X,
|
|
18446
|
+
warmTemplateFromForm as Y,
|
|
18447
|
+
canvasImageLoader as Z,
|
|
18447
18448
|
getAbsoluteBounds as a,
|
|
18448
18449
|
getProxiedImageUrl as b,
|
|
18449
18450
|
bakeEdgeFade as c,
|
|
@@ -18459,16 +18460,16 @@ export {
|
|
|
18459
18460
|
FONT_FALLBACK_MATH as m,
|
|
18460
18461
|
normalizeShapeType as n,
|
|
18461
18462
|
FONT_FALLBACK_SYMBOLS as o,
|
|
18462
|
-
|
|
18463
|
-
|
|
18463
|
+
parseTextMarkdown as p,
|
|
18464
|
+
FONT_FILES as q,
|
|
18464
18465
|
renderSmartElementToSvg as r,
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18466
|
+
PixldocsPreview as s,
|
|
18467
|
+
PixldocsRenderer as t,
|
|
18468
|
+
applyThemeToConfig as u,
|
|
18469
|
+
assemblePdfFromSvgs as v,
|
|
18470
|
+
awaitFontsForConfig as w,
|
|
18471
|
+
collectFontDescriptorsFromConfig as x,
|
|
18472
|
+
collectFontsFromConfig as y,
|
|
18473
|
+
collectImageUrls as z
|
|
18473
18474
|
};
|
|
18474
|
-
//# sourceMappingURL=index-
|
|
18475
|
+
//# sourceMappingURL=index-Dm9AEQy0.js.map
|