@pixldocs/canvas-renderer 0.5.156 → 0.5.158
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-DhIDZFPx.cjs → index-B1f4qE6u.cjs} +7 -7
- package/dist/{index-DhIDZFPx.cjs.map → index-B1f4qE6u.cjs.map} +1 -1
- package/dist/{index-DJQnrBbh.js → index-D0AWrDab.js} +7 -7
- package/dist/{index-DJQnrBbh.js.map → index-D0AWrDab.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{svgTextToPath-7fhL08qs.cjs → pdfFonts-BTEVnYX8.cjs} +31 -796
- package/dist/pdfFonts-BTEVnYX8.cjs.map +1 -0
- package/dist/{svgTextToPath-V1vC0SQt.js → pdfFonts-b3_bv7F0.js} +20 -747
- package/dist/pdfFonts-b3_bv7F0.js.map +1 -0
- package/dist/svgTextToPath-BXAzwaaR.js +706 -0
- package/dist/svgTextToPath-BXAzwaaR.js.map +1 -0
- package/dist/svgTextToPath-IM1f6F-f.cjs +745 -0
- package/dist/svgTextToPath-IM1f6F-f.cjs.map +1 -0
- package/dist/{vectorPdfExport-DSTA9YWG.js → vectorPdfExport-DwZylzI2.js} +8 -44
- package/dist/vectorPdfExport-DwZylzI2.js.map +1 -0
- package/dist/{vectorPdfExport-BbKisSsi.cjs → vectorPdfExport-vZ8VHnu6.cjs} +8 -44
- package/dist/vectorPdfExport-vZ8VHnu6.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/svgTextToPath-7fhL08qs.cjs.map +0 -1
- package/dist/svgTextToPath-V1vC0SQt.js.map +0 -1
- package/dist/vectorPdfExport-BbKisSsi.cjs.map +0 -1
- package/dist/vectorPdfExport-DSTA9YWG.js.map +0 -1
|
@@ -16058,9 +16058,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
16058
16058
|
}
|
|
16059
16059
|
return svgString;
|
|
16060
16060
|
}
|
|
16061
|
-
const resolvedPackageVersion = "0.5.
|
|
16061
|
+
const resolvedPackageVersion = "0.5.158";
|
|
16062
16062
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
16063
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
16063
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.158";
|
|
16064
16064
|
const roundParityValue = (value) => {
|
|
16065
16065
|
if (typeof value !== "number") return value;
|
|
16066
16066
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -16495,7 +16495,7 @@ class PixldocsRenderer {
|
|
|
16495
16495
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16496
16496
|
}
|
|
16497
16497
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16498
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
16498
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DwZylzI2.js");
|
|
16499
16499
|
const prepared = preparePagesForExport(
|
|
16500
16500
|
cloned.pages,
|
|
16501
16501
|
canvasWidth,
|
|
@@ -18597,7 +18597,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
18597
18597
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
18598
18598
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
18599
18599
|
try {
|
|
18600
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
18600
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DwZylzI2.js");
|
|
18601
18601
|
try {
|
|
18602
18602
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
18603
18603
|
} catch {
|
|
@@ -18718,7 +18718,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
|
|
|
18718
18718
|
const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
|
|
18719
18719
|
drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
|
|
18720
18720
|
const shouldStripBg = stripPageBackground ?? hasGradient;
|
|
18721
|
-
const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "
|
|
18721
|
+
const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "selectable");
|
|
18722
18722
|
const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
|
|
18723
18723
|
const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
|
|
18724
18724
|
let pageSvg = page.svg;
|
|
@@ -18732,7 +18732,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
|
|
|
18732
18732
|
}
|
|
18733
18733
|
if (shouldOutlineText) {
|
|
18734
18734
|
try {
|
|
18735
|
-
const { convertAllTextToPath } = await import("./svgTextToPath-
|
|
18735
|
+
const { convertAllTextToPath } = await import("./svgTextToPath-BXAzwaaR.js");
|
|
18736
18736
|
pageSvg = await convertAllTextToPath(pageSvg, fontBaseUrl, { mode: outlineSubMode });
|
|
18737
18737
|
try {
|
|
18738
18738
|
dumpSvgTextDiagnostics(pageSvg, i, PARITY_TAG, "STAGE-1b-after-text-to-path-raw");
|
|
@@ -18947,4 +18947,4 @@ export {
|
|
|
18947
18947
|
collectFontDescriptorsFromConfig as y,
|
|
18948
18948
|
collectFontsFromConfig as z
|
|
18949
18949
|
};
|
|
18950
|
-
//# sourceMappingURL=index-
|
|
18950
|
+
//# sourceMappingURL=index-D0AWrDab.js.map
|