@pixldocs/canvas-renderer 0.5.412 → 0.5.414
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-Df-U5xVu.cjs → index-CzyHWKIb.cjs} +10 -14
- package/dist/index-CzyHWKIb.cjs.map +1 -0
- package/dist/{index-CVR5UGAs.js → index-DMA8h19g.js} +10 -14
- package/dist/index-DMA8h19g.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-pDEJNOs8.js → vectorPdfExport-DaYe9eLB.js} +4 -4
- package/dist/{vectorPdfExport-pDEJNOs8.js.map → vectorPdfExport-DaYe9eLB.js.map} +1 -1
- package/dist/{vectorPdfExport-CywX_PY0.cjs → vectorPdfExport-f5bQ2qJF.cjs} +4 -4
- package/dist/{vectorPdfExport-CywX_PY0.cjs.map → vectorPdfExport-f5bQ2qJF.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CVR5UGAs.js.map +0 -1
- package/dist/index-Df-U5xVu.cjs.map +0 -1
|
@@ -14628,13 +14628,8 @@ const PageCanvas = forwardRef(
|
|
|
14628
14628
|
const asRect0 = obj.getBoundingRect();
|
|
14629
14629
|
let didReflowTextChild = false;
|
|
14630
14630
|
for (const child of obj.getObjects()) {
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
if (isRotatedChild) {
|
|
14634
|
-
if (child.__asLiveOrigAngle == null) {
|
|
14635
|
-
child.__asLiveOrigAngle = child.angle ?? 0;
|
|
14636
|
-
}
|
|
14637
|
-
continue;
|
|
14631
|
+
if (child.__asLiveOrigAngle == null) {
|
|
14632
|
+
child.__asLiveOrigAngle = child.angle ?? 0;
|
|
14638
14633
|
}
|
|
14639
14634
|
if (child instanceof fabric.Group && (child.__cropGroup || ((_k = child._ct) == null ? void 0 : _k.isCropGroup))) {
|
|
14640
14635
|
const ct = child.__cropData;
|
|
@@ -16255,7 +16250,8 @@ const PageCanvas = forwardRef(
|
|
|
16255
16250
|
const isRotatedImg = Math.min(normAng, 360 - normAng) > 0.5;
|
|
16256
16251
|
if (isRotatedImg && activeObj instanceof fabric.ActiveSelection) {
|
|
16257
16252
|
try {
|
|
16258
|
-
const cleanAngleI =
|
|
16253
|
+
const cleanAngleI = childLocalAngleSrc;
|
|
16254
|
+
const worldAngleI = (activeObj.angle ?? 0) + childLocalAngleSrc;
|
|
16259
16255
|
const cleanW = Math.max(1, Number(elementUpdate.width ?? finalWidth));
|
|
16260
16256
|
const cleanH = Math.max(1, Number(elementUpdate.height ?? finalHeight));
|
|
16261
16257
|
const cx = decomposed.translateX ?? absoluteLeft + cleanW / 2;
|
|
@@ -16275,7 +16271,7 @@ const PageCanvas = forwardRef(
|
|
|
16275
16271
|
elementUpdate.transformMatrix = fabric.util.composeMatrix({
|
|
16276
16272
|
translateX: cx,
|
|
16277
16273
|
translateY: cy,
|
|
16278
|
-
angle:
|
|
16274
|
+
angle: worldAngleI,
|
|
16279
16275
|
scaleX: 1,
|
|
16280
16276
|
scaleY: 1,
|
|
16281
16277
|
skewX: 0,
|
|
@@ -25521,9 +25517,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25521
25517
|
}
|
|
25522
25518
|
return svgString;
|
|
25523
25519
|
}
|
|
25524
|
-
const resolvedPackageVersion = "0.5.
|
|
25520
|
+
const resolvedPackageVersion = "0.5.414";
|
|
25525
25521
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25526
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25522
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.414";
|
|
25527
25523
|
const roundParityValue = (value) => {
|
|
25528
25524
|
if (typeof value !== "number") return value;
|
|
25529
25525
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26337,7 +26333,7 @@ class PixldocsRenderer {
|
|
|
26337
26333
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26338
26334
|
}
|
|
26339
26335
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26340
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26336
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DaYe9eLB.js");
|
|
26341
26337
|
const prepared = preparePagesForExport(
|
|
26342
26338
|
cloned.pages,
|
|
26343
26339
|
canvasWidth,
|
|
@@ -28657,7 +28653,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28657
28653
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28658
28654
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28659
28655
|
try {
|
|
28660
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28656
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DaYe9eLB.js");
|
|
28661
28657
|
try {
|
|
28662
28658
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28663
28659
|
} catch {
|
|
@@ -29057,4 +29053,4 @@ export {
|
|
|
29057
29053
|
buildTeaserBlurFlatKeys as y,
|
|
29058
29054
|
collectFontDescriptorsFromConfig as z
|
|
29059
29055
|
};
|
|
29060
|
-
//# sourceMappingURL=index-
|
|
29056
|
+
//# sourceMappingURL=index-DMA8h19g.js.map
|