@pixldocs/canvas-renderer 0.5.294 → 0.5.295
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-CvuMfLba.js → index-DmJeO8GF.js} +9 -5
- package/dist/index-DmJeO8GF.js.map +1 -0
- package/dist/{index-YNCK2XyZ.cjs → index-Z2C993Tm.cjs} +9 -5
- package/dist/index-Z2C993Tm.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-uoX8_JuH.js → vectorPdfExport-BLXRwisV.js} +4 -4
- package/dist/{vectorPdfExport-uoX8_JuH.js.map → vectorPdfExport-BLXRwisV.js.map} +1 -1
- package/dist/{vectorPdfExport-CtQnH_h8.cjs → vectorPdfExport-BeR1yhlp.cjs} +4 -4
- package/dist/{vectorPdfExport-CtQnH_h8.cjs.map → vectorPdfExport-BeR1yhlp.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CvuMfLba.js.map +0 -1
- package/dist/index-YNCK2XyZ.cjs.map +0 -1
|
@@ -14584,6 +14584,10 @@ const PageCanvas = forwardRef(
|
|
|
14584
14584
|
obj.initDimensions();
|
|
14585
14585
|
obj.setPositionByOrigin(preBakeCenter, "center", "center");
|
|
14586
14586
|
obj.objectCaching = prevObjCaching;
|
|
14587
|
+
if (sx > 0 && sy > 0) {
|
|
14588
|
+
obj.set({ scaleX: 1 / sx, scaleY: 1 / sy });
|
|
14589
|
+
obj.setPositionByOrigin(preBakeCenter, "center", "center");
|
|
14590
|
+
}
|
|
14587
14591
|
obj.dirty = true;
|
|
14588
14592
|
if (activeObj) activeObj.dirty = true;
|
|
14589
14593
|
finalWidth = bakedWidth;
|
|
@@ -23825,9 +23829,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23825
23829
|
}
|
|
23826
23830
|
return svgString;
|
|
23827
23831
|
}
|
|
23828
|
-
const resolvedPackageVersion = "0.5.
|
|
23832
|
+
const resolvedPackageVersion = "0.5.295";
|
|
23829
23833
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23830
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23834
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.295";
|
|
23831
23835
|
const roundParityValue = (value) => {
|
|
23832
23836
|
if (typeof value !== "number") return value;
|
|
23833
23837
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24641,7 +24645,7 @@ class PixldocsRenderer {
|
|
|
24641
24645
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24642
24646
|
}
|
|
24643
24647
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24644
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
24648
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BLXRwisV.js");
|
|
24645
24649
|
const prepared = preparePagesForExport(
|
|
24646
24650
|
cloned.pages,
|
|
24647
24651
|
canvasWidth,
|
|
@@ -26961,7 +26965,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26961
26965
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26962
26966
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26963
26967
|
try {
|
|
26964
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
26968
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BLXRwisV.js");
|
|
26965
26969
|
try {
|
|
26966
26970
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26967
26971
|
} catch {
|
|
@@ -27361,4 +27365,4 @@ export {
|
|
|
27361
27365
|
buildTeaserBlurFlatKeys as y,
|
|
27362
27366
|
collectFontDescriptorsFromConfig as z
|
|
27363
27367
|
};
|
|
27364
|
-
//# sourceMappingURL=index-
|
|
27368
|
+
//# sourceMappingURL=index-DmJeO8GF.js.map
|