@pixldocs/canvas-renderer 0.5.176 → 0.5.178
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-DSe1eOVD.cjs → index-DTcFAvP2.cjs} +9 -5
- package/dist/index-DTcFAvP2.cjs.map +1 -0
- package/dist/{index-C03-L2j3.js → index-Dj7Bs3EZ.js} +9 -5
- package/dist/index-Dj7Bs3EZ.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CA6a-apV.js → vectorPdfExport-3KWX0dvS.js} +4 -4
- package/dist/{vectorPdfExport-CA6a-apV.js.map → vectorPdfExport-3KWX0dvS.js.map} +1 -1
- package/dist/{vectorPdfExport-CZWsOCqF.cjs → vectorPdfExport-Qffqnh7w.cjs} +4 -4
- package/dist/{vectorPdfExport-CZWsOCqF.cjs.map → vectorPdfExport-Qffqnh7w.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-C03-L2j3.js.map +0 -1
- package/dist/index-DSe1eOVD.cjs.map +0 -1
|
@@ -7598,6 +7598,10 @@ const PageCanvas = forwardRef(
|
|
|
7598
7598
|
const id = getObjectId(obj);
|
|
7599
7599
|
const element = id ? elementById.get(id) : void 0;
|
|
7600
7600
|
if (!element) return;
|
|
7601
|
+
if (element.overflowPolicy === "auto-shrink") {
|
|
7602
|
+
obj.dirty = true;
|
|
7603
|
+
return;
|
|
7604
|
+
}
|
|
7601
7605
|
const targetWidth = Math.max(1, Number(element.width) > 0 ? Number(element.width) : Number(obj.width ?? 200));
|
|
7602
7606
|
const overflowPolicy = element.overflowPolicy || "grow-and-push";
|
|
7603
7607
|
const splitByGrapheme = overflowPolicy === "auto-shrink" ? false : element.splitByGrapheme ?? element.wordWrap === "break-word";
|
|
@@ -16338,9 +16342,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
16338
16342
|
}
|
|
16339
16343
|
return svgString;
|
|
16340
16344
|
}
|
|
16341
|
-
const resolvedPackageVersion = "0.5.
|
|
16345
|
+
const resolvedPackageVersion = "0.5.178";
|
|
16342
16346
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
16343
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
16347
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.178";
|
|
16344
16348
|
const roundParityValue = (value) => {
|
|
16345
16349
|
if (typeof value !== "number") return value;
|
|
16346
16350
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -16842,7 +16846,7 @@ class PixldocsRenderer {
|
|
|
16842
16846
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16843
16847
|
}
|
|
16844
16848
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16845
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
16849
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-3KWX0dvS.js");
|
|
16846
16850
|
const prepared = preparePagesForExport(
|
|
16847
16851
|
cloned.pages,
|
|
16848
16852
|
canvasWidth,
|
|
@@ -18983,7 +18987,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
18983
18987
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
18984
18988
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
18985
18989
|
try {
|
|
18986
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
18990
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-3KWX0dvS.js");
|
|
18987
18991
|
try {
|
|
18988
18992
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
18989
18993
|
} catch {
|
|
@@ -19379,4 +19383,4 @@ export {
|
|
|
19379
19383
|
collectFontDescriptorsFromConfig as y,
|
|
19380
19384
|
collectFontsFromConfig as z
|
|
19381
19385
|
};
|
|
19382
|
-
//# sourceMappingURL=index-
|
|
19386
|
+
//# sourceMappingURL=index-Dj7Bs3EZ.js.map
|