@pixldocs/canvas-renderer 0.5.484 → 0.5.485
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-Dl4edGXt.js → index-BPh2zj_A.js} +12 -10
- package/dist/{index-Dl4edGXt.js.map → index-BPh2zj_A.js.map} +1 -1
- package/dist/{index-BtWgeifE.cjs → index-DG8BpcY2.cjs} +12 -10
- package/dist/{index-BtWgeifE.cjs.map → index-DG8BpcY2.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-C02bLwpw.js → vectorPdfExport-BaxoJICy.js} +4 -4
- package/dist/{vectorPdfExport-C02bLwpw.js.map → vectorPdfExport-BaxoJICy.js.map} +1 -1
- package/dist/{vectorPdfExport-B811hVqY.cjs → vectorPdfExport-pylbB5Ls.cjs} +4 -4
- package/dist/{vectorPdfExport-B811hVqY.cjs.map → vectorPdfExport-pylbB5Ls.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -18826,7 +18826,7 @@ const PageCanvas = forwardRef(
|
|
|
18826
18826
|
const isLine = obj instanceof fabric.Line;
|
|
18827
18827
|
if (isLine) {
|
|
18828
18828
|
const lineGeometry = getLineVisualGeometry(element);
|
|
18829
|
-
|
|
18829
|
+
obj.set({
|
|
18830
18830
|
x1: lineGeometry.x1,
|
|
18831
18831
|
y1: lineGeometry.y1,
|
|
18832
18832
|
x2: lineGeometry.x2,
|
|
@@ -18836,12 +18836,10 @@ const PageCanvas = forwardRef(
|
|
|
18836
18836
|
scaleY: 1,
|
|
18837
18837
|
skewX: 0,
|
|
18838
18838
|
skewY: 0
|
|
18839
|
-
};
|
|
18839
|
+
});
|
|
18840
18840
|
if (!skipPositionUpdate) {
|
|
18841
|
-
|
|
18842
|
-
lineSet.top = fabricPos.top;
|
|
18841
|
+
obj.set({ left: fabricPos.left, top: fabricPos.top });
|
|
18843
18842
|
}
|
|
18844
|
-
obj.set(lineSet);
|
|
18845
18843
|
obj.setCoords();
|
|
18846
18844
|
}
|
|
18847
18845
|
if (!isLine) {
|
|
@@ -19350,6 +19348,8 @@ const PageCanvas = forwardRef(
|
|
|
19350
19348
|
}
|
|
19351
19349
|
if (isLine) {
|
|
19352
19350
|
const lineGeometry = getLineVisualGeometry(element);
|
|
19351
|
+
const prevLeft = obj.left;
|
|
19352
|
+
const prevTop = obj.top;
|
|
19353
19353
|
obj.set({
|
|
19354
19354
|
x1: lineGeometry.x1,
|
|
19355
19355
|
y1: lineGeometry.y1,
|
|
@@ -19362,6 +19362,8 @@ const PageCanvas = forwardRef(
|
|
|
19362
19362
|
strokeLineJoin: "round",
|
|
19363
19363
|
...element.strokeDashArray && { strokeDashArray: element.strokeDashArray }
|
|
19364
19364
|
});
|
|
19365
|
+
obj.set({ left: prevLeft, top: prevTop });
|
|
19366
|
+
obj.setCoords();
|
|
19365
19367
|
}
|
|
19366
19368
|
if (element.fillGradient && isGradientConfig(element.fillGradient)) {
|
|
19367
19369
|
const objWidth = typeof obj.width === "number" ? obj.width : rW;
|
|
@@ -26400,9 +26402,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26400
26402
|
}
|
|
26401
26403
|
return svgString;
|
|
26402
26404
|
}
|
|
26403
|
-
const resolvedPackageVersion = "0.5.
|
|
26405
|
+
const resolvedPackageVersion = "0.5.485";
|
|
26404
26406
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26405
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26407
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.485";
|
|
26406
26408
|
const roundParityValue = (value) => {
|
|
26407
26409
|
if (typeof value !== "number") return value;
|
|
26408
26410
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -27216,7 +27218,7 @@ class PixldocsRenderer {
|
|
|
27216
27218
|
await this.waitForCanvasScene(container, cloned, i);
|
|
27217
27219
|
}
|
|
27218
27220
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
27219
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
27221
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BaxoJICy.js");
|
|
27220
27222
|
const prepared = preparePagesForExport(
|
|
27221
27223
|
cloned.pages,
|
|
27222
27224
|
canvasWidth,
|
|
@@ -29536,7 +29538,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29536
29538
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29537
29539
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29538
29540
|
try {
|
|
29539
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
29541
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BaxoJICy.js");
|
|
29540
29542
|
try {
|
|
29541
29543
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29542
29544
|
} catch {
|
|
@@ -29853,4 +29855,4 @@ export {
|
|
|
29853
29855
|
buildTeaserBlurFlatKeys as y,
|
|
29854
29856
|
collectFontDescriptorsFromConfig as z
|
|
29855
29857
|
};
|
|
29856
|
-
//# sourceMappingURL=index-
|
|
29858
|
+
//# sourceMappingURL=index-BPh2zj_A.js.map
|