@pixldocs/canvas-renderer 0.5.386 → 0.5.387
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-DPK4VKN5.cjs → index-C76ELpPn.cjs} +10 -6
- package/dist/index-C76ELpPn.cjs.map +1 -0
- package/dist/{index-BBprK5c2.js → index-Dojo9KpB.js} +10 -6
- package/dist/index-Dojo9KpB.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Ch4wgY_V.cjs → vectorPdfExport-C_LKrBRO.cjs} +4 -4
- package/dist/{vectorPdfExport-Ch4wgY_V.cjs.map → vectorPdfExport-C_LKrBRO.cjs.map} +1 -1
- package/dist/{vectorPdfExport-CuXE8W_Q.js → vectorPdfExport-DNhNOmXo.js} +4 -4
- package/dist/{vectorPdfExport-CuXE8W_Q.js.map → vectorPdfExport-DNhNOmXo.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BBprK5c2.js.map +0 -1
- package/dist/index-DPK4VKN5.cjs.map +0 -1
|
@@ -14317,7 +14317,10 @@ const PageCanvas = react.forwardRef(
|
|
|
14317
14317
|
continue;
|
|
14318
14318
|
}
|
|
14319
14319
|
if (!(child instanceof fabric__namespace.Textbox)) continue;
|
|
14320
|
-
|
|
14320
|
+
if (child.__asLiveOrigAngle == null) {
|
|
14321
|
+
child.__asLiveOrigAngle = child.angle ?? 0;
|
|
14322
|
+
}
|
|
14323
|
+
const childAngleDeg = child.__asLiveOrigAngle;
|
|
14321
14324
|
const asSx = isXSide ? sAxis : 1;
|
|
14322
14325
|
const asSy = isXSide ? 1 : sAxis;
|
|
14323
14326
|
const theta = fabric__namespace.util.degreesToRadians(childAngleDeg);
|
|
@@ -14749,6 +14752,7 @@ const PageCanvas = react.forwardRef(
|
|
|
14749
14752
|
delete child.__asLiveOrigW;
|
|
14750
14753
|
delete child.__asLiveOrigH;
|
|
14751
14754
|
delete child.__asLiveRotSnap;
|
|
14755
|
+
delete child.__asLiveOrigAngle;
|
|
14752
14756
|
}
|
|
14753
14757
|
}
|
|
14754
14758
|
} catch {
|
|
@@ -24896,9 +24900,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24896
24900
|
}
|
|
24897
24901
|
return svgString;
|
|
24898
24902
|
}
|
|
24899
|
-
const resolvedPackageVersion = "0.5.
|
|
24903
|
+
const resolvedPackageVersion = "0.5.387";
|
|
24900
24904
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24901
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24905
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.387";
|
|
24902
24906
|
const roundParityValue = (value) => {
|
|
24903
24907
|
if (typeof value !== "number") return value;
|
|
24904
24908
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25712,7 +25716,7 @@ class PixldocsRenderer {
|
|
|
25712
25716
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25713
25717
|
}
|
|
25714
25718
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25715
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25719
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-C_LKrBRO.cjs"));
|
|
25716
25720
|
const prepared = preparePagesForExport(
|
|
25717
25721
|
cloned.pages,
|
|
25718
25722
|
canvasWidth,
|
|
@@ -28032,7 +28036,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28032
28036
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28033
28037
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28034
28038
|
try {
|
|
28035
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28039
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-C_LKrBRO.cjs"));
|
|
28036
28040
|
try {
|
|
28037
28041
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28038
28042
|
} catch {
|
|
@@ -28429,4 +28433,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28429
28433
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28430
28434
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28431
28435
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28432
|
-
//# sourceMappingURL=index-
|
|
28436
|
+
//# sourceMappingURL=index-C76ELpPn.cjs.map
|