@pixldocs/canvas-renderer 0.5.415 → 0.5.416
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-CjQENuN6.cjs → index-BcxRNI0T.cjs} +10 -8
- package/dist/{index-CjQENuN6.cjs.map → index-BcxRNI0T.cjs.map} +1 -1
- package/dist/{index-B2-9Hojr.js → index-CZU1DIVy.js} +10 -8
- package/dist/{index-B2-9Hojr.js.map → index-CZU1DIVy.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Db2vIeqx.js → vectorPdfExport-BFThdYPo.js} +4 -4
- package/dist/{vectorPdfExport-Db2vIeqx.js.map → vectorPdfExport-BFThdYPo.js.map} +1 -1
- package/dist/{vectorPdfExport-DaaYbqll.cjs → vectorPdfExport-D6fEgUkM.cjs} +4 -4
- package/dist/{vectorPdfExport-DaaYbqll.cjs.map → vectorPdfExport-D6fEgUkM.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -15789,7 +15789,8 @@ const PageCanvas = react.forwardRef(
|
|
|
15789
15789
|
finalScaleY = 1;
|
|
15790
15790
|
const worldCx = decomposed.translateX ?? 0;
|
|
15791
15791
|
const worldCy = decomposed.translateY ?? 0;
|
|
15792
|
-
const
|
|
15792
|
+
const liveWorldAngle = Number.isFinite(decomposed.angle) ? decomposed.angle : (activeObj.angle ?? 0) + cropChildLocalAngle;
|
|
15793
|
+
const worldAngle = liveWorldAngle;
|
|
15793
15794
|
absoluteLeft = worldCx - finalWidth / 2;
|
|
15794
15795
|
absoluteTop = worldCy - finalHeight / 2;
|
|
15795
15796
|
finalAbsoluteMatrix = fabric__namespace.util.composeMatrix({
|
|
@@ -15918,7 +15919,7 @@ const PageCanvas = react.forwardRef(
|
|
|
15918
15919
|
finalScaleY = 1;
|
|
15919
15920
|
const worldCx = decomposed.translateX ?? 0;
|
|
15920
15921
|
const worldCy = decomposed.translateY ?? 0;
|
|
15921
|
-
const worldAngleI = (activeObj.angle ?? 0) + imgChildLocalAngle;
|
|
15922
|
+
const worldAngleI = Number.isFinite(decomposed.angle) ? decomposed.angle : (activeObj.angle ?? 0) + imgChildLocalAngle;
|
|
15922
15923
|
absoluteLeft = worldCx - finalWidth / 2;
|
|
15923
15924
|
absoluteTop = worldCy - finalHeight / 2;
|
|
15924
15925
|
finalAbsoluteMatrix = fabric__namespace.util.composeMatrix({
|
|
@@ -16268,7 +16269,8 @@ const PageCanvas = react.forwardRef(
|
|
|
16268
16269
|
const isRotatedImg = Math.min(normAng, 360 - normAng) > 0.5;
|
|
16269
16270
|
if (isRotatedImg && activeObj instanceof fabric__namespace.ActiveSelection) {
|
|
16270
16271
|
try {
|
|
16271
|
-
const
|
|
16272
|
+
const parentWorldAngle = activeObj.angle ?? 0;
|
|
16273
|
+
const cleanAngleI = Number.isFinite(decomposed.angle) ? decomposed.angle - parentWorldAngle : childLocalAngleSrc;
|
|
16272
16274
|
const cleanW = Math.max(1, Number(elementUpdate.width ?? finalWidth));
|
|
16273
16275
|
const cleanH = Math.max(1, Number(elementUpdate.height ?? finalHeight));
|
|
16274
16276
|
const cx = decomposed.translateX ?? absoluteLeft + cleanW / 2;
|
|
@@ -25537,9 +25539,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25537
25539
|
}
|
|
25538
25540
|
return svgString;
|
|
25539
25541
|
}
|
|
25540
|
-
const resolvedPackageVersion = "0.5.
|
|
25542
|
+
const resolvedPackageVersion = "0.5.416";
|
|
25541
25543
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25542
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25544
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.416";
|
|
25543
25545
|
const roundParityValue = (value) => {
|
|
25544
25546
|
if (typeof value !== "number") return value;
|
|
25545
25547
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26353,7 +26355,7 @@ class PixldocsRenderer {
|
|
|
26353
26355
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26354
26356
|
}
|
|
26355
26357
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26356
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26358
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-D6fEgUkM.cjs"));
|
|
26357
26359
|
const prepared = preparePagesForExport(
|
|
26358
26360
|
cloned.pages,
|
|
26359
26361
|
canvasWidth,
|
|
@@ -28673,7 +28675,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28673
28675
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28674
28676
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28675
28677
|
try {
|
|
28676
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28678
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-D6fEgUkM.cjs"));
|
|
28677
28679
|
try {
|
|
28678
28680
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28679
28681
|
} catch {
|
|
@@ -29070,4 +29072,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29070
29072
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29071
29073
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29072
29074
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29073
|
-
//# sourceMappingURL=index-
|
|
29075
|
+
//# sourceMappingURL=index-BcxRNI0T.cjs.map
|