@pixldocs/canvas-renderer 0.5.361 → 0.5.362
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-CG6KfVLP.cjs → index-DQ-6sfz_.cjs} +9 -37
- package/dist/index-DQ-6sfz_.cjs.map +1 -0
- package/dist/{index-BaiH8RTh.js → index-WH1l4oST.js} +9 -37
- package/dist/{index-BaiH8RTh.js.map → index-WH1l4oST.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CTUzYtqL.cjs → vectorPdfExport-BAjK5RAp.cjs} +4 -4
- package/dist/{vectorPdfExport-CTUzYtqL.cjs.map → vectorPdfExport-BAjK5RAp.cjs.map} +1 -1
- package/dist/{vectorPdfExport-BvYAPUvD.js → vectorPdfExport-BVELqTIO.js} +4 -4
- package/dist/{vectorPdfExport-BvYAPUvD.js.map → vectorPdfExport-BVELqTIO.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CG6KfVLP.cjs.map +0 -1
|
@@ -15196,22 +15196,8 @@ const PageCanvas = forwardRef(
|
|
|
15196
15196
|
finalScaleX = 1;
|
|
15197
15197
|
finalScaleY = 1;
|
|
15198
15198
|
try {
|
|
15199
|
-
|
|
15200
|
-
|
|
15201
|
-
const sin = Math.sin(angleRad);
|
|
15202
|
-
const hw = finalWidth / 2;
|
|
15203
|
-
const hh = finalHeight / 2;
|
|
15204
|
-
const corners = [
|
|
15205
|
-
{ x: -hw, y: -hh },
|
|
15206
|
-
{ x: hw, y: -hh },
|
|
15207
|
-
{ x: hw, y: hh },
|
|
15208
|
-
{ x: -hw, y: hh }
|
|
15209
|
-
].map((p) => ({
|
|
15210
|
-
x: decomposed.translateX + p.x * cos - p.y * sin,
|
|
15211
|
-
y: decomposed.translateY + p.x * sin + p.y * cos
|
|
15212
|
-
}));
|
|
15213
|
-
absoluteLeft = Math.min(...corners.map((p) => p.x));
|
|
15214
|
-
absoluteTop = Math.min(...corners.map((p) => p.y));
|
|
15199
|
+
absoluteLeft = (decomposed.translateX ?? absoluteLeft) - finalWidth / 2;
|
|
15200
|
+
absoluteTop = (decomposed.translateY ?? absoluteTop) - finalHeight / 2;
|
|
15215
15201
|
} catch {
|
|
15216
15202
|
}
|
|
15217
15203
|
finalAbsoluteMatrix = fabric.util.composeMatrix({
|
|
@@ -15320,22 +15306,8 @@ const PageCanvas = forwardRef(
|
|
|
15320
15306
|
} catch {
|
|
15321
15307
|
}
|
|
15322
15308
|
try {
|
|
15323
|
-
|
|
15324
|
-
|
|
15325
|
-
const sin = Math.sin(angleRad);
|
|
15326
|
-
const hw = finalWidth / 2;
|
|
15327
|
-
const hh = finalHeight / 2;
|
|
15328
|
-
const corners = [
|
|
15329
|
-
{ x: -hw, y: -hh },
|
|
15330
|
-
{ x: hw, y: -hh },
|
|
15331
|
-
{ x: hw, y: hh },
|
|
15332
|
-
{ x: -hw, y: hh }
|
|
15333
|
-
].map((p) => ({
|
|
15334
|
-
x: decomposed.translateX + p.x * cos - p.y * sin,
|
|
15335
|
-
y: decomposed.translateY + p.x * sin + p.y * cos
|
|
15336
|
-
}));
|
|
15337
|
-
absoluteLeft = Math.min(...corners.map((p) => p.x));
|
|
15338
|
-
absoluteTop = Math.min(...corners.map((p) => p.y));
|
|
15309
|
+
absoluteLeft = (decomposed.translateX ?? absoluteLeft) - finalWidth / 2;
|
|
15310
|
+
absoluteTop = (decomposed.translateY ?? absoluteTop) - finalHeight / 2;
|
|
15339
15311
|
} catch {
|
|
15340
15312
|
}
|
|
15341
15313
|
finalAbsoluteMatrix = fabric.util.composeMatrix({
|
|
@@ -24614,9 +24586,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24614
24586
|
}
|
|
24615
24587
|
return svgString;
|
|
24616
24588
|
}
|
|
24617
|
-
const resolvedPackageVersion = "0.5.
|
|
24589
|
+
const resolvedPackageVersion = "0.5.362";
|
|
24618
24590
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24619
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24591
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.362";
|
|
24620
24592
|
const roundParityValue = (value) => {
|
|
24621
24593
|
if (typeof value !== "number") return value;
|
|
24622
24594
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25430,7 +25402,7 @@ class PixldocsRenderer {
|
|
|
25430
25402
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25431
25403
|
}
|
|
25432
25404
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25433
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25405
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BVELqTIO.js");
|
|
25434
25406
|
const prepared = preparePagesForExport(
|
|
25435
25407
|
cloned.pages,
|
|
25436
25408
|
canvasWidth,
|
|
@@ -27750,7 +27722,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27750
27722
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27751
27723
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27752
27724
|
try {
|
|
27753
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27725
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BVELqTIO.js");
|
|
27754
27726
|
try {
|
|
27755
27727
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27756
27728
|
} catch {
|
|
@@ -28150,4 +28122,4 @@ export {
|
|
|
28150
28122
|
buildTeaserBlurFlatKeys as y,
|
|
28151
28123
|
collectFontDescriptorsFromConfig as z
|
|
28152
28124
|
};
|
|
28153
|
-
//# sourceMappingURL=index-
|
|
28125
|
+
//# sourceMappingURL=index-WH1l4oST.js.map
|